function Sys$Enum$parse(n,t){var i,r,h,f,e,o,s,u,c;if(t){if(i=this.__lowerCaseValues,!i){this.__lowerCaseValues=i={};f=this.prototype;for(e in f)i[e.toLowerCase()]=f[e]}}else i=this.prototype;if(this.__flags){for(o=(t?n.toLowerCase():n).split(","),s=0,u=o.length-1;u>=0;u--){if(c=o[u].trim(),r=i[c],typeof r!="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,n.split(",")[u].trim(),this.__typeName));s|=r}return s}if(h=t?n.toLowerCase():n,r=i[h.trim()],typeof r!="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,n,this.__typeName));return r}function Sys$Enum$toString(n){var r,t,i,u,e,o,f;if(typeof n=="undefined"||n===null)return this.__string;if(r=this.prototype,this.__flags&&n!==0){if(i=this.__sortedValues,!i){i=[];for(t in r)i[i.length]={key:t,value:r[t]};i.sort(function(n,t){return n.value-t.value});this.__sortedValues=i}for(u=[],e=n,t=i.length-1;t>=0;t--)if((o=i[t],f=o.value,f!==0)&&(f&n)===f&&(u[u.length]=o.key,e-=f,e===0))break;if(u.length&&e===0)return u.reverse().join(", ")}else for(t in r)if(r[t]===n)return t;return""}function Sys$Component$_setProperties(n,t){var u,c=Object.getType(n),e=c===Object||c===Sys.UI.DomElement,l=Sys.Component.isInstanceOfType(n)&&!n.get_isUpdating(),r,i,f,o,s;l&&n.beginUpdate();for(r in t)if(i=t[r],f=e?null:n["get_"+r],e||typeof f!="function")o=n[r],i&&typeof i=="object"&&(!e||o)?Sys$Component$_setProperties(o,i):n[r]=i;else if(s=n["set_"+r],typeof s=="function")s.apply(n,[i]);else if(i instanceof Array){u=f.apply(n);for(var h=0,a=u.length,v=i.length;h<v;h++,a++)u[a]=i[h]}else typeof i=="object"&&Object.getType(i)===Object&&(u=f.apply(n),Sys$Component$_setProperties(u,i));l&&n.endUpdate()}function Sys$Component$_setReferences(n,t){var i,r,u;for(i in t)r=n["set_"+i],u=$find(t[i]),r.apply(n,[u])}function thisObj(n){return IE4?document.all[n].style:DOM?document.getElementById(n).style:NS4?document.layers[n]:null}function divObj(n){return document.layers?document.layers[n]:document.all?document.all[n]:document.getElementById?document.getElementById(n):void 0}function moveObjTo(n,t,i){thisObj(n).left=t;thisObj(n).top=i}function getElement(n){return document.layers?document.layers[n]:document.all?document.all[n]:document.getElementById?document.getElementById(n):void 0}function IEVersion(){return _ieVersion===!1&&(_ieVersion=navigator.appName=="Microsoft Internet Explorer"?parseFloat(new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)[1]):-1),_ieVersion}function SetDefaults(){}function SetDefaultPassword(){if(typeof setpw1=="string"&&setpw1){var n=divObj("topLoginPassword");n&&n.value.length<1&&(divObj("pw1").innerHTML=setpw1)}}function ShowPNG(n,t,i,r){IE?document.write('<img src="'+baseUrl+'/images/none.gif" width="'+t+'" height="'+i+'" style="width: '+t+"px; height: "+i+"px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+n+'\',sizingMethod=\'scale\');" hspace="0" vspace="0" border="0" align="top" '+r+" />"):document.write('<img src="'+n+'" style="" width="'+t+'" height="'+i+'" hspace="0" vspace="0" border="0" align="top" '+r+" />")}function ShowPNGInDiv(n,t,i,r,u){getElement(u).innerHTML+=IE?'<img src="'+baseUrl+'/images/none.gif" width="'+t+'" height="'+i+'" style="width: '+t+"px; height: "+i+"px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+n+'\',sizingMethod=\'scale\');" hspace="0" vspace="0" border="0" align="top" '+r+" />":'<img src="'+n+'" style="" width="'+t+'" height="'+i+'" hspace="0" vspace="0" border="0" align="top" '+r+" />"}function ReplacePNGInDiv(n,t,i,r,u){getElement(u).innerHTML=IE?'<img src="'+baseUrl+'/images/none.gif" width="'+t+'" height="'+i+'" style="width: '+t+"px; height: "+i+"px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+n+'\',sizingMethod=\'scale\');" hspace="0" vspace="0" border="0" align="top" '+r+" />":'<img src="'+baseUrl+'/images/none.gif" style="background-image:url(\''+n+'\');" width="'+t+'" height="'+i+'" hspace="0" vspace="0" border="0" align="top" '+r+" />"}function ShowPNGInElement(n,t,i,r,u){u.innerHTML+=IE?'<img src="'+baseUrl+'/images/none.gif" width="'+t+'" height="'+i+'" style="width: '+t+"px; height: "+i+"px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+n+'\',sizingMethod=\'scale\');" hspace="0" vspace="0" border="0" align="top" '+r+" />":'<img src="'+n+'" style="" width="'+t+'" height="'+i+'" hspace="0" vspace="0" border="0" align="top" '+r+" />"}function PNGBackground(n){var t=IEVersion();t>0&&t<7&&(getElement(n).style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity = 90);")}function SubShd(n,t){var i;n=="4col"&&(i=810);n=="3col"&&(i=610);n=="2col"&&(i=410);n=="1col"&&(i=206);t||(document.write('<div class="subshd">'),ShowPNG(baseUrl+"/images/shade_subnavi.png",i,8,""),document.write("<\/div>"))}function DDShd(n,t){if(t){var r=getElement(t),i=document.createElement("div");i.className="subshd";ShowPNGInElement(baseUrl+"/images/shade_subnavi.png",n,8,"",i);r.appendChild(i)}else document.write('<div class="subshd">'),ShowPNG(baseUrl+"/images/shade_subnavi.png",n,8,""),document.write("<\/div>")}function TakeClass(n,t){var i=document.getElementById(n);i.setAttribute("class",t);i.setAttribute("className",t)}function TakeClassObj(n,t){n.setAttribute("class",t);n.setAttribute("className",t)}function GetClassObj(n){return n.getAttribute("class")?n.getAttribute("class"):n.getAttribute("className")}function TabOff(){var n=TabOff.arguments.length;for(i=0;i<n;i++)HideDiv("cont_"+TabOff.arguments[i]),TakeClass(TabOff.arguments[i],"tab1")}function TabOn(){var n=TabOn.arguments.length;for(i=0;i<n;i++)i==0&&ShowDiv("cont_"+TabOn.arguments[i]),TakeClass(TabOn.arguments[i],"tab2")}function HideShow(n){var t;GetDisplay(n)=="block"?(HideDiv(n),DropdownOpen="",t=getElement(n+"Button"),t&&(t.style.visibility="visible",t.focus())):(DropdownOpen!=""&&DropdownOpen!=n&&HideDiv(DropdownOpen),ShowDiv(n),t=getElement(n+"Button"),t&&(t.focus(),t.style.visibility="hidden"),DropdownOpen=n)}function ShowDiv(n){thisObj(n).display="block"}function HideDiv(n){thisObj(n).display="none";var t=getElement(n+"Button");t&&(t.style.visibility="visible")}function ActivateNavi(n,t,i){n>0&&t&&i&&PutImage(baseUrl+"/images/navi_"+i+"_"+t+"_3.png","n"+n+"","navi");ActiveNavi=n;SubnaviOff=setTimeout("",0)}function NaviClicked(){}function DoThis(n,t,i){var r=new RegExp(t,"gi");return n.replace(r,i)}function LastNaviMouse(n){n=="on"?(CutCall(1),CutCall(2)):(CallOff(1),CallOff(2))}function SubNaviMouse(n,t){t=="on"?CutCall(1):CallOff(1)}function NaviMouse(n,t,i,r){t=t=="on"?2:1;NumbR=n;t==2?(CutCall(1),ActiveLink=n,$("#subnavi"+n).stop(!0,!0),_ClearSubnavi(n),IE?$("#subnavi"+n).show():$("#subnavi"+n).fadeIn("fast"),n!=ActiveNavi&&i&&r&&PutImage(baseUrl+"/images/navi_"+r+"_"+i+"_2.png","n"+n+"","navi")):CallOff(1)}function CallOff(n){n==1&&(SubnaviOff=setTimeout("ActiveLink=0;ClearSubnavi();",400))}function CutCall(n){n==1&&clearTimeout(SubnaviOff)}function ClearSubnavi(){_ClearSubnavi(!1)}function _ClearSubnavi(ExceptLink){for(ExceptLink||(ExceptLink=0),MainNumb=0;MainNumb<eval("FirstLevel.length")-1;)MainNumb++,ExceptLink>0&&MainNumb!=ExceptLink?($("#subnavi"+MainNumb).stop(!0,!0),$("#subnavi"+MainNumb).hide()):MainNumb!=ActiveLink&&($("#subnavi"+MainNumb).stop(!0,!0),IE?$("#subnavi"+MainNumb).hide():$("#subnavi"+MainNumb).fadeOut("normal")),MainNumb!=ExceptLink&&MainNumb!=ActiveNavi&&PutImage(baseUrl+"/images/none.gif","n"+MainNumb+"","navi")}function GoSubmitOne(){navigator.platform&&document.layers?(LomakeName=document.layers.lomake1.document.yhteystiedot.name.value,LomakeEmail=document.layers.lomake1.document.yhteystiedot.email.value,LomakePhone=document.layers.lomake1.document.yhteystiedot.phone.value,postitus=document.layers.lomake1.document.yhteystiedot.postitus.checked?"ok":"no",vast2=document.layers.lomake1.document.yhteystiedot.noudetaan.checked?"Noutaa palkinnon Riihimaelta 8.5.":"Ei nouda palkintoa Riihimaelta",address=document.layers.lomake1.document.yhteystiedot.address.value,address2=document.layers.lomake1.document.yhteystiedot.address2.value,address3_selected=document.layers.lomake1.document.yhteystiedot.address3.selectedIndex,address3=document.layers.lomake1.document.yhteystiedot.address3[address3_selected].value):(LomakeName=window.document.yhteystiedot.name.value,LomakeEmail=window.document.yhteystiedot.email.value,LomakePhone=window.document.yhteystiedot.phone.value,postitus=window.document.yhteystiedot.postitus.checked?"ok":"no",vast2=window.document.yhteystiedot.noudetaan.checked?"Noutaa palkinnon Riihimaelta 8.5.":"Ei nouda palkintoa Riihimaelta",address=window.document.yhteystiedot.address.value,address2=window.document.yhteystiedot.address2.value,address3_selected=window.document.yhteystiedot.address3.selectedIndex,address3=window.document.yhteystiedot.address3[address3_selected].value);LomakeName.length>0?LomakePhone.length>0?LomakeEmail.length>0?LomakeEmail.indexOf("@")>=1&&LomakeEmail.indexOf(".")>=1&&LomakeEmail.length>=5?address3!="x"&&address3!=null?GoSendPage():alert("Kerro syntymavuosi."):alert("Sahkapostiosoite on virheellinen."):alert("Anna sahkpostiosoite yhteydenottoa varten."):alert("Anna puhelinnumero yhteydenottoa varten."):alert("Anna oma nimesi.")}function PutImage(n,t,i){navigator.platform&&i!="0"&&document.layers?document.layers[i].document[t].src=n:document[t].src=n}function ShowLayer(n){document.layers?document.layers[n].visibility="show":document.all?document.all[n].style.visibility="visible":document.getElementById&&(document.getElementById(n).style.visibility="visible");(n=="lomake1"||n=="haaste")&&moveObjTo(n,17,109)}function HideLayer(n){document.layers?document.layers[n].visibility="hide":document.all?document.all[n].style.visibility="hidden":document.getElementById&&(document.getElementById(n).style.visibility="hidden");(n=="lomake1"||n=="haaste")&&moveObjTo(n,-800,-800)}function ImageFade(n,t,i,r){if(document.all){if(n!="[object]"){setTimeout("ImageFade("+n+","+t+","+i+","+r+")",0);return}clearTimeout(ImageFadeTimers[n.sourceIndex]);diff=t-n.filters.alpha.opacity;direction=1;n.filters.alpha.opacity>t&&(direction=-1);r=Math.min(direction*diff,r);n.filters.alpha.opacity+=direction*r;n.filters.alpha.opacity!=t&&(ImageFadeObjects[n.sourceIndex]=n,ImageFadeTimers[n.sourceIndex]=setTimeout("ImageFade(ImageFadeObjects["+n.sourceIndex+"],"+t+","+i+","+r+")",i))}}function setCookie(n,t,i,r){var u=n+"="+escape(t)+(i==null?"; expires="+defaultExpire.toGMTString():"; expires="+i.toGMTString());r=="/"&&(u+=";path="+r+";");document.cookie=u}function getCookie(n){var i=n+"=",r=document.cookie.indexOf(i),t;return r==-1?null:(t=document.cookie.indexOf(";",r+i.length),t==-1&&(t=document.cookie.length),unescape(document.cookie.substring(r+i.length,t)))}function deleteCookie(n){var t=new Date,i;t.setTime(t.getTime()-1);i=getCookie(n);document.cookie=n+"="+i+"; expires="+t.toGMTString()}function InfoBoxOn(n){ShowLayer(n);moveObjTo(n,179,145)}function InfoBoxOff(n){HideLayer(n);moveObjTo(n,-300,-300)}function PopUp(n){window.open(n,"Popup","resizable=no,scrollbars=no,width=334,height=260")}function Nothing(){return!1}function doCancelEvent(n){if(!n)var n=window.event;n.cancelBubble=!0;n.preventDefault?n.preventDefault():n.returnValue=!1;n.stopPropagation&&n.stopPropagation()}function onWindowScroll(n){if($(".hover.optionsOuter").is(":visible")){var i=$(".hover.optionsOuter:visible > UL"),t=0;n||(n=window.event);n.wheelDelta?(t=n.wheelDelta/120,t=t*-1):n.detail&&(t=n.detail/3);i.data("scroll-delta",t);t&&i.trigger("scroll");try{doCancelEvent(n)}catch(r){}}}function scrollTo(){var n;$("html,body").stop(!0,!0);var e=$(this).offset().top,i=$(window).scrollTop(),t=e-i;if(this.style.display!="none"){var r=$(window).height(),o=$(document).height(),u=$(this).height(),f=-1;t<0||u>r?(n=i+(t+u-r)+50,t<n&&(n=i+t-10),f=n):t+u+30>r&&(n=i+(t+u-r)+50,i-n+u+50>r&&(n=i+t-10),f=n);f>0&&$("html,body").animate({scrollTop:n},500)}}function imageFit(){var n=$(this).closest("div").eq(0).height(),t=$(this).closest("div").eq(0).width(),r=$(this).height(),i=$(this).width();if(!(r<=n)||!(i<=t)){$(this).parent().css("overflow","hidden");$(this).parent().css("position","relative");$(this).css("position","absolute").hide();var f=t/i,e=Math.ceil(r*f),u=Math.ceil(i*f);e<n?($(this).height(n),$(this).css("left",(Math.ceil(n/r*i)-t)/-2)):u<t?($(this).width(t),$(this).css("top",(Math.ceil(t/i*r)-n)/-2)):($(this).width(u),$(this).css("top",(Math.ceil(u/i*r)-n)/-6))}}function onReady(n){setTimeout(function(){window.lazyLoadImages&&window.lazyLoadImages(n)},10);jQuery(".tabcontrol",n).each(function(){jQuery(".smalltabs > a",this).click(function(){jQuery(this).parent().find("a.tabSelected").removeClass("tabSelected").addClass("tab");jQuery(this).removeClass("tab").addClass("tabSelected");var n=$(this).parent().find("a").index(this);jQuery(".optionsOuter",jQuery(this).parent().parent()).hide();jQuery(".contboxTabs > DIV",jQuery(this).parent().parent()).css("display","none");jQuery(".contboxTabs > DIV",jQuery(this).parent().parent()).eq(n).css("display","block")})});jQuery("INPUT.inputText",n).each(function(){var n=jQuery(this).width();jQuery(this).wrap('<div class="txtL3" style="float:left"><div class="txtR3" style="float:left"><\/div><\/div>');jQuery(this).removeClass("inputText").addClass("inputTXT").width(n-10)})}function resizeIframes(n){var t=$("iframe[src^='http://www.youtube.com'], iframe[src^='https://www.youtube.com'], iframe[src^='http://youtu.be'], iframe[src^='https://youtu.be']",n);t.each(function(){typeof $(this).data("aspectRatio")=="undefined"&&$(this).data("aspectRatio",$(this).height()/$(this).width()).data("originalwidth",$(this).width()).data("originalheight",$(this).height()).removeAttr("height").removeAttr("width")});t.each(function(){var n=$(this).parent().width(),t=$(this);t.data("originalwidth")>=n&&t.width(n).height(n*t.data("aspectRatio"))})}function initLabels(n){$("LABEL.tooltipLabel",n).each(function(){var t=jQuery("#"+f+"_toolTip"),f=jQuery(this).attr("for"),e=jQuery("#"+f,n),i;if(e.attr("title",""),e.mouseover(function(n){jQuery(".toolTipLabelContainer").stop(!0,!0);var i=jQuery(this).offset().left,r=jQuery(this).offset().top;i=i+20;r=r+20;n&&(i=n.pageX+15,r=n.pageY+15);t.css({left:i,top:r});t.fadeIn(100,function(){})}).mousemove(function(n){jQuery(".toolTipLabelContainer").stop(!0,!0);var i=jQuery(this).offset().left,r=jQuery(this).offset().top;i=i+20;r=r+20;n&&n.pageX&&(i=n.pageX+15,r=n.pageY+15);$(window).scrollLeft()+$(window).width()<i+t.outerWidth()&&(i-=t.outerWidth()+20);$(window).scrollTop()+$(window).height()<r+t.outerHeight()&&(r-=t.outerHeight()+15);t.show();t.css({left:i,top:r})}).mouseout(function(){jQuery(".toolTipLabelContainer").stop(!0,!0);t.fadeOut(200)}),t.size()==0){i=jQuery(this);i.remove().appendTo("body");t=i.wrap("<div><\/div>").parent();t.attr("id",f+"_toolTip");t.addClass("toolTipLabelContainer");i.css("background-color","#ffffff");i.css("padding","4px");i.css("margin","0");i.css("border","1px solid #666666");i.css("z-index","999");t.css("position","absolute");t.css("visibility","hidden");t.css("display","block");i.css("display","block");t.css("display","none");t.css("visibility","visible");var r=8,u=t.width(),o=baseUrl+"/images/shade_subnavi.png";IE?t.append('<img src="'+baseUrl+'/images/none.gif" width="'+u+'" height="'+r+'" style="width: '+u+"px; height: "+r+"px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+o+'\',sizingMethod=\'scale\');" hspace="0" vspace="0" border="0" align="top" />'):t.append('<img src="'+o+'" width="'+u+'" height="'+r+'" style="width: '+u+"px; height: "+r+'px;" hspace="0" vspace="0" border="0" align="top" />')}else i.remove()})}function initSelectBox(n){$("#"+n+":not(.initialized)").addClass("initialized").selectbox({inputClass:"dropBack3",containerClass:"optionsOuter",hoverClass:"current",currentClass:"selected",debug:!1})}function initSelectBoxes(n){$("SELECT.dd:not(.initialized)",n).addClass("initialized").selectbox({inputClass:"dropBack3",containerClass:"optionsOuter",hoverClass:"current",currentClass:"selected",debug:!1})}function parseQueryString(n){n||(n="");var u=n.replace(/;/g,"&").split("&"),t,r,i;for(n={},t=0;t<u.length;t++)i=u[t].split("=",2),r=decodeURIComponent(i[0]),r.length>0&&(n[r]=i.length>1?decodeURIComponent(i[1]):!0);return n}function createQueryString(n){var t=new Sys.StringBuilder,u=0,i,r,f;for(i in n)(r=n[i],typeof r!="function")&&(f=r,u!==0&&t.append("&"),t.append(i),t.append("="),t.append(encodeURIComponent(f)),u++);return t.toString()}function updateFilterParamLinks(n){n.find("a.arrowLink,a.arrowLink2").click(function(){this.href=updateFilterParamsUrl(this.href)})}function updateFilterParamsUrl(n){var i=n.indexOf("?"),r=n,t;return i!==-1&&(r=n.substr(0,i),t=n.substr(i+1,n.length)),t=updateFilterParamsQueryString(t),t.length>0&&(n=r+"?"+t),n}function updateFilterParams(n,t){var i=n.get_request(),r=i.get_body();i.set_body(updateFilterParamsQueryString(r,t))}function updateFilterParamsQueryString(n,t){var i=parseQueryString(n),u=$("#area").val(),f,e,r;return u&&u>0&&(i.area=u),f=$("#dt").val(),f&&(i.dt=f),e=$("#tm").val(),e&&(i.tm=e),r=$("#genre").val(),r&&r>0&&(i.genre=r),t&&(i.updateTargetId=t),createQueryString(i)}function checkFilterAction(n){onAjaxBegin(n)}function onAjaxBegin(n){var t=n.get_updateTarget();t?(showAjaxWaitScreen(t.id),updateFilterParams(n,t.id)):updateFilterParams(n)}function showAjaxWaitScreen(n,t){_showAjaxWaitScreen($("#"+n+""),t)}function _showAjaxWaitScreen(n,t){var f,h,a,e,i,o,c,r,u,s,l;n.hasClass("_ajaxloading")&&n.parent().stop(!0,!1);f=80;n.addClass("_ajaxloading");h=n.height();h<f&&(h=f);a=n.parent().innerWidth();e=n.parent().height();e&&e!=0||(e=n.children().innerHeight());i=e/2-50;o=0;i<10?i=10:i>50&&(i=50);o=i;c=0;r=f;n.hasClass("_ajaxloading")&&(n.find(".loadingContainer").length==0&&n.append('<div class="loadingContainer" style="visibility:hidden;position:static;clear:both;"><\/div>'),t||(t="updateClear"),u=jQuery("."+t+":first",n),u.length>0?(r=u.height(),r<f&&(r=f),i=r/2-16,i<10?i=10:i>100&&(i=100),o=i,u.height(r),u.empty(),u.append('<div class="loadingScreen" style="clear:both;display:none;height:'+r+"px;width:100%;position:relative;top:0;z-index:1;text-align:center;\"><img id='Ajax-Spinner-Image' src=\""+baseUrl+'/SharedAssets/Images/wait.gif"  style="display:none; margin-top:'+i+"px;margin-bottom:"+o+"px;\" /><div id='Ajax-Spinner' class='spinner-container' style=\"margin-left:auto;margin-right:auto;margin-top:"+i+"px;margin-bottom:"+o+'px;" /><\/div>'),u.append("<script>try{new Spinner(spinJsOptsions).spin(document.getElementById('Ajax-Spinner'));}catch(err){$('#Ajax-Spinner-Image').show(); }<\/script>")):(r=e,r<f&&(r=f),i=r/2-50,i<10?i=10:i>50&&(i=50),n.empty(),n.append('<div class="loadingContainer" style="visibility:hidden;position:static;clear:both;"><\/div>'),n.append('<div class="loadingScreen" style="display:none;height:'+e+"px;width:100%;position:relative;top:0;z-index:1;text-align:center;\"><img id='Ajax-Spinner-Image' src=\""+baseUrl+'/SharedAssets/Images/wait.gif"  style="display:none; margin-top:'+i+"px;margin-bottom:"+o+"px;\" /><div id='Ajax-Spinner' class='spinner-container'  style=\"margin-left:auto;margin-right:auto;margin-top:"+i+"px;margin-bottom:"+o+'px;" /><\/div>'),n.append("<script>try{new Spinner(spinJsOptsions).spin(document.getElementById('Ajax-Spinner'));}catch(err){$('#Ajax-Spinner-Image').show();}<\/script>")),s=n.offset().top,u.length>0&&(s=u.offset().top),l=$(window).scrollTop(),l>s&&$("html,body").animate({scrollTop:s-10},500),c>0?n.parent().animate({height:e+c},100,function(){n.find(".loadingScreen").fadeIn(200)}):n.find(".loadingScreen").fadeIn(200))}function endAjaxWaitScreen(n,t){var i=$("#"+n),f;if(i.size()==0)return!1;if(i.hasClass("_ajaxloading"))i.removeClass("_ajaxloading"),i.parent().stop(!0,!1),i.find(".loadingScreen").stop(!0,!1),i.find(".loadingContainer").html('<div class="loadedData">'+t+"<\/div>");else{i.html(t);onReady(i);return}IE;var e=i.find(".loadedData").height(),o=i.find(".loadedData").detach(),s=jQuery(window).height(),r=jQuery(document).height(),h=jQuery("#container-content").height(),c=jQuery(window).scrollTop(),u=jQuery("#container-content").scrollTop();i.html(o.contents());onReady(i);f=r-u-s;e<h-f-u?jQuery("BODY").css("min-height",r):jQuery("#container-content").height("auto");i.parent().height("auto")}function onAjaxComplete(n){var i,r,t;return clearTimeout(_ajaxWaitScreenTimer),i=n.get_updateTarget(),i?(r=n.get_data(),t=n.get_response().getResponseHeader("X-Page"),t&&t!=null&&(t=t.replace(/&/g,"%26"),t=t.replace(/=/g,"%3D"),_currentPage=t,Sys.Application.get_enableHistory()==!0&&Sys.Application.addHistoryPoint({page:_currentPage})),endAjaxWaitScreen(i.id,r),!1):void 0}function openPaymentWindow(n,t,i,r){console.log(n);var u=r,s=i,e=0,o=0,h=800,f=600;window.screen&&parseInt(window.screen.width,10)>0&&(h=window.screen.width);window.screen&&parseInt(window.screen.height,10)>0&&(f=window.screen.height-100);o=(h-s)/2;e=(f-u)/2;u>f-30&&(u=f-30);try{return window.name==""&&(window.name="mainWindow"),window.paymentWindow&&!window.paymentWindow.closed&&window.paymentWindow.close(),window.paymentWindow=window.open(n,t,"toolbar=no,directories=no,status=yes,location=yes,resizable=yes,scrollbars=yes,menubar=yes,height="+u+",width="+s+",top="+e+",left="+o+",screenX="+o+",screenY="+e+""),window.paymentWindow.focus(),console.log(n),!1}catch(c){console.error(c)}return!1}function reloadPage(){if(_currentPage)window.location.href=_currentPage;else{window.location.hash="";var n=window.location.href.replace("#","");window.location.href=n}}function _shoppingCartStatusOnSuccess(n){if(n!=null&&n.Url){showAjaxWaitScreen("websalesContainerDiv");document.location.hash="";document.location.href=n.Url;return}if(n!=null&&n.Cancel){$("#shoppingCartStatusBar").size()>0&&$("#shoppingCartStatusBar").slideUp(function(){$(this).hide()});$("#websalesRefreshFormSubmit").size()>0&&$("#websalesRefreshFormSubmit").click();return}if(n!=null&&n.Expired){_ShoppingCartExpired||(_ShoppingCartExpired=!0,$("#shoppingCartStatusBar").size()>0&&setShoppingCartStatusExpired(),$("#websalesRefreshFormSubmit").size()>0&&$("#websalesRefreshFormSubmit").click());return}if(n!=null&&n.ExpiresInSeconds){if(_ShoppingCartDttmCountStart=new Date,_ShoppingCartSecondsLeft=n.ExpiresInSeconds,_ShoppingCartSecondsLeft<=0){_ShoppingCartExpired||(_ShoppingCartExpired=!0,$("#shoppingCartStatusBar").size()>0&&setShoppingCartStatusExpired(),$("#websalesRefreshFormSubmit").size()>0&&$("#websalesRefreshFormSubmit").click());return}window.setShoppingCartStatusActive&&setShoppingCartStatusActive(n)}_ShoppingCartExpired||(_shoppingCartCheckTimer=setTimeout("checkShoppingCartStatus();",5e3))}function checkShoppingCartStatus(n){_shoppingCartCheckTimer&&_ShoppingCartStatusUrl?(clearTimeout(_shoppingCartCheckTimer),_shoppingCartCheckTimer=!1,_ShoppingCartCheckDttmStart=new Date,$.ajax({url:_ShoppingCartStatusUrl+"?"+Math.random(),success:_shoppingCartStatusOnSuccess,complete:function(){},dataType:"jsonp",type:"GET"})):n?_shoppingCartCheckTimer=setTimeout("checkShoppingCartStatus();",0):_ShoppingCartExpired||(_shoppingCartCheckTimer=setTimeout("checkShoppingCartStatus();",5e3))}function setClockSeconds(){var r=clockSeconds;if(r>=0){var n=Math.floor(r/3600),t=Math.floor((r-n*3600)/60),i=Math.floor(r-n*3600-t*60);n<10&&(n="0"+n);t<10&&(t="0"+t);i<10&&(i="0"+i);_shoppingCartClock||(_shoppingCartClock=document.getElementById("clock"));_shoppingCartClock&&(_shoppingCartClock.innerHTML=n!=="00"?n+":"+t+":"+i+"":t+":"+i+"");_$shoppingCartClocks=$(".clock_multi_txt");_$shoppingCartClocks&&(n!=="00"?_$shoppingCartClocks.html(n+":"+t+":"+i+""):_$shoppingCartClocks.html(t+":"+i+""))}else clearInterval(_shoppingCartClockInterval),_ShoppingCartExpired||(_ShoppingCartExpired=!0,$("#shoppingCartStatusBar").size()>0&&setShoppingCartStatusExpired(),$("#websalesRefreshFormSubmit").size()>0&&$("#websalesRefreshFormSubmit").click())}function updateClock(){_ShoppingCartSecondsLeft--;var n=new Date;clockSeconds=_ShoppingCartSecondsLeft;setClockSeconds()}function rateComment(n,t,i){$("#eventUserReviewThumbVote"+t).fadeOut("slow");$.post(n,{commentID:t,rate:i},function(n){$("#eventUserReviewThumbVote"+t).stop(!0,!0);n&&$("#eventUserReviewThumbVote"+t).html(n);$("#eventUserReviewThumbVote"+t).show()},"html")}function eventStarRateSelect(n){for(i=1;i<=5;i++){var t=$(".eventStarRate"+i),r="star_empty";t.hasClass("star_full")?r="star_full":t.hasClass("star_half")&&(r="star_half");t.attr("oldClass")||t.attr("oldClass",r);i<=n?t.removeClass(r).addClass("star_full"):t.removeClass(r).addClass("star_empty")}}function eventStarRateSubmit(n,t,r){var u,f;for(i=1;i<=5;i++)u="star_empty",i<=t&&(u="star_full"),$(".eventStarRate"+i).attr("oldClass",u),f=$(".eventStarRate"+i).attr("class"),$(".eventStarRate"+i).removeClass(f).addClass(u);$.post(n,{rate:t,ratingID:r},function(n){n&&$("#eventStarRatingContainer").html(n)},"html")}function eventStarRateClearSelection(){for(i=1;i<=5;i++){var n=$(".eventStarRate"+i),r=n.attr("oldClass"),t="star_empty";n.hasClass("star_full")?t="star_full":n.hasClass("star_half")&&(t="star_half");r&&n.removeClass(t).addClass(r);$("#eventStarRateText").html("")}}function eventUserReviewStarRateSelect(n,t){for(i=1;i<=5;i++){var r=$("#eventUserReviewStarRate"+i).attr("class");$("#eventUserReviewStarRate"+i).attr("oldClass")||$("#eventUserReviewStarRate"+i).attr("oldClass",r);i<=n?$("#eventUserReviewStarRate"+i).removeClass(r).addClass("star_full"):$("#eventUserReviewStarRate"+i).removeClass(r).addClass("star_empty");$("#eventUserReviewStarRateText").html(t)}}function eventUserReviewStarRateClearSelection(){for(i=1;i<=5;i++){var n=$("#eventUserReviewStarRate"+i).attr("oldClass"),t=$("#eventUserReviewStarRate"+i).attr("class");n&&$("#eventUserReviewStarRate"+i).removeClass(t).addClass(n);$("#eventUserReviewStarRateText").html("")}}function eventUserReviewStarRateClick(n,t){var r,u;for(i=1;i<=5;i++)r="star_empty",i<=n&&(r="star_full"),$("#eventUserReviewStarRate"+i).attr("oldClass",r),u=$(".eventStarRate"+i).attr("class"),$("#eventUserReviewStarRate"+i).removeClass(u).addClass(r);$("#eventUserReviewRatingInput").val(t)}function loadEventUserReviewsList(n,t){return showAjaxWaitScreen("eventUserReviewsListContainer"),$("#eventUserReviewsListContainer").each(scrollTo),$.post(n,{sub:"eventUserReviewsList",page:t},function(n){$("#eventUserReviewsList").stop(!0,!0);n&&endAjaxWaitScreen("eventUserReviewsList",n)},"html"),!1}function addUserReviewSubmit(n,t){var r=$(n).attr("action");return $("#addUserReviewSubmitButton").attr("disabled","disabled"),$.post(r,$(n).serialize(),function(n){for(n&&loadEventUserReviewsList(t,1),$("#addUserReviewSubmitButton").removeAttr("disabled"),$("#eventUserReviewText").val(""),$("#eventUserReviewRatingInput").val("1"),i=1;i<=5;i++){var r=$("#eventUserReviewStarRate"+i).attr("class");$("#eventUserReviewStarRate"+i).removeClass(r).addClass("star_empty");$("#eventUserReviewStarRate"+i).attr("oldClass","star_empty")}},"html"),!1}function playMedia(n,t,i){blueimp.Gallery([{title:i,href:n,type:"mediaElement/custom",videoType:t}])}function playYouTubeTrailer(){}function playTrailer(){}function playTrailerAddictTrailer(){}function SetFlashItemHeight(n){n.element.height(n.element.width()/n.width*n.height)}function setFlashResize(){var n=null;$(window).resize(function(){clearTimeout(n);n=setTimeout(function(){$.each(flashs,function(n,t){SetFlashItemHeight(t)})},300)})}function ResizeFlashByID(n){$("#"+n).each(function(){var n={element:$(this),height:$(this).attr("height"),width:$(this).attr("width")};SetFlashItemHeight(n);flashs.push(n)})}function stripString(n){for(var r=n.toLowerCase().replace(/\s+/g,"").split(""),u=null,f=[],i,t=0;t<r.length;t++)i=r[t],i!==u&&f.push(i),u=i;return f.join("")}function cleanCityName(n){if(n){var t=stripString(n);if(t.indexOf("talin")>-1||t.indexOf("taln")>-1||t.indexOf("tln")>-1)return"Tallinn";if(t.indexOf("tartu")>-1)return"Tartu"}return null}function cityInputChanged(n){var t=document.getElementById("cityDistrict"),r,u,i,f;if(t&&(n.value&&(r=cleanCityName(n.value),r&&r!==n.value&&(n.value=r)),cityDistrictToCityMapping&&t)){for(t.innerHTML="",t.disabled=!0,u=0;u<cityDistrictToCityMapping.length;u++)i=cityDistrictToCityMapping[u],i.mapToId===n.value&&(f=document.createElement("option"),f.value=i.id,f.text=i.name,t.add(f),t.disabled===!0&&(t.disabled=!1,t.setAttribute("data-value",i.id),t.value=i.id));t.disabled?$(t).closest(".cityDistrictContainer").addClass("hide"):$(t).closest(".cityDistrictContainer").removeClass("hide")}}var mejs,$create,$removeHandler,$get,$find,SubnaviOff,_ieVersion,today,expire,naviEnabled,korjausX,korjausY,console,_selectBoxInitialized,resizeIframesTimeout,_ajaxWaitScreenTimer,clockSeconds,mediaPlayerOptions,mediaPlayerOptionsInPage,flashs,spinJsOptsions;(function(n,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)})(typeof window!="undefined"?window:this,function(n,t){function ri(n){var t=n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:n.nodeType===1&&t?!0:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function ui(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(ue.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function hr(n,t){do n=n[t];while(n&&n.nodeType!==1);return n}function oe(n){var t=fi[n]={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function cr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",a,!1),n.removeEventListener("load",a,!1)):(u.detachEvent("onreadystatechange",a),n.detachEvent("onload",a))}function a(){(u.addEventListener||event.type==="load"||u.readyState==="complete")&&(cr(),i.ready())}function yr(n,t,r){if(r===undefined&&n.nodeType===1){var u="data-"+t.replace(vr,"-$1").toLowerCase();if(r=n.getAttribute(u),typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:ar.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=undefined}return r}function ei(n){for(var t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function pr(n,t,r,u){if(i.acceptData(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||r!==undefined||typeof t!="string")return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),(typeof t=="object"||typeof t=="function")&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),r!==undefined&&(e[i.camelCase(t)]=r),typeof t=="string"?(s=e[t],s==null&&(s=e[i.camelCase(t)])):s=e,s}}function wr(n,t,u){if(i.acceptData(n)){var e,s,h=n.nodeType,f=h?i.cache:n,o=h?n[i.expando]:i.expando;if(f[o]){if(t&&(e=u?f[o]:f[o].data,e)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=t in e?[t]:t.split(" ")),s=t.length;s--;)delete e[t[s]];if(u?!ei(e):!i.isEmptyObject(e))return}(u||(delete f[o].data,ei(f[o])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[o]:f[o]=null)}}}function vt(){return!0}function it(){return!1}function dr(){try{return u.activeElement}catch(n){}}function gr(n){var i=nu.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function f(n,t){var e,u,s=0,r=typeof n.getElementsByTagName!==o?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(t||"*"):undefined;if(!r)for(r=[],e=n.childNodes||n;(u=e[s])!=null;s++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return t===undefined||t&&i.nodeName(n,t)?i.merge([n],r):r}function be(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function eu(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function ou(n){return n.type=(i.find.attr(n,"type")!==null)+"/"+n.type,n}function su(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function li(n,t){for(var u,r=0;(u=n[r])!=null;r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function hu(n,t){if(t.nodeType===1&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function ke(n,t){var u,e,f;if(t.nodeType===1){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}u==="script"&&t.text!==n.text?(ou(t).text=n.text,su(t)):u==="object"?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):u==="input"&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):u==="option"?t.defaultSelected=t.selected=n.defaultSelected:(u==="input"||u==="textarea")&&(t.defaultValue=n.defaultValue)}}function cu(t,r){var u=i(r.createElement(t)).appendTo(r.body),f=n.getDefaultComputedStyle?n.getDefaultComputedStyle(u[0]).display:i.css(u[0],"display");return u.detach(),f}function lu(n){var r=u,t=ai[n];return t||(t=cu(n,r),t!=="none"&&t||(ot=(ot||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ot[0].contentWindow||ot[0].contentDocument).document,r.write(),r.close(),t=cu(n,r),ot.detach()),ai[n]=t),t}function vu(n,t){return{get:function(){var i=n();if(i!=null){if(i){delete this.get;return}return(this.get=t).apply(this,arguments)}}}}function wu(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=pu.length;i--;)if(t=pu[i]+r,t in n)return t;return u}function bu(n,t){for(var f,r,o,e=[],u=0,s=n.length;u<s;u++)(r=n[u],r.style)&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||f!=="none"||(r.style.display=""),r.style.display===""&&et(r)&&(e[u]=i._data(r,"olddisplay",lu(r.nodeName)))):e[u]||(o=et(r),(f&&f!=="none"||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;u<s;u++)(r=n[u],r.style)&&(t&&r.style.display!=="none"&&r.style.display!==""||(r.style.display=t?e[u]||"":"none"));return n}function ku(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function du(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+w[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+w[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function gu(n,t,u){var o=!0,f=t==="width"?n.offsetWidth:n.offsetHeight,e=k(n),s=r.boxSizing()&&i.css(n,"boxSizing",!1,e)==="border-box";if(f<=0||f==null){if(f=d(n,t,e),(f<0||f==null)&&(f=n.style[t]),yt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+du(n,t,u||(s?"border":"content"),o,e)+"px"}function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}function tf(){return setTimeout(function(){rt=undefined}),rt=i.now()}function bt(n,t){var r,i={height:n},u=0;for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function rf(n,t,i){for(var u,f=(st[t]||[]).concat(st["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function eo(n,t,u){var f,l,p,a,o,b,y,w,c=this,v={},s=n.style,h=n.nodeType&&et(n),e=i._data(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),o.unqueued==null&&(o.unqueued=0,b=o.empty.fire,o.empty.fire=function(){o.unqueued||b()}),o.unqueued++,c.always(function(){c.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],y=i.css(n,"display"),w=lu(n.nodeName),y==="none"&&(y=w),y==="inline"&&i.css(n,"float")==="none"&&(r.inlineBlockNeedsLayout&&w!=="inline"?s.zoom=1:s.display="inline-block"));u.overflow&&(s.overflow="hidden",r.shrinkWrapBlocks()||c.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(l=t[f],uo.exec(l)){if(delete t[f],p=p||l==="toggle",l===(h?"hide":"show"))if(l==="show"&&e&&e[f]!==undefined)h=!0;else continue;v[f]=e&&e[f]||i.style(n,f)}if(!i.isEmptyObject(v)){e?"hidden"in e&&(h=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!h);h?i(n).show():c.done(function(){i(n).hide()});c.done(function(){var t;i._removeData(n,"fxshow");for(t in v)i.style(n,t,v[t])});for(f in v)a=rf(h?e[f]:0,f,c),f in e||(e[f]=a.start,h&&(a.end=a.start,a.start=f==="width"||f==="height"?1:0))}}function oo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function uf(n,t,r){var e,o,s=0,l=wt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=rt||tf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:rt||tf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),h=u.props;for(oo(h,u.opts.specialEasing);s<l;s++)if(e=wt[s].call(u,n,h,u.opts),e)return e;return i.map(h,rf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function vf(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u.charAt(0)==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function yf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===bi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function vo(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return u!==r[0]&&r.unshift(u),i[u]}function yo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function di(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||wo.test(n)?u(n,i):di(n+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)di(n+"["+f+"]",t[f],r,u)}function wf(){try{return new n.XMLHttpRequest}catch(t){}}function ns(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function bf(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var c=[],l=c.slice,ir=c.concat,ti=c.push,rr=c.indexOf,ct={},gf=ct.toString,tt=ct.hasOwnProperty,ii="".trim,r={},ur="1.11.0",i=function(n,t){return new i.fn.init(n,t)},ne=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,te=/^-ms-/,ie=/-([\da-z])/gi,re=function(n,t){return t.toUpperCase()},p,or,sr,h,fi,lt,o,lr,ar,vr,ot,ai,ff,of,sf,dt,gi,ni,nr,tr,kf,df;i.fn=i.prototype={jquery:ur,constructor:i,selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return n!=null?n<0?this[n+this.length]:this[n]:l.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ti,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((o=arguments[u])!=null)for(f in o)(r=n[f],t=o[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(ur+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n!=null&&n==n.window},isNumeric:function(n){return n-parseFloat(n)>=0},isEmptyObject:function(n){for(var t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!tt.call(n,"constructor")&&!tt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(r.ownLast)for(t in n)return tt.call(n,t);for(t in n);return t===undefined||tt.call(n,t)},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?ct[gf.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(te,"ms-").replace(ie,re)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ri(n);if(i){if(e){for(;r<f;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;r<f;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:ii&&!ii.call("﻿ ")?function(n){return n==null?"":ii.call(n)}:function(n){return n==null?"":(n+"").replace(ne,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(ri(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(rr)return rr.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;i<r;)n[u++]=t[i++];if(r!==r)while(t[i]!==undefined)n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ri(n),f=[];if(o)for(;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return ir.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return(typeof t=="string"&&(f=n[t],t=n,n=f),!i.isFunction(n))?undefined:(u=l.call(arguments,2),r=function(){return n.apply(t||this,u.concat(l.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:function(){return+new Date},support:r});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ct["[object "+t+"]"]=t.toLowerCase()});p=function(n){function u(n,t,i,u){var w,h,c,v,k,y,d,a,nt,g;if((t?t.ownerDocument||t:s)!==e&&p(t),t=t||e,i=i||[],!n||typeof n!="string")return i;if((v=t.nodeType)!==1&&v!==9)return[];if(l&&!u){if(w=or.exec(n))if(c=w[1]){if(v===9)if(h=t.getElementById(c),h&&h.parentNode){if(h.id===c)return i.push(h),i}else return i;else if(t.ownerDocument&&(h=t.ownerDocument.getElementById(c))&&et(t,h)&&h.id===c)return i.push(h),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((c=w[3])&&r.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i}if(r.qsa&&(!o||!o.test(n))){if(a=d=f,nt=t,g=v===9&&n,v===1&&t.nodeName.toLowerCase()!=="object"){for(y=vt(n),(d=t.getAttribute("id"))?a=d.replace(sr,"\\$&"):t.setAttribute("id",a),a="[id='"+a+"'] ",k=y.length;k--;)y[k]=a+yt(y[k]);nt=gt.test(n)&&ii(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return vr(n.replace(lt,"$1"),t,i,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function h(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function pi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function hr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function tt(n){return h(function(t){return t=+t,h(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!==ut&&n}function wi(){}function vt(n,i){var e,f,s,o,r,h,c,l=hi[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=nr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=tr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(lt," ")}),r=r.slice(e.length));for(o in t.filter)(f=at[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):hi(n,h).slice(0)}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&r==="parentNode",e=bi++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[a,e];if(o){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,o))return!0}else while(t=t[r])if(t.nodeType===1||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===a&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||ar(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?pt(k,p,n,o,s):k,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ei(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return nt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ht)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];i<o;i++)if(u=t.relative[n[i].type])e=[ri(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<o;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(lt,"$1"),u,i<r&&ei(n.slice(i,r)),r<o&&ei(n=n.slice(r)),r<o&&yt(n))}e.push(u)}return ui(e)}function lr(n,i){var r=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,v="0",g=o&&[],p=[],nt=ht,tt=o||f&&t.find.TAG("*",l),it=a+=nt==null?1:Math.random()||.1,rt=tt.length;for(l&&(ht=s!==e&&s);v!==rt&&(y=tt[v])!=null;v++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(a=it)}r&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=v,r&&v!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)while(v--)g[v]||p[v]||(p[v]=di.call(c));p=pt(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&u.uniqueSort(c)}return l&&(a=it,ht=nt),g};return r?h(o):o}function ar(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function vr(n,i,u,f){var s,e,o,c,a,h=vt(n);if(!f&&h.length===1){if(e=h[0]=h[0].slice(0),e.length>2&&(o=e[0]).type==="ID"&&r.getById&&i.nodeType===9&&l&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return u;n=n.slice(e.shift().value.length)}for(s=at.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[c=o.type])break;if((a=t.find[c])&&(f=a(o.matches[0].replace(k,d),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&yt(e),!n)return b.apply(u,f),u;break}}}return wt(n,h)(f,i,!l,u,gt.test(n)&&ii(i.parentNode)||i),u}var it,r,t,st,oi,wt,ht,y,rt,p,e,v,l,o,g,ct,et,f="sizzle"+-new Date,s=n.document,a=0,bi=0,si=ni(),hi=ni(),ci=ni(),bt=function(n,t){return n===t&&(rt=!0),0},ut=typeof undefined,li=-2147483648,ki={}.hasOwnProperty,w=[],di=w.pop,gi=w.push,b=w.push,ai=w.slice,nt=w.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi=ft.replace("w","w#"),yi="\\["+i+"*("+ft+")"+i+"*(?:([*^$|!~]?=)"+i+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+vi+")|)|)"+i+"*\\]",dt=":("+ft+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+yi.replace(3,8)+")*)|.*)\\)|)",lt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),nr=new RegExp("^"+i+"*,"+i+"*"),tr=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),ir=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),rr=new RegExp(dt),ur=new RegExp("^"+vi+"$"),at={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+yi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},fr=/^(?:input|select|textarea|button)$/i,er=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,sr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{b.apply(w=ai.call(s.childNodes),s.childNodes);w[s.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){gi.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}r=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};p=u.setDocument=function(n){var a,u=n?n.ownerDocument||n:s,h=u.defaultView;return u===e||u.nodeType!==9||!u.documentElement?e:(e=u,v=u.documentElement,l=!oi(u),h&&h!==h.top&&(h.addEventListener?h.addEventListener("unload",function(){p()},!1):h.attachEvent&&h.attachEvent("onunload",function(){p()})),r.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),r.getElementsByTagName=c(function(n){return n.appendChild(u.createComment("")),!n.getElementsByTagName("*").length}),r.getElementsByClassName=ot.test(u.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",n.getElementsByClassName("i").length===2}),r.getById=c(function(n){return v.appendChild(n).id=f,!u.getElementsByName||!u.getElementsByName(f).length}),r.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&l){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=r.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=r.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&l)return t.getElementsByClassName(n)},g=[],o=[],(r.qsa=ot.test(u.querySelectorAll))&&(c(function(n){n.innerHTML="<select t=''><option selected=''><\/option><\/select>";n.querySelectorAll("[t^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+kt+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=u.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(r.matchesSelector=ot.test(ct=v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector||v.msMatchesSelector))&&c(function(n){r.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");g.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),a=ot.test(v.compareDocumentPosition),et=a||ot.test(v.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=a?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,i&1||!r.sortDetached&&t.compareDocumentPosition(n)===i)?n===u||n.ownerDocument===s&&et(s,n)?-1:t===u||t.ownerDocument===s&&et(s,t)?1:y?nt.call(y,n)-nt.call(y,t):0:i&4?-1:1}:function(n,t){if(n===t)return rt=!0,0;var i,r=0,o=n.parentNode,h=t.parentNode,f=[n],e=[t];if(o&&h){if(o===h)return pi(n,t)}else return n===u?-1:t===u?1:o?-1:h?1:y?nt.call(y,n)-nt.call(y,t):0;for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[r]===e[r])r++;return r?pi(f[r],e[r]):f[r]===s?-1:e[r]===s?1:0},u)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(ir,"='$1']"),r.matchesSelector&&l&&(!g||!g.test(t))&&(!o||!o.test(t)))try{var i=ct.call(n,t);if(i||r.disconnectedMatch||n.document&&n.document.nodeType!==11)return i}catch(f){}return u(t,e,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),et(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],u=f&&ki.call(t.attrHandle,i.toLowerCase())?f(n,i,!l):undefined;return u!==undefined?u:r.attributes||!l?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var u,f=[],t=0,i=0;if(rt=!r.detectDuplicates,y=!r.sortStable&&n.slice(0),n.sort(bt),rt){while(u=n[i++])u===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return y=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:h,match:at,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[5]&&n[2];return at.CHILD.test(n[0])?null:(n[3]&&n[4]!==undefined?n[2]=n[4]:t&&rr.test(t)&&(i=vt(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=si[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&si(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var v,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;w=b=n==="only"&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),v=k[n]||[],y=v[0]===a&&v[1],l=v[0]===a&&v[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(c.nodeType===1&&++l&&c===t){k[n]=[a,y,l];break}}else if(d&&(v=(t[f]||(t[f]={}))[n])&&v[0]===a)l=v[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[a,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?h(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt.call(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:h(function(n){var i=[],r=[],t=wt(n.replace(lt,"$1"));return t[f]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return u(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:h(function(n){return ur.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===v},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return er.test(n.nodeName)},input:function(n){return fr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[i<0?i+t:i]}),even:tt(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=hr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=cr(it);return wi.prototype=t.filters=t.pseudos,t.setFilters=new wi,wt=u.compile=function(n,t){var r,u=[],e=[],i=ci[n+" "];if(!i){for(t||(t=vt(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=ci(n,lr(e,u))}return i},r.sortStable=f.split("").sort(bt).join("")===f,r.detectDuplicates=!!rt,p(),r.sortDetached=c(function(n){return n.compareDocumentPosition(e.createElement("div"))&1}),c(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),r.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ti("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),c(function(n){return n.getAttribute("disabled")==null})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=p;i.expr=p.selectors;i.expr[":"]=i.expr.pseudos;i.unique=p.uniqueSort;i.text=p.getText;i.isXMLDoc=p.isXML;i.contains=p.contains;var fr=i.expr.match.needsContext,er=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ue=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<f;t++)if(i.contains(u[t],this))return!0}));for(t=0;t<f;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ui(this,n||[],!1))},not:function(n){return this.pushStack(ui(this,n||[],!0))},is:function(n){return!!ui(this,typeof n=="string"&&fr.test(n)?i(n):n||[],!1).length}});var ft,u=n.document,fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ee=i.fn.init=function(n,t){var r,f;if(!n)return this;if(typeof n=="string"){if(r=n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3?[null,n,null]:fe.exec(n),r&&(r[1]||!t)){if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),er.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(f=u.getElementById(r[2]),f&&f.parentNode){if(f.id!==r[2])return ft.find(n);this.length=1;this[0]=f}return this.context=u,this.selector=n,this}return!t||t.jquery?(t||ft).find(n):this.constructor(t).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?typeof ft.ready!="undefined"?ft.ready(n):n(i):(n.selector!==undefined&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};ee.prototype=i.fn;ft=i(u);or=/^(?:parents|prev(?:Until|All))/;sr={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var f=[],u=n[t];u&&u.nodeType!==9&&(r===undefined||u.nodeType!==1||!i(u).is(r));)u.nodeType===1&&f.push(u),u=u[t];return f},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;t<u;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=fr.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(sr[n]||(f=i.unique(f)),or.test(n)&&(f=f.reverse())),this.pushStack(f)}});h=/\S+/g;fi={};i.Callbacks=function(n){n=typeof n=="string"?fi[n]||oe(n):i.extend({},n);var o,u,h,f,e,c,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&e<f;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;(function e(r){i.each(r,function(r,u){var f=i.type(u);f==="function"?n.unique&&s.has(u)||t.push(u):u&&u.length&&f!=="string"&&e(u)})})(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(u<=f&&f--,u<=e&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!!(t&&t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=undefined,this},disabled:function(){return!t},lock:function(){return r=undefined,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return t&&(!h||r)&&(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!u.body)return setTimeout(i.ready);(i.isReady=!0,n!==!0&&--i.readyWait>0)||(lt.resolveWith(u,[i]),i.fn.trigger&&i(u).trigger("ready").off("ready"))}}});i.ready.promise=function(t){if(!lt)if(lt=i.Deferred(),u.readyState==="complete")setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",a,!1),n.addEventListener("load",a,!1);else{u.attachEvent("onreadystatechange",a);n.attachEvent("onload",a);var r=!1;try{r=n.frameElement==null&&u.documentElement}catch(e){}r&&r.doScroll&&function f(){if(!i.isReady){try{r.doScroll("left")}catch(n){return setTimeout(f,50)}cr();i.ready()}}()}return lt.promise(t)};o=typeof undefined;for(lr in i(r))break;r.ownLast=lr!=="0";r.inlineBlockNeedsLayout=!1;i(function(){var t,n,i=u.getElementsByTagName("body")[0];i&&(t=u.createElement("div"),t.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",n=u.createElement("div"),i.appendChild(t).appendChild(n),typeof n.style.zoom!==o&&(n.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(r.inlineBlockNeedsLayout=n.offsetWidth===3)&&(i.style.zoom=1)),i.removeChild(t),t=n=null)}),function(){var n=u.createElement("div");if(r.deleteExpando==null){r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}}n=null}();i.acceptData=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return r!==1&&r!==9?!1:!t||t!==!0&&n.getAttribute("classid")===t};ar=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;vr=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ei(n)},data:function(n,t,i){return pr(n,t,i)},removeData:function(n,t){return wr(n,t)},_data:function(n,t,i){return pr(n,t,i,!0)},_removeData:function(n,t){return wr(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(n===undefined){if(this.length&&(e=i.data(r),r.nodeType===1&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)u=o[f].name,u.indexOf("data-")===0&&(u=i.camelCase(u.slice(5)),yr(r,u,e[u]));i._data(r,"parsedAttrs",!0)}return e}return typeof n=="object"?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?yr(r,n,i.data(r,n)):undefined},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}});var at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=["Top","Right","Bottom","Left"],et=function(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)},b=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},oi=/^(?:checkbox|radio)$/i;(function(){var i=u.createDocumentFragment(),n=u.createElement("div"),t=u.createElement("input");if(n.setAttribute("className","t"),n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a>",r.leadingWhitespace=n.firstChild.nodeType===3,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone=u.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>",t.type="checkbox",t.checked=!0,i.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,i.appendChild(n),n.innerHTML="<input type='radio' checked='checked' name='t'/>",r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!0,n.attachEvent&&(n.attachEvent("onclick",function(){r.noCloneEvent=!1}),n.cloneNode(!0).click()),r.deleteExpando==null){r.deleteExpando=!0;try{delete n.test}catch(f){r.deleteExpando=!1}}i=n=t=null})(),function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t+"Bubbles"]=i in n)||(f.setAttribute(i,"t"),r[t+"Bubbles"]=f.attributes[i].expando===!1);f=null}();var si=/^(?:input|select|textarea)$/i,se=/^key/,he=/^(?:mouse|contextmenu)|click/,br=/^(?:focusinfocus|focusoutblur)$/,kr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,t,r,u,f){var w,y,b,p,s,c,l,a,e,k,d,v=i._data(n);if(v){for(r.handler&&(p=r,r=p.handler,f=p.selector),r.guid||(r.guid=i.guid++),(y=v.events)||(y=v.events={}),(c=v.handle)||(c=v.handle=function(n){return typeof i!==o&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(c.elem,arguments):undefined},c.elem=n),t=(t||"").match(h)||[""],b=t.length;b--;)(w=kr.exec(t[b])||[],e=d=w[1],k=(w[2]||"").split(".").sort(),e)&&(s=i.event.special[e]||{},e=(f?s.delegateType:s.bindType)||e,s=i.event.special[e]||{},l=i.extend({type:e,origType:d,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:k.join(".")},p),(a=y[e])||(a=y[e]=[],a.delegateCount=0,s.setup&&s.setup.call(n,u,k,c)!==!1||(n.addEventListener?n.addEventListener(e,c,!1):n.attachEvent&&n.attachEvent("on"+e,c))),s.add&&(s.add.call(n,l),l.handler.guid||(l.handler.guid=r.guid)),f?a.splice(a.delegateCount++,0,l):a.push(l),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,s,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(s=kr.exec(t[p])||[],e=k=s[1],w=(s[2]||"").split(".").sort(),!e){for(e in a)i.event.remove(n,e+t[p],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],s=s[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],(f||k===o.origType)&&(!r||r.guid===o.guid)&&(!s||s.test(o.namespace))&&(!u||u===o.selector||u==="**"&&o.selector)&&(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=tt.call(t,"type")?t.type:t,v=tt.call(t,"namespace")?t.namespace.split("."):[];if((o=h=f=f||u,f.nodeType!==3&&f.nodeType!==8)&&!br.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,typeof t=="object"&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=f),r=r==null?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,br.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&i.acceptData(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&i.acceptData(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=undefined;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,f,t,r,o,s=[],h=l.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),f!==undefined&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var f,e,u,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||n.type!=="click"))for(;r!=this;r=r.parentNode||this)if(r.nodeType===1&&(r.disabled!==!0||n.type!=="click")){for(u=[],o=0;o<s;o++)e=t[o],f=e.selector+" ",u[f]===undefined&&(u[f]=e.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(e);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=he.test(r)?this.mouseHooks:se.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return n.pageX==null&&t.clientX!=null&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||f===undefined||(n.which=f&1?1:f&2?3:f&4?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==dr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===dr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&(n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault())?vt:it):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,preventDefault:function(){var n=this.originalEvent;(this.isDefaultPrevented=vt,n)&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;(this.isPropagationStopped=vt,n)&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=vt;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?r.form:undefined;t&&!i._data(t,"submitBubbles")&&(i.event.add(t,"submit._submit",function(n){n._submit_bubble=!0}),i._data(t,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}});r.changeBubbles||(i.event.special.change={setup:function(){if(si.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;si.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!si.test(this.nodeName)}});r.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,r,u,f){var o,e;if(typeof n=="object"){typeof t!="string"&&(r=r||t,t=undefined);for(o in n)this.on(o,t,r,n[o],f);return this}if(r==null&&u==null?(u=t,r=t=undefined):u==null&&(typeof t=="string"?(u=r,r=undefined):(u=r,r=t,t=undefined)),u===!1)u=it;else if(!u)return this;return f===1&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var nu="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,tu=new RegExp("<(?:"+nu+")[\\s/>]","i"),hi=/^\s+/,iu=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ru=/<([\w:]+)/,uu=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,fu=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,s={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=gr(u),ci=we.appendChild(u.createElement("div"));s.optgroup=s.option;s.tbody=s.tfoot=s.colgroup=s.caption=s.thead;s.th=s.td;i.extend({clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!tu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(ci.innerHTML=n.outerHTML,ci.removeChild(s=ci.firstChild)),(!r.noCloneEvent||!r.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=f(s),h=f(n),o=0;(c=h[o])!=null;++o)e[o]&&ke(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;(c=h[o])!=null;o++)hu(c,e[o]);else hu(n,s);return e=f(s,"script"),e.length>0&&li(e,!l&&f(n,"script")),e=h=c=null,s},buildFragment:function(n,t,u,e){for(var c,o,b,h,p,w,a,k=n.length,v=gr(t),l=[],y=0;y<k;y++)if(o=n[y],o||o===0)if(i.type(o)==="object")i.merge(l,o.nodeType?[o]:o);else if(le.test(o)){for(h=h||v.appendChild(t.createElement("div")),p=(ru.exec(o)||["",""])[1].toLowerCase(),a=s[p]||s._default,h.innerHTML=a[1]+o.replace(iu,"<$1><\/$2>")+a[2],c=a[0];c--;)h=h.lastChild;if(!r.leadingWhitespace&&hi.test(o)&&l.push(t.createTextNode(hi.exec(o)[0])),!r.tbody)for(o=p==="table"&&!uu.test(o)?h.firstChild:a[1]==="<table>"&&!uu.test(o)?h:0,c=o&&o.childNodes.length;c--;)i.nodeName(w=o.childNodes[c],"tbody")&&!w.childNodes.length&&o.removeChild(w);for(i.merge(l,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=v.lastChild}else l.push(t.createTextNode(o));for(h&&v.removeChild(h),r.appendChecked||i.grep(f(l,"input"),be),y=0;o=l[y++];)if((!e||i.inArray(o,e)===-1)&&(b=i.contains(o.ownerDocument,o),h=f(v.appendChild(o),"script"),b&&li(h),u))for(c=0;o=h[c++];)fu.test(o.type||"")&&u.push(o);return h=null,v},cleanData:function(n,t){for(var u,s,f,e,a=0,h=i.expando,l=i.cache,v=r.deleteExpando,y=i.event.special;(u=n[a])!=null;a++)if((t||i.acceptData(u))&&(f=u[h],e=f&&l[f],e)){if(e.events)for(s in e.events)y[s]?i.event.remove(u,s):i.removeEvent(u,s,e.handle);l[f]&&(delete l[f],v?delete u[h]:typeof u.removeAttribute!==o?u.removeAttribute(h):u[h]=null,c.push(f))}}});i.fn.extend({text:function(n){return b(this,function(n){return n===undefined?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=eu(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=eu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,u=0;(r=e[u])!=null;u++)t||r.nodeType!==1||i.cleanData(f(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&li(f(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;(n=this[t])!=null;t++){for(n.nodeType===1&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return b(this,function(n){var t=this[0]||{},u=0,e=this.length;if(n===undefined)return t.nodeType===1?t.innerHTML.replace(ce,""):undefined;if(typeof n=="string"&&!ae.test(n)&&(r.htmlSerialize||!tu.test(n))&&(r.leadingWhitespace||!hi.test(n))&&!s[(ru.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(iu,"<$1><\/$2>");try{for(;u<e;u++)t=this[u]||{},t.nodeType===1&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(o){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(f(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=ir.apply([],n);var h,u,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||l>1&&typeof a=="string"&&!r.checkClone&&ve.test(a))return this.each(function(i){var r=p.eq(i);y&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,this),h=s.firstChild,s.childNodes.length===1&&(s=h),h)){for(o=i.map(f(s,"script"),ou),c=o.length;e<l;e++)u=s,e!==w&&(u=i.clone(u,!0,!0),c&&i.merge(o,f(u,"script"))),t.call(this[e],u,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,su),e=0;e<c;e++)u=o[e],fu.test(u.type||"")&&!i._data(u,"globalEval")&&i.contains(v,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval((u.text||u.textContent||u.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});ai={},function(){var t,i,n=u.createElement("div"),f="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";t=n.getElementsByTagName("a")[0];t.style.cssText="float:left;opacity:.5";r.opacity=/^0.5/.test(t.style.opacity);r.cssFloat=!!t.style.cssFloat;n.style.backgroundClip="content-box";n.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle=n.style.backgroundClip==="content-box";t=n=null;r.shrinkWrapBlocks=function(){var t,r,n,e;if(i==null){if(t=u.getElementsByTagName("body")[0],!t)return;e="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";r=u.createElement("div");n=u.createElement("div");t.appendChild(r).appendChild(n);i=!1;typeof n.style.zoom!==o&&(n.style.cssText=f+";width:1px;padding:1px;zoom:1",n.innerHTML="<div><\/div>",n.firstChild.style.width="5px",i=n.offsetWidth!==3);t.removeChild(r);t=r=n=null}return i}}();var au=/^margin/,yt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),k,d,de=/^(top|right|bottom|left)$/;n.getComputedStyle?(k=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)},d=function(n,t,r){var e,o,s,u,f=n.style;return r=r||k(n),u=r?r.getPropertyValue(t)||r[t]:undefined,r&&(u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),yt.test(u)&&au.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),u===undefined?u:u+""}):u.documentElement.currentStyle&&(k=function(n){return n.currentStyle},d=function(n,t,i){var o,f,e,r,u=n.style;return i=i||k(n),r=i?i[t]:undefined,r==null&&u&&u[t]&&(r=u[t]),yt.test(r)&&!de.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left=t==="fontSize"?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),r===undefined?r:r+""||"auto"}),function(){function a(){var f,t,r=u.getElementsByTagName("body")[0];r&&(f=u.createElement("div"),t=u.createElement("div"),f.style.cssText=l,r.appendChild(f).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",i.swap(r,r.style.zoom!=null?{zoom:1}:{},function(){c=t.offsetWidth===4}),o=!0,s=!1,h=!0,n.getComputedStyle&&(s=(n.getComputedStyle(t,null)||{}).top!=="1%",o=(n.getComputedStyle(t,null)||{width:"4px"}).width==="4px"),r.removeChild(f),t=r=null)}var f,e,c,o,s,h,t=u.createElement("div"),l="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",v="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";f=t.getElementsByTagName("a")[0];f.style.cssText="float:left;opacity:.5";r.opacity=/^0.5/.test(f.style.opacity);r.cssFloat=!!f.style.cssFloat;t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle=t.style.backgroundClip==="content-box";f=t=null;i.extend(r,{reliableHiddenOffsets:function(){if(e!=null)return e;var i,n,f,t=u.createElement("div"),r=u.getElementsByTagName("body")[0];if(r)return t.setAttribute("className","t"),t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",i=u.createElement("div"),i.style.cssText=l,r.appendChild(i).appendChild(t),t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",n=t.getElementsByTagName("td"),n[0].style.cssText="padding:0;margin:0;border:0;display:none",f=n[0].offsetHeight===0,n[0].style.display="",n[1].style.display="none",e=f&&n[0].offsetHeight===0,r.removeChild(i),t=r=null,e},boxSizing:function(){return c==null&&a(),c},boxSizingReliable:function(){return o==null&&a(),o},pixelPosition:function(){return s==null&&a(),s},reliableMarginRight:function(){var r,f,t,i;if(h==null&&n.getComputedStyle){if(r=u.getElementsByTagName("body")[0],!r)return;f=u.createElement("div");t=u.createElement("div");f.style.cssText=l;r.appendChild(f).appendChild(t);i=t.appendChild(u.createElement("div"));i.style.cssText=t.style.cssText=v;i.style.marginRight=i.style.width="0";t.style.width="1px";h=!parseFloat((n.getComputedStyle(i,null)||{}).marginRight);r.removeChild(f)}return h}})}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var vi=/alpha\([^)]*\)/i,ge=/opacity\s*=\s*([^)]*)/,no=/^(none|table(?!-c[ea]).+)/,to=new RegExp("^("+at+")(.*)$","i"),io=new RegExp("^([+-])=("+at+")","i"),ro={position:"absolute",visibility:"hidden",display:"block"},yu={letterSpacing:0,fontWeight:400},pu=["Webkit","O","Moz","ms"];i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=d(n,"opacity");return i===""?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var o,c,e,s=i.camelCase(t),h=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=wu(h,s)),e=i.cssHooks[t]||i.cssHooks[s],u!==undefined){if(c=typeof u,c==="string"&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),c="number"),u==null||u!==u)return;if(c!=="number"||i.cssNumber[s]||(u+="px"),r.clearCloneStyle||u!==""||t.indexOf("background")!==0||(h[t]="inherit"),!e||!("set"in e)||(u=e.set(n,u,f))!==undefined)try{h[t]="";h[t]=u}catch(l){}}else return e&&"get"in e&&(o=e.get(n,!1,f))!==undefined?o:h[t]}},css:function(n,t,r,u){var s,f,e,o=i.camelCase(t);return(t=i.cssProps[o]||(i.cssProps[o]=wu(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=d(n,t,u)),f==="normal"&&t in yu&&(f=yu[t]),r===""||r)?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return n.offsetWidth===0&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return gu(n,t,u)}):gu(n,t,u)},set:function(n,u,f){var e=f&&k(n);return ku(n,u,f?du(n,t,f,r.boxSizing()&&i.css(n,"boxSizing",!1,e)==="border-box",e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return ge.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,(t>=1||t==="")&&i.trim(f.replace(vi,""))===""&&r.removeAttribute&&(r.removeAttribute("filter"),t===""||u&&!u.filter))||(r.filter=vi.test(f)?f.replace(vi,e):f+" "+e)}});i.cssHooks.marginRight=vu(r.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},d,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};au.test(n)||(i.cssHooks[n+t].set=ku)});i.fn.extend({css:function(n,t){return b(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=k(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return bu(this,!0)},hide:function(){return bu(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){et(this)?i(this).show():i(this).hide()})}});i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var t,r=e.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return n.elem[n.prop]!=null&&(!n.elem.style||n.elem.style[n.prop]==null)?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=e.prototype.init;i.fx.step={};var rt,pt,uo=/^(?:toggle|show|hide)$/,nf=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),fo=/queueHooks$/,wt=[eo],st={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),u=nf.exec(t),e=u&&u[3]||(i.cssNumber[n]?"":"px"),r=(i.cssNumber[n]||e!=="px"&&+s)&&nf.exec(i.css(f.elem,n)),o=1,h=20;if(r&&r[3]!==e){e=e||r[3];u=u||[];r=+s||1;do o=o||".5",r=r/o,i.style(f.elem,n,r+e);while(o!==(o=f.cur()/s)&&o!==1&&--h)}return u&&(r=f.start=+r||+s||0,f.unit=e,f.end=u[1]?r+(u[1]+1)*u[2]:+u[2]),f}]};i.Animation=i.extend(uf,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;u<f;u++)r=n[u],st[r]=st[r]||[],st[r].unshift(t)},prefilter:function(n,t){t?wt.unshift(n):wt.push(n)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=uf(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return typeof n!="string"&&(r=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=n!=null&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&fo.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem===this&&(n==null||e[t].queue===n)&&(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(bt(t,!0),n,i,u)}});i.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(rt=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();rt=undefined};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){pt||(pt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(pt);pt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var i,n,f,e,t=u.createElement("div");t.setAttribute("className","t");t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];f=u.createElement("select");e=f.appendChild(u.createElement("option"));n=t.getElementsByTagName("input")[0];i.style.cssText="top:1px";r.getSetAttribute=t.className!=="t";r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized=i.getAttribute("href")==="/a";r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=n.getAttribute("value")==="";n.value="t";n.setAttribute("type","radio");r.radioValue=n.value==="t";i=n=f=e=t=null}();ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":i.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string"?r.replace(ff,""):r==null?"":r):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:i.text(n)}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f=n.type==="select-one"||u<0,h=f?null:[],c=f?u+1:s.length,e=u<0?c:f?u:0;e<c;e++)if(t=s[e],(t.selected||e===u)&&(r.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};r.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});var ut,ef,v=i.expr.attrHandle,yi=/^(?:checked|selected)$/i,g=r.getSetAttribute,kt=r.input;i.fn.extend({attr:function(n,t){return b(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&e!==3&&e!==8&&e!==2){if(typeof n.getAttribute===o)return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?ef:ut)),r!==undefined)if(r===null)i.removeAttr(n,t);else return u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:(n.setAttribute(t,r+""),r);else return u&&"get"in u&&(f=u.get(n,t))!==null?f:(f=i.find.attr(n,t),f==null?undefined:f)}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?kt&&g||!yi.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&t==="radio"&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}}});ef={set:function(n,t,r){return t===!1?i.removeAttr(n,r):kt&&g||!yi.test(r)?n.setAttribute(!g&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=v[t]||i.find.attr;v[t]=kt&&g||!yi.test(t)?function(n,t,i){var u,f;return i||(f=v[t],v[t]=u,u=r(n,t,i)!=null?t.toLowerCase():null,v[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});kt&&g||(i.attrHooks.value={set:function(n,t,r){if(i.nodeName(n,"input"))n.defaultValue=t;else return ut&&ut.set(n,t,r)}});g||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="",i==="value"||t===n.getAttribute(i)?t:void 0}},v.id=v.name=v.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&r.value!==""?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},i.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,t===""?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||undefined},set:function(n,t){return n.style.cssText=t+""}});of=/^(?:input|select|textarea|button|object)$/i;sf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return b(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=undefined;delete this[n]}catch(t){}})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&e!==3&&e!==8&&e!==2)return o=e!==1||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):of.test(n.nodeName)||sf.test(n.nodeName)&&n.href?0:-1}}}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];e<c;e++)if(t=this[e],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(dt," "):" "),r){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=arguments.length===0||typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];e<c;e++)if(t=this[e],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(dt," "):""),r){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var r=typeof n;return typeof t=="boolean"&&r==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var t,f=0,u=i(this),e=n.match(h)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(dt," ").indexOf(i)>=0)return!0;return!1}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}});var pi=i.now(),wi=/\?/,so=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(so,function(n,t,i,u){return(f&&t&&(r=0),r===0)?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||typeof t!="string")return null;try{n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=undefined}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var nt,y,ho=/#.*$/,hf=/([?&])_=[^&]*/,co=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,cf=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,lf={},bi={},af="*/".concat("*");try{y=location.href}catch(ts){y=u.createElement("a");y.href="";y=y.href}nt=cf.exec(y.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:y,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(nt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":af,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:vf(lf),ajaxTransport:vf(bi),ajax:function(n,t){function w(n,t,s,h){var v,it,nt,y,w,c=t;e!==2&&(e=2,k&&clearTimeout(k),l=undefined,b=h||"",u.readyState=n>0?4:0,v=n>=200&&n<300||n===304,s&&(y=vo(r,u,s)),y=yo(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),n===204||r.type==="HEAD"?c="nocontent":n===304?c="notmodified":(c=y.state,it=y.data,nt=y.error,v=!nt)):(nt=c,(n||!c)&&(c="error",n<0&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?g.resolveWith(o,[it,c,u]):g.rejectWith(o,[u,c,nt]),u.statusCode(p),p=undefined,a&&d.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:nt]),tt.fireWith(o,[u,c]),a&&(d.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}typeof n=="object"&&(t=n,n=undefined);t=t||{};var s,c,f,b,k,a,l,v,r=i.ajaxSetup({},t),o=r.context||r,d=r.context&&(o.nodeType||o.jquery)?i(o):i.event,g=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(e===2){if(!v)for(v={};t=co.exec(b);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return e===2?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(e<2)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return l&&l.abort(t),w(0,t),this}};if(g.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||y)+"").replace(ho,"").replace(ao,nt[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(h)||[""],r.crossDomain==null&&(s=cf.exec(r.url.toLowerCase()),r.crossDomain=!!(s&&(s[1]!==nt[1]||s[2]!==nt[2]||(s[3]||(s[1]==="http:"?"80":"443"))!==(nt[3]||(nt[1]==="http:"?"80":"443"))))),r.data&&r.processData&&typeof r.data!="string"&&(r.data=i.param(r.data,r.traditional)),yf(lf,r,t,u),e===2)return u;a=r.global;a&&i.active++==0&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!lo.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(wi.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=hf.test(f)?f.replace(hf,"$1_="+pi++):f+(wi.test(f)?"&":"?")+"_="+pi++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+(r.dataTypes[0]!=="*"?", "+af+"; q=0.01":""):r.accepts["*"]);for(c in r.headers)u.setRequestHeader(c,r.headers[c]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||e===2))return u.abort();ut="abort";for(c in{success:1,error:1,complete:1})u[c](r[c]);if(l=yf(bi,r,t,u),l){u.readyState=1;a&&d.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(k=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;l.send(it,w)}catch(ft){if(e<2)w(-1,ft);else throw ft;}}else w(-1,"No Transport");return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!r.reliableHiddenOffsets()&&(n.style&&n.style.display||i.css(n,"display"))==="none"};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var po=/%20/g,wo=/\[\]$/,pf=/\r?\n/g,bo=/^(?:submit|button|image|reset|file)$/i,ko=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():t==null?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(t===undefined&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)di(r,n[r],t,f);return u.join("&").replace(po,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ko.test(this.nodeName)&&!bo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(pf,"\r\n")}}):{name:t.name,value:r.replace(pf,"\r\n")}}).get()}});i.ajaxSettings.xhr=n.ActiveXObject!==undefined?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&wf()||ns()}:wf;var go=0,gt={},ht=i.ajaxSettings.xhr();if(n.ActiveXObject)i(n).on("unload",function(){for(var n in gt)gt[n](undefined,!0)});return r.cors=!!ht&&"withCredentials"in ht,ht=r.ajax=!!ht,ht&&i.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var t;return{send:function(r,u){var e,f=n.xhr(),o=++go;if(f.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(e in n.xhrFields)f[e]=n.xhrFields[e];n.mimeType&&f.overrideMimeType&&f.overrideMimeType(n.mimeType);n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(e in r)r[e]!==undefined&&f.setRequestHeader(e,r[e]+"");f.send(n.hasContent&&n.data||null);t=function(r,e){var s,c,h;if(t&&(e||f.readyState===4))if(delete gt[o],t=undefined,f.onreadystatechange=i.noop,e)f.readyState!==4&&f.abort();else{h={};s=f.status;typeof f.responseText=="string"&&(h.text=f.responseText);try{c=f.statusText}catch(l){c=""}s||!n.isLocal||n.crossDomain?s===1223&&(s=204):s=h.text?200:404}h&&u(s,c,h,f.getAllResponseHeaders())};n.async?f.readyState===4?setTimeout(t):f.onreadystatechange=gt[o]=t:t()},abort:function(){t&&t(undefined,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){if(t)t.onload(undefined,!0)}}}}),gi=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=gi.pop()||i.expando+"_"+pi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ni.test(t.url)?"url":typeof t.data=="string"&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(wi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,gi.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=undefined}),"script"}),i.parseHTML=function(n,t,r){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(r=t,t=!1);t=t||u;var f=er.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},nr=i.fn.load,i.fn.load=function(n,t,r){if(typeof n!="string"&&nr)return nr.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=n.slice(e,n.length),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(s="POST"),f.length>0&&i.ajax({url:n,type:s,dataType:"html",data:t}).done(function(n){o=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,o||[n.responseText,t,n])}),this},i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},tr=n.document.documentElement,i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return(t=e.documentElement,!i.contains(t,r))?u:(typeof r.getBoundingClientRect!==o&&(u=r.getBoundingClientRect()),f=bf(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)})},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||tr;n&&!i.nodeName(n,"html")&&i.css(n,"position")==="static";)n=n.offsetParent;return n||tr})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return b(this,function(n,u,f){var e=bf(n);if(f===undefined)return e?t in e?e[t]:e.document.documentElement[u]:n[u];e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f},n,u,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=vu(r.pixelPosition,function(n,r){if(r)return r=d(n,t),yt.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||typeof u!="boolean"),o=r||(u===!0||f===!0?"margin":"border");return b(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:t.nodeType===9?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):u===undefined?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:undefined,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),kf=n.jQuery,df=n.$,i.noConflict=function(t){return n.$===i&&(n.$=df),t&&n.jQuery===i&&(n.jQuery=kf),i},typeof t===o&&(n.jQuery=n.$=i),i});try{!this.addEventListener&&this.Element&&function(){function t(n,t){Window.prototype[n]=HTMLDocument.prototype[n]=Element.prototype[n]=t}var n=[];t("addEventListener",function(t,i){var r=this;n.unshift({__listener:function(n){n.currentTarget=r;n.pageX=n.clientX+document.documentElement.scrollLeft;n.pageY=n.clientY+document.documentElement.scrollTop;n.preventDefault=function(){n.returnValue=!1};n.relatedTarget=n.fromElement||null;n.stopPropagation=function(){n.cancelBubble=!0};n.relatedTarget=n.fromElement||null;n.target=n.srcElement||r;n.timeStamp=+new Date;i.call(r,n)},listener:i,target:r,type:t});this.attachEvent("on"+t,n[0].__listener)});t("removeEventListener",function(t,i){for(var r=0,u=n.length;r<u;++r)if(n[r].target==this&&n[r].type==t&&n[r].listener==i)return this.detachEvent("on"+t,n.splice(r,1)[0].__listener)});t("dispatchEvent",function(t){try{return this.fireEvent("on"+t.type,t)}catch(u){for(var i=0,r=n.length;i<r;++i)n[i].target==this&&n[i].type==t.type&&n[i].call(this,t)}})}()}catch(ex){}if(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{n=decodeURIComponent(n.replace(u," "))}catch(i){return}try{return t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setDate(a.getDate()+y)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)!==undefined?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}}),function(n){var t=n(window);n.fn.visible=function(i,r,u,f){if(!(this.length<1)){u=u||"both";var a=this.length>1?this.eq(0):this,s=typeof f!="undefined"&&f!==null,v=s?n(f):t,o=s?v.position():0,y=a.get(0),h=v.outerWidth(),c=v.outerHeight(),l=r===!0?y.offsetWidth*y.offsetHeight:!0;if(typeof y.getBoundingClientRect=="function"){var e=y.getBoundingClientRect(),nt=s?e.top-o.top>=0&&e.top<c+o.top:e.top>=0&&e.top<c,tt=s?e.bottom-o.top>0&&e.bottom<=c+o.top:e.bottom>0&&e.bottom<=c,it=s?e.left-o.left>=0&&e.left<h+o.left:e.left>=0&&e.left<h,rt=s?e.right-o.left>0&&e.right<h+o.left:e.right>0&&e.right<=h,p=i?nt||tt:nt&&tt,w=i?it||rt:it&&rt,p=e.top<0&&e.bottom>c?!0:p,w=e.left<0&&e.right>h?!0:w;if(u==="both")return l&&p&&w;if(u==="vertical")return l&&p;if(u==="horizontal")return l&&w}else{var b=s?0:o,ut=b+c,k=v.scrollLeft(),ft=k+h,et=a.position(),d=et.top,ot=d+a.height(),g=et.left,st=g+a.width(),ht=i===!0?ot:d,ct=i===!0?d:ot,lt=i===!0?st:g,at=i===!0?g:st;if(u==="both")return!!l&&ct<=ut&&ht>=b&&at<=ft&&lt>=k;if(u==="vertical")return!!l&&ct<=ut&&ht>=b;if(u==="horizontal")return!!l&&at<=ft&&lt>=k}}}}(jQuery),typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.1";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t=t+"Text";u.resetText==null&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.1";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=n=="prev"?-1:1,r=this.getItemIndex(t),u=(r+i)%this.$items.length;return this.$items.eq(u)};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",v=i=="next"?"first":"last",a=this,o,s,h,c;if(!u.length){if(!this.options.wrap)return;u=this.$element.find(".item")[v]()}return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&i=="show"&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n(this.options.trigger).filter('[href="#'+i.id+'"], [data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.1";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":n.extend({},u.data(),{trigger:this});i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var r=n(this),i=u(r),f={relatedTarget:this};i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(r.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function o(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.1";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.divider):visible a",f=o.find('[role="menu"]'+h+', [role="listbox"]'+h),f.length)&&(r=f.index(t.target),t.which==38&&r>0&&r--,t.which==40&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=o;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.1";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.options.backdrop&&r.adjustBackdrop();r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in").attr("aria-hidden",!1);r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n('<div class="modal-backdrop '+f+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop();this.adjustDialog()};t.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.tooltip"),u=typeof i=="object"&&i,e=u&&u.selector;(r||i!="destroy")&&(e?(r||f.data("bs.tooltip",r={}),r[e]||(r[e]=new t(this,u))):r||f.data("bs.tooltip",r=new t(this,u)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i&&i.$tip&&i.$tip.is(":visible")){i.hoverState="in";return}if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;if(y){var w=i,b=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(b);i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i;r.removeClass(w).addClass(i)}p=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(p,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function e(){r.hoverState!="in"&&u.detach();r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=this.tip(),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return u.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?u.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r=u.tagName=="BODY",i=u.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.popover"),u=typeof i=="object"&&i,e=u&&u.selector;(r||i!="destroy")&&(e?(r||f.data("bs.popover",r={}),r[e]||(r[e]=new t(this,u))):r||f.data("bs.popover",r=new t(this,u)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.1";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body");this.$scrollElement=n(i).is("body")?n(window):n(i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",u);this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})}t.VERSION="3.3.1";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();t=this;this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu")&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.1";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&s<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n("body").height();if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n){"use strict";n.matchMedia=n.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth===42,i.removeChild(r),{matches:u,media:n}}}(n.document)}(this),function(n){"use strict";function nt(){y(!0)}var t={};n.respond=t;t.update=function(){};var f=[],tt=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),p=function(n,t){var i=tt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState===4&&(i.status===200||i.status===304)&&t(i.responseText)},i.readyState!==4)&&i.send(null)};if(t.ajax=p,t.queue=f,t.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},t.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all")!==null&&n.matchMedia("only all").matches,!t.mediaQueriesSupported){var i=n.document,r=i.documentElement,e=[],o=[],u=[],c={},w=30,s=i.getElementsByTagName("head")[0]||r,it=i.getElementsByTagName("base")[0],h=s.getElementsByTagName("link"),l,b,a,v=function(){var f,t=i.createElement("div"),n=i.body,o=r.style.fontSize,e=n&&n.style.fontSize,u=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=u=i.createElement("body"),n.style.background="none"),r.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),u&&r.insertBefore(n,r.firstChild),f=t.offsetWidth,u?r.removeChild(n):n.removeChild(t),r.style.fontSize=o,e&&(n.style.fontSize=e),a=parseFloat(f)},y=function(t){var rt="clientWidth",ut=r[rt],ft=i.compatMode==="CSS1Compat"&&ut||i.body[rt]||ut,p={},ct=h[h.length-1],et=(new Date).getTime(),tt,g,nt,f,it;if(t&&l&&et-l<w){n.clearTimeout(b);b=n.setTimeout(y,w);return}l=et;for(tt in e)if(e.hasOwnProperty(tt)){var c=e[tt],k=c.minw,d=c.maxw,ot=k===null,st=d===null,ht="em";!k||(k=parseFloat(k)*(k.indexOf(ht)>-1?a||v():1));!d||(d=parseFloat(d)*(d.indexOf(ht)>-1?a||v():1));c.hasquery&&(ot&&st||!(ot||ft>=k)||!(st||ft<=d))||(p[c.media]||(p[c.media]=[]),p[c.media].push(o[c.rules]))}for(g in u)u.hasOwnProperty(g)&&u[g]&&u[g].parentNode===s&&s.removeChild(u[g]);u.length=0;for(nt in p)p.hasOwnProperty(nt)&&(f=i.createElement("style"),it=p[nt].join("\n"),f.type="text/css",f.media=nt,s.insertBefore(f,ct.nextSibling),f.styleSheet?f.styleSheet.cssText=it:f.appendChild(i.createTextNode(it)),u.push(f))},k=function(n,i,r){var h=n.replace(t.regex.keyframes,"").match(t.regex.media),c=h&&h.length||0,l,a,f,v,u,p,w,s;for(i=i.substring(0,i.lastIndexOf("/")),l=function(n){return n.replace(t.regex.urls,"$1"+i+"$2$3")},a=!c&&r,i.length&&(i+="/"),a&&(c=1),f=0;f<c;f++)for(a?(v=r,o.push(l(n))):(v=h[f].match(t.regex.findStyles)&&RegExp.$1,o.push(RegExp.$2&&l(RegExp.$2))),p=v.split(","),w=p.length,s=0;s<w;s++)u=p[s],e.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:o.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});y()},d=function(){if(f.length){var t=f.shift();p(t.href,function(i){k(i,t.href,t.media);c[t.href]=!0;n.setTimeout(function(){d()},0)})}},g=function(){for(var r=0;r<h.length;r++){var i=h[r],t=i.href,u=i.media,e=i.rel&&i.rel.toLowerCase()==="stylesheet";!t||!e||c[t]||(i.styleSheet&&i.styleSheet.rawCssText?(k(i.styleSheet.rawCssText,t,u),c[t]=!0):(/^([a-zA-Z:]*\/\/)/.test(t)||it)&&t.replace(RegExp.$1,"").split("/")[0]!==n.location.host||(t.substring(0,2)==="//"&&(t=n.location.protocol+t),f.push({href:t,media:u})))}d()};g();t.update=g;t.getEmValue=v;n.addEventListener?n.addEventListener("resize",nt,!1):n.attachEvent&&n.attachEvent("onresize",nt)}}(this);!function(n,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):n.bootbox=t(n.jQuery)}(this,function a(n,t){"use strict";function a(n){var t=f[o.locale];return t?t[n]:f.en[n]}function e(t,i,r){t.stopPropagation();t.preventDefault();var u=n.isFunction(r)&&r.call(i,t)===!1;u||i.modal("hide")}function v(n){var i,t=0;for(i in n)t++;return t}function r(t,i){var r=0;n.each(t,function(n,t){i(n,t,r++)})}function y(t){var i,u;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=n.extend({},o,t),t.buttons||(t.buttons={}),i=t.buttons,u=v(i),r(i,function(t,r,f){if(n.isFunction(r)&&(r=i[t]={callback:r}),"object"!==n.type(r))throw new Error("button with key "+t+" must be an object");r.label||(r.label=t);r.className||(r.className=2>=u&&f===u-1?"btn-primary":"btn-default")}),t}function p(n,t){var r=n.length,i={};if(1>r||r>2)throw new Error("Invalid argument length");return 2===r||"string"==typeof n[0]?(i[t[0]]=n[0],i[t[1]]=n[1]):i=n[0],i}function s(t,i,r){return n.extend(!0,{},t,p(i,r))}function h(n,t,i,r){var u={className:"bootbox-"+n,buttons:c.apply(null,t)};return l(s(u,r,i),t)}function c(){for(var t={},n=0,r=arguments.length;r>n;n++){var i=arguments[n],u=i.toLowerCase(),f=i.toUpperCase();t[u]={label:a(f)}}return t}function l(n,i){var u={};return r(i,function(n,t){u[t]=!0}),r(n.buttons,function(n){if(u[n]===t)throw new Error("button key "+n+" is not allowed (options are "+i.join("\n")+")");}),n}var u={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'><\/div><\/div><\/div><\/div><\/div>",header:"<div class='modal-header'><h4 class='modal-title'><\/h4><\/div>",footer:"<div class='modal-footer'><\/div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;<\/button>",form:"<form class='bootbox-form'><\/form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'><\/textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'><\/select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /><\/label><\/div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},o={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},i={},f;return i.alert=function(){var t;if(t=h("alert",["ok"],["message","callback"],arguments),t.callback&&!n.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return n.isFunction(t.callback)?t.callback.call(this):!0},i.dialog(t)},i.confirm=function(){var t;if(t=h("confirm",["cancel","confirm"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!n.isFunction(t.callback))throw new Error("confirm requires a callback");return i.dialog(t)},i.prompt=function(){var f,y,h,v,e,p,o,a,w;if(v=n(u.form),y={className:"bootbox-prompt",buttons:c("cancel","confirm"),value:"",inputType:"text"},f=l(s(y,arguments,["title","callback"]),["cancel","confirm"]),p=f.show===t?!0:f.show,f.message=v,f.buttons.cancel.callback=f.onEscape=function(){return f.callback.call(this,null)},f.buttons.confirm.callback=function(){var t,i;switch(f.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":t=e.val();break;case"checkbox":i=e.find("input:checked");t=[];r(i,function(i,r){t.push(n(r).val())})}return f.callback.call(this,t)},f.show=!1,!f.title)throw new Error("prompt requires a title");if(!n.isFunction(f.callback))throw new Error("prompt requires a callback");if(!u.inputs[f.inputType])throw new Error("invalid prompt type");switch(e=n(u.inputs[f.inputType]),f.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":e.val(f.value);break;case"select":if(a={},o=f.inputOptions||[],!n.isArray(o))throw new Error("Please pass an array of input options");if(!o.length)throw new Error("prompt with select requires options");r(o,function(i,r){var u=e;if(r.value===t||r.text===t)throw new Error("given options in wrong format");r.group&&(a[r.group]||(a[r.group]=n("<optgroup/>").attr("label",r.group)),u=a[r.group]);u.append("<option value='"+r.value+"'>"+r.text+"<\/option>")});r(a,function(n,t){e.append(t)});e.val(f.value);break;case"checkbox":if(w=n.isArray(f.value)?f.value:[f.value],o=f.inputOptions||[],!o.length)throw new Error("prompt with checkbox requires options");if(!o[0].value||!o[0].text)throw new Error("given options in wrong format");e=n("<div/>");r(o,function(t,i){var o=n(u.inputs[f.inputType]);o.find("input").attr("value",i.value);o.find("label").append(i.text);r(w,function(n,t){t===i.value&&o.find("input").prop("checked",!0)});e.append(o)})}return f.placeholder&&e.attr("placeholder",f.placeholder),f.pattern&&e.attr("pattern",f.pattern),f.maxlength&&e.attr("maxlength",f.maxlength),v.append(e),v.on("submit",function(n){n.preventDefault();n.stopPropagation();h.find(".btn-primary").click()}),h=i.dialog(f),h.off("shown.bs.modal"),h.on("shown.bs.modal",function(){e.focus()}),p===!0&&h.modal("show"),h},i.dialog=function(i){var c;i=y(i);var f=n(u.dialog),l=f.find(".modal-dialog"),s=f.find(".modal-body"),a=i.buttons,h="",o={onEscape:i.onEscape};if(n.fn.modal===t)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");return(r(a,function(n,t){h+="<button data-bb-handler='"+n+"' type='button' class='btn "+t.className+"'>"+t.label+"<\/button>";o[n]=t.callback}),s.find(".bootbox-body").html(i.message),i.animate===!0&&f.addClass("fade"),i.className&&f.addClass(i.className),"large"===i.size?l.addClass("modal-lg"):"small"===i.size&&l.addClass("modal-sm"),i.title&&s.before(u.header),i.closeButton)&&(c=n(u.closeButton),i.title?f.find(".modal-header").prepend(c):c.css("margin-top","-10px").prependTo(s)),i.title&&f.find(".modal-title").html(i.title),h.length&&(s.after(u.footer),f.find(".modal-footer").html(h)),f.on("hidden.bs.modal",function(n){n.target===this&&f.remove()}),f.on("shown.bs.modal",function(){f.find(".btn-primary:first").focus()}),"static"!==i.backdrop&&f.on("click.dismiss.bs.modal",function(n){f.children(".modal-backdrop").length&&(n.currentTarget=f.children(".modal-backdrop").get(0));n.target===n.currentTarget&&f.trigger("escape.close.bb")}),f.on("escape.close.bb",function(n){o.onEscape&&e(n,f,o.onEscape)}),f.on("click",".modal-footer button",function(t){var i=n(this).data("bb-handler");e(t,f,o[i])}),f.on("click",".bootbox-close-button",function(n){e(n,f,o.onEscape)}),f.on("keyup",function(n){27===n.which&&f.trigger("escape.close.bb")}),n(i.container).append(f),f.modal({backdrop:i.backdrop?"static":!1,keyboard:!1,show:!1}),i.show&&f.modal("show"),f},i.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0];n.extend(o,t)},i.hideAll=function(){return n(".bootbox").modal("hide"),i},f={bg_BG:{OK:"Ок",CANCEL:"Отказ",CONFIRM:"Потвърждавам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"قبول",CANCEL:"لغو",CONFIRM:"تایید"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},hu:{OK:"OK",CANCEL:"Mégsem",CONFIRM:"Megerősít"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"ตกลง",CANCEL:"ยกเลิก",CONFIRM:"ยืนยัน"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}},i.addLocale=function(t,r){return n.each(["OK","CANCEL","CONFIRM"],function(n,t){if(!r[t])throw new Error("Please supply a translation for '"+t+"'");}),f[t]={OK:r.OK,CANCEL:r.CANCEL,CONFIRM:r.CONFIRM},i},i.removeLocale=function(n){return delete f[n],i},i.setLocale=function(n){return i.setDefaults("locale",n)},i.init=function(t){return a(t||n)},i}),function(n,t,i,r){"use strict";function ci(n,t,i){return setTimeout(ai(n,i),t)}function ut(n,t,i){return Array.isArray(n)?(v(n,i[t],i),!0):!1}function v(n,t,i){var u;if(n)if(n.forEach)n.forEach(t,i);else if(n.length!==r)for(u=0;u<n.length;)t.call(i,n[u],u,n),u++;else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)}function or(t,i,r){var u="DEPRECATED METHOD: "+i+"\n"+r+" AT \n";return function(){var i=new Error("get-stack-trace"),f=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,u,f),t.apply(this,arguments)}}function o(n,t,i){var u=t.prototype,r;r=n.prototype=Object.create(u);r.constructor=n;r._super=u;i&&y(r,i)}function ai(n,t){return function(){return n.apply(t,arguments)}}function vi(n,t){return typeof n==bu?n.apply(t?t[0]||r:r,t):n}function hr(n,t){return n===r?t:n}function pt(n,t,i){v(bt(t),function(t){n.addEventListener(t,i,!1)})}function wt(n,t,i){v(bt(t),function(t){n.removeEventListener(t,i,!1)})}function cr(n,t){while(n){if(n==t)return!0;n=n.parentNode}return!1}function g(n,t){return n.indexOf(t)>-1}function bt(n){return n.trim().split(/\s+/g)}function ft(n,t,i){if(n.indexOf&&!i)return n.indexOf(t);for(var r=0;r<n.length;){if(i&&n[r][i]==t||!i&&n[r]===t)return r;r++}return-1}function kt(n){return Array.prototype.slice.call(n,0)}function lr(n,t,i){for(var u=[],e=[],r=0,f;r<n.length;)f=t?n[r][t]:n[r],ft(e,f)<0&&u.push(n[r]),e[r]=f,r++;return i&&(u=t?u.sort(function(n,i){return n[t]>i[t]}):u.sort()),u}function dt(n,t){for(var i,u,e=t[0].toUpperCase()+t.slice(1),f=0;f<er.length;){if(i=er[f],u=i?i+e:t,u in n)return u;f++}return r}function ku(){return ar++}function vr(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||n}function s(n,t){var i=this;this.manager=n;this.callback=t;this.element=n.element;this.target=n.options.inputTarget;this.domHandler=function(t){vi(n.options.enable,[n])&&i.handler(t)};this.init()}function tf(n){var t,i=n.options.inputClass;return t=i?i:du?wi:gu?ri:yr?ki:ii,new t(n,rf)}function rf(n,t,i){var r=i.pointers.length,o=i.changedPointers.length,s=t&f&&r-o==0,h=t&(u|e)&&r-o==0;i.isFirst=!!s;i.isFinal=!!h;s&&(n.session={});i.eventType=t;uf(n,i);n.emit("hammer.input",i);n.recognize(i);n.session.prevInput=i}function uf(n,t){var i=n.session,f=t.pointers,o=f.length,r,e;i.firstInput||(i.firstInput=br(t));o>1&&!i.firstMultiple?i.firstMultiple=br(t):o===1&&(i.firstMultiple=!1);var s=i.firstInput,u=i.firstMultiple,h=u?u.center:s.center,c=t.center=kr(f);t.timeStamp=hi();t.deltaTime=t.timeStamp-s.timeStamp;t.angle=pi(h,c);t.distance=ti(h,c);ff(i,t);t.offsetDirection=gr(t.deltaX,t.deltaY);r=dr(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=r.x;t.overallVelocityY=r.y;t.overallVelocity=d(r.x)>d(r.y)?r.x:r.y;t.scale=u?sf(u.pointers,f):1;t.rotation=u?of(u.pointers,f):0;t.maxPointers=i.prevInput?t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers:t.pointers.length;ef(i,t);e=n.element;cr(t.srcEvent.target,e)&&(e=t.srcEvent.target);t.target=e}function ff(n,t){var i=t.center,r=n.offsetDelta||{},e=n.prevDelta||{},o=n.prevInput||{};(t.eventType===f||o.eventType===u)&&(e=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=n.offsetDelta={x:i.x,y:i.y});t.deltaX=e.x+(i.x-r.x);t.deltaY=e.y+(i.y-r.y)}function ef(n,t){var i=n.lastInterval||t,c=t.timeStamp-i.timeStamp,f,o,s,h;if(t.eventType!=e&&(c>nf||i.velocity===r)){var l=t.deltaX-i.deltaX,a=t.deltaY-i.deltaY,u=dr(c,l,a);o=u.x;s=u.y;f=d(u.x)>d(u.y)?u.x:u.y;h=gr(l,a);n.lastInterval=t}else f=i.velocity,o=i.velocityX,s=i.velocityY,h=i.direction;t.velocity=f;t.velocityX=o;t.velocityY=s;t.direction=h}function br(n){for(var i=[],t=0;t<n.pointers.length;)i[t]={clientX:rt(n.pointers[t].clientX),clientY:rt(n.pointers[t].clientY)},t++;return{timeStamp:hi(),pointers:i,center:kr(i),deltaX:n.deltaX,deltaY:n.deltaY}}function kr(n){var t=n.length;if(t===1)return{x:rt(n[0].clientX),y:rt(n[0].clientY)};for(var r=0,u=0,i=0;i<t;)r+=n[i].clientX,u+=n[i].clientY,i++;return{x:rt(r/t),y:rt(u/t)}}function dr(n,t,i){return{x:t/n||0,y:i/n||0}}function gr(n,t){return n===t?gt:d(n)>=d(t)?n<0?st:ht:t<0?ct:lt}function ti(n,t,i){i||(i=wr);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.sqrt(r*r+u*u)}function pi(n,t,i){i||(i=wr);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.atan2(u,r)*180/Math.PI}function of(n,t){return pi(t[1],t[0],ni)+pi(n[1],n[0],ni)}function sf(n,t){return ti(t[0],t[1],ni)/ti(n[0],n[1],ni)}function ii(){this.evEl=cf;this.evWin=lf;this.pressed=!1;s.apply(this,arguments)}function wi(){this.evEl=nu;this.evWin=tu;s.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function iu(){this.evTarget=pf;this.evWin=wf;this.started=!1;s.apply(this,arguments)}function bf(n,t){var i=kt(n.touches),r=kt(n.changedTouches);return t&(u|e)&&(i=lr(i.concat(r),"identifier",!0)),[i,r]}function ri(){this.evTarget=uu;this.targetIds={};s.apply(this,arguments)}function kf(n,t){var r=kt(n.touches),o=this.targetIds;if(t&(f|nt)&&r.length===1)return o[r[0].identifier]=!0,[r,r];var i,s,h=kt(n.changedTouches),c=[],l=this.target;if(s=r.filter(function(n){return cr(n.target,l)}),t===f)for(i=0;i<s.length;)o[s[i].identifier]=!0,i++;for(i=0;i<h.length;)o[h[i].identifier]&&c.push(h[i]),t&(u|e)&&delete o[h[i].identifier],i++;if(c.length)return[lr(s.concat(c),"identifier",!0),c]}function ki(){s.apply(this,arguments);var n=ai(this.handler,this);this.touch=new ri(this.manager,n);this.mouse=new ii(this.manager,n);this.primaryTouch=null;this.lastTouches=[]}function df(n,t){n&f?(this.primaryTouch=t.changedPointers[0].identifier,eu.call(this,t)):n&(u|e)&&eu.call(this,t)}function eu(n){var t=n.changedPointers[0],i,r,u;t.identifier===this.primaryTouch&&(i={x:t.clientX,y:t.clientY},this.lastTouches.push(i),r=this.lastTouches,u=function(){var n=r.indexOf(i);n>-1&&r.splice(n,1)},setTimeout(u,fu))}function gf(n){for(var r=n.srcEvent.clientX,u=n.srcEvent.clientY,t=0;t<this.lastTouches.length;t++){var i=this.lastTouches[t],f=Math.abs(r-i.x),e=Math.abs(u-i.y);if(f<=bi&&e<=bi)return!0}return!1}function gi(n,t){this.manager=n;this.set(t)}function ne(n){if(g(n,it))return it;var t=g(n,at),i=g(n,vt);return t&&i?it:t||i?t?at:vt:g(n,di)?di:cu}function te(){if(!su)return!1;var t={},i=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){t[r]=i?n.CSS.supports("touch-action",r):!0}),t}function w(n){this.options=y({},this.defaults,n||{});this.id=ku();this.manager=null;this.options.enable=hr(this.options.enable,!0);this.state=fi;this.simultaneous={};this.requireFail=[]}function lu(n){return n&yt?"cancel":n&k?"end":n&et?"move":n&h?"start":""}function au(n){return n==lt?"down":n==ct?"up":n==st?"left":n==ht?"right":""}function ei(n,t){var i=t.manager;return i?i.get(n):n}function c(){w.apply(this,arguments)}function oi(){c.apply(this,arguments);this.pX=null;this.pY=null}function nr(){c.apply(this,arguments)}function tr(){w.apply(this,arguments);this._timer=null;this._input=null}function ir(){c.apply(this,arguments)}function rr(){c.apply(this,arguments)}function si(){w.apply(this,arguments);this.pTime=!1;this.pCenter=!1;this._timer=null;this._input=null;this.count=0}function b(n,t){return t=t||{},t.recognizers=hr(t.recognizers,b.defaults.preset),new fr(n,t)}function fr(n,t){this.options=y({},b.defaults,t||{});this.options.inputTarget=this.options.inputTarget||n;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=n;this.input=tf(this);this.touchAction=new gi(this,this.options.touchAction);yu(this,!0);v(this.options.recognizers,function(n){var t=this.add(new n[0](n[1]));n[2]&&t.recognizeWith(n[2]);n[3]&&t.requireFailure(n[3])},this)}function yu(n,t){var r=n.element,i;r.style&&(v(n.options.cssProps,function(u,f){i=dt(r.style,f);t?(n.oldCssProps[i]=r.style[i],r.style[i]=u):r.style[i]=n.oldCssProps[i]||""}),t||(n.oldCssProps={}))}function ie(n,i){var r=t.createEvent("Event");r.initEvent(n,!0,!0);r.gesture=i;i.target.dispatchEvent(r)}var er=["","webkit","Moz","MS","ms","o"],wu=t.createElement("div"),bu="function",rt=Math.round,d=Math.abs,hi=Date.now,y,li,sr,ar,ru,uu,fu,bi,vu,ur,pu;y=typeof Object.assign!="function"?function(n){var f,i,t,u;if(n===r||n===null)throw new TypeError("Cannot convert undefined or null to object");for(f=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==r&&t!==null)for(u in t)t.hasOwnProperty(u)&&(f[u]=t[u]);return f}:Object.assign;li=or(function(n,t,i){for(var f=Object.keys(t),u=0;u<f.length;)(!i||i&&n[f[u]]===r)&&(n[f[u]]=t[f[u]]),u++;return n},"extend","Use `assign`.");sr=or(function(n,t){return li(n,t,!0)},"merge","Use `assign`.");ar=1;var yr="ontouchstart"in n,du=dt(n,"PointerEvent")!==r,gu=yr&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ot="touch",yi="mouse",nf=25,f=1,nt=2,u=4,e=8,gt=1,st=2,ht=4,ct=8,lt=16,l=st|ht,tt=ct|lt,pr=l|tt,wr=["x","y"],ni=["clientX","clientY"];s.prototype={handler:function(){},init:function(){this.evEl&&pt(this.element,this.evEl,this.domHandler);this.evTarget&&pt(this.target,this.evTarget,this.domHandler);this.evWin&&pt(vr(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&wt(this.element,this.evEl,this.domHandler);this.evTarget&&wt(this.target,this.evTarget,this.domHandler);this.evWin&&wt(vr(this.element),this.evWin,this.domHandler)}};var hf={mousedown:f,mousemove:nt,mouseup:u},cf="mousedown",lf="mousemove mouseup";o(ii,s,{handler:function(n){var t=hf[n.type];(t&f&&n.button===0&&(this.pressed=!0),t&nt&&n.which!==1&&(t=u),this.pressed)&&(t&u&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:yi,srcEvent:n}))}});var af={pointerdown:f,pointermove:nt,pointerup:u,pointercancel:e,pointerout:e},vf={2:ot,3:"pen",4:yi,5:"kinect"},nu="pointerdown",tu="pointermove pointerup pointercancel";n.MSPointerEvent&&!n.PointerEvent&&(nu="MSPointerDown",tu="MSPointerMove MSPointerUp MSPointerCancel");o(wi,s,{handler:function(n){var t=this.store,o=!1,h=n.type.toLowerCase().replace("ms",""),r=af[h],s=vf[n.pointerType]||n.pointerType,c=s==ot,i=ft(t,n.pointerId,"pointerId");(r&f&&(n.button===0||c)?i<0&&(t.push(n),i=t.length-1):r&(u|e)&&(o=!0),i<0)||(t[i]=n,this.callback(this.manager,r,{pointers:t,changedPointers:[n],pointerType:s,srcEvent:n}),o&&t.splice(i,1))}});var yf={touchstart:f,touchmove:nt,touchend:u,touchcancel:e},pf="touchstart",wf="touchstart touchmove touchend touchcancel";o(iu,s,{handler:function(n){var i=yf[n.type],t;(i===f&&(this.started=!0),this.started)&&(t=bf.call(this,n,i),i&(u|e)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:ot,srcEvent:n}))}});ru={touchstart:f,touchmove:nt,touchend:u,touchcancel:e};uu="touchstart touchmove touchend touchcancel";o(ri,s,{handler:function(n){var i=ru[n.type],t=kf.call(this,n,i);t&&this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:ot,srcEvent:n})}});fu=2500;bi=25;o(ki,s,{handler:function(n,t,i){var u=i.pointerType==ot,r=i.pointerType==yi;if(!r||!i.sourceCapabilities||!i.sourceCapabilities.firesTouchEvents){if(u)df.call(this,t,i);else if(r&&gf.call(this,i))return;this.callback(n,t,i)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var ou=dt(wu.style,"touchAction"),su=ou!==r,hu="compute",cu="auto",di="manipulation",it="none",at="pan-x",vt="pan-y",ui=te();gi.prototype={set:function(n){n==hu&&(n=this.compute());su&&this.manager.element.style&&ui[n]&&(this.manager.element.style[ou]=n);this.actions=n.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var n=[];return v(this.manager.recognizers,function(t){vi(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),ne(n.join(" "))},preventDefaults:function(n){var i=n.srcEvent,r=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var t=this.actions,u=g(t,it)&&!ui[it],f=g(t,vt)&&!ui[vt],e=g(t,at)&&!ui[at];if(u){var o=n.pointers.length===1,s=n.distance<2,h=n.deltaTime<250;if(o&&s&&h)return}if(!e||!f)return u||f&&r&l||e&&r&tt?this.preventSrc(i):void 0},preventSrc:function(n){this.manager.session.prevented=!0;n.preventDefault()}};var fi=1,h=2,et=4,k=8,p=k,yt=16,a=32;w.prototype={defaults:{},set:function(n){return y(this.options,n),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(n){if(ut(n,"recognizeWith",this))return this;var t=this.simultaneous;return n=ei(n,this),t[n.id]||(t[n.id]=n,n.recognizeWith(this)),this},dropRecognizeWith:function(n){return ut(n,"dropRecognizeWith",this)?this:(n=ei(n,this),delete this.simultaneous[n.id],this)},requireFailure:function(n){if(ut(n,"requireFailure",this))return this;var t=this.requireFail;return n=ei(n,this),ft(t,n)===-1&&(t.push(n),n.requireFailure(this)),this},dropRequireFailure:function(n){if(ut(n,"dropRequireFailure",this))return this;n=ei(n,this);var t=ft(this.requireFail,n);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){function r(i){t.manager.emit(i,n)}var t=this,i=this.state;i<k&&r(t.options.event+lu(i));r(t.options.event);n.additionalEvent&&r(n.additionalEvent);i>=k&&r(t.options.event+lu(i))},tryEmit:function(n){if(this.canEmit())return this.emit(n);this.state=a},canEmit:function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(a|fi)))return!1;n++}return!0},recognize:function(n){var t=y({},n);if(!vi(this.options.enable,[this,t])){this.reset();this.state=a;return}this.state&(p|yt|a)&&(this.state=fi);this.state=this.process(t);this.state&(h|et|k|yt)&&this.tryEmit(t)},process:function(){},getTouchAction:function(){},reset:function(){}};o(c,w,{defaults:{pointers:1},attrTest:function(n){var t=this.options.pointers;return t===0||n.pointers.length===t},process:function(n){var t=this.state,i=n.eventType,r=t&(h|et),f=this.attrTest(n);return r&&(i&e||!f)?t|yt:r||f?i&u?t|k:(t&h)?t|et:h:a}});o(oi,c,{defaults:{event:"pan",threshold:10,pointers:1,direction:pr},getTouchAction:function(){var t=this.options.direction,n=[];return t&l&&n.push(vt),t&tt&&n.push(at),n},directionTest:function(n){var i=this.options,r=!0,u=n.distance,t=n.direction,f=n.deltaX,e=n.deltaY;return t&i.direction||(i.direction&l?(t=f===0?gt:f<0?st:ht,r=f!=this.pX,u=Math.abs(n.deltaX)):(t=e===0?gt:e<0?ct:lt,r=e!=this.pY,u=Math.abs(n.deltaY))),n.direction=t,r&&u>i.threshold&&t&i.direction},attrTest:function(n){return c.prototype.attrTest.call(this,n)&&(this.state&h||!(this.state&h)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX;this.pY=n.deltaY;var t=au(n.direction);t&&(n.additionalEvent=this.options.event+t);this._super.emit.call(this,n)}});o(nr,c,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[it]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&h)},emit:function(n){if(n.scale!==1){var t=n.scale<1?"in":"out";n.additionalEvent=this.options.event+t}this._super.emit.call(this,n)}});o(tr,w,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[cu]},process:function(n){var t=this.options,i=n.pointers.length===t.pointers,r=n.distance<t.threshold,o=n.deltaTime>t.time;if(this._input=n,!r||!i||n.eventType&(u|e)&&!o)this.reset();else if(n.eventType&f)this.reset(),this._timer=ci(function(){this.state=p;this.tryEmit()},t.time,this);else if(n.eventType&u)return p;return a},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===p&&(n&&n.eventType&u?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=hi(),this.manager.emit(this.options.event,this._input)))}});o(ir,c,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[it]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&h)}});o(rr,c,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:l|tt,pointers:1},getTouchAction:function(){return oi.prototype.getTouchAction.call(this)},attrTest:function(n){var t=this.options.direction,i;return t&(l|tt)?i=n.overallVelocity:t&l?i=n.overallVelocityX:t&tt&&(i=n.overallVelocityY),this._super.attrTest.call(this,n)&&t&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers==this.options.pointers&&d(i)>this.options.velocity&&n.eventType&u},emit:function(n){var t=au(n.offsetDirection);t&&this.manager.emit(this.options.event+t,n);this.manager.emit(this.options.event,n)}});o(si,w,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[di]},process:function(n){var t=this.options,o=n.pointers.length===t.pointers,s=n.distance<t.threshold,c=n.deltaTime<t.time,i,r,e;if(this.reset(),n.eventType&f&&this.count===0)return this.failTimeout();if(s&&c&&o){if(n.eventType!=u)return this.failTimeout();if(i=this.pTime?n.timeStamp-this.pTime<t.interval:!0,r=!this.pCenter||ti(this.pCenter,n.center)<t.posThreshold,this.pTime=n.timeStamp,this.pCenter=n.center,r&&i?this.count+=1:this.count=1,this._input=n,e=this.count%t.taps,e===0)return this.hasRequireFailures()?(this._timer=ci(function(){this.state=p;this.tryEmit()},t.interval,this),h):p}return a},failTimeout:function(){return this._timer=ci(function(){this.state=a},this.options.interval,this),a},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==p&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});b.VERSION="2.0.8";b.defaults={domEvents:!1,touchAction:hu,enable:!0,inputTarget:null,inputClass:null,preset:[[ir,{enable:!1}],[nr,{enable:!1},["rotate"]],[rr,{direction:l}],[oi,{direction:l},["swipe"]],[si],[si,{event:"doubletap",taps:2},["tap"]],[tr]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};vu=1;ur=2;fr.prototype={set:function(n){return y(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},stop:function(n){this.session.stopped=n?ur:vu},recognize:function(n){var r=this.session,i,f,t,u;if(!r.stopped)for(this.touchAction.preventDefaults(n),f=this.recognizers,t=r.curRecognizer,(!t||t&&t.state&p)&&(t=r.curRecognizer=null),u=0;u<f.length;)i=f[u],r.stopped!==ur&&(!t||i==t||i.canRecognizeWith(t))?i.recognize(n):i.reset(),!t&&i.state&(h|et|k)&&(t=r.curRecognizer=i),u++},get:function(n){var i,t;if(n instanceof w)return n;for(i=this.recognizers,t=0;t<i.length;t++)if(i[t].options.event==n)return i[t];return null},add:function(n){if(ut(n,"add",this))return this;var t=this.get(n.options.event);return t&&this.remove(t),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},remove:function(n){if(ut(n,"remove",this))return this;if(n=this.get(n),n){var t=this.recognizers,i=ft(t,n);i!==-1&&(t.splice(i,1),this.touchAction.update())}return this},on:function(n,t){if(n!==r&&t!==r){var i=this.handlers;return v(bt(n),function(n){i[n]=i[n]||[];i[n].push(t)}),this}},off:function(n,t){if(n!==r){var i=this.handlers;return v(bt(n),function(n){t?i[n]&&i[n].splice(ft(i[n],t),1):delete i[n]}),this}},emit:function(n,t){var i,r;if(this.options.domEvents&&ie(n,t),i=this.handlers[n]&&this.handlers[n].slice(),i&&i.length)for(t.type=n,t.preventDefault=function(){t.srcEvent.preventDefault()},r=0;r<i.length;)i[r](t),r++},destroy:function(){this.element&&yu(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};y(b,{INPUT_START:f,INPUT_MOVE:nt,INPUT_END:u,INPUT_CANCEL:e,STATE_POSSIBLE:fi,STATE_BEGAN:h,STATE_CHANGED:et,STATE_ENDED:k,STATE_RECOGNIZED:p,STATE_CANCELLED:yt,STATE_FAILED:a,DIRECTION_NONE:gt,DIRECTION_LEFT:st,DIRECTION_RIGHT:ht,DIRECTION_UP:ct,DIRECTION_DOWN:lt,DIRECTION_HORIZONTAL:l,DIRECTION_VERTICAL:tt,DIRECTION_ALL:pr,Manager:fr,Input:s,TouchAction:gi,TouchInput:ri,MouseInput:ii,PointerEventInput:wi,TouchMouseInput:ki,SingleTouchInput:iu,Recognizer:w,AttrRecognizer:c,Tap:si,Pan:oi,Swipe:rr,Pinch:nr,Rotate:ir,Press:tr,on:pt,off:wt,each:v,merge:sr,extend:li,assign:y,inherit:o,bindFn:ai,prefixed:dt});pu=typeof n!="undefined"?n:typeof self!="undefined"?self:{};pu.Hammer=b;typeof define=="function"&&define.amd?define(function(){return b}):typeof module!="undefined"&&module.exports?module.exports=b:n[i]=b}(window,document,"Hammer"),function(n,t){typeof exports=="object"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Spinner=t()}(this,function(){"use strict";function i(n,t){var i=document.createElement(n||"div");for(var r in t)i[r]=t[r];return i}function t(n){for(var t=1,i=arguments.length;t<i;t++)n.appendChild(arguments[t]);return n}function a(n,t,i,r){var f=["opacity",t,~~(n*100),i,r].join("-"),o=.01+i/r*100,s=Math.max(1-(1-n)/t*(100-o),n),c=u.substring(0,u.indexOf("Animation")).toLowerCase(),l=c&&"-"+c+"-"||"";return h[f]||(e.insertRule("@"+l+"keyframes "+f+"{0%{opacity:"+s+"}"+o+"%{opacity:"+n+"}"+(o+.01)+"%{opacity:1}"+(o+t)%100+"%{opacity:"+n+"}100%{opacity:"+s+"}}",e.cssRules.length),h[f]=1),f}function o(n,t){var u=n.style,r,i;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<s.length;i++)if(r=s[i]+t,u[r]!==undefined)return r;if(u[t]!==undefined)return t}function n(n,t){for(var i in t)n.style[o(n,i)||i]=t[i];return n}function c(n){for(var r,i,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)n[i]===undefined&&(n[i]=r[i])}return n}function l(n,t){return typeof n=="string"?n:n[t%n.length]}function r(n){this.opts=c(n||{},r.defaults,v)}function y(){function u(n,t){return i("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}e.addRule(".spin-vml","behavior:url(#default#VML)");r.prototype.lines=function(i,r){function s(){return n(u("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function a(i,f,o){t(c,t(n(s(),{rotation:360/r.lines*i+"deg",left:~~f}),t(n(u("roundrect",{arcsize:r.corners}),{width:e,height:r.width,left:r.radius,top:-r.width>>1,filter:o}),u("fill",{color:l(r.color,i),opacity:r.opacity}),u("stroke",{opacity:0}))))}var e=r.length+r.width,o=2*e,h=-(r.width+r.length)*2+"px",c=n(s(),{position:"absolute",top:h,left:h}),f;if(r.shadow)for(f=1;f<=r.lines;f++)a(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=r.lines;f++)a(f);return t(i,c)};r.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}}var s=["webkit","Moz","ms","O"],h={},u,e=function(){var n=i("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),v={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:1/4,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"},f;return r.defaults={},c(r.prototype,{spin:function(t){this.stop();var f=this,r=f.opts,e=f.el=n(i(0,{className:r.className}),{position:r.position,width:0,zIndex:r.zIndex}),p=r.radius+r.length+r.width;if(n(e,{left:r.left,top:r.top}),t&&t.insertBefore(e,t.firstChild||null),e.setAttribute("role","progressbar"),f.lines(e,f.opts),!u){var s=0,l=(r.lines-1)*(1-r.direction)/2,h,c=r.fps,o=c/r.speed,a=(1-r.opacity)/(o*r.trail/100),v=o/r.lines;(function y(){s++;for(var n=0;n<r.lines;n++)h=Math.max(1-(s+(r.lines-n)*v)%o*a,r.opacity),f.opacity(e,n*r.direction+l,h,r);f.timeout=f.el&&setTimeout(y,~~(1e3/c))})()}return f},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=undefined),this},lines:function(r,f){function s(t,r){return n(i(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:t,boxShadow:r,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*e+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var e=0,h=(f.lines-1)*(1-f.direction)/2,o;e<f.lines;e++)o=n(i(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:u&&a(f.opacity,f.trail,h+e*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&t(o,n(s("#000","0 0 4px #000"),{top:"2px"})),t(r,t(o,s(l(f.color,e),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),f=n(i("group"),{behavior:"url(#default#VML)"}),!o(f,"transform")&&f.adj?y():u=o(f,"animation"),r}),function(n){n.fn.resizeselect=function(t){var i=t.arrowWidth;return this.each(function(){var t=n(this),r=function(){var f=t.find("option:selected").text(),r=r=n('<span style="font-size:'+t.css("font-size")+'">').html(f),u;r.appendTo("body");u=r.width();r.remove();t.width(u+i)};n(this).change(r);r()})}}(jQuery,window),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";function s(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}}function h(n){var t=++o;return String(n==null?"rmjs-":n)+t}function e(n){var t=n.clone().css({height:"auto",width:n.width(),maxHeight:"none",overflow:"hidden"}).insertAfter(n),u=t.outerHeight(),i=parseInt(t.css({maxHeight:""}).css("max-height").replace(/[^-\d\.]/g,""),10),f=n.data("defaultHeight"),r;t.remove();r=i||n.data("collapsedHeight")||f;n.data({expandedHeight:u,maxHeight:i,collapsedHeight:r}).css({maxHeight:"none"})}function c(n){if(!f[n.selector]){var t=" ";n.embedCSS&&n.blockCSS!==""&&(t+=n.selector+" + [data-readmore-toggle], "+n.selector+"[data-readmore]{"+n.blockCSS+"}");t+=n.selector+"[data-readmore]{transition: height "+n.speed+"ms;overflow: hidden;}",function(n,t){var i=n.createElement("style");i.type="text/css";i.styleSheet?i.styleSheet.cssText=t:i.appendChild(n.createTextNode(t));n.getElementsByTagName("head")[0].appendChild(i)}(document,t);f[n.selector]=!0}}function r(r,f){this.element=r;this.options=n.extend({},u,f);c(this.options);this._defaults=u;this._name=t;this.init();window.addEventListener?(window.addEventListener("load",i),window.addEventListener("resize",i)):(window.attachEvent("load",i),window.attachEvent("resize",i))}var t="readmore",u={speed:100,collapsedHeight:200,heightMargin:16,moreLink:'<a href="#">Read More<\/a>',lessLink:'<a href="#">Close<\/a>',embedCSS:!0,blockCSS:"display: block; width: 100%;",startOpen:!1,blockProcessed:function(){},beforeToggle:function(){},afterToggle:function(){}},f={},o=0,i=s(function(){n("[data-readmore]").each(function(){var t=n(this),i=t.attr("aria-expanded")==="true";e(t);t.css({height:t.data(i?"expandedHeight":"collapsedHeight")})})},100);r.prototype={init:function(){var t=n(this.element),r,u,i,f;if(t.data({defaultHeight:this.options.collapsedHeight,heightMargin:this.options.heightMargin}),e(t),r=t.data("collapsedHeight"),u=t.data("heightMargin"),t.outerHeight(!0)<=r+u)return this.options.blockProcessed&&typeof this.options.blockProcessed=="function"&&this.options.blockProcessed(t,!1),!0;i=t.attr("id")||h();f=this.options.startOpen?this.options.lessLink:this.options.moreLink;t.attr({"data-readmore":"","aria-expanded":this.options.startOpen,id:i});t.after(n(f).on("click",function(n){return function(i){n.toggle(this,t[0],i)}}(this)).attr({"data-readmore-toggle":i,"aria-controls":i}));this.options.startOpen||t.css({height:r});this.options.blockProcessed&&typeof this.options.blockProcessed=="function"&&this.options.blockProcessed(t,!0)},toggle:function(t,i,r){r&&r.preventDefault();t||(t=n('[aria-controls="'+this.element.id+'"]')[0]);i||(i=this.element);var u=n(i),e="",o="",f=!1,s=u.data("collapsedHeight");u.height()<=s?(e=u.data("expandedHeight")+"px",o="lessLink",f=!0):(e=s,o="moreLink");this.options.beforeToggle&&typeof this.options.beforeToggle=="function"&&this.options.beforeToggle(t,u,!f);u.css({height:e});u.on("transitionend",function(i){return function(){i.options.afterToggle&&typeof i.options.afterToggle=="function"&&i.options.afterToggle(t,u,f);n(this).attr({"aria-expanded":f}).off("transitionend")}}(this));n(t).replaceWith(n(this.options[o]).on("click",function(n){return function(t){n.toggle(this,i,t)}}(this)).attr({"data-readmore-toggle":u.attr("id"),"aria-controls":u.attr("id")}))},destroy:function(){n(this.element).each(function(){var t=n(this);t.attr({"data-readmore":null,"aria-expanded":null}).css({maxHeight:"",height:""}).next("[data-readmore-toggle]").remove();t.removeData()})}};n.fn.readmore=function(i){var u=arguments,f=this.selector;return(i=i||{},typeof i=="object")?this.each(function(){if(n.data(this,"plugin_"+t)){var u=n.data(this,"plugin_"+t);u.destroy.apply(u)}i.selector=f;n.data(this,"plugin_"+t,new r(this,i))}):typeof i=="string"&&i[0]!=="_"&&i!=="init"?this.each(function(){var f=n.data(this,"plugin_"+t);f instanceof r&&typeof f[i]=="function"&&f[i].apply(f,Array.prototype.slice.call(u,1))}):void 0}});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SimpleBar=t():n.SimpleBar=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=27)}([function(n,t,i){var r=i(23)("wks"),e=i(12),u=i(1).Symbol,f="function"==typeof u;(n.exports=function(n){return r[n]||(r[n]=f&&u[n]||(f?u:e)("Symbol."+n))}).store=r},function(n){var t=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(n){var t={}.hasOwnProperty;n.exports=function(n,i){return t.call(n,i)}},function(n){var t=n.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)},function(n,t,i){var r=i(5),u=i(11);n.exports=i(7)?function(n,t,i){return r.f(n,t,u(1,i))}:function(n,t,i){return n[t]=i,n}},function(n,t,i){var r=i(6),u=i(33),f=i(34),e=Object.defineProperty;t.f=i(7)?Object.defineProperty:function(n,t,i){if(r(n),t=f(t,!0),r(i),u)try{return e(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(n[t]=i.value),n}},function(n,t,i){var r=i(10);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n,t,i){n.exports=!i(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n){var t=Math.ceil,i=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?i:t)(n)}},function(n){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on  "+n);return n}},function(n){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n){var t=0,i=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++t+i).toString(36))}},function(n){n.exports={}},function(n,t,i){var r=i(23)("keys"),u=i(12);n.exports=function(n){return r[n]||(r[n]=u(n))}},function(n,t,i){var u=i(1),f=i(3),o=i(4),s=i(18),e=i(19),r=function(n,t,i){var c,v,h,p,k=n&r.F,y=n&r.G,d=n&r.S,w=n&r.P,g=n&r.B,l=y?u:d?u[t]||(u[t]={}):(u[t]||{}).prototype,a=y?f:f[t]||(f[t]={}),b=a.prototype||(a.prototype={});y&&(i=t);for(c in i)v=!k&&l&&void 0!==l[c],h=(v?l:i)[c],p=g&&v?e(h,u):w&&"function"==typeof h?e(Function.call,h):h,l&&s(l,c,h,n&r.U),a[c]!=h&&o(a,c,p),w&&b[c]!=h&&(b[c]=h)};u.core=f;r.F=1;r.G=2;r.S=4;r.P=8;r.B=16;r.W=32;r.U=64;r.R=128;n.exports=r},function(n){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,i){var u=i(10),r=i(1).document,f=u(r)&&u(r.createElement);n.exports=function(n){return f?r.createElement(n):{}}},function(n,t,i){var o=i(1),r=i(4),e=i(2),u=i(12)("src"),f=Function.toString,s=(""+f).split("toString");i(3).inspectSource=function(n){return f.call(n)};(n.exports=function(n,t,i,f){var h="function"==typeof i;h&&(e(i,"name")||r(i,"name",t));n[t]!==i&&(h&&(e(i,u)||r(i,u,n[t]?""+n[t]:s.join(String(t)))),n===o?n[t]=i:f?n[t]?n[t]=i:r(n,t,i):(delete n[t],r(n,t,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||f.call(this)})},function(n,t,i){var r=i(35);n.exports=function(n,t,i){if(r(n),void 0===t)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},function(n,t,i){var r=i(41),u=i(9);n.exports=function(n){return r(u(n))}},function(n){var t={}.toString;n.exports=function(n){return t.call(n).slice(8,-1)}},function(n,t,i){var r=i(8),u=Math.min;n.exports=function(n){return n>0?u(r(n),9007199254740991):0}},function(n,t,i){var r=i(1),u=r["__core-js_shared__"]||(r["__core-js_shared__"]={});n.exports=function(n){return u[n]||(u[n]={})}},function(n){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t,i){var u=i(5).f,f=i(2),r=i(0)("toStringTag");n.exports=function(n,t,i){n&&!f(n=i?n:n.prototype,r)&&u(n,r,{configurable:!0,value:t})}},function(n,t,i){var r=i(9);n.exports=function(n){return Object(r(n))}},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function o(n,t,i){return t&&f(n.prototype,t),i&&f(n,i),n}var u;Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;i(28);var s=r(i(53)),h=r(i(54)),c=r(i(56));i(57);Object.assign=i(58);u=function(){function n(t,i){e(this,n);this.el=t;this.flashTimeout;this.contentEl;this.scrollContentEl;this.dragOffset={x:0,y:0};this.isVisible={x:!0,y:!0};this.scrollOffsetAttr={x:"scrollLeft",y:"scrollTop"};this.sizeAttr={x:"offsetWidth",y:"offsetHeight"};this.scrollSizeAttr={x:"scrollWidth",y:"scrollHeight"};this.offsetAttr={x:"left",y:"top"};this.globalObserver;this.mutationObserver;this.resizeObserver;this.currentAxis;this.options=Object.assign({},n.defaultOptions,i);this.classNames=this.options.classNames;this.scrollbarWidth=s.default();this.offsetSize=20;this.flashScrollbar=this.flashScrollbar.bind(this);this.onDragY=this.onDragY.bind(this);this.onDragX=this.onDragX.bind(this);this.onScrollY=this.onScrollY.bind(this);this.onScrollX=this.onScrollX.bind(this);this.drag=this.drag.bind(this);this.onEndDrag=this.onEndDrag.bind(this);this.onMouseEnter=this.onMouseEnter.bind(this);this.recalculate=h.default(this.recalculate,100,{leading:!0,trailing:!1});this.init()}return o(n,[{key:"init",value:function(){this.el.SimpleBar=this;this.initDOM();this.scrollbarX=this.trackX.querySelector(".".concat(this.classNames.scrollbar));this.scrollbarY=this.trackY.querySelector(".".concat(this.classNames.scrollbar));this.scrollContentEl.style.paddingRight="".concat(this.scrollbarWidth||this.offsetSize,"px");this.scrollContentEl.style.marginBottom="-".concat(2*this.scrollbarWidth||this.offsetSize,"px");this.contentEl.style.paddingBottom="".concat(this.scrollbarWidth||this.offsetSize,"px");0!==this.scrollbarWidth&&(this.contentEl.style.marginRight="-".concat(this.scrollbarWidth,"px"));this.recalculate();this.initListeners()}},{key:"initDOM",value:function(){var i=this,n,t;if(Array.from(this.el.children).filter(function(n){return n.classList.contains(i.classNames.scrollContent)}).length)this.trackX=this.el.querySelector(".".concat(this.classNames.track,".horizontal")),this.trackY=this.el.querySelector(".".concat(this.classNames.track,".vertical")),this.scrollContentEl=this.el.querySelector(".".concat(this.classNames.scrollContent)),this.contentEl=this.el.querySelector(".".concat(this.classNames.content));else{for(this.scrollContentEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.scrollContentEl.classList.add(this.classNames.scrollContent),this.contentEl.classList.add(this.classNames.content);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.scrollContentEl.appendChild(this.contentEl);this.el.appendChild(this.scrollContentEl)}this.trackX&&this.trackY||(n=document.createElement("div"),t=document.createElement("div"),n.classList.add(this.classNames.track),t.classList.add(this.classNames.scrollbar),n.appendChild(t),this.trackX=n.cloneNode(!0),this.trackX.classList.add("horizontal"),this.trackY=n.cloneNode(!0),this.trackY.classList.add("vertical"),this.el.insertBefore(this.trackX,this.el.firstChild),this.el.insertBefore(this.trackY,this.el.firstChild));this.el.setAttribute("data-simplebar","init")}},{key:"initListeners",value:function(){var n=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);this.scrollbarY.addEventListener("mousedown",this.onDragY);this.scrollbarX.addEventListener("mousedown",this.onDragX);this.scrollContentEl.addEventListener("scroll",this.onScrollY);this.contentEl.addEventListener("scroll",this.onScrollX);"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(t){t.forEach(function(t){(n.isChildNode(t.target)||t.addedNodes.length)&&n.recalculate()})}),this.mutationObserver.observe(this.el,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));this.resizeObserver=new c.default(this.recalculate.bind(this));this.resizeObserver.observe(this.el)}},{key:"removeListeners",value:function(){this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);this.scrollbarX.removeEventListener("mousedown",this.onDragX);this.scrollbarY.removeEventListener("mousedown",this.onDragY);this.scrollContentEl.removeEventListener("scroll",this.onScrollY);this.contentEl.removeEventListener("scroll",this.onScrollX);this.mutationObserver.disconnect();this.resizeObserver.disconnect()}},{key:"onDragX",value:function(n){this.onDrag(n,"x")}},{key:"onDragY",value:function(n){this.onDrag(n,"y")}},{key:"onDrag",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i,r;n.preventDefault();i="y"===t?this.scrollbarY:this.scrollbarX;r="y"===t?n.pageY:n.pageX;this.dragOffset[t]=r-i.getBoundingClientRect()[this.offsetAttr[t]];this.currentAxis=t;document.addEventListener("mousemove",this.drag);document.addEventListener("mouseup",this.onEndDrag)}},{key:"drag",value:function(n){var i,t,r;n.preventDefault();"y"===this.currentAxis?(i=n.pageY,t=this.trackY,r=this.scrollContentEl):(i=n.pageX,t=this.trackX,r=this.contentEl);var u=i-t.getBoundingClientRect()[this.offsetAttr[this.currentAxis]]-this.dragOffset[this.currentAxis],f=u/t[this.sizeAttr[this.currentAxis]],e=f*this.contentEl[this.scrollSizeAttr[this.currentAxis]];r[this.scrollOffsetAttr[this.currentAxis]]=e}},{key:"onEndDrag",value:function(){document.removeEventListener("mousemove",this.drag);document.removeEventListener("mouseup",this.onEndDrag)}},{key:"resizeScrollbar",value:function(){var u,t,f,r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===i?(u=this.trackX,t=this.scrollbarX,f=this.contentEl[this.scrollOffsetAttr[i]],r=this.contentSizeX,n=this.scrollbarXSize):(u=this.trackY,t=this.scrollbarY,f=this.scrollContentEl[this.scrollOffsetAttr[i]],r=this.contentSizeY,n=this.scrollbarYSize);var s=n/r,h=f/(r-n),e=Math.max(~~(s*(n-2))-2,this.options.scrollbarMinSize),o=~~((n-4-e)*h+2);this.isVisible[i]=n<r;this.isVisible[i]?(u.style.visibility="visible","x"===i?(t.style.left="".concat(o,"px"),t.style.width="".concat(e,"px")):(t.style.top="".concat(o,"px"),t.style.height="".concat(e,"px"))):u.style.visibility="hidden"}},{key:"onScrollX",value:function(){this.flashScrollbar("x")}},{key:"onScrollY",value:function(){this.flashScrollbar("y")}},{key:"onMouseEnter",value:function(){this.flashScrollbar("x");this.flashScrollbar("y")}},{key:"flashScrollbar",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.resizeScrollbar(n);this.showScrollbar(n)}},{key:"showScrollbar",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.isVisible[n]&&("x"===n?this.scrollbarX.classList.add("visible"):this.scrollbarY.classList.add("visible"),this.options.autoHide&&("number"==typeof this.flashTimeout&&window.clearTimeout(this.flashTimeout),this.flashTimeout=window.setTimeout(this.hideScrollbar.bind(this),1e3)))}},{key:"hideScrollbar",value:function(){this.scrollbarX.classList.remove("visible");this.scrollbarY.classList.remove("visible");"number"==typeof this.flashTimeout&&window.clearTimeout(this.flashTimeout)}},{key:"recalculate",value:function(){this.contentSizeX=this.contentEl[this.scrollSizeAttr.x];this.contentSizeY=this.contentEl[this.scrollSizeAttr.y]-(this.scrollbarWidth||this.offsetSize);this.scrollbarXSize=this.trackX[this.sizeAttr.x];this.scrollbarYSize=this.trackY[this.sizeAttr.y];this.resizeScrollbar("x");this.resizeScrollbar("y");this.options.autoHide||(this.showScrollbar("x"),this.showScrollbar("y"))}},{key:"getScrollElement",value:function(){return this.scrollContentEl}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"unMount",value:function(){this.removeListeners();this.el.SimpleBar=null}},{key:"isChildNode",value:function(n){return null!==n&&(n===this.el||this.isChildNode(n.parentNode))}}],[{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.from(t.addedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!t.SimpleBar&&new n(t,n.getElOptions(t)):Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new n(t,n.getElOptions(t))}))});Array.from(t.removedNodes).forEach(function(n){1===n.nodeType&&(n.hasAttribute("data-simplebar")?n.SimpleBar&&n.SimpleBar.unMount():Array.from(n.querySelectorAll("[data-simplebar]")).forEach(function(n){n.SimpleBar&&n.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0}));"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements.bind(this)):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(t){return Object.keys(n.htmlAttributes).reduce(function(i,r){var u=n.htmlAttributes[r];return t.hasAttribute(u)&&(i[r]=JSON.parse(t.getAttribute(u)||!0)),i},{})}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new n(t,n.getElOptions(t))})}},{key:"defaultOptions",get:function(){return{autoHide:!0,classNames:{content:"simplebar-content",scrollContent:"simplebar-scroll-content",scrollbar:"simplebar-scrollbar",track:"simplebar-track"},scrollbarMinSize:25}}},{key:"htmlAttributes",get:function(){return{autoHide:"data-simplebar-autohide",scrollbarMinSize:"data-simplebar-scrollbar-min-size"}}}]),n}();t.default=u;u.initHtmlApi()},function(n,t,i){i(29);i(46);n.exports=i(3).Array.from},function(n,t,i){"use strict";var r=i(30)(!0);i(31)(String,"String",function(n){this._t=String(n);this._i=0},function(){var n,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(n=r(t,i),this._i+=n.length,{value:n,done:!1})})},function(n,t,i){var r=i(8),u=i(9);n.exports=function(n){return function(t,i){var e,s,o=String(u(t)),f=r(i),h=o.length;return f<0||f>=h?n?"":void 0:(e=o.charCodeAt(f),e<55296||e>56319||f+1===h||(s=o.charCodeAt(f+1))<56320||s>57343?n?o.charAt(f):e:n?o.slice(f,f+2):s-56320+(e-55296<<10)+65536)}}},function(n,t,i){"use strict";var e=i(32),u=i(15),c=i(18),o=i(4),l=i(2),s=i(13),a=i(36),v=i(25),y=i(45),r=i(0)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};n.exports=function(n,t,i,p,w,b,k){a(i,t,p);var tt,rt,it,ut=function(n){if(!f&&n in d)return d[n];switch(n){case"keys":case"values":return function(){return new i(this,n)}}return function(){return new i(this,n)}},ot=t+" Iterator",ft="values"==w,et=!1,d=n.prototype,g=d[r]||d["@@iterator"]||w&&d[w],nt=g||ut(w),ht=w?ft?ut("entries"):nt:void 0,st="Array"==t?d.entries||g:g;if(st&&(it=y(st.call(new n)))!==Object.prototype&&it.next&&(v(it,ot,!0),e||l(it,r)||o(it,r,h)),ft&&g&&"values"!==g.name&&(et=!0,nt=function(){return g.call(this)}),e&&!k||!f&&!et&&d[r]||o(d,r,nt),s[t]=nt,s[ot]=h,w)if(tt={values:ft?nt:ut("values"),keys:b?nt:ut("keys"),entries:ht},k)for(rt in tt)rt in d||c(d,rt,tt[rt]);else u(u.P+u.F*(f||et),t,tt);return tt}},function(n){n.exports=!1},function(n,t,i){n.exports=!i(7)&&!i(16)(function(){return 7!=Object.defineProperty(i(17)("div"),"a",{get:function(){return 7}}).a})},function(n,t,i){var r=i(10);n.exports=function(n,t){if(!r(n))return n;var i,u;if(t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n))||"function"==typeof(i=n.valueOf)&&!r(u=i.call(n))||!t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n)))return u;throw TypeError("Can't convert object to primitive value");}},function(n){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,i){"use strict";var u=i(37),f=i(11),e=i(25),r={};i(4)(r,i(0)("iterator"),function(){return this});n.exports=function(n,t,i){n.prototype=u(r,{next:f(1,i)});e(n,t+" Iterator")}},function(n,t,i){var e=i(6),o=i(38),f=i(24),s=i(14)("IE_PROTO"),u=function(){},r=function(){var n,t=i(17)("iframe"),u=f.length;for(t.style.display="none",i(44).appendChild(t),t.src="javascript:",n=t.contentWindow.document,n.open(),n.write("<script>document.F=Object<\/script>"),n.close(),r=n.F;u--;)delete r.prototype[f[u]];return r()};n.exports=Object.create||function(n,t){var i;return null!==n?(u.prototype=e(n),i=new u,u.prototype=null,i[s]=n):i=r(),void 0===t?i:o(i,t)}},function(n,t,i){var r=i(5),u=i(6),f=i(39);n.exports=i(7)?Object.defineProperties:function(n,t){u(n);for(var i,e=f(t),s=e.length,o=0;s>o;)r.f(n,i=e[o++],t[i]);return n}},function(n,t,i){var r=i(40),u=i(24);n.exports=Object.keys||function(n){return r(n,u)}},function(n,t,i){var r=i(2),u=i(20),f=i(42)(!1),e=i(14)("IE_PROTO");n.exports=function(n,t){var i,s=u(n),h=0,o=[];for(i in s)i!=e&&r(s,i)&&o.push(i);for(;t.length>h;)r(s,i=t[h++])&&(~f(o,i)||o.push(i));return o}},function(n,t,i){var r=i(21);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},function(n,t,i){var r=i(20),u=i(22),f=i(43);n.exports=function(n){return function(t,i,e){var c,s=r(t),h=u(s.length),o=f(e,h);if(n&&i!=i){for(;h>o;)if((c=s[o++])!=c)return!0}else for(;h>o;o++)if((n||o in s)&&s[o]===i)return n||o||0;return!n&&-1}}},function(n,t,i){var r=i(8),u=Math.max,f=Math.min;n.exports=function(n,t){return n=r(n),n<0?u(n+t,0):f(n,t)}},function(n,t,i){var r=i(1).document;n.exports=r&&r.documentElement},function(n,t,i){var u=i(2),f=i(26),r=i(14)("IE_PROTO"),e=Object.prototype;n.exports=Object.getPrototypeOf||function(n){return n=f(n),u(n,r)?n[r]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?e:null}},function(n,t,i){"use strict";var f=i(19),r=i(15),e=i(26),o=i(47),s=i(48),h=i(22),u=i(49),c=i(50);r(r.S+r.F*!i(52)(function(n){Array.from(n)}),"Array",{from:function(n){var a,i,v,y,r=e(n),p="function"==typeof this?this:Array,k=arguments.length,l=k>1?arguments[1]:void 0,w=void 0!==l,t=0,b=c(r);if(w&&(l=f(l,k>2?arguments[2]:void 0,2)),void 0==b||p==Array&&s(b))for(a=h(r.length),i=new p(a);a>t;t++)u(i,t,w?l(r[t],t):r[t]);else for(y=b.call(r),i=new p;!(v=y.next()).done;t++)u(i,t,w?o(y,l,[v.value,t],!0):v.value);return i.length=t,i}})},function(n,t,i){var r=i(6);n.exports=function(n,t,i,u){try{return u?t(r(i)[0],i[1]):t(i)}catch(t){var f=n.return;throw void 0!==f&&r(f.call(n)),t;}}},function(n,t,i){var r=i(13),u=i(0)("iterator"),f=Array.prototype;n.exports=function(n){return void 0!==n&&(r.Array===n||f[u]===n)}},function(n,t,i){"use strict";var r=i(5),u=i(11);n.exports=function(n,t,i){t in n?r.f(n,t,u(0,i)):n[t]=i}},function(n,t,i){var r=i(51),u=i(0)("iterator"),f=i(13);n.exports=i(3).getIteratorMethod=function(n){if(void 0!=n)return n[u]||n["@@iterator"]||f[r(n)]}},function(n,t,i){var r=i(21),u=i(0)("toStringTag"),f="Arguments"==r(function(){return arguments}()),e=function(n,t){try{return n[t]}catch(n){}};n.exports=function(n){var t,i,o;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(i=e(t=Object(n),u))?i:f?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(n,t,i){var r=i(0)("iterator"),f=!1,u;try{u=[7][r]();u.return=function(){f=!0};Array.from(u,function(){throw 2;})}catch(n){}n.exports=function(n,t){var u,i,e;if(!t&&!f)return!1;u=!1;try{i=[7];e=i[r]();e.next=function(){return{done:u=!0}};i[r]=function(){return e};n(i)}catch(n){}return u}},function(n,t){var i,r,u;!function(f,e){r=[];i=e;void 0!==(u="function"==typeof i?i.apply(t,r):i)&&(n.exports=u)}(0,function(){"use strict";function n(){if("undefined"==typeof document)return 0;var i,r=document.body,t=document.createElement("div"),n=t.style;return n.position="absolute",n.top=n.left="-9999px",n.width=n.height="100px",n.overflow="scroll",r.appendChild(t),i=t.offsetWidth-t.clientWidth,r.removeChild(t),i}return n})},function(n,t,i){(function(t){function e(n,t,f){function w(t){var i=s,r=c;return s=c=void 0,a=t,l=n.apply(r,i)}function rt(n){return a=n,e=setTimeout(y,t),it?w(n):l}function ut(n){var r=n-o,u=n-a,i=t-r;return v?tt(i,p-u):i}function d(n){var i=n-o,r=n-a;return void 0===o||i>=t||i<0||v&&r>=p}function y(){var n=r();if(d(n))return g(n);e=setTimeout(y,ut(n))}function g(n){return e=void 0,k&&s?w(n):(s=c=void 0,l)}function ft(){void 0!==e&&clearTimeout(e);a=0;s=o=c=e=void 0}function et(){return void 0===e?l:g(r())}function b(){var n=r(),i=d(n);if(s=arguments,c=this,o=n,i){if(void 0===e)return rt(o);if(v)return e=setTimeout(y,t),w(o)}return void 0===e&&(e=setTimeout(y,t)),l}var s,c,p,l,e,o,a=0,it=!1,v=!1,k=!0;if("function"!=typeof n)throw new TypeError(h);return t=u(t)||0,i(f)&&(it=!!f.leading,v="maxWait"in f,p=v?nt(u(f.maxWait)||0,t):p,k="trailing"in f?!!f.trailing:k),b.cancel=ft,b.flush=et,b}function i(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function o(n){return!!n&&"object"==typeof n}function s(n){return"symbol"==typeof n||o(n)&&g.call(n)==c}function u(n){var t,r;return"number"==typeof n?n:s(n)?f:(i(n)&&(t="function"==typeof n.valueOf?n.valueOf():n,n=i(t)?t+"":t),"string"!=typeof n)?0===n?n:+n:(n=n.replace(l,""),r=v.test(n),r||y.test(n)?p(n.slice(2),r?2:8):a.test(n)?f:+n)}var h="Expected a function",f=NaN,c="[object Symbol]",l=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,y=/^0o[0-7]+$/i,p=parseInt,w="object"==typeof t&&t&&t.Object===Object&&t,b="object"==typeof self&&self&&self.Object===Object&&self,k=w||b||Function("return this")(),d=Object.prototype,g=d.toString,nt=Math.max,tt=Math.min,r=function(){return k.Date.now()};n.exports=e}).call(t,i(55))},function(n){var t=function(){return this}();try{t=t||Function("return this")()||eval("this")}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n,t){"use strict";function u(n){return parseFloat(n)||0}function c(n){return Array.prototype.slice.call(arguments,1).reduce(function(t,i){return t+u(n["border-"+i+"-width"])},0)}function w(n){for(var i,e,r={},t=0,f=["top","right","bottom","left"];t<f.length;t+=1)i=f[t],e=n["padding-"+i],r[i]=u(e);return r}function b(n){var t=n.getBBox();return f(0,0,t.width,t.height)}function k(n){var o=n.clientWidth,s=n.clientHeight,a,y;if(!o&&!s)return v;var t=getComputedStyle(n),i=w(t),h=i.left+i.right,l=i.top+i.bottom,r=u(t.width),e=u(t.height);return("border-box"===t.boxSizing&&(Math.round(r+h)!==o&&(r-=c(t,"left","right")+h),Math.round(e+l)!==s&&(e-=c(t,"top","bottom")+l)),d(n))||(a=Math.round(r+h)-o,y=Math.round(e+l)-s,1!==Math.abs(a)&&(r-=a),1!==Math.abs(y)&&(e-=y)),f(i.left,i.top,r,e)}function d(n){return n===document.documentElement}function g(n){return o?ot(n)?b(n):k(n):v}function nt(n){var t=n.x,i=n.y,r=n.width,u=n.height,e="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,f=Object.create(e.prototype);return a(f,{x:t,y:i,width:r,height:u,top:i,right:t+r,bottom:u+i,left:t}),f}function f(n,t,i,r){return{x:n,y:t,width:i,height:r}}var y,r,h,e,p;Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function n(n,t){var i=-1;return n.some(function(n,r){return n[0]===t&&(i=r,!0)}),i}return"undefined"!=typeof Map?Map:function(){function t(){this.__entries__=[]}var i={size:{}};return i.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var r=n(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,i){var r=n(this.__entries__,t);~r?this.__entries__[r][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,r=n(i,t);~r&&i.splice(r,1)},t.prototype.has=function(t){return!!~n(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,t){var i,r,u;for(void 0===t&&(t=null),i=0,r=this.__entries__;i<r.length;i+=1)u=r[i],n.call(t,u[1],u[0])},Object.defineProperties(t.prototype,i),t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,tt=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame:function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}}(),it=2,rt=function(n,t){function e(){i&&(i=!1,n());r&&u()}function o(){tt(e)}function u(){var n=Date.now();if(i){if(n-f<it)return;r=!0}else i=!0,r=!1,setTimeout(o,t);f=n}var i=!1,r=!1,f=0;return u},ut=["top","right","bottom","left","width","height","size","weight"],ft="undefined"!=typeof navigator&&/Trident\/.*rv:11/.test(navigator.userAgent),et="undefined"!=typeof MutationObserver&&!ft,i=function(){this.connected_=!1;this.mutationEventsAdded_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=rt(this.refresh.bind(this),20)};i.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n);this.connected_||this.connect_()};i.prototype.removeObserver=function(n){var t=this.observers_,i=t.indexOf(n);~i&&t.splice(i,1);!t.length&&this.connected_&&this.disconnect_()};i.prototype.refresh=function(){this.updateObservers_()&&this.refresh()};i.prototype.updateObservers_=function(){var n=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return n.forEach(function(n){return n.broadcastActive()}),n.length>0};i.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),et?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)};i.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)};i.prototype.onTransitionEnd_=function(n){var t=n.propertyName;ut.some(function(n){return!!~t.indexOf(n)})&&this.refresh()};i.getInstance=function(){return this.instance_||(this.instance_=new i),this.instance_};i.instance_=null;var a=function(n,t){for(var u,i=0,r=Object.keys(t);i<r.length;i+=1)u=r[i],Object.defineProperty(n,u,{value:t[u],enumerable:!1,writable:!1,configurable:!0});return n},v=f(0,0,0,0),ot=function(){return"undefined"!=typeof SVGGraphicsElement?function(n){return n instanceof SVGGraphicsElement}:function(n){return n instanceof SVGElement&&"function"==typeof n.getBBox}}(),s=function(n){this.broadcastWidth=0;this.broadcastHeight=0;this.contentRect_=f(0,0,0,0);this.target=n};s.prototype.isActive=function(){var n=g(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight};s.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n};y=function(n,t){var i=nt(t);a(this,{target:n,contentRect:i})};r=function(n,t,i){if("function"!=typeof n)throw new TypeError("The callback provided as parameter 1 is not a function.");this.activeObservations_=[];this.observations_=new l;this.callback_=n;this.controller_=t;this.callbackCtx_=i};r.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(n instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)||(t.set(n,new s(n)),this.controller_.addObserver(this),this.controller_.refresh())}};r.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(n instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)&&(t.delete(n),t.size||this.controller_.removeObserver(this))}};r.prototype.disconnect=function(){this.clearActive();this.observations_.clear();this.controller_.removeObserver(this)};r.prototype.gatherActive=function(){var n=this;this.clearActive();this.observations_.forEach(function(t){t.isActive()&&n.activeObservations_.push(t)})};r.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new y(n.target,n.broadcastRect())});this.callback_.call(n,t,n);this.clearActive()}};r.prototype.clearActive=function(){this.activeObservations_.splice(0)};r.prototype.hasActive=function(){return this.activeObservations_.length>0};h="undefined"!=typeof WeakMap?new WeakMap:new l;e=function(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=i.getInstance(),u=new r(n,t,this);h.set(this,u)};["observe","unobserve","disconnect"].forEach(function(n){e.prototype[n]=function(){return(t=h.get(this))[n].apply(t,arguments);var t}});p=function(){return"undefined"!=typeof ResizeObserver?ResizeObserver:e}();t.default=p},function(){},function(n){"use strict";function i(n){if(null===n||void 0===n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;n.exports=function(){var i,t,n,r;try{if(!Object.assign||(i=new String("abc"),i[5]="de","5"===Object.getOwnPropertyNames(i)[0]))return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return"0123456789"!==Object.getOwnPropertyNames(t).map(function(n){return t[n]}).join("")?!1:(r={},"abcdefghijklmnopqrst".split("").forEach(function(n){r[n]=n}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(i){return!1}}()?Object.assign:function(n){for(var f,o,c,e,s=i(n),h=1;h<arguments.length;h++){f=Object(arguments[h]);for(c in f)r.call(f,c)&&(s[c]=f[c]);if(t)for(o=t(f),e=0;e<o.length;e++)u.call(f,o[e])&&(s[o[e]]=f[o[e]])}return s}}]).default});!function(n,t,i){function r(n,i){var r=t(n);r.data(f,this);this._$element=r;this.shares=[];this._init(i);this._render()}var f="JSSocials",u=function(n,i){return t.isFunction(n)?n.apply(i,t.makeArray(arguments).slice(2)):n},h=/(\.(jpeg|png|gif|bmp|svg)$|^data:image\/(jpeg|png|gif|bmp|svg\+xml);base64)/i,c=/(&?[a-zA-Z0-9]+=)?\{([a-zA-Z0-9]+)\}/g,l={G:1e9,M:1e6,K:1e3},e={},s,o;r.prototype={url:"",text:"",shareIn:"blank",showLabel:function(n){return this.showCount===!1?n>this.smallScreenWidth:n>=this.largeScreenWidth},showCount:function(n){return n<=this.smallScreenWidth?"inside":!0},smallScreenWidth:640,largeScreenWidth:1024,resizeTimeout:200,elementClass:"jssocials",sharesClass:"jssocials-shares",shareClass:"jssocials-share",shareButtonClass:"jssocials-share-button",shareLinkClass:"jssocials-share-link",shareLogoClass:"jssocials-share-logo",shareLabelClass:"jssocials-share-label",shareLinkCountClass:"jssocials-share-link-count",shareCountBoxClass:"jssocials-share-count-box",shareCountClass:"jssocials-share-count",shareZeroCountClass:"jssocials-share-no-count",_init:function(n){this._initDefaults();t.extend(this,n);this._initShares();this._attachWindowResizeCallback()},_initDefaults:function(){this.url=n.location.href;this.text=t.trim(t("meta[name=description]").attr("content")||t("title").text())},_initShares:function(){this.shares=t.map(this.shares,t.proxy(function(n){"string"==typeof n&&(n={share:n});var i=n.share&&e[n.share];if(!i&&!n.renderer)throw Error("Share '"+n.share+"' is not found");return t.extend({url:this.url,text:this.text},i,n)},this))},_attachWindowResizeCallback:function(){t(n).on("resize",t.proxy(this._windowResizeHandler,this))},_detachWindowResizeCallback:function(){t(n).off("resize",this._windowResizeHandler)},_windowResizeHandler:function(){(t.isFunction(this.showLabel)||t.isFunction(this.showCount))&&(n.clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(t.proxy(this.refresh,this),this.resizeTimeout))},_render:function(){this._clear();this._defineOptionsByScreen();this._$element.addClass(this.elementClass);this._$shares=t("<div>").addClass(this.sharesClass).appendTo(this._$element);this._renderShares()},_defineOptionsByScreen:function(){this._screenWidth=t(n).width();this._showLabel=u(this.showLabel,this,this._screenWidth);this._showCount=u(this.showCount,this,this._screenWidth)},_renderShares:function(){t.each(this.shares,t.proxy(function(n,t){this._renderShare(t)},this))},_renderShare:function(n){var i;i=t.isFunction(n.renderer)?t(n.renderer()):this._createShare(n);i.addClass(this.shareClass).addClass(n.share?"jssocials-share-"+n.share:"").addClass(n.css).appendTo(this._$shares)},_createShare:function(n){var i=t("<div>"),f=this._createShareLink(n).appendTo(i),r,u;return this._showCount&&(r="inside"===this._showCount,u=r?f:t("<div>").addClass(this.shareCountBoxClass).appendTo(i),u.addClass(r?this.shareLinkCountClass:this.shareCountBoxClass),this._renderShareCount(n,u)),i},_createShareLink:function(n){var r=this._getShareStrategy(n),i=r.call(n,{shareUrl:this._getShareUrl(n)});return i.addClass(this.shareLinkClass).append(this._createShareLogo(n)),this._showLabel&&i.append(this._createShareLabel(n)),t.each(this.on||{},function(r,u){t.isFunction(u)&&i.on(r,t.proxy(u,n))}),i},_getShareStrategy:function(n){var t=o[n.shareIn||this.shareIn];if(!t)throw Error("Share strategy '"+this.shareIn+"' not found");return t},_getShareUrl:function(n){var t=u(n.shareUrl,n);return this._formatShareUrl(t,n)},_createShareLogo:function(n){var i=n.logo,r=h.test(i)?t("<img>").attr("src",n.logo):t("<i>").addClass(i);return r.addClass(this.shareLogoClass),r},_createShareLabel:function(n){return t("<span>").addClass(this.shareLabelClass).text(n.label)},_renderShareCount:function(n,i){var r=t("<span>").addClass(this.shareCountClass);i.addClass(this.shareZeroCountClass).append(r);this._loadCount(n).done(t.proxy(function(n){n&&(i.removeClass(this.shareZeroCountClass),r.text(n))},this))},_loadCount:function(n){var i=t.Deferred(),r=this._getCountUrl(n),u;return r?(u=t.proxy(function(t){i.resolve(this._getCountValue(t,n))},this),t.getJSON(r).done(u).fail(function(){t.get(r).done(u).fail(function(){i.resolve(0)})}),i.promise()):i.resolve(0).promise()},_getCountUrl:function(n){var t=u(n.countUrl,n);return this._formatShareUrl(t,n)},_getCountValue:function(n,i){var r=(t.isFunction(i.getCount)?i.getCount(n):n)||0;return"string"==typeof r?r:this._formatNumber(r)},_formatNumber:function(n){return t.each(l,function(t,i){if(n>=i)return(n=parseFloat((n/i).toFixed(2))+t,!1)}),n},_formatShareUrl:function(t,i){return t.replace(c,function(t,r,u){var f=i[u]||"";return f?(r||"")+n.encodeURIComponent(f):""})},_clear:function(){n.clearTimeout(this._resizeTimer);this._$element.empty()},_passOptionToShares:function(n,i){var r=this.shares;t.each(["url","text"],function(u,f){f===n&&t.each(r,function(t,r){r[n]=i})})},_normalizeShare:function(n){return t.isNumeric(n)?this.shares[n]:"string"==typeof n?t.grep(this.shares,function(t){return t.share===n})[0]:n},refresh:function(){this._render()},destroy:function(){this._clear();this._detachWindowResizeCallback();this._$element.removeClass(this.elementClass).removeData(f)},option:function(n,t){return 1===arguments.length?this[n]:(this[n]=t,this._passOptionToShares(n,t),void this.refresh())},shareOption:function(n,t,i){return n=this._normalizeShare(n),2===arguments.length?n[t]:(n[t]=i,void this.refresh())}};t.fn.jsSocials=function(n){var e=t.makeArray(arguments),o=e.slice(1),u=this;return this.each(function(){var s,h=t(this),e=h.data(f);if(e)if("string"==typeof n){if(s=e[n].apply(e,o),s!==i&&s!==e)return u=s,!1}else e._detachWindowResizeCallback(),e._init(n),e._render();else new r(h,n)}),u};s=function(n){var i;t.isPlainObject(n)?i=r.prototype:(i=e[n],n=arguments[1]||{});t.extend(i,n)};o={popup:function(i){return t("<a>").attr("href","#").on("click",function(){return n.open(i.shareUrl,null,"width=600, height=400, location=0, menubar=0, resizeable=0, scrollbars=0, status=0, titlebar=0, toolbar=0"),!1})},blank:function(n){return t("<a>").attr({target:"_blank",href:n.shareUrl})},self:function(n){return t("<a>").attr({target:"_self",href:n.shareUrl})}};n.jsSocials={Socials:r,shares:e,shareStrategies:o,setDefaults:s}}(window,jQuery),function(n,t,i){t.extend(i.shares,{email:{label:"E-mail",logo:"fa fa-at",shareUrl:"mailto:{to}?subject={text}&body={url}",countUrl:"",shareIn:"self"},twitter:{label:"Tweet",logo:"fa fa-twitter",shareUrl:"https://twitter.com/share?url={url}&text={text}&via={via}&hashtags={hashtags}",countUrl:""},facebook:{label:"Like",logo:"fa fa-facebook",shareUrl:"https://facebook.com/sharer/sharer.php?u={url}",countUrl:"https://graph.facebook.com/?id={url}",getCount:function(n){return n.share&&n.share.share_count||0}},vkontakte:{label:"Like",logo:"fa fa-vk",shareUrl:"https://vk.com/share.php?url={url}&title={title}&description={text}",countUrl:"https://vk.com/share.php?act=count&index=1&url={url}",getCount:function(n){return parseInt(n.slice(15,-2).split(", ")[1])}},googleplus:{label:"+1",logo:"fa fa-google",shareUrl:"https://plus.google.com/share?url={url}",countUrl:""},linkedin:{label:"Share",logo:"fa fa-linkedin",shareUrl:"https://www.linkedin.com/shareArticle?mini=true&url={url}",countUrl:"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?",getCount:function(n){return n.count}},pinterest:{label:"Pin it",logo:"fa fa-pinterest",shareUrl:"https://pinterest.com/pin/create/bookmarklet/?media={media}&url={url}&description={text}",countUrl:"https://api.pinterest.com/v1/urls/count.json?&url={url}&callback=?",getCount:function(n){return n.count}},stumbleupon:{label:"Share",logo:"fa fa-stumbleupon",shareUrl:"http://www.stumbleupon.com/submit?url={url}&title={title}",countUrl:"https://cors-anywhere.herokuapp.com/https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}",getCount:function(n){return n.result.views}},telegram:{label:"Telegram",logo:"fa fa-paper-plane",shareUrl:"tg://msg?text={url} {text}",countUrl:"",shareIn:"self"},whatsapp:{label:"WhatsApp",logo:"fa fa-whatsapp",shareUrl:"whatsapp://send?text={url} {text}",countUrl:"",shareIn:"self"},line:{label:"LINE",logo:"fa fa-comment",shareUrl:"http://line.me/R/msg/text/?{text} {url}",countUrl:""},viber:{label:"Viber",logo:"fa fa-volume-control-phone",shareUrl:"viber://forward?text={url} {text}",countUrl:"",shareIn:"self"},pocket:{label:"Pocket",logo:"fa fa-get-pocket",shareUrl:"https://getpocket.com/save?url={url}&title={title}",countUrl:""},messenger:{label:"Share",logo:"fa fa-commenting",shareUrl:"fb-messenger://share?link={url}",countUrl:"",shareIn:"self"}})}(window,jQuery,window.jsSocials);mejs=mejs||{};mejs.version="2.20.1";mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/dailymotion","video/x-dailymotion","application/x-mpegURL"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};mejs.Utility={encodeUrl:function(n){return encodeURIComponent(n)},escapeHTML:function(n){return n.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(n){var t=document.createElement("div");return t.innerHTML='<a href="'+this.escapeHTML(n)+'">x<\/a>',t.firstChild.href},getScriptPath:function(n){for(var i,r,s,t,u,f,e=0,o="",h="",c=document.getElementsByTagName("script"),l=c.length,a=n.length;l>e;e++){for(t=c[e].src,r=t.lastIndexOf("/"),r>-1?(f=t.substring(r+1),u=t.substring(0,r+1)):(f=t,u=""),i=0;a>i;i++)if(h=n[i],s=f.indexOf(h),s>-1){o=u;break}if(""!==o)break}return o},calculateTimeFormat:function(n,t,i){var s,e;0>n&&(n=0);"undefined"==typeof i&&(i=25);var r=t.timeFormat,h=r[0],o=r[1]==r[0],c=o?2:1,l=":",y=Math.floor(n/3600)%24,p=Math.floor(n/60)%60,w=Math.floor(n%60),b=Math.floor((n%1*i).toFixed(3)),f=[[b,"f"],[w,"s"],[p,"m"],[y,"h"]];r.length<c&&(l=r[c]);for(var a=!1,u=0,v=f.length;v>u;u++)if(-1!==r.indexOf(f[u][1]))a=!0;else if(a){for(s=!1,e=u;v>e;e++)if(f[e][0]>0){s=!0;break}if(!s)break;o||(r=h+r);r=f[u][1]+l+r;o&&(r=f[u][1]+r);h=f[u][1]}t.currentTimeFormat=r},twoDigitsString:function(n){return 10>n?"0"+n:String(n)},secondsToTimeCode:function(n,t){var r,f,u;(0>n&&(n=0),"object"!=typeof t)&&(r="m:ss",r=arguments[1]?"hh:mm:ss":r,r=arguments[2]?r+":ff":r,t={currentTimeFormat:r,framesPerSecond:arguments[3]||25});f=t.framesPerSecond;"undefined"==typeof f&&(f=25);var r=t.currentTimeFormat,e=Math.floor(n/3600)%24,o=Math.floor(n/60)%60,s=Math.floor(n%60),h=Math.floor((n%1*f).toFixed(3));for(lis=[[h,"f"],[s,"s"],[o,"m"],[e,"h"]],u=r,i=0,len=lis.length;i<len;i++)u=u.replace(lis[i][1]+lis[i][1],this.twoDigitsString(lis[i][0])),u=u.replace(lis[i][1],lis[i][0]);return u},timeCodeToSeconds:function(n,t,i,r){"undefined"==typeof i?i=!1:"undefined"==typeof r&&(r=25);var u=n.split(":"),e=parseInt(u[0],10),o=parseInt(u[1],10),s=parseInt(u[2],10),f=0,h=0;return i&&(f=parseInt(u[3])/r),h=3600*e+60*o+s+f},convertSMPTEtoSeconds:function(n){var t;if("string"!=typeof n)return!1;n=n.replace(",",".");var r=0,u=-1!=n.indexOf(".")?n.split(".")[1].length:0,i=1;for(n=n.split(":").reverse(),t=0;t<n.length;t++)i=1,t>0&&(i=Math.pow(60,t)),r+=Number(n[t])*i;return Number(r.toFixed(u))},removeSwf:function(n){var t=document.getElementById(n);t&&/object|embed/i.test(t.nodeName)&&(mejs.MediaFeatures.isIE?(t.style.display="none",function(){4==t.readyState?mejs.Utility.removeObjectInIE(n):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))},removeObjectInIE:function(n){var t=document.getElementById(n),i;if(t){for(i in t)"function"==typeof t[i]&&(t[i]=null);t.parentNode.removeChild(t)}}};mejs.PluginDetector={hasPluginVersion:function(n,t){var i=this.plugins[n];return t[1]=t[1]||0,t[2]=t[2]||0,i[0]>t[0]||i[0]==t[0]&&i[1]>t[1]||i[0]==t[0]&&i[1]==t[1]&&i[2]>=t[2]?!0:!1},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(n,t,i,r,u){this.plugins[n]=this.detectPlugin(t,i,r,u)},detectPlugin:function(n,t,i,r){var e,f,o,u=[0,0,0];if("undefined"!=typeof this.nav.plugins&&"object"==typeof this.nav.plugins[n]){if(e=this.nav.plugins[n].description,e&&("undefined"==typeof this.nav.mimeTypes||!this.nav.mimeTypes[t]||this.nav.mimeTypes[t].enabledPlugin))for(u=e.replace(n,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),f=0;f<u.length;f++)u[f]=parseInt(u[f].match(/\d+/),10)}else if("undefined"!=typeof ActiveXObject)try{o=new ActiveXObject(i);o&&(u=r(o))}catch(s){}return u}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(n){var i=[],t=n.GetVariable("$version");return t&&(t=t.split(" ")[1].split(","),i=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)]),i});mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(n){var t=[0,0,0,0],i=function(n,t,i,r){for(;n.isVersionSupported(t[0]+"."+t[1]+"."+t[2]+"."+t[3]);)t[i]+=r;t[i]-=r};return i(n,t,0,1),i(n,t,1,1),i(n,t,2,1e4),i(n,t,2,1e3),i(n,t,2,100),i(n,t,2,10),i(n,t,2,1),i(n,t,3,1),t});mejs.MediaFeatures={init:function(){var r,i,n=this,u=document,f=mejs.PluginDetector.nav,t=mejs.PluginDetector.ua.toLowerCase(),e=["source","track","audio","video"];for(n.isiPad=null!==t.match(/ipad/i),n.isiPhone=null!==t.match(/iphone/i),n.isiOS=n.isiPhone||n.isiPad,n.isAndroid=null!==t.match(/android/i),n.isBustedAndroid=null!==t.match(/android 2\.[12]/),n.isBustedNativeHTTPS="https:"===location.protocol&&(null!==t.match(/android [12]\./)||null!==t.match(/macintosh.* version.* safari/)),n.isIE=-1!=f.appName.toLowerCase().indexOf("microsoft")||null!==f.appName.toLowerCase().match(/trident/gi),n.isChrome=null!==t.match(/chrome/gi),n.isChromium=null!==t.match(/chromium/gi),n.isFirefox=null!==t.match(/firefox/gi),n.isWebkit=null!==t.match(/webkit/gi),n.isGecko=null!==t.match(/gecko/gi)&&!n.isWebkit&&!n.isIE,n.isOpera=null!==t.match(/opera/gi),n.hasTouch=("ontouchstart"in window),n.svgAsImg=!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),r=0;r<e.length;r++)i=document.createElement(e[r]);n.supportsMediaTag="undefined"!=typeof i.canPlayType||n.isBustedAndroid;try{i.canPlayType("video/mp4")}catch(o){n.supportsMediaTag=!1}n.supportsPointerEvents=function(){var t,n=document.createElement("x"),i=document.documentElement,r=window.getComputedStyle;return"pointerEvents"in n.style?(n.style.pointerEvents="auto",n.style.pointerEvents="x",i.appendChild(n),t=r&&"auto"===r(n,"").pointerEvents,i.removeChild(n),!!t):!1}();n.hasFirefoxPluginMovingProblem=!1;n.hasiOSFullScreen="undefined"!=typeof i.webkitEnterFullscreen;n.hasNativeFullscreen="undefined"!=typeof i.requestFullscreen;n.hasWebkitNativeFullScreen="undefined"!=typeof i.webkitRequestFullScreen;n.hasMozNativeFullScreen="undefined"!=typeof i.mozRequestFullScreen;n.hasMsNativeFullScreen="undefined"!=typeof i.msRequestFullscreen;n.hasTrueNativeFullScreen=n.hasWebkitNativeFullScreen||n.hasMozNativeFullScreen||n.hasMsNativeFullScreen;n.nativeFullScreenEnabled=n.hasTrueNativeFullScreen;n.hasMozNativeFullScreen?n.nativeFullScreenEnabled=document.mozFullScreenEnabled:n.hasMsNativeFullScreen&&(n.nativeFullScreenEnabled=document.msFullscreenEnabled);n.isChrome&&(n.hasiOSFullScreen=!1);n.hasTrueNativeFullScreen&&(n.fullScreenEventName="",n.hasWebkitNativeFullScreen?n.fullScreenEventName="webkitfullscreenchange":n.hasMozNativeFullScreen?n.fullScreenEventName="mozfullscreenchange":n.hasMsNativeFullScreen&&(n.fullScreenEventName="MSFullscreenChange"),n.isFullScreen=function(){return n.hasMozNativeFullScreen?u.mozFullScreen:n.hasWebkitNativeFullScreen?u.webkitIsFullScreen:n.hasMsNativeFullScreen?null!==u.msFullscreenElement:void 0},n.requestFullScreen=function(t){n.hasWebkitNativeFullScreen?t.webkitRequestFullScreen():n.hasMozNativeFullScreen?t.mozRequestFullScreen():n.hasMsNativeFullScreen&&t.msRequestFullscreen()},n.cancelFullScreen=function(){n.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():n.hasMozNativeFullScreen?document.mozCancelFullScreen():n.hasMsNativeFullScreen&&document.msExitFullscreen()});n.hasiOSFullScreen&&t.match(/mac os x 10_5/i)&&(n.hasNativeFullScreen=!1,n.hasiOSFullScreen=!1)}};mejs.MediaFeatures.init();mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(n){this.currentTime=n},setMuted:function(n){this.muted=n},setVolume:function(n){this.volume=n},stop:function(){this.pause()},setSrc:function(n){for(var t,r,i=this.getElementsByTagName("source");i.length>0;)this.removeChild(i[0]);if("string"==typeof n)this.src=n;else for(t=0;t<n.length;t++)if(r=n[t],this.canPlayType(r.type)){this.src=r.src;break}},setVideoSize:function(n,t){this.width=n;this.height=t}};mejs.PluginMediaElement=function(n,t,i){this.id=n;this.pluginType=t;this.src=i;this.events={};this.attributes={}};mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(n){for(var i,r,u=mejs.plugins[this.pluginType],t=0;t<u.length;t++)if(r=u[t],mejs.PluginDetector.hasPluginVersion(this.pluginType,r.version))for(i=0;i<r.types.length;i++)if(n==r.types[i])return"probably";return""},positionFullscreenButton:function(n,t,i){null!=this.pluginApi&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(n),Math.floor(t),i)},hideFullscreenButton:function(){null!=this.pluginApi&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(n){if("string"==typeof n)this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(n)),this.src=mejs.Utility.absolutizeUrl(n);else for(var i,t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(i.src));this.src=mejs.Utility.absolutizeUrl(i.src);break}},setCurrentTime:function(n){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.seekTo(n):this.pluginApi.setCurrentTime(n),this.currentTime=n)},setVolume:function(n){null!=this.pluginApi&&("youtube"==this.pluginType?this.pluginApi.setVolume(100*n):this.pluginApi.setVolume(n),this.volume=n)},setMuted:function(n){null!=this.pluginApi&&("youtube"==this.pluginType?(n?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=n,this.dispatchEvent({type:"volumechange"})):this.pluginApi.setMuted(n),this.muted=n)},setVideoSize:function(n,t){this.pluginElement&&this.pluginElement.style&&(this.pluginElement.style.width=n+"px",this.pluginElement.style.height=t+"px");null!=this.pluginApi&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(n,t)},setFullscreen:function(n){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(n)},enterFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(n,t){this.events[n]=this.events[n]||[];this.events[n].push(t)},removeEventListener:function(n,t){var r,i;if(!n)return this.events={},!0;if(r=this.events[n],!r)return!0;if(!t)return this.events[n]=[],!0;for(i=0;i<r.length;i++)if(r[i]===t)return this.events[n].splice(i,1),!0;return!1},dispatchEvent:function(n){var t,i=this.events[n.type];if(i)for(t=0;t<i.length;t++)i[t].apply(this,[n])},hasAttribute:function(n){return n in this.attributes},removeAttribute:function(n){delete this.attributes[n]},getAttribute:function(n){return this.hasAttribute(n)?this.attributes[n]:""},setAttribute:function(n,t){this.attributes[n]=t},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(n,t,i){this.pluginMediaElements[n]=t;this.htmlMediaElements[n]=i},unregisterPluginElement:function(n){delete this.pluginMediaElements[n];delete this.htmlMediaElements[n]},initPlugin:function(n){var t=this.pluginMediaElements[n],i=this.htmlMediaElements[n];if(t){switch(t.pluginType){case"flash":t.pluginElement=t.pluginApi=document.getElementById(n);break;case"silverlight":t.pluginElement=document.getElementById(t.id);t.pluginApi=t.pluginElement.Content.MediaElementJS}null!=t.pluginApi&&t.success&&t.success(t,i)}},fireEvent:function(n,t,i){var r,u,e,f=this.pluginMediaElements[n];if(f){r={type:t,target:f};for(u in i)f[u]=i[u],r[u]=i[u];e=i.bufferedTime||0;r.target.buffered=r.buffered={start:function(){return 0},end:function(){return e},length:1};f.dispatchEvent(r)}}};mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:!1,httpsBasicAuthSite:!1,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",flashScriptAccess:"sameDomain",enablePluginSmoothing:!1,enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,success:function(){},error:function(){}};mejs.MediaElement=function(n,t){return mejs.HtmlMediaElementShim.create(n,t)};mejs.HtmlMediaElementShim={create:function(n,t){var r,f,e={},i="string"==typeof n?document.getElementById(n):n,l=i.tagName.toLowerCase(),a="audio"===l||"video"===l,o=a?i.getAttribute("src"):i.getAttribute("href"),s=i.getAttribute("poster"),h=i.getAttribute("autoplay"),u=i.getAttribute("preload"),c=i.getAttribute("controls");for(f in mejs.MediaElementDefaults)e[f]=mejs.MediaElementDefaults[f];for(f in t)e[f]=t[f];return o="undefined"==typeof o||null===o||""==o?null:o,s="undefined"==typeof s||null===s?"":s,u="undefined"==typeof u||null===u||"false"===u?"none":u,h=!("undefined"==typeof h||null===h||"false"===h),c=!("undefined"==typeof c||null===c||"false"===c),r=this.determinePlayback(i,e,mejs.MediaFeatures.supportsMediaTag,a,o),r.url=null!==r.url?mejs.Utility.absolutizeUrl(r.url):"","native"==r.method?(mejs.MediaFeatures.isBustedAndroid&&(i.src=r.url,i.addEventListener("click",function(){i.play()},!1)),this.updateNative(r,e,h,u)):""!==r.method?this.createPlugin(r,e,s,h,u,c):(this.createErrorMessage(r,e,s),this)},determinePlayback:function(n,t,i,r,u){var f,l,a,v,s,h,y,p,c,w,b,e=[],o={method:"",url:"",htmlMediaElement:n,isVideo:"audio"!=n.tagName.toLowerCase()};if("undefined"!=typeof t.type&&""!==t.type)if("string"==typeof t.type)e.push({type:t.type,url:u});else for(f=0;f<t.type.length;f++)e.push({type:t.type[f],url:u});else if(null!==u)h=this.formatType(u,n.getAttribute("type")),e.push({type:h,url:u});else for(f=0;f<n.childNodes.length;f++)s=n.childNodes[f],1==s.nodeType&&"source"==s.tagName.toLowerCase()&&(u=s.getAttribute("src"),h=this.formatType(u,s.getAttribute("type")),b=s.getAttribute("media"),(!b||!window.matchMedia||window.matchMedia&&window.matchMedia(b).matches)&&e.push({type:h,url:u}));if(!r&&e.length>0&&null!==e[0].url&&this.getTypeFromFile(e[0].url).indexOf("audio")>-1&&(o.isVideo=!1),mejs.MediaFeatures.isBustedAndroid&&(n.canPlayType=function(n){return null!==n.match(/video\/(mp4|m4v)/gi)?"maybe":""}),mejs.MediaFeatures.isChromium&&(n.canPlayType=function(n){return null!==n.match(/video\/(webm|ogv|ogg)/gi)?"maybe":""}),i&&("auto"===t.mode||"auto_plugin"===t.mode||"native"===t.mode)&&(!mejs.MediaFeatures.isBustedNativeHTTPS||t.httpsBasicAuthSite!==!0)){for(r||(w=document.createElement(o.isVideo?"video":"audio"),n.parentNode.insertBefore(w,n),n.style.display="none",o.htmlMediaElement=n=w),f=0;f<e.length;f++)if("video/m3u8"==e[f].type||""!==n.canPlayType(e[f].type).replace(/no/,"")||""!==n.canPlayType(e[f].type.replace(/mp3/,"mpeg")).replace(/no/,"")||""!==n.canPlayType(e[f].type.replace(/m4a/,"mp4")).replace(/no/,"")){o.method="native";o.url=e[f].url;break}if("native"===o.method&&(null!==o.url&&(n.src=o.url),"auto_plugin"!==t.mode))return o}if("auto"===t.mode||"auto_plugin"===t.mode||"shim"===t.mode)for(f=0;f<e.length;f++)for(h=e[f].type,l=0;l<t.plugins.length;l++)for(y=t.plugins[l],p=mejs.plugins[y],a=0;a<p.length;a++)if(c=p[a],null==c.version||mejs.PluginDetector.hasPluginVersion(y,c.version))for(v=0;v<c.types.length;v++)if(h.toLowerCase()==c.types[v].toLowerCase())return o.method=y,o.url=e[f].url,o;return"auto_plugin"===t.mode&&"native"===o.method?o:(""===o.method&&e.length>0&&(o.url=e[0].url),o)},formatType:function(n,t){return n&&!t?this.getTypeFromFile(n):t&&~t.indexOf(";")?t.substr(0,t.indexOf(";")):t},getTypeFromFile:function(n){n=n.split("?")[0];var t=n.substring(n.lastIndexOf(".")+1).toLowerCase(),i=/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(t)?"video/":"audio/";return this.getTypeFromExtension(t,i)},getTypeFromExtension:function(n,t){switch(t=t||"",n){case"mp4":case"m4v":case"m4a":case"f4v":case"f4a":return t+"mp4";case"flv":return t+"x-flv";case"webm":case"webma":case"webmv":return t+"webm";case"ogg":case"oga":case"ogv":return t+"ogg";case"m3u8":return"application/x-mpegurl";case"ts":return t+"mp2t";default:return t+n}},createErrorMessage:function(n,t,i){var r=n.htmlMediaElement,u=document.createElement("div"),f=t.customError;u.className="me-cannotplay";try{u.style.width=r.width+"px";u.style.height=r.height+"px"}catch(e){}f||(f='<a href="'+n.url+'">',""!==i&&(f+='<img src="'+i+'" width="100%" height="100%" alt="" />'),f+="<span>"+mejs.i18n.t("Download File")+"<\/span><\/a>");u.innerHTML=f;r.parentNode.insertBefore(u,r);r.style.display="none";t.error(r)},createPlugin:function(n,t,i,r,u,f){var k,s,c,h=n.htmlMediaElement,v=1,y=1,l="me_"+n.method+"_"+mejs.meIndex++,o=new mejs.PluginMediaElement(l,n.method,n.url),a=document.createElement("div"),w,b,p,d,e;for(o.tagName=h.tagName,w=0;w<h.attributes.length;w++)b=h.attributes[w],b.specified&&o.setAttribute(b.name,b.value);for(s=h.parentNode;null!==s&&null!=s.tagName&&"body"!==s.tagName.toLowerCase()&&null!=s.parentNode&&null!=s.parentNode.tagName&&null!=s.parentNode.constructor&&"ShadowRoot"===s.parentNode.constructor.name;){if("p"===s.parentNode.tagName.toLowerCase()){s.parentNode.parentNode.insertBefore(s,s.parentNode);break}s=s.parentNode}switch(n.isVideo?(v=t.pluginWidth>0?t.pluginWidth:t.videoWidth>0?t.videoWidth:null!==h.getAttribute("width")?h.getAttribute("width"):t.defaultVideoWidth,y=t.pluginHeight>0?t.pluginHeight:t.videoHeight>0?t.videoHeight:null!==h.getAttribute("height")?h.getAttribute("height"):t.defaultVideoHeight,v=mejs.Utility.encodeUrl(v),y=mejs.Utility.encodeUrl(y)):t.enablePluginDebug&&(v=320,y=240),o.success=t.success,mejs.MediaPluginBridge.registerPluginElement(l,o,h),a.className="me-plugin",a.id=l+"_container",n.isVideo?h.parentNode.insertBefore(a,h):document.body.insertBefore(a,document.body.childNodes[0]),c=["id="+l,"jsinitfunction=mejs.MediaPluginBridge.initPlugin","jscallbackfunction=mejs.MediaPluginBridge.fireEvent","isvideo="+(n.isVideo?"true":"false"),"autoplay="+(r?"true":"false"),"preload="+u,"width="+v,"startvolume="+t.startVolume,"timerrate="+t.timerRate,"flashstreamer="+t.flashStreamer,"height="+y,"pseudostreamstart="+t.pseudoStreamingStartQueryParam],null!==n.url&&("flash"==n.method?c.push("file="+mejs.Utility.encodeUrl(n.url)):c.push("file="+n.url)),t.enablePluginDebug&&c.push("debug=true"),t.enablePluginSmoothing&&c.push("smoothing=true"),t.enablePseudoStreaming&&c.push("pseudostreaming=true"),f&&c.push("controls=true"),t.pluginVars&&(c=c.concat(t.pluginVars)),n.method){case"silverlight":a.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+l+'" name="'+l+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="initParams" value="'+c.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+t.pluginPath+t.silverlightName+'" /><\/object>';break;case"flash":mejs.MediaFeatures.isIE?(k=document.createElement("div"),a.appendChild(k),k.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+l+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="movie" value="'+t.pluginPath+t.flashName+"?x="+new Date+'" /><param name="flashvars" value="'+c.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+t.flashScriptAccess+'" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /><\/object>'):a.innerHTML='<embed id="'+l+'" name="'+l+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="'+t.flashScriptAccess+'" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+t.pluginPath+t.flashName+'" flashvars="'+c.join("&")+'" width="'+v+'" height="'+y+'" scale="default"class="mejs-shim"><\/embed>';break;case"youtube":-1!=n.url.lastIndexOf("youtu.be")?(p=n.url.substr(n.url.lastIndexOf("/")+1),-1!=p.indexOf("?")&&(p=p.substr(0,p.indexOf("?")))):p=n.url.substr(n.url.lastIndexOf("=")+1);youtubeSettings={container:a,containerId:a.id,pluginMediaElement:o,pluginId:l,videoId:p,height:y,width:v};window.postMessage?mejs.YouTubeApi.enqueueIframe(youtubeSettings):mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])&&mejs.YouTubeApi.createFlash(youtubeSettings,t);break;case"vimeo":d=l+"_player";(o.vimeoid=n.url.substr(n.url.lastIndexOf("/")+1),a.innerHTML='<iframe src="//player.vimeo.com/video/'+o.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+d+'" width="'+v+'" height="'+y+'" frameborder="0" class="mejs-shim" id="'+d+'" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>',"function"==typeof $f)?(e=$f(a.childNodes[0]),e.addEvent("ready",function(){function n(n,t,i,r){var u={type:i,target:t};"timeupdate"==i&&(t.currentTime=u.currentTime=r.seconds,t.duration=u.duration=r.duration);t.dispatchEvent(u)}e.playVideo=function(){e.api("play")};e.stopVideo=function(){e.api("unload")};e.pauseVideo=function(){e.api("pause")};e.seekTo=function(n){e.api("seekTo",n)};e.setVolume=function(n){e.api("setVolume",n)};e.setMuted=function(n){n?(e.lastVolume=e.api("getVolume"),e.api("setVolume",0)):(e.api("setVolume",e.lastVolume),delete e.lastVolume)};e.addEvent("play",function(){n(e,o,"play");n(e,o,"playing")});e.addEvent("pause",function(){n(e,o,"pause")});e.addEvent("finish",function(){n(e,o,"ended")});e.addEvent("playProgress",function(t){n(e,o,"timeupdate",t)});o.pluginElement=a;o.pluginApi=e;mejs.MediaPluginBridge.initPlugin(l)})):console.warn("You need to include froogaloop for vimeo to work")}return h.style.display="none",h.removeAttribute("autoplay"),o},updateNative:function(n,t){var r,i=n.htmlMediaElement;for(r in mejs.HtmlMediaElement)i[r]=mejs.HtmlMediaElement[r];return t.success(i,i),i}};mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(){var n,t;this.isIframeStarted||(n=document.createElement("script"),n.src="//www.youtube.com/player_api",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(n,t),this.isIframeStarted=!0)},iframeQueue:[],enqueueIframe:function(n){this.isLoaded?this.createIframe(n):(this.loadIframeApi(),this.iframeQueue.push(n))},createIframe:function(n){var i=n.pluginMediaElement,t=new YT.Player(n.containerId,{height:n.height,width:n.width,videoId:n.videoId,playerVars:{controls:0,wmode:"transparent"},events:{onReady:function(){t.setVideoSize=function(n,i){t.setSize(n,i)};n.pluginMediaElement.pluginApi=t;n.pluginMediaElement.pluginElement=document.getElementById(n.containerId);mejs.MediaPluginBridge.initPlugin(n.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250)},onStateChange:function(n){mejs.YouTubeApi.handleStateChange(n.data,t,i)}}})},createEvent:function(n,t,i){var r={type:i,target:t},u;n&&n.getDuration&&(t.currentTime=r.currentTime=n.getCurrentTime(),t.duration=r.duration=n.getDuration(),r.paused=t.paused,r.ended=t.ended,r.muted=n.isMuted(),r.volume=n.getVolume()/100,r.bytesTotal=n.getVideoBytesTotal(),r.bufferedBytes=n.getVideoBytesLoaded(),u=r.bufferedBytes/r.bytesTotal*r.duration,r.target.buffered=r.buffered={start:function(){return 0},end:function(){return u},length:1});t.dispatchEvent(r)},iFrameReady:function(){for(this.isLoaded=!0,this.isIframeLoaded=!0;this.iframeQueue.length>0;){var n=this.iframeQueue.pop();this.createIframe(n)}},flashPlayers:{},createFlash:function(n){this.flashPlayers[n.pluginId]=n;var t,i="//www.youtube.com/apiplayer?enablejsapi=1&amp;playerapiid="+n.pluginId+"&amp;version=3&amp;autoplay=0&amp;controls=0&amp;modestbranding=1&loop=0";mejs.MediaFeatures.isIE?(t=document.createElement("div"),n.container.appendChild(t),t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+n.pluginId+'" width="'+n.width+'" height="'+n.height+'" class="mejs-shim"><param name="movie" value="'+i+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+options.flashScriptAccess+'" /><param name="allowFullScreen" value="true" /><\/object>'):n.container.innerHTML='<object type="application/x-shockwave-flash" id="'+n.pluginId+'" data="'+i+'" width="'+n.width+'" height="'+n.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="'+options.flashScriptAccess+'"><param name="wmode" value="transparent"><\/object>'},flashReady:function(n){var r=this.flashPlayers[n],t=document.getElementById(n),i=r.pluginMediaElement,u;i.pluginApi=i.pluginElement=t;mejs.MediaPluginBridge.initPlugin(n);t.cueVideoById(r.videoId);u=r.containerId+"_callback";window[u]=function(n){mejs.YouTubeApi.handleStateChange(n,t,i)};t.addEventListener("onStateChange",u);setInterval(function(){mejs.YouTubeApi.createEvent(t,i,"timeupdate")},250);mejs.YouTubeApi.createEvent(t,i,"canplay")},handleStateChange:function(n,t,i){switch(n){case-1:i.paused=!0;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"loadedmetadata");break;case 0:i.paused=!1;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"ended");break;case 1:i.paused=!1;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"play");mejs.YouTubeApi.createEvent(t,i,"playing");break;case 2:i.paused=!0;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"pause");break;case 3:mejs.YouTubeApi.createEvent(t,i,"progress")}}};window.onYouTubePlayerAPIReady=function(){mejs.YouTubeApi.iFrameReady()};window.onYouTubePlayerReady=function(n){mejs.YouTubeApi.flashReady(n)};window.mejs=mejs;window.MediaElement=mejs.MediaElement,function(n,t){"use strict";var i={locale:{language:t.i18n&&t.i18n.locale.language||"",strings:t.i18n&&t.i18n.locale.strings||{}},ietf_lang_regex:/^(x\-)?[a-z]{2,}(\-\w{2,})?(\-\w{2,})?$/,methods:{}};i.getLanguage=function(){var n=i.locale.language||window.navigator.userLanguage||window.navigator.language;return i.ietf_lang_regex.exec(n)?n:null};"undefined"!=typeof mejsL10n&&(i.locale.language=mejsL10n.language);i.methods.checkPlain=function(n){var t,r,i={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"};n=String(n);for(t in i)i.hasOwnProperty(t)&&(r=new RegExp(t,"g"),n=n.replace(r,i[t]));return n};i.methods.t=function(n,t){return i.locale.strings&&i.locale.strings[t.context]&&i.locale.strings[t.context][n]&&(n=i.locale.strings[t.context][n]),i.methods.checkPlain(n)};i.t=function(n,t){if("string"==typeof n&&n.length>0){var r=i.getLanguage();return t=t||{context:r},i.methods.t(n,t)}throw{name:"InvalidArgumentException",message:"First argument is either not a string or empty."};};t.i18n=i}(document,mejs),function(n){"use strict";"undefined"!=typeof mejsL10n&&(n[mejsL10n.language]=mejsL10n.strings)}(mejs.i18n.locale.strings);"undefined"!=typeof jQuery?mejs.$=jQuery:"undefined"!=typeof Zepto?(mejs.$=Zepto,Zepto.fn.outerWidth=function(n){var t=$(this).width();return n&&(t+=parseInt($(this).css("margin-right"),10),t+=parseInt($(this).css("margin-left"),10)),t}):"undefined"!=typeof ender&&(mejs.$=ender),function(n){mejs.MepDefaults={poster:"",showPosterWhenEnded:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(n){return.05*n.duration},defaultSeekForwardInterval:function(n){return.05*n.duration},setDimensions:!0,audioWidth:-1,audioHeight:-1,startVolume:.8,loop:!1,autoRewind:!0,enableAutosize:!0,timeFormat:"",alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,autosizeProgress:!0,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,clickToPlayPause:!0,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:!0,enableKeyboard:!0,pauseOtherPlayers:!0,keyActions:[{keys:[32,179],action:function(n,t){t.paused||t.ended?t.play():t.pause()}},{keys:[38],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.volume+.1,1);t.setVolume(i)}},{keys:[40],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.volume-.1,0);t.setVolume(i)}},{keys:[37,227],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.currentTime-n.options.defaultSeekBackwardInterval(t),0);t.setCurrentTime(i)}}},{keys:[39,228],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.currentTime+n.options.defaultSeekForwardInterval(t),t.duration);t.setCurrentTime(i)}}},{keys:[70],action:function(n){"undefined"!=typeof n.enterFullScreen&&(n.isFullScreen?n.exitFullScreen():n.enterFullScreen())}},{keys:[77],action:function(n){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());n.media.muted?n.setMuted(!1):n.setMuted(!0)}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(t,i){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(t,i);var r=this;return r.$media=r.$node=n(t),r.node=r.media=r.$media[0],r.node?"undefined"!=typeof r.node.player?r.node.player:("undefined"==typeof i&&(i=r.$node.data("mejsoptions")),r.options=n.extend({},mejs.MepDefaults,i),r.options.timeFormat||(r.options.timeFormat="mm:ss",r.options.alwaysShowHours&&(r.options.timeFormat="hh:mm:ss"),r.options.showTimecodeFrameCount&&(r.options.timeFormat+=":ff")),mejs.Utility.calculateTimeFormat(0,r.options,r.options.framesPerSecond||25),r.id="mep_"+mejs.mepIndex++,mejs.players[r.id]=r,r.init(),r):void 0};mejs.MediaElementPlayer.prototype={hasFocus:!1,controlsAreVisible:!0,init:function(){var t=this,r=mejs.MediaFeatures,u=n.extend(!0,{},t.options,{success:function(n,i){t.meReady(n,i)},error:function(n){t.handleError(n)}}),f=t.media.tagName.toLowerCase(),e,i,o;(t.isDynamic="audio"!==f&&"video"!==f,t.isVideo=t.isDynamic?t.options.isVideo:"audio"!==f&&t.options.isVideo,r.isiPad&&t.options.iPadUseNativeControls||r.isiPhone&&t.options.iPhoneUseNativeControls)?(t.$media.attr("controls","controls"),r.isiPad&&null!==t.media.getAttribute("autoplay")&&t.play()):r.isAndroid&&t.options.AndroidUseNativeControls||(t.$media.removeAttr("controls"),e=t.isVideo?mejs.i18n.t("Video Player"):mejs.i18n.t("Audio Player"),n('<span class="mejs-offscreen">'+e+"<\/span>").insertBefore(t.$media),t.container=n('<div id="'+t.id+'" class="mejs-container '+(mejs.MediaFeatures.svgAsImg?"svg":"no-svg")+'" tabindex="0" role="application" aria-label="'+e+'"><div class="mejs-inner"><div class="mejs-mediaelement"><\/div><div class="mejs-layers"><\/div><div class="mejs-controls"><\/div><div class="mejs-clear"><\/div><\/div><\/div>').addClass(t.$media[0].className).insertBefore(t.$media).focus(function(){if(!t.controlsAreVisible){t.showControls(!0);var n=t.container.find(".mejs-playpause-button > button");n.focus()}}),t.container.addClass((r.isAndroid?"mejs-android ":"")+(r.isiOS?"mejs-ios ":"")+(r.isiPad?"mejs-ipad ":"")+(r.isiPhone?"mejs-iphone ":"")+(t.isVideo?"mejs-video ":"mejs-audio ")),t.container.find(".mejs-mediaelement").append(t.$media),t.node.player=t,t.controls=t.container.find(".mejs-controls"),t.layers=t.container.find(".mejs-layers"),i=t.isVideo?"video":"audio",o=i.substring(0,1).toUpperCase()+i.substring(1),t.width=t.options[i+"Width"]>0||t.options[i+"Width"].toString().indexOf("%")>-1?t.options[i+"Width"]:""!==t.media.style.width&&null!==t.media.style.width?t.media.style.width:null!==t.media.getAttribute("width")?t.$media.attr("width"):t.options["default"+o+"Width"],t.height=t.options[i+"Height"]>0||t.options[i+"Height"].toString().indexOf("%")>-1?t.options[i+"Height"]:""!==t.media.style.height&&null!==t.media.style.height?t.media.style.height:null!==t.$media[0].getAttribute("height")?t.$media.attr("height"):t.options["default"+o+"Height"],t.setPlayerSize(t.width,t.height),u.pluginWidth=t.width,u.pluginHeight=t.height);mejs.MediaElement(t.$media[0],u);"undefined"!=typeof t.container&&t.controlsAreVisible&&t.container.trigger("controlsshown")},showControls:function(n){var t=this;n="undefined"==typeof n||n;t.controlsAreVisible||(n?(t.controls.removeClass("mejs-offscreen").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0;t.container.trigger("controlsshown")}),t.container.find(".mejs-control").removeClass("mejs-offscreen").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0})):(t.controls.removeClass("mejs-offscreen").css("display","block"),t.container.find(".mejs-control").removeClass("mejs-offscreen").css("display","block"),t.controlsAreVisible=!0,t.container.trigger("controlsshown")),t.setControlsSize())},hideControls:function(t){var i=this;t="undefined"==typeof t||t;!i.controlsAreVisible||i.options.alwaysShowControls||i.keyboardAction||(t?(i.controls.stop(!0,!0).fadeOut(200,function(){n(this).addClass("mejs-offscreen").css("display","block");i.controlsAreVisible=!1;i.container.trigger("controlshidden")}),i.container.find(".mejs-control").stop(!0,!0).fadeOut(200,function(){n(this).addClass("mejs-offscreen").css("display","block")})):(i.controls.addClass("mejs-offscreen").css("display","block"),i.container.find(".mejs-control").addClass("mejs-offscreen").css("display","block"),i.controlsAreVisible=!1,i.container.trigger("controlshidden")))},controlsTimer:null,startControlsTimer:function(n){var t=this;n="undefined"!=typeof n?n:1500;t.killControlsTimer("start");t.controlsTimer=setTimeout(function(){t.hideControls();t.killControlsTimer("hide")},n)},killControlsTimer:function(){var n=this;null!==n.controlsTimer&&(clearTimeout(n.controlsTimer),delete n.controlsTimer,n.controlsTimer=null)},controlsEnabled:!0,disableControls:function(){var n=this;n.killControlsTimer();n.hideControls(!1);this.controlsEnabled=!1},enableControls:function(){var n=this;n.showControls(!1);n.controlsEnabled=!0},meReady:function(t,i){var s,e,r=this,u=mejs.MediaFeatures,o=i.getAttribute("autoplay"),h=!("undefined"==typeof o||null===o||"false"===o),f;if(!r.created){if(r.created=!0,r.media=t,r.domNode=i,!(u.isAndroid&&r.options.AndroidUseNativeControls||u.isiPad&&r.options.iPadUseNativeControls||u.isiPhone&&r.options.iPhoneUseNativeControls)){r.buildposter(r,r.controls,r.layers,r.media);r.buildkeyboard(r,r.controls,r.layers,r.media);r.buildoverlays(r,r.controls,r.layers,r.media);r.findTracks();for(s in r.options.features)if(e=r.options.features[s],r["build"+e])try{r["build"+e](r,r.controls,r.layers,r.media)}catch(c){}r.container.trigger("controlsready");r.setPlayerSize(r.width,r.height);r.setControlsSize();r.isVideo&&(mejs.MediaFeatures.hasTouch?r.$media.bind("touchstart",function(){r.controlsAreVisible?r.hideControls(!1):r.controlsEnabled&&r.showControls(!1)}):(r.clickToPlayPauseCallback=function(){r.options.clickToPlayPause&&(r.media.paused?r.play():r.pause())},r.media.addEventListener("click",r.clickToPlayPauseCallback,!1),r.container.bind("mouseenter",function(){r.controlsEnabled&&(r.options.alwaysShowControls||(r.killControlsTimer("enter"),r.showControls(),r.startControlsTimer(2500)))}).bind("mousemove",function(){r.controlsEnabled&&(r.controlsAreVisible||r.showControls(),r.options.alwaysShowControls||r.startControlsTimer(2500))}).bind("mouseleave",function(){r.controlsEnabled&&(r.media.paused||r.options.alwaysShowControls||r.startControlsTimer(1e3))})),r.options.hideVideoControlsOnLoad&&r.hideControls(!1),h&&!r.options.alwaysShowControls&&r.hideControls(),r.options.enableAutosize&&r.media.addEventListener("loadedmetadata",function(n){r.options.videoHeight<=0&&null===r.domNode.getAttribute("height")&&!isNaN(n.target.videoHeight)&&(r.setPlayerSize(n.target.videoWidth,n.target.videoHeight),r.setControlsSize(),r.media.setVideoSize(n.target.videoWidth,n.target.videoHeight))},!1));t.addEventListener("play",function(){var t,n;for(t in mejs.players)n=mejs.players[t],n.id==r.id||!r.options.pauseOtherPlayers||n.paused||n.ended||n.pause(),n.hasFocus=!1;r.hasFocus=!0},!1);r.media.addEventListener("ended",function(){if(r.options.autoRewind)try{r.media.setCurrentTime(0);window.setTimeout(function(){n(r.container).find(".mejs-overlay-loading").parent().hide()},20)}catch(t){}r.media.pause();r.setProgressRail&&r.setProgressRail();r.setCurrentRail&&r.setCurrentRail();r.options.loop?r.play():!r.options.alwaysShowControls&&r.controlsEnabled&&r.showControls()},!1);r.media.addEventListener("loadedmetadata",function(){r.updateDuration&&r.updateDuration();r.updateCurrent&&r.updateCurrent();r.isFullScreen||(r.setPlayerSize(r.width,r.height),r.setControlsSize())},!1);f=null;r.media.addEventListener("timeupdate",function(){f!==this.duration&&(f=this.duration,mejs.Utility.calculateTimeFormat(f,r.options,r.options.framesPerSecond||25))},!1);r.container.focusout(function(t){if(t.relatedTarget){var i=n(t.relatedTarget);r.keyboardAction&&0===i.parents(".mejs-container").length&&(r.keyboardAction=!1,r.hideControls(!0))}});setTimeout(function(){r.setPlayerSize(r.width,r.height);r.setControlsSize()},50);r.globalBind("resize",function(){r.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||r.setPlayerSize(r.width,r.height);r.setControlsSize()});"youtube"==r.media.pluginType&&(u.isiOS||u.isAndroid)&&r.container.find(".mejs-overlay-play").hide()}h&&"native"==t.pluginType&&r.play();r.options.success&&("string"==typeof r.options.success?window[r.options.success](r.media,r.domNode,r):r.options.success(r.media,r.domNode,r))}},handleError:function(n){var t=this;t.controls&&t.controls.hide();t.options.error&&t.options.error(n)},setPlayerSize:function(t,i){var r=this;if(!r.options.setDimensions)return!1;if("undefined"!=typeof t&&(r.width=t),"undefined"!=typeof i&&(r.height=i),r.height.toString().indexOf("%")>0||"none"!==r.$node.css("max-width")&&"t.width"!==r.$node.css("max-width")||r.$node[0].currentStyle&&"100%"===r.$node[0].currentStyle.maxWidth){var o=function(){return r.isVideo?r.media.videoWidth&&r.media.videoWidth>0?r.media.videoWidth:null!==r.media.getAttribute("width")?r.media.getAttribute("width"):r.options.defaultVideoWidth:r.options.defaultAudioWidth}(),e=function(){return r.isVideo?r.media.videoHeight&&r.media.videoHeight>0?r.media.videoHeight:null!==r.media.getAttribute("height")?r.media.getAttribute("height"):r.options.defaultVideoHeight:r.options.defaultAudioHeight}(),f=r.container.parent().closest(":visible").width(),s=r.container.parent().closest(":visible").height(),u=r.isVideo||!r.options.autosizeProgress?parseInt(f*e/o,10):e;isNaN(u)&&(u=s);r.container.parent().length>0&&"body"===r.container.parent()[0].tagName.toLowerCase()&&(f=n(window).width(),u=n(window).height());u&&f&&(r.container.width(f).height(u),r.$media.add(r.container.find(".mejs-shim")).width("100%").height("100%"),r.isVideo&&r.media.setVideoSize&&r.media.setVideoSize(f,u),r.layers.children(".mejs-layer").width("100%").height("100%"))}else r.container.width(r.width).height(r.height),r.layers.children(".mejs-layer").width(r.width).height(r.height)},setControlsSize:function(){var i=this,o=0,t=0,r=i.controls.find(".mejs-time-rail"),u=i.controls.find(".mejs-time-total"),s=r.siblings(),f=s.last(),e=null;if(i.container.is(":visible")&&r.length&&r.is(":visible")){i.options&&!i.options.autosizeProgress&&(t=parseInt(r.css("width"),10));0!==t&&t||(s.each(function(){var t=n(this);"absolute"!=t.css("position")&&t.is(":visible")&&(o+=n(this).outerWidth(!0))}),t=i.controls.width()-o-(r.outerWidth(!0)-r.width()));do r.width(t),u.width(t-(u.outerWidth(!0)-u.width())),"absolute"!=f.css("position")&&(e=f.length?f.position():null,t--);while(null!==e&&e.top>0&&t>0);i.container.trigger("controlsresize")}},buildposter:function(t,i,r,u){var o=this,f=n('<div class="mejs-poster mejs-layer"><\/div>').appendTo(r),e=t.$media.attr("poster");""!==t.options.poster&&(e=t.options.poster);e?o.setPoster(e):f.hide();u.addEventListener("play",function(){f.hide()},!1);t.options.showPosterWhenEnded&&t.options.autoRewind&&u.addEventListener("ended",function(){f.show()},!1)},setPoster:function(t){var u=this,i=u.container.find(".mejs-poster"),r=i.find("img");0===r.length&&(r=n('<img width="100%" height="100%" alt="" />').appendTo(i));r.attr("src",t);i.css({"background-image":"url("+t+")"})},buildoverlays:function(t,i,r,u){var s=this;if(t.isVideo){var f=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span><\/span><\/div><\/div>').hide().appendTo(r),e=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"><\/div><\/div>').hide().appendTo(r),o=n('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button"><\/div><\/div>').appendTo(r).bind("click",function(){s.options.clickToPlayPause&&u.paused&&u.play()});u.addEventListener("play",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("playing",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("seeking",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("seeked",function(){f.hide();i.find(".mejs-time-buffering").hide()},!1);u.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||o.show()},!1);u.addEventListener("waiting",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("loadeddata",function(){f.show();i.find(".mejs-time-buffering").show();mejs.MediaFeatures.isAndroid&&(u.canplayTimeout=window.setTimeout(function(){if(document.createEvent){var n=document.createEvent("HTMLEvents");return n.initEvent("canplay",!0,!0),u.dispatchEvent(n)}},300))},!1);u.addEventListener("canplay",function(){f.hide();i.find(".mejs-time-buffering").hide();clearTimeout(u.canplayTimeout)},!1);u.addEventListener("error",function(n){s.handleError(n);f.hide();o.hide();e.show();e.find(".mejs-overlay-error").html("Error loading this resource")},!1);u.addEventListener("keydown",function(n){s.onkeydown(t,u,n)},!1)}},buildkeyboard:function(t,i,r,u){var f=this;f.container.keydown(function(){f.keyboardAction=!0});f.globalBind("keydown",function(i){return t.hasFocus=0!==n(i.target).closest(".mejs-container").length,f.onkeydown(t,u,i)});f.globalBind("click",function(i){t.hasFocus=0!==n(i.target).closest(".mejs-container").length})},onkeydown:function(n,t,i){var r,e;if(n.hasFocus&&n.options.enableKeyboard)for(r=0,e=n.options.keyActions.length;e>r;r++)for(var u=n.options.keyActions[r],f=0,o=u.keys.length;o>f;f++)if(i.keyCode==u.keys[f])return"function"==typeof i.preventDefault&&i.preventDefault(),u.action(n,t,i.keyCode),!1;return!0},findTracks:function(){var t=this,i=t.$media.find("track");t.tracks=[];i.each(function(i,r){r=n(r);t.tracks.push({srclang:r.attr("srclang")?r.attr("srclang").toLowerCase():"",src:r.attr("src"),kind:r.attr("kind"),label:r.attr("label")||"",entries:[],isLoaded:!1})})},changeSkin:function(n){this.container[0].className="mejs-container "+n;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.load();this.media.play()},pause:function(){try{this.media.pause()}catch(n){}},load:function(){this.isLoaded||this.media.load();this.isLoaded=!0},setMuted:function(n){this.media.setMuted(n)},setCurrentTime:function(n){this.media.setCurrentTime(n)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(n){this.media.setVolume(n)},getVolume:function(){return this.media.volume},setSrc:function(n){this.media.setSrc(n)},remove:function(){var i,t,n=this;n.container.prev(".mejs-offscreen").remove();for(i in n.options.features)if(t=n.options.features[i],n["clean"+t])try{n["clean"+t](n)}catch(r){}n.isDynamic?n.$node.insertBefore(n.container):(n.$media.prop("controls",!0),n.$node.clone().insertBefore(n.container).show(),n.$node.remove());"native"!==n.media.pluginType&&n.media.remove();delete mejs.players[n.id];"object"==typeof n.container&&n.container.remove();n.globalUnbind();delete n.node.player},rebuildtracks:function(){var n=this;n.findTracks();n.buildtracks(n,n.controls,n.layers,n.media)},resetSize:function(){var n=this;setTimeout(function(){n.setPlayerSize(n.width,n.height);n.setControlsSize()},50)}},function(){function t(t,r){var u={d:[],w:[]};return n.each((t||"").split(" "),function(n,t){var f=t+"."+r;0===f.indexOf(".")?(u.d.push(f),u.w.push(f)):u[i.test(t)?"w":"d"].push(f)}),u.d=u.d.join(" "),u.w=u.w.join(" "),u}var i=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;mejs.MediaElementPlayer.prototype.globalBind=function(i,r,u){var f=this,e=f.node?f.node.ownerDocument:document;i=t(i,f.id);i.d&&n(e).bind(i.d,r,u);i.w&&n(window).bind(i.w,r,u)};mejs.MediaElementPlayer.prototype.globalUnbind=function(i,r){var u=this,f=u.node?u.node.ownerDocument:document;i=t(i,u.id);i.d&&n(f).unbind(i.d,r);i.w&&n(window).unbind(i.w,r)}}();"undefined"!=typeof n&&(n.fn.mediaelementplayer=function(t){return t===!1?this.each(function(){var t=n(this).data("mediaelementplayer");t&&t.remove();n(this).removeData("mediaelementplayer")}):this.each(function(){n(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,t))}),this},n(document).ready(function(){n(".mejs-player").mediaelementplayer()}));window.MediaElementPlayer=mejs.MediaElementPlayer}(mejs.$),function(n){n.extend(mejs.MepDefaults,{playText:mejs.i18n.t("Play"),pauseText:mejs.i18n.t("Pause")});n.extend(MediaElementPlayer.prototype,{buildplaypause:function(t,i,r,u){function e(n){"play"===n?(o.removeClass("mejs-play").addClass("mejs-pause"),h.attr({title:f.pauseText,"aria-label":f.pauseText})):(o.removeClass("mejs-pause").addClass("mejs-play"),h.attr({title:f.playText,"aria-label":f.playText}))}var s=this,f=s.options,o=n('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+s.id+'" title="'+f.playText+'" aria-label="'+f.playText+'"><\/button><\/div>').appendTo(i).click(function(n){return n.preventDefault(),u.paused?u.play():u.pause(),!1}),h=o.find("button");e("pse");u.addEventListener("play",function(){e("play")},!1);u.addEventListener("playing",function(){e("play")},!1);u.addEventListener("pause",function(){e("pse")},!1);u.addEventListener("paused",function(){e("pse")},!1)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{stopText:"Stop"});n.extend(MediaElementPlayer.prototype,{buildstop:function(t,i,r,u){var f=this;n('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+f.id+'" title="'+f.options.stopText+'" aria-label="'+f.options.stopText+'"><\/button><\/div>').appendTo(i).click(function(){u.paused||u.pause();u.currentTime>0&&(u.setCurrentTime(0),u.pause(),i.find(".mejs-time-current").width("0px"),i.find(".mejs-time-handle").css("left","0px"),i.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0,t.options)),i.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0,t.options)),r.find(".mejs-poster").show())})}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{progessHelpText:mejs.i18n.t("Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.")});n.extend(MediaElementPlayer.prototype,{buildprogress:function(t,i,r,u){n('<div class="mejs-time-rail"><span  class="mejs-time-total mejs-time-slider"><span class="mejs-time-buffering"><\/span><span class="mejs-time-loaded"><\/span><span class="mejs-time-current"><\/span><span class="mejs-time-handle"><\/span><span class="mejs-time-float"><span class="mejs-time-float-current">00:00<\/span><span class="mejs-time-float-corner"><\/span><\/span><\/span><\/div>').appendTo(i);i.find(".mejs-time-buffering").hide();var f=this,o=i.find(".mejs-time-total"),y=i.find(".mejs-time-loaded"),p=i.find(".mejs-time-current"),w=i.find(".mejs-time-handle"),e=i.find(".mejs-time-float"),b=i.find(".mejs-time-float-current"),s=i.find(".mejs-time-slider"),c=function(n){var i,r=o.offset(),s=o.width(),c=0,f=0,l=0;i=n.originalEvent&&n.originalEvent.changedTouches?n.originalEvent.changedTouches[0].pageX:n.changedTouches?n.changedTouches[0].pageX:n.pageX;u.duration&&(i<r.left?i=r.left:i>s+r.left&&(i=s+r.left),l=i-r.left,c=l/s,f=.02>=c?0:c*u.duration,h&&f!==u.currentTime&&u.setCurrentTime(f),mejs.MediaFeatures.hasTouch||(e.css("left",l),b.html(mejs.Utility.secondsToTimeCode(f,t.options)),e.show()))},h=!1,v=!1,l=0,a=!1,k=t.options.autoRewind,d=function(){var n=u.currentTime,i=mejs.i18n.t("Time Slider"),r=mejs.Utility.secondsToTimeCode(n,t.options),f=u.duration;s.attr({"aria-label":i,"aria-valuemin":0,"aria-valuemax":f,"aria-valuenow":n,"aria-valuetext":r,role:"slider",tabindex:0})},g=function(){var n=new Date;n-l>=1e3&&u.play()};s.bind("focus",function(){t.options.autoRewind=!1});s.bind("blur",function(){t.options.autoRewind=k});s.bind("keydown",function(n){new Date-l>=1e3&&(a=u.paused);var r=n.keyCode,i=u.duration,t=u.currentTime;switch(r){case 37:t-=1;break;case 39:t+=1;break;case 38:t+=Math.floor(.1*i);break;case 40:t-=Math.floor(.1*i);break;case 36:t=0;break;case 35:t=i;break;case 10:return void(u.paused?u.play():u.pause());case 13:return void(u.paused?u.play():u.pause());default:return}return t=0>t?0:t>=i?i:Math.floor(t),l=new Date,a||u.pause(),t<u.duration&&!a&&setTimeout(g,1100),u.setCurrentTime(t),n.preventDefault(),n.stopPropagation(),!1});o.bind("mousedown touchstart",function(n){(1===n.which||0===n.which)&&(h=!0,c(n),f.globalBind("mousemove.dur touchmove.dur",function(n){c(n)}),f.globalBind("mouseup.dur touchend.dur",function(){h=!1;e.hide();f.globalUnbind(".dur")}))}).bind("mouseenter",function(){v=!0;f.globalBind("mousemove.dur",function(n){c(n)});mejs.MediaFeatures.hasTouch||e.show()}).bind("mouseleave",function(){v=!1;h||(f.globalUnbind(".dur"),e.hide())});u.addEventListener("progress",function(n){t.setProgressRail(n);t.setCurrentRail(n)},!1);u.addEventListener("timeupdate",function(n){t.setProgressRail(n);t.setCurrentRail(n);d(n)},!1);f.container.on("controlsresize",function(){t.setProgressRail();t.setCurrentRail()});f.loaded=y;f.total=o;f.current=p;f.handle=w},setProgressRail:function(n){var r=this,t=void 0!==n?n.target:r.media,i=null;t&&t.buffered&&t.buffered.length>0&&t.buffered.end&&t.duration?i=t.buffered.end(t.buffered.length-1)/t.duration:t&&void 0!==t.bytesTotal&&t.bytesTotal>0&&void 0!==t.bufferedBytes?i=t.bufferedBytes/t.bytesTotal:n&&n.lengthComputable&&0!==n.total&&(i=n.loaded/n.total);null!==i&&(i=Math.min(1,Math.max(0,i)),r.loaded&&r.total&&r.loaded.width(r.total.width()*i))},setCurrentRail:function(){var n=this,t,i;void 0!==n.media.currentTime&&n.media.duration&&n.total&&n.handle&&(t=Math.round(n.total.width()*n.media.currentTime/n.media.duration),i=t-Math.round(n.handle.outerWidth(!0)/2),n.current.width(t),n.handle.css("left",i))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"<span> | <\/span>"});n.extend(MediaElementPlayer.prototype,{buildcurrent:function(t,i,r,u){var f=this;n('<div class="mejs-time" role="timer" aria-live="off"><span class="mejs-currenttime">'+mejs.Utility.secondsToTimeCode(0,t.options)+"<\/span><\/div>").appendTo(i);f.currenttime=f.controls.find(".mejs-currenttime");u.addEventListener("timeupdate",function(){t.updateCurrent()},!1)},buildduration:function(t,i,r,u){var f=this;i.children().last().find(".mejs-currenttime").length>0?n(f.options.timeAndDurationSeparator+'<span class="mejs-duration">'+mejs.Utility.secondsToTimeCode(f.options.duration,f.options)+"<\/span>").appendTo(i.find(".mejs-time")):(i.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"),n('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+mejs.Utility.secondsToTimeCode(f.options.duration,f.options)+"<\/span><\/div>").appendTo(i));f.durationD=f.controls.find(".mejs-duration");u.addEventListener("timeupdate",function(){t.updateDuration()},!1)},updateCurrent:function(){var n=this,t=n.media.currentTime;isNaN(t)&&(t=0);n.currenttime&&n.currenttime.html(mejs.Utility.secondsToTimeCode(t,n.options))},updateDuration:function(){var n=this,t=n.media.duration;n.options.duration>0&&(t=n.options.duration);isNaN(t)&&(t=0);n.container.toggleClass("mejs-long-video",t>3600);n.durationD&&t>0&&n.durationD.html(mejs.Utility.secondsToTimeCode(t,n.options))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),allyVolumeControlText:mejs.i18n.t("Use Up/Down Arrow keys to increase or decrease volume."),hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical"});n.extend(MediaElementPlayer.prototype,{buildvolume:function(t,i,r,u){var w;if(!mejs.MediaFeatures.isAndroid&&!mejs.MediaFeatures.isiOS||!this.options.hideVolumeOnTouchDevices){var f=this,c=f.isVideo?f.options.videoVolume:f.options.audioVolume,e="horizontal"==c?n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><\/div><a href="javascript:void(0);" class="mejs-horizontal-volume-slider"><span class="mejs-offscreen">'+f.options.allyVolumeControlText+'<\/span><div class="mejs-horizontal-volume-total"><\/div><div class="mejs-horizontal-volume-current"><\/div><div class="mejs-horizontal-volume-handle"><\/div><\/a>').appendTo(i):n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><a href="javascript:void(0);" class="mejs-volume-slider"><span class="mejs-offscreen">'+f.options.allyVolumeControlText+'<\/span><div class="mejs-volume-total"><\/div><div class="mejs-volume-current"><\/div><div class="mejs-volume-handle"><\/div><\/a><\/div>').appendTo(i),o=f.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),s=f.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),y=f.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),a=f.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),h=function(n,t){var i,r,u,l,f;if(!o.is(":visible")&&"undefined"==typeof t)return o.show(),h(n,!0),void o.hide();n=Math.max(0,n);n=Math.min(n,1);0===n?(e.removeClass("mejs-mute").addClass("mejs-unmute"),e.children("button").attr("title",mejs.i18n.t("Unmute")).attr("aria-label",mejs.i18n.t("Unmute"))):(e.removeClass("mejs-unmute").addClass("mejs-mute"),e.children("button").attr("title",mejs.i18n.t("Mute")).attr("aria-label",mejs.i18n.t("Mute")));i=s.position();"vertical"==c?(r=s.height(),u=r-r*n,a.css("top",Math.round(i.top+u-a.height()/2)),y.height(r-u),y.css("top",i.top+u)):(l=s.width(),f=l*n,a.css("left",Math.round(i.left+f-a.width()/2)),y.width(Math.round(f)))},p=function(n){var t=null,i=s.offset(),r,f,e,o;if("vertical"===c){if(r=s.height(),f=n.pageY-i.top,t=(r-f)/r,0===i.top||0===i.left)return}else e=s.width(),o=n.pageX-i.left,t=o/e;t=Math.max(0,t);t=Math.min(t,1);h(t);0===t?u.setMuted(!0):u.setMuted(!1);u.setVolume(t)},l=!1,v=!1;e.hover(function(){o.show();v=!0},function(){v=!1;l||"vertical"!=c||o.hide()});w=function(){var n=Math.floor(100*u.volume);o.attr({"aria-label":mejs.i18n.t("volumeSlider"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,"aria-valuetext":n+"%",role:"slider",tabindex:0})};o.bind("mouseover",function(){v=!0}).bind("mousedown",function(n){return p(n),f.globalBind("mousemove.vol",function(n){p(n)}),f.globalBind("mouseup.vol",function(){l=!1;f.globalUnbind(".vol");v||"vertical"!=c||o.hide()}),l=!0,!1}).bind("keydown",function(n){var i=n.keyCode,t=u.volume;switch(i){case 38:t+=.1;break;case 40:t-=.1;break;default:return!0}return l=!1,h(t),u.setVolume(t),!1});e.find("button").click(function(){u.setMuted(!u.muted)});e.find("button").bind("focus",function(){o.show()});u.addEventListener("volumechange",function(n){l||(u.muted?(h(0),e.removeClass("mejs-mute").addClass("mejs-unmute")):(h(u.volume),e.removeClass("mejs-unmute").addClass("mejs-mute")));w(n)},!1);0===t.options.startVolume&&u.setMuted(!0);"native"===u.pluginType&&u.setVolume(t.options.startVolume);f.container.on("controlsresize",function(){h(u.volume)})}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{usePluginFullScreen:!0,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});n.extend(MediaElementPlayer.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,fullscreenMode:"",buildfullscreen:function(t,i,r,u){var s;if(t.isVideo){t.isInIframe=window.location!=window.parent.location;u.addEventListener("play",function(){t.detectFullscreenMode()});var f=this,e=null,o=n('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+f.id+'" title="'+f.options.fullscreenText+'" aria-label="'+f.options.fullscreenText+'"><\/button><\/div>').appendTo(i).on("click",function(){var n=mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||t.isFullScreen;n?t.exitFullScreen():t.enterFullScreen()}).on("mouseover",function(){if("plugin-hover"==f.fullscreenMode){null!==e&&(clearTimeout(e),delete e);var n=o.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!0)}}).on("mouseout",function(){"plugin-hover"==f.fullscreenMode&&(null!==e&&(clearTimeout(e),delete e),e=setTimeout(function(){u.hideFullscreenButton()},1500))});(t.fullscreenBtn=o,f.globalBind("keydown",function(n){27==n.keyCode&&(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&t.exitFullScreen()}),f.normalHeight=0,f.normalWidth=0,mejs.MediaFeatures.hasTrueNativeFullScreen)&&(s=function(){t.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(t.isNativeFullScreen=!0,t.setControlsSize()):(t.isNativeFullScreen=!1,t.exitFullScreen()))},t.globalBind(mejs.MediaFeatures.fullScreenEventName,s))}},detectFullscreenMode:function(){var t=this,n="",i=mejs.MediaFeatures;return i.hasTrueNativeFullScreen&&"native"===t.media.pluginType?n="native-native":i.hasTrueNativeFullScreen&&"native"!==t.media.pluginType&&!i.hasFirefoxPluginMovingProblem?n="plugin-native":t.usePluginFullScreen?mejs.MediaFeatures.supportsPointerEvents?(n="plugin-click",t.createPluginClickThrough()):n="plugin-hover":n="fullwindow",t.fullscreenMode=n,n},isPluginClickThroughCreated:!1,createPluginClickThrough:function(){var t=this;if(!t.isPluginClickThroughCreated){var r,f,u=!1,e=function(){if(u){for(var n in i)i[n].hide();t.fullscreenBtn.css("pointer-events","");t.controls.css("pointer-events","");t.media.removeEventListener("click",t.clickToPlayPauseCallback);u=!1}},i={},o=["top","left","right","bottom"],s=function(){var f=fullscreenBtn.offset().left-t.container.offset().left,n=fullscreenBtn.offset().top-t.container.offset().top,o=fullscreenBtn.outerWidth(!0),u=fullscreenBtn.outerHeight(!0),e=t.container.width(),s=t.container.height();for(r in i)i[r].css({position:"absolute",top:0,left:0});i.top.width(e).height(n);i.left.width(f).height(u).css({top:n});i.right.width(e-f-o).height(u).css({top:n,left:f+o});i.bottom.width(e).height(s-u-n).css({top:n+u})};for(t.globalBind("resize",function(){s()}),r=0,f=o.length;f>r;r++)i[o[r]]=n('<div class="mejs-fullscreen-hover" />').appendTo(t.container).mouseover(e).hide();fullscreenBtn.on("mouseover",function(){if(!t.isFullScreen){var n=fullscreenBtn.offset(),f=player.container.offset();media.positionFullscreenButton(n.left-f.left,n.top-f.top,!1);t.fullscreenBtn.css("pointer-events","none");t.controls.css("pointer-events","none");t.media.addEventListener("click",t.clickToPlayPauseCallback);for(r in i)i[r].show();s();u=!0}});media.addEventListener("fullscreenchange",function(){t.isFullScreen=!t.isFullScreen;t.isFullScreen?t.media.removeEventListener("click",t.clickToPlayPauseCallback):t.media.addEventListener("click",t.clickToPlayPauseCallback);e()});t.globalBind("mousemove",function(n){if(u){var i=fullscreenBtn.offset();(n.pageY<i.top||n.pageY>i.top+fullscreenBtn.outerHeight(!0)||n.pageX<i.left||n.pageX>i.left+fullscreenBtn.outerWidth(!0))&&(fullscreenBtn.css("pointer-events",""),t.controls.css("pointer-events",""),u=!1)}});t.isPluginClickThroughCreated=!0}},cleanfullscreen:function(n){n.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this;return mejs.MediaFeatures.hasiOSFullScreen?void t.media.webkitEnterFullscreen():(n(document.documentElement).addClass("mejs-fullscreen"),t.normalHeight=t.container.height(),t.normalWidth=t.container.width(),"native-native"===t.fullscreenMode||"plugin-native"===t.fullscreenMode?(mejs.MediaFeatures.requestFullScreen(t.container[0]),t.isInIframe&&setTimeout(function i(){var o,s;if(t.isNativeFullScreen){var f=window.devicePixelRatio||1,r=f*n(window).width(),u=screen.width,e=f*r;Math.abs(u-r)>Math.abs(u-e)&&(r=e);o=Math.abs(u-r);s=u*.002;o>s?t.exitFullScreen():setTimeout(i,500)}},1e3)):"fullwindow"==t.fullscreeMode,t.container.addClass("mejs-container-fullscreen").width("100%").height("100%"),t.containerSizeTimeout=setTimeout(function(){t.container.css({width:"100%",height:"100%"});t.setControlsSize()},500),"native"===t.media.pluginType?t.$media.width("100%").height("100%"):(t.container.find(".mejs-shim").width("100%").height("100%"),setTimeout(function(){var i=n(window),r=i.width(),u=i.height();t.media.setVideoSize(r,u)},500)),t.layers.children("div").width("100%").height("100%"),t.fullscreenBtn&&t.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen"),t.setControlsSize(),t.isFullScreen=!0,t.container.find(".mejs-captions-text").css("font-size",screen.width/t.width*100+"%"),t.container.find(".mejs-captions-position").css("bottom","45px"),void t.container.trigger("enteredfullscreen"))},exitFullScreen:function(){var t=this;clearTimeout(t.containerSizeTimeout);mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||t.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen();n(document.documentElement).removeClass("mejs-fullscreen");t.container.removeClass("mejs-container-fullscreen").width(t.normalWidth).height(t.normalHeight);"native"===t.media.pluginType?t.$media.width(t.normalWidth).height(t.normalHeight):(t.container.find(".mejs-shim").width(t.normalWidth).height(t.normalHeight),t.media.setVideoSize(t.normalWidth,t.normalHeight));t.layers.children("div").width(t.normalWidth).height(t.normalHeight);t.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen");t.setControlsSize();t.isFullScreen=!1;t.container.find(".mejs-captions-text").css("font-size","");t.container.find(".mejs-captions-position").css("bottom","");t.container.trigger("exitedfullscreen")}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{speeds:["2.00","1.50","1.25","1.00","0.75"],defaultSpeed:"1.00",speedChar:"x"});n.extend(MediaElementPlayer.prototype,{buildspeed:function(t,i,r,u){var e=this,h,w,a;if("native"==e.media.pluginType){for(var s=null,c=null,l=null,v=null,o=[],y=!1,f=0,p=e.options.speeds.length;p>f;f++)h=e.options.speeds[f],"string"==typeof h?(o.push({name:h+e.options.speedChar,value:h}),h===e.options.defaultSpeed&&(y=!0)):(o.push(h),h.value===e.options.defaultSpeed&&(y=!0));for(y||o.push({name:e.options.defaultSpeed+e.options.speedChar,value:e.options.defaultSpeed}),o.sort(function(n,t){return parseFloat(t.value)-parseFloat(n.value)}),w=function(n){for(f=0,p=o.length;p>f;f++)if(o[f].value===n)return o[f].name},a='<div class="mejs-button mejs-speed-button"><button type="button">'+w(e.options.defaultSpeed)+'<\/button><div class="mejs-speed-selector"><ul>',f=0,il=o.length;f<il;f++)v=e.id+"-speed-"+o[f].value,a+='<li><input type="radio" name="speed" value="'+o[f].value+'" id="'+v+'" '+(o[f].value===e.options.defaultSpeed?" checked":"")+' /><label for="'+v+'" '+(o[f].value===e.options.defaultSpeed?' class="mejs-speed-selected"':"")+">"+o[f].name+"<\/label><\/li>";a+="<\/ul><\/div><\/div>";s=n(a).appendTo(i);c=s.find(".mejs-speed-selector");l=e.options.defaultSpeed;u.addEventListener("loadedmetadata",function(){l&&(u.playbackRate=parseFloat(l))},!0);c.on("click",'input[type="radio"]',function(){var t=n(this).attr("value");l=t;u.playbackRate=parseFloat(t);s.find("button").html(w(t));s.find(".mejs-speed-selected").removeClass("mejs-speed-selected");s.find('input[type="radio"]:checked').next().addClass("mejs-speed-selected")});s.one("mouseenter focusin",function(){c.height(s.find(".mejs-speed-selector ul").outerHeight(!0)+s.find(".mejs-speed-translations").outerHeight(!0)).css("top",-1*c.height()+"px")})}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""});n.extend(MediaElementPlayer.prototype,{hasChapters:!1,cleartracks:function(n){n&&(n.captions&&n.captions.remove(),n.chapters&&n.chapters.remove(),n.captionsText&&n.captionsText.remove(),n.captionsButton&&n.captionsButton.remove())},buildtracks:function(t,i,r,u){var f,e,s,o;if(0!==t.tracks.length){if(e=this,s=e.options.tracksAriaLive?'role="log" aria-live="assertive" aria-atomic="false"':"",e.domNode.textTracks)for(f=e.domNode.textTracks.length-1;f>=0;f--)e.domNode.textTracks[f].mode="hidden";for(e.cleartracks(t,i,r,u),t.chapters=n('<div class="mejs-chapters mejs-layer"><\/div>').prependTo(r).hide(),t.captions=n('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position mejs-captions-position-hover" '+s+'><span class="mejs-captions-text"><\/span><\/div><\/div>').prependTo(r).hide(),t.captionsText=t.captions.find(".mejs-captions-text"),t.captionsButton=n('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+e.id+'" title="'+e.options.tracksText+'" aria-label="'+e.options.tracksText+'"><\/button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+t.id+'_captions" id="'+t.id+'_captions_none" value="none" checked="checked" /><label for="'+t.id+'_captions_none">'+mejs.i18n.t("None")+"<\/label><\/li><\/ul><\/div><\/div>").appendTo(i),o=0,f=0;f<t.tracks.length;f++)"subtitles"==t.tracks[f].kind&&o++;for(e.options.toggleCaptionsButtonWhenOnlyOne&&1==o?t.captionsButton.on("click",function(){lang=null===t.selectedTrack?t.tracks[0].srclang:"none";t.setTrack(lang)}):(t.captionsButton.on("mouseenter focusin",function(){n(this).find(".mejs-captions-selector").removeClass("mejs-offscreen")}).on("click","input[type=radio]",function(){lang=this.value;t.setTrack(lang)}),t.captionsButton.on("mouseleave focusout",function(){n(this).find(".mejs-captions-selector").addClass("mejs-offscreen")})),t.options.alwaysShowControls?t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):t.container.bind("controlsshown",function(){t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){u.paused||t.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")}),t.trackToLoad=-1,t.selectedTrack=null,t.isLoadingTrack=!1,f=0;f<t.tracks.length;f++)"subtitles"==t.tracks[f].kind&&t.addTrackButton(t.tracks[f].srclang,t.tracks[f].label);t.loadNextTrack();u.addEventListener("timeupdate",function(){t.displayCaptions()},!1);""!==t.options.slidesSelector&&(t.slidesContainer=n(t.options.slidesSelector),u.addEventListener("timeupdate",function(){t.displaySlides()},!1));u.addEventListener("loadedmetadata",function(){t.displayChapters()},!1);t.container.hover(function(){t.hasChapters&&(t.chapters.removeClass("mejs-offscreen"),t.chapters.fadeIn(200).height(t.chapters.find(".mejs-chapter").outerHeight()))},function(){t.hasChapters&&!u.paused&&t.chapters.fadeOut(200,function(){n(this).addClass("mejs-offscreen");n(this).css("display","block")})});e.container.on("controlsresize",function(){e.adjustLanguageBox()});null!==t.node.getAttribute("autoplay")&&t.chapters.addClass("mejs-offscreen")}},setTrack:function(n){var i,t=this;if("none"==n)t.selectedTrack=null,t.captionsButton.removeClass("mejs-captions-enabled");else for(i=0;i<t.tracks.length;i++)if(t.tracks[i].srclang==n){null===t.selectedTrack&&t.captionsButton.addClass("mejs-captions-enabled");t.selectedTrack=t.tracks[i];t.captions.attr("lang",t.selectedTrack.srclang);t.displayCaptions();break}},loadNextTrack:function(){var n=this;n.trackToLoad++;n.trackToLoad<n.tracks.length?(n.isLoadingTrack=!0,n.loadTrack(n.trackToLoad)):(n.isLoadingTrack=!1,n.checkForTracks())},loadTrack:function(t){var r=this,i=r.tracks[t],u=function(){i.isLoaded=!0;r.enableTrackButton(i.srclang,i.label);r.loadNextTrack()};n.ajax({url:i.src,dataType:"text",success:function(n){i.entries="string"==typeof n&&/<tt\s+xml/gi.exec(n)?mejs.TrackFormatParser.dfxp.parse(n):mejs.TrackFormatParser.webvtt.parse(n);u();"chapters"==i.kind&&r.media.addEventListener("play",function(){r.media.duration>0&&r.displayChapters(i)},!1);"slides"==i.kind&&r.setupSlides(i)},error:function(){r.removeTrackButton(i.srclang);r.loadNextTrack()}})},enableTrackButton:function(t,i){var r=this;""===i&&(i=mejs.language.codes[t]||t);r.captionsButton.find("input[value="+t+"]").prop("disabled",!1).siblings("label").html(i);r.options.startLanguage==t&&n("#"+r.id+"_captions_"+t).prop("checked",!0).trigger("click");r.adjustLanguageBox()},removeTrackButton:function(n){var t=this;t.captionsButton.find("input[value="+n+"]").closest("li").remove();t.adjustLanguageBox()},addTrackButton:function(t,i){var r=this;""===i&&(i=mejs.language.codes[t]||t);r.captionsButton.find("ul").append(n('<li><input type="radio" name="'+r.id+'_captions" id="'+r.id+"_captions_"+t+'" value="'+t+'" disabled="disabled" /><label for="'+r.id+"_captions_"+t+'">'+i+" (loading)<\/label><\/li>"));r.adjustLanguageBox();r.container.find(".mejs-captions-translations option[value="+t+"]").remove()},adjustLanguageBox:function(){var n=this;n.captionsButton.find(".mejs-captions-selector").height(n.captionsButton.find(".mejs-captions-selector ul").outerHeight(!0)+n.captionsButton.find(".mejs-captions-translations").outerHeight(!0))},checkForTracks:function(){var n=this,t=!1;if(n.options.hideCaptionsButtonWhenEmpty){for(i=0;i<n.tracks.length;i++)if("subtitles"==n.tracks[i].kind&&n.tracks[i].isLoaded){t=!0;break}t||(n.captionsButton.hide(),n.setControlsSize())}},displayCaptions:function(){if("undefined"!=typeof this.tracks){var n,t=this,i=t.selectedTrack;if(null!==i&&i.isLoaded){for(n=0;n<i.entries.times.length;n++)if(t.media.currentTime>=i.entries.times[n].start&&t.media.currentTime<=i.entries.times[n].stop)return t.captionsText.html(i.entries.text[n]).attr("class","mejs-captions-text "+(i.entries.times[n].identifier||"")),void t.captions.show().height(0);t.captions.hide()}else t.captions.hide()}},setupSlides:function(n){var t=this;t.slides=n;t.slides.entries.imgs=[t.slides.entries.text.length];t.showSlide(0)},showSlide:function(t){if("undefined"!=typeof this.tracks&&"undefined"!=typeof this.slidesContainer){var r=this,u=r.slides.entries.text[t],i=r.slides.entries.imgs[t];"undefined"==typeof i||"undefined"==typeof i.fadeIn?r.slides.entries.imgs[t]=i=n('<img src="'+u+'">').on("load",function(){i.appendTo(r.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}):i.is(":visible")||i.is(":animated")||i.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if("undefined"!=typeof this.slides)for(var t=this,i=t.slides,n=0;n<i.entries.times.length;n++)if(t.media.currentTime>=i.entries.times[n].start&&t.media.currentTime<=i.entries.times[n].stop)return void t.showSlide(n)},displayChapters:function(){for(var t=this,n=0;n<t.tracks.length;n++)if("chapters"==t.tracks[n].kind&&t.tracks[n].isLoaded){t.drawChapters(t.tracks[n]);t.hasChapters=!0;break}},drawChapters:function(t){var i,e,r=this,u=0,f=0;for(r.chapters.empty(),i=0;i<t.entries.times.length;i++)e=t.entries.times[i].stop-t.entries.times[i].start,u=Math.floor(e/r.media.duration*100),(u+f>100||i==t.entries.times.length-1&&100>u+f)&&(u=100-f),r.chapters.append(n('<div class="mejs-chapter" rel="'+t.entries.times[i].start+'" style="left: '+f.toString()+"%;width: "+u.toString()+'%;"><div class="mejs-chapter-block'+(i==t.entries.times.length-1?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+t.entries.text[i]+'<\/span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(t.entries.times[i].start,r.options)+"&ndash;"+mejs.Utility.secondsToTimeCode(t.entries.times[i].stop,r.options)+"<\/span><\/div><\/div>")),f+=u;r.chapters.find("div.mejs-chapter").click(function(){r.media.setCurrentTime(parseFloat(n(this).attr("rel")));r.media.paused&&r.media.play()});r.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvtt:{pattern_timecode:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(t){for(var u,f,e,i=0,r=mejs.TrackFormatParser.split2(t,/\r?\n/),o={text:[],times:[]};i<r.length;i++){if(u=this.pattern_timecode.exec(r[i]),u&&i<r.length){for(i-1>=0&&""!==r[i-1]&&(e=r[i-1]),i++,f=r[i],i++;""!==r[i]&&i<r.length;)f=f+"\n"+r[i],i++;f=n.trim(f).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1<\/a>");o.text.push(f);o.times.push({identifier:e,start:0===mejs.Utility.convertSMPTEtoSeconds(u[1])?.2:mejs.Utility.convertSMPTEtoSeconds(u[1]),stop:mejs.Utility.convertSMPTEtoSeconds(u[3]),settings:u[5]})}e=""}return o}},dfxp:{parse:function(t){var o,s,r,h;t=n(t).filter("tt");var f,c,i=0,l=t.children("div").eq(0),u=l.find("p"),a=t.find("#"+l.attr("style")),e={text:[],times:[]};if(a.length&&(o=a.removeAttr("id").get(0).attributes,o.length))for(f={},i=0;i<o.length;i++)f[o[i].name.split(":")[1]]=o[i].value;for(i=0;i<u.length;i++){if(r={start:null,stop:null,style:null},u.eq(i).attr("begin")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("begin"))),!r.start&&u.eq(i-1).attr("end")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i-1).attr("end"))),u.eq(i).attr("end")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("end"))),!r.stop&&u.eq(i+1).attr("begin")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i+1).attr("begin"))),f){s="";for(h in f)s+=h+":"+f[h]+";"}s&&(r.style=s);0===r.start&&(r.start=.2);e.times.push(r);c=n.trim(u.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1<\/a>");e.text.push(c);0===e.times.start&&(e.times.start=2)}return e}},split2:function(n,t){return n.split(t)}};3!="x\n\ny".split(/\n/gi).length&&(mejs.TrackFormatParser.split2=function(n,t){for(var u=[],r="",i=0;i<n.length;i++)r+=n.substring(i,i+1),t.test(r)&&(u.push(r.replace(t,"")),r="");return u.push(r),u})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(n){return"undefined"==typeof n.enterFullScreen?null:n.isFullScreen?mejs.i18n.t("Turn off Fullscreen"):mejs.i18n.t("Go Fullscreen")},click:function(n){n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}},{render:function(n){return n.media.muted?mejs.i18n.t("Unmute"):mejs.i18n.t("Mute")},click:function(n){n.media.muted?n.setMuted(!1):n.setMuted(!0)}},{isSeparator:!0},{render:function(){return mejs.i18n.t("Download Video")},click:function(n){window.location.href=n.media.currentSrc}}]});n.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(t){t.contextMenu=n('<div class="mejs-contextmenu"><\/div>').appendTo(n("body")).hide();t.container.bind("contextmenu",function(n){if(t.isContextMenuEnabled)return(n.preventDefault(),t.renderContextMenu(n.clientX-1,n.clientY-1),!1)});t.container.bind("click",function(){t.contextMenu.hide()});t.contextMenu.bind("mouseleave",function(){t.startContextMenuTimer()})},cleancontextmenu:function(n){n.contextMenu.remove()},isContextMenuEnabled:!0,enableContextMenu:function(){this.isContextMenuEnabled=!0},disableContextMenu:function(){this.isContextMenuEnabled=!1},contextMenuTimeout:null,startContextMenuTimer:function(){var n=this;n.killContextMenuTimer();n.contextMenuTimer=setTimeout(function(){n.hideContextMenu();n.killContextMenuTimer()},750)},killContextMenuTimer:function(){var n=this.contextMenuTimer;null!=n&&(clearTimeout(n),delete n,n=null)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(t,i){for(var o,r=this,f="",e=r.options.contextMenuItems,u=0,s=e.length;s>u;u++)e[u].isSeparator?f+='<div class="mejs-contextmenu-separator"><\/div>':(o=e[u].render(r),null!=o&&(f+='<div class="mejs-contextmenu-item" data-itemindex="'+u+'" id="element-'+1e6*Math.random()+'">'+o+"<\/div>"));r.contextMenu.empty().append(n(f)).css({top:i,left:t}).show();r.contextMenu.find(".mejs-contextmenu-item").each(function(){var i=n(this),u=parseInt(i.data("itemindex"),10),t=r.options.contextMenuItems[u];"undefined"!=typeof t.show&&t.show(i,r);i.click(function(){"undefined"!=typeof t.click&&t.click(r);r.contextMenu.hide()})});setTimeout(function(){r.killControlsTimer("rev3")},100)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{skipBackInterval:30,skipBackText:mejs.i18n.t("Skip back %1 seconds")});n.extend(MediaElementPlayer.prototype,{buildskipback:function(t,i,r,u){var f=this,e=f.options.skipBackText.replace("%1",f.options.skipBackInterval);n('<div class="mejs-button mejs-skip-back-button"><button type="button" aria-controls="'+f.id+'" title="'+e+'" aria-label="'+e+'">'+f.options.skipBackInterval+"<\/button><\/div>").appendTo(i).click(function(){u.setCurrentTime(Math.max(u.currentTime-f.options.skipBackInterval,0));n(this).find("button").blur()})}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});n.extend(MediaElementPlayer.prototype,{buildpostroll:function(t,i,r){var u=this,f=u.container.find('link[rel="postroll"]').attr("href");"undefined"!=typeof f&&(t.postroll=n('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+u.options.postrollCloseText+'<\/a><div class="mejs-postroll-layer-content"><\/div><\/div>').prependTo(r).hide(),u.media.addEventListener("ended",function(){n.ajax({dataType:"html",url:f,success:function(n){r.find(".mejs-postroll-layer-content").html(n)}});t.postroll.show()},!1))}})}(mejs.$),function(n){n.fn.YouTubePopUp=function(t){var o=n.extend({autoplay:1},t),i=n(this).attr("href"),r,u,s,f,e;i.match(/(youtube.com)/)&&(r="v=",u=1);(i.match(/(youtu.be)/)||i.match(/(vimeo.com\/)+[0-9]/))&&(r="/",u=3);i.match(/(vimeo.com\/)+[a-zA-Z]/)&&(r="/",u=5);s=i.split(r)[u];f=s.replace(/(&)+(.*)/,"");(i.match(/(youtu.be)/)||i.match(/(youtube.com)/))&&(e="https://www.youtube.com/embed/"+f+"?autoplay="+o.autoplay+"");(i.match(/(vimeo.com\/)+[0-9]/)||i.match(/(vimeo.com\/)+[a-zA-Z]/))&&(e="https://player.vimeo.com/video/"+f+"?autoplay="+o.autoplay+"");n("body").append('<div class="YouTubePopUp-Wrap YouTubePopUp-animation"><div class="YouTubePopUp-Content"><span class="YouTubePopUp-Close"><\/span><iframe src="'+e+'" allowfullscreen allow="autoplay; fullscreen"><\/iframe><\/div><\/div>');n(".YouTubePopUp-Wrap").hasClass("YouTubePopUp-animation")&&setTimeout(function(){n(".YouTubePopUp-Wrap").removeClass("YouTubePopUp-animation")},600);n(".YouTubePopUp-Wrap, .YouTubePopUp-Close").click(function(){n(".YouTubePopUp-Wrap").addClass("YouTubePopUp-Hide").delay(515).queue(function(){n(this).remove()})});n(document).keyup(function(t){t.keyCode==27&&n(".YouTubePopUp-Wrap, .YouTubePopUp-Close").click()})}}(jQuery),function(n){n(function(){function u(){}function y(n){var f=new u;return f.then=function(t){var u;try{return t&&(u=t(n)),e(u===r?n:u)}catch(f){return i(f)}},t(f)}function i(n){var f=new u;return f.then=function(t,u){var f;try{return u?(f=u(n),e(f===r?n:f)):i(n)}catch(o){return i(o)}},t(f)}function p(t){return n(t,function(n){return i(n)})}function f(){function a(n,t,i){return c(n,t,i)}function v(n){s(y(n))}function p(n){s(i(n))}function w(n){l(n)}var n,h,e,o,c,l,s;return e=[],o=[],c=function(n,t,i){var r=f();return e.push(function(i){i.then(n,t).then(r.resolve,r.reject,r.progress)}),i&&o.push(i),r.promise},l=function(n){for(var t,i=0;t=o[i++];)t(n)},s=function(n){var t,i=0;for(c=n.then,s=l=function(){throw new Error("already completed");},o=r;t=e[i++];)t(n);e=[]},n={},h=new u,h.then=n.then=a,n.promise=t(h),n.resolver=t({resolve:n.resolve=v,reject:n.reject=p,progress:n.progress=w}),n}function c(n){return n&&typeof n.then=="function"}function n(n,t,i,r){var u=e(n);return u.then(t,i,r)}function e(n){var i,t;return n instanceof u?i=n:(t=f(),c(n)?(n.then(t.resolve,t.reject,t.progress),i=t.promise):(t.resolve(n),i=t.promise)),i}function l(t,i,r,u,e){return v(2,arguments),n(t,function(t){function b(n){l(n)}function k(n){a(n)}function d(n){v(n)}function w(){l=a=v=tt}var c,h,p,o,l,a,v,y,s;if(y=t.length>>>0,c=Math.max(0,Math.min(i,y)),h=[],o=f(),p=n(o,r,u,e),c)for(l=function(n){h.push(n);--c||(w(),o.resolve(h))},a=function(n){w();o.reject(n)},v=o.progress,s=0;s<y;++s)s in t&&n(t[s],b,k,d);else o.resolve(h);return p})}function w(t,i,r,u){return v(1,arguments),n(t,function(n){return o(n,a,[])}).then(i,r,u)}function a(n,t,i){return n[i]=t,n}function b(n,t,i,r){function u(n){return t?t(n[0]):n[0]}return l(n,1,u,i,r)}function k(t,i){return n(t,function(n){return d(n,i)})}function d(t,i){var u,f,r;for(f=t.length>>>0,u=new Array(f),r=0;r<f;r++)r in t&&(u[r]=n(t[r],i));return o(u,a,u)}function g(t){var i=h.call(arguments,1);return n(t,function(n){return o.apply(r,[n].concat(i))})}function o(t,i,r){var f,u;return f=t.length,u=[function(t,r,u){return n(t,function(t){return n(r,function(n){return i(t,n,u,f)})})}],arguments.length>2&&u.push(r),s.apply(t,u)}function nt(t,r,u){var f=arguments.length>2;return n(t,function(n){return f&&(n=u),r.resolve(n),n},function(n){return r.reject(n),i(n)},r.progress)}function v(n,t){for(var i,r=t.length;r>n;)if(i=t[--r],i!=null&&typeof i!="function")throw new Error("callback is not a function");}function tt(){}var t,s,h,r;return n.defer=f,n.reject=p,n.isPromise=c,n.all=w,n.some=l,n.any=b,n.map=k,n.reduce=g,n.chain=nt,t=Object.freeze||function(n){return n},u.prototype=t({always:function(n,t){return this.then(n,n,t)},otherwise:function(n){return this.then(r,n)}}),h=[].slice,s=[].reduce||function(n){var i,u,r,f,t;if(t=0,i=Object(this),f=i.length>>>0,u=arguments,u.length<=1)for(;;){if(t in i){r=i[t++];break}if(++t>=f)throw new TypeError;}else r=u[1];for(;t<f;++t)t in i&&(r=n(r,i[t],t,i));return r},n})}(typeof define=="function"?define:function(n){typeof module!="undefined"?module.exports=n():jQuery.mapster_when=n()}),function(n){n.fn.mapster=function(t){var i=n.mapster.impl;if(n.isFunction(i[t]))return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.mapster");else return i.bind.apply(this,arguments)};n.mapster={version:"1.2.14-beta1",render_defaults:{isSelectable:!0,isDeselectable:!0,fade:!1,fadeDuration:150,fill:!0,fillColor:"000000",fillColorMask:"FFFFFF",fillOpacity:.7,highlight:!0,stroke:!1,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,includeKeys:"",altImage:null,altImageId:null,altImages:{}},defaults:{clickNavigate:!1,wrapClass:null,wrapCss:null,onGetList:null,sortList:!1,listenToList:!1,mapKey:"",mapValue:"",singleSelect:!1,listKey:"value",listSelectedAttribute:"selected",listSelectedClass:null,onClick:null,onMouseover:null,onMouseout:null,mouseoutDelay:0,onStateChange:null,boundList:null,onConfigured:null,configTimeout:3e4,noHrefIsMask:!0,scaleMap:!0,safeLoad:!1,areas:[]},shared_defaults:{render_highlight:{fade:!0},render_select:{fade:!1},staticState:null,selected:null},area_defaults:{includeKeys:"",isMask:!1},canvas_style:{position:"absolute",left:0,top:0,padding:0,border:0},hasCanvas:null,isTouch:null,map_cache:[],hooks:{},addHook:function(n,t){this.hooks[n]=(this.hooks[n]||[]).push(t)},callHooks:function(t,i){n.each(this.hooks[t]||[],function(n,t){t.apply(i)})},utils:{when:n.mapster_when,defer:n.mapster_when.defer,subclass:function(n,t){var i=function(){var i=this,r=Array.prototype.slice.call(arguments,0);i.base=n.prototype;i.base.init=function(){n.prototype.constructor.apply(i,r)};t.apply(i,r)};return i.prototype=new n,i.prototype.constructor=i,i},asArray:function(n){return n.constructor===Array?n:this.split(n)},split:function(t,i){for(var f,u=t.split(","),r=0;r<u.length;r++)f=n.trim(u[r]),f===""?u.splice(r,1):u[r]=i?i(f):f;return u},updateProps:function(t,i){var u,r=t||{},f=n.isEmptyObject(r)?i:t;return u=[],n.each(f,function(n){u.push(n)}),n.each(Array.prototype.slice.call(arguments,1),function(t,i){n.each(i||{},function(t){if(!u||n.inArray(t,u)>=0){var f=i[t];n.isPlainObject(f)?r[t]=n.extend(r[t]||{},f):f&&f.constructor===Array?r[t]=f.slice(0):typeof f!="undefined"&&(r[t]=i[t])}})}),r},isElement:function(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n.nodeType===1&&typeof n.nodeName=="string"},indexOf:function(n,t){for(var i=0;i<n.length;i++)if(n[i]===t)return i;return-1},indexOfProp:function(t,i,r){var u=t.constructor===Array?-1:null;return n.each(t,function(n,t){if(t&&(i?t[i]:t)===r)return u=n,!1}),u},boolOrDefault:function(n,t){return this.isBool(n)?n:t||!1},isBool:function(n){return typeof n=="boolean"},isUndef:function(n){return typeof n=="undefined"},ifFunction:function(t,i,r){n.isFunction(t)&&t.call(i,r)},size:function(t,i){var r=n.mapster.utils;return{width:i?t.width||t.naturalWidth:r.imgWidth(t,!0),height:i?t.height||t.naturalHeight:r.imgHeight(t,!0),complete:function(){return!!this.height&&!!this.width}}},setOpacity:function(t,i){n.mapster.hasCanvas()?t.style.opacity=i:n(t).each(function(t,r){typeof r.opacity!="undefined"?r.opacity=i:n(r).css("opacity",i)})},fader:function(){var t={},i=0,r=function(u,f,e,o){var h,c=o/15,s,l=n.mapster.utils;if(typeof u=="number"){if(s=t[u],!s)return}else h=l.indexOfProp(t,null,u),h&&delete t[h],t[++i]=s=u,u=i;e=e||1;f=f+e/c>e-.01?e:f+e/c;l.setOpacity(s,f);f<e&&setTimeout(function(){r(u,f,e,o)},15)};return r}()},getBoundList:function(t,i){if(!t.boundList)return null;var r,f,u=n(),e=n.mapster.utils.split(i);return t.boundList.each(function(i,o){for(r=0;r<e.length;r++)f=e[r],n(o).is("["+t.listKey+'="'+f+'"]')&&(u=u.add(o))}),u},setBoundListProperties:function(t,i,r){i.each(function(i,u){t.listSelectedClass&&(r?n(u).addClass(t.listSelectedClass):n(u).removeClass(t.listSelectedClass));t.listSelectedAttribute&&n(u).attr(t.listSelectedAttribute,r)})},getMapDataIndex:function(t){var i,r;switch(t.tagName&&t.tagName.toLowerCase()){case"area":r=n(t).parent().attr("name");i=n("img[usemap='#"+r+"']")[0];break;case"img":i=t}return i?this.utils.indexOfProp(this.map_cache,"image",i):-1},getMapData:function(n){var t=this.getMapDataIndex(n.length?n[0]:n);if(t>=0)return t>=0?this.map_cache[t]:null},queueCommand:function(n,t,i,r){return n?!n.complete||n.currentAction?(n.commands.push({that:t,command:i,args:r}),!0):!1:!1},unload:function(){this.impl.unload();this.utils=null;this.impl=null;n.fn.mapster=null;n.mapster=null;n("*").unbind()}};var t=n.mapster,i=t.utils,r=Array.prototype;n.each(["width","height"],function(t,r){var u=r.substr(0,1).toUpperCase()+r.substr(1);i["img"+u]=function(t,i){return(i?n(t)[r]():0)||t[r]||t["natural"+u]||t["client"+u]||t["offset"+u]}});t.Method=function(n,t,i,u){var f=this;f.name=u.name;f.output=n;f.input=n;f.first=u.first||!1;f.args=u.args?r.slice.call(u.args,0):[];f.key=u.key;f.func_map=t;f.func_area=i;f.name=u.name;f.allowAsync=u.allowAsync||!1};t.Method.prototype={constructor:t.Method,go:function(){for(var f,e,u,o=this.input,s=[],i=this,h=o.length,r=0;r<h;r++)if(f=n.mapster.getMapData(o[r]),f){if(!i.allowAsync&&t.queueCommand(f,i.input,i.name,i.args)){this.first&&(u="");continue}if(e=f.getData(o[r].nodeName==="AREA"?o[r]:this.key),e?n.inArray(e,s)<0&&s.push(e):u=this.func_map.apply(f,i.args),this.first||typeof u!="undefined")break}return n(s).each(function(n,t){u=i.func_area.apply(t,i.args)}),typeof u!="undefined"?u:this.output}};n.mapster.impl=function(){function o(){var i=n("<div />").appendTo("body"),t,r;return i.html('<v:shape id="vml_flag1" adj="1" />'),t=i[0].firstChild,t.style.behavior="url(#default#VML)",r=t?typeof t.adj=="object":!0,i.remove(),r}function u(){return typeof document.namespaces=="object"?document.namespaces:null}function s(){var t=u();return t&&t.g_vml_?!1:n("<canvas />")[0].getContext?!0:!1}function h(t,r){var u,f,e=t.options.areas;r&&n.each(r,function(r,o){o&&o.key&&(f=i.indexOfProp(e,"key",o.key),f>=0?n.extend(e[f],o):e.push(o),u=t.getDataForKey(o.key),u&&n.extend(u.options,o))})}function c(n,t){var r=i.updateProps({},t);delete r.areas;i.updateProps(n.options,r);h(n,t.areas);i.updateProps(n.area_options,n.options)}var r={},f=function(n){return t.map_cache.push(n)-1},e=function(n){t.map_cache.splice(n.index,1);for(var i=t.map_cache.length-1;i>=this.index;i--)t.map_cache[i].index--};return r.get=function(n){var i=t.getMapData(this);if(!(i&&i.complete))throw"Can't access data until binding complete.";return new t.Method(this,function(){return this.getSelected()},function(){return this.isSelected()},{name:"get",args:arguments,key:n,first:!0,allowAsync:!0,defaultReturn:""}).go()},r.data=function(n){return new t.Method(this,null,function(){return this},{name:"data",args:arguments,key:n}).go()},r.highlight=function(n){return new t.Method(this,function(){if(n===!1)this.ensureNoHighlight();else{var t=this.highlightId;return t>=0?this.data[t].key:null}},function(){this.highlight()},{name:"highlight",args:arguments,key:n,first:!0}).go()},r.keys=function(i,r){function e(t){var u,i=[];r?(u=t.areas(),n.each(u,function(n,t){i=i.concat(t.keys)})):i.push(t.key);n.each(i,function(t,i){n.inArray(i,f)<0&&f.push(i)})}var f=[],u=t.getMapData(this);if(!(u&&u.complete))throw"Can't access data until binding complete.";return(u&&u.complete)?(typeof i=="string"?r?e(u.getDataForKey(i)):f=[u.getKeysForGroup(i)]:(r=i,this.each(function(n,t){t.nodeName==="AREA"&&e(u.getDataForArea(t))})),f.join(",")):""},r.select=function(){r.set.call(this,!0)},r.deselect=function(){r.set.call(this,!1)},r.set=function(r,u,f){function v(n){var t=r;if(n){switch(r){case!0:n.select(s);break;case!1:n.deselect(!0);break;default:t=n.toggle(s)}return t}}function l(t){t&&n.inArray(t,c)<0&&(c.push(t),h+=(h===""?"":",")+t.key)}function a(i){n.each(c,function(n,r){var u=v(r);i.options.boundList&&t.setBoundListProperties(i.options,t.getBoundList(i.options,h),u)});r||i.removeSelectionFinish()}var o,e,s=f,h,c;return this.filter("img,area").each(function(f,v){var y;e=t.getMapData(v);e!==o&&(o&&a(o),c=[],h="");e&&(y="",v.nodeName.toUpperCase()==="IMG"?t.queueCommand(e,n(v),"set",[r,u,s])||(u instanceof Array?u.length&&(y=u.join(",")):y=u,y&&n.each(i.split(y),function(n,t){l(e.getDataForKey(t.toString()));o=e})):(s=u,t.queueCommand(e,n(v),"set",[r,s])||(l(e.getDataForArea(v)),o=e)))}),e&&a(e),this},r.unbind=function(n){return new t.Method(this,function(){this.clearEvents();this.clearMapData(n);e(this)},null,{name:"unbind",args:arguments}).go()},r.rebind=function(n){return new t.Method(this,function(){var t=this;t.complete=!1;t.configureOptions(n);t.bindImages().then(function(){t.buildDataset(!0);t.complete=!0})},null,{name:"rebind",args:arguments}).go()},r.get_options=function(r,u){var f=i.isBool(r)?r:u;return new t.Method(this,function(){var r=n.extend({},this.options);return f&&(r.render_select=i.updateProps({},t.render_defaults,r,r.render_select),r.render_highlight=i.updateProps({},t.render_defaults,r,r.render_highlight)),r},function(){return f?this.effectiveOptions():this.options},{name:"get_options",args:arguments,first:!0,allowAsync:!0,key:r}).go()},r.set_options=function(n){return new t.Method(this,function(){c(this,n)},null,{name:"set_options",args:arguments}).go()},r.unload=function(){for(var i=t.map_cache.length-1;i>=0;i--)t.map_cache[i]&&r.unbind.call(n(t.map_cache[i].image));r.graphics=null},r.snapshot=function(){return new t.Method(this,function(){n.each(this.data,function(n,t){t.selected=!1});this.base_canvas=this.graphics.createVisibleCanvas(this);n(this.image).before(this.base_canvas)},null,{name:"snapshot"}).go()},r.state=function(){var i,r=null;return n(this).each(function(n,u){if(u.nodeName==="IMG")return i=t.getMapData(u),i&&(r=i.state()),!1}),r},r.bind=function(i){return this.each(function(u,e){var s,c,h,o;if(s=n(e),o=t.getMapData(e),o){if(r.unbind.apply(s),!o.complete)return s.bind(),!0;o=null}if(h=this.getAttribute("usemap"),c=h&&n('map[name="'+h.substr(1)+'"]'),!(s.is("img")&&h&&c.size()>0))return!0;s.css("border",0);o||(o=new t.MapData(this,i),o.index=f(o),o.map=c,o.bindImages().then(function(){o.initialize()}))})},r.init=function(r){var f,e;t.hasCanvas=function(){return i.isBool(t.hasCanvas.value)||(t.hasCanvas.value=i.isBool(r)?r:s()),t.hasCanvas.value};t.hasVml=function(){if(!i.isBool(t.hasVml.value)){var r=u();r&&!r.v&&(r.add("v","urn:schemas-microsoft-com:vml"),f=document.createStyleSheet(),e=["shape","rect","oval","circ","fill","stroke","imagedata","group","textbox"],n.each(e,function(n,t){f.addRule("v\\:"+t,"behavior: url(#default#VML); antialias:true")}));t.hasVml.value=o()}return t.hasVml.value};t.isTouch=!!document.documentElement.ontouchstart;i.indexOf=Array.prototype.indexOf||i.indexOf;n.extend(t.defaults,t.render_defaults,t.shared_defaults);n.extend(t.area_defaults,t.render_defaults,t.shared_defaults)},r.test=function(obj){return eval(obj)},r}();n.mapster.impl.init()}(jQuery),function(n){function o(t,i,r){var u=t,e=u.map_data,f=r.isMask;n.each(i.areas(),function(n,t){r.isMask=f||t.nohref&&e.options.noHrefIsMask;u.addShape(t,r)});r.isMask=f}function u(n){return Math.max(0,Math.min(parseInt(n,16),255))}function s(n,t){return"rgba("+u(n.substr(0,2))+","+u(n.substr(2,2))+","+u(n.substr(4,2))+","+t+")"}function h(){}var i,t=n.mapster,r=t.utils,f,e;t.Graphics=function(n){var t=this;t.active=!1;t.canvas=null;t.width=0;t.height=0;t.shapes=[];t.masks=[];t.map_data=n};i=t.Graphics.prototype={constructor:t.Graphics,begin:function(t,i){var r=n(t);this.elementName=i;this.canvas=t;this.width=r.width();this.height=r.height();this.shapes=[];this.masks=[];this.active=!0},addShape:function(n,t){var i=t.isMask?this.masks:this.shapes;i.push({mapArea:n,options:t})},createVisibleCanvas:function(i){return n(this.createCanvasFor(i)).addClass("mapster_el").css(t.canvas_style)[0]},addShapeGroup:function(i,u,f){var h=this,l,a,s,c=this.map_data,e=i.effectiveRenderOptions(u);f&&n.extend(e,f);u==="select"?(a="static_"+i.areaId.toString(),s=c.base_canvas):s=c.overlay_canvas;h.begin(s,a);e.includeKeys&&(l=r.split(e.includeKeys),n.each(l,function(n,t){var i=c.getDataForKey(t.toString());o(h,i,i.effectiveRenderOptions(u))}));o(h,i,e);h.render();e.fade&&r.fader(t.hasCanvas()?s:n(s).find("._fill").not(".mapster_mask"),0,t.hasCanvas()?1:e.fillOpacity,e.fadeDuration)}};f={renderShape:function(n,t,i){var u,r=t.coords(null,i);switch(t.shape){case"rect":n.rect(r[0],r[1],r[2]-r[0],r[3]-r[1]);break;case"poly":for(n.moveTo(r[0],r[1]),u=2;u<t.length;u+=2)n.lineTo(r[u],r[u+1]);n.lineTo(r[0],r[1]);break;case"circ":case"circle":n.arc(r[0],r[1],r[2],0,Math.PI*2,!1)}},addAltImage:function(n,t,i,r){n.beginPath();this.renderShape(n,i);n.closePath();n.clip();n.globalAlpha=r.altImageOpacity||r.fillOpacity;n.drawImage(t,0,0,i.owner.scaleInfo.width,i.owner.scaleInfo.height)},render:function(){var u,r,i=this,f=i.map_data,o=i.masks.length,e=i.createCanvasFor(f),t=e.getContext("2d"),h=i.canvas.getContext("2d");return o&&(u=i.createCanvasFor(f),r=u.getContext("2d"),r.clearRect(0,0,u.width,u.height),n.each(i.masks,function(n,t){r.save();r.beginPath();i.renderShape(r,t.mapArea);r.closePath();r.clip();r.lineWidth=0;r.fillStyle="#000";r.fill();r.restore()})),n.each(i.shapes,function(n,r){t.save();r.options.fill&&(r.options.altImageId?i.addAltImage(t,f.images[r.options.altImageId],r.mapArea,r.options):(t.beginPath(),i.renderShape(t,r.mapArea),t.closePath(),t.fillStyle=s(r.options.fillColor,r.options.fillOpacity),t.fill()));t.restore()}),n.each(i.shapes.concat(i.masks),function(n,r){var u=r.options.strokeWidth===1?.5:0;r.options.stroke&&(t.save(),t.strokeStyle=s(r.options.strokeColor,r.options.strokeOpacity),t.lineWidth=r.options.strokeWidth,t.beginPath(),i.renderShape(t,r.mapArea,u),t.closePath(),t.stroke(),t.restore())}),o?(r.globalCompositeOperation="source-out",r.drawImage(e,0,0),h.drawImage(u,0,0)):h.drawImage(e,0,0),i.active=!1,i.canvas},createCanvasFor:function(t){return n('<canvas width="'+t.scaleInfo.width+'" height="'+t.scaleInfo.height+'"><\/canvas>')[0]},clearHighlight:function(){var n=this.map_data.overlay_canvas;n.getContext("2d").clearRect(0,0,n.width,n.height)},refreshSelections:function(){var i,t=this.map_data;i=t.base_canvas;t.base_canvas=this.createVisibleCanvas(t);n(t.base_canvas).hide();n(i).before(t.base_canvas);t.redrawSelections();n(t.base_canvas).show();n(i).remove()}};e={renderShape:function(t,i,r){var f=this,e,o,a,s,h,c,l,u=t.coords();h=f.elementName?'name="'+f.elementName+'" ':"";c=r?'class="'+r+'" ':"";s='<v:fill color="#'+i.fillColor+'" class="_fill" opacity="'+(i.fill?i.fillOpacity:0)+'" /><v:stroke class="_fill" opacity="'+i.strokeOpacity+'"/>';o=i.stroke?" strokeweight="+i.strokeWidth+' stroked="t" strokecolor="#'+i.strokeColor+'"':' stroked="f"';e=i.fill?' filled="t"':' filled="f"';switch(t.shape){case"rect":l="<v:rect "+c+h+e+o+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+u[0]+"px;top:"+u[1]+"px;width:"+(u[2]-u[0])+"px;height:"+(u[3]-u[1])+'px;">'+s+"<\/v:rect>";break;case"poly":l="<v:shape "+c+h+e+o+' coordorigin="0,0" coordsize="'+f.width+","+f.height+'" path="m '+u[0]+","+u[1]+" l "+u.slice(2).join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+f.width+"px;height:"+f.height+'px;">'+s+"<\/v:shape>";break;case"circ":case"circle":l="<v:oval "+c+h+e+o+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(u[0]-u[2])+"px;top:"+(u[1]-u[2])+"px;width:"+u[2]*2+"px;height:"+u[2]*2+'px;">'+s+"<\/v:oval>"}return a=n(l),n(f.canvas).append(a),a},render:function(){var t,i=this;return n.each(this.shapes,function(n,t){i.renderShape(t.mapArea,t.options)}),this.masks.length&&n.each(this.masks,function(n,u){t=r.updateProps({},u.options,{fillOpacity:1,fillColor:u.options.fillColorMask});i.renderShape(u.mapArea,t,"mapster_mask")}),this.active=!1,this.canvas},createCanvasFor:function(t){var i=t.scaleInfo.width,r=t.scaleInfo.height;return n('<var width="'+i+'" height="'+r+'" style="zoom:1;overflow:hidden;display:block;width:'+i+"px;height:"+r+'px;"><\/var>')[0]},clearHighlight:function(){n(this.map_data.overlay_canvas).children().remove()},removeSelections:function(t){t>=0?n(this.map_data.base_canvas).find('[name="static_'+t.toString()+'"]').remove():n(this.map_data.base_canvas).children().remove()}};n.each(["renderShape","addAltImage","render","createCanvasFor","clearHighlight","removeSelections","refreshSelections"],function(n,r){i[r]=function(n){return function(){return i[n]=(t.hasCanvas()?f[n]:e[n])||h,i[n].apply(this,arguments)}}(r)})}(jQuery),function(n){var t=n.mapster,r=t.utils,i=[];t.MapImages=function(n){this.owner=n;this.clear()};t.MapImages.prototype={constructor:t.MapImages,slice:function(){return i.slice.apply(this,arguments)},splice:function(){i.slice.apply(this.status,arguments);return i.slice.apply(this,arguments)},complete:function(){return n.inArray(!1,this.status)<0},_add:function(n){var t=i.push.call(this,n)-1;return this.status[t]=!1,t},indexOf:function(n){return r.indexOf(this,n)},clear:function(){var t=this;t.ids&&t.ids.length>0&&n.each(t.ids,function(n,i){delete t[i]});t.ids=[];t.length=0;t.status=[];t.splice(0)},add:function(t,i){var u,f,r=this;if(t){if(typeof t=="string"){if(f=t,t=r[f],typeof t=="object")return r.indexOf(t);t=n("<img />").addClass("mapster_el").hide();u=r._add(t[0]);t.bind("load",function(n){r.imageLoaded.call(r,n)}).bind("error",function(n){r.imageLoadError.call(r,n)});t.attr("src",f)}else u=r._add(n(t)[0]);if(i){if(this[i])throw i+" is already used or is not available as an altImage alias.";r.ids.push(i);r[i]=r[u]}return u}},bind:function(){var n=this,t,u=n.owner.options.configTimeout/200,i=function(){for(var t=n.length;t-->0;)if(!n.isLoaded(t))break;n.complete()?n.resolve():u-->0?n.imgTimeout=window.setTimeout(function(){i.call(n,!0)},50):n.imageLoadError.call(n)};return t=n.deferred=r.defer(),i(),t},resolve:function(){var n=this,t=n.deferred;t&&(n.deferred=null,t.resolve())},imageLoaded:function(t){var i=this,r=i.indexOf(t.target);r>=0&&(i.status[r]=!0,n.inArray(!1,i.status)<0&&i.resolve())},imageLoadError:function(n){clearTimeout(this.imgTimeout);this.triesLeft=0;var t=n?"The image "+n.target.src+" failed to load.":"The images never seemed to finish loading. You may just need to increase the configTimeout if images could take a long time to load.";throw t;},isLoaded:function(n){var t,u=this,i=u.status;return i[n]?!0:(t=u[n],i[n]=typeof t.complete!="undefined"?t.complete:!!r.imgWidth(t),i[n])}}}(jQuery),function(n){function u(t){n.extend(t,{complete:!1,map:null,base_canvas:null,overlay_canvas:null,commands:[],data:[],mapAreas:[],_xref:{},highlightId:-1,currentAreaId:-1,_tooltip_events:[],scaleInfo:null,index:-1,activeAreaEvent:null})}function f(n){return[n,n.render_highlight,n.render_select]}function e(r){var u=r.options,e=r.images;t.hasCanvas()&&(n.each(u.altImages||{},function(n,t){e.add(t,n)}),n.each([u].concat(u.areas),function(t,i){n.each(f(i),function(n,t){t&&t.altImage&&(t.altImageId=e.add(t.altImage))})}));r.area_options=i.updateProps({},t.area_defaults,u)}function r(n,t,u,f){function e(t){n.currentAreaId!==t&&n.highlightId>=0&&f.resolve()}return f=f||i.when.defer(),n.activeAreaEvent&&(window.clearTimeout(n.activeAreaEvent),n.activeAreaEvent=0),t<0?f.reject():u.owner.currentAction||t?n.activeAreaEvent=window.setTimeout(function(){return function(){r(n,0,u,f)}}(u),t||100):e(u.areaId),f}function o(n){t.hasCanvas()||this.blur();n.preventDefault()}function s(t,i){var u=t.getAllDataForArea(this),r=u.length?u[0]:null;!r||r.isNotRendered()||r.owner.currentAction||t.currentAreaId!==r.areaId&&(t.highlightId!==r.areaId&&(t.clearEffects(),r.highlight(),t.options.showToolTip&&n.each(u,function(n,t){t.effectiveOptions().toolTip&&t.showToolTip()})),t.currentAreaId=r.areaId,n.isFunction(t.options.onMouseover)&&t.options.onMouseover.call(this,{e:i,options:r.effectiveOptions(),key:r.key,selected:r.isSelected()}))}function h(t,i){var e,u=t.getDataForArea(this),f=t.options;t.currentAreaId<0||!u||(e=t.getDataForArea(i.relatedTarget),e!==u)&&(t.currentAreaId=-1,u.area=null,r(t,f.mouseoutDelay,u).then(t.clearEffects),n.isFunction(f.onMouseout)&&f.onMouseout.call(this,{e:i,options:f,key:u.key,selected:u.isSelected()}))}function c(t){var i=t.options;t.ensureNoHighlight();i.toolTipClose&&n.inArray("area-mouseout",i.toolTipClose)>=0&&t.activeToolTip&&t.clearToolTip()}function l(r,u){function v(e){var o,w;if(c=e.isSelectable()&&(e.isDeselectable()||!e.isSelected()),h=c?!e.isSelected():e.isSelected(),s=t.getBoundList(f,e.key),n.isFunction(f.onClick)&&(l=f.onClick.call(p,{e:u,listTarget:s,key:e.key,selected:h}),i.isBool(l))){if(!l)return!1;if(w=n(e.area).attr("href"),w!=="#")return window.location.href=w,!1}c&&(y=e.toggle());f.boundList&&f.boundList.length>0&&t.setBoundListProperties(f,s,e.isSelected());o=e.effectiveOptions();o.includeKeys&&(a=i.split(o.includeKeys),n.each(a,function(n,t){var i=r.getDataForKey(t.toString());i.options.isMask||v(i)}))}var y,a,s,h,c,l,p=this,e=r.getDataForArea(this),f=r.options;if(o.call(this,u),f.clickNavigate&&e.href){window.location.href=e.href;return}e&&!e.owner.currentAction&&(f=r.options,v(e))}var t=n.mapster,i=t.utils;t.MapData=function(n,i){var r=this;r.image=n;r.images=new t.MapImages(r);r.graphics=new t.Graphics(r);r.imgCssText=n.style.cssText||null;u(r);r.configureOptions(i);r.mouseover=function(n){s.call(this,r,n)};r.mouseout=function(n){h.call(this,r,n)};r.click=function(n){l.call(this,r,n)};r.clearEffects=function(n){c.call(this,r,n)}};t.MapData.prototype={constructor:t.MapData,configureOptions:function(n){this.options=i.updateProps({},t.defaults,n)},bindImages:function(){var n=this,t=n.images;return t.length>2?t.splice(2):t.length===0&&(t.add(n.image),t.add(n.image.src)),e(n),n.images.bind()},isActive:function(){return!this.complete||this.currentAction},state:function(){return{complete:this.complete,resizing:this.currentAction==="resizing",zoomed:this.zoomed,zoomedArea:this.zoomedArea,scaleInfo:this.scaleInfo}},wrapId:function(){return"mapster_wrap_"+this.index},_idFromKey:function(n){return typeof n=="string"&&this._xref.hasOwnProperty(n)?this._xref[n]:-1},getSelected:function(){var t="";return n.each(this.data,function(n,i){i.isSelected()&&(t+=(t?",":"")+this.key)}),t},getAllDataForArea:function(t,r){var f,e,o,s=this,u=n(t).filter("area").attr(s.options.mapKey);if(u)for(o=[],u=i.split(u),f=0;f<(r||u.length);f++)e=s.data[s._idFromKey(u[f])],e.area=t.length?t[0]:t,o.push(e);return o},getDataForArea:function(n){var t=this.getAllDataForArea(n,1);return t?t[0]||null:null},getDataForKey:function(n){return this.data[this._idFromKey(n)]},getKeysForGroup:function(n){var t=this.getDataForKey(n);return t?t.isPrimary?t.key:this.getPrimaryKeysForMapAreas(t.areas()).join(","):""},getPrimaryKeysForMapAreas:function(t){var i=[];return n.each(t,function(t,r){n.inArray(r.keys[0],i)<0&&i.push(r.keys[0])}),i},getData:function(n){return typeof n=="string"?this.getDataForKey(n):n&&n.mapster||i.isElement(n)?this.getDataForArea(n):null},ensureNoHighlight:function(){var n;this.highlightId>=0&&(this.graphics.clearHighlight(),n=this.data[this.highlightId],n.changeState("highlight",!1),this.setHighlightId(-1))},setHighlightId:function(n){this.highlightId=n},clearSelections:function(){n.each(this.data,function(n,t){t.selected&&t.deselect(!0)});this.removeSelectionFinish()},setAreaOptions:function(n){var r,t,u;for(n=n||[],r=n.length-1;r>=0;r--)t=n[r],t&&(u=this.getDataForKey(t.key),u&&(i.updateProps(u.options,t),i.isBool(t.selected)&&(u.selected=t.selected)))},drawSelections:function(n){for(var r=i.asArray(n),t=r.length-1;t>=0;t--)this.data[r[t]].drawSelection()},redrawSelections:function(){n.each(this.data,function(n,t){t.isSelectedOrStatic()&&t.drawSelection()})},initialize:function(){var v,y,p,f,o,c,s,h,e,w,l,a,r=this,u=r.options;if(!r.complete){for(e=n(r.image),o=e.parent().attr("id"),o&&o.length>=12&&o.substring(0,12)==="mapster_wrap"?(f=e.parent(),f.attr("id",r.wrapId())):(f=n('<div id="'+r.wrapId()+'"><\/div>'),u.wrapClass&&(u.wrapClass===!0?f.addClass(e[0].className):f.addClass(u.wrapClass))),r.wrapper=f,r.scaleInfo=a=i.scaleMap(r.images[0],r.images[1],u.scaleMap),r.base_canvas=y=r.graphics.createVisibleCanvas(r),r.overlay_canvas=p=r.graphics.createVisibleCanvas(r),v=n(r.images[1]).addClass("mapster_el "+r.images[0].className).attr({id:null,usemap:null}),h=i.size(r.images[0]),h.complete&&v.css({width:h.width,height:h.height}),r.buildDataset(),c={display:"block",position:"relative",padding:0,width:a.width,height:a.height},u.wrapCss&&n.extend(c,u.wrapCss),e.parent()[0]!==r.wrapper[0]&&e.before(r.wrapper),f.css(c),n(r.images.slice(2)).hide(),s=1;s<r.images.length;s++)f.append(r.images[s]);f.append(y).append(p).append(e.css(t.canvas_style));i.setOpacity(r.images[0],0);n(r.images[1]).show();i.setOpacity(r.images[1],1);u.isSelectable&&u.onGetList&&(l=r.data.slice(0),u.sortList&&(w=u.sortList==="desc"?function(n,t){return n===t?0:n>t?-1:1}:function(n,t){return n===t?0:n<t?-1:1},l.sort(function(n,t){return n=n.value,t=t.value,w(n,t)})),r.options.boundList=u.onGetList.call(r.image,l));r.complete=!0;r.processCommandQueue();u.onConfigured&&typeof u.onConfigured=="function"&&u.onConfigured.call(e,!0)}},buildDataset:function(i){function g(n,i){var u=new t.AreaData(r,n,i);return u.areaId=r._xref[n]=r.data.push(u)-1,u.areaId}var d,b,c,u,e,l,a,o,p,k,s,v,f,w,r=this,h=r.options,y;for(r._xref={},r.data=[],i||(r.mapAreas=[]),y=!h.mapKey,y&&(h.mapKey="data-mapster-key"),d=t.hasVml()?"area":y?"area[coords]":"area["+h.mapKey+"]",b=n(r.map).find(d).unbind(".mapster"),s=0;s<b.length;s++)if(u=0,l=b[s],e=n(l),l.coords){for(y?(a=String(s),e.attr("data-mapster-key",a)):a=l.getAttribute(h.mapKey),i?(o=r.mapAreas[e.data("mapster")-1],o.configure(a)):(o=new t.MapArea(r,l,a),r.mapAreas.push(o)),k=o.keys,c=k.length-1;c>=0;c--)p=k[c],h.mapValue&&(v=e.attr(h.mapValue)),y?(u=g(r.data.length,v),f=r.data[u],f.key=p=u.toString()):(u=r._xref[p],u>=0?(f=r.data[u],v&&!r.data[u].value&&(f.value=v)):(u=g(p,v),f=r.data[u],f.isPrimary=c===0)),o.areaDataXref.push(u),f.areasXref.push(s);w=e.attr("href");w&&w!=="#"&&!f.href&&(f.href=w);o.nohref||e.bind("click.mapster",r.click).bind("mouseover.mapster",r.mouseover).bind("mouseout.mapster",r.mouseout).bind("mousedown.mapster",r.mousedown);e.data("mapster",s+1)}r.setAreaOptions(h.areas);r.redrawSelections()},processCommandQueue:function(){for(var n,i=this;!i.currentAction&&i.commands.length;)n=i.commands[0],i.commands.splice(0,1),t.impl[n.command].apply(n.that,n.args)},clearEvents:function(){n(this.map).find("area").unbind(".mapster");n(this.images).unbind(".mapster")},_clearCanvases:function(t){t||n(this.base_canvas).remove();n(this.overlay_canvas).remove()},clearMapData:function(t){var r=this;this._clearCanvases(t);n.each(this.data,function(n,t){t.reset()});this.data=null;t||(this.image.style.cssText=this.imgCssText,n(this.wrapper).before(this.image).remove());r.images.clear();this.image=null;i.ifFunction(this.clearTooltip,this)},removeSelectionFinish:function(){var n=this.graphics;n.refreshSelections();n.clearHighlight()}}}(jQuery),function(n){function r(t){var i=this,r=i.owner;r.options.singleSelect&&r.clearSelections();i.isSelected()||(t&&(i.optsCache=n.extend(i.effectiveRenderOptions("select"),t,{altImageId:r.images.add(t.altImage)})),i.drawSelection(),i.selected=!0,i.changeState("select",!0));r.options.singleSelect&&r.graphics.refreshSelections()}function u(n){var t=this;t.selected=!1;t.changeState("select",!1);t.optsCache=null;t.owner.graphics.removeSelections(t.areaId);n||t.owner.removeSelectionFinish()}function f(n){var t=this;return t.isSelected()?t.deselect():t.select(n),t.isSelected()}var i=n.mapster,t=i.utils;i.AreaData=function(t,i,r){n.extend(this,{owner:t,key:i||"",isPrimary:!0,areaId:-1,href:"",value:r||"",options:{},selected:null,areasXref:[],area:null,optsCache:null})};i.AreaData.prototype={constuctor:i.AreaData,select:r,deselect:u,toggle:f,areas:function(){for(var t=[],n=0;n<this.areasXref.length;n++)t.push(this.owner.mapAreas[this.areasXref[n]]);return t},coords:function(t){var i=[];return n.each(this.areas(),function(n,r){i=i.concat(r.coords(t))}),i},reset:function(){n.each(this.areas(),function(n,t){t.reset()});this.areasXref=[];this.options=null},isSelectedOrStatic:function(){var n=this.effectiveOptions();return t.isBool(n.staticState)?n.staticState:this.isSelected()},isSelected:function(){return t.isBool(this.selected)?this.selected:t.isBool(this.owner.area_options.selected)?this.owner.area_options.selected:!1},isSelectable:function(){return t.isBool(this.effectiveOptions().staticState)?!1:t.isBool(this.owner.options.staticState)?!1:t.boolOrDefault(this.effectiveOptions().isSelectable,!0)},isDeselectable:function(){return t.isBool(this.effectiveOptions().staticState)?!1:t.isBool(this.owner.options.staticState)?!1:t.boolOrDefault(this.effectiveOptions().isDeselectable,!0)},isNotRendered:function(){var t=n(this.area);return t.attr("nohref")||!t.attr("href")||this.effectiveOptions().isMask},effectiveOptions:function(n){var i=t.updateProps({},this.owner.area_options,this.options,n||{},{id:this.areaId});return i.selected=this.isSelected(),i},effectiveRenderOptions:function(i,r){var f,u=this.optsCache;return u&&i!=="highlight"||(f=this.effectiveOptions(r),u=t.updateProps({},f,f["render_"+i]),i!=="highlight"&&(this.optsCache=u)),n.extend({},u)},changeState:function(t,i){n.isFunction(this.owner.options.onStateChange)&&this.owner.options.onStateChange.call(this.owner.image,{key:this.key,state:t,selected:i})},highlight:function(n){var t=this.owner;this.effectiveOptions().highlight&&t.graphics.addShapeGroup(this,"highlight",n);t.setHighlightId(this.areaId);this.changeState("highlight",!0)},drawSelection:function(){this.owner.graphics.addShapeGroup(this,"select")}};i.MapArea=function(i,r,u){if(i){var f=this;f.owner=i;f.area=r;f.areaDataXref=[];f.originalCoords=[];n.each(t.split(r.coords),function(n,t){f.originalCoords.push(parseFloat(t))});f.length=f.originalCoords.length;f.shape=r.shape.toLowerCase();f.nohref=r.nohref||!r.href;f.configure(u)}};i.MapArea.prototype={constructor:i.MapArea,configure:function(n){this.keys=t.split(n)},reset:function(){this.area=null},coords:function(t){return n.map(this.originalCoords,function(n){return t?n:n+t})}}}(jQuery),function(n){var t=n.mapster.utils;t.areaCorners=function(i,r,u,f,e){var s,k,w,b,y,p,d,g,nt,tt,a,v,it,o,ft=0,et=0,ot,st,c,rt,ut,l,h=[];for(i=i.length?i:[i],u=u?n(u):n(document.body),s=u.offset(),ot=s.left,st=s.top,r&&(s=n(r).offset(),ft=s.left,et=s.top),o=0;o<i.length;o++)if(l=i[o],l.nodeName==="AREA"){c=t.split(l.coords,parseInt);switch(l.shape){case"circle":for(a=c[0],v=c[1],rt=c[2],h=[],o=0;o<360;o+=20)ut=o*Math.PI/180,h.push(a+rt*Math.cos(ut),v+rt*Math.sin(ut));break;case"rect":h.push(c[0],c[1],c[2],c[1],c[2],c[3],c[0],c[3]);break;default:h=h.concat(c)}for(o=0;o<h.length;o+=2)h[o]=parseInt(h[o],10)+ft,h[o+1]=parseInt(h[o+1],10)+et}else l=n(l),s=l.position(),h.push(s.left,s.top,s.left+l.width(),s.top,s.left+l.width(),s.top+l.height(),s.left,s.top+l.height());for(w=b=d=nt=999999,y=p=g=tt=-1,o=h.length-2;o>=0;o-=2)a=h[o],v=h[o+1],a<w&&(w=a,tt=v),a>y&&(y=a,nt=v),v<b&&(b=v,g=a),v>p&&(p=v,d=a);return f&&e&&(k=!1,n.each([[g-f,b-e],[d,b-e],[w-f,tt-e],[w-f,nt],[y,tt-e],[y,nt],[g-f,p],[d,p]],function(n,t){if(!k&&t[0]>ot&&t[1]>st)return it=t,k=!0,!1}),k||(it=[y,p])),it}}(jQuery),function(n){var t=n.mapster,i=t.utils,r=t.MapArea.prototype;t.utils.getScaleInfo=function(n,t){var i;return t?(i=n.width/t.width||n.height/t.height,i>.98&&i<1.02&&(i=1)):(i=1,t=n),{scale:i!==1,scalePct:i,realWidth:t.width,realHeight:t.height,width:n.width,height:n.height,ratio:n.width/n.height}};t.utils.scaleMap=function(n,t,r){var u=i.size(n),f=i.size(t,!0);if(!f.complete())throw"Another script, such as an extension, appears to be interfering with image loading. Please let us know about this.";return u.complete()||(u=f),this.getScaleInfo(u,r?f:null)};t.MapData.prototype.resize=function(r,u,f,e){function y(i,r,u){t.hasCanvas()?(i.width=r,i.height=u):(n(i).width(r),n(i).height(u))}function b(){o.currentAction="";n.isFunction(e)&&e();o.processCommandQueue()}function p(){if(y(o.overlay_canvas,r,u),v>=0){var n=o.data[v];n.tempOptions={fade:!1};o.getDataForKey(n.key).highlight();n.tempOptions=null}y(o.base_canvas,r,u);o.redrawSelections();b()}function w(){n(o.image).css(c);o.scaleInfo=i.getScaleInfo({width:r,height:u},{width:o.scaleInfo.realWidth,height:o.scaleInfo.realHeight});n.each(o.data,function(t,i){n.each(i.areas(),function(n,t){t.resize()})})}var s,h,c,a,v,l,o=this;(e=e||f,o.scaleInfo.width!==r||o.scaleInfo.height!==u)&&(v=o.highlightId,r||(l=u/o.scaleInfo.realHeight,r=Math.round(o.scaleInfo.realWidth*l)),u||(l=r/o.scaleInfo.realWidth,u=Math.round(o.scaleInfo.realHeight*l)),c={width:String(r)+"px",height:String(u)+"px"},t.hasCanvas()||n(o.base_canvas).children().remove(),a=n(o.wrapper).find(".mapster_el").add(o.wrapper),f?(h=[],o.currentAction="resizing",a.each(function(t,r){s=i.defer();h.push(s);n(r).animate(c,{duration:f,complete:s.resolve,easing:"linear"})}),s=i.defer(),h.push(s),i.when.all(h).then(p),w(),s.resolve()):(a.css(c),w(),p()))};t.MapArea=i.subclass(t.MapArea,function(){this.base.init();this.owner.scaleInfo.scale&&this.resize()});r.coords=function(n,t){var i,r=[],u=n||this.owner.scaleInfo.scalePct,f=t||0;if(u===1&&t===0)return this.originalCoords;for(i=0;i<this.length;i++)r.push(Math.round(this.originalCoords[i]*u)+f);return r};r.resize=function(){this.area.coords=this.coords().join(",")};r.reset=function(){this.area.coords=this.coords(1).join(",")};t.impl.resize=function(n,i,r,u){if(!n&&!i)return!1;return new t.Method(this,function(){this.resize(n,i,r,u)},null,{name:"resize",args:arguments}).go()}}(jQuery),function(n){function u(t,i,r){var u;return i?(u=typeof i=="string"?n(i):n(i).clone(),u.append(t)):u=n(t),u.css(n.extend(r||{},{display:"block",position:"absolute"})).hide(),n("body").append(u),u.attr("data-opacity",u.css("opacity")).css("opacity",0),u.show()}function o(n,t){var r={left:t.left+"px",top:t.top+"px"},u=n.attr("data-opacity")||0,f=n.css("z-index");(parseInt(f,10)===0||f==="auto")&&(r["z-index"]=9999);n.css(r).addClass("mapster_tooltip");t.fadeDuration&&t.fadeDuration>0?i.fader(n[0],0,u,t.fadeDuration):i.setOpacity(n[0],u)}function r(t,i,r,u,f,e){var o=r+".mapster-tooltip";if(n.inArray(i,t)>=0)return u.unbind(o).bind(o,function(n){(!f||f.call(this,n))&&(u.unbind(".mapster-tooltip"),e&&e.call(this))}),{object:u,event:o}}function f(n,t,r,u,f){var s,e={};return f=f||{},t?(s=i.areaCorners(t,r,u,n.outerWidth(!0),n.outerHeight(!0)),e.left=s[0],e.top=s[1]):(e.left=f.left,e.top=f.top),e.left+=f.offsetx||0,e.top+=f.offsety||0,e.css=f.css,e.fadeDuration=f.fadeDuration,o(n,e),n}function e(n){return n?typeof n=="string"||n.jquery?n:n.content:null}var t=n.mapster,i=t.utils;n.extend(t.defaults,{toolTipContainer:'<div style="border: 2px solid black; background: #EEEEEE; width:160px; padding:4px; margin: 4px; -moz-box-shadow: 3px 3px 5px #535353; -webkit-box-shadow: 3px 3px 5px #535353; box-shadow: 3px 3px 5px #535353; -moz-border-radius: 6px 6px 6px 6px; -webkit-border-radius: 6px; border-radius: 6px 6px 6px 6px; opacity: 0.9;"><\/div>',showToolTip:!1,toolTipFade:!0,toolTipClose:["area-mouseout","image-mouseout"],onShowToolTip:null,onHideToolTip:null});n.extend(t.area_defaults,{toolTip:null,toolTipClose:null});t.MapData.prototype.clearToolTip=function(){this.activeToolTip&&(this.activeToolTip.stop().remove(),this.activeToolTip=null,this.activeToolTipID=null,i.ifFunction(this.options.onHideToolTip,this))};t.AreaData.prototype.showToolTip=function(t,e){var c,h,y,l,v,s=this,o=s.owner,a=s.effectiveOptions();if(e=e?n.extend({},e):{},t=t||a.toolTip,h=e.closeEvents||a.toolTipClose||o.options.toolTipClose||"tooltip-click",v=typeof e.template!="undefined"?e.template:o.options.toolTipContainer,e.closeEvents=typeof h=="string"?h=i.split(h):h,e.fadeDuration=e.fadeDuration||(o.options.toolTipFade?o.options.fadeDuration||a.fadeDuration:0),y=s.area?s.area:n.map(s.areas(),function(n){return n.area}),o.activeToolTipID!==s.areaId)return o.clearToolTip(),o.activeToolTip=c=u(t,v,e.css),o.activeToolTipID=s.areaId,l=function(){o.clearToolTip()},r(h,"area-click","click",n(o.map),null,l),r(h,"tooltip-click","click",c,null,l),r(h,"image-mouseout","mouseout",n(o.image),function(n){return n.relatedTarget&&n.relatedTarget.nodeName!=="AREA"&&n.relatedTarget!==s.area},l),f(c,y,o.image,e.container,v,e),i.ifFunction(o.options.onShowToolTip,s.area,{toolTip:c,options:{},areaOptions:a,key:s.key,selected:s.isSelected()}),c};t.impl.tooltip=function(i,o){return new t.Method(this,function(){var s,h,t=this;if(i){if(h=n(i),t.activeToolTipID===h[0])return;t.clearToolTip();t.activeToolTip=s=u(e(o),o.template||t.options.toolTipContainer,o.css);t.activeToolTipID=h[0];r(["tooltip-click"],"tooltip-click","click",s,null,function(){t.clearToolTip()});t.activeToolTip=s=f(s,h,t.image,o.container,o)}else t.clearToolTip()},function(){n.isPlainObject(i)&&!o&&(o=i);this.showToolTip(e(o),o)},{name:"tooltip",args:arguments,key:i}).go()}}(jQuery);Function.__typeName="Function";Function.__class=!0;Function.createCallback=function(n,t){return function(){var u=arguments.length,r,i;if(u>0){for(r=[],i=0;i<u;i++)r[i]=arguments[i];return r[u]=t,n.apply(this,r)}return n.call(this,t)}};Function.createDelegate=function(n,t){return function(){return t.apply(n,arguments)}};Function.emptyFunction=Function.emptyMethod=function(){};Function.validateParameters=function(n,t,i){return Function._validateParams(n,t,i)};Function._validateParams=function(n,t,i){var r,e=t.length,u,s,f,o;if(i=i||typeof i=="undefined",r=Function._validateParameterCount(n,t,i),r)return r.popStackFrame(),r;for(u=0,s=n.length;u<s;u++){if(f=t[Math.min(u,e-1)],o=f.name,f.parameterArray)o+="["+(u-e+1)+"]";else if(!i&&u>=e)break;if(r=Function._validateParameter(n[u],f,o),r)return r.popStackFrame(),r}return null};Function._validateParameterCount=function(n,t,i){var r,f,u=t.length,e=n.length,o,s,h;if(e<u){for(o=u,r=0;r<u;r++)s=t[r],(s.optional||s.parameterArray)&&o--;e<o&&(f=!0)}else if(i&&e>u)for(f=!0,r=0;r<u;r++)if(t[r].parameterArray){f=!1;break}return f?(h=Error.parameterCount(),h.popStackFrame(),h):null};Function._validateParameter=function(n,t,i){var r,o=t.type,l=!!t.integer,a=!!t.domElement,v=!!t.mayBeNull,f,e,s,h,u,c;if(r=Function._validateParameterType(n,o,l,a,v,i),r)return r.popStackFrame(),r;if(f=t.elementType,e=!!t.elementMayBeNull,o===Array&&typeof n!="undefined"&&n!==null&&(f||!e))for(s=!!t.elementInteger,h=!!t.elementDomElement,u=0;u<n.length;u++)if(c=n[u],r=Function._validateParameterType(c,f,s,h,e,i+"["+u+"]"),r)return r.popStackFrame(),r;return null};Function._validateParameterType=function(n,t,i,r,u,f){var e,h,o,c,s;if(typeof n=="undefined")return u?null:(e=Error.argumentUndefined(f),e.popStackFrame(),e);if(n===null)return u?null:(e=Error.argumentNull(f),e.popStackFrame(),e);if(t&&t.__enum){if(typeof n!="number")return e=Error.argumentType(f,Object.getType(n),t),e.popStackFrame(),e;if(n%1==0)if(o=t.prototype,t.__flags&&n!==0){c=n;for(h in o)if((s=o[h],s!==0)&&((s&n)===s&&(c-=s),c===0))return null}else for(h in o)if(o[h]===n)return null;return e=Error.argumentOutOfRange(f,n,String.format(Sys.Res.enumInvalidValue,n,t.getName())),e.popStackFrame(),e}return r&&(!Sys._isDomElement(n)||n.nodeType===3)?(e=Error.argument(f,Sys.Res.argumentDomElement),e.popStackFrame(),e):t&&!Sys._isInstanceOfType(t,n)?(e=Error.argumentType(f,Object.getType(n),t),e.popStackFrame(),e):t===Number&&i&&n%1!=0?(e=Error.argumentOutOfRange(f,n,Sys.Res.argumentInteger),e.popStackFrame(),e):null};Error.__typeName="Error";Error.__class=!0;Error.create=function(n,t){var i=new Error(n),r;if(i.message=n,t)for(r in t)i[r]=t[r];return i.popStackFrame(),i};Error.argument=function(n,t){var r="Sys.ArgumentException: "+(t?t:Sys.Res.argument),i;return n&&(r+="\n"+String.format(Sys.Res.paramName,n)),i=Error.create(r,{name:"Sys.ArgumentException",paramName:n}),i.popStackFrame(),i};Error.argumentNull=function(n,t){var r="Sys.ArgumentNullException: "+(t?t:Sys.Res.argumentNull),i;return n&&(r+="\n"+String.format(Sys.Res.paramName,n)),i=Error.create(r,{name:"Sys.ArgumentNullException",paramName:n}),i.popStackFrame(),i};Error.argumentOutOfRange=function(n,t,i){var r="Sys.ArgumentOutOfRangeException: "+(i?i:Sys.Res.argumentOutOfRange),u;return n&&(r+="\n"+String.format(Sys.Res.paramName,n)),typeof t!="undefined"&&t!==null&&(r+="\n"+String.format(Sys.Res.actualValue,t)),u=Error.create(r,{name:"Sys.ArgumentOutOfRangeException",paramName:n,actualValue:t}),u.popStackFrame(),u};Error.argumentType=function(n,t,i,r){var u="Sys.ArgumentTypeException: ",f;return u+=r?r:t&&i?String.format(Sys.Res.argumentTypeWithTypes,t.getName(),i.getName()):Sys.Res.argumentType,n&&(u+="\n"+String.format(Sys.Res.paramName,n)),f=Error.create(u,{name:"Sys.ArgumentTypeException",paramName:n,actualType:t,expectedType:i}),f.popStackFrame(),f};Error.argumentUndefined=function(n,t){var r="Sys.ArgumentUndefinedException: "+(t?t:Sys.Res.argumentUndefined),i;return n&&(r+="\n"+String.format(Sys.Res.paramName,n)),i=Error.create(r,{name:"Sys.ArgumentUndefinedException",paramName:n}),i.popStackFrame(),i};Error.format=function(n){var i="Sys.FormatException: "+(n?n:Sys.Res.format),t=Error.create(i,{name:"Sys.FormatException"});return t.popStackFrame(),t};Error.invalidOperation=function(n){var i="Sys.InvalidOperationException: "+(n?n:Sys.Res.invalidOperation),t=Error.create(i,{name:"Sys.InvalidOperationException"});return t.popStackFrame(),t};Error.notImplemented=function(n){var i="Sys.NotImplementedException: "+(n?n:Sys.Res.notImplemented),t=Error.create(i,{name:"Sys.NotImplementedException"});return t.popStackFrame(),t};Error.parameterCount=function(n){var i="Sys.ParameterCountException: "+(n?n:Sys.Res.parameterCount),t=Error.create(i,{name:"Sys.ParameterCountException"});return t.popStackFrame(),t};Error.prototype.popStackFrame=function(){var r,t;if(typeof this.stack!="undefined"&&this.stack!==null&&typeof this.fileName!="undefined"&&this.fileName!==null&&typeof this.lineNumber!="undefined"&&this.lineNumber!==null){for(var n=this.stack.split("\n"),i=n[0],u=this.fileName+":"+this.lineNumber;typeof i!="undefined"&&i!==null&&i.indexOf(u)===-1;)n.shift(),i=n[0];(r=n[1],typeof r!="undefined"&&r!==null)&&(t=r.match(/@(.*):(\d+)$/),typeof t!="undefined"&&t!==null)&&(this.fileName=t[1],this.lineNumber=parseInt(t[2]),n.shift(),this.stack=n.join("\n"))}};Object.__typeName="Object";Object.__class=!0;Object.getType=function(n){var t=n.constructor;return!t||typeof t!="function"||!t.__typeName||t.__typeName==="Object"?Object:t};Object.getTypeName=function(n){return Object.getType(n).getName()};String.__typeName="String";String.__class=!0;String.prototype.endsWith=function(n){return this.substr(this.length-n.length)===n};String.prototype.startsWith=function(n){return this.substr(0,n.length)===n};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.trimEnd=function(){return this.replace(/\s+$/,"")};String.prototype.trimStart=function(){return this.replace(/^\s+/,"")};String.format=function(){return String._toFormattedString(!1,arguments)};String._toFormattedString=function(n,t){for(var o,u,e="",f=t[0],i=0;;){if(o=f.indexOf("{",i),u=f.indexOf("}",i),o<0&&u<0){e+=f.slice(i);break}if(u>0&&(u<o||o<0)){e+=f.slice(i,u+1);i=u+2;continue}if(e+=f.slice(i,o),i=o+1,f.charAt(i)==="{"){e+="{";i++;continue}if(u<0)break;var s=f.substring(i,u),h=s.indexOf(":"),l=parseInt(h<0?s:s.substring(0,h),10)+1,c=h<0?"":s.substring(h+1),r=t[l];(typeof r=="undefined"||r===null)&&(r="");e+=r.toFormattedString?r.toFormattedString(c):n&&r.localeFormat?r.localeFormat(c):r.format?r.format(c):r.toString();i=u+1}return e};Boolean.__typeName="Boolean";Boolean.__class=!0;Boolean.parse=function(n){var t=n.trim().toLowerCase();return t==="false"?!1:t==="true"?!0:void 0};Date.__typeName="Date";Date.__class=!0;Number.__typeName="Number";Number.__class=!0;RegExp.__typeName="RegExp";RegExp.__class=!0;window||(this.window=this);window.Type=Function;Type.prototype.callBaseMethod=function(n,t,i){var r=Sys._getBaseMethod(this,n,t);return i?r.apply(n,i):r.apply(n)};Type.prototype.getBaseMethod=function(n,t){return Sys._getBaseMethod(this,n,t)};Type.prototype.getBaseType=function(){return typeof this.__baseType=="undefined"?null:this.__baseType};Type.prototype.getInterfaces=function(){for(var n=[],t=this,i,r,f,u;t;){if(i=t.__interfaces,i)for(r=0,f=i.length;r<f;r++)u=i[r],Array.contains(n,u)||(n[n.length]=u);t=t.__baseType}return n};Type.prototype.getName=function(){return typeof this.__typeName=="undefined"?"":this.__typeName};Type.prototype.implementsInterface=function(n){var r,t,u,i,f;if(this.resolveInheritance(),r=n.getName(),t=this.__interfaceCache,t){if(u=t[r],typeof u!="undefined")return u}else t=this.__interfaceCache={};for(i=this;i;){if(f=i.__interfaces,f&&Array.indexOf(f,n)!==-1)return t[r]=!0;i=i.__baseType}return t[r]=!1};Type.prototype.inheritsFrom=function(n){this.resolveInheritance();for(var t=this.__baseType;t;){if(t===n)return!0;t=t.__baseType}return!1};Type.prototype.initializeBase=function(n,t){return this.resolveInheritance(),this.__baseType&&(t?this.__baseType.apply(n,t):this.__baseType.apply(n)),n};Type.prototype.isImplementedBy=function(n){if(typeof n=="undefined"||n===null)return!1;var t=Object.getType(n);return!!(t.implementsInterface&&t.implementsInterface(this))};Type.prototype.isInstanceOfType=function(n){return Sys._isInstanceOfType(this,n)};Type.prototype.registerClass=function(n,t,i){var r,u,f;if(this.prototype.constructor=this,this.__typeName=n,this.__class=!0,t&&(this.__baseType=t,this.__basePrototypePending=!0),Sys.__upperCaseTypes[n.toUpperCase()]=this,i)for(this.__interfaces=[],r=2,u=arguments.length;r<u;r++)f=arguments[r],this.__interfaces.push(f);return this};Type.prototype.registerInterface=function(n){return Sys.__upperCaseTypes[n.toUpperCase()]=this,this.prototype.constructor=this,this.__typeName=n,this.__interface=!0,this};Type.prototype.resolveInheritance=function(){var n,t,i;if(this.__basePrototypePending){n=this.__baseType;n.resolveInheritance();for(t in n.prototype)i=n.prototype[t],this.prototype[t]||(this.prototype[t]=i);delete this.__basePrototypePending}};Type.getRootNamespaces=function(){return Array.clone(Sys.__rootNamespaces)};Type.isClass=function(n){return typeof n=="undefined"||n===null?!1:!!n.__class};Type.isInterface=function(n){return typeof n=="undefined"||n===null?!1:!!n.__interface};Type.isNamespace=function(n){return typeof n=="undefined"||n===null?!1:!!n.__namespace};Type.parse=function(typeName,ns){var fn;return ns?(fn=Sys.__upperCaseTypes[ns.getName().toUpperCase()+"."+typeName.toUpperCase()],fn||null):typeName?(Type.__htClasses||(Type.__htClasses={}),fn=Type.__htClasses[typeName],fn||(fn=eval(typeName),Type.__htClasses[typeName]=fn),fn):null};Type.registerNamespace=function(n){for(var f,t,r=window,u=n.split("."),i=0;i<u.length;i++)f=u[i],t=r[f],t||(t=r[f]={}),t.__namespace||(i===0&&n!=="Sys"&&(Sys.__rootNamespaces[Sys.__rootNamespaces.length]=t),t.__namespace=!0,t.__typeName=u.slice(0,i+1).join("."),t.getName=function(){return this.__typeName}),r=t};Type._checkDependency=function(n,t){var i=Type._registerScript._scripts,r=i?!!i[n]:!1;if(typeof t!="undefined"&&!r)throw Error.invalidOperation(String.format(Sys.Res.requiredScriptReferenceNotIncluded,t,n));return r};Type._registerScript=function(n,t){var i=Type._registerScript._scripts,r,f,u;if(i||(Type._registerScript._scripts=i={}),i[n])throw Error.invalidOperation(String.format(Sys.Res.scriptAlreadyLoaded,n));if(i[n]=!0,t)for(r=0,f=t.length;r<f;r++)if(u=t[r],!Type._checkDependency(u))throw Error.invalidOperation(String.format(Sys.Res.scriptDependencyNotFound,n,u));};Type.registerNamespace("Sys");Sys.__upperCaseTypes={};Sys.__rootNamespaces=[Sys];Sys._isInstanceOfType=function(n,t){if(typeof t=="undefined"||t===null)return!1;if(t instanceof n)return!0;var i=Object.getType(t);return!!(i===n)||i.inheritsFrom&&i.inheritsFrom(n)||i.implementsInterface&&i.implementsInterface(n)};Sys._getBaseMethod=function(n,t,i){var u=n.getBaseType(),r;return u?(r=u.prototype[i],r instanceof Function?r:null):null};Sys._isDomElement=function(n){var i=!1,t,r;return typeof n.nodeType!="number"&&(t=n.ownerDocument||n.document||n,t!=n?(r=t.defaultView||t.parentWindow,i=r!=n):i=typeof t.body=="undefined"),!i};Array.__typeName="Array";Array.__class=!0;Array.add=Array.enqueue=function(n,t){n[n.length]=t};Array.addRange=function(n,t){n.push.apply(n,t)};Array.clear=function(n){n.length=0};Array.clone=function(n){return n.length===1?[n[0]]:Array.apply(null,n)};Array.contains=function(n,t){return Sys._indexOf(n,t)>=0};Array.dequeue=function(n){return n.shift()};Array.forEach=function(n,t,i){for(var u,r=0,f=n.length;r<f;r++)u=n[r],typeof u!="undefined"&&t.call(i,u,r,n)};Array.indexOf=function(n,t,i){return Sys._indexOf(n,t,i)};Array.insert=function(n,t,i){n.splice(t,0,i)};Array.parse=function(value){return value?eval(value):[]};Array.remove=function(n,t){var i=Sys._indexOf(n,t);return i>=0&&n.splice(i,1),i>=0};Array.removeAt=function(n,t){n.splice(t,1)};Sys._indexOf=function(n,t,i){var u,r;if(typeof t=="undefined")return-1;if(u=n.length,u!==0)for(i=+i,isNaN(i)?i=0:(isFinite(i)&&(i=i-i%1),i<0&&(i=Math.max(0,u+i))),r=i;r<u;r++)if(typeof n[r]!="undefined"&&n[r]===t)return r;return-1};Type._registerScript._scripts={"MicrosoftAjaxCore.js":!0,"MicrosoftAjaxGlobalization.js":!0,"MicrosoftAjaxSerialization.js":!0,"MicrosoftAjaxComponentModel.js":!0,"MicrosoftAjaxHistory.js":!0,"MicrosoftAjaxNetwork.js":!0,"MicrosoftAjaxWebServices.js":!0};Sys.IDisposable=function(){};Sys.IDisposable.prototype={};Sys.IDisposable.registerInterface("Sys.IDisposable");Sys.StringBuilder=function(n){this._parts=typeof n!="undefined"&&n!==null&&n!==""?[n.toString()]:[];this._value={};this._len=0};Sys.StringBuilder.prototype={append:function(n){this._parts[this._parts.length]=n},appendLine:function(n){this._parts[this._parts.length]=typeof n=="undefined"||n===null||n===""?"\r\n":n+"\r\n"},clear:function(){this._parts=[];this._value={};this._len=0},isEmpty:function(){return this._parts.length===0?!0:this.toString()===""},toString:function(n){var t,r,i;if(n=n||"",t=this._parts,this._len!==t.length&&(this._value={},this._len=t.length),r=this._value,typeof r[n]=="undefined"){if(n!=="")for(i=0;i<t.length;)typeof t[i]=="undefined"||t[i]===""||t[i]===null?t.splice(i,1):i++;r[n]=this._parts.join(n)}return r[n]}};Sys.StringBuilder.registerClass("Sys.StringBuilder");Sys.Browser={};Sys.Browser.InternetExplorer={};Sys.Browser.Firefox={};Sys.Browser.Safari={};Sys.Browser.Opera={};Sys.Browser.agent=null;Sys.Browser.hasDebuggerStatement=!1;Sys.Browser.name=navigator.appName;Sys.Browser.version=parseFloat(navigator.appVersion);Sys.Browser.documentMode=0;navigator.userAgent.indexOf(" MSIE ")>-1?(Sys.Browser.agent=Sys.Browser.InternetExplorer,Sys.Browser.version=parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]),Sys.Browser.version>=8&&document.documentMode>=7&&(Sys.Browser.documentMode=document.documentMode),Sys.Browser.hasDebuggerStatement=!0):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=!0):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"):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=!1};Sys.CancelEventArgs.prototype={get_cancel:function(){return this._cancel},set_cancel:function(n){this._cancel=n}};Sys.CancelEventArgs.registerClass("Sys.CancelEventArgs",Sys.EventArgs);Type.registerNamespace("Sys.UI");Sys._Debug=function(){};Sys._Debug.prototype={_appendConsole:function(n){typeof Debug!="undefined"&&Debug.writeln&&Debug.writeln(n);window.console&&window.console.log&&window.console.log(n);window.opera&&window.opera.postError(n);window.debugService&&window.debugService.trace(n)},_appendTrace:function(n){var t=document.getElementById("TraceConsole");t&&t.tagName.toUpperCase()==="TEXTAREA"&&(t.value+=n+"\n")},assert:function(n,t,i){n||(t=i&&this.assert.caller?String.format(Sys.Res.assertFailedCaller,t,this.assert.caller):String.format(Sys.Res.assertFailed,t),confirm(String.format(Sys.Res.breakIntoDebugger,t))&&this.fail(t))},clearTrace:function(){var n=document.getElementById("TraceConsole");n&&n.tagName.toUpperCase()==="TEXTAREA"&&(n.value="")},fail:function(message){this._appendConsole(message);Sys.Browser.hasDebuggerStatement&&eval("debugger")},trace:function(n){this._appendConsole(n);this._appendTrace(n)},traceDump:function(n,t){var i=this._traceDump(n,t,!0)},_traceDump:function(n,t,i,r,u){var e,o,f,c,s,h;if(t=t?t:"traceDump",r=r?r:"",n===null){this.trace(r+t+": null");return}switch(typeof n){case"undefined":this.trace(r+t+": Undefined");break;case"number":case"string":case"boolean":this.trace(r+t+": "+n);break;default:if(Date.isInstanceOfType(n)||RegExp.isInstanceOfType(n)){this.trace(r+t+": "+n.toString());break}if(u){if(Array.contains(u,n)){this.trace(r+t+": ...");return}}else u=[];if(Array.add(u,n),n==window||n===document||window.HTMLElement&&n instanceof HTMLElement||typeof n.nodeName=="string")e=n.tagName?n.tagName:"DomElement",n.id&&(e+=" - "+n.id),this.trace(r+t+" {"+e+"}");else if(o=Object.getTypeName(n),this.trace(r+t+(typeof o=="string"?" {"+o+"}":"")),r===""||i)if(r+="    ",Array.isInstanceOfType(n))for(c=n.length,f=0;f<c;f++)this._traceDump(n[f],"["+f+"]",i,r,u);else for(s in n)h=n[s],Function.isInstanceOfType(h)||this._traceDump(h,s,i,r,u);Array.remove(u,n)}}};Sys._Debug.registerClass("Sys._Debug");Sys.Debug=new Sys._Debug;Sys.Debug.isDebug=!1;Type.prototype.registerEnum=function(n,t){Sys.__upperCaseTypes[n.toUpperCase()]=this;for(var i in this.prototype)this[i]=this.prototype[i];this.__typeName=n;this.parse=Sys$Enum$parse;this.__string=this.toString();this.toString=Sys$Enum$toString;this.__flags=t;this.__enum=!0};Type.isEnum=function(n){return typeof n=="undefined"||n===null?!1:!!n.__enum};Type.isFlags=function(n){return typeof n=="undefined"||n===null?!1:!!n.__flags};Sys.CollectionChange=function(n,t,i,r,u){this.action=n;t&&(t instanceof Array||(t=[t]));this.newItems=t||null;typeof i!="number"&&(i=-1);this.newStartingIndex=i;r&&(r instanceof Array||(r=[r]));this.oldItems=r||null;typeof u!="number"&&(u=-1);this.oldStartingIndex=u};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(n){this._changes=n;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(n){var i=n instanceof Array,t=Sys.Observer;return n.setValue===t._observeMethods.setValue?n:(t._addMethods(n,t._observeMethods),i&&t._addMethods(n,t._arrayMethods),n)};Sys.Observer._addMethods=function(n,t){for(var i in t)n[i]=t[i]};Sys.Observer._addEventHandler=function(n,t,i){Sys.Observer._getContext(n,!0).events._addHandler(t,i)};Sys.Observer.addEventHandler=function(n,t,i){Sys.Observer._addEventHandler(n,t,i)};Sys.Observer._removeEventHandler=function(n,t,i){Sys.Observer._getContext(n,!0).events._removeHandler(t,i)};Sys.Observer.removeEventHandler=function(n,t,i){Sys.Observer._removeEventHandler(n,t,i)};Sys.Observer.raiseEvent=function(n,t,i){var u=Sys.Observer._getContext(n),r;u&&(r=u.events.getHandler(t),r&&r(n,i))};Sys.Observer.addPropertyChanged=function(n,t){Sys.Observer._addEventHandler(n,"propertyChanged",t)};Sys.Observer.removePropertyChanged=function(n,t){Sys.Observer._removeEventHandler(n,"propertyChanged",t)};Sys.Observer.beginUpdate=function(n){Sys.Observer._getContext(n,!0).updating=!0};Sys.Observer.endUpdate=function(n){var t=Sys.Observer._getContext(n),i,r;t&&t.updating&&(t.updating=!1,i=t.dirty,t.dirty=!1,i&&(n instanceof Array&&(r=t.changes,t.changes=null,Sys.Observer.raiseCollectionChanged(n,r)),Sys.Observer.raisePropertyChanged(n,"")))};Sys.Observer.isUpdating=function(n){var t=Sys.Observer._getContext(n);return t?t.updating:!1};Sys.Observer._setValue=function(n,t,i){for(var h,a,v,u,e,r,o,c=n,f=t.split("."),s=0,l=f.length-1;s<l;s++)if(h=f[s],r=n["get_"+h],n=typeof r=="function"?r.call(n):n[h],a=typeof n,n===null||a==="undefined")throw Error.invalidOperation(String.format(Sys.Res.nullReferenceInPath,t));if(u=f[l],r=n["get_"+u],o=n["set_"+u],v=typeof r=="function"?r.call(n):n[u],typeof o=="function"?o.call(n,i):n[u]=i,v!==i){if(e=Sys.Observer._getContext(c),e&&e.updating){e.dirty=!0;return}Sys.Observer.raisePropertyChanged(c,f[0])}};Sys.Observer.setValue=function(n,t,i){Sys.Observer._setValue(n,t,i)};Sys.Observer.raisePropertyChanged=function(n,t){Sys.Observer.raiseEvent(n,"propertyChanged",new Sys.PropertyChangedEventArgs(t))};Sys.Observer.addCollectionChanged=function(n,t){Sys.Observer._addEventHandler(n,"collectionChanged",t)};Sys.Observer.removeCollectionChanged=function(n,t){Sys.Observer._removeEventHandler(n,"collectionChanged",t)};Sys.Observer._collectionChange=function(n,t){var i=Sys.Observer._getContext(n),r;i&&i.updating?(i.dirty=!0,r=i.changes,r?r.push(t):i.changes=r=[t]):(Sys.Observer.raiseCollectionChanged(n,[t]),Sys.Observer.raisePropertyChanged(n,"length"))};Sys.Observer.add=function(n,t){var i=new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,[t],n.length);Array.add(n,t);Sys.Observer._collectionChange(n,i)};Sys.Observer.addRange=function(n,t){var i=new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,t,n.length);Array.addRange(n,t);Sys.Observer._collectionChange(n,i)};Sys.Observer.clear=function(n){var t=Array.clone(n);Array.clear(n);Sys.Observer._collectionChange(n,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.reset,null,-1,t,0))};Sys.Observer.insert=function(n,t,i){Array.insert(n,t,i);Sys.Observer._collectionChange(n,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,[i],t))};Sys.Observer.remove=function(n,t){var i=Array.indexOf(n,t);return i!==-1?(Array.remove(n,t),Sys.Observer._collectionChange(n,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.remove,null,-1,[t],i)),!0):!1};Sys.Observer.removeAt=function(n,t){if(t>-1&&t<n.length){var i=n[t];Array.removeAt(n,t);Sys.Observer._collectionChange(n,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.remove,null,-1,[i],t))}};Sys.Observer.raiseCollectionChanged=function(n,t){Sys.Observer.raiseEvent(n,"collectionChanged",new Sys.NotifyCollectionChangedEventArgs(t))};Sys.Observer._observeMethods={add_propertyChanged:function(n){Sys.Observer._addEventHandler(this,"propertyChanged",n)},remove_propertyChanged:function(n){Sys.Observer._removeEventHandler(this,"propertyChanged",n)},addEventHandler:function(n,t){Sys.Observer._addEventHandler(this,n,t)},removeEventHandler:function(n,t){Sys.Observer._removeEventHandler(this,n,t)},get_isUpdating:function(){return Sys.Observer.isUpdating(this)},beginUpdate:function(){Sys.Observer.beginUpdate(this)},endUpdate:function(){Sys.Observer.endUpdate(this)},setValue:function(n,t){Sys.Observer._setValue(this,n,t)},raiseEvent:function(n,t){Sys.Observer.raiseEvent(this,n,t)},raisePropertyChanged:function(n){Sys.Observer.raiseEvent(this,"propertyChanged",new Sys.PropertyChangedEventArgs(n))}};Sys.Observer._arrayMethods={add_collectionChanged:function(n){Sys.Observer._addEventHandler(this,"collectionChanged",n)},remove_collectionChanged:function(n){Sys.Observer._removeEventHandler(this,"collectionChanged",n)},add:function(n){Sys.Observer.add(this,n)},addRange:function(n){Sys.Observer.addRange(this,n)},clear:function(){Sys.Observer.clear(this)},insert:function(n,t){Sys.Observer.insert(this,n,t)},remove:function(n){return Sys.Observer.remove(this,n)},removeAt:function(n){Sys.Observer.removeAt(this,n)},raiseCollectionChanged:function(n){Sys.Observer.raiseEvent(this,"collectionChanged",new Sys.NotifyCollectionChangedEventArgs(n))}};Sys.Observer._getContext=function(n,t){var i=n._observerContext;return i?i():t?(n._observerContext=Sys.Observer._createContext())():null};Sys.Observer._createContext=function(){var n={events:new Sys.EventHandlerList};return function(){return n}};Date._appendPreOrPostMatch=function(n,t){for(var u,f=0,i=!1,r=0,e=n.length;r<e;r++){u=n.charAt(r);switch(u){case"'":i?t.append("'"):f++;i=!1;break;case"\\":i&&t.append("\\");i=!i;break;default:t.append(u);i=!1}}return f};Date._expandFormat=function(n,t){t||(t="F");var i=t.length;if(i===1)switch(t){case"d":return n.ShortDatePattern;case"D":return n.LongDatePattern;case"t":return n.ShortTimePattern;case"T":return n.LongTimePattern;case"f":return n.LongDatePattern+" "+n.ShortTimePattern;case"F":return n.FullDateTimePattern;case"M":case"m":return n.MonthDayPattern;case"s":return n.SortableDateTimePattern;case"Y":case"y":return n.YearMonthPattern;default:throw Error.format(Sys.Res.formatInvalidString);}else i===2&&t.charAt(0)==="%"&&(t=t.charAt(1));return t};Date._expandYear=function(n,t){var r=new Date,u=Date._getEra(r),i;return t<100&&(i=Date._getEraYear(r,n,u),t+=i-i%100,t>n.Calendar.TwoDigitYearMax&&(t-=100)),t};Date._getEra=function(n,t){var r,u,i,f;if(!t)return 0;for(u=n.getTime(),i=0,f=t.length;i<f;i+=4)if(r=t[i+2],r===null||u>=r)return i;return 0};Date._getEraYear=function(n,t,i,r){var u=n.getFullYear();return!r&&t.eras&&(u-=t.eras[i+3]),u};Date._getParseRegExp=function(n,t){var r,c,l,e;if(n._parseRegExp){if(n._parseRegExp[t])return n._parseRegExp[t]}else n._parseRegExp={};r=Date._expandFormat(n,t);r=r.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");for(var i=new Sys.StringBuilder("^"),o=[],f=0,s=0,h=Date._getTokenRegExp(),u;(u=h.exec(r))!==null;){if(c=r.slice(f,u.index),f=h.lastIndex,s+=Date._appendPreOrPostMatch(c,i),s%2==1){i.append(u[0]);continue}switch(u[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":i.append("(\\D+)");break;case"tt":case"t":i.append("(\\D*)");break;case"yyyy":i.append("(\\d{4})");break;case"fff":i.append("(\\d{3})");break;case"ff":i.append("(\\d{2})");break;case"f":i.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":i.append("(\\d\\d?)");break;case"zzz":i.append("([+-]?\\d\\d?:\\d{2})");break;case"zz":case"z":i.append("([+-]?\\d\\d?)");break;case"/":i.append("(\\"+n.DateSeparator+")")}Array.add(o,u[0])}return Date._appendPreOrPostMatch(r.slice(f),i),i.append("$"),l=i.toString().replace(/\s+/g,"\\s+"),e={regExp:l,groups:o},n._parseRegExp[t]=e,e};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(n){return Date._parse(n,Sys.CultureInfo.CurrentCulture,arguments)};Date.parseInvariant=function(n){return Date._parse(n,Sys.CultureInfo.InvariantCulture,arguments)};Date._parse=function(n,t,i){for(var u,e,o,s=!1,r=1,f=i.length;r<f;r++)if(e=i[r],e&&(s=!0,u=Date._parseExact(n,e,t),u))return u;if(!s)for(o=t._getDateTimeFormats(),r=0,f=o.length;r<f;r++)if(u=Date._parseExact(n,o[r],t),u)return u;return null};Date._parseExact=function(n,t,i){var v,st,r,rt,nt,y,p,w,ht,u,ct,b,ut;n=n.trim();var s=i.dateTimeFormat,ft=Date._getParseRegExp(s,t),et=new RegExp(ft.regExp).exec(n);if(et===null)return null;var ot=ft.groups,tt=null,e=null,f=null,c=null,l=null,o=0,a,k=0,d=0,h=0,g=null,it=!1;for(v=0,st=ot.length;v<st;v++)if(r=et[v+1],r)switch(ot[v]){case"dd":case"d":if(c=parseInt(r,10),c<1||c>31)return null;break;case"MMMM":if(f=i._getMonthIndex(r),f<0||f>11)return null;break;case"MMM":if(f=i._getAbbrMonthIndex(r),f<0||f>11)return null;break;case"M":case"MM":if(f=parseInt(r,10)-1,f<0||f>11)return null;break;case"y":case"yy":if(e=Date._expandYear(s,parseInt(r,10)),e<0||e>9999)return null;break;case"yyyy":if(e=parseInt(r,10),e<0||e>9999)return null;break;case"h":case"hh":if(o=parseInt(r,10),o===12&&(o=0),o<0||o>11)return null;break;case"H":case"HH":if(o=parseInt(r,10),o<0||o>23)return null;break;case"m":case"mm":if(k=parseInt(r,10),k<0||k>59)return null;break;case"s":case"ss":if(d=parseInt(r,10),d<0||d>59)return null;break;case"tt":case"t":if(rt=r.toUpperCase(),it=rt===s.PMDesignator.toUpperCase(),!it&&rt!==s.AMDesignator.toUpperCase())return null;break;case"f":if(h=parseInt(r,10)*100,h<0||h>999)return null;break;case"ff":if(h=parseInt(r,10)*10,h<0||h>999)return null;break;case"fff":if(h=parseInt(r,10),h<0||h>999)return null;break;case"dddd":if(l=i._getDayIndex(r),l<0||l>6)return null;break;case"ddd":if(l=i._getAbbrDayIndex(r),l<0||l>6)return null;break;case"zzz":if((nt=r.split(/:/),nt.length!==2)||(a=parseInt(nt[0],10),a<-12||a>13)||(y=parseInt(nt[1],10),y<0||y>59))return null;g=a*60+(r.startsWith("-")?-y:y);break;case"z":case"zz":if(a=parseInt(r,10),a<-12||a>13)return null;g=a*60;break;case"g":case"gg":if(p=r,!p||!s.eras)return null;for(p=p.toLowerCase().trim(),w=0,ht=s.eras.length;w<ht;w+=4)if(p===s.eras[w+1].toLowerCase()){tt=w;break}if(tt===null)return null}if(u=new Date,b=s.Calendar.convert,ct=b?b.fromGregorian(u)[0]:u.getFullYear(),e===null?e=ct:s.eras&&(e+=s.eras[(tt||0)+3]),f===null&&(f=0),c===null&&(c=1),b){if(u=b.toGregorian(e,f,c),u===null)return null}else if((u.setFullYear(e,f,c),u.getDate()!==c)||l!==null&&u.getDay()!==l)return null;return it&&o<12&&(o+=12),u.setHours(o,k,d,h),g!==null&&(ut=u.getMinutes()-(g+u.getTimezoneOffset()),u.setHours(u.getHours()+parseInt(ut/60,10),ut%60)),u};Date.prototype.format=function(n){return this._toFormattedString(n,Sys.CultureInfo.InvariantCulture)};Date.prototype.localeFormat=function(n){return this._toFormattedString(n,Sys.CultureInfo.CurrentCulture)};Date.prototype._toFormattedString=function(n,t){function f(n){return n<10?"0"+n:n.toString()}function y(n){return n<10?"00"+n:n<100?"0"+n:n.toString()}function nt(n){return n<10?"000"+n:n<100?"00"+n:n<1e3?"0"+n:n.toString()}function g(){return s||k?s:(s=d.test(n),k=!0,s)}var r=t.dateTimeFormat,a=r.Calendar.convert,v,b,h,c,i,u,s,k,d,p,w,e;if(!n||!n.length||n==="i")return t&&t.name.length?a?this._toFormattedString(r.FullDateTimePattern,t):(v=new Date(this.getTime()),b=Date._getEra(this,r.eras),v.setFullYear(Date._getEraYear(this,r,b)),v.toLocaleString()):this.toString();for(h=r.eras,c=n==="s",n=Date._expandFormat(r,n),i=new Sys.StringBuilder,d=/([^d]|^)(d|dd)([^d]|$)/g,p=0,w=Date._getTokenRegExp(),!c&&a&&(e=a.fromGregorian(this));;){var tt=w.lastIndex,l=w.exec(n),it=n.slice(tt,l?l.index:n.length);if(p+=Date._appendPreOrPostMatch(it,i),!l)break;if(p%2==1){i.append(l[0]);continue}function o(n,t){if(e)return e[t];switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate()}}switch(l[0]){case"dddd":i.append(r.DayNames[this.getDay()]);break;case"ddd":i.append(r.AbbreviatedDayNames[this.getDay()]);break;case"dd":s=!0;i.append(f(o(this,2)));break;case"d":s=!0;i.append(o(this,2));break;case"MMMM":i.append(r.MonthGenitiveNames&&g()?r.MonthGenitiveNames[o(this,1)]:r.MonthNames[o(this,1)]);break;case"MMM":i.append(r.AbbreviatedMonthGenitiveNames&&g()?r.AbbreviatedMonthGenitiveNames[o(this,1)]:r.AbbreviatedMonthNames[o(this,1)]);break;case"MM":i.append(f(o(this,1)+1));break;case"M":i.append(o(this,1)+1);break;case"yyyy":i.append(nt(e?e[0]:Date._getEraYear(this,r,Date._getEra(this,h),c)));break;case"yy":i.append(f((e?e[0]:Date._getEraYear(this,r,Date._getEra(this,h),c))%100));break;case"y":i.append((e?e[0]:Date._getEraYear(this,r,Date._getEra(this,h),c))%100);break;case"hh":u=this.getHours()%12;u===0&&(u=12);i.append(f(u));break;case"h":u=this.getHours()%12;u===0&&(u=12);i.append(u);break;case"HH":i.append(f(this.getHours()));break;case"H":i.append(this.getHours());break;case"mm":i.append(f(this.getMinutes()));break;case"m":i.append(this.getMinutes());break;case"ss":i.append(f(this.getSeconds()));break;case"s":i.append(this.getSeconds());break;case"tt":i.append(this.getHours()<12?r.AMDesignator:r.PMDesignator);break;case"t":i.append((this.getHours()<12?r.AMDesignator:r.PMDesignator).charAt(0));break;case"f":i.append(y(this.getMilliseconds()).charAt(0));break;case"ff":i.append(y(this.getMilliseconds()).substr(0,2));break;case"fff":i.append(y(this.getMilliseconds()));break;case"z":u=this.getTimezoneOffset()/60;i.append((u<=0?"+":"-")+Math.floor(Math.abs(u)));break;case"zz":u=this.getTimezoneOffset()/60;i.append((u<=0?"+":"-")+f(Math.floor(Math.abs(u))));break;case"zzz":u=this.getTimezoneOffset()/60;i.append((u<=0?"+":"-")+f(Math.floor(Math.abs(u)))+":"+f(Math.abs(this.getTimezoneOffset()%60)));break;case"g":case"gg":r.eras&&i.append(r.eras[Date._getEra(this,h)+1]);break;case"/":i.append(r.DateSeparator)}}return i.toString()};String.localeFormat=function(){return String._toFormattedString(!0,arguments)};Number.parseLocale=function(n){return Number._parse(n,Sys.CultureInfo.CurrentCulture)};Number.parseInvariant=function(n){return Number._parse(n,Sys.CultureInfo.InvariantCulture)};Number._parse=function(n,t){var l,f,e,r,a,v,y,h,c;if(n=n.trim(),n.match(/^[+-]?infinity$/i))return parseFloat(n);if(n.match(/^0x[a-f0-9]+$/i))return parseInt(n);var i=t.numberFormat,o=Number._parseNumberNegativePattern(n,i,i.NumberNegativePattern),s=o[0],u=o[1];return(s===""&&i.NumberNegativePattern!==1&&(o=Number._parseNumberNegativePattern(n,i,1),s=o[0],u=o[1]),s===""&&(s="+"),e=u.indexOf("e"),e<0&&(e=u.indexOf("E")),e<0?(f=u,l=null):(f=u.substr(0,e),l=u.substr(e+1)),v=f.indexOf(i.NumberDecimalSeparator),v<0?(r=f,a=null):(r=f.substr(0,v),a=f.substr(v+i.NumberDecimalSeparator.length)),r=r.split(i.NumberGroupSeparator).join(""),y=i.NumberGroupSeparator.replace(/\u00A0/g," "),i.NumberGroupSeparator!==y&&(r=r.split(y).join("")),h=s+r,a!==null&&(h+="."+a),l!==null&&(c=Number._parseNumberNegativePattern(l,i,1),c[0]===""&&(c[0]="+"),h+="e"+c[0]+c[1]),h.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/))?parseFloat(h):Number.NaN};Number._parseNumberNegativePattern=function(n,t,i){var r=t.NegativeSign,u=t.PositiveSign;switch(i){case 4:r=" "+r;u=" "+u;case 3:if(n.endsWith(r))return["-",n.substr(0,n.length-r.length)];if(n.endsWith(u))return["+",n.substr(0,n.length-u.length)];break;case 2:r+=" ";u+=" ";case 1:if(n.startsWith(r))return["-",n.substr(r.length)];if(n.startsWith(u))return["+",n.substr(u.length)];break;case 0:if(n.startsWith("(")&&n.endsWith(")"))return["-",n.substr(1,n.length-2)]}return["",n]};Number.prototype.format=function(n){return this._toFormattedString(n,Sys.CultureInfo.InvariantCulture)};Number.prototype.localeFormat=function(n){return this._toFormattedString(n,Sys.CultureInfo.CurrentCulture)};Number.prototype._toFormattedString=function(n,t){function s(n,t,i){for(var r=n.length;r<t;r++)n=i?"0"+n:n+"0";return n}function h(n,t,i,r,u){var a=i[0],v=1,p=Math.pow(10,t),y=Math.round(n*p)/p,h,l;isFinite(y)||(y=n);n=y;var e=n.toString(),f="",o,c=e.split(/e/i);for(e=c[0],o=c.length>1?parseInt(c[1]):0,c=e.split("."),e=c[0],f=c.length>1?c[1]:"",o>0?(f=s(f,o,!1),e+=f.slice(0,o),f=f.substr(o)):o<0&&(o=-o,e=s(e,o+1,!0),f=e.slice(-o,e.length)+f,e=e.slice(0,-o)),t>0?(f=f.length>t?f.slice(0,t):s(f,t,!1),f=u+f):f="",h=e.length-1,l="";h>=0;){if(a===0||a>h)return l.length>0?e.slice(0,h+1)+r+l+f:e.slice(0,h+1)+f;l=l.length>0?e.slice(h-a+1,h+1)+r+l:e.slice(h-a+1,h+1);h-=a;v<i.length&&(a=i[v],v++)}return e.slice(0,h+1)+r+l+f}var i,u,r,f,c,e,l,o;if(!n||n.length===0||n==="i")return t&&t.name.length>0?this.toLocaleString():this.toString();i=t.numberFormat;u=Math.abs(this);n||(n="D");r=-1;n.length>1&&(r=parseInt(n.slice(1),10));switch(n.charAt(0)){case"d":case"D":f="n";r!==-1&&(u=s(""+u,r,!0));this<0&&(u=-u);break;case"c":case"C":f=this<0?["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"][i.CurrencyNegativePattern]:["$n","n$","$ n","n $"][i.CurrencyPositivePattern];r===-1&&(r=i.CurrencyDecimalDigits);u=h(Math.abs(this),r,i.CurrencyGroupSizes,i.CurrencyGroupSeparator,i.CurrencyDecimalSeparator);break;case"n":case"N":f=this<0?["(n)","-n","- n","n-","n -"][i.NumberNegativePattern]:"n";r===-1&&(r=i.NumberDecimalDigits);u=h(Math.abs(this),r,i.NumberGroupSizes,i.NumberGroupSeparator,i.NumberDecimalSeparator);break;case"p":case"P":f=this<0?["-n %","-n%","-%n"][i.PercentNegativePattern]:["n %","n%","%n"][i.PercentPositivePattern];r===-1&&(r=i.PercentDecimalDigits);u=h(Math.abs(this)*100,r,i.PercentGroupSizes,i.PercentGroupSeparator,i.PercentDecimalSeparator);break;default:throw Error.format(Sys.Res.formatBadFormatSpecifier);}for(c=/n|\$|-|%/g,e="";;){if(l=c.lastIndex,o=c.exec(f),e+=f.slice(l,o?o.index:f.length),!o)break;switch(o[0]){case"n":e+=u;break;case"$":e+=i.CurrencySymbol;break;case"-":/[1-9]/.test(u)&&(e+=i.NegativeSign);break;case"%":e+=i.PercentSymbol}}return e};Sys.CultureInfo=function(n,t,i){this.name=n;this.numberFormat=t;this.dateTimeFormat=i};Sys.CultureInfo.prototype={_getDateTimeFormats:function(){if(!this._dateTimeFormats){var n=this.dateTimeFormat;this._dateTimeFormats=[n.MonthDayPattern,n.YearMonthPattern,n.ShortDatePattern,n.ShortTimePattern,n.LongDatePattern,n.LongTimePattern,n.FullDateTimePattern,n.RFC1123Pattern,n.SortableDateTimePattern,n.UniversalSortableDateTimePattern]}return this._dateTimeFormats},_getIndex:function(n,t,i){var u=this._toUpper(n),r=Array.indexOf(t,u);return r===-1&&(r=Array.indexOf(i,u)),r},_getMonthIndex:function(n){return this._upperMonths||(this._upperMonths=this._toUpperArray(this.dateTimeFormat.MonthNames),this._upperMonthsGenitive=this._toUpperArray(this.dateTimeFormat.MonthGenitiveNames)),this._getIndex(n,this._upperMonths,this._upperMonthsGenitive)},_getAbbrMonthIndex:function(n){return this._upperAbbrMonths||(this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames),this._upperAbbrMonthsGenitive=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthGenitiveNames)),this._getIndex(n,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},_getDayIndex:function(n){return this._upperDays||(this._upperDays=this._toUpperArray(this.dateTimeFormat.DayNames)),Array.indexOf(this._upperDays,this._toUpper(n))},_getAbbrDayIndex:function(n){return this._upperAbbrDays||(this._upperAbbrDays=this._toUpperArray(this.dateTimeFormat.AbbreviatedDayNames)),Array.indexOf(this._upperAbbrDays,this._toUpper(n))},_toUpperArray:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i[t]=this._toUpper(n[t]);return i},_toUpper:function(n){return n.split(" ").join(" ").toUpperCase()}};Sys.CultureInfo.registerClass("Sys.CultureInfo");Sys.CultureInfo._parse=function(n){var t=n.dateTimeFormat;return t&&!t.eras&&(t.eras=n.eras),new Sys.CultureInfo(n.name,n.numberFormat,t)};Sys.CultureInfo.InvariantCulture=Sys.CultureInfo._parse({name:"",numberFormat:{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:".",IsReadOnly:!0,CurrencyGroupSizes:[3],NumberGroupSizes:[3],PercentGroupSizes:[3],CurrencyGroupSeparator:",",CurrencySymbol:"¤",NaNSymbol:"NaN",CurrencyNegativePattern:0,NumberNegativePattern:1,PercentPositivePattern:0,PercentNegativePattern:0,NegativeInfinitySymbol:"-Infinity",NegativeSign:"-",NumberDecimalDigits:2,NumberDecimalSeparator:".",NumberGroupSeparator:",",CurrencyPositivePattern:0,PositiveInfinitySymbol:"Infinity",PositiveSign:"+",PercentDecimalDigits:2,PercentDecimalSeparator:".",PercentGroupSeparator:",",PercentSymbol:"%",PerMilleSymbol:"‰",NativeDigits:["0","1","2","3","4","5","6","7","8","9"],DigitSubstitution:1},dateTimeFormat:{AMDesignator:"AM",Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,IsReadOnly:!0},DateSeparator:"/",FirstDayOfWeek:0,CalendarWeekRule:0,FullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",LongDatePattern:"dddd, dd MMMM yyyy",LongTimePattern:"HH:mm:ss",MonthDayPattern:"MMMM dd",PMDesignator:"PM",RFC1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",ShortDatePattern:"MM/dd/yyyy",ShortTimePattern:"HH:mm",SortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",TimeSeparator:":",UniversalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",YearMonthPattern:"yyyy MMMM",AbbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ShortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],DayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],AbbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],IsReadOnly:!0,NativeCalendarName:"Gregorian Calendar",AbbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""]},eras:[1,"A.D.",null,0]});typeof __cultureInfo=="object"?(Sys.CultureInfo.CurrentCulture=Sys.CultureInfo._parse(__cultureInfo),delete __cultureInfo):Sys.CultureInfo.CurrentCulture=Sys.CultureInfo._parse({name:"en-US",numberFormat:{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:".",IsReadOnly:!1,CurrencyGroupSizes:[3],NumberGroupSizes:[3],PercentGroupSizes:[3],CurrencyGroupSeparator:",",CurrencySymbol:"$",NaNSymbol:"NaN",CurrencyNegativePattern:0,NumberNegativePattern:1,PercentPositivePattern:0,PercentNegativePattern:0,NegativeInfinitySymbol:"-Infinity",NegativeSign:"-",NumberDecimalDigits:2,NumberDecimalSeparator:".",NumberGroupSeparator:",",CurrencyPositivePattern:0,PositiveInfinitySymbol:"Infinity",PositiveSign:"+",PercentDecimalDigits:2,PercentDecimalSeparator:".",PercentGroupSeparator:",",PercentSymbol:"%",PerMilleSymbol:"‰",NativeDigits:["0","1","2","3","4","5","6","7","8","9"],DigitSubstitution:1},dateTimeFormat:{AMDesignator:"AM",Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,IsReadOnly:!1},DateSeparator:"/",FirstDayOfWeek:0,CalendarWeekRule:0,FullDateTimePattern:"dddd, MMMM dd, yyyy h:mm:ss tt",LongDatePattern:"dddd, MMMM dd, yyyy",LongTimePattern:"h:mm:ss tt",MonthDayPattern:"MMMM dd",PMDesignator:"PM",RFC1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",ShortDatePattern:"M/d/yyyy",ShortTimePattern:"h:mm tt",SortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",TimeSeparator:":",UniversalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",YearMonthPattern:"MMMM, yyyy",AbbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ShortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],DayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],AbbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],IsReadOnly:!1,NativeCalendarName:"Gregorian Calendar",AbbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""]},eras:[1,"A.D.",null,0]});Type.registerNamespace("Sys.Serialization");Sys.Serialization.JavaScriptSerializer=function(){};Sys.Serialization.JavaScriptSerializer.registerClass("Sys.Serialization.JavaScriptSerializer");Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs=[];Sys.Serialization.JavaScriptSerializer._charsToEscape=[];Sys.Serialization.JavaScriptSerializer._dateRegEx=new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"',"g");Sys.Serialization.JavaScriptSerializer._escapeChars={};Sys.Serialization.JavaScriptSerializer._escapeRegEx=new RegExp('["\\\\\\x00-\\x1F]',"i");Sys.Serialization.JavaScriptSerializer._escapeRegExGlobal=new RegExp('["\\\\\\x00-\\x1F]',"g");Sys.Serialization.JavaScriptSerializer._jsonRegEx=new RegExp("[^,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t]","g");Sys.Serialization.JavaScriptSerializer._jsonStringRegEx=new RegExp('"(\\\\.|[^"\\\\])*"',"g");Sys.Serialization.JavaScriptSerializer._serverTypeFieldName="__type";Sys.Serialization.JavaScriptSerializer._init=function(){var i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f"],n,t;for(Sys.Serialization.JavaScriptSerializer._charsToEscape[0]="\\",Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs["\\"]=new RegExp("\\\\","g"),Sys.Serialization.JavaScriptSerializer._escapeChars["\\"]="\\\\",Sys.Serialization.JavaScriptSerializer._charsToEscape[1]='"',Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs['"']=new RegExp('"',"g"),Sys.Serialization.JavaScriptSerializer._escapeChars['"']='\\"',n=0;n<32;n++)t=String.fromCharCode(n),Sys.Serialization.JavaScriptSerializer._charsToEscape[n+2]=t,Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs[t]=new RegExp(t,"g"),Sys.Serialization.JavaScriptSerializer._escapeChars[t]=i[n]};Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder=function(n,t){t.append(n.toString())};Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder=function(n,t){if(isFinite(n))t.append(String(n));else throw Error.invalidOperation(Sys.Res.cannotSerializeNonFiniteNumbers);};Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder=function(n,t){var r,i;if(t.append('"'),Sys.Serialization.JavaScriptSerializer._escapeRegEx.test(n))if(Sys.Serialization.JavaScriptSerializer._charsToEscape.length===0&&Sys.Serialization.JavaScriptSerializer._init(),n.length<128)n=n.replace(Sys.Serialization.JavaScriptSerializer._escapeRegExGlobal,function(n){return Sys.Serialization.JavaScriptSerializer._escapeChars[n]});else for(r=0;r<34;r++)i=Sys.Serialization.JavaScriptSerializer._charsToEscape[r],n.indexOf(i)!==-1&&(n=Sys.Browser.agent===Sys.Browser.Opera||Sys.Browser.agent===Sys.Browser.FireFox?n.split(i).join(Sys.Serialization.JavaScriptSerializer._escapeChars[i]):n.replace(Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs[i],Sys.Serialization.JavaScriptSerializer._escapeChars[i]));t.append(n);t.append('"')};Sys.Serialization.JavaScriptSerializer._serializeWithBuilder=function(n,t,i,r){var u,f,e,o,h,s;switch(typeof n){case"object":if(n)if(Number.isInstanceOfType(n))Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(n,t);else if(Boolean.isInstanceOfType(n))Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(n,t);else if(String.isInstanceOfType(n))Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(n,t);else if(Array.isInstanceOfType(n)){for(t.append("["),u=0;u<n.length;++u)u>0&&t.append(","),Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(n[u],t,!1,r);t.append("]")}else{if(Date.isInstanceOfType(n)){t.append('"\\/Date(');t.append(n.getTime());t.append(')\\/"');break}f=[];e=0;for(o in n)o.startsWith("$")||(o===Sys.Serialization.JavaScriptSerializer._serverTypeFieldName&&e!==0?(f[e++]=f[0],f[0]=o):f[e++]=o);for(i&&f.sort(),t.append("{"),h=!1,u=0;u<e;u++)s=n[f[u]],typeof s!="undefined"&&typeof s!="function"&&(h?t.append(","):h=!0,Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(f[u],t,i,r),t.append(":"),Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(s,t,i,r));t.append("}")}else t.append("null");break;case"number":Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(n,t);break;case"string":Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(n,t);break;case"boolean":Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(n,t);break;default:t.append("null")}};Sys.Serialization.JavaScriptSerializer.serialize=function(n){var t=new Sys.StringBuilder;return Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(n,t,!1),t.toString()};Sys.Serialization.JavaScriptSerializer.deserialize=function(data,secure){if(data.length===0)throw Error.argument("data",Sys.Res.cannotDeserializeEmptyString);try{var exp=data.replace(Sys.Serialization.JavaScriptSerializer._dateRegEx,"$1new Date($2)");if(secure&&Sys.Serialization.JavaScriptSerializer._jsonRegEx.test(exp.replace(Sys.Serialization.JavaScriptSerializer._jsonStringRegEx,"")))throw null;return eval("("+exp+")")}catch(a){throw Error.argument("data",Sys.Res.cannotDeserializeInvalidJson);}};Type.registerNamespace("Sys.UI");Sys.EventHandlerList=function(){this._list={}};Sys.EventHandlerList.prototype={_addHandler:function(n,t){Array.add(this._getEvent(n,!0),t)},addHandler:function(n,t){this._addHandler(n,t)},_removeHandler:function(n,t){var i=this._getEvent(n);i&&Array.remove(i,t)},removeHandler:function(n,t){this._removeHandler(n,t)},getHandler:function(n){var t=this._getEvent(n);return!t||t.length===0?null:(t=Array.clone(t),function(n,i){for(var r=0,u=t.length;r<u;r++)t[r](n,i)})},_getEvent:function(n,t){if(!this._list[n]){if(!t)return null;this._list[n]=[]}return this._list[n]}};Sys.EventHandlerList.registerClass("Sys.EventHandlerList");Sys.CommandEventArgs=function(n,t,i){Sys.CommandEventArgs.initializeBase(this);this._commandName=n;this._commandArgument=t;this._commandSource=i};Sys.CommandEventArgs.prototype={_commandName:null,_commandArgument:null,_commandSource:null,get_commandName:function(){return this._commandName},get_commandArgument:function(){return this._commandArgument},get_commandSource:function(){return this._commandSource}};Sys.CommandEventArgs.registerClass("Sys.CommandEventArgs",Sys.CancelEventArgs);Sys.INotifyPropertyChange=function(){};Sys.INotifyPropertyChange.prototype={};Sys.INotifyPropertyChange.registerInterface("Sys.INotifyPropertyChange");Sys.PropertyChangedEventArgs=function(n){Sys.PropertyChangedEventArgs.initializeBase(this);this._propertyName=n};Sys.PropertyChangedEventArgs.prototype={get_propertyName:function(){return this._propertyName}};Sys.PropertyChangedEventArgs.registerClass("Sys.PropertyChangedEventArgs",Sys.EventArgs);Sys.INotifyDisposing=function(){};Sys.INotifyDisposing.prototype={};Sys.INotifyDisposing.registerInterface("Sys.INotifyDisposing");Sys.Component=function(){Sys.Application&&Sys.Application.registerDisposableObject(this)};Sys.Component.prototype={_id:null,_initialized:!1,_updating:!1,get_events:function(){return this._events||(this._events=new Sys.EventHandlerList),this._events},get_id:function(){return this._id},set_id:function(n){this._id=n},get_isInitialized:function(){return this._initialized},get_isUpdating:function(){return this._updating},add_disposing:function(n){this.get_events().addHandler("disposing",n)},remove_disposing:function(n){this.get_events().removeHandler("disposing",n)},add_propertyChanged:function(n){this.get_events().addHandler("propertyChanged",n)},remove_propertyChanged:function(n){this.get_events().removeHandler("propertyChanged",n)},beginUpdate:function(){this._updating=!0},dispose:function(){if(this._events){var n=this._events.getHandler("disposing");n&&n(this,Sys.EventArgs.Empty)}delete this._events;Sys.Application.unregisterDisposableObject(this);Sys.Application.removeComponent(this)},endUpdate:function(){this._updating=!1;this._initialized||this.initialize();this.updated()},initialize:function(){this._initialized=!0},raisePropertyChanged:function(n){if(this._events){var t=this._events.getHandler("propertyChanged");t&&t(this,new Sys.PropertyChangedEventArgs(n))}},updated:function(){}};Sys.Component.registerClass("Sys.Component",null,Sys.IDisposable,Sys.INotifyPropertyChange,Sys.INotifyDisposing);$create=Sys.Component.create=function(n,t,i,r,u){var f=u?new n(u):new n,e=Sys.Application,s=e.get_isCreatingComponents(),o;if(f.beginUpdate(),t&&Sys$Component$_setProperties(f,t),i)for(o in i)f["add_"+o](i[o]);return f.get_id()&&e.addComponent(f),s?(e._createdComponents[e._createdComponents.length]=f,r?e._addComponentToSecondPass(f,r):f.endUpdate()):(r&&Sys$Component$_setReferences(f,r),f.endUpdate()),f};Sys.UI.MouseButton=function(){throw Error.notImplemented();};Sys.UI.MouseButton.prototype={leftButton:0,middleButton:1,rightButton:2};Sys.UI.MouseButton.registerEnum("Sys.UI.MouseButton");Sys.UI.Key=function(){throw Error.notImplemented();};Sys.UI.Key.prototype={backspace:8,tab:9,enter:13,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:127};Sys.UI.Key.registerEnum("Sys.UI.Key");Sys.UI.Point=function(n,t){this.x=n;this.y=t};Sys.UI.Point.registerClass("Sys.UI.Point");Sys.UI.Bounds=function(n,t,i,r){this.x=n;this.y=t;this.height=r;this.width=i};Sys.UI.Bounds.registerClass("Sys.UI.Bounds");Sys.UI.DomEvent=function(n){var t=n,u=this.type=t.type.toLowerCase(),i,r;this.rawEvent=t;this.altKey=t.altKey;typeof t.button!="undefined"&&(this.button=typeof t.which!="undefined"?t.button:t.button===4?Sys.UI.MouseButton.middleButton:t.button===2?Sys.UI.MouseButton.rightButton:Sys.UI.MouseButton.leftButton);u==="keypress"?this.charCode=t.charCode||t.keyCode:this.keyCode=t.keyCode&&t.keyCode===46?127:t.keyCode;this.clientX=t.clientX;this.clientY=t.clientY;this.ctrlKey=t.ctrlKey;this.target=t.target?t.target:t.srcElement;u.startsWith("key")||(typeof t.offsetX!="undefined"&&typeof t.offsetY!="undefined"?(this.offsetX=t.offsetX,this.offsetY=t.offsetY):this.target&&this.target.nodeType!==3&&typeof t.clientX=="number"&&(i=Sys.UI.DomElement.getLocation(this.target),r=Sys.UI.DomElement._getWindow(this.target),this.offsetX=(r.pageXOffset||0)+t.clientX-i.x,this.offsetY=(r.pageYOffset||0)+t.clientY-i.y));this.screenX=t.screenX;this.screenY=t.screenY;this.shiftKey=t.shiftKey};Sys.UI.DomEvent.prototype={preventDefault:function(){this.rawEvent.preventDefault?this.rawEvent.preventDefault():window.event&&(this.rawEvent.returnValue=!1)},stopPropagation:function(){this.rawEvent.stopPropagation?this.rawEvent.stopPropagation():window.event&&(this.rawEvent.cancelBubble=!0)}};Sys.UI.DomEvent.registerClass("Sys.UI.DomEvent");var $addHandler=Sys.UI.DomEvent.addHandler=function(n,t,i,r){var u,f,e;n._events||(n._events={});u=n._events[t];u||(n._events[t]=u=[]);n.addEventListener?(f=function(t){return i.call(n,new Sys.UI.DomEvent(t))},n.addEventListener(t,f,!1)):n.attachEvent&&(f=function(){var t={};try{t=Sys.UI.DomElement._getWindow(n).event}catch(r){}return i.call(n,new Sys.UI.DomEvent(t))},n.attachEvent("on"+t,f));u[u.length]={handler:i,browserHandler:f,autoRemove:r};r&&(e=n.dispose,e!==Sys.UI.DomEvent._disposeHandlers&&(n.dispose=Sys.UI.DomEvent._disposeHandlers,typeof e!="undefined"&&(n._chainDispose=e)))},$addHandlers=Sys.UI.DomEvent.addHandlers=function(n,t,i,r){var f,u;for(f in t)u=t[f],i&&(u=Function.createDelegate(i,u)),$addHandler(n,f,u,r||!1)},$clearHandlers=Sys.UI.DomEvent.clearHandlers=function(n){Sys.UI.DomEvent._clearHandlers(n,!1)};Sys.UI.DomEvent._clearHandlers=function(n,t){var r,u,f,i,e;if(n._events){r=n._events;for(u in r)for(f=r[u],i=f.length-1;i>=0;i--)e=f[i],(!t||e.autoRemove)&&$removeHandler(n,u,e.handler);n._events=null}};Sys.UI.DomEvent._disposeHandlers=function(){Sys.UI.DomEvent._clearHandlers(this,!0);var n=this._chainDispose,t=typeof n;t!=="undefined"&&(this.dispose=n,this._chainDispose=null,t==="function"&&this.dispose())};$removeHandler=Sys.UI.DomEvent.removeHandler=function(n,t,i){Sys.UI.DomEvent._removeHandler(n,t,i)};Sys.UI.DomEvent._removeHandler=function(n,t,i){for(var f=null,u=n._events[t],r=0,e=u.length;r<e;r++)if(u[r].handler===i){f=u[r].browserHandler;break}n.removeEventListener?n.removeEventListener(t,f,!1):n.detachEvent&&n.detachEvent("on"+t,f);u.splice(r,1)};Sys.UI.DomElement=function(){};Sys.UI.DomElement.registerClass("Sys.UI.DomElement");Sys.UI.DomElement.addCssClass=function(n,t){Sys.UI.DomElement.containsCssClass(n,t)||(n.className===""?n.className=t:n.className+=" "+t)};Sys.UI.DomElement.containsCssClass=function(n,t){return Array.contains(n.className.split(" "),t)};Sys.UI.DomElement.getBounds=function(n){var t=Sys.UI.DomElement.getLocation(n);return new Sys.UI.Bounds(t.x,t.y,n.offsetWidth||0,n.offsetHeight||0)};$get=Sys.UI.DomElement.getElementById=function(n,t){var u,f,r,i;if(!t)return document.getElementById(n);if(t.getElementById)return t.getElementById(n);for(u=[],f=t.childNodes,r=0;r<f.length;r++)i=f[r],i.nodeType==1&&(u[u.length]=i);while(u.length){if(i=u.shift(),i.id==n)return i;for(f=i.childNodes,r=0;r<f.length;r++)i=f[r],i.nodeType==1&&(u[u.length]=i)}return null};Sys.UI.DomElement.getLocation=document.documentElement.getBoundingClientRect?function(n){var u,e,o;if(n.self||n.nodeType===9||n===document.documentElement||n.parentNode===n.ownerDocument.documentElement||(u=n.getBoundingClientRect(),!u))return new Sys.UI.Point(0,0);var f=n.ownerDocument.documentElement,i=Math.round(u.left)+f.scrollLeft,r=Math.round(u.top)+f.scrollTop;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){try{e=n.ownerDocument.parentWindow.frameElement||null;e&&(o=e.frameBorder==="0"||e.frameBorder==="no"?2:0,i+=o,r+=o)}catch(c){}if(Sys.Browser.version===7&&!document.documentMode){var s=document.body,h=s.getBoundingClientRect(),t=(h.right-h.left)/s.clientWidth;t=Math.round(t*100);t=(t-t%5)/100;isNaN(t)||t===1||(i=Math.round(i/t),r=Math.round(r/t))}(document.documentMode||0)<8&&(i-=f.clientLeft,r-=f.clientTop)}return new Sys.UI.Point(i,r)}:Sys.Browser.agent===Sys.Browser.Safari?function(n){var r,o,s;if(n.window&&n.window===n||n.nodeType===9)return new Sys.UI.Point(0,0);for(var u=0,f=0,h=null,e=null,i,t=n;t;h=t,e=i,t=t.offsetParent)i=Sys.UI.DomElement._getCurrentStyle(t),r=t.tagName?t.tagName.toUpperCase():null,(t.offsetLeft||t.offsetTop)&&(r!=="BODY"||!e||e.position!=="absolute")&&(u+=t.offsetLeft,f+=t.offsetTop),h&&Sys.Browser.version>=3&&(u+=parseInt(i.borderLeftWidth),f+=parseInt(i.borderTopWidth));if(i=Sys.UI.DomElement._getCurrentStyle(n),o=i?i.position:null,!o||o!=="absolute")for(t=n.parentNode;t;t=t.parentNode)if(r=t.tagName?t.tagName.toUpperCase():null,r!=="BODY"&&r!=="HTML"&&(t.scrollLeft||t.scrollTop)&&(u-=t.scrollLeft||0,f-=t.scrollTop||0),i=Sys.UI.DomElement._getCurrentStyle(t),s=i?i.position:null,s&&s==="absolute")break;return new Sys.UI.Point(u,f)}:function(n){var r,o;if(n.window&&n.window===n||n.nodeType===9)return new Sys.UI.Point(0,0);for(var u=0,f=0,s=null,e=null,i=null,t=n;t;s=t,e=i,t=t.offsetParent)r=t.tagName?t.tagName.toUpperCase():null,i=Sys.UI.DomElement._getCurrentStyle(t),!(t.offsetLeft||t.offsetTop)||r==="BODY"&&(!e||e.position!=="absolute")||(u+=t.offsetLeft,f+=t.offsetTop),s!==null&&i&&(r!=="TABLE"&&r!=="TD"&&r!=="HTML"&&(u+=parseInt(i.borderLeftWidth)||0,f+=parseInt(i.borderTopWidth)||0),r==="TABLE"&&(i.position==="relative"||i.position==="absolute")&&(u+=parseInt(i.marginLeft)||0,f+=parseInt(i.marginTop)||0));if(i=Sys.UI.DomElement._getCurrentStyle(n),o=i?i.position:null,!o||o!=="absolute")for(t=n.parentNode;t;t=t.parentNode)r=t.tagName?t.tagName.toUpperCase():null,r!=="BODY"&&r!=="HTML"&&(t.scrollLeft||t.scrollTop)&&(u-=t.scrollLeft||0,f-=t.scrollTop||0,i=Sys.UI.DomElement._getCurrentStyle(t),i&&(u+=parseInt(i.borderLeftWidth)||0,f+=parseInt(i.borderTopWidth)||0));return new Sys.UI.Point(u,f)};Sys.UI.DomElement.isDomElement=function(n){return Sys._isDomElement(n)};Sys.UI.DomElement.removeCssClass=function(n,t){var i=" "+n.className+" ",r=i.indexOf(" "+t+" ");r>=0&&(n.className=(i.substr(0,r)+" "+i.substring(r+t.length+1,i.length)).trim())};Sys.UI.DomElement.resolveElement=function(n,t){var i=n;return i?(typeof i=="string"&&(i=Sys.UI.DomElement.getElementById(i,t)),i):null};Sys.UI.DomElement.raiseBubbleEvent=function(n,t){for(var r=n,i;r;){if(i=r.control,i&&i.onBubbleEvent&&i.raiseBubbleEvent){Sys.UI.DomElement._raiseBubbleEventFromControl(i,n,t);return}r=r.parentNode}};Sys.UI.DomElement._raiseBubbleEventFromControl=function(n,t,i){n.onBubbleEvent(t,i)||n._raiseBubbleEvent(t,i)};Sys.UI.DomElement.setLocation=function(n,t,i){var r=n.style;r.position="absolute";r.left=t+"px";r.top=i+"px"};Sys.UI.DomElement.toggleCssClass=function(n,t){Sys.UI.DomElement.containsCssClass(n,t)?Sys.UI.DomElement.removeCssClass(n,t):Sys.UI.DomElement.addCssClass(n,t)};Sys.UI.DomElement.getVisibilityMode=function(n){return n._visibilityMode===Sys.UI.VisibilityMode.hide?Sys.UI.VisibilityMode.hide:Sys.UI.VisibilityMode.collapse};Sys.UI.DomElement.setVisibilityMode=function(n,t){Sys.UI.DomElement._ensureOldDisplayMode(n);n._visibilityMode!==t&&(n._visibilityMode=t,Sys.UI.DomElement.getVisible(n)===!1&&(n.style.display=n._visibilityMode===Sys.UI.VisibilityMode.hide?n._oldDisplayMode:"none"),n._visibilityMode=t)};Sys.UI.DomElement.getVisible=function(n){var t=n.currentStyle||Sys.UI.DomElement._getCurrentStyle(n);return t?t.visibility!=="hidden"&&t.display!=="none":!0};Sys.UI.DomElement.setVisible=function(n,t){t!==Sys.UI.DomElement.getVisible(n)&&(Sys.UI.DomElement._ensureOldDisplayMode(n),n.style.visibility=t?"visible":"hidden",n.style.display=t||n._visibilityMode===Sys.UI.VisibilityMode.hide?n._oldDisplayMode:"none")};Sys.UI.DomElement._ensureOldDisplayMode=function(n){if(!n._oldDisplayMode){var t=n.currentStyle||Sys.UI.DomElement._getCurrentStyle(n);if(n._oldDisplayMode=t?t.display:null,!n._oldDisplayMode||n._oldDisplayMode==="none")switch(n.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":n._oldDisplayMode="block";break;case"LI":n._oldDisplayMode="list-item";break;default:n._oldDisplayMode="inline"}}};Sys.UI.DomElement._getWindow=function(n){var t=n.ownerDocument||n.document||n;return t.defaultView||t.parentWindow};Sys.UI.DomElement._getCurrentStyle=function(n){var t,i,f,e,r,u;if(n.nodeType===3)return null;if(t=Sys.UI.DomElement._getWindow(n),n.documentElement&&(n=n.documentElement),i=t&&n!==t&&t.getComputedStyle?t.getComputedStyle(n,null):n.currentStyle||n.style,!i&&Sys.Browser.agent===Sys.Browser.Safari&&n.style){f=n.style.display;e=n.style.position;n.style.position="absolute";n.style.display="block";r=t.getComputedStyle(n,null);n.style.display=f;n.style.position=e;i={};for(u in r)i[u]=r[u];i.display="none"}return i};Sys.IContainer=function(){};Sys.IContainer.prototype={};Sys.IContainer.registerInterface("Sys.IContainer");Sys.ApplicationLoadEventArgs=function(n,t){Sys.ApplicationLoadEventArgs.initializeBase(this);this._components=n;this._isPartialLoad=t};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:!1,_disposing:!1,_deleteCount:0,get_isCreatingComponents:function(){return this._creatingComponents},get_isDisposing:function(){return this._disposing},add_init:function(n){this._initialized?n(this,Sys.EventArgs.Empty):this.get_events().addHandler("init",n)},remove_init:function(n){this.get_events().removeHandler("init",n)},add_load:function(n){this.get_events().addHandler("load",n)},remove_load:function(n){this.get_events().removeHandler("load",n)},add_unload:function(n){this.get_events().addHandler("unload",n)},remove_unload:function(n){this.get_events().removeHandler("unload",n)},addComponent:function(n){this._components[n.get_id()]=n},beginCreateComponents:function(){this._creatingComponents=!0},dispose:function(){var t,i,n,f,r,u;if(!this._disposing){for(this._disposing=!0,this._timerCookie&&(window.clearTimeout(this._timerCookie),delete this._timerCookie),this._endRequestHandler&&(Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(this._endRequestHandler),delete this._endRequestHandler),this._beginRequestHandler&&(Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(this._beginRequestHandler),delete this._beginRequestHandler),window.pageUnload&&window.pageUnload(this,Sys.EventArgs.Empty),t=this.get_events().getHandler("unload"),t&&t(this,Sys.EventArgs.Empty),i=Array.clone(this._disposableObjects),n=0,f=i.length;n<f;n++)r=i[n],typeof r!="undefined"&&r.dispose();Array.clear(this._disposableObjects);Sys.UI.DomEvent.removeHandler(window,"unload",this._unloadHandlerDelegate);Sys._ScriptLoader&&(u=Sys._ScriptLoader.getInstance(),u&&u.dispose());Sys._Application.callBaseMethod(this,"dispose")}},disposeElement:function(n,t){var f,e,u,i;if(n.nodeType===1){for(var s=n.getElementsByTagName("*"),o=s.length,h=new Array(o),r=0;r<o;r++)h[r]=s[r];for(r=o-1;r>=0;r--)f=h[r],e=f.dispose,e&&typeof e=="function"?f.dispose():(u=f.control,u&&typeof u.dispose=="function"&&u.dispose()),i=f._behaviors,i&&this._disposeComponents(i),i=f._components,i&&(this._disposeComponents(i),f._components=null);t||(e=n.dispose,e&&typeof e=="function"?n.dispose():(u=n.control,u&&typeof u.dispose=="function"&&u.dispose()),i=n._behaviors,i&&this._disposeComponents(i),i=n._components,i&&(this._disposeComponents(i),n._components=null))}},endCreateComponents:function(){for(var i,t=this._secondPassComponents,n=0,r=t.length;n<r;n++)i=t[n].component,Sys$Component$_setReferences(i,t[n].references),i.endUpdate();this._secondPassComponents=[];this._creatingComponents=!1},findComponent:function(n,t){return t?Sys.IContainer.isInstanceOfType(t)?t.findComponent(n):t[n]||null:Sys.Application._components[n]||null},getComponents:function(){var n=[],t=this._components;for(var i in t)n[n.length]=t[i];return n},initialize:function(){if(!this.get_isInitialized()&&!this._disposing){if(Sys._Application.callBaseMethod(this,"initialize"),this._raiseInit(),this.get_stateString){Sys.WebForms&&Sys.WebForms.PageRequestManager&&(this._beginRequestHandler=Function.createDelegate(this,this._onPageRequestManagerBeginRequest),Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(this._beginRequestHandler),this._endRequestHandler=Function.createDelegate(this,this._onPageRequestManagerEndRequest),Sys.WebForms.PageRequestManager.getInstance().add_endRequest(this._endRequestHandler));var n=this.get_stateString();n!==this._currentEntry?this._navigate(n):this._ensureHistory()}this.raiseLoad()}},notifyScriptLoaded:function(){},registerDisposableObject:function(n){if(!this._disposing){var t=this._disposableObjects,i=t.length;t[i]=n;n.__msdisposeindex=i}},raiseLoad:function(){var n=this.get_events().getHandler("load"),t=new Sys.ApplicationLoadEventArgs(Array.clone(this._createdComponents),!!this._loaded);this._loaded=!0;n&&n(this,t);window.pageLoad&&window.pageLoad(this,t);this._createdComponents=[]},removeComponent:function(n){var t=n.get_id();t&&delete this._components[t]},unregisterDisposableObject:function(n){var u,t,i,r,f;if(!this._disposing&&(u=n.__msdisposeindex,typeof u=="number"&&(t=this._disposableObjects,delete t[u],delete n.__msdisposeindex,++this._deleteCount>1e3))){for(i=[],r=0,f=t.length;r<f;r++)n=t[r],typeof n!="undefined"&&(n.__msdisposeindex=i.length,i.push(n));this._disposableObjects=i;this._deleteCount=0}},_addComponentToSecondPass:function(n,t){this._secondPassComponents[this._secondPassComponents.length]={component:n,references:t}},_disposeComponents:function(n){var t,i;if(n)for(t=n.length-1;t>=0;t--)i=n[t],typeof i.dispose=="function"&&i.dispose()},_domReady:function(){function t(){u.initialize()}var n,u=this,r=function(){Sys.UI.DomEvent.removeHandler(window,"load",r);t()},f,i;if(Sys.UI.DomEvent.addHandler(window,"load",r),document.addEventListener)try{document.addEventListener("DOMContentLoaded",n=function(){document.removeEventListener("DOMContentLoaded",n,!1);t()},!1)}catch(e){}else document.attachEvent&&(window==window.top&&document.documentElement.doScroll?(i=document.createElement("div"),n=function(){try{i.doScroll("left")}catch(r){f=window.setTimeout(n,0);return}i=null;t()},n()):document.attachEvent("onreadystatechange",n=function(){document.readyState==="complete"&&(document.detachEvent("onreadystatechange",n),t())}))},_raiseInit:function(){var n=this.get_events().getHandler("init");n&&(this.beginCreateComponents(),n(this,Sys.EventArgs.Empty),this.endCreateComponents())},_unloadHandler:function(){this.dispose()}};Sys._Application.registerClass("Sys._Application",Sys.Component,Sys.IContainer);Sys.Application=new Sys._Application;$find=Sys.Application.findComponent;Sys.UI.Behavior=function(n){Sys.UI.Behavior.initializeBase(this);this._element=n;var t=n._behaviors;t?t[t.length]=this:n._behaviors=[this]};Sys.UI.Behavior.prototype={_name:null,get_element:function(){return this._element},get_id:function(){var n=Sys.UI.Behavior.callBaseMethod(this,"get_id");return n?n:!this._element||!this._element.id?"":this._element.id+"$"+this.get_name()},get_name:function(){if(this._name)return this._name;var n=Object.getTypeName(this),t=n.lastIndexOf(".");return t!==-1&&(n=n.substr(t+1)),this.get_isInitialized()||(this._name=n),n},set_name:function(n){this._name=n},initialize:function(){Sys.UI.Behavior.callBaseMethod(this,"initialize");var n=this.get_name();n&&(this._element[n]=this)},dispose:function(){var n,t,i;Sys.UI.Behavior.callBaseMethod(this,"dispose");n=this._element;n&&(t=this.get_name(),t&&(n[t]=null),i=n._behaviors,Array.remove(i,this),i.length===0&&(n._behaviors=null),delete this._element)}};Sys.UI.Behavior.registerClass("Sys.UI.Behavior",Sys.Component);Sys.UI.Behavior.getBehaviorByName=function(n,t){var i=n[t];return i&&Sys.UI.Behavior.isInstanceOfType(i)?i:null};Sys.UI.Behavior.getBehaviors=function(n){return n._behaviors?Array.clone(n._behaviors):[]};Sys.UI.Behavior.getBehaviorsByType=function(n,t){var r=n._behaviors,u=[],i,f;if(r)for(i=0,f=r.length;i<f;i++)t.isInstanceOfType(r[i])&&(u[u.length]=r[i]);return u};Sys.UI.VisibilityMode=function(){throw Error.notImplemented();};Sys.UI.VisibilityMode.prototype={hide:0,collapse:1};Sys.UI.VisibilityMode.registerEnum("Sys.UI.VisibilityMode");Sys.UI.Control=function(n){Sys.UI.Control.initializeBase(this);this._element=n;n.control=this;var t=this.get_role();t&&n.setAttribute("role",t)};Sys.UI.Control.prototype={_parent:null,_visibilityMode:Sys.UI.VisibilityMode.hide,get_element:function(){return this._element},get_id:function(){return this._element?this._element.id:""},set_id:function(){throw Error.invalidOperation(Sys.Res.cantSetId);},get_parent:function(){if(this._parent)return this._parent;if(!this._element)return null;for(var n=this._element.parentNode;n;){if(n.control)return n.control;n=n.parentNode}return null},set_parent:function(n){this._parent=n},get_role:function(){return null},get_visibilityMode:function(){return Sys.UI.DomElement.getVisibilityMode(this._element)},set_visibilityMode:function(n){Sys.UI.DomElement.setVisibilityMode(this._element,n)},get_visible:function(){return Sys.UI.DomElement.getVisible(this._element)},set_visible:function(n){Sys.UI.DomElement.setVisible(this._element,n)},addCssClass:function(n){Sys.UI.DomElement.addCssClass(this._element,n)},dispose:function(){Sys.UI.Control.callBaseMethod(this,"dispose");this._element&&(this._element.control=null,delete this._element);this._parent&&delete this._parent},onBubbleEvent:function(){return!1},raiseBubbleEvent:function(n,t){this._raiseBubbleEvent(n,t)},_raiseBubbleEvent:function(n,t){for(var i=this.get_parent();i;){if(i.onBubbleEvent(n,t))return;i=i.get_parent()}},removeCssClass:function(n){Sys.UI.DomElement.removeCssClass(this._element,n)},toggleCssClass:function(n){Sys.UI.DomElement.toggleCssClass(this._element,n)}};Sys.UI.Control.registerClass("Sys.UI.Control",Sys.Component);Sys.HistoryEventArgs=function(n){Sys.HistoryEventArgs.initializeBase(this);this._state=n};Sys.HistoryEventArgs.prototype={get_state:function(){return this._state}};Sys.HistoryEventArgs.registerClass("Sys.HistoryEventArgs",Sys.EventArgs);Sys.Application._appLoadHandler=null;Sys.Application._beginRequestHandler=null;Sys.Application._clientId=null;Sys.Application._currentEntry="";Sys.Application._endRequestHandler=null;Sys.Application._history=null;Sys.Application._enableHistory=!1;Sys.Application._historyFrame=null;Sys.Application._historyInitialized=!1;Sys.Application._historyPointIsNew=!1;Sys.Application._ignoreTimer=!1;Sys.Application._initialState=null;Sys.Application._state={};Sys.Application._timerCookie=0;Sys.Application._timerHandler=null;Sys.Application._uniqueId=null;Sys._Application.prototype.get_stateString=function(){var n=null,t,i;return Sys.Browser.agent===Sys.Browser.Firefox?(t=window.location.href,i=t.indexOf("#"),i!==-1?t.substring(i+1):""):(n=window.location.hash,n.length>0&&n.charAt(0)==="#"&&(n=n.substring(1)),n)};Sys._Application.prototype.get_enableHistory=function(){return this._enableHistory};Sys._Application.prototype.set_enableHistory=function(n){this._enableHistory=n};Sys._Application.prototype.add_navigate=function(n){this.get_events().addHandler("navigate",n)};Sys._Application.prototype.remove_navigate=function(n){this.get_events().removeHandler("navigate",n)};Sys._Application.prototype.addHistoryPoint=function(n,t){var i,r,u,f;this._ensureHistory();i=this._state;for(r in n)u=n[r],u===null?typeof i[r]!="undefined"&&delete i[r]:i[r]=u;f=this._serializeState(i);this._historyPointIsNew=!0;this._setState(f,t);this._raiseNavigate()};Sys._Application.prototype.setServerId=function(n,t){this._clientId=n;this._uniqueId=t};Sys._Application.prototype.setServerState=function(n){this._ensureHistory();this._state.__s=n;this._updateHiddenField(n)};Sys._Application.prototype._deserializeState=function(n){var f={},t,e,u,o,i,r,s,h;for(n=n||"",t=n.indexOf("&&"),t!==-1&&t+2<n.length&&(f.__s=n.substr(t+2),n=n.substr(0,t)),e=n.split("&"),u=0,o=e.length;u<o;u++)i=e[u],r=i.indexOf("="),r!==-1&&r+1<i.length&&(s=i.substr(0,r),h=i.substr(r+1),f[s]=decodeURIComponent(h));return f};Sys._Application.prototype._enableHistoryInScriptManager=function(){this._enableHistory=!0};Sys._Application.prototype._ensureHistory=function(){if(!this._historyInitialized&&this._enableHistory){Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.documentMode<8&&(this._historyFrame=document.getElementById("__historyFrame"),this._ignoreIFrame=!0);this._timerHandler=Function.createDelegate(this,this._onIdle);this._timerCookie=window.setTimeout(this._timerHandler,100);try{this._initialState=this._deserializeState(this.get_stateString())}catch(n){}this._historyInitialized=!0}};Sys._Application.prototype._navigate=function(n){var t,r,i;if(this._ensureHistory(),t=this._deserializeState(n),this._uniqueId&&(r=this._state.__s||"",i=t.__s||"",i!==r)){this._updateHiddenField(i);__doPostBack(this._uniqueId,i);this._state=t;return}this._setState(n);this._state=t;this._raiseNavigate()};Sys._Application.prototype._onIdle=function(){delete this._timerCookie;var n=this.get_stateString();n!==this._currentEntry?this._ignoreTimer||(this._historyPointIsNew=!1,this._navigate(n)):this._ignoreTimer=!1;this._timerCookie=window.setTimeout(this._timerHandler,100)};Sys._Application.prototype._onIFrameLoad=function(n){this._ensureHistory();this._ignoreIFrame||(this._historyPointIsNew=!1,this._navigate(n));this._ignoreIFrame=!1};Sys._Application.prototype._onPageRequestManagerBeginRequest=function(){this._ignoreTimer=!0;this._originalTitle=document.title};Sys._Application.prototype._onPageRequestManagerEndRequest=function(n,t){var u=t.get_dataItems()[this._clientId],f=this._originalTitle,r,i,e;this._originalTitle=null;r=document.getElementById("__EVENTTARGET");r&&r.value===this._uniqueId&&(r.value="");typeof u!="undefined"?(this.setServerState(u),this._historyPointIsNew=!0):this._ignoreTimer=!1;i=this._serializeState(this._state);i!==this._currentEntry&&(this._ignoreTimer=!0,typeof f=="string"?(Sys.Browser.agent!==Sys.Browser.InternetExplorer||Sys.Browser.version>7?(e=document.title,document.title=f,this._setState(i),document.title=e):this._setState(i),this._raiseNavigate()):(this._setState(i),this._raiseNavigate()))};Sys._Application.prototype._raiseNavigate=function(){var u=this._historyPointIsNew,t=this.get_events().getHandler("navigate"),i={},n,r;for(n in this._state)n!=="__s"&&(i[n]=this._state[n]);if(r=new Sys.HistoryEventArgs(i),t&&t(this,r),!u)try{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(f){}};Sys._Application.prototype._serializeState=function(n){var i=[],t,r,u;for(t in n)r=n[t],t==="__s"?u=r:i[i.length]=t+"="+encodeURIComponent(r);return i.join("&")+(u?"&&"+u:"")};Sys._Application.prototype._setState=function(n,t){var i,u,r,f;this._enableHistory&&(n=n||"",n!==this._currentEntry&&(window.theForm&&(i=window.theForm.action,u=i.indexOf("#"),window.theForm.action=(u!==-1?i.substring(0,u):i)+"#"+n),this._historyFrame&&this._historyPointIsNew&&(this._ignoreIFrame=!0,r=this._historyFrame.contentWindow.document,r.open("javascript:'<html><\/html>'"),r.write("<html><head><title>"+(t||document.title)+'<\/title><script type="text/javascript">parent.Sys.Application._onIFrameLoad('+Sys.Serialization.JavaScriptSerializer.serialize(n)+");<\/script><\/head><body><\/body><\/html>"),r.close()),this._ignoreTimer=!1,this._currentEntry=n,(this._historyFrame||this._historyPointIsNew)&&(f=this.get_stateString(),n!==f&&(window.location.hash=n,this._currentEntry=this.get_stateString(),typeof t!="undefined"&&t!==null&&(document.title=t))),this._historyPointIsNew=!1))};Sys._Application.prototype._updateHiddenField=function(n){if(this._clientId){var t=document.getElementById(this._clientId);t&&(t.value=n)}};window.XMLHttpRequest||(window.XMLHttpRequest=function(){for(var t=["Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP"],n=0,i=t.length;n<i;n++)try{return new ActiveXObject(t[n])}catch(r){}return null});Type.registerNamespace("Sys.Net");Sys.Net.WebRequestExecutor=function(){this._webRequest=null;this._resultObject=null};Sys.Net.WebRequestExecutor.prototype={get_webRequest:function(){return this._webRequest},_set_webRequest:function(n){this._webRequest=n},get_started:function(){throw Error.notImplemented();},get_responseAvailable:function(){throw Error.notImplemented();},get_timedOut:function(){throw Error.notImplemented();},get_aborted:function(){throw Error.notImplemented();},get_responseData:function(){throw Error.notImplemented();},get_statusCode:function(){throw Error.notImplemented();},get_statusText:function(){throw Error.notImplemented();},get_xml:function(){throw Error.notImplemented();},get_object:function(){return this._resultObject||(this._resultObject=Sys.Serialization.JavaScriptSerializer.deserialize(this.get_responseData())),this._resultObject},executeRequest:function(){throw Error.notImplemented();},abort:function(){throw Error.notImplemented();},getResponseHeader:function(){throw Error.notImplemented();},getAllResponseHeaders:function(){throw Error.notImplemented();}};Sys.Net.WebRequestExecutor.registerClass("Sys.Net.WebRequestExecutor");Sys.Net.XMLDOM=function(n){var r,i,u,t,f;if(window.DOMParser)try{return f=new window.DOMParser,f.parseFromString(n,"text/xml")}catch(e){}else for(r=["Msxml2.DOMDocument.3.0","Msxml2.DOMDocument"],i=0,u=r.length;i<u;i++)try{return t=new ActiveXObject(r[i]),t.async=!1,t.loadXML(n),t.setProperty("SelectionLanguage","XPath"),t}catch(e){}return null};Sys.Net.XMLHttpExecutor=function(){Sys.Net.XMLHttpExecutor.initializeBase(this);var n=this;this._xmlHttpRequest=null;this._webRequest=null;this._responseAvailable=!1;this._timedOut=!1;this._timer=null;this._aborted=!1;this._started=!1;this._onReadyStateChange=function(){if(n._xmlHttpRequest.readyState===4){try{if(typeof n._xmlHttpRequest.status=="undefined")return}catch(t){return}n._clearTimer();n._responseAvailable=!0;try{n._webRequest.completed(Sys.EventArgs.Empty)}finally{n._xmlHttpRequest!=null&&(n._xmlHttpRequest.onreadystatechange=Function.emptyMethod,n._xmlHttpRequest=null)}}};this._clearTimer=function(){n._timer!=null&&(window.clearTimeout(n._timer),n._timer=null)};this._onTimeout=function(){n._responseAvailable||(n._clearTimer(),n._timedOut=!0,n._xmlHttpRequest.onreadystatechange=Function.emptyMethod,n._xmlHttpRequest.abort(),n._webRequest.completed(Sys.EventArgs.Empty),n._xmlHttpRequest=null)}};Sys.Net.XMLHttpExecutor.prototype={get_timedOut:function(){return this._timedOut},get_started:function(){return this._started},get_responseAvailable:function(){return this._responseAvailable},get_aborted:function(){return this._aborted},executeRequest:function(){var t,n,i,r,u,f;if(this._webRequest=this.get_webRequest(),t=this._webRequest.get_body(),n=this._webRequest.get_headers(),this._xmlHttpRequest=new XMLHttpRequest,this._xmlHttpRequest.onreadystatechange=this._onReadyStateChange,i=this._webRequest.get_httpVerb(),this._xmlHttpRequest.open(i,this._webRequest.getResolvedUrl(),!0),this._xmlHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest"),n)for(r in n)u=n[r],typeof u!="function"&&this._xmlHttpRequest.setRequestHeader(r,u);i.toLowerCase()==="post"&&(n!==null&&n["Content-Type"]||this._xmlHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"),t||(t=""));f=this._webRequest.get_timeout();f>0&&(this._timer=window.setTimeout(Function.createDelegate(this,this._onTimeout),f));this._xmlHttpRequest.send(t);this._started=!0},getResponseHeader:function(n){var t;try{t=this._xmlHttpRequest.getResponseHeader(n)}catch(i){}return t||(t=""),t},getAllResponseHeaders:function(){return this._xmlHttpRequest.getAllResponseHeaders()},get_responseData:function(){return this._xmlHttpRequest.responseText},get_statusCode:function(){var n=0;try{n=this._xmlHttpRequest.status}catch(t){}return n},get_statusText:function(){return this._xmlHttpRequest.statusText},get_xml:function(){var n=this._xmlHttpRequest.responseXML;if(n&&n.documentElement)navigator.userAgent.indexOf("MSIE")!==-1&&n.setProperty("SelectionLanguage","XPath");else if(n=Sys.Net.XMLDOM(this._xmlHttpRequest.responseText),!n||!n.documentElement)return null;return n.documentElement.namespaceURI==="http://www.mozilla.org/newlayout/xml/parsererror.xml"&&n.documentElement.tagName==="parsererror"?null:n.documentElement.firstChild&&n.documentElement.firstChild.tagName==="parsererror"?null:n},abort:function(){this._aborted||this._responseAvailable||this._timedOut||(this._aborted=!0,this._clearTimer(),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(n){this._get_eventHandlerList().addHandler("invokingRequest",n)},remove_invokingRequest:function(n){this._get_eventHandlerList().removeHandler("invokingRequest",n)},add_completedRequest:function(n){this._get_eventHandlerList().addHandler("completedRequest",n)},remove_completedRequest:function(n){this._get_eventHandlerList().removeHandler("completedRequest",n)},_get_eventHandlerList:function(){return this._events||(this._events=new Sys.EventHandlerList),this._events},get_defaultTimeout:function(){return this._defaultTimeout},set_defaultTimeout:function(n){this._defaultTimeout=n},get_defaultExecutorType:function(){return this._defaultExecutorType},set_defaultExecutorType:function(n){this._defaultExecutorType=n},executeRequest:function(webRequest){var executor=webRequest.get_executor(),failed,executorType,evArgs,handler;if(!executor){failed=!1;try{executorType=eval(this._defaultExecutorType);executor=new executorType}catch(a){failed=!0}webRequest.set_executor(executor)}executor.get_aborted()||(evArgs=new Sys.Net.NetworkRequestEventArgs(webRequest),handler=this._get_eventHandlerList().getHandler("invokingRequest"),handler&&handler(this,evArgs),evArgs.get_cancel()||executor.executeRequest())}};Sys.Net._WebRequestManager.registerClass("Sys.Net._WebRequestManager");Sys.Net.WebRequestManager=new Sys.Net._WebRequestManager;Sys.Net.NetworkRequestEventArgs=function(n){Sys.Net.NetworkRequestEventArgs.initializeBase(this);this._webRequest=n};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=!1;this._timeout=0};Sys.Net.WebRequest.prototype={add_completed:function(n){this._get_eventHandlerList().addHandler("completed",n)},remove_completed:function(n){this._get_eventHandlerList().removeHandler("completed",n)},completed:function(n){var t=Sys.Net.WebRequestManager._get_eventHandlerList().getHandler("completedRequest");t&&t(this._executor,n);t=this._get_eventHandlerList().getHandler("completed");t&&t(this._executor,n)},_get_eventHandlerList:function(){return this._events||(this._events=new Sys.EventHandlerList),this._events},get_url:function(){return this._url},set_url:function(n){this._url=n},get_headers:function(){return this._headers},get_httpVerb:function(){return this._httpVerb===null?this._body===null?"GET":"POST":this._httpVerb},set_httpVerb:function(n){this._httpVerb=n},get_body:function(){return this._body},set_body:function(n){this._body=n},get_userContext:function(){return this._userContext},set_userContext:function(n){this._userContext=n},get_executor:function(){return this._executor},set_executor:function(n){this._executor=n;this._executor._set_webRequest(this)},get_timeout:function(){return this._timeout===0?Sys.Net.WebRequestManager.get_defaultTimeout():this._timeout},set_timeout:function(n){this._timeout=n},getResolvedUrl:function(){return Sys.Net.WebRequest._resolveUrl(this._url)},invoke:function(){Sys.Net.WebRequestManager.executeRequest(this);this._invokeCalled=!0}};Sys.Net.WebRequest._resolveUrl=function(n,t){var r,i,u,f,e;return n&&n.indexOf("://")!==-1?n:(t&&t.length!==0||(r=document.getElementsByTagName("base")[0],t=r&&r.href&&r.href.length>0?r.href:document.URL),i=t.indexOf("?"),i!==-1&&(t=t.substr(0,i)),i=t.indexOf("#"),i!==-1&&(t=t.substr(0,i)),t=t.substr(0,t.lastIndexOf("/")+1),!n||n.length===0)?t:n.charAt(0)==="/"?(u=t.indexOf("://"),f=t.indexOf("/",u+3),t.substr(0,f)+n):(e=t.lastIndexOf("/"),t.substr(0,e+1)+n)};Sys.Net.WebRequest._createQueryString=function(n,t,i){t=t||encodeURIComponent;var e=0,u,o,f,r=new Sys.StringBuilder;if(n)for(f in n)(u=n[f],typeof u!="function")&&(o=Sys.Serialization.JavaScriptSerializer.serialize(u),e++&&r.append("&"),r.append(f),r.append("="),r.append(t(o)));return i&&(e&&r.append("&"),r.append(i)),r.toString()};Sys.Net.WebRequest._createUrl=function(n,t,i){if(!t&&!i)return n;var r=Sys.Net.WebRequest._createQueryString(t,null,i);return r.length?n+(n&&n.indexOf("?")>=0?"&":"?")+r:n};Sys.Net.WebRequest.registerClass("Sys.Net.WebRequest");Sys._ScriptLoaderTask=function(n,t){this._scriptElement=n;this._completedCallback=t};Sys._ScriptLoaderTask.prototype={get_scriptElement:function(){return this._scriptElement},dispose:function(){this._disposed||(this._disposed=!0,this._removeScriptElementHandlers(),Sys._ScriptLoaderTask._clearScript(this._scriptElement),this._scriptElement=null)},execute:function(){this._addScriptElementHandlers();document.getElementsByTagName("head")[0].appendChild(this._scriptElement)},_addScriptElementHandlers:function(){this._scriptLoadDelegate=Function.createDelegate(this,this._scriptLoadHandler);Sys.Browser.agent!==Sys.Browser.InternetExplorer?(this._scriptElement.readyState="loaded",$addHandler(this._scriptElement,"load",this._scriptLoadDelegate)):$addHandler(this._scriptElement,"readystatechange",this._scriptLoadDelegate);this._scriptElement.addEventListener&&(this._scriptErrorDelegate=Function.createDelegate(this,this._scriptErrorHandler),this._scriptElement.addEventListener("error",this._scriptErrorDelegate,!1))},_removeScriptElementHandlers:function(){if(this._scriptLoadDelegate){var n=this.get_scriptElement();Sys.Browser.agent!==Sys.Browser.InternetExplorer?$removeHandler(n,"load",this._scriptLoadDelegate):$removeHandler(n,"readystatechange",this._scriptLoadDelegate);this._scriptErrorDelegate&&(this._scriptElement.removeEventListener("error",this._scriptErrorDelegate,!1),this._scriptErrorDelegate=null);this._scriptLoadDelegate=null}},_scriptErrorHandler:function(){this._disposed||this._completedCallback(this.get_scriptElement(),!1)},_scriptLoadHandler:function(){if(!this._disposed){var n=this.get_scriptElement();(n.readyState==="loaded"||n.readyState==="complete")&&this._completedCallback(n,!0)}}};Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask",null,Sys.IDisposable);Sys._ScriptLoaderTask._clearScript=function(n){Sys.Debug.isDebug||n.parentNode.removeChild(n)};Type.registerNamespace("Sys.Net");Sys.Net.WebServiceProxy=function(){};Sys.Net.WebServiceProxy.prototype={get_timeout:function(){return this._timeout||0},set_timeout:function(n){if(n<0)throw Error.argumentOutOfRange("value",n,Sys.Res.invalidTimeout);this._timeout=n},get_defaultUserContext:function(){return typeof this._userContext=="undefined"?null:this._userContext},set_defaultUserContext:function(n){this._userContext=n},get_defaultSucceededCallback:function(){return this._succeeded||null},set_defaultSucceededCallback:function(n){this._succeeded=n},get_defaultFailedCallback:function(){return this._failed||null},set_defaultFailedCallback:function(n){this._failed=n},get_enableJsonp:function(){return!!this._jsonp},set_enableJsonp:function(n){this._jsonp=n},get_path:function(){return this._path||null},set_path:function(n){this._path=n},get_jsonpCallbackParameter:function(){return this._callbackParameter||"callback"},set_jsonpCallbackParameter:function(n){this._callbackParameter=n},_invoke:function(n,t,i,r,u,f,e){return u=u||this.get_defaultSucceededCallback(),f=f||this.get_defaultFailedCallback(),(e===null||typeof e=="undefined")&&(e=this.get_defaultUserContext()),Sys.Net.WebServiceProxy.invoke(n,t,i,r,u,f,e,this.get_timeout(),this.get_enableJsonp(),this.get_jsonpCallbackParameter())}};Sys.Net.WebServiceProxy.registerClass("Sys.Net.WebServiceProxy");Sys.Net.WebServiceProxy.invoke=function(n,t,i,r,u,f,e,o,s,h){function it(n){var r,i,o,h,s,c;if(n.get_responseAvailable()){r=n.get_statusCode();i=null;try{o=n.getResponseHeader("Content-Type");i=o.startsWith("application/json")?n.get_object():o.startsWith("text/xml")?n.get_xml():n.get_responseData()}catch(l){}h=n.getResponseHeader("jsonerror");s=h==="true";s?i&&(i=new Sys.Net.WebServiceError(!1,i.Message,i.StackTrace,i.ExceptionType,i)):o.startsWith("application/json")&&(i=!i||typeof i.d=="undefined"?i:i.d);r<200||r>=300||s?f&&(i&&s||(i=new Sys.Net.WebServiceError(!1,String.format(Sys.Res.webServiceFailedNoMsg,t))),i._statusCode=r,f(i,e,t)):u&&u(i,e,t)}else c=n.get_timedOut()?String.format(Sys.Res.webServiceTimedOut,t):String.format(Sys.Res.webServiceFailedNoMsg,t),f&&f(new Sys.Net.WebServiceError(n.get_timedOut(),c,"",""),e,t)}var y=s!==!1?Sys.Net.WebServiceProxy._xdomain.exec(n):null,l,p=y&&y.length===3&&(y[1]!==location.protocol||y[2]!==location.host),w,c;i=p||i;p&&(h=h||"callback",l="_jsonp"+Sys._jsonp++);r||(r={});w=r;i&&w||(w={});var d,v,a=null,b,k=null,g=Sys.Net.WebRequest._createUrl(t?n+"/"+encodeURIComponent(t):n,w,p?h+"=Sys."+l:null);if(p){d=document.createElement("script");d.src=g;b=new Sys._ScriptLoaderTask(d,function(n,i){(!i||l)&&nt({Message:String.format(Sys.Res.webServiceFailedNoMsg,t)},-1)});function tt(){a!==null&&(a=null,v=new Sys.Net.WebServiceError(!0,String.format(Sys.Res.webServiceTimedOut,t)),b.dispose(),delete Sys[l],f&&f(v,e,t))}function nt(n,i){a!==null&&(window.clearTimeout(a),a=null);b.dispose();delete Sys[l];l=null;typeof i!="undefined"&&i!==200?f&&(v=new Sys.Net.WebServiceError(!1,n.Message||String.format(Sys.Res.webServiceFailedNoMsg,t),n.StackTrace||null,n.ExceptionType||null,n),v._statusCode=i,f(v,e,t)):u&&u(n,e,t)}return Sys[l]=nt,o=o||Sys.Net.WebRequestManager.get_defaultTimeout(),o>0&&(a=window.setTimeout(tt,o)),b.execute(),null}return c=new Sys.Net.WebRequest,c.set_url(g),c.get_headers()["Content-Type"]="application/json; charset=utf-8",i||(k=Sys.Serialization.JavaScriptSerializer.serialize(r),k==="{}"&&(k="")),c.set_body(k),c.add_completed(it),o&&o>0&&c.set_timeout(o),c.invoke(),c};Sys.Net.WebServiceProxy._generateTypedConstructor=function(n){return function(t){if(t)for(var i in t)this[i]=t[i];this.__type=n}};Sys._jsonp=0;Sys.Net.WebServiceProxy._xdomain=/^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/;Sys.Net.WebServiceError=function(n,t,i,r,u){this._timedOut=n;this._message=t;this._stackTrace=i;this._exceptionType=r;this._errorObject=u;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 '{0}' failed with the following error: {1}",argumentType:"Object cannot be converted to the required type.",argumentNull:"Value cannot be null.",scriptAlreadyLoaded:"The script '{0}' has been referenced multiple times. If referencing Microsoft AJAX scripts explicitly, set the MicrosoftAjaxMode property of the ScriptManager to Explicit.",scriptDependencyNotFound:"The script '{0}' failed to load because it is dependent on script '{1}'.",formatBadFormatSpecifier:"Format specifier was invalid.",requiredScriptReferenceNotIncluded:"'{0}' requires that you have included a script reference to '{1}'.",webServiceFailedNoMsg:"The server method '{0}' 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:"'{0}' is not a valid value for enum {1}.",scriptLoadFailed:"The script '{0}' 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 '{0}' returned an invalid type. Expected type: {1}",servicePathNotSet:"The path to the web service has not been set.",argumentTypeWithTypes:"Object of type '{0}' cannot be converted to type '{1}'.",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: '{0}'.",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 '{0}' 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?"};Type.registerNamespace("Sys.Mvc");Sys.Mvc.$create_AjaxOptions=function(){return{}};Sys.Mvc.InsertionMode=function(){};Sys.Mvc.InsertionMode.prototype={replace:0,insertBefore:1,insertAfter:2};Sys.Mvc.InsertionMode.registerEnum("Sys.Mvc.InsertionMode",!1);Sys.Mvc.AjaxContext=function(n,t,i,r){this._request=n;this._updateTarget=t;this._loadingElement=i;this._insertionMode=r};Sys.Mvc.AjaxContext.prototype={_insertionMode:0,_loadingElement:null,_response:null,_request:null,_updateTarget:null,get_data:function(){return this._response?this._response.get_responseData():null},get_insertionMode:function(){return this._insertionMode},get_loadingElement:function(){return this._loadingElement},get_object:function(){var n=this.get_response();return n?n.get_object():null},get_response:function(){return this._response},set_response:function(n){return this._response=n,n},get_request:function(){return this._request},get_updateTarget:function(){return this._updateTarget}};Sys.Mvc.AsyncHyperlink=function(){};Sys.Mvc.AsyncHyperlink.handleClick=function(n,t,i){t.preventDefault();Sys.Mvc.MvcHelpers._asyncRequest(n.href,"post","",n,i)};Sys.Mvc.MvcHelpers=function(){};Sys.Mvc.MvcHelpers._serializeSubmitButton=function(n,t,i){var r,e;if(n.disabled)return null;if(r=n.name,r){var o=n.tagName.toUpperCase(),u=encodeURIComponent(r),f=n;if(o==="INPUT"){if(e=f.type,e==="submit")return u+"="+encodeURIComponent(f.value);if(e==="image")return u+".x="+t+"&"+u+".y="+i}else if(o==="BUTTON"&&r.length&&f.type==="submit")return u+"="+encodeURIComponent(f.value)}return null};Sys.Mvc.MvcHelpers._serializeForm=function(n){for(var i,r,f,s,u,h,v,e,c,l,a=n.elements,t=new Sys.StringBuilder,y=a.length,o=0;o<y;o++)if(i=a[o],r=i.name,r&&r.length)if(f=i.tagName.toUpperCase(),f==="INPUT")s=i,u=s.type,(u==="text"||u==="password"||u==="hidden"||(u==="checkbox"||u==="radio")&&i.checked)&&(t.append(encodeURIComponent(r)),t.append("="),t.append(encodeURIComponent(s.value)),t.append("&"));else if(f==="SELECT")for(h=i,v=h.options.length,e=0;e<v;e++)c=h.options[e],c.selected&&(t.append(encodeURIComponent(r)),t.append("="),t.append(encodeURIComponent(c.value)),t.append("&"));else f==="TEXTAREA"&&(t.append(encodeURIComponent(r)),t.append("="),t.append(encodeURIComponent(i.value)),t.append("&"));return l=n._additionalInput,l&&(t.append(l),t.append("&")),t.toString()};Sys.Mvc.MvcHelpers._asyncRequest=function(n,t,i,r,u){var e,h,c,f,l,o,s,a;(!u.confirm||confirm(u.confirm))&&(u.url&&(n=u.url),u.httpMethod&&(t=u.httpMethod),i.length>0&&!i.endsWith("&")&&(i+="&"),i+="X-Requested-With=XMLHttpRequest",e=t.toUpperCase(),h=e==="GET"||e==="POST",h||(i+="&",i+="X-HTTP-Method-Override="+e),c="",e==="GET"||e==="DELETE"?n.indexOf("?")>-1?(n.endsWith("&")||(n+="&"),n+=i):(n+="?",n+=i):c=i,f=new Sys.Net.WebRequest,f.set_url(n),h?f.set_httpVerb(t):(f.set_httpVerb("POST"),f.get_headers()["X-HTTP-Method-Override"]=e),f.set_body(c),t.toUpperCase()==="PUT"&&(f.get_headers()["Content-Type"]="application/x-www-form-urlencoded;"),f.get_headers()["X-Requested-With"]="XMLHttpRequest",l=null,u.updateTargetId&&(l=$get(u.updateTargetId)),o=null,u.loadingElementId&&(o=$get(u.loadingElementId)),s=new Sys.Mvc.AjaxContext(f,l,o,u.insertionMode),a=!0,u.onBegin&&(a=u.onBegin(s)!==!1),o&&Sys.UI.DomElement.setVisible(s.get_loadingElement(),!0),a&&(f.add_completed(Function.createDelegate(null,function(){Sys.Mvc.MvcHelpers._onComplete(f,u,s)})),f.invoke()))};Sys.Mvc.MvcHelpers._onComplete=function(request,ajaxOptions,ajaxContext){var statusCode,contentType;if(ajaxContext.set_response(request.get_executor()),!ajaxOptions.onComplete||ajaxOptions.onComplete(ajaxContext)!==!1){if(statusCode=ajaxContext.get_response().get_statusCode(),statusCode>=200&&statusCode<300||statusCode===304||statusCode===1223){if(statusCode!==204&&statusCode!==304&&statusCode!==1223&&(contentType=ajaxContext.get_response().getResponseHeader("Content-Type"),contentType&&contentType.indexOf("application/x-javascript")!==-1?eval(ajaxContext.get_data()):Sys.Mvc.MvcHelpers.updateDomElement(ajaxContext.get_updateTarget(),ajaxContext.get_insertionMode(),ajaxContext.get_data())),ajaxOptions.onSuccess)ajaxOptions.onSuccess(ajaxContext)}else if(ajaxOptions.onFailure)ajaxOptions.onFailure(ajaxContext);ajaxContext.get_loadingElement()&&Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(),!1)}};Sys.Mvc.MvcHelpers.updateDomElement=function(n,t,i){if(n)switch(t){case Sys.Mvc.InsertionMode.replace:n.innerHTML=i;break;case Sys.Mvc.InsertionMode.insertBefore:i&&i.length>0&&(n.innerHTML=i+n.innerHTML.trimStart());break;case Sys.Mvc.InsertionMode.insertAfter:i&&i.length>0&&(n.innerHTML=n.innerHTML.trimEnd()+i)}};Sys.Mvc.AsyncForm=function(){};Sys.Mvc.AsyncForm.handleClick=function(n,t){var i=Sys.Mvc.MvcHelpers._serializeSubmitButton(t.target,t.offsetX,t.offsetY);n._additionalInput=i};Sys.Mvc.AsyncForm.handleSubmit=function(n,t,i){t.preventDefault();var r=Sys.Mvc.MvcHelpers._serializeForm(n);Sys.Mvc.MvcHelpers._asyncRequest(n.action,n.method||"post",r,n,i)};Sys.Mvc.AjaxContext.registerClass("Sys.Mvc.AjaxContext");Sys.Mvc.AsyncHyperlink.registerClass("Sys.Mvc.AsyncHyperlink");Sys.Mvc.MvcHelpers.registerClass("Sys.Mvc.MvcHelpers");Sys.Mvc.AsyncForm.registerClass("Sys.Mvc.AsyncForm");Sys.Mvc.MvcHelpers._serializeForm=function(n){for(var i,u,f,s,r,h,v,e,c,l,a=n.elements,t=new Sys.StringBuilder,y=a.length,o=0;o<y;o++)if(i=a[o],u=i.name,u&&u.length)if(f=i.tagName.toUpperCase(),f==="INPUT")s=i,r=s.type,(r!=="image"&&r!=="submit"&&r!=="reset"&&r!=="button"||(r==="checkbox"||r==="radio")&&i.checked)&&(t.append(encodeURIComponent(u)),t.append("="),t.append(encodeURIComponent(s.value)),t.append("&"));else if(f==="SELECT")for(h=i,v=h.options.length,e=0;e<v;e++)c=h.options[e],c.selected&&(t.append(encodeURIComponent(u)),t.append("="),t.append(encodeURIComponent(c.value)),t.append("&"));else f==="TEXTAREA"&&(t.append(encodeURIComponent(u)),t.append("="),t.append(encodeURIComponent(i.value)),t.append("&"));return l=n._additionalInput,l&&(t.append(l),t.append("&")),t.toString()};var DOM=document.getElementById?!0:!1,OP=window.opera?!0:!1,OP5=OP&&DOM?!0:!1,NS=window.outerWidth&&!OP?!0:!1,MOZ=NS&&DOM?!0:!1,NS4=NS&&!DOM?!0:!1,IE=document.all&&!OP?!0:!1,IE5=IE&&DOM?!0:!1,IE4=IE&&!DOM?!0:!1,WIN=navigator.userAgent.indexOf("Win")!=-1?!0:!1;FirstLevel=["0","en_01_home_0","en_02_movies_0","en_03_tickets_0","en_04_news_0","en_05_cinemas_0","en_06_b2b_0","en_07_distribution_0","en_08_thescenes_0","en_09_mypage_0"];_ieVersion=!1;NumbR=0;ActiveNavi=0;today=new Date;expire=new Date;expire.setTime(today.getTime()+31536e6);naviEnabled=0;ActiveLink=0;probtn=[0,0,0];proPages=0;proPageNow=0;vast2="";ImageFadeObjects={};ImageFadeTimers={};korjausX=-290;korjausY=-10;String.prototype.beginsWith=function(n,t){return t==!1?n==this.substring(0,n.length):n.toLowerCase()==this.substring(0,n.length).toLowerCase()};String.prototype.endsWith=function(n,t){return t==!1?n==this.substring(this.length-n.length):n.toLowerCase()==this.substring(this.length-n.length).toLowerCase()};jQuery.fn.extend({selectbox:function(n){return this.each(function(){new jQuery.SelectBox(this,n)})}});window.console||(console={log:function(){}});_selectBoxInitialized=!1;jQuery.SelectBox=function(n,t){function tt(n){var t,o,e,f;return n!=""?(v<-1&&(t=$("li."+r.hoverClass,i),t.size()==0&&(t=$("li."+r.currentClass,i)),o=jQuery("li",i),e=-1,t&&(e=o.index(t.get(0))-1),v=e),f=ut(n,v),f||(f=ut(n,-1)),f||(u=u.substring(0,u.length-1)),v=-2):jQuery("li",i).removeClass(r.hoverClass),f}function ut(n,t){var e=!1,u=jQuery("li:not(nulltext)",i),o="li:not(nulltext):gt("+t+")";return t<=-1&&(o="li"),jQuery(o,i).each(function(){var t,i;e||(t=jQuery.trim(jQuery(this).text()),n=jQuery.trim(n),n.toLowerCase()==t.substring(0,n.length).toLowerCase()&&(i=u.index(this),f=i,et(u,f),u.removeClass(r.hoverClass),jQuery(u[f]).addClass(r.hoverClass),e=!0))}),e}function b(){y=0;i.hide()}function st(){i.append(vt(l.attr("id"))).hide()}function ht(n){var r=document.createElement("div"),t;return i=jQuery(r),i.attr("id",k+"_container"),i.addClass(n.containerClass),i.css("display","none"),t=e.parent().css("width"),i.css("min-width",t),i}function ct(n){var i=document.createElement("div"),t=jQuery(i);return t.attr("id",k+"_selectbox"),t.css("width",e.parent().css("width")),t.css("padding","0"),t.css("margin","0"),t.css("position","relative"),t.addClass(n.wrapperClass),t}function lt(){var r=document.createElement("div"),n=jQuery(r),t,i;return n.attr("id",k+"_displayvalue"),t=e.parent().css("width").replace("px",""),i=t-29,n.css("width",i+"px"),n.css("overflow","hidden"),n.css("position","absolute"),n.addClass("displayValue"),n}function at(){var t=document.createElement("button"),n=jQuery(t);return n.attr("id",k+"_input"),n.attr("tabIndex",e.attr("tabindex")),n.css("width",e.parent().css("width")),n.css("border","none"),n.css("text-align","left"),n.css("color","#ffffff"),n.css("background","none"),n.css("position","absolute"),n.html("<div>&nbsp;<\/div>"),n}function d(n){var t=jQuery("li",i),u;if(!t||t.length==0)return!1;t.removeClass(r.hoverClass);i.is(":visible")?(f+=n,f<0?f=0:f>=t.size()&&(f=t.size()-1),t[f]&&jQuery(t[f]).hasClass("nulltext")&&f++,et(t,f)):(u=$("li."+r.currentClass,i),f=t.index(u)+n,t.removeClass(r.currentClass),jQuery(t[f]).addClass(r.currentClass),ot());jQuery(t[f]).addClass(r.hoverClass)}function ft(n){var t=i.children("UL").scrollTop(),r=Math.floor(t/a),u=r+n,f=a*u+1;i.children("UL").scrollTop(f-1)}function et(n,t){var i=jQuery(n[t]).get(0),f,r,u;i?(f=jQuery(i).parent().scrollTop(),r=jQuery(i).position().top,r<=0?(u=r+f,jQuery(i).parent().scrollTop(u)):r>=h&&(u=r+f-h+a,jQuery(i).parent().scrollTop(u))):jQuery(n).parent().scrollTop(0)}function ot(){var n=jQuery("li."+r.currentClass,i).get(0),t=(""+n.id).split("_"),f=t[t.length-1],u=$("li",i).index(n),o=e.get(0).selectedIndex;if(o!=u&&(nt.html($(n).html()),e.val(f),e.get(0).selectedIndex=u,e.change()),r.onChangeParams={selectedVal:e.val()},r.onChangeCallback)r.onChangeCallback(r.onChangeParams);return!0}function vt(n){var t=document.createElement("ul");return o=0,e.children("option").each(function(){if(this){var f=document.createElement("li");o++;f.setAttribute("id",n+"_"+$(this).val());f.innerHTML=$(this).html();$(this).is(":selected")&&(nt.html("<div>"+$(this).html()+"<\/div>"),$(f).addClass(r.currentClass));$(this).hasClass("nulltext")&&($(f).hide(),$(f).addClass("nulltext"),o--);t.appendChild(f);$(f).mouseover(function(n){y=1;r.debug&&console.log("over on : "+this.id);jQuery(n.target,i).addClass(r.hoverClass)}).mouseout(function(n){y=-1;r.debug&&console.log("out on : "+this.id);jQuery(n.target,i).removeClass(r.hoverClass)}).click(function(){r.debug&&console.log("click on :"+this.id);$("li."+r.currentClass,i).removeClass(r.currentClass);$(this).addClass(r.currentClass);$("li."+r.hoverClass,i).removeClass(r.hoverClass);$(this).addClass(r.hoverClass);ot();u="";b();l.focus()})}}),t}var r=t||{};r.wrapperClass=r.wrapperClass||"selectbox";r.inputClass=r.inputClass||"selectbox_button";r.containerClass=r.containerClass||"selectbox-wrapper";r.hoverClass=r.hoverClass||"current";r.currentClass=r.currentClass||"selected";r.onChangeCallback=r.onChangeCallback||!1;r.onChangeParams=r.onChangeParams||!1;r.debug=r.debug||!1;var a=22,c=6,h=0,o=0,u="",g=!0,it=!1,w,v=-2,k=n.id,f=0,rt=!1,y=0,e=jQuery(n),i=ht(r),p=ct(r),l=at(r),nt=lt(r),s=0;it=e.hasClass("right");h=(o>c?c:o)*a;e.hide().before(p).before(i);p.append(nt).append(l);p.wrap('<div class="dropBackDiv1" style="width: '+e.css("width")+';position:relative;"><div class="dropBackDiv2" style="position:relative;"><\/div><\/div>');i.wrap('<div class="dropdown-container"><\/div>');st();i.children("UL").css("height",h+"px");i.children("UL").css("overflow","hidden");i.children("UL").mouseover(function(){l.focus()}).scroll(function(){l.focus()});i.children("UL").scroll(function(){var n=$(this).data("scroll-delta");$(this).data("scroll-delta",0);n<0?ft(-1):n>0&&ft(1)});o<=c;i.hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});l.click(function(){var e,k,v,t,l,nt,n;if(i.is(":visible")&&u!=""&&w)return!1;if(i.is(":visible"))n=$("li."+r.hoverClass,i),n.size()>0?n.trigger("click"):n=$("li."+r.currentClass,i),n.size()>0&&n.trigger("click"),jQuery(".optionsOuter").hide();else{jQuery(".optionsOuter").hide();i.show();jQuery("li",i).removeClass(r.hoverClass);i.width("auto");e=o>c?c:o;h=e*a;var tt=i.offset().top,ut=jQuery(document).scrollTop(),y=tt-ut;for(y<0&&(y=0),k=jQuery(window).height();e<o&&k-50>y+h;)e++,h=e*a;if(o>e?(i.children("UL").css("overflow-y","scroll"),i.children("UL").css("overflow-x","hidden")):(i.children("UL").css("overflow-y","hidden"),i.children("UL").css("overflow","hidden")),i.children("UL").height(h),v=jQuery("li",i),t=18,o>e&&(t=29),l=p.width(),s==0&&(s=l-t,v.each(function(){var n=jQuery(this).width();n>s&&(s=n)})),s+t<l&&(s=l-t),i.children("UL").width(s+t-2),$("li",i).width(s+t),it&&g){var d=i.parent().position(),st=p.parent().position().left,l=p.width(),b=d.left-s+l-t;b>0&&d.left!=b&&i.parent().css("left",b+"px")}if(g&&(DDShd(s+t-4,i.attr("id")),g=!1),nt=$("li."+r.currentClass,i),f=v.index(nt),n=jQuery(v[f]).get(0),jQuery(n).hasClass("nulltext"))jQuery(n).parent().scrollTop(0);else{var ft=jQuery(n).parent().scrollTop(),et=jQuery(n).position().top,ot=et+ft;jQuery(n).parent().scrollTop(ot)}rt=!0}return jQuery(this).focus(),!1}).dblclick(function(){return!1}).focus(function(){rt=!0}).mouseout(function(){y=-1}).mouseover(function(){y=1}).keydown(function(n){switch(n.keyCode){case 27:i.is(":visible")&&u!=""?u="":b();doCancelEvent(n);break;case 38:i.is(":visible")&&(u="",d(-1),doCancelEvent(n));break;case 40:i.is(":visible")&&(u="",d(1),doCancelEvent(n));break;case 33:i.is(":visible")&&(u="",d(-c),doCancelEvent(n));break;case 34:i.is(":visible")&&(u="",d(c),doCancelEvent(n));break;case 9:b();break;case 46:i.is(":visible")&&(doCancelEvent(n),u="",v=-2,tt(u));break;case 8:if(i.is(":visible"))return doCancelEvent(n),u.length>0&&(u=u.length==1?"":u.substring(0,u.length-1),v=-1,tt(u)),!1;break;case 32:if(i.is(":visible")&&u!="")return u+=" ",doCancelEvent(n),!1;break;case 13:if(i.is(":visible")){u="";var t=$("li."+r.hoverClass,i);t.size()>0?t.trigger("click"):t=$("li."+r.currentClass,i);t.size()>0&&t.trigger("click")}else $(this).trigger("click");doCancelEvent(n)}}).keypress(function(n,t){if(n.keyCode>0&&n.keyCode<50)switch(n.keyCode){case 9:b();break;case 8:case 13:case 38:case 40:case 33:case 34:if(i.is(":visible")&&window.opera)return doCancelEvent(n),!1}else if(i.is(":visible")){t||(t=n.which||n.charCode||n.keyCode);var r=jQuery.trim(String.fromCharCode(t));r!=""&&(u+=r,w&&clearTimeout(w),w=setTimeout(function(){tt(u);w=setTimeout(function(){u=""},3e3)},100))}}).blur(function(){i.is(":visible")&&y>0||(jQuery.browser.msie&&jQuery.browser.version.substr(0,1)<8||jQuery.browser.safari)&&document.activeElement&&document.activeElement.getAttribute("id")&&document.activeElement.getAttribute("id").indexOf("_container")==-1&&b()})},function(n){n.fn.extend({imageFit:function(t){return this.each(function(){var r=n(this).closest("div").eq(0).height(),i=n(this).closest("div").eq(0).width(),f=n(this).height(),u=n(this).width();if(f!=r||u!=i){n(this).parent().css("overflow","hidden");n(this).parent().css("position")!="absolute"&&n(this).parent().css("position","relative");n(this).css("position","absolute");var e=i/u,o=Math.ceil(f*e),s=Math.ceil(u*e);o<r?(n(this).height(r),n(this).css("left",(Math.ceil(r/f*u)-i)/-2)):s<i?(n(this).width(i),n(this).css("top",-1*Math.ceil((i/u*f-r)/3))):s<o?(n(this).width(i),n(this).css("top",0)):(n(this).height(r),n(this).css("left",(Math.ceil(r/f*u)-i)/-2));n(this).removeClass("imageFit");typeof t=="function"&&t()}})}})}(jQuery);$(window).resize(function(){clearTimeout(resizeIframesTimeout);resizeIframesTimeout=setTimeout(function(){resizeIframes($("body"))},300)});$(document).ready(function(){resizeIframes($("body"))});var _shoppingCartCheckTimer,_shoppingCartClockTimer,_ShoppingCartSecondsLeft=0,_ShoppingCartDttmNow,_ShoppingCartDttmExpires,_shoppingCartClock,_$shoppingCartClocks,_shoppingCartClockInterval,_ShoppingCartDttmCountStart,_ShoppingCartClockOffset,_ShoppingCartCheckDttmStart,_ShoppingCartExpired=!1,_ShoppingCartStatusUrl=!1,_currentPage;clockSeconds=-1;$(document).ready(function(){onReady($("BODY"))});String.prototype.trimRight=function(n){return n===undefined&&(n="s"),this.replace(new RegExp("["+n+"]+$"),"")};mediaPlayerOptions={defaultVideoWidth:"100%",defaultVideoHeight:"100%",mode:"auto_plugin",pluginPath:baseUrl.trimRight("/")+"/SharedAssets/Scripts/libs/MediaElement/",videoWidth:-1,videoHeight:-1,audioWidth:400,audioHeight:30,startVolume:.8,loop:!1,enableAutosize:!1,features:["playpause","progress","current","duration","tracks","volume","fullscreen"],alwaysShowControls:!1,iPadUseNativeControls:!0,iPhoneUseNativeControls:!0,AndroidUseNativeControls:!1,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,enableKeyboard:!0,pauseOtherPlayers:!0,keyActions:[]};mediaPlayerOptionsInPage={defaultVideoWidth:"100%",defaultVideoHeight:"100%",mode:"auto_plugin",pluginPath:baseUrl.trimRight("/")+"/SharedAssets/Scripts/libs/MediaElement/",videoWidth:-1,videoHeight:-1,audioWidth:400,audioHeight:30,startVolume:.8,loop:!1,enableAutosize:!1,features:["playpause","progress","current","duration","tracks","volume","fullscreen"],alwaysShowControls:!1,iPadUseNativeControls:!0,iPhoneUseNativeControls:!0,AndroidUseNativeControls:!1,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,enableKeyboard:!0,pauseOtherPlayers:!0,keyActions:[]};flashs=[];spinJsOptsions={lines:9,length:0,width:7,radius:8,corners:1,rotate:0,direction:1,color:["#f71010"],speed:1,trail:40,shadow:!1,hwaccel:!0,className:"spinner",zIndex:2e9,top:"-20px;",left:"0"}