/* START MicrosoftAjax.js */ //---------------------------------------------------------- // Copyright (C) Microsoft Corporation. All rights reserved. //---------------------------------------------------------- // MicrosoftAjax.js Function.__typeName="Function";Function.__class=true;Function.createCallback=function(b,a){return function(){var e=arguments.length;if(e>0){var d=[];for(var c=0;c=d)break;a=Function._validateParameter(g[b],f,h);if(a){a.popStackFrame();return a}}return null};Function._validateParameterCount=function(j,d,i){var a,c,b=d.length,e=j.length;if(eb){c=true;for(a=0;a0&&(d=0};Array.dequeue=function(a){return a.shift()};Array.forEach=function(b,e,d){for(var a=0,f=b.length;a=0)b.splice(a,1);return a>=0};Array.removeAt=function(a,b){a.splice(b,1)};Sys._indexOf=function(d,e,a){if(typeof e==="undefined")return -1;var c=d.length;if(c!==0){a=a-0;if(isNaN(a))a=0;else{if(isFinite(a))a=a-a%1;if(a<0)a=Math.max(0,c+a)}for(var b=a;b-1){Sys.Browser.agent=Sys.Browser.InternetExplorer;Sys.Browser.version=parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]);if(Sys.Browser.version>=8)if(document.documentMode>=7)Sys.Browser.documentMode=document.documentMode;Sys.Browser.hasDebuggerStatement=true}else if(navigator.userAgent.indexOf(" Firefox/")>-1){Sys.Browser.agent=Sys.Browser.Firefox;Sys.Browser.version=parseFloat(navigator.userAgent.match(/Firefox\/(\d+\.\d+)/)[1]);Sys.Browser.name="Firefox";Sys.Browser.hasDebuggerStatement=true}else if(navigator.userAgent.indexOf(" AppleWebKit/")>-1){Sys.Browser.agent=Sys.Browser.Safari;Sys.Browser.version=parseFloat(navigator.userAgent.match(/AppleWebKit\/(\d+(\.\d+)?)/)[1]);Sys.Browser.name="Safari"}else if(navigator.userAgent.indexOf("Opera/")>-1)Sys.Browser.agent=Sys.Browser.Opera;Sys.EventArgs=function(){};Sys.EventArgs.registerClass("Sys.EventArgs");Sys.EventArgs.Empty=new Sys.EventArgs;Sys.CancelEventArgs=function(){Sys.CancelEventArgs.initializeBase(this);this._cancel=false};Sys.CancelEventArgs.prototype={get_cancel:function(){return this._cancel},set_cancel:function(a){this._cancel=a}};Sys.CancelEventArgs.registerClass("Sys.CancelEventArgs",Sys.EventArgs);Type.registerNamespace("Sys.UI");Sys._Debug=function(){};Sys._Debug.prototype={_appendConsole:function(a){if(typeof Debug!=="undefined"&&Debug.writeln)Debug.writeln(a);if(window.console&&window.console.log)window.console.log(a);if(window.opera)window.opera.postError(a);if(window.debugService)window.debugService.trace(a)},_appendTrace:function(b){var a=document.getElementById("TraceConsole");if(a&&a.tagName.toUpperCase()==="TEXTAREA")a.value+=b+"\n"},assert:function(c,a,b){if(!c){a=b&&this.assert.caller?String.format(Sys.Res.assertFailedCaller,a,this.assert.caller):String.format(Sys.Res.assertFailed,a);if(confirm(String.format(Sys.Res.breakIntoDebugger,a)))this.fail(a)}},clearTrace:function(){var a=document.getElementById("TraceConsole");if(a&&a.tagName.toUpperCase()==="TEXTAREA")a.value=""},fail:function(message){this._appendConsole(message);if(Sys.Browser.hasDebuggerStatement)eval("debugger")},trace:function(a){this._appendConsole(a);this._appendTrace(a)},traceDump:function(a,b){var c=this._traceDump(a,b,true)},_traceDump:function(a,c,f,b,d){c=c?c:"traceDump";b=b?b:"";if(a===null){this.trace(b+c+": null");return}switch(typeof a){case "undefined":this.trace(b+c+": Undefined");break;case "number":case "string":case "boolean":this.trace(b+c+": "+a);break;default:if(Date.isInstanceOfType(a)||RegExp.isInstanceOfType(a)){this.trace(b+c+": "+a.toString());break}if(!d)d=[];else if(Array.contains(d,a)){this.trace(b+c+": ...");return}Array.add(d,a);if(a==window||a===document||window.HTMLElement&&a instanceof HTMLElement||typeof a.nodeName==="string"){var k=a.tagName?a.tagName:"DomElement";if(a.id)k+=" - "+a.id;this.trace(b+c+" {"+k+"}")}else{var i=Object.getTypeName(a);this.trace(b+c+(typeof i==="string"?" {"+i+"}":""));if(b===""||f){b+=" ";var e,j,l,g,h;if(Array.isInstanceOfType(a)){j=a.length;for(e=0;e=0;d--){var k=h[d].trim();b=a[k];if(typeof b!=="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,c.split(",")[d].trim(),this.__typeName));j|=b}return j}}function Sys$Enum$toString(c){if(typeof c==="undefined"||c===null)return this.__string;var d=this.prototype,a;if(!this.__flags||c===0){for(a in d)if(d[a]===c)return a}else{var b=this.__sortedValues;if(!b){b=[];for(a in d)b[b.length]={key:a,value:d[a]};b.sort(function(a,b){return a.value-b.value});this.__sortedValues=b}var e=[],g=c;for(a=b.length-1;a>=0;a--){var h=b[a],f=h.value;if(f===0)continue;if((f&c)===f){e[e.length]=h.key;g-=f;if(g===0)break}}if(e.length&&g===0)return e.reverse().join(", ")}return ""}Type.prototype.registerEnum=function(b,c){Sys.__upperCaseTypes[b.toUpperCase()]=this;for(var a in this.prototype)this[a]=this.prototype[a];this.__typeName=b;this.parse=Sys$Enum$parse;this.__string=this.toString();this.toString=Sys$Enum$toString;this.__flags=c;this.__enum=true};Type.isEnum=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__enum};Type.isFlags=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__flags};Sys.CollectionChange=function(e,a,c,b,d){this.action=e;if(a)if(!(a instanceof Array))a=[a];this.newItems=a||null;if(typeof c!=="number")c=-1;this.newStartingIndex=c;if(b)if(!(b instanceof Array))b=[b];this.oldItems=b||null;if(typeof d!=="number")d=-1;this.oldStartingIndex=d};Sys.CollectionChange.registerClass("Sys.CollectionChange");Sys.NotifyCollectionChangedAction=function(){throw Error.notImplemented()};Sys.NotifyCollectionChangedAction.prototype={add:0,remove:1,reset:2};Sys.NotifyCollectionChangedAction.registerEnum("Sys.NotifyCollectionChangedAction");Sys.NotifyCollectionChangedEventArgs=function(a){this._changes=a;Sys.NotifyCollectionChangedEventArgs.initializeBase(this)};Sys.NotifyCollectionChangedEventArgs.prototype={get_changes:function(){return this._changes||[]}};Sys.NotifyCollectionChangedEventArgs.registerClass("Sys.NotifyCollectionChangedEventArgs",Sys.EventArgs);Sys.Observer=function(){};Sys.Observer.registerClass("Sys.Observer");Sys.Observer.makeObservable=function(a){var c=a instanceof Array,b=Sys.Observer;if(a.setValue===b._observeMethods.setValue)return a;b._addMethods(a,b._observeMethods);if(c)b._addMethods(a,b._arrayMethods);return a};Sys.Observer._addMethods=function(c,b){for(var a in b)c[a]=b[a]};Sys.Observer._addEventHandler=function(c,a,b){Sys.Observer._getContext(c,true).events._addHandler(a,b)};Sys.Observer.addEventHandler=function(c,a,b){Sys.Observer._addEventHandler(c,a,b)};Sys.Observer._removeEventHandler=function(c,a,b){Sys.Observer._getContext(c,true).events._removeHandler(a,b)};Sys.Observer.removeEventHandler=function(c,a,b){Sys.Observer._removeEventHandler(c,a,b)};Sys.Observer.raiseEvent=function(b,e,d){var c=Sys.Observer._getContext(b);if(!c)return;var a=c.events.getHandler(e);if(a)a(b,d)};Sys.Observer.addPropertyChanged=function(b,a){Sys.Observer._addEventHandler(b,"propertyChanged",a)};Sys.Observer.removePropertyChanged=function(b,a){Sys.Observer._removeEventHandler(b,"propertyChanged",a)};Sys.Observer.beginUpdate=function(a){Sys.Observer._getContext(a,true).updating=true};Sys.Observer.endUpdate=function(b){var a=Sys.Observer._getContext(b);if(!a||!a.updating)return;a.updating=false;var d=a.dirty;a.dirty=false;if(d){if(b instanceof Array){var c=a.changes;a.changes=null;Sys.Observer.raiseCollectionChanged(b,c)}Sys.Observer.raisePropertyChanged(b,"")}};Sys.Observer.isUpdating=function(b){var a=Sys.Observer._getContext(b);return a?a.updating:false};Sys.Observer._setValue=function(a,j,g){var b,f,k=a,d=j.split(".");for(var i=0,m=d.length-1;i-1&&ac.Calendar.TwoDigitYearMax)a-=100}return a};Date._getEra=function(e,c){if(!c)return 0;var b,d=e.getTime();for(var a=0,f=c.length;a=b)return a}return 0};Date._getEraYear=function(d,b,e,c){var a=d.getFullYear();if(!c&&b.eras)a-=b.eras[e+3];return a};Date._getParseRegExp=function(b,e){if(!b._parseRegExp)b._parseRegExp={};else if(b._parseRegExp[e])return b._parseRegExp[e];var c=Date._expandFormat(b,e);c=c.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");var a=new Sys.StringBuilder("^"),j=[],f=0,i=0,h=Date._getTokenRegExp(),d;while((d=h.exec(c))!==null){var l=c.slice(f,d.index);f=h.lastIndex;i+=Date._appendPreOrPostMatch(l,a);if(i%2===1){a.append(d[0]);continue}switch(d[0]){case "dddd":case "ddd":case "MMMM":case "MMM":case "gg":case "g":a.append("(\\D+)");break;case "tt":case "t":a.append("(\\D*)");break;case "yyyy":a.append("(\\d{4})");break;case "fff":a.append("(\\d{3})");break;case "ff":a.append("(\\d{2})");break;case "f":a.append("(\\d)");break;case "dd":case "d":case "MM":case "M":case "yy":case "y":case "HH":case "H":case "hh":case "h":case "mm":case "m":case "ss":case "s":a.append("(\\d\\d?)");break;case "zzz":a.append("([+-]?\\d\\d?:\\d{2})");break;case "zz":case "z":a.append("([+-]?\\d\\d?)");break;case "/":a.append("(\\"+b.DateSeparator+")")}Array.add(j,d[0])}Date._appendPreOrPostMatch(c.slice(f),a);a.append("$");var k=a.toString().replace(/\s+/g,"\\s+"),g={"regExp":k,"groups":j};b._parseRegExp[e]=g;return g};Date._getTokenRegExp=function(){return /\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g};Date.parseLocale=function(a){return Date._parse(a,Sys.CultureInfo.CurrentCulture,arguments)};Date.parseInvariant=function(a){return Date._parse(a,Sys.CultureInfo.InvariantCulture,arguments)};Date._parse=function(h,d,i){var a,c,b,f,e,g=false;for(a=1,c=i.length;a31)return null;break;case "MMMM":c=k._getMonthIndex(a);if(c<0||c>11)return null;break;case "MMM":c=k._getAbbrMonthIndex(a);if(c<0||c>11)return null;break;case "M":case "MM":c=parseInt(a,10)-1;if(c<0||c>11)return null;break;case "y":case "yy":e=Date._expandYear(g,parseInt(a,10));if(e<0||e>9999)return null;break;case "yyyy":e=parseInt(a,10);if(e<0||e>9999)return null;break;case "h":case "hh":d=parseInt(a,10);if(d===12)d=0;if(d<0||d>11)return null;break;case "H":case "HH":d=parseInt(a,10);if(d<0||d>23)return null;break;case "m":case "mm":p=parseInt(a,10);if(p<0||p>59)return null;break;case "s":case "ss":q=parseInt(a,10);if(q<0||q>59)return null;break;case "tt":case "t":var z=a.toUpperCase();v=z===g.PMDesignator.toUpperCase();if(!v&&z!==g.AMDesignator.toUpperCase())return null;break;case "f":f=parseInt(a,10)*100;if(f<0||f>999)return null;break;case "ff":f=parseInt(a,10)*10;if(f<0||f>999)return null;break;case "fff":f=parseInt(a,10);if(f<0||f>999)return null;break;case "dddd":i=k._getDayIndex(a);if(i<0||i>6)return null;break;case "ddd":i=k._getAbbrDayIndex(a);if(i<0||i>6)return null;break;case "zzz":var u=a.split(/:/);if(u.length!==2)return null;h=parseInt(u[0],10);if(h<-12||h>13)return null;var m=parseInt(u[1],10);if(m<0||m>59)return null;l=h*60+(a.startsWith("-")?-m:m);break;case "z":case "zz":h=parseInt(a,10);if(h<-12||h>13)return null;l=h*60;break;case "g":case "gg":var o=a;if(!o||!g.eras)return null;o=o.toLowerCase().trim();for(var r=0,F=g.eras.length;r0)return this.toLocaleString();else return this.toString();var o=["n %","n%","%n"],n=["-n %","-n%","-%n"],p=["(n)","-n","- n","n-","n -"],m=["$n","n$","$ n","n $"],l=["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"];function g(a,c,d){for(var b=a.length;b1?parseInt(e[1]):0;e=b.split(".");b=e[0];a=e.length>1?e[1]:"";var q;if(c>0){a=g(a,c,false);b+=a.slice(0,c);a=a.substr(c)}else if(c<0){c=-c;b=g(b,c+1,true);a=b.slice(-c,b.length)+a;b=b.slice(0,-c)}if(i>0){if(a.length>i)a=a.slice(0,i);else a=g(a,i,false);a=p+a}else a="";var d=b.length-1,f="";while(d>=0){if(h===0||h>d)if(f.length>0)return b.slice(0,d+1)+n+f+a;else return b.slice(0,d+1)+a;if(f.length>0)f=b.slice(d-h+1,d+1)+n+f;else f=b.slice(d-h+1,d+1);d-=h;if(k1)b=parseInt(e.slice(1),10);var c;switch(e.charAt(0)){case "d":case "D":c="n";if(b!==-1)d=g(""+d,b,true);if(this<0)d=-d;break;case "c":case "C":if(this<0)c=l[a.CurrencyNegativePattern];else c=m[a.CurrencyPositivePattern];if(b===-1)b=a.CurrencyDecimalDigits;d=i(Math.abs(this),b,a.CurrencyGroupSizes,a.CurrencyGroupSeparator,a.CurrencyDecimalSeparator);break;case "n":case "N":if(this<0)c=p[a.NumberNegativePattern];else c="n";if(b===-1)b=a.NumberDecimalDigits;d=i(Math.abs(this),b,a.NumberGroupSizes,a.NumberGroupSeparator,a.NumberDecimalSeparator);break;case "p":case "P":if(this<0)c=n[a.PercentNegativePattern];else c=o[a.PercentPositivePattern];if(b===-1)b=a.PercentDecimalDigits;d=i(Math.abs(this)*100,b,a.PercentGroupSizes,a.PercentGroupSeparator,a.PercentDecimalSeparator);break;default:throw Error.format(Sys.Res.formatBadFormatSpecifier)}var k=/n|\$|-|%/g,f="";for(;true;){var q=k.lastIndex,h=k.exec(c);f+=c.slice(q,h?h.index:c.length);if(!h)break;switch(h[0]){case "n":f+=d;break;case "$":f+=a.CurrencySymbol;break;case "-":if(/[1-9]/.test(d))f+=a.NegativeSign;break;case "%":f+=a.PercentSymbol}}return f};Sys.CultureInfo=function(c,b,a){this.name=c;this.numberFormat=b;this.dateTimeFormat=a};Sys.CultureInfo.prototype={_getDateTimeFormats:function(){if(!this._dateTimeFormats){var a=this.dateTimeFormat;this._dateTimeFormats=[a.MonthDayPattern,a.YearMonthPattern,a.ShortDatePattern,a.ShortTimePattern,a.LongDatePattern,a.LongTimePattern,a.FullDateTimePattern,a.RFC1123Pattern,a.SortableDateTimePattern,a.UniversalSortableDateTimePattern]}return this._dateTimeFormats},_getIndex:function(c,d,e){var b=this._toUpper(c),a=Array.indexOf(d,b);if(a===-1)a=Array.indexOf(e,b);return a},_getMonthIndex:function(a){if(!this._upperMonths){this._upperMonths=this._toUpperArray(this.dateTimeFormat.MonthNames);this._upperMonthsGenitive=this._toUpperArray(this.dateTimeFormat.MonthGenitiveNames)}return this._getIndex(a,this._upperMonths,this._upperMonthsGenitive)},_getAbbrMonthIndex:function(a){if(!this._upperAbbrMonths){this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);this._upperAbbrMonthsGenitive=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthGenitiveNames)}return this._getIndex(a,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},_getDayIndex:function(a){if(!this._upperDays)this._upperDays=this._toUpperArray(this.dateTimeFormat.DayNames);return Array.indexOf(this._upperDays,this._toUpper(a))},_getAbbrDayIndex:function(a){if(!this._upperAbbrDays)this._upperAbbrDays=this._toUpperArray(this.dateTimeFormat.AbbreviatedDayNames);return Array.indexOf(this._upperAbbrDays,this._toUpper(a))},_toUpperArray:function(c){var b=[];for(var a=0,d=c.length;a0)a.append(",");Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(b[c],a,false,g)}a.append("]")}else{if(Date.isInstanceOfType(b)){a.append('"\\/Date(');a.append(b.getTime());a.append(')\\/"');break}var d=[],f=0;for(var e in b){if(e.startsWith("$"))continue;if(e===Sys.Serialization.JavaScriptSerializer._serverTypeFieldName&&f!==0){d[f++]=d[0];d[0]=e}else d[f++]=e}if(i)d.sort();a.append("{");var j=false;for(c=0;c=0;c--){var f=d[c];if(!g||f.autoRemove)$removeHandler(a,b,f.handler)}}a._events=null}};Sys.UI.DomEvent._disposeHandlers=function(){Sys.UI.DomEvent._clearHandlers(this,true);var b=this._chainDispose,a=typeof b;if(a!=="undefined"){this.dispose=b;this._chainDispose=null;if(a==="function")this.dispose()}};var $removeHandler=Sys.UI.DomEvent.removeHandler=function(b,a,c){Sys.UI.DomEvent._removeHandler(b,a,c)};Sys.UI.DomEvent._removeHandler=function(a,e,f){var d=null,c=a._events[e];for(var b=0,g=c.length;b=3){d+=parseInt(b.borderLeftWidth);e+=parseInt(b.borderTopWidth)}}b=Sys.UI.DomElement._getCurrentStyle(c);var h=b?b.position:null;if(!h||h!=="absolute")for(a=c.parentNode;a;a=a.parentNode){f=a.tagName?a.tagName.toUpperCase():null;if(f!=="BODY"&&f!=="HTML"&&(a.scrollLeft||a.scrollTop)){d-=a.scrollLeft||0;e-=a.scrollTop||0}b=Sys.UI.DomElement._getCurrentStyle(a);var i=b?b.position:null;if(i&&i==="absolute")break}return new Sys.UI.Point(d,e)};else Sys.UI.DomElement.getLocation=function(d){if(d.window&&d.window===d||d.nodeType===9)return new Sys.UI.Point(0,0);var e=0,f=0,a,i=null,g=null,b=null;for(a=d;a;i=a,(g=b,a=a.offsetParent)){var c=a.tagName?a.tagName.toUpperCase():null;b=Sys.UI.DomElement._getCurrentStyle(a);if((a.offsetLeft||a.offsetTop)&&!(c==="BODY"&&(!g||g.position!=="absolute"))){e+=a.offsetLeft;f+=a.offsetTop}if(i!==null&&b){if(c!=="TABLE"&&c!=="TD"&&c!=="HTML"){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0}if(c==="TABLE"&&(b.position==="relative"||b.position==="absolute")){e+=parseInt(b.marginLeft)||0;f+=parseInt(b.marginTop)||0}}}b=Sys.UI.DomElement._getCurrentStyle(d);var h=b?b.position:null;if(!h||h!=="absolute")for(a=d.parentNode;a;a=a.parentNode){c=a.tagName?a.tagName.toUpperCase():null;if(c!=="BODY"&&c!=="HTML"&&(a.scrollLeft||a.scrollTop)){e-=a.scrollLeft||0;f-=a.scrollTop||0;b=Sys.UI.DomElement._getCurrentStyle(a);if(b){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0}}}return new Sys.UI.Point(e,f)};Sys.UI.DomElement.isDomElement=function(a){return Sys._isDomElement(a)};Sys.UI.DomElement.removeCssClass=function(d,c){var a=" "+d.className+" ",b=a.indexOf(" "+c+" ");if(b>=0)d.className=(a.substr(0,b)+" "+a.substring(b+c.length+1,a.length)).trim()};Sys.UI.DomElement.resolveElement=function(b,c){var a=b;if(!a)return null;if(typeof a==="string")a=Sys.UI.DomElement.getElementById(a,c);return a};Sys.UI.DomElement.raiseBubbleEvent=function(c,d){var b=c;while(b){var a=b.control;if(a&&a.onBubbleEvent&&a.raiseBubbleEvent){Sys.UI.DomElement._raiseBubbleEventFromControl(a,c,d);return}b=b.parentNode}};Sys.UI.DomElement._raiseBubbleEventFromControl=function(a,b,c){if(!a.onBubbleEvent(b,c))a._raiseBubbleEvent(b,c)};Sys.UI.DomElement.setLocation=function(b,c,d){var a=b.style;a.position="absolute";a.left=c+"px";a.top=d+"px"};Sys.UI.DomElement.toggleCssClass=function(b,a){if(Sys.UI.DomElement.containsCssClass(b,a))Sys.UI.DomElement.removeCssClass(b,a);else Sys.UI.DomElement.addCssClass(b,a)};Sys.UI.DomElement.getVisibilityMode=function(a){return a._visibilityMode===Sys.UI.VisibilityMode.hide?Sys.UI.VisibilityMode.hide:Sys.UI.VisibilityMode.collapse};Sys.UI.DomElement.setVisibilityMode=function(a,b){Sys.UI.DomElement._ensureOldDisplayMode(a);if(a._visibilityMode!==b){a._visibilityMode=b;if(Sys.UI.DomElement.getVisible(a)===false)if(a._visibilityMode===Sys.UI.VisibilityMode.hide)a.style.display=a._oldDisplayMode;else a.style.display="none";a._visibilityMode=b}};Sys.UI.DomElement.getVisible=function(b){var a=b.currentStyle||Sys.UI.DomElement._getCurrentStyle(b);if(!a)return true;return a.visibility!=="hidden"&&a.display!=="none"};Sys.UI.DomElement.setVisible=function(a,b){if(b!==Sys.UI.DomElement.getVisible(a)){Sys.UI.DomElement._ensureOldDisplayMode(a);a.style.visibility=b?"visible":"hidden";if(b||a._visibilityMode===Sys.UI.VisibilityMode.hide)a.style.display=a._oldDisplayMode;else a.style.display="none"}};Sys.UI.DomElement._ensureOldDisplayMode=function(a){if(!a._oldDisplayMode){var b=a.currentStyle||Sys.UI.DomElement._getCurrentStyle(a);a._oldDisplayMode=b?b.display:null;if(!a._oldDisplayMode||a._oldDisplayMode==="none")switch(a.tagName.toUpperCase()){case "DIV":case "P":case "ADDRESS":case "BLOCKQUOTE":case "BODY":case "COL":case "COLGROUP":case "DD":case "DL":case "DT":case "FIELDSET":case "FORM":case "H1":case "H2":case "H3":case "H4":case "H5":case "H6":case "HR":case "IFRAME":case "LEGEND":case "OL":case "PRE":case "TABLE":case "TD":case "TH":case "TR":case "UL":a._oldDisplayMode="block";break;case "LI":a._oldDisplayMode="list-item";break;default:a._oldDisplayMode="inline"}}};Sys.UI.DomElement._getWindow=function(a){var b=a.ownerDocument||a.document||a;return b.defaultView||b.parentWindow};Sys.UI.DomElement._getCurrentStyle=function(a){if(a.nodeType===3)return null;var c=Sys.UI.DomElement._getWindow(a);if(a.documentElement)a=a.documentElement;var b=c&&a!==c&&c.getComputedStyle?c.getComputedStyle(a,null):a.currentStyle||a.style;if(!b&&Sys.Browser.agent===Sys.Browser.Safari&&a.style){var g=a.style.display,f=a.style.position;a.style.position="absolute";a.style.display="block";var e=c.getComputedStyle(a,null);a.style.display=g;a.style.position=f;b={};for(var d in e)b[d]=e[d];b.display="none"}return b};Sys.IContainer=function(){};Sys.IContainer.prototype={};Sys.IContainer.registerInterface("Sys.IContainer");Sys.ApplicationLoadEventArgs=function(b,a){Sys.ApplicationLoadEventArgs.initializeBase(this);this._components=b;this._isPartialLoad=a};Sys.ApplicationLoadEventArgs.prototype={get_components:function(){return this._components},get_isPartialLoad:function(){return this._isPartialLoad}};Sys.ApplicationLoadEventArgs.registerClass("Sys.ApplicationLoadEventArgs",Sys.EventArgs);Sys._Application=function(){Sys._Application.initializeBase(this);this._disposableObjects=[];this._components={};this._createdComponents=[];this._secondPassComponents=[];this._unloadHandlerDelegate=Function.createDelegate(this,this._unloadHandler);Sys.UI.DomEvent.addHandler(window,"unload",this._unloadHandlerDelegate);this._domReady()};Sys._Application.prototype={_creatingComponents:false,_disposing:false,_deleteCount:0,get_isCreatingComponents:function(){return this._creatingComponents},get_isDisposing:function(){return this._disposing},add_init:function(a){if(this._initialized)a(this,Sys.EventArgs.Empty);else this.get_events().addHandler("init",a)},remove_init:function(a){this.get_events().removeHandler("init",a)},add_load:function(a){this.get_events().addHandler("load",a)},remove_load:function(a){this.get_events().removeHandler("load",a)},add_unload:function(a){this.get_events().addHandler("unload",a)},remove_unload:function(a){this.get_events().removeHandler("unload",a)},addComponent:function(a){this._components[a.get_id()]=a},beginCreateComponents:function(){this._creatingComponents=true},dispose:function(){if(!this._disposing){this._disposing=true;if(this._timerCookie){window.clearTimeout(this._timerCookie);delete this._timerCookie}if(this._endRequestHandler){Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(this._endRequestHandler);delete this._endRequestHandler}if(this._beginRequestHandler){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(this._beginRequestHandler);delete this._beginRequestHandler}if(window.pageUnload)window.pageUnload(this,Sys.EventArgs.Empty);var c=this.get_events().getHandler("unload");if(c)c(this,Sys.EventArgs.Empty);var b=Array.clone(this._disposableObjects);for(var a=0,f=b.length;a=0;b--){var d=i[b],f=d.dispose;if(f&&typeof f==="function")d.dispose();else{var e=d.control;if(e&&typeof e.dispose==="function")e.dispose()}var a=d._behaviors;if(a)this._disposeComponents(a);a=d._components;if(a){this._disposeComponents(a);d._components=null}}if(!j){var f=c.dispose;if(f&&typeof f==="function")c.dispose();else{var e=c.control;if(e&&typeof e.dispose==="function")e.dispose()}var a=c._behaviors;if(a)this._disposeComponents(a);a=c._components;if(a){this._disposeComponents(a);c._components=null}}}},endCreateComponents:function(){var b=this._secondPassComponents;for(var a=0,d=b.length;a1000){var c=[];for(var d=0,f=b.length;d=0;b--){var c=a[b];if(typeof c.dispose==="function")c.dispose()}},_domReady:function(){var a,g,f=this;function b(){f.initialize()}var c=function(){Sys.UI.DomEvent.removeHandler(window,"load",c);b()};Sys.UI.DomEvent.addHandler(window,"load",c);if(document.addEventListener)try{document.addEventListener("DOMContentLoaded",a=function(){document.removeEventListener("DOMContentLoaded",a,false);b()},false)}catch(h){}else if(document.attachEvent)if(window==window.top&&document.documentElement.doScroll){var e,d=document.createElement("div");a=function(){try{d.doScroll("left")}catch(c){e=window.setTimeout(a,0);return}d=null;b()};a()}else document.attachEvent("onreadystatechange",a=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",a);b()}})},_raiseInit:function(){var a=this.get_events().getHandler("init");if(a){this.beginCreateComponents();a(this,Sys.EventArgs.Empty);this.endCreateComponents()}},_unloadHandler:function(){this.dispose()}};Sys._Application.registerClass("Sys._Application",Sys.Component,Sys.IContainer);Sys.Application=new Sys._Application;var $find=Sys.Application.findComponent;Sys.UI.Behavior=function(b){Sys.UI.Behavior.initializeBase(this);this._element=b;var a=b._behaviors;if(!a)b._behaviors=[this];else a[a.length]=this};Sys.UI.Behavior.prototype={_name:null,get_element:function(){return this._element},get_id:function(){var a=Sys.UI.Behavior.callBaseMethod(this,"get_id");if(a)return a;if(!this._element||!this._element.id)return "";return this._element.id+"$"+this.get_name()},get_name:function(){if(this._name)return this._name;var a=Object.getTypeName(this),b=a.lastIndexOf(".");if(b!==-1)a=a.substr(b+1);if(!this.get_isInitialized())this._name=a;return a},set_name:function(a){this._name=a},initialize:function(){Sys.UI.Behavior.callBaseMethod(this,"initialize");var a=this.get_name();if(a)this._element[a]=this},dispose:function(){Sys.UI.Behavior.callBaseMethod(this,"dispose");var a=this._element;if(a){var c=this.get_name();if(c)a[c]=null;var b=a._behaviors;Array.remove(b,this);if(b.length===0)a._behaviors=null;delete this._element}}};Sys.UI.Behavior.registerClass("Sys.UI.Behavior",Sys.Component);Sys.UI.Behavior.getBehaviorByName=function(b,c){var a=b[c];return a&&Sys.UI.Behavior.isInstanceOfType(a)?a:null};Sys.UI.Behavior.getBehaviors=function(a){if(!a._behaviors)return [];return Array.clone(a._behaviors)};Sys.UI.Behavior.getBehaviorsByType=function(d,e){var a=d._behaviors,c=[];if(a)for(var b=0,f=a.length;b0&&a.charAt(0)==="#")a=a.substring(1);return a};Sys._Application.prototype.get_enableHistory=function(){return this._enableHistory};Sys._Application.prototype.set_enableHistory=function(a){this._enableHistory=a};Sys._Application.prototype.add_navigate=function(a){this.get_events().addHandler("navigate",a)};Sys._Application.prototype.remove_navigate=function(a){this.get_events().removeHandler("navigate",a)};Sys._Application.prototype.addHistoryPoint=function(c,f){this._ensureHistory();var b=this._state;for(var a in c){var d=c[a];if(d===null){if(typeof b[a]!=="undefined")delete b[a]}else b[a]=d}var e=this._serializeState(b);this._historyPointIsNew=true;this._setState(e,f);this._raiseNavigate()};Sys._Application.prototype.setServerId=function(a,b){this._clientId=a;this._uniqueId=b};Sys._Application.prototype.setServerState=function(a){this._ensureHistory();this._state.__s=a;this._updateHiddenField(a)};Sys._Application.prototype._deserializeState=function(a){var e={};a=a||"";var b=a.indexOf("&&");if(b!==-1&&b+27){var e=document.title;document.title=c;this._setState(a);document.title=e}else this._setState(a);this._raiseNavigate()}else{this._setState(a);this._raiseNavigate()}}};Sys._Application.prototype._raiseNavigate=function(){var d=this._historyPointIsNew,c=this.get_events().getHandler("navigate"),b={};for(var a in this._state)if(a!=="__s")b[a]=this._state[a];var e=new Sys.HistoryEventArgs(b);if(c)c(this,e);if(!d){var f;try{if(Sys.Browser.agent===Sys.Browser.Firefox&&window.location.hash&&(!window.frameElement||window.top.location.hash))Sys.Browser.version<3.5?window.history.go(0):(location.hash=this.get_stateString())}catch(g){}}};Sys._Application.prototype._serializeState=function(d){var b=[];for(var a in d){var e=d[a];if(a==="__s")var c=e;else b[b.length]=a+"="+encodeURIComponent(e)}return b.join("&")+(c?"&&"+c:"")};Sys._Application.prototype._setState=function(a,b){if(this._enableHistory){a=a||"";if(a!==this._currentEntry){if(window.theForm){var d=window.theForm.action,e=d.indexOf("#");window.theForm.action=(e!==-1?d.substring(0,e):d)+"#"+a}if(this._historyFrame&&this._historyPointIsNew){var f=document.createElement("div");f.appendChild(document.createTextNode(b||document.title));var g=f.innerHTML;this._ignoreIFrame=true;var c=this._historyFrame.contentWindow.document;c.open("javascript:''");c.write(""+g+"parent.Sys.Application._onIFrameLoad('+Sys.Serialization.JavaScriptSerializer.serialize(a)+");");c.close()}this._ignoreTimer=false;this._currentEntry=a;if(this._historyFrame||this._historyPointIsNew){var h=this.get_stateString();if(a!==h){window.location.hash=a;this._currentEntry=this.get_stateString();if(typeof b!=="undefined"&&b!==null)document.title=b}}this._historyPointIsNew=false}}};Sys._Application.prototype._updateHiddenField=function(b){if(this._clientId){var a=document.getElementById(this._clientId);if(a)a.value=b}};if(!window.XMLHttpRequest)window.XMLHttpRequest=function(){var b=["Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP"];for(var a=0,c=b.length;a0)this._timer=window.setTimeout(Function.createDelegate(this,this._onTimeout),d);this._xmlHttpRequest.send(c);this._started=true},getResponseHeader:function(b){var a;try{a=this._xmlHttpRequest.getResponseHeader(b)}catch(c){}if(!a)a="";return a},getAllResponseHeaders:function(){return this._xmlHttpRequest.getAllResponseHeaders()},get_responseData:function(){return this._xmlHttpRequest.responseText},get_statusCode:function(){var a=0;try{a=this._xmlHttpRequest.status}catch(b){}return a},get_statusText:function(){return this._xmlHttpRequest.statusText},get_xml:function(){var a=this._xmlHttpRequest.responseXML;if(!a||!a.documentElement){a=Sys.Net.XMLDOM(this._xmlHttpRequest.responseText);if(!a||!a.documentElement)return null}else if(navigator.userAgent.indexOf("MSIE")!==-1&&typeof a.setProperty!="undefined")a.setProperty("SelectionLanguage","XPath");if(a.documentElement.namespaceURI==="http://www.mozilla.org/newlayout/xml/parsererror.xml"&&a.documentElement.tagName==="parsererror")return null;if(a.documentElement.firstChild&&a.documentElement.firstChild.tagName==="parsererror")return null;return a},abort:function(){if(this._aborted||this._responseAvailable||this._timedOut)return;this._aborted=true;this._clearTimer();if(this._xmlHttpRequest&&!this._responseAvailable){this._xmlHttpRequest.onreadystatechange=Function.emptyMethod;this._xmlHttpRequest.abort();this._xmlHttpRequest=null;this._webRequest.completed(Sys.EventArgs.Empty)}}};Sys.Net.XMLHttpExecutor.registerClass("Sys.Net.XMLHttpExecutor",Sys.Net.WebRequestExecutor);Sys.Net._WebRequestManager=function(){this._defaultTimeout=0;this._defaultExecutorType="Sys.Net.XMLHttpExecutor"};Sys.Net._WebRequestManager.prototype={add_invokingRequest:function(a){this._get_eventHandlerList().addHandler("invokingRequest",a)},remove_invokingRequest:function(a){this._get_eventHandlerList().removeHandler("invokingRequest",a)},add_completedRequest:function(a){this._get_eventHandlerList().addHandler("completedRequest",a)},remove_completedRequest:function(a){this._get_eventHandlerList().removeHandler("completedRequest",a)},_get_eventHandlerList:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_defaultTimeout:function(){return this._defaultTimeout},set_defaultTimeout:function(a){this._defaultTimeout=a},get_defaultExecutorType:function(){return this._defaultExecutorType},set_defaultExecutorType:function(a){this._defaultExecutorType=a},executeRequest:function(webRequest){var executor=webRequest.get_executor();if(!executor){var failed=false;try{var executorType=eval(this._defaultExecutorType);executor=new executorType}catch(a){failed=true}webRequest.set_executor(executor)}if(executor.get_aborted())return;var evArgs=new Sys.Net.NetworkRequestEventArgs(webRequest),handler=this._get_eventHandlerList().getHandler("invokingRequest");if(handler)handler(this,evArgs);if(!evArgs.get_cancel())executor.executeRequest()}};Sys.Net._WebRequestManager.registerClass("Sys.Net._WebRequestManager");Sys.Net.WebRequestManager=new Sys.Net._WebRequestManager;Sys.Net.NetworkRequestEventArgs=function(a){Sys.Net.NetworkRequestEventArgs.initializeBase(this);this._webRequest=a};Sys.Net.NetworkRequestEventArgs.prototype={get_webRequest:function(){return this._webRequest}};Sys.Net.NetworkRequestEventArgs.registerClass("Sys.Net.NetworkRequestEventArgs",Sys.CancelEventArgs);Sys.Net.WebRequest=function(){this._url="";this._headers={};this._body=null;this._userContext=null;this._httpVerb=null;this._executor=null;this._invokeCalled=false;this._timeout=0};Sys.Net.WebRequest.prototype={add_completed:function(a){this._get_eventHandlerList().addHandler("completed",a)},remove_completed:function(a){this._get_eventHandlerList().removeHandler("completed",a)},completed:function(b){var a=Sys.Net.WebRequestManager._get_eventHandlerList().getHandler("completedRequest");if(a)a(this._executor,b);a=this._get_eventHandlerList().getHandler("completed");if(a)a(this._executor,b)},_get_eventHandlerList:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_url:function(){return this._url},set_url:function(a){this._url=a},get_headers:function(){return this._headers},get_httpVerb:function(){if(this._httpVerb===null){if(this._body===null)return "GET";return "POST"}return this._httpVerb},set_httpVerb:function(a){this._httpVerb=a},get_body:function(){return this._body},set_body:function(a){this._body=a},get_userContext:function(){return this._userContext},set_userContext:function(a){this._userContext=a},get_executor:function(){return this._executor},set_executor:function(a){this._executor=a;this._executor._set_webRequest(this)},get_timeout:function(){if(this._timeout===0)return Sys.Net.WebRequestManager.get_defaultTimeout();return this._timeout},set_timeout:function(a){this._timeout=a},getResolvedUrl:function(){return Sys.Net.WebRequest._resolveUrl(this._url)},invoke:function(){Sys.Net.WebRequestManager.executeRequest(this);this._invokeCalled=true}};Sys.Net.WebRequest._resolveUrl=function(b,a){if(b&&b.indexOf("://")!==-1)return b;if(!a||a.length===0){var d=document.getElementsByTagName("base")[0];if(d&&d.href&&d.href.length>0)a=d.href;else a=document.URL}var c=a.indexOf("?");if(c!==-1)a=a.substr(0,c);c=a.indexOf("#");if(c!==-1)a=a.substr(0,c);a=a.substr(0,a.lastIndexOf("/")+1);if(!b||b.length===0)return a;if(b.charAt(0)==="/"){var e=a.indexOf("://"),g=a.indexOf("/",e+3);return a.substr(0,g)+b}else{var f=a.lastIndexOf("/");return a.substr(0,f+1)+b}};Sys.Net.WebRequest._createQueryString=function(c,b,f){b=b||encodeURIComponent;var h=0,e,g,d,a=new Sys.StringBuilder;if(c)for(d in c){e=c[d];if(typeof e==="function")continue;g=Sys.Serialization.JavaScriptSerializer.serialize(e);if(h++)a.append("&");a.append(d);a.append("=");a.append(b(g))}if(f){if(h)a.append("&");a.append(f)}return a.toString()};Sys.Net.WebRequest._createUrl=function(a,b,c){if(!b&&!c)return a;var d=Sys.Net.WebRequest._createQueryString(b,null,c);return d.length?a+(a&&a.indexOf("?")>=0?"&":"?")+d:a};Sys.Net.WebRequest.registerClass("Sys.Net.WebRequest");Sys._ScriptLoaderTask=function(b,a){this._scriptElement=b;this._completedCallback=a};Sys._ScriptLoaderTask.prototype={get_scriptElement:function(){return this._scriptElement},dispose:function(){if(this._disposed)return;this._disposed=true;this._removeScriptElementHandlers();Sys._ScriptLoaderTask._clearScript(this._scriptElement);this._scriptElement=null},execute:function(){if(this._ensureReadyStateLoaded())this._executeInternal()},_executeInternal:function(){this._addScriptElementHandlers();document.getElementsByTagName("head")[0].appendChild(this._scriptElement)},_ensureReadyStateLoaded:function(){if(this._useReadyState()&&this._scriptElement.readyState!=="loaded"&&this._scriptElement.readyState!=="complete"){this._scriptDownloadDelegate=Function.createDelegate(this,this._executeInternal);$addHandler(this._scriptElement,"readystatechange",this._scriptDownloadDelegate);return false}return true},_addScriptElementHandlers:function(){if(this._scriptDownloadDelegate){$removeHandler(this._scriptElement,"readystatechange",this._scriptDownloadDelegate);this._scriptDownloadDelegate=null}this._scriptLoadDelegate=Function.createDelegate(this,this._scriptLoadHandler);if(this._useReadyState())$addHandler(this._scriptElement,"readystatechange",this._scriptLoadDelegate);else $addHandler(this._scriptElement,"load",this._scriptLoadDelegate);if(this._scriptElement.addEventListener){this._scriptErrorDelegate=Function.createDelegate(this,this._scriptErrorHandler);this._scriptElement.addEventListener("error",this._scriptErrorDelegate,false)}},_removeScriptElementHandlers:function(){if(this._scriptLoadDelegate){var a=this.get_scriptElement();if(this._scriptDownloadDelegate){$removeHandler(this._scriptElement,"readystatechange",this._scriptDownloadDelegate);this._scriptDownloadDelegate=null}if(this._useReadyState()&&this._scriptLoadDelegate)$removeHandler(a,"readystatechange",this._scriptLoadDelegate);else $removeHandler(a,"load",this._scriptLoadDelegate);if(this._scriptErrorDelegate){this._scriptElement.removeEventListener("error",this._scriptErrorDelegate,false);this._scriptErrorDelegate=null}this._scriptLoadDelegate=null}},_scriptErrorHandler:function(){if(this._disposed)return;this._completedCallback(this.get_scriptElement(),false)},_scriptLoadHandler:function(){if(this._disposed)return;var a=this.get_scriptElement();if(this._useReadyState()&&a.readyState!=="complete")return;this._completedCallback(a,true)},_useReadyState:function(){return Sys.Browser.agent===Sys.Browser.InternetExplorer&&(Sys.Browser.version<9||(document.documentMode||0)<9)}};Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask",null,Sys.IDisposable);Sys._ScriptLoaderTask._clearScript=function(a){if(!Sys.Debug.isDebug&&a.parentNode)a.parentNode.removeChild(a)};Type.registerNamespace("Sys.Net");Sys.Net.WebServiceProxy=function(){};Sys.Net.WebServiceProxy.prototype={get_timeout:function(){return this._timeout||0},set_timeout:function(a){if(a<0)throw Error.argumentOutOfRange("value",a,Sys.Res.invalidTimeout);this._timeout=a},get_defaultUserContext:function(){return typeof this._userContext==="undefined"?null:this._userContext},set_defaultUserContext:function(a){this._userContext=a},get_defaultSucceededCallback:function(){return this._succeeded||null},set_defaultSucceededCallback:function(a){this._succeeded=a},get_defaultFailedCallback:function(){return this._failed||null},set_defaultFailedCallback:function(a){this._failed=a},get_enableJsonp:function(){return !!this._jsonp},set_enableJsonp:function(a){this._jsonp=a},get_path:function(){return this._path||null},set_path:function(a){this._path=a},get_jsonpCallbackParameter:function(){return this._callbackParameter||"callback"},set_jsonpCallbackParameter:function(a){this._callbackParameter=a},_invoke:function(d,e,g,f,c,b,a){c=c||this.get_defaultSucceededCallback();b=b||this.get_defaultFailedCallback();if(a===null||typeof a==="undefined")a=this.get_defaultUserContext();return Sys.Net.WebServiceProxy.invoke(d,e,g,f,c,b,a,this.get_timeout(),this.get_enableJsonp(),this.get_jsonpCallbackParameter())}};Sys.Net.WebServiceProxy.registerClass("Sys.Net.WebServiceProxy");Sys.Net.WebServiceProxy.invoke=function(q,a,m,l,j,b,g,e,w,p){var i=w!==false?Sys.Net.WebServiceProxy._xdomain.exec(q):null,c,n=i&&i.length===3&&(i[1]!==location.protocol||i[2]!==location.host);m=n||m;if(n){p=p||"callback";c="_jsonp"+Sys._jsonp++}if(!l)l={};var r=l;if(!m||!r)r={};var s,h,f=null,k,o=null,u=Sys.Net.WebRequest._createUrl(a?q+"/"+encodeURIComponent(a):q,r,n?p+"=Sys."+c:null);if(n){s=document.createElement("script");s.src=u;k=new Sys._ScriptLoaderTask(s,function(d,b){if(!b||c)t({Message:String.format(Sys.Res.webServiceFailedNoMsg,a)},-1)});function v(){if(f===null)return;f=null;h=new Sys.Net.WebServiceError(true,String.format(Sys.Res.webServiceTimedOut,a));k.dispose();delete Sys[c];if(b)b(h,g,a)}function t(d,e){if(f!==null){window.clearTimeout(f);f=null}k.dispose();delete Sys[c];c=null;if(typeof e!=="undefined"&&e!==200){if(b){h=new Sys.Net.WebServiceError(false,d.Message||String.format(Sys.Res.webServiceFailedNoMsg,a),d.StackTrace||null,d.ExceptionType||null,d);h._statusCode=e;b(h,g,a)}}else if(j)j(d,g,a)}Sys[c]=t;e=e||Sys.Net.WebRequestManager.get_defaultTimeout();if(e>0)f=window.setTimeout(v,e);k.execute();return null}var d=new Sys.Net.WebRequest;d.set_url(u);d.get_headers()["Content-Type"]="application/json; charset=utf-8";if(!m){o=Sys.Serialization.JavaScriptSerializer.serialize(l);if(o==="{}")o=""}d.set_body(o);d.add_completed(x);if(e&&e>0)d.set_timeout(e);d.invoke();function x(d){if(d.get_responseAvailable()){var f=d.get_statusCode(),c=null;try{var e=d.getResponseHeader("Content-Type");if(e.startsWith("application/json"))c=d.get_object();else if(e.startsWith("text/xml"))c=d.get_xml();else c=d.get_responseData()}catch(m){}var k=d.getResponseHeader("jsonerror"),h=k==="true";if(h){if(c)c=new Sys.Net.WebServiceError(false,c.Message,c.StackTrace,c.ExceptionType,c)}else if(e.startsWith("application/json"))c=!c||typeof c.d==="undefined"?c:c.d;if(f<200||f>=300||h){if(b){if(!c||!h)c=new Sys.Net.WebServiceError(false,String.format(Sys.Res.webServiceFailedNoMsg,a));c._statusCode=f;b(c,g,a)}}else if(j)j(c,g,a)}else{var i;if(d.get_timedOut())i=String.format(Sys.Res.webServiceTimedOut,a);else i=String.format(Sys.Res.webServiceFailedNoMsg,a);if(b)b(new Sys.Net.WebServiceError(d.get_timedOut(),i,"",""),g,a)}}return d};Sys.Net.WebServiceProxy._generateTypedConstructor=function(a){return function(b){if(b)for(var c in b)this[c]=b[c];this.__type=a}};Sys._jsonp=0;Sys.Net.WebServiceProxy._xdomain=/^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/;Sys.Net.WebServiceError=function(d,e,c,a,b){this._timedOut=d;this._message=e;this._stackTrace=c;this._exceptionType=a;this._errorObject=b;this._statusCode=-1};Sys.Net.WebServiceError.prototype={get_timedOut:function(){return this._timedOut},get_statusCode:function(){return this._statusCode},get_message:function(){return this._message},get_stackTrace:function(){return this._stackTrace||""},get_exceptionType:function(){return this._exceptionType||""},get_errorObject:function(){return this._errorObject||null}};Sys.Net.WebServiceError.registerClass("Sys.Net.WebServiceError"); Type.registerNamespace('Sys');Sys.Res={ "argumentInteger":"Value must be an integer.","invokeCalledTwice":"Cannot call invoke more than once.","webServiceFailed":"The server method \u0027{0}\u0027 failed with the following error: {1}","argumentType":"Object cannot be converted to the required type.","argumentNull":"Value cannot be null.","scriptAlreadyLoaded":"The script \u0027{0}\u0027 has been referenced multiple times. If referencing Microsoft AJAX scripts explicitly, set the MicrosoftAjaxMode property of the ScriptManager to Explicit.","scriptDependencyNotFound":"The script \u0027{0}\u0027 failed to load because it is dependent on script \u0027{1}\u0027.","formatBadFormatSpecifier":"Format specifier was invalid.","requiredScriptReferenceNotIncluded":"\u0027{0}\u0027 requires that you have included a script reference to \u0027{1}\u0027.","webServiceFailedNoMsg":"The server method \u0027{0}\u0027 failed.","argumentDomElement":"Value must be a DOM element.","invalidExecutorType":"Could not create a valid Sys.Net.WebRequestExecutor from: {0}.","cannotCallBeforeResponse":"Cannot call {0} when responseAvailable is false.","actualValue":"Actual value was {0}.","enumInvalidValue":"\u0027{0}\u0027 is not a valid value for enum {1}.","scriptLoadFailed":"The script \u0027{0}\u0027 could not be loaded.","parameterCount":"Parameter count mismatch.","cannotDeserializeEmptyString":"Cannot deserialize empty string.","formatInvalidString":"Input string was not in a correct format.","invalidTimeout":"Value must be greater than or equal to zero.","cannotAbortBeforeStart":"Cannot abort when executor has not started.","argument":"Value does not fall within the expected range.","cannotDeserializeInvalidJson":"Cannot deserialize. The data does not correspond to valid JSON.","invalidHttpVerb":"httpVerb cannot be set to an empty or null string.","nullWebRequest":"Cannot call executeRequest with a null webRequest.","eventHandlerInvalid":"Handler was not added through the Sys.UI.DomEvent.addHandler method.","cannotSerializeNonFiniteNumbers":"Cannot serialize non finite numbers.","argumentUndefined":"Value cannot be undefined.","webServiceInvalidReturnType":"The server method \u0027{0}\u0027 returned an invalid type. Expected type: {1}","servicePathNotSet":"The path to the web service has not been set.","argumentTypeWithTypes":"Object of type \u0027{0}\u0027 cannot be converted to type \u0027{1}\u0027.","cannotCallOnceStarted":"Cannot call {0} once started.","badBaseUrl1":"Base URL does not contain ://.","badBaseUrl2":"Base URL does not contain another /.","badBaseUrl3":"Cannot find last / in base URL.","setExecutorAfterActive":"Cannot set executor after it has become active.","paramName":"Parameter name: {0}","nullReferenceInPath":"Null reference while evaluating data path: \u0027{0}\u0027.","cannotCallOutsideHandler":"Cannot call {0} outside of a completed event handler.","cannotSerializeObjectWithCycle":"Cannot serialize object with cyclic reference within child properties.","format":"One of the identified items was in an invalid format.","assertFailedCaller":"Assertion Failed: {0}\r\nat {1}","argumentOutOfRange":"Specified argument was out of the range of valid values.","webServiceTimedOut":"The server method \u0027{0}\u0027 timed out.","notImplemented":"The method or operation is not implemented.","assertFailed":"Assertion Failed: {0}","invalidOperation":"Operation is not valid due to the current state of the object.","breakIntoDebugger":"{0}\r\n\r\nBreak into debugger?"}; /* END MicrosoftAjax.js */ /* START Telerik.Web.UI.Common.Core.js */ (function(z,k,x){var s,u=Object.prototype,b=u.toString,n="[object Function]",j="div",p="input",t=z.navigator,y=t.userAgent; function q(A){return b.call(A)===n; }function a(A,B){B(); }function h(A){return k.createElement(A); }function o(B,A){return B.indexOf(A); }function r(A,B){return A.match(B); }function w(C){var A=k.createElement("div"),D="ms Moz webkit".split(" "),B=D.length; if(C in A.style){return true; }C=C.replace(/^[a-z]/,function(E){return E.toUpperCase(); }); while(B--){if(D[B]+C in A.style){return true; }}return false; }var m=function(){}; m.prototype={addTest:function d(A,D,C){var B=this; C=C||B; if(C[A]!==x){return; }D=q(D)?D():D; C[A]=D; },addSuite:function c(C,D){var B=this; C=B[C]={}; for(var A in D){if(D.hasOwnProperty(A)){B.addTest(A,D[A],C); }}}}; var v=new m(); var l=new m(); var e=new m(); var f=new m(); var g=new m(); var i=new m(); a("Platform",function(){v.addTest("windows",function(){return(o(y,"Windows")>-1&&o(y,"Windows Phone")==-1); }); v.addTest("mac",function(){return(o(y,"Macintosh")>-1); }); v.addTest("linux",function(){return(o(y,"Linux")>-1&&o(y,"Android")==-1); }); v.addTest("windowsphone",function(){return(o(y,"Windows Phone")>-1); }); v.addTest("android",function(){return(o(y,"Android")>-1&&o(y,"Windows Phone")==-1); }); v.addTest("ios",function(){return((o(y,"iPad")>-1||o(y,"iPhone")>-1||o(y,"iPod")>-1)&&o(y,"Windows Phone")==-1); }); v.addTest("ipad",function(){return(o(y,"iPad")>-1&&o(y,"Windows Phone")==-1); }); v.addTest("iphone",function(){return((o(y,"iPhone")>-1||o(y,"iPod")>-1)&&o(y,"Windows Phone")==-1); }); }); a("Engine",function(){l.addTest("trident",function(){return(o(y," Trident/")>-1); }); l.addTest("spartan",function(){return(o(y," Edge/")>-1); }); l.addTest("presto",function(){return(o(y," Opera/")>-1); }); l.addTest("gecko",function(){return(!l.trident&&o(y," Firefox/")>-1); }); l.addTest("webkit",function(){return(!l.spartan&&!l.trident&&o(y," AppleWebKit/")>-1); }); }); a("Browser",function(){e.addTest("ie",function(){return(v.windows&&(l.trident||o(y," MSIE ")>-1)); }); e.addTest("edge",function(){return(v.windows&&o(y," Edge/")>-1); }); e.addTest("iemobile",function(){return(v.windowsphone&&o(y," IEMobile/")>-1); }); e.addTest("edgemobile",function(){return(v.windowsphone&&o(y," Edge/")>-1); }); e.addTest("ff",function(){return(!e.ie&&o(y," Firefox/")>-1); }); e.addTest("opera",function(){return(o(y," OPR/")>-1)||(o(y," OPiOS/")>-1); }); e.addTest("operaPresto",function(){return(o(y," Opera/")>-1); }); e.addTest("operaMini",function(){return(o(y," Opera Mini/")>-1); }); e.addTest("webkit",function(){return(l.webkit); }); e.addTest("safari",function(){return(l.webkit&&o(y," Version/")>-1); }); e.addTest("chrome",function(){return(l.webkit&&!e.opera&&(o(y," Chrome/")>-1||o(y," CriOS/")>-1)); }); e.addTest("fullVersion",function(){var A=null; if(e.ie){A=o(y," rv:")>-1?/rv:([\d\.]+)/:/MSIE ([\d\.]+)/; }if(e.edge){A=/Edge\/([\d\.]+)/; }if(e.iemobile){A=/IEMobile\/([\d\.]+)/; }if(e.edgemobile){A=/Edge\/([\d\.]+)/; }if(e.ff){A=/Firefox\/([\d\.]+)/; }if(e.opera){A=/OP(?:R|iOS)\/([\d\.]+)/; }if(e.operaPresto){A=/Version\/([\d\.]+)/; }if(e.safari){A=/Version\/([\d\.]+)/; }if(e.chrome){A=/(?:Chrome|CriOS)\/([\d\.]+)/; }if(A===null){return null; }return r(y,A)[1]; }); e.addTest("version",function(){var A=e.fullVersion; if(A===null){return null; }return parseFloat(A); }); e.addTest("documentMode",k.documentMode||null); e.addTest("quirksMode",e.ie&&k.compatMode!=="CSS1Compat"); e.addTest("standardsMode",!e.quirksMode); }); a("Canvas",function(){var A=h("canvas"); f.addTest("canvas",!!(A.getContext&&A.getContext("2d"))); }); a("Input",function(){var A=h(p); f.addSuite("input",{autocomplete:!!("autocomplete" in A),autofocus:!!("autofocus" in A),list:!!("list" in A),max:!!("max" in A),min:!!("min" in A),multiple:!!("multiple" in A),pattern:!!("pattern" in A),placeholder:!!("placeholder" in A),required:!!("required" in A),step:!!("step" in A)}); }); a("Input types",function(){var A=h(p); function B(C){A.setAttribute("type",C); return A.type!=="text"; }f.addSuite("inputTypes",{color:B("color"),date:B("date"),datetime:B("datetime"),"datetime-local":B("datetime-local"),email:B("email"),month:B("month"),number:B("number"),range:B("range"),search:B("search"),tel:B("tel"),time:B("time"),url:B("url"),week:B("week")}); }); a("Observers",function(){f.addTest("propertychange","onpropertychange" in k); }); a("CSS Features",function(){var C=z.document.documentElement; var A=Sys.UI.DomElement.addCssClass; function B(){var G=k.documentElement,F=k.createElement(j),D=k.body,E=D||k.createElement("body"),H; F.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both"; F.innerHTML=" "; E.appendChild(F); if(!D){G.appendChild(E); }H=F.offsetWidth-F.scrollWidth; F.parentNode.removeChild(F); if(!D){E.parentNode.removeChild(E); }return H; }e.addTest("scrollBarWidth",B); i.addTest("boxShadow",function(){var D=w("boxShadow"); if(D===false){A(C,"t-no-boxshadow"); }return D; }); i.addTest("flexbox",function(){var D=w("flex"); if(D===false){A(C,"t-no-flexbox"); }return D; }); }); a("Events",function(){f.addTest("touchEvents",function(){return"ontouchstart" in z; }); f.addTest("pointerEvents",function(){return"PointerEvent" in z; }); f.addTest("msPointerEvents",function(){return"MSPointerEvent" in z; }); f.addTest("touchAndMouseEvents",function(){return f.touchEvents&&!v.android&&!v.ios; }); }); Type.registerNamespace("Telerik.Web"); s=Telerik.Web; s.Platform=v; s.Engine=l; s.Browser=e; s.BrowserFeatures=f; s.BrowserPlugins=g; s.CssFeatures=i; })(window,document); (function(f,c,e){var d=f.document.documentElement; var a=Sys.UI.DomElement.addCssClass; var b=Telerik.Web.Browser; Array.forEach(["chrome","ff","ie","opera","safari"],function(h,g){if(b[h]){a(d,String.format("t-{0} t-{0}{1}",h,b.version)); }}); })(window,document); try{if(Sys.Browser.agent==Sys.Browser.InternetExplorer){document.execCommand("BackgroundImageCache",false,true); }}catch(err){}Type.registerNamespace("Telerik.Web.UI"); (function(a){a.Point=function(b,c){this.x=b; this.y=c; }; a.Point.registerClass("Telerik.Web.UI.Point"); a.Bounds=function(d,e,c,b){this.x=d; this.y=e; this.height=b; this.width=c; }; a.Bounds.registerClass("Telerik.Web.UI.Bounds"); })(Telerik.Web.UI); var commonScripts={cloneJsObject:function(c,d){if(!d){d={}; }for(var a in c){var b=c[a]; d[a]=(b instanceof Array)?Array.clone(b):b; }return d; },isCloned:function(){return this._isCloned; },cloneControl:function(f,d,a){if(!f){return null; }if(!d){d=Object.getType(f); }var e=f.__clonedProperties__; if(null==e){e=f.__clonedProperties__=$telerik._getPropertiesParameter(f,d); }if(!a){a=f.get_element().cloneNode(true); a.removeAttribute("control"); a.removeAttribute("id"); }var c=$create(d,e,null,null,a); if(f._observerContext){c._observerContext=f._observerContext; }var b=$telerik.cloneJsObject(f.get_events()); c._events=b; c._events._list=$telerik.cloneJsObject(c._events._list); c._isCloned=true; c.isCloned=$telerik.isCloned; return c; },_getPropertiesParameter:function(h,d){var c={}; var f=d.prototype; for(var b in f){var a=h[b]; if(typeof(a)=="function"&&b.indexOf("get_")==0){var e=b.substring(4); if(null==h["set_"+e]){continue; }var g=a.call(h); if(null==g){continue; }c[e]=g; }}delete c.clientStateFieldID; delete c.id; return c; },getOuterSize:function(a){var c=$telerik.getSize(a); var b=$telerik.getMarginBox(a); return{width:c.width+b.left+b.right,height:c.height+b.top+b.bottom}; },getOuterBounds:function(a){var c=$telerik.getBounds(a); var b=$telerik.getMarginBox(a); return{x:c.x-b.left,y:c.y-b.top,width:c.width+b.left+b.right,height:c.height+b.top+b.bottom}; },getInvisibleParent:function(a){var b=function(c){return $telerik.getCurrentStyle(c,"display","")==="none"; }; return this.getParentBy(a,b); },getHiddenParent:function(b){var a=function(c){return $telerik.getCurrentStyle(c,"visibility","")==="hidden"; }; return this.getParentBy(b,a); },getParentBy:function(c,a){var b=c.nodeType==c.DOCUMENT_NODE?c:c.ownerDocument; while(c&&c!=b){if(a(c)){return c; }c=c.parentNode; }return null; },isScrolledIntoView:function(d){var a=d.ownerDocument; var g=(a.defaultView)?a.defaultView:a.parentWindow; var c=$telerik.$(g).scrollTop(),b=c+$telerik.$(g).height(),f=$telerik.$(d).offset().top,e=f+$telerik.$(d).height(); return((f+((e-f)/4))>=c&&((f+((e-f)/4))<=b)); },scrollIntoView:function(b){if(!b||!b.parentNode){return; }var g=null,c=b.offsetParent,h=b.offsetTop,f=0; var e=b.parentNode; while(e!=null){var d=$telerik.getCurrentStyle(e,"overflowY"); if(d=="scroll"||d=="auto"){g=e; break; }if(e==c){h+=e.offsetTop; c=e.offsetParent; }if(e.tagName=="BODY"){var a=e.ownerDocument; if(!$telerik.isIE&&a.defaultView&&a.defaultView.frameElement){f=a.defaultView.frameElement.offsetHeight; }g=e; break; }e=e.parentNode; }if(!g){return; }if(!f){f=g.offsetHeight; }if((g.scrollTop+f)<(h+b.offsetHeight)){g.scrollTop=(h+b.offsetHeight)-f; }else{if(h<(g.scrollTop)){g.scrollTop=h; }}},getScrollableParent:function(a){var c=a.parentNode,d=null,b; while(c!=null){b=$telerik.getCurrentStyle(c,"overflowY"); if(b=="scroll"||b=="auto"){d=c; break; }c=c.parentNode; }return d; },getScrollableParents:function(a){var c=a.parentNode,d=[],b; while(c!=null&&c.nodeType===1){b=$telerik.getCurrentStyle(c,"overflowY"); if(b=="scroll"||b=="auto"){d.push(c); }c=c.parentNode; }return d; },withFrozenParentsScroll:function(b,a){var e=$telerik.getScrollableParents(b); var f=[]; var g=$telerik.$(window).scrollTop(); for(var c=0; cw){C.x+=z.offsetLeft-w; }z.style.display=v; }C.x-=$telerik.getCorrectScrollLeft(z); C.y-=z.scrollTop; if(h!="inline"){z=z.parentNode; }else{z=z.offsetParent; }}}var y=Math.max(d.documentElement.scrollTop,d.body.scrollTop); var x=Math.max(d.documentElement.scrollLeft,d.body.scrollLeft); if($telerik.isSafari||$telerik.isSpartan){if(y>0||x>0){var m=d.documentElement.getElementsByTagName("form"); if(m&&m.length>0){var l=$telerik.originalGetLocation(m[0]); if(l.y&&l.y<0){C.y+=y; }if(l.x&&l.x<0){C.x+=x; }}else{var G=g.parentNode,s=false,q=false; while(G&&G.tagName){var A=$telerik.originalGetLocation(G); if(A.y<0){s=true; }if(A.x<0){q=true; }G=G.parentNode; }if(s){C.y+=y; }if(q){C.x+=x; }}}}return C; },setLocation:function(a,b){var c=a.style; c.position="absolute"; c.left=b.x+"px"; c.top=b.y+"px"; },getElementQuery:function(d){var f=[]; while(d.parentNode){if(d.id){f.unshift("#"+d.id); break; }else{if(d==d.ownerDocument.documentElement){f.unshift(d.tagName); }else{for(var a=1,b=d; b.previousElementSibling; b=b.previousElementSibling,a++){}f.unshift(String.format("{0}:nth-child({1})",d.tagName,a)); }d=d.parentNode; }}return f.join(" > "); },findControl:function(f,d){var b=f.getElementsByTagName("*"); for(var c=0,e=b.length; cTelerik.Web.BoxSide.Left){throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,a,"Telerik.Web.BoxSide")); }var c=$telerik._borderStyleNames[a]; var d=$telerik.getCurrentStyle(b,c); return d!="none"; },getMargin:function(b,a){if(!b){throw Error.argumentNull("element"); }if(aTelerik.Web.BoxSide.Left){throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,a,"Telerik.Web.BoxSide")); }var d=$telerik._marginWidthNames[a]; var e=$telerik.getCurrentStyle(b,d); try{return $telerik.parsePadding(e); }catch(c){return 0; }},getBorderWidth:function(b,a){if(!b){throw Error.argumentNull("element"); }if(aTelerik.Web.BoxSide.Left){throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,a,"Telerik.Web.BoxSide")); }if(!$telerik.isBorderVisible(b,a)){return 0; }var c=$telerik._borderWidthNames[a]; var d=$telerik.getCurrentStyle(b,c); return $telerik.parseBorderWidth(d); },getPadding:function(b,a){if(!b){throw Error.argumentNull("element"); }if(aTelerik.Web.BoxSide.Left){throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,a,"Telerik.Web.BoxSide")); }var c=$telerik._paddingWidthNames[a]; var d=$telerik.getCurrentStyle(b,c); return $telerik.parsePadding(d); },parseBorderWidth:function(a){if(a){switch(a){case"thin":case"medium":case"thick":return $telerik._borderThicknesses[a]; case"inherit":return 0; }var b=$telerik.parseUnit(a); return b.size; }return 0; },parsePadding:function(a){if(a){if(a=="auto"||a=="inherit"){return 0; }var b=$telerik.parseUnit(a); return b.size; }return 0; },parseUnit:function(g){if(!g){throw Error.argumentNull("value"); }g=g.trim().toLowerCase(); var c=g.length; var d=-1; for(var b=0; b"9")&&a!="-"&&a!="."&&a!=","){break; }d=b; }if(d==-1){throw Error.create("No digits"); }var f; var e; if(d<(c-1)){f=g.substring(d+1).trim(); }else{f="px"; }e=parseFloat(g.substr(0,d+1)); if(f=="px"){e=Math.floor(e); }return{size:e,type:f}; },containsPoint:function(a,b,c){return b>=a.x&&b<=(a.x+a.width)&&c>=a.y&&c<=(a.y+a.height); },isDescendant:function(a,b){try{for(var d=b.parentNode; d!=null; d=d.parentNode){if(d==a){return true; }}}catch(c){}return false; },isDescendantOrSelf:function(a,b){if(a===b){return true; }return $telerik.isDescendant(a,b); },addCssClasses:function(b,a){for(var c=0; c=0; f--){var d=e[f]; if(!a||d.autoRemove){$telerik.removeHandler(c,g,d.handler); }}}c._events=null; }},_disposeHandlers:function(){$telerik._clearHandlers(this,true); var a=this._chainDispose,b=typeof(a); if(b!=="undefined"){this.dispose=a; this._chainDispose=null; if(b==="function"){this.dispose(); }}},removeHandler:function(a,b,c){$telerik._removeHandler(a,b,c); },_removeHandler:function(d,f,g){var a=null; var b=d._events[f]||[]; for(var h=0,j=b.length; h=61)||(Telerik.Web.Browser.opera&&Telerik.Web.Browser.version>=48)){a=document.documentElement; if(Telerik.Web.Browser.edge){a=document.body; }}if(window.innerWidth){c=Math.max(document.documentElement.clientWidth,document.body.clientWidth); b=Math.max(document.documentElement.clientHeight,document.body.clientHeight); if(c>window.innerWidth){c=document.documentElement.clientWidth; }if(b>window.innerHeight){b=document.documentElement.clientHeight; }}else{c=a.clientWidth; b=a.clientHeight; }c+=a.scrollLeft; b+=a.scrollTop; if($telerik.isMobileSafari){c+=window.pageXOffset; b+=window.pageYOffset; }return{width:c-6,height:b-6}; },elementOverflowsTop:function(b,a){var c=a||$telerik.getLocation(b); return c.y<0; },elementOverflowsLeft:function(b,a){var c=a||$telerik.getLocation(b); return c.x<0; },elementOverflowsBottom:function(e,c,b){var d=b||$telerik.getLocation(c); var a=d.y+c.offsetHeight; return a>e.height; },elementOverflowsRight:function(e,b,a){var c=a||$telerik.getLocation(b); var d=c.x+b.offsetWidth; return d>e.width; },getDocumentRelativeCursorPosition:function(c){var b=document.documentElement,a=document.body,f=($telerik.quirksMode||a.scrollLeft>b.scrollLeft)?$telerik.getCorrectScrollLeft(a):$telerik.getCorrectScrollLeft(b),d=c.clientX+f,g=c.clientY+$telerik.getDocumentElementScrollTop(); if($telerik.isIE6||$telerik.isIE7){d-=2; g-=2; }return{left:d,top:g}; },getDocumentElementScrollTop:function(){var b=document.documentElement,a=document.body; return($telerik.quirksMode||a.scrollTop>b.scrollTop)?a.scrollTop:b.scrollTop; },getDocumentElementScrollLeft:function(){var b=document.documentElement,a=document.body; return($telerik.quirksMode||a.scrollLeft>b.scrollLeft)?a.scrollLeft:b.scrollLeft; },evalScriptCode:function(b){if($telerik.isSafari){b=b.replace(/^\s*\s*$/mi,"$1"); }var a=document.createElement("script"); a.setAttribute("type","text/javascript"); a.text=b; var c=document.getElementsByTagName("head")[0]; c.appendChild(a); a.parentNode.removeChild(a); },isScriptRegistered:function(k,a){if(!k){return 0; }if(!a){a=document; }if($telerik._uniqueScripts==null){$telerik._uniqueScripts={}; }var h=document.getElementsByTagName("script"); var f=0; var c=k.indexOf("?d="); var d=k.indexOf("&"); var j=c>0&&d>c?k.substring(c+3,d):k; if($telerik._uniqueScripts[j]!=null){return 2; }for(var b=0,e=h.length; b0&&($telerik.isIE||$telerik.isSafari)){window.setTimeout(function(){e(n,o); },5); }else{var i=document.createElement("script"); i.setAttribute("type","text/javascript"); document.getElementsByTagName("head")[0].appendChild(i); i.loadFinished=false; i.onload=function(){if(!this.loadFinished){this.loadFinished=true; h++; }}; i.onreadystatechange=function(){if("loaded"===this.readyState&&!this.loadFinished){this.loadFinished=true; h++; }}; i.setAttribute("src",o); }}; var k=[]; for(var c=0,d=g.length; c0){window.setTimeout(l,20); }else{for(var i=0; i0){var a=document.getElementsByTagName("head")[0]; if(a){for(var d=0,g=h.length; d=0){try{k.href=k.href.replace("&ie7CacheFix",""); k.href=k.href.replace("?ie7CacheFix",""); }catch(b){}}if(l&&l.length>0){var f=l.length-1; while(f>=0&&l[f--].href!=k.href){continue; }if(f>=0){continue; }}if($telerik.isIE&&!$telerik.isIE9Mode){k.parentNode.removeChild(k); k=k.cloneNode(true); }a.appendChild(k); if(g>h.length){g=h.length; d--; }}}}}},getFirstChildByTagName:function(b,d,c){if(!b||!b.childNodes){return null; }var a=b.childNodes[c]||b.firstChild; while(a){if(a.nodeType==1&&a.tagName.toLowerCase()==d){return a; }a=a.nextSibling; }return null; },getChildByClassName:function(c,a,d){var b=c.childNodes[d]||c.firstChild; while(b){if(b.nodeType==1&&b.className.indexOf(a)>-1){return b; }b=b.nextSibling; }return null; },getChildrenByTagName:function(d,g){var c=[]; var b=d.childNodes; if($telerik.isIE){b=d.children; }for(var e=0,f=b.length; e-1){Array.add(c,a); }}return c; },mergeElementAttributes:function(d,e,b){if(!d||!e){return; }if(d.mergeAttributes){e.mergeAttributes(d,b); }else{for(var a=0; a/g; return(""+d).replace(a,"&").replace(c,"<").replace(b,">"); },htmlDecode:function(d){var a=/&/g,c=/</g,b=/>/g; return(""+d).replace(b,">").replace(c,"<").replace(a,"&"); }}; if(window.$telerik==undefined){window.$telerik=commonScripts; }else{if($telerik.$!=undefined&&$telerik.$.extend){$telerik.$.extend(window.$telerik,commonScripts); }}window.TelerikCommonScripts=Telerik.Web.CommonScripts=window.$telerik; (function(i,g){function b(k,j){return k.indexOf(j); }function c(j,k){return j.match(k); }var e=i.navigator,h=e.userAgent,f,d,a; $telerik.isTrident=b(h," Trident/")>-1; $telerik.isSpartan=b(h," Edge/")>-1; $telerik.isIE=(b(h," MSIE ")>-1||$telerik.isTrident); $telerik.isFirefox=b(h," Firefox/")>-1&&!$telerik.isIE; if($telerik.isIE){f=/MSIE ([\d\.]+)/; d=c(h,f); if(d){a=d[1]; }else{f=/rv:([\d\.]+)/; d=c(h,f); if(d){a=d[1]; }}$telerik.isIE6=a<7; $telerik.isIE7=a==7||(document.documentMode&&document.documentMode==7); $telerik.isIE8=document.documentMode&&document.documentMode==8; $telerik.isIE9=document.documentMode&&document.documentMode==9; $telerik.isIE9Mode=document.documentMode&&document.documentMode>=9; $telerik.isIE10=document.documentMode&&document.documentMode==10; $telerik.isIE10Mode=document.documentMode&&document.documentMode>=10; }})(window); if(typeof(Sys.Browser.WebKit)=="undefined"){Sys.Browser.WebKit={}; }if(typeof(Sys.Browser.Chrome)=="undefined"){Sys.Browser.Chrome={}; }if(navigator.userAgent.indexOf("Chrome")>-1&&!($telerik.isTrident||$telerik.isSpartan)){Sys.Browser.version=parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/i)[1]); Sys.Browser.agent=Sys.Browser.Chrome; Sys.Browser.name="Chrome"; }else{if(navigator.userAgent.indexOf("WebKit/")>-1&&!($telerik.isTrident||$telerik.isSpartan)){Sys.Browser.version=parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/i)[1]); if(Sys.Browser.version<500){Sys.Browser.agent=Sys.Browser.Safari; Sys.Browser.name="Safari"; }else{Sys.Browser.agent=Sys.Browser.WebKit; Sys.Browser.name="WebKit"; }}}$telerik.isMobileSafari=(navigator.userAgent.search(/like\sMac\sOS\sX.*Mobile\/\S+/)!=-1); $telerik.isChrome=Sys.Browser.agent==Sys.Browser.Chrome; $telerik.isSafari6=Sys.Browser.agent==Sys.Browser.WebKit&&Sys.Browser.version>=536; $telerik.isSafari5=Sys.Browser.agent==Sys.Browser.WebKit&&Sys.Browser.version>=534&&Sys.Browser.version<536; $telerik.isSafari4=Sys.Browser.agent==Sys.Browser.WebKit&&Sys.Browser.version>=526&&Sys.Browser.version<534; $telerik.isSafari3=Sys.Browser.agent==Sys.Browser.WebKit&&Sys.Browser.version<526&&Sys.Browser.version>500; $telerik.isSafari2=false; $telerik.isSafari=$telerik.isSafari2||$telerik.isSafari3||$telerik.isSafari4||$telerik.isSafari5||$telerik.isSafari6||$telerik.isChrome; $telerik.isAndroid=(navigator.userAgent.search(/Android/i)!=-1)&&!($telerik.isTrident||$telerik.isSpartan); $telerik.isBlackBerry4=(navigator.userAgent.search(/BlackBerry\d+\/4[\d\.]+/i)!=-1); $telerik.isBlackBerry5=(navigator.userAgent.search(/BlackBerry\d+\/5[\d\.]+/i)!=-1); $telerik.isBlackBerry6=(navigator.userAgent.search(/BlackBerry.*Safari\/\S+/i)!=-1); $telerik.isBlackBerry=$telerik.isBlackBerry4||$telerik.isBlackBerry5||$telerik.isBlackBerry6; $telerik.isOpera=Sys.Browser.agent==Sys.Browser.Opera; $telerik.isFirefox2=$telerik.isFirefox&&Sys.Browser.version<3; $telerik.isFirefox3=$telerik.isFirefox&&Sys.Browser.version>=3; $telerik.quirksMode=$telerik.isIE&&document.compatMode!="CSS1Compat"; $telerik.standardsMode=!$telerik.quirksMode; $telerik.OperaEngine=0; $telerik.OperaVersionString=window.opera?window.opera.version():0; $telerik.OperaVersion=$telerik.OperaVersionString?(parseInt($telerik.OperaVersionString*10,10)/10):0; if($telerik.isOpera){$telerik._prestoVersion=navigator.userAgent.match(/Presto\/(\d+\.(\d+)?)/); if($telerik._prestoVersion){$telerik.OperaEngine=parseInt($telerik._prestoVersion[1],10)+(parseInt($telerik._prestoVersion[2],10)/100); }}$telerik.isOpera9=$telerik.isOpera&&$telerik.OperaVerNumber<10; $telerik.isOpera10=$telerik.isOpera&&$telerik.OperaVersion>=10&&$telerik.OperaVersion<10.5; $telerik.isOpera105=$telerik.isOpera&&$telerik.OperaVersion>=10.5; $telerik.isOpera11=$telerik.isOpera&&$telerik.OperaVersion>11; $telerik.isMobileOpera=$telerik.isOpera&&(navigator.userAgent.search(/opera (?:mobi|tablet)/i)!=-1); $telerik.isMobileIE10=$telerik.isIE10Mode&&(navigator.userAgent.search(/\bARM\b;|\bTouch\b/i)!=-1); $telerik.isTouchDevice=$telerik.isMobileSafari||$telerik.isAndroid||$telerik.isBlackBerry6||$telerik.isMobileOpera; if($telerik.isIE9Mode){document.documentElement.className+=" _Telerik_IE9"; }if($telerik.isOpera11){document.documentElement.className+=" _Telerik_Opera11"; }else{if($telerik.isOpera105){document.documentElement.className+=" _Telerik_Opera105"; }}$telerik.cssVendorPrefix=(function(){var c=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,d="",a=document.createElement("div"); for(var b in a.style){if(c.test(b)){d=b.match(c)[0]; }}if(!d&&"WebkitOpacity" in a.style){d="Webkit"; }if(!d&&"KhtmlOpacity" in a.style){d="Khtml"; }a=null; return d; })(); (function(k,i){var b,a; var c=/-([\da-z])/gi,d=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/,e=new RegExp("^("+d.source+")(?!px)[a-z%]+$","i"),g=/^(top|right|bottom|left)$/; function h(l){return l.replace(c,f); }function f(m,l){return l.toUpperCase(); }function j(o,n){if(n in o){return n; }var l=n.charAt(0).toUpperCase()+n.slice(1),m=n; n=$telerik.cssVendorPrefix+l; if(n in o){return n; }return m; }if(k.getComputedStyle){b=function(l){return l.ownerDocument.defaultView.getComputedStyle(l,null); }; a=function(m,n){var l=b(m); return l?l.getPropertyValue(n)||l[n]:i; }; }else{if(document.documentElement.currentStyle){b=function(l){return l.currentStyle; }; a=function(m,p){var l=b(m),n=m.style,s,r,o,q; q=l?l[p]:i; if(q===null&&n&&n[p]){q=n[p]; }if(e.test(q)&&!g.test(p)){o=n.left; s=m.runtimeStyle; r=s&&s.left; if(r){s.left=m.currentStyle.left; }n.left=p==="fontSize"?"1em":q; q=n.pixelLeft+"px"; n.left=o; if(r){s.left=r; }}return q; }; }}$telerik.getComputedStyle=function(m,o,l){var n=h(o),p=null; if(m){o=j(m.style,n); p=a(m,o); if(!p&&p!==0){p=(typeof(l)!="undefined")?l:null; }}return p; }; $telerik.getCurrentStyle=function(m,n,l){return $telerik.getComputedStyle(m,n,l); }; })(window); if(document.documentElement.getBoundingClientRect){$telerik.originalGetLocation=function(g){var d=Function._validateParams(arguments,[{name:"element",domElement:true}]); if(d){throw d; }if(g.self||g.nodeType===9||(g===document.documentElement)||(g.parentNode===g.ownerDocument.documentElement)){return new Telerik.Web.UI.Point(0,0); }var b=g.getBoundingClientRect(); if(!b){return new Telerik.Web.UI.Point(0,0); }var c=g.ownerDocument.documentElement,k=Math.round(b.left)+c.scrollLeft,l=Math.round(b.top)+c.scrollTop; if(Sys.Browser.agent===Sys.Browser.InternetExplorer){try{var i=g.ownerDocument.parentWindow.frameElement||null; if(i){var j=(i.frameBorder==="0"||i.frameBorder==="no")?2:0; k+=j; l+=j; }}catch(h){}if(Sys.Browser.version===7&&!document.documentMode){var a=document.body,m=a.getBoundingClientRect(),n=(m.right-m.left)/a.clientWidth; n=Math.round(n*100); n=(n-n%5)/100; if(!isNaN(n)&&(n!==1)){k=Math.round(k/n); l=Math.round(l/n); }}if((document.documentMode||0)<8){k-=c.clientLeft; l-=c.clientTop; }}return new Telerik.Web.UI.Point(k,l); }; }else{if($telerik.isSafari){$telerik.originalGetLocation=function(c){var b=Function._validateParams(arguments,[{name:"element",domElement:true}]); if(b){throw b; }if((c.window&&(c.window===c))||c.nodeType===9){return new Telerik.Web.UI.Point(0,0); }var f=0,g=0,h,j=null,k=null,a,l; for(h=c; h; j=h,k=a,h=h.offsetParent){a=Sys.UI.DomElement._getCurrentStyle(h); l=h.tagName?h.tagName.toUpperCase():null; if((h.offsetLeft||h.offsetTop)&&((l!=="BODY")||(!k||k.position!=="absolute"))){f+=h.offsetLeft; g+=h.offsetTop; }if(j&&Sys.Browser.version>=3){f+=parseInt(a.borderLeftWidth,10); g+=parseInt(a.borderTopWidth,10); }}a=Sys.UI.DomElement._getCurrentStyle(c); var d=a?a.position:null; if(!d||(d!=="absolute")){for(h=c.parentNode; h; h=h.parentNode){l=h.tagName?h.tagName.toUpperCase():null; if((l!=="BODY")&&(l!=="HTML")&&(h.scrollLeft||h.scrollTop)){f-=(h.scrollLeft||0); g-=(h.scrollTop||0); }a=Sys.UI.DomElement._getCurrentStyle(h); var i=a?a.position:null; if(i&&(i==="absolute")){break; }}}return new Telerik.Web.UI.Point(f,g); }; }else{$telerik.originalGetLocation=function(c){var b=Function._validateParams(arguments,[{name:"element",domElement:true}]); if(b){throw b; }if((c.window&&(c.window===c))||c.nodeType===9){return new Telerik.Web.UI.Point(0,0); }var f=0,g=0,h,i=null,j=null,a=null,k; for(h=c; h; i=h,j=a,h=h.offsetParent){k=h.tagName?h.tagName.toUpperCase():null; a=Sys.UI.DomElement._getCurrentStyle(h); if((h.offsetLeft||h.offsetTop)&&!((k==="BODY")&&(!j||j.position!=="absolute"))){f+=h.offsetLeft; g+=h.offsetTop; }if(i!==null&&a){if((k!=="TABLE")&&(k!=="TD")&&(k!=="HTML")){f+=parseInt(a.borderLeftWidth,10)||0; g+=parseInt(a.borderTopWidth,10)||0; }if(k==="TABLE"&&(a.position==="relative"||a.position==="absolute")){f+=parseInt(a.marginLeft,10)||0; g+=parseInt(a.marginTop,10)||0; }}}a=Sys.UI.DomElement._getCurrentStyle(c); var d=a?a.position:null; if(!d||(d!=="absolute")){for(h=c.parentNode; h; h=h.parentNode){k=h.tagName?h.tagName.toUpperCase():null; if((k!=="BODY")&&(k!=="HTML")&&(h.scrollLeft||h.scrollTop)){f-=(h.scrollLeft||0); g-=(h.scrollTop||0); a=Sys.UI.DomElement._getCurrentStyle(h); if(a){f+=parseInt(a.borderLeftWidth,10)||0; g+=parseInt(a.borderTopWidth,10)||0; }}}}return new Telerik.Web.UI.Point(f,g); }; }}Sys.Application.add_init(function(){try{$telerik._borderThickness(); }catch(a){}}); Telerik.Web.UI.Orientation=function(){throw Error.invalidOperation(); }; Telerik.Web.UI.Orientation.prototype={Horizontal:0,Vertical:1}; Telerik.Web.UI.Orientation.registerEnum("Telerik.Web.UI.Orientation",false); Telerik.Web.UI.RenderMode=function(){throw Error.invalidOperation(); }; Telerik.Web.UI.RenderMode.prototype={Auto:0,Classic:1,Lite:2,Native:3,Mobile:4}; Telerik.Web.UI.RenderMode.registerEnum("Telerik.Web.UI.RenderMode",false); Telerik.Web.UI.DayOfWeek=function(){throw Error.invalidOperation(); }; Telerik.Web.UI.DayOfWeek.prototype={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6}; Telerik.Web.UI.DayOfWeek.registerEnum("Telerik.Web.UI.DayOfWeek",false); Telerik.Web.UI.RadWebControl=function(a){Telerik.Web.UI.RadWebControl.initializeBase(this,[a]); this._clientStateFieldID=null; this._renderMode=Telerik.Web.UI.RenderMode.Classic; this._shouldUpdateClientState=true; this._invisibleParents=[]; this._enableRippleEffect=false; }; Telerik.Web.UI.RadWebControl.prototype={initialize:function(){Telerik.Web.UI.RadWebControl.callBaseMethod(this,"initialize"); $telerik.registerControl(this); this._registerToMaterialRippleManager(); if(!this.get_clientStateFieldID()){return; }var a=$get(this.get_clientStateFieldID()); if(!a){return; }a.setAttribute("autocomplete","off"); },dispose:function(){$telerik.unregisterControl(this); this._disposeMaterialRipples(); var c=this.get_element(); this._clearParentShowHandlers(); Telerik.Web.UI.RadWebControl.callBaseMethod(this,"dispose"); if(c){c.control=null; var a=true; if(c._events){for(var b in c._events){if(c._events[b].length>0){a=false; break; }}if(a){c._events=null; }}}},raiseEvent:function(b,a){var c=this.get_events().getHandler(b); if(c){if(!a){a=Sys.EventArgs.Empty; }c(this,a); }},updateClientState:function(){if(this._shouldUpdateClientState){this.set_clientState(this.saveClientState()); }},saveClientState:function(){return null; },get_clientStateFieldID:function(){return this._clientStateFieldID; },set_clientStateFieldID:function(a){if(this._clientStateFieldID!=a){this._clientStateFieldID=a; this.raisePropertyChanged("ClientStateFieldID"); }},get_renderMode:function(){return this._renderMode; },set_renderMode:function(a){if(this._renderMode!=a){this._renderMode=a; this.raisePropertyChanged("RenderMode"); }},get_clientState:function(){if(this._clientStateFieldID){var a=document.getElementById(this._clientStateFieldID); if(a){return a.value; }}return null; },set_clientState:function(b){if(this._clientStateFieldID){var a=document.getElementById(this._clientStateFieldID); if(a){a.value=b; }}},get_enabled:function(){return this._enabled; },set_enabled:function(a){this._enabled=a; },repaint:function(){},canRepaint:function(){return this.get_element()&&(this.get_element().offsetWidth>0); },add_parentShown:function(a){var b=$telerik.getInvisibleParent(a); if(!b){return; }if(!Array.contains(this._invisibleParents,b)){Array.add(this._invisibleParents,b); this._handleHiddenParent(true,b); }},remove_parentShown:function(a){Array.remove(this._invisibleParents,a); this._handleHiddenParent(false,a); },_registerToMaterialRippleManager:function(){if(this._enableRippleEffect&&Telerik.Web.UI.MaterialRippleManager){var a=Telerik.Web.UI.MaterialRippleManager.getInstance(); if(a){this._materialRippleManager=a; a.get_controls().push(this); }}},_disposeMaterialRipples:function(){if(this._enableRippleEffect&&Telerik.Web.UI.MaterialRippleManager&&Telerik.Web.UI.MaterialRippleManager.getInstance()){Telerik.Web.UI.MaterialRippleManager.getInstance().disposeControl(this); }},_handleHiddenParent:function(e,d){if(!d){return; }if(!this._parentShowDelegate){this._parentShowDelegate=Function.createDelegate(this,this._parentShowHandler); }var a=this._parentShowDelegate; if(typeof(MutationObserver)!=="undefined"){if(e){if(!this.parentShownObserver){this.parentShownObserver=new Telerik.Web.UI.NodeMutationObserver(a); }this.parentShownObserver.observe(d,{attributes:true,attributeOldValue:true,attributeFilter:["style","class"],subtree:false}); }else{if(this.parentShownObserver){this.parentShownObserver.disconnect(d); if(this.parentShownObserver.isEmpty()){this.parentShownObserver.dispose(); this.parentShownObserver=null; }}}return; }var b="DOMAttrModified"; if($telerik.isIE){b="propertychange"; }var c=e?$telerik.addExternalHandler:$telerik.removeExternalHandler; c(d,b,a); },_parentShowHandler:function(c){if(c.length!==null&&!isNaN(c.length)){var a=this; Array.forEach(c,function(g){if(g.attributeName=="style"||g.attributeName=="class"){var e=g.target; if("none"!=$telerik.getCurrentStyle(e,"display")){a._runWhenParentShows(g); }}}); }else{if($telerik.isIE){if(c.rawEvent){c=c.rawEvent; }if(!c||!c.srcElement||!c.propertyName){return; }var f=c.srcElement; if(c.propertyName=="style.display"||c.propertyName=="className"){var b=$telerik.getCurrentStyle(f,"display"); if(b!="none"){c.target=f; this._runWhenParentShows(c); }}}else{if(c.attrName=="style"||c.attrName=="class"){var d=c.target; if((c.currentTarget==c.target)&&("none"!=$telerik.getCurrentStyle(d,"display"))){window.setTimeout(Function.createDelegate(this,function(){this._runWhenParentShows(c); }),0); }}}}},_runWhenParentShows:function(a){var b=a.target; this.remove_parentShown(b); this.repaint(); },_clearParentShowHandlers:function(){var a=this._invisibleParents; for(var b=0; b0); var b=c.ctrlKey===((2&d)>0); var h=c.shiftKey===((8&d)>0); var g=a&&b&&h; if(d&f.None){g=false; }if(d&f.Cmd){g=c.metaKey; }return g; }}; Telerik.Web.UI.KeyboardNavigationSettings.registerClass("Telerik.Web.UI.KeyboardNavigationSettings"); Telerik.Web.UI.KeyboardModifier=function(){throw Error.invalidOperation(); }; Telerik.Web.UI.KeyboardModifier.prototype={None:1,Ctrl:2,Alt:4,AltCtrl:6,Shift:8,CtrlShift:10,AltShift:12,Cmd:16}; Telerik.Web.UI.KeyboardModifier.registerEnum("Telerik.Web.UI.KeyboardModifier",false); Telerik.Web.UI.ActionsManager=function(a){Telerik.Web.UI.ActionsManager.initializeBase(this); this._actions=[]; this._currentActionIndex=-1; }; Telerik.Web.UI.ActionsManager.prototype={get_actions:function(){return this._actions; },shiftPointerLeft:function(){this._currentActionIndex--; },shiftPointerRight:function(){this._currentActionIndex++; },get_currentAction:function(){return this.get_actions()[this._currentActionIndex]; },get_nextAction:function(){return this.get_actions()[this._currentActionIndex+1]; },addAction:function(a){if(a){var b=new Telerik.Web.UI.ActionsManagerEventArgs(a); this.raiseEvent("executeAction",b); this._clearActionsToRedo(); Array.add(this._actions,a); this._currentActionIndex=this._actions.length-1; return true; }return false; },undo:function(d){if(d==null){d=1; }if(d>this._actions.length){d=this._actions.length; }var c=0; var a=null; while(0this._actions.length){e=this._actions.length; }var d=0; var a=null; var b=this._currentActionIndex+1; while(0=a){this._currentActionIndex--; }},canUndo:function(){return(-1',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; r1){o=1; }var f=(o*b); l+=f; if(o<1){n=String.format("Remaining characters",p.PreferredPasswordLength-m.length); }var i; if(p.MinimumNumericCharacters>0){var h=new RegExp("[0-9]","g"); i=this._getRegexCount(h,m); if(i>=p.MinimumNumericCharacters){l+=c; }if(i0||k>0){if(j>=p.MinLowerCaseChars&&k>=p.MinUpperCaseChars){l+=a; }else{if(p.MinLowerCaseChars>0&&(p.MinLowerCaseChars-j)>0){if(n!=""){n+=", "; }n+=String.format("Remaining lower case",p.MinLowerCaseChars-j); }if(p.MinUpperCaseChars>0&&(p.MinUpperCaseChars-k)>0){if(n!=""){n+=", "; }n+=String.format("Remaining upper case",p.MinUpperCaseChars-k); }}}else{if(n!=""){n+=", "; }n+="Mixed case characters"; }}else{l+=(o*a); }if(p.MinimumSymbolCharacters>0){var q=new RegExp("[^a-zA-Z0-9\x20]","g"); i=this._getRegexCount(q,m); if(i>=p.MinimumSymbolCharacters){l+=d; }if(i0&&b._strengthScore<=100){c=Math.floor(b._strengthScore/25); }var d=""; if(b._indicatorText){d=b._indicatorText; }else{if(h._IndicatorWords==undefined){h._IndicatorWords=h.TextStrengthDescriptions.split(";"); while(h._IndicatorWords.length<5){h._IndicatorWords[h._IndicatorWords.length]=""; }}if(c!=null){d=h._IndicatorWords[c]; }}if(h._IndicatorStyles==undefined){h._IndicatorStyles=h.TextStrengthDescriptionStyles.split(";"); }var f=null; if(h.IndicatorElementID==""){if(e.get_element){f=$get(e.get_element().id+"_passwordStrengthIndicator"); }else{f=$get(a.id+"_passwordStrengthIndicator"); }}else{f=$get(h.IndicatorElementID); }if(f){f.innerHTML=d; if(c!=null){f.className=h.IndicatorElementBaseStyle+" "+h._IndicatorStyles[c+1]; }else{f.className=h.IndicatorElementBaseStyle+" "+h._IndicatorStyles[0]; }}},_getRegexCount:function(b,d){var a=0; if(d!=null&&d!=""){var c=d.match(b); if(c!=null){a=c.length; }}return a; }}; Telerik.Web.UI.PasswordStrengthChecker.registerClass("Telerik.Web.UI.PasswordStrengthChecker",Telerik.Web.UI.RadWebControl); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadInputControl=function(a){Telerik.Web.UI.RadInputControl.initializeBase(this,[a]); this._autoPostBack=false; this._enabled=true; this._showButton=false; this._invalidStyleDuration=100; this._selectionOnFocus=Telerik.Web.UI.SelectionOnFocus.None; this._postBackEventReferenceScript=""; this._styles=null; this._skin=null; this._enableAriaSupport=false; this._causesValidation=false; this._validationGroup=""; this._isEnterPressed=false; this._isDropped=false; this._enableOldBoxModel=false; this._shouldResetWidthInPixels=true; this._reducedPixelWidthFlag=false; this._originalTextBoxWidth=null; this._originalCellPadding=null; this._originalDisplay=null; this._onTextBoxKeyUpDelegate=null; this._onTextBoxKeyPressDelegate=null; this._onTextBoxBlurDelegate=null; this._onTextBoxFocusDelegate=null; this._onTextBoxDragEnterDelegate=null; this._onTextBoxDragLeaveDelegate=null; this._onTextBoxDragDropDelegate=null; this._onTextBoxMouseOutDelegate=null; this._onTextBoxMouseOverDelegate=null; this._onTextBoxKeyDownDelegate=null; this._onTextBoxMouseWheelDelegate=null; this._onFormResetDelegate=null; this._emptyMessage=""; this._initialValueAsText=null; this._originalInitialValueAsText=""; this._validationText=""; this._displayText=""; this._value=""; this._text=""; this._holdsValidValue=true; this._lastSetTextBoxValue=""; this._onTextBoxMouseUpDelegate=null; this._focused=false; this._isRtl=false; this._nonTableLayout=true; }; Telerik.Web.UI.RadInputControl.prototype={initialize:function(){Telerik.Web.UI.RadInputControl.OverrideValidatorFunctions(); Telerik.Web.UI.RadInputControl.callBaseMethod(this,"initialize"); this._clientID=this.get_id(); this._wrapperElementID=this.get_id()+"_wrapper"; this._nonTableLayout=this.get_wrapperElement().className.indexOf("riSingle")>-1; this._textBoxElement=$get(this._clientID); this._textBoxElement.RadInputValidationValue=this._validationText; if(this._initialValueAsText!==null){this._value=this._constructValueFromInitialText(this._initialValueAsText); this._text=this._constructEditText(this._value); this._originalInitialValueAsText=this._initialValueAsText; }this._lastSetTextBoxValue=this._displayText; this._textBoxElement.RadInputLastSetTextBoxValue=this._displayText; this._initialValueAsText=this._text; if(this._nonTableLayout&&$telerik.isIE7){this._textBoxElement.style.width="100%"; this._enableOldBoxModel=true; }this._originalTextBoxCssText=this._textBoxElement.style.cssText; if(this._originalTextBoxCssText.lastIndexOf(";")!=this._originalTextBoxCssText.length-1){this._originalTextBoxCssText+=";"; }var c=this.get_wrapperElement(); if(c.style.display=="none"){this._originalDisplay=""; }else{this._originalDisplay=c.style.display; }if($telerik.isIE7||$telerik.quirksMode){if(this._originalDisplay=="inline-block"){this._originalDisplay="inline"; c.style.zoom=1; }else{if(document.documentMode&&document.documentMode>7&&this._originalDisplay=="inline"){this._originalDisplay="inline-block"; }}}if(c.style.display!="none"){c.style.display=this._originalDisplay; }if($telerik.getCurrentStyle(c,"direction")=="rtl"){var a=this._skin!=""?String.format(" RadInputRTL_{0}",this._skin):""; c.className+=String.format(" RadInputRTL{0}",a); this._isRtl=true; }this.repaint(); this._originalMaxLength=this._textBoxElement.maxLength; if(this._originalMaxLength==-1){this._originalMaxLength=2147483647; }this._selectionEnd=0; this._selectionStart=0; this._hovered=false; this._invalid=false; this._attachEventHandlers(); if(this._focused){this.updateDisplayValue(); var b=this; setTimeout(function(){b._updateSelectionOnFocus(); },0); }else{if(($telerik.isFirefox2||$telerik.isSafari)&&this.isEmpty()&&this.get_emptyMessage().length>this._originalMaxLength){this.updateDisplayValue(); }}this.updateCssClass(); this._initializeButtons(); if(this.get_enableAriaSupport()){this._initializeAriaSupport(); }this.updateClientState(); this.raise_load(Sys.EventArgs.Empty); },dispose:function(){Telerik.Web.UI.RadInputControl.callBaseMethod(this,"dispose"); if(this.Button){if(this._onButtonClickDelegate){window.$removeHandler(this.Button,"click",this._onButtonClickDelegate); this._onButtonClickDelegate=null; }}if(this._onTextBoxPasteDelegate){window.$removeHandler(this._textBoxElement,"paste",this._onTextBoxPasteDelegate); this._onTextBoxPasteDelegate=null; }if(this._onTextBoxKeyDownDelegate){window.$removeHandler(this._textBoxElement,"keydown",this._onTextBoxKeyDownDelegate); this._onTextBoxKeyDownDelegate=null; }if(this._onTextBoxKeyPressDelegate){window.$removeHandler(this._textBoxElement,"keypress",this._onTextBoxKeyPressDelegate); this._onTextBoxKeyPressDelegate=null; }if(this._onTextBoxKeyUpDelegate){window.$removeHandler(this._textBoxElement,"keyup",this._onTextBoxKeyUpDelegate); this._onTextBoxKeyUpDelegate=null; }if(this._onTextBoxBlurDelegate){window.$removeHandler(this._textBoxElement,"blur",this._onTextBoxBlurDelegate); this._onTextBoxBlurDelegate=null; }if(this._onTextBoxFocusDelegate){window.$removeHandler(this._textBoxElement,"focus",this._onTextBoxFocusDelegate); this._onTextBoxFocusDelegate=null; }if(this._onTextBoxDragEnterDelegate){window.$removeHandler(this._textBoxElement,"dragenter",this._onTextBoxDragEnterDelegate); this._onTextBoxDragEnterDelegate=null; }if(this._onTextBoxDragLeaveDelegate){window.$removeHandler(this._textBoxElement,"dragleave",this._onTextBoxDragLeaveDelegate); this._onTextBoxDragLeaveDelegate=null; }if(this._onTextBoxMouseOutDelegate){window.$removeHandler(this._textBoxElement,"mouseout",this._onTextBoxMouseOutDelegate); this._onTextBoxMouseOutDelegate=null; }if(this._onTextBoxMouseOverDelegate){window.$removeHandler(this._textBoxElement,"mouseover",this._onTextBoxMouseOverDelegate); this._onTextBoxMouseOverDelegate=null; }if(this._onTextBoxMouseUpDelegate){window.$removeHandler(this._textBoxElement,"mouseup",this._onTextBoxMouseUpDelegate); this._onTextBoxMouseUpDelegate=null; }if(this._onFormResetDelegate){if(this._textBoxElement.form){window.$removeHandler(this._textBoxElement.form,"reset",this._onFormResetDelegate); }this._onFormResetDelegate=null; }if(!$telerik.isIE){if(this._onTextBoxMouseWheelDelegate){if($telerik.isSafari||$telerik.isOpera){window.$removeHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate); }else{window.$removeHandler(this._textBoxElement,"DOMMouseScroll",this._onTextBoxMouseWheelDelegate); }this._onTextBoxMouseWheelDelegate=null; }}else{if(this._onTextBoxMouseWheelDelegate){window.$removeHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate); this._onTextBoxMouseWheelDelegate=null; }}if(this._onTextBoxDragDropDelegate){window.$removeHandler(this._textBoxElement,"drop",this._onTextBoxDragDropDelegate); this._onTextBoxDragDropDelegate=null; }if(this._textBoxElement){this._textBoxElement._events=null; }},clear:function(){this.set_value(""); },disable:function(){this.set_enabled(false); this._textBoxElement.disabled="disabled"; this.updateCssClass(); this.updateClientState(); this.raise_disable(Sys.EventArgs.Empty); },enable:function(){this.set_enabled(true); this._textBoxElement.disabled=""; this.updateCssClass(); this.updateClientState(); this.raise_enable(Sys.EventArgs.Empty); },focus:function(){if(!this._textBoxElement.disabled){this._textBoxElement.focus(); }},blur:function(){this._textBoxElement.blur(); },isEmpty:function(){return this._validationText==""; },isNegative:function(){return false; },isReadOnly:function(){return this._textBoxElement.readOnly||!this._enabled; },isMultiLine:function(){return this._textBoxElement&&this._textBoxElement.tagName.toUpperCase()=="TEXTAREA"; },updateDisplayValue:function(){if(this._focused){if(!this._holdsValidValue){this._holdsValidValue=true; }else{this.set_textBoxValue(this.get_editValue()); }}else{if(this._isEmptyMessage()){this.set_textBoxValue(this.get_emptyMessage()); }else{this.set_textBoxValue(this.get_displayValue()); }}},_isEmptyMessage:function(){return this.isEmpty()&&this.get_emptyMessage(); },repaint:function(){if(!this.canRepaint()){this.add_parentShown(this.get_element()); return; }else{this._clearParentShowHandlers(); }this._updatePercentageHeight(); if(!this._reducedPixelWidthFlag&&this._enableOldBoxModel){var a=this; setTimeout(function(){a._reducePixelWidthByPaddings(); },0); }},updateCssClass:function(b){if(!this._holdsValidValue&&!b){this._textBoxElement.style.cssText=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["InvalidStyle"][0]); this._textBoxElement.className=this.get_styles()["InvalidStyle"][1]; Sys.UI.DomElement.addCssClass(this.get_wrapperElement(),"RadInputError"); return; }var c=""; var a=""; if(this._enabled&&(!this._isEmptyMessage())&&(!this.isNegative())){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EnabledStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=this.get_styles()["EnabledStyle"][1]; }if(this._enabled&&(!this._isEmptyMessage())&&this.isNegative()){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["NegativeStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=this.get_styles()["NegativeStyle"][1]; }if(this._enabled&&this._isEmptyMessage()){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EmptyMessageStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=this.get_styles()["EmptyMessageStyle"][1]; }var d=this.get_wrapperElement(); var e=d.className.replace("RadInputHovered","").replace("RadInputDisabled","").replace("RadInputFocused","").replace("RadInputError","").trim(); if(this._focused){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["FocusedStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=this.get_styles()["FocusedStyle"][1]; e+=" RadInputFocused"; }if(this._invalid){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["InvalidStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=this.get_styles()["InvalidStyle"][1]; e+=" RadInputError"; }if(this._textBoxElement.readOnly&&this._isEmptyMessage()){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["EmptyMessageStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=this.get_styles()["EmptyMessageStyle"][1]; }else{if(this._textBoxElement.readOnly){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["ReadOnlyStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=this.get_styles()["ReadOnlyStyle"][1]; }}if(!this._enabled){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["DisabledStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=this.get_styles()["DisabledStyle"][1]; e+=" RadInputDisabled"; }if(this._hovered&&this._enabled){a=this._originalTextBoxCssText+this.updateCssText(this.get_styles()["HoveredStyle"][0]); if(!this._compareStyles(this._textBoxElement.style.cssText,a)){this._textBoxElement.style.cssText=a; }c=c.trim()+" "+this.get_styles()["HoveredStyle"][1].replace("riTextBox","").trim(); e+=" RadInputHovered"; }d.className=e.replace(/ /g," "); if(c!=""&&!this._compareStyles(this._textBoxElement.className,c)){this._textBoxElement.className=c; }if(c==""&&this._textBoxElement.className&&this._textBoxElement.className==""){this._textBoxElement.removeAttribute("class"); }},_compareStyles:function(){if(arguments.length>=2){var a=arguments[0].replace(/ /g,"").replace(/;/g,""); var b=arguments[1].replace(/ /g,"").replace(/;/g,""); return a===b; }return false; },updateCssText:function(f){var e=f.split(";"); var a; var c=""; for(a=0; a0){this.selectText(0,this._textBoxElement.value.length); return true; }return false; },get_value:function(){return this._value; },get_valueAsString:function(){if(this._value){return this._value.toString(); }else{return""; }},_setNewValue:function(a){this._holdsValidValue=this._setHiddenValue(a)||this._holdsValidValue; this._textBoxElement.RadInputLastSetTextBoxValue=this._lastSetTextBoxValue=this._textBoxElement.value; this._triggerDomEvent("change",this._textBoxElement); if(this._holdsValidValue){this.set_displayValue(this._constructDisplayText(this._value)); this.updateClientState(); var b=this._initialValueAsText; this._initialValueAsText=this._textBoxElement.value; this.raise_valueChanged(this.get_editValue(),b); this.updateCssClass(); }else{this.updateClientState(); }this._initialValueAsText=this.get_editValue(); },set_value:function(b){var a=new Telerik.Web.UI.InputValueChangingEventArgs(b,this._initialValueAsText); this.raise_valueChanging(a); if(a.get_cancel()){this.set_textBoxValue(this.get_element().RadInputLastSetTextBoxValue); }else{b=a.get_newValue(); this._setNewValue(b); }},get_displayValue:function(){return this._displayText; },set_displayValue:function(a){this._displayText=a; this.updateDisplayValue(); },get_editValue:function(){return this._text; },set_caretPosition:function(a){if(this._textBoxElement.tagName.toLowerCase()=="textarea"&&this._textBoxElement.value.length0&&this._textBoxElement.parentNode.tagName.toLowerCase()=="span"&&this._textBoxElement.style.width&&(this._nonTableLayout||(this._textBoxElement.parentNode.parentNode.className!="rcInputCell"&&this._textBoxElement.style.width.indexOf("%")==-1&&(!this._originalTextBoxWidth||this._originalTextBoxWidth.indexOf("%")==-1)))&&!this._reducedPixelWidthFlag){var f=0; var a=0; if(document.defaultView&&document.defaultView.getComputedStyle){f=parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-left-width"),10)+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-left"),10)+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-right"),10)+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-right-width"),10); a=parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-top-width"),10)+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-top"),10)+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-bottom"),10)+parseInt(document.defaultView.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-bottom-width"),10); }else{if(this._textBoxElement.currentStyle){if(document.compatMode&&document.compatMode!="BackCompat"){f=parseInt(this._textBoxElement.currentStyle.borderLeftWidth,10)+parseInt(this._textBoxElement.currentStyle.paddingLeft,10)+parseInt(this._textBoxElement.currentStyle.paddingRight,10)+parseInt(this._textBoxElement.currentStyle.borderRightWidth,10); a=parseInt(this._textBoxElement.currentStyle.borderTopWidth,10)+parseInt(this._textBoxElement.currentStyle.paddingTop,10)+parseInt(this._textBoxElement.currentStyle.paddingBottom,10)+parseInt(this._textBoxElement.currentStyle.borderBottomWidth,10); }}}var j=parseInt(this._textBoxElement.style.width,10); if(this._nonTableLayout&&this._textBoxElement.parentNode.style.width&&this._textBoxElement.parentNode.style.width.indexOf("%")==-1){j=parseInt(this._textBoxElement.parentNode.currentStyle.width,10); }var k=j-f; var b=parseInt(this._textBoxElement.offsetHeight,10)-a; if(f==0||k<=0){return; }this._textBoxElement.style.width=k+"px"; var e=""; var h=this._originalTextBoxCssText.split(";"); if(h==[]){for(var c=0; c0){var a=0; if(this._textBoxElement.currentStyle){a=parseInt(this._textBoxElement.currentStyle.borderTopWidth,10)+parseInt(this._textBoxElement.currentStyle.borderBottomWidth,10)+parseInt(this._textBoxElement.currentStyle.paddingTop,10)+parseInt(this._textBoxElement.currentStyle.paddingBottom,10); }else{if(window.getComputedStyle){a=parseInt(window.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-top-width"),10)+parseInt(window.getComputedStyle(this._textBoxElement,null).getPropertyValue("border-bottom-width"),10)+parseInt(window.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-top"),10)+parseInt(window.getComputedStyle(this._textBoxElement,null).getPropertyValue("padding-bottom"),10); }}this._textBoxElement.style.height="1px"; this._textBoxElement.style.cssText=this._textBoxElement.style.cssText; this._textBoxElement.style.height=b.offsetHeight-a+"px"; if(this._originalTextBoxCssText.search(/(^|[^-])height/)!=-1){this._originalTextBoxCssText=this._originalTextBoxCssText.replace(/(^|[^-])height(\s*):(\s*)([^;]+);/i,"$1height:"+(b.offsetHeight-a)+"px;"); }else{this._originalTextBoxCssText+="height:"+(b.offsetHeight-a)+"px;"; }}},_initializeButtons:function(){this._onButtonClickDelegate=Function.createDelegate(this,this._onButtonClickHandler); this.Button=null; var b=$get(this._wrapperElementID); var a=b.getElementsByTagName("a"); for(var c=0; c0){if($telerik.isSafari){window.setTimeout(function(){k.value=k.value.substr(0,l._maxLength); },1); }else{if($telerik.isIE||$telerik.isFirefox){if(!d){d=window.event; }var a=true; var b=""; try{if($telerik.isFirefox){b=d.rawEvent.clipboardData.getData("text/plain"); }else{b=window.clipboardData.getData("Text"); }}catch(f){a=false; }if(a&&b!=""){if(d.preventDefault&&!$telerik.isIE&&!$telerik.isFirefox){d.preventDefault(); }if(document.getSelection){i=document.getSelection(); h=window.getSelection().toString(); }else{if(document.selection){i=document.selection.createRange(); h=i.text; }else{i=null; h=k.value.substring(k.selectionStart,k.selectionEnd); }}var g=l._maxLength-l._escapeNewLineChars(k.value,"\r\n").length+l._escapeNewLineChars(h,"\r\n").length; var j=l._escapeNewLineChars(b,"\r\n").substr(0,g); if(j.length>0&&j.charAt(j.length-1)=="\r"){j=j.substr(0,j.length-1); }if(i){i.text=j; }else{if(h){k.value=k.value.replace(h,j); }else{c=k.value.substr(0,k.selectionStart)+j+k.value.substr(k.selectionStart); k.value=c.substr(0,l._maxLength); }}}else{window.setTimeout(function(){k.value=k.value.substr(0,l._maxLength); },1); }}}}},_attachMouseEventHandlers:function(){if(!$telerik.isIE){this._onTextBoxMouseUpDelegate=Function.createDelegate(this,this._onTextBoxMouseUpHandler); window.$addHandler(this._textBoxElement,"mouseup",this._onTextBoxMouseUpDelegate); }this._onTextBoxMouseOutDelegate=Function.createDelegate(this,this._onTextBoxMouseOutHandler); this._onTextBoxMouseOverDelegate=Function.createDelegate(this,this._onTextBoxMouseOverHandler); this._onTextBoxMouseWheelDelegate=Function.createDelegate(this,this._onTextBoxMouseWheelHandler); this._onTextBoxDragEnterDelegate=Function.createDelegate(this,this._onTextBoxDragEnterHandler); this._onTextBoxDragLeaveDelegate=Function.createDelegate(this,this._onTextBoxDragLeaveHandler); this._onTextBoxDragDropDelegate=Function.createDelegate(this,this._onTextBoxDragDropHandler); window.$addHandler(this._textBoxElement,"mouseout",this._onTextBoxMouseOutDelegate); window.$addHandler(this._textBoxElement,"mouseover",this._onTextBoxMouseOverDelegate); window.$addHandler(this._textBoxElement,"dragenter",this._onTextBoxDragEnterDelegate); window.$addHandler(this._textBoxElement,"dragleave",this._onTextBoxDragLeaveDelegate); window.$addHandler(this._textBoxElement,"drop",this._onTextBoxDragDropDelegate); if(!$telerik.isIE){if(Telerik.Web.Browser.edge){window.$addHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate); }if($telerik.isSafari||$telerik.isOpera){window.$addHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate); }else{window.$addHandler(this._textBoxElement,"DOMMouseScroll",this._onTextBoxMouseWheelDelegate); }}else{window.$addHandler(this._textBoxElement,"mousewheel",this._onTextBoxMouseWheelDelegate); }},_onTextBoxMouseUpHandler:function(a){},_cancelKeyPressEventIfMaxLengthReached:function(b){var f=this._escapeNewLineChars(this._textBoxElement.value,"\r\n"); var d=this._maxLength; if(d>0&&f.length+(b.charCode==13)>=d&&((b.charCode==13)||this._isNormalChar(b))){var c=false; if(document.selection){if(document.selection.createRange().text){c=true; }}else{var a=this.get_caretPosition(); if(a[0]||a[1]){c=true; }}if(!c){b.stopPropagation(); b.preventDefault(); return false; }}},_onTextBoxKeyPressHandler:function(a){this._isEnterPressed=false; var b=new Telerik.Web.UI.InputKeyPressEventArgs(a,a.charCode,String.fromCharCode(a.charCode)); this.raise_keyPress(b); if(b.get_cancel()){a.stopPropagation(); a.preventDefault(); return false; }if((a.charCode==13)&&!this.isMultiLine()){var c=this._textBoxElement.value; this._isEnterPressed=true; this.set_value(c); this._isEnterPressed=false; if(this.get_autoPostBack()){a.stopPropagation(); a.preventDefault(); return false; }return true; }if(this.isMultiLine()){return(this._cancelKeyPressEventIfMaxLengthReached(a)); }},_onTextBoxKeyUpHandler:function(a){if(a&&a.keyCode===9){this._updateSelectionOnFocus(); }},_onTextBoxBlurHandler:function(a){this._focused=false; if(this.isReadOnly()){return; }var b=this._textBoxElement.value; if(this._initialValueAsText+""!==b){this.set_value(b); }else{this.updateDisplayValue(); this.updateClientState(); this.updateCssClass(); }this.raise_blur(Sys.EventArgs.Empty); },_onTextBoxFocusHandler:function(a){if(!this.isReadOnly()){this._updateStateOnFocus(); }if(($telerik.isSafari||$telerik.isFirefox)&&this.get_selectionOnFocus()!=Telerik.Web.UI.SelectionOnFocus.None&&this.get_selectionOnFocus()!=Telerik.Web.UI.SelectionOnFocus.SelectAll){var b=this; window.setTimeout(function(){b._updateSelectionOnFocus(); },0); }},_onTextBoxDragEnterHandler:function(a){if(this.get_element().value==""&&this.isEmpty()&&this.get_emptyMessage()!=""){this.set_textBoxValue(""); }},_onTextBoxDragLeaveHandler:function(a){if(this.isEmpty()&&this.get_emptyMessage()!=""&&!$telerik.isMouseOverElement(this._textBoxElement,a)){this.set_textBoxValue(this.get_emptyMessage()); }},_updateStateOnFocus:function(){if(this._isDropped||this._lastSetTextBoxValue!==this._textBoxElement.value){this._updateHiddenValue(); this._isDropped=false; }this._focused=true; this.updateDisplayValue(); this.updateCssClass(); this._updateSelectionOnFocus(); this.raise_focus(Sys.EventArgs.Empty); },_onTextBoxMouseOutHandler:function(a){this._hovered=false; this.updateCssClass(); this.raise_mouseOut(Sys.EventArgs.Empty); },_onTextBoxMouseOverHandler:function(a){this._hovered=true; this.updateCssClass(); this.raise_mouseOver(Sys.EventArgs.Empty); },_onTextBoxKeyDownHandler:function(a){if(a.keyCode==27&&!$telerik.isIE){var b=this; window.setTimeout(function(){b.set_textBoxValue(b.get_editValue()); },0); }},_onTextBoxMouseWheelHandler:function(b){var a; if(this._focused){if(b.rawEvent.wheelDelta){a=b.rawEvent.wheelDelta/120; if(window.opera){a=-a; }}else{if(b.detail){a=-b.rawEvent.detail/3; }else{if(b.rawEvent&&b.rawEvent.detail){a=-b.rawEvent.detail/3; }}}if(a>0){this._handleWheel(false); }else{this._handleWheel(true); }b.stopPropagation(); b.preventDefault(); }},_onButtonClickHandler:function(a){var b=new Telerik.Web.UI.InputButtonClickEventArgs(Telerik.Web.UI.InputButtonType.Button); this.raise_buttonClick(b); },_onTextBoxDragDropHandler:function(a){this._isDropped=true; if($telerik.isFirefox){var b=this; window.setTimeout(function(){b._textBoxElement.focus(); },1); }},_onFormResetHandler:function(a){if(this.get_element().form===a.target){var b=this._constructValueFromInitialText(this._originalInitialValueAsText); this._setHiddenValue(b); this._initialValueAsText=this._text; this.set_displayValue(this._constructDisplayText(this._value)); this.updateClientState(); this.updateCssClass(); }},_calculateSelection:function(){if((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){var d=this._supportSelection(); if(d){this._selectionEnd=this._textBoxElement.selectionEnd; this._selectionStart=this._textBoxElement.selectionStart; }return; }var c=0; var b=0; try{c=Math.abs(document.selection.createRange().moveStart("character",-10000000)); if(c>0){c=this._calculateSelectionInternal(c); }b=Math.abs(document.selection.createRange().moveEnd("character",-10000000)); if(b>0){b=this._calculateSelectionInternal(b); }}catch(a){}this._selectionEnd=b; this._selectionStart=c; },_calculateSelectionInternal:function(e){if(!this.isMultiLine()){return e; }var b=Math.abs(this._textBoxElement.createTextRange().moveEnd("character",-10000000)); var c=document.body.createTextRange(); c.moveToElementText(this._textBoxElement); var d=Math.abs(c.moveStart("character",-10000000)); var a=Math.abs(c.moveEnd("character",-10000000)); if(a-b==d){e-=d; }return e; },_SetValue:function(a){var b=this._setHiddenValue(a); if(typeof(b)=="undefined"||b==true){this.set_textBoxValue(this.get_editValue()); this.updateClientState(); }},_triggerDomEvent:function(a,c){if(!a||a==""||!c){return; }if(a=="change"){this._textBoxElement.RadInputChangeFired=true; }var b; if(c.fireEvent&&document.createEventObject){b=document.createEventObject(); c.fireEvent(String.format("on{0}",a),b); }else{if(c.dispatchEvent){b=document.createEvent("HTMLEvents"); b.initEvent(a,true,true); c.dispatchEvent(b); }}if(a=="change"){this._textBoxElement.RadInputChangeFired=false; }},_updateSelectionOnFocus:function(){if(!this._textBoxElement.value){this.set_caretPosition(0); }switch(this.get_selectionOnFocus()){case Telerik.Web.UI.SelectionOnFocus.None:break; case Telerik.Web.UI.SelectionOnFocus.CaretToBeginning:this.set_caretPosition(0); break; case Telerik.Web.UI.SelectionOnFocus.CaretToEnd:if(this._textBoxElement.value.length>0){if($telerik.isIE){var a=this._textBoxElement.value.replace(/\r/g,"").length; if(a!=this.get_caretPosition()){this.set_caretPosition(a); }}else{this.set_caretPosition(this._textBoxElement.value.length); }}break; case Telerik.Web.UI.SelectionOnFocus.SelectAll:this.selectAllText(); break; default:this.set_caretPosition(0); break; }},_isInVisibleContainer:function(b){var a=b; while((typeof(a)!="undefined")&&(a!=null)){if((a.disabled==true)||(typeof(a.style)!="undefined"&&((typeof(a.style.display)!="undefined"&&a.style.display=="none")||(typeof(a.style.visibility)!="undefined"&&a.style.visibility=="hidden")))){return false; }if(typeof(a.parentNode)!="undefined"&&a.parentNode!=null&&a.parentNode!=a&&a.parentNode.tagName.toLowerCase()!="body"){a=a.parentNode; }else{return true; }}return true; },_supportSelection:function(){if(!!this.get_inputType){var a=this.get_inputType(); if(a==Telerik.Web.UI.InputType.Date||a==Telerik.Web.UI.InputType.DateTime||a==Telerik.Web.UI.InputType.DateTimeLocal||a==Telerik.Web.UI.InputType.Month||a==Telerik.Web.UI.InputType.Week||a==Telerik.Web.UI.InputType.Time||a==Telerik.Web.UI.InputType.Number||a==Telerik.Web.UI.InputType.Email){return false; }}return true; },_applySelection:function(){if(!this._isInVisibleContainer(this._textBoxElement)){return; }var b=this; var d; if((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){var f=this._supportSelection(); if(f){this._textBoxElement.focus(); this._textBoxElement.selectionStart=b._selectionStart; this._textBoxElement.selectionEnd=b._selectionEnd; }return; }try{this._textBoxElement.select(); d=document.selection.createRange(); d.collapse(); d.moveStart("character",this._selectionStart); d.collapse(); d.moveEnd("character",this._selectionEnd-this._selectionStart); d.select(); }catch(c){var a=this; window.setTimeout(function(){document.body.focus(); a._textBoxElement.select(); d=document.selection.createRange(); d.collapse(); d.moveStart("character",a._selectionStart); d.collapse(); d.moveEnd("character",a._selectionEnd-a._selectionStart); d.select(); },1); }},set_invalid:function(a){if(this._holdsValidValue==a){this._holdsValidValue=!a; this.updateCssClass(); }},get_invalid:function(){return !this._holdsValidValue; },_invalidate:function(){if(this._holdsValidValue){this._holdsValidValue=false; this._initialValueAsText=""; this._displayText=""; this._clearHiddenValue(); return false; }},_clearHiddenValue:function(){var a=this._errorHandlingCanceled; this._errorHandlingCanceled=true; this._setHiddenValue(""); this.updateClientState(); this._errorHandlingCanceled=a; },_handleWheel:function(a){},_setHiddenValue:function(a){if(a){a=a.toString(); }else{a=""; }if(a==this._value){return false; }else{this._value=a; this._text=this._constructEditText(a); this.set_validationText(this._constructValidationText(a)); return true; }},get_validationText:function(a){return this._validationText; },set_validationText:function(a){this._validationText=a; this._textBoxElement.RadInputValidationValue=a; },_updateHiddenValue:function(){if(!this._textBoxElement.readOnly){if(this._setHiddenValue(this._textBoxElement.value)){this.updateClientState(); return true; }else{return false; }}else{return false; }},_escapeNewLineChars:function(b,a){return b.replace(/\r\n/g,"\n").replace(/\n/g,a); },_isNormalChar:function(a){if(($telerik.isOpera&&a.rawEvent.which==0)||($telerik.isSafari&&(a.charCode60000))){return false; }return true; },_constructEditText:function(a){return a; },_constructDisplayText:function(a){return a; },_constructValidationText:function(a){return a; },_constructValueFromInitialText:function(a){return a; },_canAutoPostBackAfterValidation:function(){if(!this.get_causesValidation()||!window.Page_ValidationActive){return true; }return window.Page_ClientValidate(this.get_validationGroup()); },add_blur:function(a){this.get_events().addHandler("blur",a); },remove_blur:function(a){this.get_events().removeHandler("blur",a); },raise_blur:function(a){this.raiseEvent("blur",a); },add_mouseOut:function(a){this.get_events().addHandler("mouseOut",a); },remove_mouseOut:function(a){this.get_events().removeHandler("mouseOut",a); },raise_mouseOut:function(a){this.raiseEvent("mouseOut",a); },add_valueChanged:function(a){this.get_events().addHandler("valueChanged",a); },remove_valueChanged:function(a){this.get_events().removeHandler("valueChanged",a); },raise_valueChanged:function(b,c){if(typeof(b)!="undefined"&&b!=null&&typeof(c)!="undefined"&&c!=null&&b.toString()==c.toString()){if(!this._isEnterPressed){return false; }}var d=false; if(typeof(b)!="undefined"&&b!=null&&typeof(c)!="undefined"&&c!=null){if(b.toString()!=c.toString()){var a=new Telerik.Web.UI.InputValueChangedEventArgs(b,c); this.raiseEvent("valueChanged",a); d=!a.get_cancel(); }else{d=this._isEnterPressed; }}if(this.get_autoPostBack()&&d&&this._canAutoPostBackAfterValidation()){this.raisePostBackEvent(); }},add_error:function(a){this.get_events().addHandler("error",a); },remove_error:function(a){this.get_events().removeHandler("error",a); },raise_error:function(a){if(this.InEventRaise){return; }this.InEventRaise=true; this.raiseEvent("error",a); if(!a.get_cancel()){this._invalid=true; this._errorHandlingCanceled=false; this.updateCssClass(); if(this.get_enableAriaSupport()){this._applyAriaStateChange("invalid",true); }var c=this._isIncrementing?true:false; var b=this; var d=function(){b._invalid=false; b.updateCssClass(c); if(b.get_enableAriaSupport()){b._applyAriaStateChange("invalid",false); }}; setTimeout(function(){d(); },this.get_invalidStyleDuration()); }else{this._errorHandlingCanceled=true; this._invalid=false; this.updateCssClass(); }this.InEventRaise=false; },add_load:function(a){this.get_events().addHandler("load",a); },remove_load:function(a){this.get_events().removeHandler("load",a); },raise_load:function(a){this.raiseEvent("load",a); },add_mouseOver:function(a){this.get_events().addHandler("mouseOver",a); },remove_mouseOver:function(a){this.get_events().removeHandler("mouseOver",a); },raise_mouseOver:function(a){this.raiseEvent("mouseOver",a); },add_focus:function(a){this.get_events().addHandler("focus",a); },remove_focus:function(a){this.get_events().removeHandler("focus",a); },raise_focus:function(a){this.raiseEvent("focus",a); },add_disable:function(a){this.get_events().addHandler("disable",a); },remove_disable:function(a){this.get_events().removeHandler("disable",a); },raise_disable:function(a){this.raiseEvent("disable",a); },add_enable:function(a){this.get_events().addHandler("enable",a); },remove_enable:function(a){this.get_events().removeHandler("enable",a); },raise_enable:function(a){this.raiseEvent("enable",a); },add_keyPress:function(a){this.get_events().addHandler("keyPress",a); },remove_keyPress:function(a){this.get_events().removeHandler("keyPress",a); },raise_keyPress:function(a){this.raiseEvent("keyPress",a); },add_enumerationChanged:function(a){this.get_events().addHandler("enumerationChanged",a); },remove_enumerationChanged:function(a){this.get_events().removeHandler("enumerationChanged",a); },raise_enumerationChanged:function(a){this.raiseEvent("enumerationChanged",a); },add_moveUp:function(a){this.get_events().addHandler("moveUp",a); },remove_moveUp:function(a){this.get_events().removeHandler("moveUp",a); },raise_moveUp:function(a){this.raiseEvent("moveUp",a); },add_moveDown:function(a){this.get_events().addHandler("moveDown",a); },remove_moveDown:function(a){this.get_events().removeHandler("moveDown",a); },raise_moveDown:function(a){this.raiseEvent("moveDown",a); },add_buttonClick:function(a){this.get_events().addHandler("buttonClick",a); },remove_buttonClick:function(a){this.get_events().removeHandler("buttonClick",a); },raise_buttonClick:function(a){this.raiseEvent("buttonClick",a); },add_valueChanging:function(a){this.get_events().addHandler("valueChanging",a); },remove_valueChanging:function(a){this.get_events().removeHandler("valueChanging",a); },raise_valueChanging:function(a){this.raiseEvent("valueChanging",a); }}; Telerik.Web.UI.RadInputControl.OverrideValidatorFunctions=function(){if(typeof(window.ValidatorGetValue)=="function"&&typeof(window.ValidatorGetValue_Original)=="undefined"){window.ValidatorGetValue_Original=window.ValidatorGetValue; window.ValidatorGetValue=function(b){var a=document.getElementById(b); if(typeof(a.RadInputValidationValue)=="string"){if(a.RadInputLastSetTextBoxValue==a.value){return a.RadInputValidationValue; }else{return a.value; }}else{return window.ValidatorGetValue_Original(b); }}; }if(typeof(ValidatorOnChange)=="function"&&typeof(window.ValidatorOnChange_Original)=="undefined"){window.ValidatorOnChange_Original=window.ValidatorOnChange; window.ValidatorOnChange=function(b){b=b||window.event; var a; if((typeof(b.srcElement)!="undefined")&&(b.srcElement!=null)){a=b.srcElement; }else{a=b.target; }if(typeof(a.RadInputValidationValue)!="string"||(typeof(a.RadInputChangeFired)=="boolean"&&a.RadInputChangeFired)){return window.ValidatorOnChange_Original(b); }}; }if(typeof(window.ValidatedTextBoxOnKeyPress)=="function"&&typeof(window.ValidatedTextBoxOnKeyPress_Original)=="undefined"){window.ValidatedTextBoxOnKeyPress_Original=window.ValidatedTextBoxOnKeyPress; window.ValidatedTextBoxOnKeyPress=function(b){b=b||window.event; if(b.keyCode==13){window.ValidatorOnChange(b); var a; if((typeof(b.srcElement)!="undefined")&&(b.srcElement!=null)){a=b.srcElement; }else{a=b.target; }if(typeof(a.RadInputValidationValue)!="string"){return window.AllValidatorsValid(a.Validators); }}return true; }; }}; Telerik.Web.UI.RadInputControl.registerClass("Telerik.Web.UI.RadInputControl",Telerik.Web.UI.RadWebControl); Telerik.Web.UI.RadInputControl.CancelRawEventOnEnterKey=function(b,a){if(a.get_keyCode()==13){return $telerik.cancelRawEvent(a.get_domEvent()); }}; Telerik.Web.UI.RadInputControl.OverrideValidatorFunctions(); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.InputErrorReason=function(){}; Telerik.Web.UI.InputErrorReason.prototype={ParseError:1,OutOfRange:2}; Telerik.Web.UI.InputErrorReason.registerEnum("Telerik.Web.UI.InputErrorReason",false); Telerik.Web.UI.SelectionOnFocus=function(){}; Telerik.Web.UI.SelectionOnFocus.prototype={None:0,CaretToBeginning:1,CaretToEnd:2,SelectAll:3}; Telerik.Web.UI.SelectionOnFocus.registerEnum("Telerik.Web.UI.SelectionOnFocus",false); Telerik.Web.UI.InputButtonType=function(){}; Telerik.Web.UI.InputButtonType.prototype={Button:1,MoveUpButton:2,MoveDownButton:3}; Telerik.Web.UI.InputButtonType.registerEnum("Telerik.Web.UI.InputButtonType",false); Telerik.Web.UI.DisplayFormatPosition=function(){}; Telerik.Web.UI.DisplayFormatPosition.prototype={Left:1,Right:2}; Telerik.Web.UI.DisplayFormatPosition.registerEnum("Telerik.Web.UI.DisplayFormatPosition",false); Telerik.Web.UI.InputSettingValidateOnEvent=function(){}; Telerik.Web.UI.InputSettingValidateOnEvent.prototype={Blur:0,Submit:1,All:2}; Telerik.Web.UI.InputSettingValidateOnEvent.registerEnum("Telerik.Web.UI.InputSettingValidateOnEvent",false); Telerik.Web.UI.InputType=function(){}; Telerik.Web.UI.InputType.prototype={Text:0,Date:1,DateTime:2,Number:3,Time:4,DateTimeLocal:5,Month:6,Week:7,Range:8,Email:9,Url:10,Search:11,Tel:12,Color:13}; Telerik.Web.UI.InputType.registerEnum("Telerik.Web.UI.InputType",false); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.InputValueChangedEventArgs=function(a,b){Telerik.Web.UI.InputValueChangedEventArgs.initializeBase(this); this._newValue=a; this._oldValue=b; }; Telerik.Web.UI.InputValueChangedEventArgs.prototype={get_oldValue:function(){return this._oldValue; },get_newValue:function(){return this._newValue; }}; Telerik.Web.UI.InputValueChangedEventArgs.registerClass("Telerik.Web.UI.InputValueChangedEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.InputValueChangingEventArgs=function(a,b){Telerik.Web.UI.InputValueChangingEventArgs.initializeBase(this,[a,b]); }; Telerik.Web.UI.InputValueChangingEventArgs.prototype={set_newValue:function(a){if(this._newValue!==a){this._newValue=a; }}}; Telerik.Web.UI.InputValueChangingEventArgs.registerClass("Telerik.Web.UI.InputValueChangingEventArgs",Telerik.Web.UI.InputValueChangedEventArgs); Telerik.Web.UI.MaskedTextBoxEventArgs=function(b,c,a){Telerik.Web.UI.MaskedTextBoxEventArgs.initializeBase(this); this._newValue=b; this._oldValue=c; this._chunk=a; }; Telerik.Web.UI.MaskedTextBoxEventArgs.prototype={get_oldValue:function(){return this._oldValue; },get_newValue:function(){return this._newValue; },get_currentPart:function(){return this._chunk; }}; Telerik.Web.UI.MaskedTextBoxEventArgs.registerClass("Telerik.Web.UI.MaskedTextBoxEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.InputKeyPressEventArgs=function(a,c,b){Telerik.Web.UI.InputKeyPressEventArgs.initializeBase(this); this._domEvent=a; this._keyCode=c; this._keyCharacter=b; }; Telerik.Web.UI.InputKeyPressEventArgs.prototype={get_domEvent:function(){return this._domEvent; },get_keyCode:function(){return this._keyCode; },get_keyCharacter:function(){return this._keyCharacter; }}; Telerik.Web.UI.InputKeyPressEventArgs.registerClass("Telerik.Web.UI.InputKeyPressEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.InputButtonClickEventArgs=function(a){Telerik.Web.UI.InputButtonClickEventArgs.initializeBase(this); this._buttonType=a; }; Telerik.Web.UI.InputButtonClickEventArgs.prototype={get_buttonType:function(){return this._buttonType; }}; Telerik.Web.UI.InputButtonClickEventArgs.registerClass("Telerik.Web.UI.InputButtonClickEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.InputErrorEventArgs=function(b,a){Telerik.Web.UI.InputErrorEventArgs.initializeBase(this); this._reason=b; this._inputText=a; }; Telerik.Web.UI.InputErrorEventArgs.prototype={get_reason:function(){return this._reason; },get_inputText:function(){return this._inputText; }}; Telerik.Web.UI.InputErrorEventArgs.registerClass("Telerik.Web.UI.InputErrorEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.NumericInputErrorEventArgs=function(d,a,c,b){Telerik.Web.UI.NumericInputErrorEventArgs.initializeBase(this,[d,a]); this._keyCode=c; this._keyCharacter=b; }; Telerik.Web.UI.NumericInputErrorEventArgs.prototype={get_reason:function(){return this._reason; },get_inputText:function(){return this._inputText; },get_keyCode:function(){return this._keyCode; },get_keyCharacter:function(){return this._keyCharacter; }}; Telerik.Web.UI.NumericInputErrorEventArgs.registerClass("Telerik.Web.UI.NumericInputErrorEventArgs",Telerik.Web.UI.InputErrorEventArgs); Telerik.Web.UI.InputManagerKeyPressEventArgs=function(a,c,b,d){Telerik.Web.UI.InputManagerKeyPressEventArgs.initializeBase(this,[a,c,b]); this._targetInput=d; }; Telerik.Web.UI.InputManagerKeyPressEventArgs.prototype={get_targetInput:function(){return this._targetInput; }}; Telerik.Web.UI.InputManagerKeyPressEventArgs.registerClass("Telerik.Web.UI.InputManagerKeyPressEventArgs",Telerik.Web.UI.InputKeyPressEventArgs); Telerik.Web.UI.InputManagerEventArgs=function(b,a){Telerik.Web.UI.InputManagerEventArgs.initializeBase(this); this._targetInput=b; this._domEvent=a; }; Telerik.Web.UI.InputManagerEventArgs.prototype={get_targetInput:function(){return this._targetInput; },get_domEvent:function(){return this._domEvent; }}; Telerik.Web.UI.InputManagerEventArgs.registerClass("Telerik.Web.UI.InputManagerEventArgs",Sys.EventArgs); Telerik.Web.UI.InputManagerErrorEventArgs=function(b,a,c){Telerik.Web.UI.InputManagerErrorEventArgs.initializeBase(this,[b,a]); this._targetInput=c; }; Telerik.Web.UI.InputManagerErrorEventArgs.prototype={get_targetInput:function(){return this._targetInput; },set_inputText:function(a){this._inputText=a; }}; Telerik.Web.UI.InputManagerErrorEventArgs.registerClass("Telerik.Web.UI.InputManagerErrorEventArgs",Telerik.Web.UI.InputErrorEventArgs); Telerik.Web.UI.NumericInputManagerErrorEventArgs=function(d,a,c,b,e){Telerik.Web.UI.NumericInputManagerErrorEventArgs.initializeBase(this,[d,a,c,b]); this._targetInput=e; }; Telerik.Web.UI.NumericInputManagerErrorEventArgs.prototype={get_targetInput:function(){return this._targetInput; }}; Telerik.Web.UI.NumericInputManagerErrorEventArgs.registerClass("Telerik.Web.UI.NumericInputManagerErrorEventArgs",Telerik.Web.UI.NumericInputErrorEventArgs); Telerik.Web.UI.InputManagerValidatingEventArgs=function(a){Telerik.Web.UI.InputManagerValidatingEventArgs.initializeBase(this); this._input=a; this._isValid=true; this._context=null; }; Telerik.Web.UI.InputManagerValidatingEventArgs.prototype={get_input:function(){return this._input; },get_isValid:function(){return this._isValid; },set_isValid:function(a){this._isValid=a; },get_context:function(){return this._context; },set_context:function(a){this._context=a; }}; Telerik.Web.UI.InputManagerValidatingEventArgs.registerClass("Telerik.Web.UI.InputManagerValidatingEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.PasswordStrengthCalculatingEventArgs=function(b,c,a){Telerik.Web.UI.PasswordStrengthCalculatingEventArgs.initializeBase(this); this._passwordText=b; this._strengthScore=c; this._indicatorText=a; }; Telerik.Web.UI.PasswordStrengthCalculatingEventArgs.prototype={get_passwordText:function(){return this._passwordText; },get_strengthScore:function(){return this._strengthScore; },set_strengthScore:function(a){if(typeof a=="number"){a=Math.ceil(a); if(a>100){a=100; }if(a<0){a=0; }this._strengthScore=a; }},set_indicatorText:function(a){this._indicatorText=a; }}; Telerik.Web.UI.PasswordStrengthCalculatingEventArgs.registerClass("Telerik.Web.UI.PasswordStrengthCalculatingEventArgs",Sys.EventArgs); Telerik.Web.UI.InputManagerValueChangedEventArgs=function(b,a,d,c){this._domEvent=a; this._oldValue=d; this._newValue=c; this._inputExtender=b; }; Telerik.Web.UI.InputManagerValueChangedEventArgs.prototype={get_domEvent:function(){return this._domEvent; },get_oldValue:function(){return this._oldValue; },get_newValue:function(){return this._newValue; },get_inputExtender:function(){return this._inputExtender; }}; Telerik.Web.UI.InputManagerValueChangedEventArgs.registerClass("Telerik.Web.UI.InputManagerValueChangedEventArgs",Sys.EventArgs); $telerik.findTextBox=$find; $telerik.toTextBox=function(a){return a; }; Telerik.Web.UI.RadTextBox=function(a){Telerik.Web.UI.RadTextBox.initializeBase(this,[a]); this._maxLength=0; this._inputType=Telerik.Web.UI.InputType.Text; this._passwordSettings=null; this._resizeMode="none"; this._resizeVertical=false; this._resizeHorizontal=false; this._onTextBoxMouseMoveDelegate=null; this._onResizeIconMouseDownDelegate=null; this._resizeIconSpan=null; this._onMouseMoveDelegate=null; this._onMouseUpDelegate=null; this._wrapperElementExtraWidth=0; this._parentElementExtraWidth=0; this._wrapperElementExtraHeight=0; this._parentElementExtraHeight=0; this._minWidth=75; this._minHeight=35; }; Telerik.Web.UI.RadTextBox.prototype={initialize:function(){Telerik.Web.UI.RadTextBox.callBaseMethod(this,"initialize"); if(this._passwordSettings&&this._passwordSettings.ShowIndicator){Telerik.Web.UI.PasswordStrengthChecker.prototype.showStrength(this,this._textBoxElement,this._passwordSettings); }if(this._resizeMode!="none"){if(this._resizeMode=="vertical"){this._resizeVertical=true; }else{if(this._resizeMode=="horizontal"){this._resizeHorizontal=true; }else{if(this._resizeMode=="both"){this._resizeVertical=true; this._resizeHorizontal=true; }}}this._wrapperElementExtraWidth=this._textBoxElement.parentNode.offsetWidth-this._textBoxElement.offsetWidth; this._parentElementExtraWidth=this.get_wrapperElement().offsetWidth-this._textBoxElement.offsetWidth; this._wrapperElementExtraHeight=this._textBoxElement.parentNode.offsetHeight-this._textBoxElement.offsetHeight; this._parentElementExtraHeight=this.get_wrapperElement().offsetHeight-this._textBoxElement.offsetHeight; this._onTextBoxMouseMoveDelegate=Function.createDelegate(this,this._onTextBoxMouseMoveHandler); window.$addHandler(this._textBoxElement,"mousemove",this._onTextBoxMouseMoveDelegate); if($telerik.isIE){var a=document.createElement("span"); a.className="riResizeIcon"; this._textBoxElement.parentNode.appendChild(a); this._onResizeIconMouseDownDelegate=Function.createDelegate(this,this._onResizeIconMouseDownHandler); this._resizeIconSpan=a; window.$addHandler(this._resizeIconSpan,"mousedown",this._onResizeIconMouseDownDelegate); if(this._resizeVertical){if(this._resizeHorizontal){if(this._isRtl){this._resizeIconSpan.style.cursor="sw-resize"; }else{this._resizeIconSpan.style.cursor="se-resize"; }}else{this._resizeIconSpan.style.cursor="s-resize"; }}else{this._resizeIconSpan.style.cursor="w-resize"; }}else{this.get_wrapperElement().style.backgroundImage="none"; }}},dispose:function(){if(this._onTextBoxMouseMoveDelegate){window.$removeHandler(this._textBoxElement,"mousemove",this._onTextBoxMouseMoveDelegate); this._onTextBoxMouseMoveDelegate=null; }if(this._onResizeIconMouseDownDelegate){window.$removeHandler(this._resizeIconSpan,"mousedown",this._onResizeIconMouseDownDelegate); this._onResizeIconMouseDownDelegate=null; }this._onMouseUpHandler(null); Telerik.Web.UI.RadTextBox.callBaseMethod(this,"dispose"); },_onTextBoxMouseWheelHandler:function(a){return true; },_onTextBoxKeyUpHandler:function(a){Telerik.Web.UI.RadTextBox.callBaseMethod(this,"_onTextBoxKeyUpHandler",[a]); if(this._passwordSettings&&this._passwordSettings.ShowIndicator){Telerik.Web.UI.PasswordStrengthChecker.prototype.showStrength(this,this._textBoxElement,this._passwordSettings); }},_onTextBoxPasteHandler:function(a){Telerik.Web.UI.RadTextBox.callBaseMethod(this,"_onTextBoxPasteHandler",[a]); var b=this; if(b._passwordSettings&&b._passwordSettings.ShowIndicator){window.setTimeout(function(){if(b&&b._passwordSettings&&b._passwordSettings.ShowIndicator){Telerik.Web.UI.PasswordStrengthChecker.prototype.showStrength(b,b._textBoxElement,b._passwordSettings); }},0); }},_adjustWrappersDimensions:function(){var a=false; var c=this._parentElementExtraWidth+this._textBoxElement.offsetWidth; var b=this._parentElementExtraHeight+this._textBoxElement.offsetHeight; if(c!=this.get_wrapperElement().offsetWidth){this.get_wrapperElement().style.width=c+"px"; this._textBoxElement.parentNode.style.width=this._wrapperElementExtraWidth+this._textBoxElement.offsetWidth+"px"; a=true; }if(b!=this.get_wrapperElement().offsetHeight){this.get_wrapperElement().style.height=b+"px"; this._textBoxElement.parentNode.style.height=this._wrapperElementExtraHeight+this._textBoxElement.offsetHeight+"px"; a=true; }return a; },_onTextBoxMouseMoveHandler:function(b){if(!$telerik.isIE){var a=this._adjustWrappersDimensions(); if(a&&!$telerik.isFirefox&&!this._onMouseMoveDelegate){this._onMouseMoveDelegate=Function.createDelegate(this,this._onMouseMoveHandler); window.$addHandler(document,"mousemove",this._onMouseMoveDelegate); this._onMouseUpDelegate=Function.createDelegate(this,this._onMouseUpHandler); window.$addHandler(document,"mouseup",this._onMouseUpDelegate); }}},_onResizeIconMouseDownHandler:function(a){$telerik.cancelRawEvent(a); if(!this._onMouseUpDelegate&&!this._onMouseMoveDelegate){this._onMouseMoveDelegate=Function.createDelegate(this,this._onMouseMoveHandler); window.$addHandler(document,"mousemove",this._onMouseMoveDelegate); this._onMouseUpDelegate=Function.createDelegate(this,this._onMouseUpHandler); window.$addHandler(document,"mouseup",this._onMouseUpDelegate); }},_onTextBoxMouseUpHandler:function(a){this._onMouseUpHandler(a); Telerik.Web.UI.RadTextBox.callBaseMethod(this,"_onTextBoxMouseUpHandler",[a]); },_onMouseUpHandler:function(a){if(this._onMouseMoveDelegate){window.$removeHandler(document,"mousemove",this._onMouseMoveDelegate); this._onMouseMoveDelegate=null; }if(this._onMouseUpDelegate){window.$removeHandler(document,"mouseup",this._onMouseUpDelegate); this._onMouseUpDelegate=null; }},_onMouseMoveHandler:function(c){if($telerik.isIE){var f=$telerik.getLocation(this._textBoxElement); var g; var h; if(c.rawEvent.pageX==null){var d=c.target.ownerDocument||document; var b=d.documentElement; var a=d.body; g=c.clientX+(b&&b.scrollLeft||a&&a.scrollLeft||0)-(b&&b.clientLeft||a&&a.clientLeft||0); h=c.clientY+(b&&b.scrollTop||a&&a.scrollTop||0)-(b&&b.clientTop||a&&a.clientTop||0); }else{g=c.rawEvent.pageX; h=c.rawEvent.pageY; }if(this._resizeHorizontal){var j; if(this._isRtl){j=(f.x-g)+this._textBoxElement.clientWidth+5; }else{j=g-f.x+5; }if(j>=this._minWidth){this._textBoxElement.style.width=j+"px"; }}if(this._resizeVertical){var i=5+h-f.y; if(i>=this._minHeight){this._textBoxElement.style.height=i+"px"; }}}this._adjustWrappersDimensions(); },updateCssClass:function(a){if(this._resizeMode!="none"){this._originalTextBoxCssText="height: "+this._textBoxElement.style.height+"; width: "+this._textBoxElement.style.width+";"; }Telerik.Web.UI.RadTextBox.callBaseMethod(this,"updateCssClass",[a]); },get_inputType:function(){return this._inputType; },set_inputType:function(a){if(this._inputType!==a){this._inputType=a; this.raisePropertyChanged("inputType"); }},get_maxLength:function(){return this._maxLength; },set_maxLength:function(a){if(this._maxLength!==a){this._maxLength=a; this.get_element().maxLength=a; this.raisePropertyChanged("maxLength"); }},get_passwordSettings:function(){return this._passwordSettings; },set_passwordSettings:function(a){if(this._passwordSettings!==a){this._passwordSettings=a; }},raise_passwordStrengthCalculating:function(a){this.raiseEvent("passwordStrengthCalculating",a); },add_passwordStrengthCalculating:function(a){this.get_events().addHandler("passwordStrengthCalculating",a); },remove_passwordStrengthCalculating:function(a){this.get_events().removeHandler("passwordStrengthCalculating",a); }}; Telerik.Web.UI.RadTextBox.registerClass("Telerik.Web.UI.RadTextBox",Telerik.Web.UI.RadInputControl); /* END Telerik.Web.UI.Input.TextBox.RadInputScript.js */ /* START Telerik.Web.UI.Common.jQuery.js */ /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],d!=="__proto__"&&g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0; }return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML="
a",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:l.htmlSerialize?[0,"",""]:[1,"X
","
"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?""!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]","i"),wa=/\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n(""; this._element=a.firstChild; this._element.src="about:blank"; this._targetElement.parentNode.insertBefore(this._element,this._targetElement); if(this._targetElement.style.zIndex>0){this._element.style.zIndex=this._targetElement.style.zIndex-1; }this._element.style.position="absolute"; this._element.style.border="0px"; this._element.frameBorder=0; this._element.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"; this._element.tabIndex=-1; if(!$telerik.isSafari&&!$telerik.isIE10Mode){a.outerHTML=null; }this.updatePosition(); },dispose:function(){if(this._element.parentNode){this._element.parentNode.removeChild(this._element); }this._targetElement=null; this._element=null; },get_targetElement:function(){return this._targetElement; },set_targetElement:function(a){this._targetElement=a; },get_element:function(){return this._element; },updatePosition:function(){this._element.style.top=this._toUnit(this._targetElement.style.top); this._element.style.left=this._toUnit(this._targetElement.style.left); this._element.style.width=this._targetElement.offsetWidth+"px"; this._element.style.height=this._targetElement.offsetHeight+"px"; },_toUnit:function(a){if(!a){return"0px"; }return parseInt(a,10)+"px"; }}; Telerik.Web.UI.Overlay.registerClass("Telerik.Web.UI.Overlay",null,Sys.IDisposable); /* END Telerik.Web.UI.Common.Navigation.OverlayScript.js */ /* START Telerik.Web.UI.Common.TouchScrollExtender.js */ (function(a){Type.registerNamespace("Telerik.Web.UI"); var b=Telerik.Web.UI; var c=false; Telerik.Web.UI.TouchScrollExtender=function(d){this._containerElements=a(d); var e=arguments[1]||{}; this._autoScan="autoScan" in e?e.autoScan:false; this._showScrollHints="showScrollHints" in e?e.showScrollHints:true; this._useRoundedHints="useRoundedHints" in e?e.useRoundedHints:true; this._hasHorizontalScrollHint=false; this._hasVerticalScrollHint=false; this._verticalScrollHint=false; this._horizontalScrollHint=false; this._lastAnimator=false; this._dragCanceled=false; this._currentTouches=0; this.containers=[]; this._enableTouchScroll=true; this._unbindBeforeDragging=false; }; Telerik.Web.UI.TouchScrollExtender._getNeedsScrollExtender=function(){return $telerik.isTouchDevice; }; Telerik.Web.UI.TouchScrollExtender.prototype={initialize:function(){if(this._enableTouchScroll){if(this._autoScan){this._containerElements=this._containerElements.add(a("*",this._containerElements)).filter(function(){return(a(this).css("overflow")=="scroll"||a(this).css("overflow")=="auto"); }); }var d=this; this._containerElements.each(function(){this.style.overflow="hidden"; var e=a(this).addClass("RadTouchExtender").css("-webkit-tap-highlight-color","rgba(0, 0, 0, 0);"); var f={element:e.stop(),horizontalScrollHint:a('