function containsWrapper(n,t){return n.contains(t)}function isZeros(n){var t=!1,i=String(n);return isNaN(i)==!1&&i==0&&(t=!0),t}function isCheckReceiptNumber(n){var u=!0,f=0,i=0,r=0,t=String(n),e=/^\d{2}[АВЕКМНОРСТУХ]{2}\d{6}-\d{2}-\d(0[1-9]|1[0-2])\d$/;if(e.test(t)==!1)u=!1;else{for(r=0,f=9;f>=4;f--)i+=Number(t.charAt(f))*++r;i+=t.charCodeAt(3)*++r,i+=t.charCodeAt(2)*++r,i+=Number(t.charAt(1))*++r,t.charAt(0)!=i%10?u=!1:t.charAt(0)==t.charAt(1)&&t.charAt(0)==t.charAt(4)&&t.charAt(0)==t.charAt(5)&&t.charAt(0)==t.charAt(6)&&t.charAt(0)==t.charAt(7)&&t.charAt(0)==t.charAt(8)&&t.charAt(0)==t.charAt(9)&&t.charAt(0)==t.charAt(11)&&t.charAt(0)==t.charAt(12)&&t.charAt(0)==t.charAt(14)&&t.charAt(0)==t.charAt(15)&&t.charAt(0)==t.charAt(16)&&t.charAt(0)==t.charAt(17)&&(u=!1)}return u}function createHiddenField(n,t){var i=document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",n),i.setAttribute("value",t),i}function serializeObjToForm(n,t){var i,r;for(i in t)t.hasOwnProperty(i)&&(r=createHiddenField(i,t[i]),n.appendChild(r))}function encodeHtml(n){var t=document.createElement("div");return t.innerText=n,t.innerHTML}function decodeHtml(n){var t=document.createElement("div");return t.innerHTML=n,t.textContent}function preventEventDefault(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function fpReady(n){var t={excludeIndexedDB:!0,userAgent:!1},i=new Fingerprint2(t);i.get(function(t,i){i.push({key:"cookie_enabled",value:checkCookieEnabled()}),i.push({key:"loc_time",value:getLocalTime()}),n.appendChild(createHiddenField("fingerprint",encodeHtml(JSON.stringify(i))))})}function filterComplexFpValue(n,t,i){for(var u,o=-1,s,f,e,r=0;r<n.length;r++)f=n[r],f.key==t&&(u=f.value,o=r);if(o>-1){for(s=typeof u=="string"?u.split("~"):u,u="",r=0;r<s.length;r++)for(f=s[r],e=0;e<i.length;e++)f.indexOf(i[e])>=0&&(u+="~"+f);n[o].value=u}}function checkCookieEnabled(){var n=navigator.cookieEnabled?!0:!1;return typeof navigator.cookieEnabled!="undefined"||n||(document.cookie="testcookie",n=document.cookie.indexOf("testcookie")!=-1),n}function getLocalTime(){return(new Date).toLocaleFormat("%d.%m.%Y %H:%M:%S")}function b64EncodeUnicode(n){return btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(n,t){return String.fromCharCode("0x"+t)}))}function onLoadOnInnerForm(){var n=document.getElementById("aspnetForm");fpReady(n)}function onLoadOnLogin(){var n=document.getElementById("login");fpReady(n)}function getData(n,t,i,r){var u=null;return $.ajax({url:n,data:JSON.stringify(t),dataType:"json",type:"POST",contentType:"application/json",success:function(n){u=$.parseJSON(n.d),i(u)},complete:function(){},error:function(){r&&r()}}),u}function preparePostData(n,t){var i=document.getElementById(n);serializeObjToForm(i,t)}function InfoSplash(n,t,i){thewindow=window.open(n,"anew",config="height="+i+",width="+t+",toolbar=no,menubar=no,resizable=yes,location=no,directories=no,status=no"),thewindow.focus()}function pwdKeyPress(n,t){return n.which==60||n.which==62?(alert('Символы "<" и ">" запрещены для ввода.'),!1):n.which==13?($("#"+t).focus(),$("#"+t).click(),!0):void 0}function SetActiveTab(n){$(".tabs__opener").filter("[data-tab='"+n+"']").click()}function clearCookie(){$.cookie("TP1","",{path:"/",expires:0})}function isValidLoginAndPassword(){var t=$("#txtLogin").val(),i=$("#txtPassword").val(),n;return loginMessage.hide(),passwordMessage.hide(),n=!0,t==""&&(showBubblePopup("#txtLogin","Укажите Логин!"),n=!1),i==""&&(showBubblePopup("#txtPassword","Укажите Пароль!"),n=!1),n}function showBubblePopup(n,t){var i=$(n);i.CreateBubblePopup({width:"260px",themePath:"../bubble-themes/",position:"left",align:"left",innerHtml:t}),i.ShowBubblePopup()}function isValidConfirmCode(){return isEmpty($("#txtCode").val())?(ShowTextError("smscode_error","Код не указан или указан код неверной длины"),$("#errMessage").hide(),!1):(HideError("smscode_error"),showLoginLoader(),!0)}function isValidConfirmTableCode(){return isEmpty($("#tbTableCode").val())?(ShowTextError("digcode_error","Код не указан или указан код неверной длины"),$("#errMessage").hide(),!1):(HideError("digcode_error"),showLoginLoader(),!0)}function isPasswdOrLoginEmpty(){var n=!1;return isEmpty($("#txtLogin").val())?(n=ShowTextError("login_error","Необходимо ввести логин"),$("#errMessage").hide()):HideError("login_error"),!PageConfig.IsTechsupport&&isEmpty($("#txtPassword").val())?(n=ShowTextError("pswd_error","Необходимо ввести пароль"),$("#errMessage").hide()):HideError("pswd_error"),n}function retinaSupport(){var t=$("img.retina"),n;t.each(function(){var t=elem.width,i=elem.height;$(this).attr("height",i),$(this).attr("width",t)}),n=$(".default-display"),n.each(function(){$(this).removeClass("default-display"),$(this).addClass("retina-display")})}function guid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n=="x"?t:t&3|8;return i.toString(16)})}function setanchor(){var n="_ga1",i=$.cookie(n),t="";if(typeof Storage!="undefined"&&(t=localStorage.getItem(n)),isEmpty(i)&&isEmpty(t)){g=guid(),$.cookie(n,g,{path:"/",expires:1e3}),typeof Storage!="undefined"&&localStorage.setItem(n,g);return}isEmpty(i)||typeof Storage!="undefined"&&localStorage.setItem(n,i),isEmpty(t)||$.cookie(n,t,{path:"/",expires:360});return}function isEmpty(n){return n==""||n=="undefined"||n=="null"||n==null}function getExtInfo(){var t=$.map(navigator.plugins,function(n){var t=$.map(n,function(n){return[n.type,n.suffixes].join("~")}).join(",");return[n.name,n.description,t].join("::")}),n="";return $.each(t,function(t,i){n+=i+"||"}),n}function showLoginLoader(){setTimeout(function(){$(".loader2, .block-disabled").show()},100)}function hideLoginLoader(){setTimeout(function(){$(".loader2, .block-disabled").hide()},100)}function handleLoginClick(){var i;if(isPasswdOrLoginEmpty())return loginProcess=!1,!1;if(loginProcess)return!1;if(loginProcess=!0,PageConfig.IsTechsupport)return __doPostBack("btnLoginStandard",""),loginProcess=!1,!0;if(i=PageConfig.IsAuth,i){Auth.init(PageConfig.ClientKey,PageConfig.ServerKey),showLoginLoader();var t=$("#txtLogin").val(),r=$("#txtPassword").val(),u=Auth.getMd5Hash(r),f=Auth.getnonсeC(),n=null;return mkbo.ajax_async("/auth?m=l",JSON.stringify({l:t,nc:f}),function(i){if(n=$.parseJSON(i.d),n==null)return hideLoginLoader(),loginProcess=!1,!1;if(n.error!=undefined)return $("#errMessage").hide(),$("#errMessageForScript").text(n.error).show(),hideLoginLoader(),loginProcess=!1,!1;var r=Auth.getClientProof(t,u,n.Salt,n.IterationsCount,n.NonceS,n.SessionId);preparePostData("login",{sid:n.SessionId,l:t,cp:r,ns:n.NonceS,am:Auth.exports.authMessage,sp:Auth.exports.saltedPassword}),$(".input_login, .input_password, .password, .checkbox_remember, #phProtectCode").removeAttr("disabled"),$("#txtPassword").val(""),__doPostBack("btnLoginStandard","")},function(){loginProcess=!1,hideLoginLoader(),alert("При попытке входа возникла ошибка.")}),!1}return __doPostBack("btnLoginStandard",""),loginProcess=!1,!0}function wfp(){try{setanchor(),(new Fingerprint2).get(function(n){$("#ujefp2er").val(n)});var n={excludeUserAgent:!0};new Fingerprint2(n).get(function(n){$("#atrgpx4f").val(n)})}catch(t){}}function SlideAdvices(n,t){var i=t.find(".div-login-show"),u=t.find(".div-login-hide"),r;i.is(":visible")?(r=n.prop("scrollHeight"),n.animate({height:r},1e3,function(){}),n.find(".hiding-gradient").fadeOut(1300,function(){})):(n.animate({overflow:"hidden",height:"200px"},1e3,function(){}),n.find(".hiding-gradient").fadeIn(1300,function(){})),i.toggle(),u.toggle()}function ShowTextError(n,t){return $("#"+n).find("span").text(t).closest(".field").removeClass("warning_field").addClass("error_field"),!0}function HideError(n){$("#"+n).closest(".field").removeClass("error_field")}function ShowTextWarning(n,t){return $("#"+n).find("span").text(t).closest(".field").removeClass("error_field").addClass("warning_field"),!0}function HideWarning(n){$("#"+n).closest(".field").removeClass("warning_field")}function piview(n,t,i,r,u){var f=(document.compatMode=="CSS1Compat"&&!window.opera?document.documentElement.clientHeight:document.body.clientHeight)-i;u=u=="1"?"yes":"no",$("#dlgInfo iframe").attr("src",n).attr("scrolling",u).attr("height",i-57),$("#dlgInfo .title h1").html(r),$("#dlgInfo iframe").height(i),$("#dlgInfo .title .exit").click(function(){$("#dlgInfo, .background").hide()}),$("#dlgInfo, .background").show(),setTimeout(function(){var n=$("#dlgInfo iframe").contents().find("form").height();n&&$("#dlgInfo iframe").animate({height:(n>f?f:n)+10})},400)}function pihelp(n,t){pihelpbase("help.aspx",n,t)}function pifaq(n){pihelpbaseOld("faq.aspx",n)}function pihelpbase(n,t,i){var r=760,u=380;piview("/secure/"+n+"?simpleview=1&p="+t+"#p"+t,r,u,"Справка",i)}function pihelpbaseOld(n,t){var i=760,r=380;piWin==null||piWin.closed||piWin.close(),piWin=window.open("/secure/"+n+"?simpleview=1&p="+t+"#p"+t,"piview","resizable=1,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,left="+(screen.availWidth-i)/2+",top="+(screen.availHeight-r)/2+",width="+i+",height="+r+""),piWin.focus()||piWin.focus()}function piview_confirm(n,t,i,r){if($("#dlgInfo")[0].childNodes.length==2){var u=$("#dlgInfo")[0].appendChild(document.createElement("div")),o=$("#dlgInfo")[0].appendChild(document.createElement("div")),f=o.appendChild(document.createElement("div")),s=f.appendChild(document.createElement("div")),e=f.appendChild(document.createElement("div")),h=s.appendChild(document.createElement("a")),c=e.appendChild(document.createElement("a")),a=function(){i&&i(),$("#dlgInfo, .background").hide()},l=function(){r&&r(),$("#dlgInfo, .background").hide()};u.style.marginTop="0px",u.style.marginLeft="20px",u.style.marginRight="20px",u.style.marginBottom="70px",o.style.position="relative",o.style.width="100%",f.style.position="absolute",f.style.right="20px",f.style.bottom="20px",s.className="fleft period-button",e.className="fleft period-button",e.style.marginLeft="20px",h.className="button_red slim right",c.className="button_red slim right",h.appendChild(document.createTextNode("OK")),c.appendChild(document.createTextNode("Отмена")),$(u).html(t),$("#dlgInfo iframe").hide(),$("#dlgInfo .title h1").html(n),$("#dlgInfo .title .exit").click(l),$(s).click(a),$(e).click(l)}$("#dlgInfo, .background").show()}function GoForgotPswd(){return PreLoader(),Clear(),$(".tabs__openers").find(".tabs__opener").filter("[data-tab='recovery']").click(),!1}function Loader(){$(".background").show(),$("#registrationBlockId, #firstStep, #stepClosed").show(),$("#btnEnd").hide(),setRegText("Регистрация в МКБ Онлайн","Предоставить информацию по карте")}function CaptchaReset(){$("#tbxCaptR").val(""),$("#imgCaptR").attr("src","cpt.aspx?m=reg&vv="+Math.random()),$("#imgCapt").attr("src","cpt.aspx?m=reg&vv="+Math.random())}function setRegText(n,t){$(".h1_form_gray").text(n),$("#btnNextLink").text(t)}function PreLoader(){$("#infoLoaderId, #btnEnd").hide()}function Clear(){$("#registrationBlockId input:text,#registrationBlockId input:password").val(""),$("#registrationBlockId .error").text("").hide(),$("#registrationBlockId .errorCard").text("").hide(),$("#btnNextLink").hasClass("disable")&&$("#confirmButton").removeAttr("checked"),$(".background").hide()}function PrepareStart(){$("#infoLoaderId").show(),$("#btnNextLink").addClass("disable")}function PrepareEnd(){$("#infoLoaderId").hide(),$("#btnNextLink").removeClass("disable")}function LoaderForgotPasswd(){$(".background").show(),$("#forgotPasswordBlockId, #secondStepFp, #forgotPasswordBlockLineId, #forgotPasswordBlockBottomId .bottom, #btnNextLinkFp, #stepClosedFp").show(),$("#btnEndFp").hide(),setFpText("Восстановление доступа","Продолжить"),$("#fieldCardFp1").focus()}function CaptchaResetFp(){$("#tbxCaptFp").val(""),$("#imgCaptFp").attr("src","cpt.aspx?m=fp&vv="+Math.random())}function PreLoaderForgotPasswd(){$("#infoLoaderFpId, #btnEndFp, #btnNextLinkFpInactive").hide()}function setFpText(n,t){$(".h1_form_gray").text(n),$("#btnNextLinkFp").text(t)}function ClearForgotPasswd(){$("#forgotPasswordBlockId input:text, #forgotPasswordBlockId input:password").val(""),$("#forgotPasswordBlockId .error, #forgotPasswordBlockId .errorCard").text(""),$(".background").hide()}function PrepareStartForgotPasswd(){$("#infoLoaderFpId, #btnNextLinkFpInactive").show(),$("#btnNextLinkFp").hide()}function PrepareEndForgotPasswd(){$("#infoLoaderFpId, #btnNextLinkFpInactive").hide(),$("#btnNextLinkFp").show()}var MkbRuWeb,ua,Page,Tabs,Foldable,NavFoldable,SitemapNav,SitemapNavTabs,SitemapNavToggler,Buttons,ComponentTabsFirst,ScrollToComp,GetScrollableElement,ToggleBlockFixation,Header,HomeSlider,CryptoJS,OperTimeOut,loginProcess,mkbo,PasswordVars,PasswordValidator,secregister,secforgotp;!function(n,t){"object"==typeof module&&"object"==typeof module.exports?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)}("undefined"!=typeof window?window:this,function(n,t){function ii(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ri(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("string"==typeof t){if(pe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>-1!==r})}function kr(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function we(n){var t={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function dr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",v),n.removeEventListener("load",v)):(u.detachEvent("onreadystatechange",v),n.detachEvent("onload",v))}function v(){(u.addEventListener||"load"===n.event.type||"complete"===u.readyState)&&(dr(),i.ready())}function nu(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(ke,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:be.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function fi(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function tu(n,t,r,u){if(ot(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)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),"object"!=typeof t&&"function"!=typeof t||(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),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function iu(n,t,u){if(ot(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=t in o?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!fi(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,fi(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=void 0)}}}function ru(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&oi.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3],r=r||[],f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ou(n){var i=eu.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function f(n,t){var e,u,o=0,r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[o]);o++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function ci(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function de(n){si.test(n.type)&&(n.defaultChecked=n.checked)}function hu(n,t,u,e,s){for(var l,h,k,c,w,b,v,d=n.length,y=ou(t),a=[],p=0;d>p;p++)if(h=n[p],h||0===h)if("object"===i.type(h))i.merge(a,h.nodeType?[h]:h);else if(su.test(h)){for(c=c||y.appendChild(t.createElement("div")),w=(uu.exec(h)||["",""])[1].toLowerCase(),v=o[w]||o._default,c.innerHTML=v[1]+i.htmlPrefilter(h)+v[2],l=v[0];l--;)c=c.lastChild;if(!r.leadingWhitespace&&hi.test(h)&&a.push(t.createTextNode(hi.exec(h)[0])),!r.tbody)for(h="table"!==w||li.test(h)?"<table>"!==v[1]||li.test(h)?0:c:c.firstChild,l=h&&h.childNodes.length;l--;)i.nodeName(b=h.childNodes[l],"tbody")&&!b.childNodes.length&&h.removeChild(b);for(i.merge(a,c.childNodes),c.textContent="";c.firstChild;)c.removeChild(c.firstChild);c=y.lastChild}else a.push(t.createTextNode(h));for(c&&y.removeChild(c),r.appendChecked||i.grep(f(a,"input"),de),p=0;h=a[p++];)if(e&&i.inArray(h,e)>-1)s&&s.push(h);else if(k=i.contains(h.ownerDocument,h),c=f(y.appendChild(h),"script"),k&&ci(c),u)for(l=0;h=c[l++];)fu.test(h.type||"")&&u.push(h);return c=null,y}function vt(){return!0}function rt(){return!1}function au(){try{return u.activeElement}catch(n){}}function vi(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)vi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=rt;else if(!f)return n;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function yu(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function pu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function wu(n){var t=fo.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function bu(n,t){if(1===t.nodeType&&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;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function so(n,t){var u,e,f;if(1===t.nodeType){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)}"script"===u&&t.text!==n.text?(pu(t).text=n.text,wu(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&si.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:"input"!==u&&"textarea"!==u||(t.defaultValue=n.defaultValue)}}function k(n,t,u,e){t=sr.apply([],t);var l,o,a,h,p,c,s=0,v=n.length,b=v-1,y=t[0],w=i.isFunction(y);if(w||v>1&&"string"==typeof y&&!r.checkClone&&uo.test(y))return n.each(function(i){var r=n.eq(i);w&&(t[0]=y.call(this,i,r.html())),k(r,t,u,e)});if(v&&(c=hu(t,n[0].ownerDocument,!1,n,e),l=c.firstChild,1===c.childNodes.length&&(c=l),l||e)){for(h=i.map(f(c,"script"),pu),a=h.length;v>s;s++)o=c,s!==b&&(o=i.clone(o,!0,!0),a&&i.merge(h,f(o,"script"))),u.call(n[s],o,s);if(a)for(p=h[h.length-1].ownerDocument,i.map(h,wu),s=0;a>s;s++)o=h[s],fu.test(o.type||"")&&!i._data(o,"globalEval")&&i.contains(p,o)&&(o.src?i._evalUrl&&i._evalUrl(o.src):i.globalEval((o.text||o.textContent||o.innerHTML||"").replace(eo,"")));c=l=null}return n}function ku(n,t,r){for(var u,o=t?i.filter(t,n):n,e=0;null!=(u=o[e]);e++)r||1!==u.nodeType||i.cleanData(f(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&ci(f(u,"script")),u.parentNode.removeChild(u));return n}function du(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.detach(),u}function yt(n){var r=u,t=pi[n];return t||(t=du(n,r),"none"!==t&&t||(ht=(ht||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ht[0].contentWindow||ht[0].contentDocument).document,r.write(),r.close(),t=du(n,r),ht.detach()),pi[n]=t),t}function bi(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function ef(n){if(n in ff)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),t=uf.length;t--;)if(n=uf[t]+i,n in ff)return n}function of(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&st(r)&&(e[u]=i._data(r,"olddisplay",yt(r.nodeName)))):(o=st(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function sf(n,t,i){var r=lo.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function hf(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+b[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+b[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function cf(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=d(n),s=r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=p(n,t,e),(0>f||null==f)&&(f=n.style[t]),pt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]),f=parseFloat(f)||0}return f+hf(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 vf(){return n.setTimeout(function(){ut=void 0}),ut=i.now()}function bt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function yf(n,t,i){for(var u,f=(h.tweeners[t]||[]).concat(h.tweeners["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function vo(n,t,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&st(n),e=i._data(n,"fxshow");u.queue||(s=i._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--,i.queue(n,"fx").length||s.empty.fire()})})),1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=i.css(n,"display"),b="none"===h?i._data(n,"olddisplay")||yt(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==yt(n.nodeName)?o.zoom=1:o.display="inline-block")),u.overflow&&(o.overflow="hidden",r.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0],o.overflowX=u.overflow[1],o.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],lf.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?yt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=i._data(n,"fxshow",{}),p&&(e.hidden=!c),c?i(n).show():l.done(function(){i(n).hide()}),l.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=yf(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function yo(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 h(n,t,r){var e,o,s=0,a=h.prefilters.length,f=i.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var s=ut||vf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;e>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||vf(),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;r>i;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),c=u.props;for(yo(c,u.opts.specialEasing);a>s;s++)if(e=h.prefilters[s].call(u,n,c,u.opts))return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(c,yf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(l,{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 nt(n){return i.attr(n,"class")||""}function re(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];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 ue(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);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===tr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function rr(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function is(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(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 rs(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())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===!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 us(n){return n.style&&n.style.display||i.css(n,"display")}function fs(n){if(!i.contains(n.ownerDocument||u,n))return!0;while(n&&1===n.nodeType){if("none"===us(n)||"hidden"===n.type)return!0;n=n.parentNode}return!1}function ur(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||os.test(n)?u(n,i):ur(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)ur(n+"["+f+"]",t[f],r,u)}function fr(){try{return new n.XMLHttpRequest}catch(t){}}function ee(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function oe(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var c=[],u=n.document,a=c.slice,sr=c.concat,ti=c.push,hr=c.indexOf,lt={},ce=lt.toString,tt=lt.hasOwnProperty,r={},cr="1.12.4",i=function(n,t){return new i.fn.init(n,t)},le=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,ve=/-([\da-z])/gi,ye=function(n,t){return t.toUpperCase()},w,ui,yr,pr,wr,br,s,at,gr,o,su,li,ht,pi,d,p,tf,ut,wt,lf,af,pf,wf,kf,df,dt,er,ni,or,se,he;i.fn=i.prototype={jquery:cr,constructor:i,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},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("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))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)):void 0!==t&&(n[f]=t));return n},i.extend({expando:"jQuery"+(cr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){var t=n&&n.toString();return!i.isArray(n)&&t-parseFloat(t)+1>=0},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||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.ownFirst)for(t in n)return tt.call(n,t);for(t in n);return void 0===t||tt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?lt[ce.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(ae,"ms-").replace(ve,ye)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ii(n)){for(r=n.length;r>i;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(le,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ii(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(hr)return hr.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;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;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])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;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ii(n))for(e=n.length;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return sr.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=a.call(arguments,2),r=function(){return n.apply(t||this,u.concat(a.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r}),"function"==typeof Symbol&&(i.fn[Symbol.iterator]=c[Symbol.iterator]),i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){lt["[object "+t+"]"]=t.toLowerCase()}),w=function(n){function u(n,t,r,u){var l,w,a,s,nt,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(d=sr.exec(n)))if(l=d[1]){if(9===v){if(!(a=t.getElementById(l)))return r;if(a.id===l)return r.push(a),r}else if(p&&(a=p.getElementById(l))&&et(t,a)&&a.id===l)return r.push(a),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((l=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(l)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(hr,"\\$&"):t.setAttribute("id",s=e),y=ft(n),w=y.length,nt=yi.test(s)?"#"+s:"[id='"+s+"']";w--;)y[w]=nt+" "+yt(y[w]);g=y.join(","),p=gt.test(n)&&ii(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(tt){}finally{s===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,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 l(n){return n[e]=!0,n}function a(n){var t=i.createElement("div");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ti(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~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 cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function it(n){return l(function(t){return t=+t,l(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&&"undefined"!=typeof n.getElementsByTagName&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c,l=[v,f];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(c=t[e]||(t[e]={}),h=c[t.uniqueID]||(c[t.uniqueID]={}),(s=h[r])&&s[0]===v&&s[1]===f)return l[2]=s[2];if(h[r]=l,l[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 ar(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;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,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:pt(b,p,n,o,s),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(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):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===o},c,!0),a=ri(function(n){return nt(o,n)>-1},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];s>i;i++)if(u=t.relative[n[i].type])f=[ri(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;s>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),s>r&&ei(n=n.slice(r)),s>r&&yt(n))}f.push(u)}return ui(f)}function vr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=gi.call(l));w=pt(w)}k.apply(l,w),a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,f,t,st,oi,ft,wt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,ki=0,hi=ni(),ci=ni(),lt=ni(),bt=function(n,t){return n===t&&(ut=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",dt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",tr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ir=new RegExp("^"+r+"*,"+r+"*"),rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ur=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),fr=new RegExp(dt),yi=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},pi=function(){b()};try{k.apply(g=ai.call(c.childNodes),c.childNodes),g[c.childNodes.length].nodeType}catch(yr){k={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={},oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>",n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")"),n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+kt+")"),n.querySelectorAll("[id~="+e+"-]").length||o.push("~="),n.querySelectorAll(":checked").length||o.push(":checked"),n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){var t=i.createElement("input");t.setAttribute("type","hidden"),n.appendChild(t).setAttribute("name","D"),n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?="),n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),n.querySelectorAll("*,:x"),o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"div"),ct.call(n,"[s!='']:x"),d.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!f.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(ur,"='$1']"),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(e){}return u(t,i,null,[n]).length>0},u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&di.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(bt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i},t=u.selectors={cacheLength:50,createPseudo:l,match:vt,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(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(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(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&(y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=wt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return yi.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.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"input"===t&&!!n.checked||"option"===t&&!!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 or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[0>i?i+t:i]}),even:it(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}},t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=cr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=lr(rt);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=ir.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=rr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[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):ci(n,h).slice(0)},wt=u.compile=function(n,t){var r,u=[],f=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=lt(n,vr(f,u)),i.selector=n}return i},si=u.select=function(n,i,r,u){var s,e,o,a,v,l="function"==typeof n&&n,c=!u&&ft(n=l.selector||n);if(r=r||[],1===c.length){if(e=c[0]=c[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&f.getById&&9===i.nodeType&&h&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],!i)return r;l&&(i=i.parentNode),n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&yt(e),!n)return k.apply(r,u),r;break}}}return(l||wt(n,c))(u,i,!h,r,!i||gt.test(n)&&ii(i.parentNode)||i),r},f.sortStable=e.split("").sort(bt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("div"))}),a(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,"type"===t.toLowerCase()?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||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=w,i.expr=w.selectors,i.expr[":"]=i.expr.pseudos,i.uniqueSort=i.unique=w.uniqueSort,i.text=w.getText,i.isXMLDoc=w.isXML,i.contains=w.contains;var it=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},lr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},ar=i.expr.match.needsContext,vr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,pe=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))},i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;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(ri(this,n||[],!1))},not:function(n){return this.pushStack(ri(this,n||[],!0))},is:function(n){return!!ri(this,"string"==typeof n&&ar.test(n)?i(n):n||[],!1).length}}),yr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,pr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ui,"string"==typeof n){if(f="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yr.exec(n),!f||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),vr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}if(e=u.getElementById(f[2]),e&&e.parentNode){if(e.id!==f[2])return ui.find(n);this.length=1,this[0]=e}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof r.ready?r.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},pr.prototype=i.fn,ui=i(u),wr=/^(?:parents|prev(?:Until|All))/,br={children:!0,contents:!0,next:!0,prev:!0},i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=ar.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?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.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}}),i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return it(n,"parentNode")},parentsUntil:function(n,t,i){return it(n,"parentNode",i)},next:function(n){return kr(n,"nextSibling")},prev:function(n){return kr(n,"previousSibling")},nextAll:function(n){return it(n,"nextSibling")},prevAll:function(n){return it(n,"previousSibling")},nextUntil:function(n,t,i){return it(n,"nextSibling",i)},prevUntil:function(n,t,i){return it(n,"previousSibling",i)},siblings:function(n){return lr((n.parentNode||{}).firstChild,n)},children:function(n){return lr(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"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(br[n]||(f=i.uniqueSort(f)),wr.test(n)&&(f=f.reverse())),this.pushStack(f)}}),s=/\S+/g,i.Callbacks=function(n){n="string"==typeof n?we(n):i.extend({},n);var e,r,h,f,t=[],o=[],u=-1,c=function(){for(f=n.once,h=e=!0;o.length;u=-1)for(r=o.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1),e=!1,f&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(u=t.length-1,o.push(r)),function f(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==i.type(u)&&f(u)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),u>=f&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=!0,r||s.disable(),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),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().progress(f.notify).done(f.resolve).fail(f.reject):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})}),n=null}).promise()},promise:function(n){return null!=n?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[1^n][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=a.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this,i[n]=arguments.length>1?a.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);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().progress(h(t,c,o)).done(h(t,s,u)).fail(f.reject):--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){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||(at.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready"))))}}),i.ready.promise=function(t){if(!at)if(at=i.Deferred(),"complete"!==u.readyState&&("loading"===u.readyState||u.documentElement.doScroll))if(u.addEventListener)u.addEventListener("DOMContentLoaded",v),n.addEventListener("load",v);else{u.attachEvent("onreadystatechange",v),n.attachEvent("onload",v);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(t){return n.setTimeout(f,50)}dr(),i.ready()}}()}else n.setTimeout(i.ready);return at.promise(t)},i.ready.promise();for(gr in i(r))break;r.ownFirst="0"===gr,r.inlineBlockNeedsLayout=!1,i(function(){var f,t,n,i;n=u.getElementsByTagName("body")[0],n&&n.style&&(t=u.createElement("div"),i=u.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(i))}),function(){var n=u.createElement("div");r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}n=null}();var ot=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t},be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ke=/([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&&!fi(n)},data:function(n,t,i){return tu(n,t,i)},removeData:function(n,t){return iu(n,t)},_data:function(n,t,i){return tu(n,t,i,!0)},_removeData:function(n,t){return iu(n,t,!0)}}),i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),nu(r,u,e[u])));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?nu(r,n,i.data(r,n)):void 0},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)};"inprogress"===u&&(u=r.shift(),e--),u&&("fx"===t&&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"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n),"fx"===n&&"inprogress"!==r[0]&&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("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}}),function(){var n;r.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,r;return i=u.getElementsByTagName("body")[0],i&&i.style?(t=u.createElement("div"),r=u.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(u.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(r),n):void 0}}();var ei=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oi=new RegExp("^(?:([+-])=|)("+ei+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],st=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)};var y=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)y(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(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(;c>s;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},si=/^(?:checkbox|radio)$/i,uu=/<([\w:-]+)/,fu=/^$|\/(?:java|ecma)script/i,hi=/^\s+/,eu="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var n=u.createElement("div"),f=u.createDocumentFragment(),t=u.createElement("input");n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",r.leadingWhitespace=3===n.firstChild.nodeType,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,f.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,f.appendChild(n),t=u.createElement("input"),t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),n.appendChild(t),r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!!n.addEventListener,n[i.expando]=1,r.attributes=!n.getAttribute(i.expando)}(),o={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>"]},o.optgroup=o.option,o.tbody=o.tfoot=o.colgroup=o.caption=o.thead,o.th=o.td,su=/<|&#?\w+;/,li=/<tbody/i,!function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t]=i in n)||(f.setAttribute(i,"t"),r[t]=f.attributes[i].expando===!1);f=null}();var ai=/^(?:input|select|textarea)$/i,ge=/^key/,no=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cu=/^(?:focusinfocus|focusoutblur)$/,lu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,r,u,f){var p,v,w,y,o,h,c,l,e,b,k,a=i._data(n);if(a){for(r.handler&&(y=r,r=y.handler,f=y.selector),r.guid||(r.guid=i.guid++),(v=a.events)||(v=a.events={}),(h=a.handle)||(h=a.handle=function(n){if("undefined"!=typeof i&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(h.elem,arguments)},h.elem=n),t=(t||"").match(s)||[""],w=t.length;w--;)p=lu.exec(t[w])||[],e=k=p[1],b=(p[2]||"").split(".").sort(),e&&(o=i.event.special[e]||{},e=(f?o.delegateType:o.bindType)||e,o=i.event.special[e]||{},c=i.extend({type:e,origType:k,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:b.join(".")},y),(l=v[e])||(l=v[e]=[],l.delegateCount=0,o.setup&&o.setup.call(n,u,b,h)!==!1||(n.addEventListener?n.addEventListener(e,h,!1):n.attachEvent&&n.attachEvent("on"+e,h))),o.add&&(o.add.call(n,c),c.handler.guid||(c.handler.guid=r.guid)),f?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=lu.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.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])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);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,3!==f.nodeType&&8!==f.nodeType&&!cu.test(s+i.event.triggered)&&(s.indexOf(".")>-1&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[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,cu.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&&ot(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)&&ot(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=void 0,h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,o,f,r,t,s=[],h=a.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.rnamespace&&!n.rnamespace.test(t.namespace)||(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&("click"!==n.type||isNaN(n.button)||n.button<1))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],e=0;s>e;e++)o=t[e],f=o.selector+" ",void 0===u[f]&&(u[f]=o.needsContext?i(f,this).index(r)>-1:i.find(f,this,null,[r]).length),u[f]&&u.push(o);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=no.test(r)?this.mouseHooks:ge.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),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?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 null==n.pageX&&null!=t.clientX&&(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||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==au()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===au()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t),u.isDefaultPrevented()&&r.preventDefault()}},i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)}:function(n,t,i){var r="on"+t;n.detachEvent&&("undefined"==typeof n[r]&&(n[r]=null),n.detachEvent(r,i))},i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?vt:rt):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)},i.Event.prototype={constructor:i.Event,isDefaultPrevented:rt,isPropagationStopped:rt,isImmediatePropagationStopped:rt,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&&!this.isSimulated&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=vt,n&&n.stopImmediatePropagation&&n.stopImmediatePropagation(),this.stopPropagation()}},i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},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.submit||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?i.prop(r,"form"):void 0;t&&!i._data(t,"submit")&&(i.event.add(t,"submit._submit",function(n){n._submitBubble=!0}),i._data(t,"submit",!0))})},postDispatch:function(n){n._submitBubble&&(delete n._submitBubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}}),r.change||(i.event.special.change={setup:function(){return ai.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._justChanged=!0)}),i.event.add(this,"click._change",function(n){this._justChanged&&!n.isTrigger&&(this._justChanged=!1),i.event.simulate("change",this,n)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ai.test(t.nodeName)&&!i._data(t,"change")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n)}),i._data(t,"change",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ai.test(this.nodeName)}}),r.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n))};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,i,r){return vi(this,n,t,i,r)},one:function(n,t,i,r){return vi(this,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("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return t!==!1&&"function"!=typeof t||(r=t,t=void 0),r===!1&&(r=rt),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 to=/ jQuery\d+="(?:null|\d+)"/g,vu=new RegExp("<(?:"+eu+")[\\s/>]","i"),io=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ro=/<script|<style|<link/i,uo=/checked\s*(?:[^=]|=\s*.checked.)/i,fo=/^true\/(.*)/,eo=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,oo=ou(u),yi=oo.appendChild(u.createElement("div"));i.extend({htmlPrefilter:function(n){return n.replace(io,"<$1><\/$2>")},clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!vu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(yi.innerHTML=n.outerHTML,yi.removeChild(s=yi.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&so(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)bu(c,e[o]);else bu(n,s);return e=f(s,"script"),e.length>0&&ci(e,!l&&f(n,"script")),e=h=c=null,s},cleanData:function(n,t){for(var u,e,f,o,l=0,s=i.expando,h=i.cache,a=r.attributes,v=i.event.special;null!=(u=n[l]);l++)if((t||ot(u))&&(f=u[s],o=f&&h[f])){if(o.events)for(e in o.events)v[e]?i.event.remove(u,e):i.removeEvent(u,e,o.handle);h[f]&&(delete h[f],a||"undefined"==typeof u.removeAttribute?u[s]=void 0:u.removeAttribute(s),c.push(f))}}}),i.fn.extend({domManip:k,detach:function(n){return ku(this,n,!0)},remove:function(n){return ku(this,n)},text:function(n){return y(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return k(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=yu(this,n);t.appendChild(n)}})},prepend:function(){return k(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=yu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return k(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return k(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&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=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return y(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(to,""):void 0;if("string"==typeof n&&!ro.test(n)&&(r.htmlSerialize||!vu.test(n))&&(r.leadingWhitespace||!hi.test(n))&&!o[(uu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(s){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return k(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(f(this)),r&&r.replaceChild(t,this))},n)}}),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;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}}),pi={HTML:"block",BODY:"block"};var gu=/^margin/,pt=new RegExp("^("+ei+")(?!px)[a-z%]+$","i"),wi=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},nf=u.documentElement;!function(){var f,h,c,e,l,a,s=u.createElement("div"),t=u.createElement("div");if(t.style){t.style.cssText="float:left;opacity:.5",r.opacity="0.5"===t.style.opacity,r.cssFloat=!!t.style.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",r.clearCloneStyle="content-box"===t.style.backgroundClip,s=u.createElement("div"),s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",t.innerHTML="",s.appendChild(t),r.boxSizing=""===t.style.boxSizing||""===t.style.MozBoxSizing||""===t.style.WebkitBoxSizing,i.extend(r,{reliableHiddenOffsets:function(){return null==f&&o(),e},boxSizingReliable:function(){return null==f&&o(),c},pixelMarginRight:function(){return null==f&&o(),h},pixelPosition:function(){return null==f&&o(),f},reliableMarginRight:function(){return null==f&&o(),l},reliableMarginLeft:function(){return null==f&&o(),a}});function o(){var i,r,o=u.documentElement;o.appendChild(s),t.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",f=c=a=!1,h=l=!0,n.getComputedStyle&&(r=n.getComputedStyle(t),f="1%"!==(r||{}).top,a="2px"===(r||{}).marginLeft,c="4px"===(r||{width:"4px"}).width,t.style.marginRight="50%",h="4px"===(r||{marginRight:"4px"}).marginRight,i=t.appendChild(u.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((n.getComputedStyle(i)||{}).marginRight),t.removeChild(i)),t.style.display="none",e=0===t.getClientRects().length,e&&(t.style.display="",t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",t.childNodes[0].style.borderCollapse="separate",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===i[0].offsetHeight,e&&(i[0].style.display="",i[1].style.display="none",e=0===i[0].offsetHeight)),o.removeChild(s)}}}(),tf=/^(top|right|bottom|left)$/,n.getComputedStyle?(d=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},p=function(n,t,u){var o,s,h,f,e=n.style;return u=u||d(n),f=u?u.getPropertyValue(t)||u[t]:void 0,""!==f&&void 0!==f||i.contains(n.ownerDocument,n)||(f=i.style(n,t)),u&&!r.pixelMarginRight()&&pt.test(f)&&gu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=f,f=u.width,e.width=o,e.minWidth=s,e.maxWidth=h),void 0===f?f:f+""}):nf.currentStyle&&(d=function(n){return n.currentStyle},p=function(n,t,i){var o,f,e,r,u=n.style;return i=i||d(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!tf.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});var ki=/alpha\([^)]*\)/i,ho=/opacity\s*=\s*([^)]*)/i,co=/^(none|table(?!-c[ea]).+)/,lo=new RegExp("^("+ei+")(.*)$","i"),ao={position:"absolute",visibility:"hidden",display:"block"},rf={letterSpacing:"0",fontWeight:"400"},uf=["Webkit","O","Moz","ms"],ff=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=p(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!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&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=ef(s)||s),o=i.cssHooks[t]||i.cssHooks[s],void 0===u)return o&&"get"in o&&void 0!==(e=o.get(n,!1,f))?e:c[t];if(h=typeof u,"string"===h&&(e=oi.exec(u))&&e[1]&&(u=ru(n,t,e),h="number"),null!=u&&u===u&&("number"===h&&(u+=e&&e[3]||(i.cssNumber[s]?"":"px")),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(c[t]="inherit"),!(o&&"set"in o&&void 0===(u=o.set(n,u,f)))))try{c[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,o,e=i.camelCase(t);return t=i.cssProps[e]||(i.cssProps[e]=ef(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=p(n,t,u)),"normal"===f&&t in rf&&(f=rf[t]),""===r||r?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}}),i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return co.test(i.css(n,"display"))&&0===n.offsetWidth?wi(n,ao,function(){return cf(n,t,u)}):cf(n,t,u)},set:function(n,u,f){var e=f&&d(n);return sf(n,u,f?hf(n,t,f,r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}}),r.opacity||(i.cssHooks.opacity={get:function(n,t){return ho.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="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1,(t>=1||""===t)&&""===i.trim(f.replace(ki,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ki.test(f)?f.replace(ki,e):f+" "+e)}}),i.cssHooks.marginRight=bi(r.reliableMarginRight,function(n,t){if(t)return wi(n,{display:"inline-block"},p,[n,"marginRight"])}),i.cssHooks.marginLeft=bi(r.reliableMarginLeft,function(n,t){if(t)return(parseFloat(p(n,"marginLeft"))||(i.contains(n.ownerDocument,n)?n.getBoundingClientRect().left-wi(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}):0))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}},gu.test(n)||(i.cssHooks[n+t].set=sf)}),i.fn.extend({css:function(n,t){return y(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=d(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return of(this,!0)},hide:function(){return of(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){st(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||i.easing._default,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 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}},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},_default:"swing"},i.fx=e.prototype.init,i.fx.step={},lf=/^(?:toggle|show|hide)$/,af=/queueHooks$/,i.Animation=i.extend(h,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ru(i.elem,n,oi.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(s);for(var r,u=0,f=n.length;f>u;u++)r=n[u],h.tweeners[r]=h.tweeners[r]||[],h.tweeners[r].unshift(t)},prefilters:[vo],prefilter:function(n,t){t?h.prefilters.unshift(n):h.prefilters.push(n)}}),i.speed=function(n,t,r){var u=n&&"object"==typeof n?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:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,null!=u.queue&&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(st).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=h(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"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&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&&af.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&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;o>t;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 null==n||"boolean"==typeof n?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(ut=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop(),ut=void 0},i.fx.timer=function(n){i.timers.push(n),n()?i.fx.start():i.timers.pop()},i.fx.interval=13,i.fx.start=function(){wt||(wt=n.setInterval(i.fx.tick,i.fx.interval))},i.fx.stop=function(){n.clearInterval(wt),wt=null},i.fx.speeds={slow:600,fast:200,_default:400},i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var i,n=u.createElement("input"),t=u.createElement("div"),f=u.createElement("select"),e=f.appendChild(u.createElement("option"));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],n.setAttribute("type","checkbox"),t.appendChild(n),i=t.getElementsByTagName("a")[0],i.style.cssText="top:1px",r.getSetAttribute="t"!==t.className,r.style=/top/.test(i.getAttribute("style")),r.hrefNormalized="/a"===i.getAttribute("href"),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="t"===n.value}(),pf=/\r/g,wf=/[\x20\t\r\n\f]+/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;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(pf,""):null==r?"":r)):void 0}}),i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n)).replace(wf," ")}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],(t.selected||e===u)&&(r.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!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)>-1)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)>-1}},r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ft,bf,l=i.expr.attrHandle,di=/^(?:checked|selected)$/i,g=r.getSetAttribute,kt=r.input;i.fn.extend({attr:function(n,t){return y(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(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),f=i.attrHooks[t]||(i.expr.match.bool.test(t)?bf:ft)),void 0!==r?null===r?void i.removeAttr(n,t):f&&"set"in f&&void 0!==(u=f.set(n,r,t))?u:(n.setAttribute(t,r+""),r):f&&"get"in f&&null!==(u=f.get(n,t))?u:(u=i.find.attr(n,t),null==u?void 0:u))},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?kt&&g||!di.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)}}),bf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):kt&&g||!di.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=l[t]||i.find.attr;l[t]=kt&&g||!di.test(t)?function(n,t,i){var u,f;return i||(f=l[t],l[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,l[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){return i.nodeName(n,"input")?void(n.defaultValue=t):ft&&ft.set(n,t,r)}}),g||(ft={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},l.id=l.name=l.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:ft.set},i.attrHooks.contenteditable={set:function(n,t,i){ft.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||void 0},set:function(n,t){return n.style.cssText=t+""}}),kf=/^(?:input|select|textarea|button|object)$/i,df=/^(?:a|area)$/i,i.fn.extend({prop:function(n,t){return y(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0,delete this[n]}catch(t){}})}}),i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):kf.test(n.nodeName)||df.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),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},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),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,f,h,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if("string"==typeof n&&n)for(o=n.match(s)||[];t=this[c++];)if(u=nt(t),r=1===t.nodeType&&(" "+u+" ").replace(dt," ")){for(h=0;f=o[h++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=i.trim(r),u!==e&&i.attr(t,"class",e)}return this},removeClass:function(n){var o,r,t,u,f,h,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(s)||[];r=this[c++];)if(u=nt(r),t=1===r.nodeType&&(" "+u+" ").replace(dt," ")){for(h=0;f=o[h++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=i.trim(t),u!==e&&i.attr(r,"class",e)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,f,u,e;if("string"===r)for(f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==r||(t=nt(this),t&&i._data(this,"__className__",t),i.attr(this,"class",t||n===!1?"":i._data(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+nt(t)+" ").replace(dt," ").indexOf(i)>-1)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)}});var po=n.location,gi=i.now(),nr=/\?/,wo=/(,)|(\[|{)|(}|])|"(?:[^"\\\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(wo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)},i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new n.DOMParser,r=u.parseFromString(t,"text/xml")):(r=new n.ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var bo=/#.*$/,gf=/([?&])_=[^&]*/,ko=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,go=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ns=/^(?:GET|HEAD)$/,ts=/^\/\//,ne=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,te={},tr={},ie="*/".concat("*"),ir=po.href,et=ne.exec(ir.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ir,type:"GET",isLocal:go.test(et[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ie,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},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?rr(rr(n,i.ajaxSettings),t):rr(i.ajaxSettings,n)},ajaxPrefilter:re(te),ajaxTransport:re(tr),ajax:function(t,r){function w(t,r,s,c){var y,rt,it,w,tt,l=r;2!==o&&(o=2,k&&n.clearTimeout(k),v=void 0,b=c||"",f.readyState=t>0?4:0,y=t>=200&&300>t||304===t,s&&(w=is(u,f,s)),w=rs(u,w,f,y),y?(u.ifModified&&(tt=f.getResponseHeader("Last-Modified"),tt&&(i.lastModified[e]=tt),tt=f.getResponseHeader("etag"),tt&&(i.etag[e]=tt)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=w.state,rt=w.data,it=w.error,y=!it)):(it=l,!t&&l||(l="error",0>t&&(t=0))),f.status=t,f.statusText=(r||l)+"",y?g.resolveWith(h,[rt,l,f]):g.rejectWith(h,[f,l,it]),f.statusCode(p),p=void 0,a&&d.trigger(y?"ajaxSuccess":"ajaxError",[f,u,y?rt:it]),nt.fireWith(h,[f,l]),a&&(d.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0),r=r||{};var c,l,e,b,k,a,v,y,u=i.ajaxSetup({},r),h=u.context||u,d=u.context&&(h.nodeType||h.jquery)?i(h):i.event,g=i.Deferred(),nt=i.Callbacks("once memory"),p=u.statusCode||{},tt={},it={},o=0,rt="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!y)for(y={};t=ko.exec(b);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=it[i]=it[i]||n,tt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)p[t]=[p[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||rt;return v&&v.abort(t),w(0,t),this}};if(g.promise(f).complete=nt.add,f.success=f.done,f.error=f.fail,u.url=((t||u.url||ir)+"").replace(bo,"").replace(ts,et[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(c=ne.exec(u.url.toLowerCase()),u.crossDomain=!(!c||c[1]===et[1]&&c[2]===et[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(et[3]||("http:"===et[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),ue(te,u,r,f),2===o)return f;a=i.event&&u.global,a&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!ns.test(u.type),e=u.url,u.hasContent||(u.data&&(e=u.url+=(nr.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=gf.test(e)?e.replace(gf,"$1_="+gi++):e+(nr.test(e)?"&":"?")+"_="+gi++)),u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e])),(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType),f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+ie+"; q=0.01":""):u.accepts["*"]);for(l in u.headers)f.setRequestHeader(l,u.headers[l]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();rt="abort";for(l in{success:1,error:1,complete:1})f[l](u[l]);if(v=ue(tr,u,r,f)){if(f.readyState=1,a&&d.trigger("ajaxSend",[f,u]),2===o)return f;u.async&&u.timeout>0&&(k=n.setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1,v.send(tt,w)}catch(ut){if(!(2>o))throw ut;w(-1,ut)}}else w(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,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=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,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&&1===n.firstChild.nodeType;)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 r.reliableHiddenOffsets()?n.offsetWidth<=0&&n.offsetHeight<=0&&!n.getClientRects().length:fs(n)},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var es=/%20/g,os=/\[\]$/,fe=/\r?\n/g,ss=/^(?:submit|button|image|reset|file)$/i,hs=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t,u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(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)ur(r,n[r],t,f);return u.join("&").replace(es,"+")},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")&&hs.test(this.nodeName)&&!ss.test(n)&&(this.checked||!si.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(fe,"\r\n")}}):{name:t.name,value:r.replace(fe,"\r\n")}}).get()}}),i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return this.isLocal?ee():u.documentMode>8?fr():/^(get|post|head|put|delete|options)$/i.test(this.type)&&fr()||ee()}:fr;var cs=0,gt={},ct=i.ajaxSettings.xhr();return n.attachEvent&&n.attachEvent("onunload",function(){for(var n in gt)gt[n](void 0,!0)}),r.cors=!!ct&&"withCredentials"in ct,ct=r.ajax=!!ct,ct&&i.ajaxTransport(function(t){if(!t.crossDomain||r.cors){var u;return{send:function(r,f){var o,e=t.xhr(),s=++cs;if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&e.setRequestHeader(o,r[o]+"");e.send(t.hasContent&&t.data||null),u=function(n,r){var o,c,h;if(u&&(r||4===e.readyState))if(delete gt[s],u=void 0,e.onreadystatechange=i.noop,r)4!==e.readyState&&e.abort();else{h={},o=e.status,"string"==typeof e.responseText&&(h.text=e.responseText);try{c=e.statusText}catch(l){c=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=h.text?200:404}h&&f(o,c,h,e.getAllResponseHeaders())},t.async?4===e.readyState?n.setTimeout(u):e.onreadystatechange=gt[s]=u:u()},abort:function(){u&&u(void 0,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(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(){t&&t.onload(void 0,!0)}}}}),er=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=er.pop()||i.expando+"_"+gi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ni.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])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+=(nr.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?i(n).removeProp(f):n[f]=e,t[f]&&(t.jsonpCallback=r.jsonpCallback,er.push(f)),o&&i.isFunction(e)&&e(o[0]),o=e=void 0}),"script"}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1),t=t||u;var f=vr.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=hu([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},or=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&or)return or.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=i.trim(n.slice(e,n.length)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments,f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative"),u=a.offset(),s=i.css(n,"top"),c=i.css(n,"left"),v=("absolute"===l||"fixed"===l)&&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,i.extend({},u))),null!=t.top&&(f.top=t.top-u.top+h),null!=t.left&&(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 void 0===n?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)?("undefined"!=typeof r.getBoundingClientRect&&(u=r.getBoundingClientRect()),f=oe(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?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;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||nf})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return y(this,function(n,u,f){var e=oe(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(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]=bi(r.pixelPosition,function(n,r){if(r)return r=p(n,t),pt.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||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return y(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.extend({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 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),se=n.jQuery,he=n.$,i.noConflict=function(t){return n.$===i&&(n.$=he),t&&n.jQuery===i&&(n.jQuery=se),i},t||(n.jQuery=n.$=i),i}),Array.prototype.contains=function(n){for(var t=this.length;t--;)if(this[t]===n)return!0;return!1},Array.prototype.where=function(n){for(var r=[],i,t=0;t<this.length;t++)i=this[t],n(i)&&r.push(i);return r},Array.prototype.foreach=function(n){for(var i,t=0;t<this.length;t++)i=this[t],n(i)},Array.prototype.first=function(n){return n?this.where(n)[0]:this[0]},Array.prototype.all=function(n){return this.foreach(function(t){if(!n(t))return!1}),!0},Array.prototype.any=function(n){var t,i;if(n==null)return this.length>0;for(t=0;t<this.length;t++)if(i=this[t],n(i))return!0;return!1},String.prototype.contains=function(n){return this.indexOf(n,0)!=-1},String.prototype.notNullOrEmpty=function(){return!this.isNullOrEmpty()},String.prototype.isNullOrEmpty=function(){return!this||0===this.length},String.prototype.replaceAll=function(n,t){return this.split(n).join(t)},String.prototype.toFloat=function(){var t=this.replace(",","."),n=+t;if(n==NaN)throw"Входная строка не является числом";return n},String.prototype.toCharArray=function(){for(var t=this.length,i=new Array(t),n=0;n<t;n++)i[n]=this[n];return i},function(n,t,i){"use strict";typeof module!="undefined"&&module.exports?module.exports=i():typeof define=="function"&&define.amd?define(i):t[n]=i()}("Fingerprint2",this,function(){"use strict";Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(this==null)throw new TypeError("'this' is null or undefined");if((f=Object(this),u=f.length>>>0,u===0)||(i=+t||0,Math.abs(i)===Infinity&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r<u;){if(r in f&&f[r]===n)return r;r++}return-1});var n=function(n){var t={swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i]};this.options=this.extend(n,t),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map};return n.prototype={extend:function(n,t){if(n==null)return t;for(var i in n)n[i]!=null&&t[i]!==n[i]&&(t[i]=n[i]);return t},log:function(n){window.console&&console.log(n)},get:function(n){var t=[],i;t=this.userAgentKey(t),t=this.languageKey(t),t=this.colorDepthKey(t),t=this.screenResolutionKey(t),t=this.availableScreenResolutionKey(t),t=this.timezoneOffsetKey(t),t=this.sessionStorageKey(t),t=this.localStorageKey(t),t=this.indexedDbKey(t),t=this.addBehaviorKey(t),t=this.openDatabaseKey(t),t=this.cpuClassKey(t),t=this.platformKey(t),t=this.doNotTrackKey(t),t=this.pluginsKey(t),t=this.canvasKey(t),t=this.webglKey(t),t=this.adBlockKey(t),t=this.hasLiedLanguagesKey(t),t=this.hasLiedResolutionKey(t),t=this.hasLiedOsKey(t),t=this.hasLiedBrowserKey(t),t=this.touchSupportKey(t),i=this,this.fontsKey(t,function(t){var r=[],u;return i.each(t,function(n){var t=n.value;typeof n.value.join!="undefined"&&(t=n.value.join(";")),r.push(t)}),u=i.x64hash128(r.join("~~~"),31),n(u,t)})},userAgentKey:function(n){return this.options.excludeUserAgent||n.push({key:"user_agent",value:this.getUserAgent()}),n},getUserAgent:function(){return navigator.userAgent},languageKey:function(n){return this.options.excludeLanguage||n.push({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),n},colorDepthKey:function(n){return this.options.excludeColorDepth||n.push({key:"color_depth",value:screen.colorDepth}),n},screenResolutionKey:function(n){return this.options.excludeScreenResolution?n:this.getScreenResolution(n)},getScreenResolution:function(n){var t;return t=this.options.detectScreenOrientation?screen.height>screen.width?[screen.height,screen.width]:[screen.width,screen.height]:[screen.width,screen.height],typeof t!="undefined"&&n.push({key:"resolution",value:t}),n},availableScreenResolutionKey:function(n){return this.options.excludeAvailableScreenResolution?n:this.getAvailableScreenResolution(n)},getAvailableScreenResolution:function(n){var t;return screen.availWidth&&screen.availHeight&&(t=this.options.detectScreenOrientation?screen.availHeight>screen.availWidth?[screen.availHeight,screen.availWidth]:[screen.availWidth,screen.availHeight]:[screen.availHeight,screen.availWidth]),typeof t!="undefined"&&n.push({key:"available_resolution",value:t}),n},timezoneOffsetKey:function(n){return this.options.excludeTimezoneOffset||n.push({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),n},sessionStorageKey:function(n){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&n.push({key:"session_storage",value:1}),n},localStorageKey:function(n){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&n.push({key:"local_storage",value:1}),n},indexedDbKey:function(n){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&n.push({key:"indexed_db",value:1}),n},addBehaviorKey:function(n){return document.body&&!this.options.excludeAddBehavior&&document.body.addBehavior&&n.push({key:"add_behavior",value:1}),n},openDatabaseKey:function(n){return!this.options.excludeOpenDatabase&&window.openDatabase&&n.push({key:"open_database",value:1}),n},cpuClassKey:function(n){return this.options.excludeCpuClass||n.push({key:"cpu_class",value:this.getNavigatorCpuClass()}),n},platformKey:function(n){return this.options.excludePlatform||n.push({key:"navigator_platform",value:this.getNavigatorPlatform()}),n},doNotTrackKey:function(n){return this.options.excludeDoNotTrack||n.push({key:"do_not_track",value:this.getDoNotTrack()}),n},canvasKey:function(n){return!this.options.excludeCanvas&&this.isCanvasSupported()&&n.push({key:"canvas",value:this.getCanvasFp()}),n},webglKey:function(n){return this.options.excludeWebGL?(typeof NODEBUG=="undefined"&&this.log("Skipping WebGL fingerprinting per excludeWebGL configuration option"),n):this.isWebGlSupported()?(n.push({key:"webgl",value:this.getWebglFp()}),n):(typeof NODEBUG=="undefined"&&this.log("Skipping WebGL fingerprinting because it is not supported in this browser"),n)},adBlockKey:function(n){return this.options.excludeAdBlock||n.push({key:"adblock",value:this.getAdBlock()}),n},hasLiedLanguagesKey:function(n){return this.options.excludeHasLiedLanguages||n.push({key:"has_lied_languages",value:this.getHasLiedLanguages()}),n},hasLiedResolutionKey:function(n){return this.options.excludeHasLiedResolution||n.push({key:"has_lied_resolution",value:this.getHasLiedResolution()}),n},hasLiedOsKey:function(n){return this.options.excludeHasLiedOs||n.push({key:"has_lied_os",value:this.getHasLiedOs()}),n},hasLiedBrowserKey:function(n){return this.options.excludeHasLiedBrowser||n.push({key:"has_lied_browser",value:this.getHasLiedBrowser()}),n},fontsKey:function(n,t){return this.options.excludeJsFonts?this.flashFontsKey(n,t):this.jsFontsKey(n,t)},flashFontsKey:function(n,t){if(this.options.excludeFlashFonts)return typeof NODEBUG=="undefined"&&this.log("Skipping flash fonts detection per excludeFlashFonts configuration option"),t(n);if(!this.hasSwfObjectLoaded())return typeof NODEBUG=="undefined"&&this.log("Swfobject is not detected, Flash fonts enumeration is skipped"),t(n);if(!this.hasMinFlashInstalled())return typeof NODEBUG=="undefined"&&this.log("Flash is not installed, skipping Flash fonts enumeration"),t(n);if(typeof this.options.swfPath=="undefined")return typeof NODEBUG=="undefined"&&this.log("To use Flash fonts detection, you must pass a valid swfPath option, skipping Flash fonts enumeration"),t(n);this.loadSwfAndDetectFonts(function(i){n.push({key:"swf_fonts",value:i.join(";")}),t(n)})},jsFontsKey:function(n,t){var i=this;return setTimeout(function(){var u=["monospace","sans-serif","serif"],y="mmmmmmmmmmlli",p="72px",s=document.getElementsByTagName("body")[0],r=document.createElement("span"),h,c,f,a,l,o,v;for(r.style.position="absolute",r.style.left="-9999px",r.style.fontSize=p,r.innerHTML=y,h={},c={},f=0,a=u.length;f<a;f++)r.style.fontFamily=u[f],s.appendChild(r),h[u[f]]=r.offsetWidth,c[u[f]]=r.offsetHeight,s.removeChild(r);var w=function(n){for(var i=!1,e,t=0,f=u.length;t<f;t++)r.style.fontFamily=n+","+u[t],s.appendChild(r),e=r.offsetWidth!==h[u[t]]||r.offsetHeight!==c[u[t]],s.removeChild(r),i=i||e;return i},e=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Garamond","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"],b=["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"];for(i.options.extendedJsFonts&&(e=e.concat(b)),l=[],o=0,v=e.length;o<v;o++)w(e[o])&&l.push(e[o]);n.push({key:"js_fonts",value:l}),t(n)},1)},pluginsKey:function(n){return this.options.excludePlugins||(this.isIE()?n.push({key:"ie_plugins",value:this.getIEPlugins()}):n.push({key:"regular_plugins",value:this.getRegularPlugins()})),n},getRegularPlugins:function(){for(var n=[],t=0,i=navigator.plugins.length;t<i;t++)n.push(navigator.plugins[t]);return this.pluginsShouldBeSorted()&&(n=n.sort(function(n,t){return n.name>t.name?1:n.name<t.name?-1:0})),this.map(n,function(n){var t=this.map(n,function(n){return[n.type,n.suffixes].join("~")}).join(",");return[n.name,n.description,t].join("::")},this)},getIEPlugins:function(){var n=[],t;return(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window)&&(t=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],n=this.map(t,function(n){try{return new ActiveXObject(n),n}catch(t){return null}})),navigator.plugins&&(n=n.concat(this.getRegularPlugins())),n},pluginsShouldBeSorted:function(){for(var t=!1,r,n=0,i=this.options.sortPluginsFor.length;n<i;n++)if(r=this.options.sortPluginsFor[n],navigator.userAgent.match(r)){t=!0;break}return t},touchSupportKey:function(n){return this.options.excludeTouchSupport||n.push({key:"touch_support",value:this.getTouchSupport()}),n},hasSessionStorage:function(){try{return!!window.sessionStorage}catch(n){return!0}},hasLocalStorage:function(){try{return!!window.localStorage}catch(n){return!0}},hasIndexedDB:function(){return!!window.indexedDB},getNavigatorCpuClass:function(){return navigator.cpuClass?navigator.cpuClass:"unknown"},getNavigatorPlatform:function(){return navigator.platform?navigator.platform:"unknown"},getDoNotTrack:function(){return navigator.doNotTrack?navigator.doNotTrack:"unknown"},getTouchSupport:function(){var n=0,t=!1,i;typeof navigator.maxTouchPoints!="undefined"?n=navigator.maxTouchPoints:typeof navigator.msMaxTouchPoints!="undefined"&&(n=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(r){}return i="ontouchstart"in window,[n,t,i]},getCanvasFp:function(){var i=[],t=document.createElement("canvas"),n;return t.width=2e3,t.height=200,t.style.display="inline",n=t.getContext("2d"),n.rect(0,0,10,10),n.rect(2,2,6,6),i.push("canvas winding:"+(n.isPointInPath(5,5,"evenodd")===!1?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.font=this.options.dontUseFakeFontInCanvas?"11pt Arial":"11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),n.fillStyle="rgba(102, 204, 0, 0.7)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,Math.PI*2,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,Math.PI*2,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,Math.PI*2,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,Math.PI*2,!0),n.arc(75,75,25,0,Math.PI*2,!0),n.fill("evenodd"),i.push("canvas fp:"+t.toDataURL()),i.join("~")},getWebglFp:function(){var n,e=function(t){return n.clearColor(0,0,0,1),n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"},s=function(n){var t,i=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic");return i?(t=n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT),0===t&&(t=2),t):null},o,i,u,f;if(n=this.getWebglCanvas(),!n)return null;var t=[],h="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",c="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",r=n.createBuffer();return(n.bindBuffer(n.ARRAY_BUFFER,r),o=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]),n.bufferData(n.ARRAY_BUFFER,o,n.STATIC_DRAW),r.itemSize=3,r.numItems=3,i=n.createProgram(),u=n.createShader(n.VERTEX_SHADER),n.shaderSource(u,h),n.compileShader(u),f=n.createShader(n.FRAGMENT_SHADER),n.shaderSource(f,c),n.compileShader(f),n.attachShader(i,u),n.attachShader(i,f),n.linkProgram(i),n.useProgram(i),i.vertexPosAttrib=n.getAttribLocation(i,"attrVertex"),i.offsetUniform=n.getUniformLocation(i,"uniformOffset"),n.enableVertexAttribArray(i.vertexPosArray),n.vertexAttribPointer(i.vertexPosAttrib,r.itemSize,n.FLOAT,!1,0,0),n.uniform2f(i.offsetUniform,1,1),n.drawArrays(n.TRIANGLE_STRIP,0,r.numItems),n.canvas!=null&&t.push(n.canvas.toDataURL()),t.push("extensions:"+n.getSupportedExtensions().join(";")),t.push("webgl aliased line width range:"+e(n.getParameter(n.ALIASED_LINE_WIDTH_RANGE))),t.push("webgl aliased point size range:"+e(n.getParameter(n.ALIASED_POINT_SIZE_RANGE))),t.push("webgl alpha bits:"+n.getParameter(n.ALPHA_BITS)),t.push("webgl antialiasing:"+(n.getContextAttributes().antialias?"yes":"no")),t.push("webgl blue bits:"+n.getParameter(n.BLUE_BITS)),t.push("webgl depth bits:"+n.getParameter(n.DEPTH_BITS)),t.push("webgl green bits:"+n.getParameter(n.GREEN_BITS)),t.push("webgl max anisotropy:"+s(n)),t.push("webgl max combined texture image units:"+n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),t.push("webgl max cube map texture size:"+n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE)),t.push("webgl max fragment uniform vectors:"+n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS)),t.push("webgl max render buffer size:"+n.getParameter(n.MAX_RENDERBUFFER_SIZE)),t.push("webgl max texture image units:"+n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS)),t.push("webgl max texture size:"+n.getParameter(n.MAX_TEXTURE_SIZE)),t.push("webgl max varying vectors:"+n.getParameter(n.MAX_VARYING_VECTORS)),t.push("webgl max vertex attribs:"+n.getParameter(n.MAX_VERTEX_ATTRIBS)),t.push("webgl max vertex texture image units:"+n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),t.push("webgl max vertex uniform vectors:"+n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS)),t.push("webgl max viewport dims:"+e(n.getParameter(n.MAX_VIEWPORT_DIMS))),t.push("webgl red bits:"+n.getParameter(n.RED_BITS)),t.push("webgl renderer:"+n.getParameter(n.RENDERER)),t.push("webgl shading language version:"+n.getParameter(n.SHADING_LANGUAGE_VERSION)),t.push("webgl stencil bits:"+n.getParameter(n.STENCIL_BITS)),t.push("webgl vendor:"+n.getParameter(n.VENDOR)),t.push("webgl version:"+n.getParameter(n.VERSION)),!n.getShaderPrecisionFormat)?(typeof NODEBUG=="undefined"&&this.log("WebGL fingerprinting is incomplete, because your browser does not support getShaderPrecisionFormat"),t.join("~")):(t.push("webgl vertex shader high float precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).precision),t.push("webgl vertex shader high float precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).rangeMin),t.push("webgl vertex shader high float precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).rangeMax),t.push("webgl vertex shader medium float precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision),t.push("webgl vertex shader medium float precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).rangeMin),t.push("webgl vertex shader medium float precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).rangeMax),t.push("webgl vertex shader low float precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_FLOAT).precision),t.push("webgl vertex shader low float precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_FLOAT).rangeMin),t.push("webgl vertex shader low float precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_FLOAT).rangeMax),t.push("webgl fragment shader high float precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision),t.push("webgl fragment shader high float precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).rangeMin),t.push("webgl fragment shader high float precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).rangeMax),t.push("webgl fragment shader medium float precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision),t.push("webgl fragment shader medium float precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).rangeMin),t.push("webgl fragment shader medium float precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).rangeMax),t.push("webgl fragment shader low float precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_FLOAT).precision),t.push("webgl fragment shader low float precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_FLOAT).rangeMin),t.push("webgl fragment shader low float precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_FLOAT).rangeMax),t.push("webgl vertex shader high int precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_INT).precision),t.push("webgl vertex shader high int precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_INT).rangeMin),t.push("webgl vertex shader high int precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_INT).rangeMax),t.push("webgl vertex shader medium int precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_INT).precision),t.push("webgl vertex shader medium int precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_INT).rangeMin),t.push("webgl vertex shader medium int precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_INT).rangeMax),t.push("webgl vertex shader low int precision:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_INT).precision),t.push("webgl vertex shader low int precision rangeMin:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_INT).rangeMin),t.push("webgl vertex shader low int precision rangeMax:"+n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.LOW_INT).rangeMax),t.push("webgl fragment shader high int precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_INT).precision),t.push("webgl fragment shader high int precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_INT).rangeMin),t.push("webgl fragment shader high int precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_INT).rangeMax),t.push("webgl fragment shader medium int precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_INT).precision),t.push("webgl fragment shader medium int precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_INT).rangeMin),t.push("webgl fragment shader medium int precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_INT).rangeMax),t.push("webgl fragment shader low int precision:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_INT).precision),t.push("webgl fragment shader low int precision rangeMin:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_INT).rangeMin),t.push("webgl fragment shader low int precision rangeMax:"+n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.LOW_INT).rangeMax),t.join("~"))},getAdBlock:function(){var n=document.createElement("div");n.setAttribute("id","ads");try{return document.body.appendChild(n),document.getElementById("ads")?!1:!0}catch(t){return!1}},getHasLiedLanguages:function(){if(typeof navigator.languages!="undefined")try{var n=navigator.languages[0].substr(0,2);if(n!==navigator.language.substr(0,2))return!0}catch(t){return!0}return!1},getHasLiedResolution:function(){return screen.width<screen.availWidth?!0:screen.height<screen.availHeight?!0:!1},getHasLiedOs:function(){var r=navigator.userAgent.toLowerCase(),i=navigator.oscpu,t=navigator.platform.toLowerCase(),n,u;return(n=r.indexOf("windows phone")>=0?"Windows Phone":r.indexOf("win")>=0?"Windows":r.indexOf("android")>=0?"Android":r.indexOf("linux")>=0?"Linux":r.indexOf("iphone")>=0||r.indexOf("ipad")>=0?"iOS":r.indexOf("mac")>=0?"Mac":"Other",u="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?!0:!1,u&&n!=="Windows Phone"&&n!=="Android"&&n!=="iOS"&&n!=="Other")?!0:typeof i!="undefined"&&((i=i.toLowerCase(),i.indexOf("win")>=0&&n!=="Windows"&&n!=="Windows Phone")||i.indexOf("linux")>=0&&n!=="Linux"&&n!=="Android"||i.indexOf("mac")>=0&&n!=="Mac"&&n!=="iOS"||i.indexOf("win")===0&&i.indexOf("linux")===0&&i.indexOf("mac")>=0&&n!=="other")?!0:t.indexOf("win")>=0&&n!=="Windows"&&n!=="Windows Phone"?!0:(t.indexOf("linux")>=0||t.indexOf("android")>=0||t.indexOf("pike")>=0)&&n!=="Linux"&&n!=="Android"||(t.indexOf("mac")>=0||t.indexOf("ipad")>=0||t.indexOf("ipod")>=0||t.indexOf("iphone")>=0)&&n!=="Mac"&&n!=="iOS"||t.indexOf("win")===0&&t.indexOf("linux")===0&&t.indexOf("mac")>=0&&n!=="other"?!0:typeof navigator.plugins=="undefined"&&n!=="Windows"&&n!=="Windows Phone"?!0:!1},getHasLiedBrowser:function(){var t=navigator.userAgent.toLowerCase(),u=navigator.productSub,n,i,r;if((n=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other",(n==="Chrome"||n==="Safari"||n==="Opera")&&u!=="20030107")||(i=eval.toString().length,i===37&&n!=="Safari"&&n!=="Firefox"&&n!=="Other")||i===39&&n!=="Internet Explorer"&&n!=="Other"||i===33&&n!=="Chrome"&&n!=="Opera"&&n!=="Other")return!0;try{throw"a";}catch(f){try{f.toSource(),r=!0}catch(e){r=!1}}return r&&n!=="Firefox"&&n!=="Other"?!0:!1},isCanvasSupported:function(){var n=document.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var n=document.createElement("canvas"),t;try{t=n.getContext&&(n.getContext("webgl")||n.getContext("experimental-webgl"))}catch(i){t=!1}return!!window.WebGLRenderingContext&&!!t},isIE:function(){return navigator.appName==="Microsoft Internet Explorer"?!0:navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent)?!0:!1},hasSwfObjectLoaded:function(){return typeof window.swfobject!="undefined"},hasMinFlashInstalled:function(){return swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var n=document.createElement("div");n.setAttribute("id",this.options.swfContainerId),document.body.appendChild(n)},loadSwfAndDetectFonts:function(n){var t="___fp_swf_loaded",i,r,u;window[t]=function(t){n(t)},i=this.options.swfContainerId,this.addFlashDivNode(),r={onReady:t},u={allowScriptAccess:"always",menu:"false"},swfobject.embedSWF(this.options.swfPath,i,"1","1","9.0.0",!1,r,u,{})},getWebglCanvas:function(){var t=document.createElement("canvas"),n=null;try{n=t.getContext("webgl")||t.getContext("experimental-webgl")}catch(i){}return n||(n=null),n},each:function(n,t,i){var r,f,u;if(n!==null)if(this.nativeForEach&&n.forEach===this.nativeForEach)n.forEach(t,i);else if(n.length===+n.length){for(r=0,f=n.length;r<f;r++)if(t.call(i,n[r],r,n)==={})return}else for(u in n)if(n.hasOwnProperty(u)&&t.call(i,n[u],u,n)==={})return},map:function(n,t,i){var r=[];return n==null?r:this.nativeMap&&n.map===this.nativeMap?n.map(t,i):(this.each(n,function(n,u,f){r[r.length]=t.call(i,n,u,f)}),r)},x64Add:function(n,t){n=[n[0]>>>16,n[0]&65535,n[1]>>>16,n[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var i=[0,0,0,0];return i[3]+=n[3]+t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=n[2]+t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=n[1]+t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=n[0]+t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Multiply:function(n,t){n=[n[0]>>>16,n[0]&65535,n[1]>>>16,n[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var i=[0,0,0,0];return i[3]+=n[3]*t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=n[2]*t[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=n[3]*t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=n[1]*t[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=n[2]*t[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=n[3]*t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=n[0]*t[3]+n[1]*t[2]+n[2]*t[1]+n[3]*t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Rotl:function(n,t){return t%=64,t===32?[n[1],n[0]]:t<32?[n[0]<<t|n[1]>>>32-t,n[1]<<t|n[0]>>>32-t]:(t-=32,[n[1]<<t|n[0]>>>32-t,n[0]<<t|n[1]>>>32-t])},x64LeftShift:function(n,t){return t%=64,t===0?n:t<32?[n[0]<<t|n[1]>>>32-t,n[1]<<t]:[n[1]<<t-32,0]},x64Xor:function(n,t){return[n[0]^t[0],n[1]^t[1]]},x64Fmix:function(n){return n=this.x64Xor(n,[0,n[0]>>>1]),n=this.x64Multiply(n,[4283543511,3981806797]),n=this.x64Xor(n,[0,n[0]>>>1]),n=this.x64Multiply(n,[3301882366,444984403]),n=this.x64Xor(n,[0,n[0]>>>1])},x64hash128:function(n,t){var i;n=n||"",t=t||0;var h=n.length%16,c=n.length-h,f=[0,t],e=[0,t],r=[0,0],u=[0,0],o=[2277735313,289559509],s=[1291169091,658871167];for(i=0;i<c;i=i+16)r=[n.charCodeAt(i+4)&255|(n.charCodeAt(i+5)&255)<<8|(n.charCodeAt(i+6)&255)<<16|(n.charCodeAt(i+7)&255)<<24,n.charCodeAt(i)&255|(n.charCodeAt(i+1)&255)<<8|(n.charCodeAt(i+2)&255)<<16|(n.charCodeAt(i+3)&255)<<24],u=[n.charCodeAt(i+12)&255|(n.charCodeAt(i+13)&255)<<8|(n.charCodeAt(i+14)&255)<<16|(n.charCodeAt(i+15)&255)<<24,n.charCodeAt(i+8)&255|(n.charCodeAt(i+9)&255)<<8|(n.charCodeAt(i+10)&255)<<16|(n.charCodeAt(i+11)&255)<<24],r=this.x64Multiply(r,o),r=this.x64Rotl(r,31),r=this.x64Multiply(r,s),f=this.x64Xor(f,r),f=this.x64Rotl(f,27),f=this.x64Add(f,e),f=this.x64Add(this.x64Multiply(f,[0,5]),[0,1390208809]),u=this.x64Multiply(u,s),u=this.x64Rotl(u,33),u=this.x64Multiply(u,o),e=this.x64Xor(e,u),e=this.x64Rotl(e,31),e=this.x64Add(e,f),e=this.x64Add(this.x64Multiply(e,[0,5]),[0,944331445]);r=[0,0],u=[0,0];switch(h){case 15:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+14)],48));case 14:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+13)],40));case 13:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+12)],32));case 12:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+11)],24));case 11:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+10)],16));case 10:u=this.x64Xor(u,this.x64LeftShift([0,n.charCodeAt(i+9)],8));case 9:u=this.x64Xor(u,[0,n.charCodeAt(i+8)]),u=this.x64Multiply(u,s),u=this.x64Rotl(u,33),u=this.x64Multiply(u,o),e=this.x64Xor(e,u);case 8:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+7)],56));case 7:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+6)],48));case 6:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+5)],40));case 5:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+4)],32));case 4:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+3)],24));case 3:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+2)],16));case 2:r=this.x64Xor(r,this.x64LeftShift([0,n.charCodeAt(i+1)],8));case 1:r=this.x64Xor(r,[0,n.charCodeAt(i)]),r=this.x64Multiply(r,o),r=this.x64Rotl(r,31),r=this.x64Multiply(r,s),f=this.x64Xor(f,r)}return f=this.x64Xor(f,[0,n.length]),e=this.x64Xor(e,[0,n.length]),f=this.x64Add(f,e),e=this.x64Add(e,f),f=this.x64Fmix(f),e=this.x64Fmix(e),f=this.x64Add(f,e),e=this.x64Add(e,f),("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)+("00000000"+(e[0]>>>0).toString(16)).slice(-8)+("00000000"+(e[1]>>>0).toString(16)).slice(-8)}},n.VERSION="1.1.3",n}),Date.prototype.toLocaleFormat||(Date.prototype.toLocaleFormat=function(n){var i={Y:this.getFullYear(),y:this.getFullYear()-(this.getFullYear()>=2e3?2e3:1900),m:this.getMonth()+1,d:this.getDate(),H:this.getHours(),M:this.getMinutes(),S:this.getSeconds()},t;for(t in i)n=n.replace("%"+t,i[t]<10?"0"+i[t]:i[t]);return n}),function(n){n.fn.extend({filter_input:function(t){function i(r){var u=r.input?r.input:n(this),f,e,o;if(!r.ctrlKey&&!r.altKey){if(r.type=="keypress"){if(f=r.charCode?r.charCode:r.keyCode?r.keyCode:0,(f==8||f==9||f==13||f==35||f==36||f==37||f==39||f==46)&&r.charCode==0&&r.keyCode==f)return!0;if(e=String.fromCharCode(f),t.negkey&&e==t.negkey)return u.val().substr(0,1)==e?u.val(u.val().substring(1,u.val().length)).change():u.val(e+u.val()).change(),!1;o=new RegExp(t.regex)}else{if(r.type=="paste")return u.data("value_before_paste",r.target.value),setTimeout(function(){i({type:"after_paste",input:u})},1),!0;if(r.type=="after_paste")e=u.val(),o=new RegExp("^("+t.regex+")+$");else return!1}return o.test(e)?!0:(typeof t.feedback=="function"&&t.feedback.call(this,e),r.type=="after_paste"&&u.val(u.data("value_before_paste")),!1)}}var u={regex:".",negkey:!1,live:!1,events:"keypress paste"},t=n.extend(u,t),r=n.fn.jquery.split(".");if(t.live)if(parseInt(r[0])>=1&&parseInt(r[1])>=7)n(this).on(t.events,i);else n(this).live(t.events,i);else return this.each(function(){var u=n(this);if(parseInt(r[0])>=1&&parseInt(r[1])>=7)u.off(t.events).on(t.events,i);else u.unbind(t.events).bind(t.events,i)})}})}(jQuery),!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n){var i,t=navigator.userAgent,u=/iphone/i.test(t),f=/chrome/i.test(t),r=/android/i.test(t);n.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},n.fn.extend({caret:function(n,t){var i;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof n?(t="number"==typeof t?t:n,this.each(function(){this.setSelectionRange?this.setSelectionRange(n,t):this.createTextRange&&(i=this.createTextRange(),i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",n),i.select())})):(this[0].setSelectionRange?(n=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),n=0-i.duplicate().moveStart("character",-1e5),t=n+i.text.length),{begin:n,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(t,e){var p,l,o,c,h,v,s,a,y;return!t&&this.length>0?(p=n(this[0]),y=p.data(n.mask.dataName),y?y():void 0):(e=n.extend({autoclear:n.mask.autoclear,placeholder:n.mask.placeholder,completed:null},e),l=n.mask.definitions,o=[],c=s=t.length,h=null,n.each(t.split(""),function(n,t){"?"==t?(s--,c=n):l[t]?(o.push(new RegExp(l[t])),null===h&&(h=o.length-1),c>n&&(v=o.length-1)):o.push(null)}),this.trigger("unmask").each(function(){function nt(){if(e.completed){for(var n=h;v>=n;n++)if(o[n]&&p[n]===w(n))return;e.completed.call(y)}}function w(n){return e.placeholder.charAt(n<e.placeholder.length?n:0)}function b(n){for(;++n<s&&!o[n];);return n}function ut(n){for(;--n>=0&&!o[n];);return n}function it(n,t){var r,i;if(!(0>n)){for(r=n,i=b(t);s>r;r++)if(o[r]){if(!(s>i&&o[r].test(p[i])))break;p[r]=p[i],p[i]=w(i),i=b(i)}d(),y.caret(Math.max(h,n))}}function ft(n){for(var i,r,t=n,u=w(n);s>t;t++)if(o[t]){if(i=b(t),r=p[t],p[t]=u,!(s>i&&o[i].test(r)))break;u=r}}function et(){var t=y.val(),n=y.caret();if(a&&a.length&&a.length>t.length){for(k(!0);n.begin>0&&!o[n.begin-1];)n.begin--;if(0===n.begin)for(;n.begin<h&&!o[n.begin];)n.begin++;y.caret(n.begin,n.begin)}else{for(k(!0);n.begin<s&&!o[n.begin];)n.begin++;y.caret(n.begin,n.begin)}nt()}function rt(){k(),y.val()!=tt&&y.change()}function ot(n){if(!y.prop("readonly")){var f,i,t,r=n.which||n.keyCode;a=y.val(),8===r||46===r||u&&127===r?(f=y.caret(),i=f.begin,t=f.end,t-i==0&&(i=46!==r?ut(i):t=b(i-1),t=46===r?b(t):t),g(i,t),it(i,t-1),n.preventDefault()):13===r?rt.call(this,n):27===r&&(y.val(tt),y.caret(0,k()),n.preventDefault())}}function st(t){var u,e,h,f,i,c;y.prop("readonly")||(f=t.which||t.keyCode,i=y.caret(),t.ctrlKey||t.altKey||t.metaKey||32>f||!f||13===f||((i.end-i.begin!=0&&(g(i.begin,i.end),it(i.begin,i.end-1)),u=b(i.begin-1),s>u&&(e=String.fromCharCode(f),o[u].test(e)))&&((ft(u),p[u]=e,d(),h=b(u),r)?(c=function(){n.proxy(n.fn.caret,y,h)()},setTimeout(c,0)):y.caret(h),i.begin<=v&&nt()),t.preventDefault()))}function g(n,t){for(var i=n;t>i&&s>i;i++)o[i]&&(p[i]=w(i))}function d(){y.val(p.join(""))}function k(n){for(var f,r=y.val(),u=-1,t=0,i=0;s>t;t++)if(o[t]){for(p[t]=w(t);i++<r.length;)if(f=r.charAt(i-1),o[t].test(f)){p[t]=f,u=t;break}if(i>r.length){g(t+1,s);break}}else p[t]===r.charAt(i)&&i++,c>t&&(u=t);return n?d():c>u+1?e.autoclear||p.join("")===ht?(y.val()&&y.val(""),g(0,s)):d():(d(),y.val(y.val().substring(0,u+1))),c?t:h}var y=n(this),p=n.map(t.split(""),function(n,t){if("?"!=n)return l[n]?w(t):n}),ht=p.join(""),tt=y.val();y.data(n.mask.dataName,function(){return n.map(p,function(n,t){return o[t]&&n!=w(t)?n:null}).join("")}),y.one("unmask",function(){y.off(".mask").removeData(n.mask.dataName)}).on("focus.mask",function(){if(!y.prop("readonly")){clearTimeout(i);var n;tt=y.val(),n=k(),i=setTimeout(function(){y.get(0)===document.activeElement&&(d(),n==t.replace("?","").length?y.caret(0,n):y.caret(n))},10)}}).on("blur.mask",rt).on("keydown.mask",ot).on("keypress.mask",st).on("input.mask paste.mask",function(){y.prop("readonly")||setTimeout(function(){var n=k(!0);y.caret(n),nt()},0)}),f&&r&&y.off("input.mask").on("input.mask",et),k()}))}})}),MkbRuWeb=MkbRuWeb||{},MkbRuWeb=$.extend(MkbRuWeb,{redirectPost:function(n,t){var i="";$.each(t,function(n,t){typeof t=="string"&&(t=t.split('"').join('"')),i+='<input type="hidden" name="'+n+'" value="'+t+'">'}),$('<form action="'+n+'" method="POST">'+i+"<\/form>").appendTo($(document.body)).submit()},redirectGet:function(n,t){var i=$.param(t);document.location.href=n+"?"+i},sendAsync:function(n,t,i,r){$.ajax({type:"POST",url:n,data:t,success:function(n){n?n.IsSuccess?i?i(n):r?r(n):alert(n):r?r(n.ErrorMessage):alert(n.ErrorMessage):r?r(n):alert("При обработке запроса произошла внутренняя ошибка. Некорректные данные при получении ответа")},error:function(n){n&&n.responseJSON&&n.responseJSON.ErrorMessage?r?r(n.responseJSON.ErrorMessage):alert(n.responseJSON.ErrorMessage):r?r(n.responseCode):alert("При обработке запроса произошла внутренняя ошибка. Код ответа: "+n.responseCode)},complete:function(){}})},getScrollableElement:function(){return window.isIPad?$("body"):$(window)},getCurrentScrollTop:function(){return window.isIPad?Math.abs($("#page").offset().top):$(window).scrollTop()},fixMobileVirtualPad:function(){window.isIPad&&$("html").addClass("overflow-auto")},redirectToMkbOnline:function(){$("button.btn_mkbonline").on("click",function(){window.open("//online.mkb.ru","_blank")})}}),ua=window.navigator.userAgent,window.isIPad=ua.match(/iPad/i)!=null,$(function(){MkbRuWeb.fixMobileVirtualPad(),MkbRuWeb.redirectToMkbOnline()}),Page=function(){this.win_=$(window),this.page_=$("#page"),window.minWidth=980,this.body_=$("body"),this.coverContainer_=this.page_.find(".cover-container"),this.coverOverlay_=this.coverContainer_.find(".cover-overlay"),this.mark_=0,this.docWidth_=document.body.clientWidth,this.init()},Page.prototype.init=function(){var n=this,t;this.onInitAfter_(),this.attachEvents_(),this.checkWidth_(),this.checkBrowser_()&&n.body_.addClass("no-svg");this.win_.on("resize",function(){n.checkWidth_()});$(".slider-container").each(function(){new SliderControl($(this))}),$(".foldable").each(function(){new Foldable($(this))}),$(".tabs").each(function(){new Tabs($(this))});$(".slide-btn").on("click",function(n){if($(this).data("block")){var t=$(this).data("block"),i=$(".component_"+t),r=i.offset().top;new ScrollToComp(r),n.preventDefault()}});$(".selector").each(function(){new Selector($(this))}),$(".buttons").each(function(){new Buttons($(this))}),new SitemapNav,$(".nav-foldable").each(function(){new NavFoldable($(this))}),$(".input_date").each(function(){$(this).datepicker({dateFormat:"dd.mm.yy",changeMonth:!0,changeYear:!0,onSelect:function(){$(this).valid()}})}),t=null,MkbRuWeb.getVideoDict&&(t=MkbRuWeb.getVideoDict()),n.setLayoutChangedStatus_(t),n.body_.trigger("layout_changed")},Page.prototype.checkBrowser_=function(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");return t>0||!!n.match(/Trident.*rv\:11\./)},Page.prototype.checkWidth_=function(){this.win_.width()<window.minWidth?(this.page_.trigger("mobile_view"),$("html").addClass("mobile")):(this.page_.trigger("desktop_view"),$("html").removeClass("mobile"))},Page.prototype.isTimeoutOnVideo_=function(){return this.mark_?this.mark_:(this.mark_=window.performance&&window.performance.now()<1e4,window.console&&(this.mark_?window.console.log("%cVideo on ( < 10c).","background:black;padding:2px 10px;color:white;"):window.console.log("%cVideo off ( > 10c).","background:black;padding:2px 10px;color:white;")),this.mark_)},Page.prototype.setLayoutChangedStatus_=function(){this.coverOverlay_.html("")},Page.prototype.attachEvents_=function(){$(window).on("resize scroll touchmove",function(){document.body.clientWidth!==this.docWidth_&&(this.docWidth_=document.body.clientWidth,this.setPictureRightSideParam_())}.bind(this))},Page.prototype.onInitAfter_=function(){$("body").on("layout_changed",function(){this.pictureRightSide=$(".picture_right-side img"),this.setPictureRightSideParam_(),this.setPercentNumDelay_()}.bind(this))},Page.prototype.setPictureRightSideParam_=function(){var n=this;this.pictureRightSide&&this.pictureRightSide.each(function(){var i=this.getBoundingClientRect(),r,u;i.left&&i.top&&(r=Math.floor(i.left),u=n.docWidth_-r-1,this.style.width=u+"px",this.style.maxWidth="initial")})},Page.prototype.setPercentNumDelay_=function(){var n=$("#video").data("extra"),t=0;n&&n.percentNumDelay&&(t=n.percentNumDelay*1e3),setTimeout(function(){$(".page .extra .interest-rate .percent-num").addClass("animate"),$(".page .extra .product-info__general").addClass("animate")},t)},Tabs=function(n){(this.tabs_=n,this.tabs_.length!==0)&&(this.findButNotInside_=function(n,t,i){return i.find(n).filter(function(){return i[0]==$(this).closest(t)[0]})},this.tabsOpeners_=this.tabs_.find(".tabs__openers").first(),this.tabsOpener_=this.findButNotInside_(".tabs__opener",".tabs",this.tabs_),this.tabsContents_=this.findButNotInside_(".tabs__contents",".tabs",this.tabs_),this.init_())},Tabs.CLASS_SELECTED="selected",Tabs.CLASS_ACTIVE="active",Tabs.DURATION=200,Tabs.prototype.init_=function(){this.attachEvents_()},Tabs.prototype.attachEvents_=function(){var n=this;this.tabsOpener_.on("click",function(t,i){var u,e;if(!$(this).is("."+Tabs.CLASS_SELECTED)&&(i||!$(this).closest(".registry_block").length)&&($(this).siblings().removeClass(Tabs.CLASS_SELECTED),$(this).addClass(Tabs.CLASS_SELECTED),n.tabs_.trigger("tabs_changed"),n.tabsContents_.length!==0)){var o=$(this).data("tab"),r=n.tabsContents_.find(".tabs__content."+Tabs.CLASS_ACTIVE),f=r.first();if(r.length>1)for(u=0;u<r.length;u++)r.eq(u).closest(".tabs").find($(this)).length>0&&(f=r.eq(u));e=n.tabsContents_.find(".tabs__content_"+o).first(),f.fadeOut(Tabs.DURATION,function(){f.removeClass(Tabs.CLASS_ACTIVE),e.stop(!0).fadeIn(Tabs.DURATION),e.addClass(Tabs.CLASS_ACTIVE)}),setTimeout(function(){$(window).resize()},200)}})},Foldable=function(n){(this.foldable_=n,this.foldable_.length!==0)&&(this.foldableOpener_=this.foldable_.find(".foldable__opener span"),this.foldableContent_=this.foldable_.find(".foldable__content"),this.init_())},Foldable.DURATION=600,Foldable.CLASS_UNFOLDED="unfolded",Foldable.prototype.init_=function(){this.attachEvents_()},Foldable.prototype.attachEvents_=function(){var n=this;this.foldableOpener_.on("click",function(){var t=n.foldableOpener_.data("roll"),i=n.foldableOpener_.text();n.foldableOpener_.text(t),n.foldableOpener_.data("roll",i),n.foldableContent_.slideToggle(Foldable.DURATION),n.foldable_.toggleClass(Foldable.CLASS_UNFOLDED),n.foldable_.is("."+Foldable.CLASS_UNFOLDED)?n.foldable_.trigger("unfolded"):n.foldable_.trigger("folded")})},NavFoldable=function(n){(this.navFoldable_=n,this.navFoldable_.length!==0)&&(this.navFoldableOpener_=this.navFoldable_.find(".nav-foldable__opener"),this.navFoldableSelectedItem_=this.navFoldableOpener_.find("span"),this.navFoldableList_=this.navFoldable_.find(".nav-foldable__list"),this.navFoldableListCurrentOption_=this.navFoldableList_.find("li.selected .nav-foldable__list-option"),this.navFoldableListOption_=this.navFoldableList_.find("li .nav-foldable__list-option"),this.init_())},NavFoldable.CLASS_EXPANDED="expanded",NavFoldable.CLASS_SELECTED="selected",NavFoldable.prototype.init_=function(){this.selectListItem_(this.navFoldableListCurrentOption_),this.attachEvents_()},NavFoldable.prototype.attachEvents_=function(){var n=this;this.navFoldableOpener_.on("click",function(){n.navFoldable_.toggleClass(NavFoldable.CLASS_EXPANDED),n.navFoldableList_.slideToggle()});this.navFoldableListOption_.on("click",function(){n.selectListItem_($(this)),n.closeList_()});this.navFoldable_.on("nav_foldable_changed",function(t,i){n.selectListItem_($(i))})},NavFoldable.prototype.selectListItem_=function(n){var t=n.closest("li"),i=n.text();t.siblings().removeClass(NavFoldable.CLASS_SELECTED),t.addClass(NavFoldable.CLASS_SELECTED),this.navFoldableSelectedItem_.text(i)},NavFoldable.prototype.closeList_=function(){this.navFoldable_.is("."+NavFoldable.CLASS_EXPANDED)&&(this.navFoldable_.removeClass(NavFoldable.CLASS_EXPANDED),this.navFoldableList_.slideUp())},SitemapNav=function(){(this.sitemapNav_=$(".sitemap-nav"),this.sitemapNav_.length!==0)&&this.init_()},SitemapNav.prototype.init_=function(){new SitemapNavToggler(this.sitemapNav_),new SitemapNavTabs(this.sitemapNav_)},SitemapNavTabs=function(n){this.sitemapNav_=n,this.tabs_=this.sitemapNav_.find(".tabs"),this.tabsOpener_=this.tabs_.find(".tabs__opener"),this.menu_=this.sitemapNav_.find(".sitemap-nav__menu"),this.navFoldable_=this.menu_.find(".nav-foldable"),this.navFoldableListOption_=this.navFoldable_.find(".nav-foldable__list-option"),this.init_()},SitemapNavTabs.prototype.init_=function(){var n=this;this.tabsOpener_.on("click",function(){var t=$(this).data("tab"),i=n.navFoldable_.find('.nav-foldable__list-option[data-tab="'+t+'"]');n.navFoldable_.trigger("nav_foldable_changed",i)});this.navFoldableListOption_.on("click",function(){var t=$(this).data("tab"),i=n.tabs_.find('.tabs__opener[data-tab="'+t+'"]');i.trigger("click")})},SitemapNavToggler=function(n){this.sitemapNav_=n,this.sitemapToggler_=this.sitemapNav_.find(".sitemap-nav__toggler"),this.sitemapContainer_=this.sitemapNav_.find(".sitemap-nav__container"),this.body_=$("body"),this.init_()},SitemapNavToggler.CLASS_OVERFLOW_HIDDEN="overflow-hidden",SitemapNavToggler.CLASS_OPENED="opened",SitemapNavToggler.prototype.init_=function(){this.attachEvents_()},SitemapNavToggler.prototype.attachEvents_=function(){var n=this;this.sitemapToggler_.on("click",function(){n.body_.toggleClass(SitemapNavToggler.CLASS_OVERFLOW_HIDDEN),n.sitemapNav_.toggleClass(SitemapNavToggler.CLASS_OPENED)})},Buttons=function(n){(this.buttons_=n,this.button_=this.buttons_.find(".btn"),this.button_.length<=1)||this.init_()},Buttons.CLASS_HOVERED="hovered",Buttons.CLASS_UNHOVERED="unhovered",Buttons.prototype.init_=function(){this.attachEvents_()},Buttons.prototype.attachEvents_=function(){this.button_.on("mouseenter",function(){$(this).removeClass("unhovered").addClass("hovered"),$(this).siblings().removeClass("hovered").addClass("unhovered")});this.button_.on("mouseleave",function(){$(this).removeClass("hovered unhovered"),$(this).siblings().removeClass("hovered unhovered")})},ComponentTabsFirst=function(){(this.componentFirst_=$(".component_tabs"),this.componentFirst_.length!==0)&&(this.componentContent_=this.componentFirst_.find(".component__content"),this.componentFirstTopPad_=parseInt(this.componentFirst_.css("padding-top"),10),this.componentFirstBottomPad_=parseInt(this.componentFirst_.css("padding-bottom"),10),this.win_=$(window),this.init_())},ComponentTabsFirst.prototype.init_=function(){var n=this;setTimeout(function(){n.setComponentHeight_()},100),this.attachEvents_()},ComponentTabsFirst.prototype.attachEvents_=function(){var n=this;this.win_.on("resize",function(){n.setComponentHeight_()})},ComponentTabsFirst.prototype.setComponentHeight_=function(){var n=this.win_.height(),t=this.componentContent_.outerHeight()+this.componentFirstTopPad_+this.componentFirstBottomPad_,i=this.componentContent_.find(".tabs").outerHeight()+this.componentFirstTopPad_+this.componentFirstBottomPad_;this.win_.outerWidth()<980||n<=t+100?this.componentFirst_.outerHeight("auto"):this.componentFirst_.outerHeight("")},ScrollToComp=function(n){this.pos_=n,this.win_=$(window),this.init_()},ScrollToComp.DURATION="700",ScrollToComp.prototype.init_=function(){var n;n=window.isIPad?this.pos_+Math.abs($("#page").offset().top):this.pos_,$("html, body").stop().animate({scrollTop:n},ScrollToComp.DURATION)},GetScrollableElement=function(){this.element,this.init_()},GetScrollableElement.prototype.init_=function(){return this.element=window.isIPad?$("body"):$(window)},ToggleBlockFixation=function(n,t){this.block_=t,this.container_=n,this.win_=$(window),this.init_()},ToggleBlockFixation.CLASS_FIXED="fixed",ToggleBlockFixation.CLASS_ANIMATED="animated",ToggleBlockFixation.prototype.init_=function(){this.toggleClassFixed_(),this.attachEvents_()},ToggleBlockFixation.prototype.attachEvents_=function(){var n=this,t=new GetScrollableElement,i=t.element;i.on("scroll",function(){n.toggleClassFixed_()}).on("resize",this.toggleClassFixed_.bind(n))},ToggleBlockFixation.prototype.toggleClassFixed_=function(){var i=this.win_.scrollTop(),n=this.container_.offset().top,r=this.container_.outerHeight(),t=n+r,u;$("html").is(".mobile")||(window.isIPad?n<=0&&t<=r&&t>=this.win_.height()?this.fixBenefits_():n>=0?this.unfixBenefits_():t<this.win_.height()&&(u=als.parseInt(r-this.block_.outerHeight()),this.unfixBenefits_(u)):i>n&&i+this.win_.height()<t?this.fixBenefits_():i<=n?this.unfixBenefits_():i+this.win_.height()>t&&(u=als.parseInt(r-this.block_.outerHeight()),this.unfixBenefits_(u)))},ToggleBlockFixation.prototype.fixBenefits_=function(){this.block_.addClass(ToggleBlockFixation.CLASS_FIXED).css({top:"0px"})},ToggleBlockFixation.prototype.fixBenefits_=function(){this.block_.addClass(ToggleBlockFixation.CLASS_FIXED).css({top:"0px"})},ToggleBlockFixation.prototype.unfixBenefits_=function(n){var t=n||0;this.block_.removeClass(ToggleBlockFixation.CLASS_FIXED).css({top:n+"px"})},Header=function(){(this.header_=$(".header"),this.header_.length!==0)&&(this.headerNav_=this.header_.find(".header__nav"),this.headerNavHeight_,this.win_=$(window),this.winTop_,this.mainInner_=$(".main__inner"),this.transparentBgComponent_=$(".component.transparent-bg_darker, .dark-bg"),this.transparentBgComponent_.length!==0&&(this.transparentBgComponentTop_,this.transparentBgComponentHeight_),this.init_())},Header.CLASS_FIXED="fixed",Header.CLASS_DARK="dark",Header.prototype.init_=function(){this.attachEvents_()},Header.prototype.attachEvents_=function(){var n=this,t=MkbRuWeb.getScrollableElement();t.on("scroll",function(){var t=n.getCurrentScrollTop_();n.adjustFixedHeader_(t),n.darkenFixedHeader_(t)});t.on("resize",function(){var t=n.getCurrentScrollTop_();n.darkenFixedHeader_(t)});t.on("click",function(){var t=n.getCurrentScrollTop_();n.darkenFixedHeader_(t)})},Header.prototype.adjustFixedHeader_=function(n){n>0?(this.header_.addClass(Header.CLASS_FIXED),this.header_.trigger("header_fixed")):(this.header_.removeClass(Header.CLASS_FIXED),this.header_.trigger("header_unfixed"))},Header.prototype.darkenFixedHeader_=function(n){if(this.transparentBgComponent_.length!==0){this.headerNavHeight_=this.headerNav_.outerHeight(),this.transparentBgComponentTop_=als.parseInt(this.transparentBgComponent_.offset().top),this.transparentBgComponentHeight_=this.transparentBgComponent_.outerHeight();var i=als.parseInt(this.transparentBgComponentTop_-this.headerNavHeight_),t=als.parseInt(this.transparentBgComponentTop_+this.transparentBgComponentHeight_);window.isIPad?i<=0&&t>0&&t<=this.transparentBgComponentHeight_?this.headerNav_.addClass(Header.CLASS_DARK):this.headerNav_.removeClass(Header.CLASS_DARK):n>i&&n<t?this.headerNav_.addClass(Header.CLASS_DARK):this.headerNav_.removeClass(Header.CLASS_DARK)}},Header.prototype.getCurrentScrollTop_=function(){return MkbRuWeb.getCurrentScrollTop()},HomeSlider=function(){(this.homeSlider_=$(".home-slider"),this.homeSlider_.length!==0)&&(this.componentHomeMain_=$(".component_home-main"),this.homeSliderItem_=this.homeSlider_.find(".home-slider__item"),this.homeSliderControls_=this.homeSlider_.find(".home-slider__controls"),this.homeSliderControlPrev_=this.homeSliderControls_.find(".home-slider__control_prev"),this.homeSliderControlNext_=this.homeSliderControls_.find(".home-slider__control_next"),this.homeSliderSwitcher_=this.homeSlider_.find(".home-slider__switcher"),this.homeSliderSwitcherItem_=this.homeSlider_.find(".home-slider__switcher-item"),this.coverOverlay_=$(".cover-overlay"),this.isAnimated_=!1,this.init_())},HomeSlider.CLASS_ACTIVE="active",HomeSlider.DURATION=2e3,HomeSlider.prototype.init_=function(){this.attachEvents_()},HomeSlider.prototype.attachEvents_=function(){var n=this;this.homeSliderSwitcherItem_.on("click",function(){if(!$(this).is("."+HomeSlider.CLASS_ACTIVE)&&!n.isAnimated_){var t=$(this).index(),i=n.homeSliderItem_.eq(t);n.setNewActiveItem_(i)}});this.homeSliderControlNext_.on("click",function(){if(!n.isAnimated_){var i=n.homeSlider_.find(".home-slider__item."+HomeSlider.CLASS_ACTIVE),t=i.next(".home-slider__item");t.length===0&&(t=n.homeSliderItem_.first()),n.setNewActiveItem_(t)}});this.homeSliderControlPrev_.on("click",function(){if(!n.isAnimated_){var i=n.homeSlider_.find(".home-slider__item."+HomeSlider.CLASS_ACTIVE),t=i.prev(".home-slider__item");t.length===0&&(t=n.homeSliderItem_.last()),n.setNewActiveItem_(t)}})},HomeSlider.prototype.setNewActiveItem_=function(n){var i=this,r=n.index(),u=n.find("video").get(0),f=n.data("img"),t=n.siblings().find("video").get(0);this.isAnimated_=!0,!t||window.isIPad||$("html").is(".mobile")||(t.pause(),setTimeout(function(){t.currentTime=0},HomeSlider.DURATION),u.play()),this.homeSliderSwitcherItem_.removeClass(HomeSlider.CLASS_ACTIVE),this.homeSliderSwitcherItem_.eq(r).addClass(HomeSlider.CLASS_ACTIVE),this.homeSliderItem_.removeClass(HomeSlider.CLASS_ACTIVE),n.addClass(HomeSlider.CLASS_ACTIVE),(window.isIPad||$("html").is(".mobile"))&&setTimeout(function(){this.coverOverlay_.css("background-image","url("+f+")")}.bind(this),500),setTimeout(function(){i.isAnimated_=!1},HomeSlider.DURATION)},CryptoJS=CryptoJS||function(n,t){var u={},f=u.lib={},o=function(){},i=f.Base={extend:function(n){o.prototype=this;var t=new o;return n&&t.mixIn(n),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var n=this.extend();return n.init.apply(n,arguments),n},init:function(){},mixIn:function(n){for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t]);n.hasOwnProperty("toString")&&(this.toString=n.toString)},clone:function(){return this.init.prototype.extend(this)}},r=f.WordArray=i.extend({init:function(n,i){n=this.words=n||[],this.sigBytes=i!=t?i:4*n.length},toString:function(n){return(n||l).stringify(this)},concat:function(n){var i=this.words,r=n.words,u=this.sigBytes,t;if(n=n.sigBytes,this.clamp(),u%4)for(t=0;t<n;t++)i[u+t>>>2]|=(r[t>>>2]>>>24-8*(t%4)&255)<<24-8*((u+t)%4);else if(65535<r.length)for(t=0;t<n;t+=4)i[u+t>>>2]=r[t>>>2];else i.push.apply(i,r);return this.sigBytes+=n,this},clamp:function(){var i=this.words,t=this.sigBytes;i[t>>>2]&=4294967295<<32-8*(t%4),i.length=n.ceil(t/4)},clone:function(){var n=i.clone.call(this);return n.words=this.words.slice(0),n},random:function(t){for(var i=[],u=0;u<t;u+=4)i.push(4294967296*n.random()|0);return new r.init(i,t)}}),e=u.enc={},l=e.Hex={stringify:function(n){var u=n.words,i,t,r;for(n=n.sigBytes,i=[],t=0;t<n;t++)r=u[t>>>2]>>>24-8*(t%4)&255,i.push((r>>>4).toString(16)),i.push((r&15).toString(16));return i.join("")},parse:function(n){for(var i=n.length,u=[],t=0;t<i;t+=2)u[t>>>3]|=parseInt(n.substr(t,2),16)<<24-4*(t%8);return new r.init(u,i/2)}},s=e.Latin1={stringify:function(n){var r=n.words,i,t;for(n=n.sigBytes,i=[],t=0;t<n;t++)i.push(String.fromCharCode(r[t>>>2]>>>24-8*(t%4)&255));return i.join("")},parse:function(n){for(var i=n.length,u=[],t=0;t<i;t++)u[t>>>2]|=(n.charCodeAt(t)&255)<<24-8*(t%4);return new r.init(u,i)}},a=e.Utf8={stringify:function(n){try{return decodeURIComponent(escape(s.stringify(n)))}catch(t){throw Error("Malformed UTF-8 data");}},parse:function(n){return s.parse(unescape(encodeURIComponent(n)))}},h=f.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(n){"string"==typeof n&&(n=a.parse(n)),this._data.concat(n),this._nDataBytes+=n.sigBytes},_process:function(t){var f=this._data,s=f.words,u=f.sigBytes,e=this.blockSize,o=u/(4*e),o=t?n.ceil(o):n.max((o|0)-this._minBufferSize,0),i;if(t=o*e,u=n.min(4*t,u),t){for(i=0;i<t;i+=e)this._doProcessBlock(s,i);i=s.splice(0,t),f.sigBytes-=u}return new r.init(i,u)},clone:function(){var n=i.clone.call(this);return n._data=this._data.clone(),n},_minBufferSize:0}),c;return f.Hasher=h.extend({cfg:i.extend(),init:function(n){this.cfg=this.cfg.extend(n),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(n){return this._append(n),this._process(),this},finalize:function(n){return n&&this._append(n),this._doFinalize()},blockSize:16,_createHelper:function(n){return function(t,i){return new n.init(i).finalize(t)}},_createHmacHelper:function(n){return function(t,i){return new c.HMAC.init(n,i).finalize(t)}}}),c=u.algo={},u}(Math),function(n){function i(n,t,i,r,u,f,e){return n=n+(t&i|~t&r)+u+e,(n<<f|n>>>32-f)+t}function r(n,t,i,r,u,f,e){return n=n+(t&r|i&~r)+u+e,(n<<f|n>>>32-f)+t}function u(n,t,i,r,u,f,e){return n=n+(t^i^r)+u+e,(n<<f|n>>>32-f)+t}function f(n,t,i,r,u,f,e){return n=n+(i^(t|~r))+u+e,(n<<f|n>>>32-f)+t}for(var o=CryptoJS,e=o.lib,c=e.WordArray,s=e.Hasher,e=o.algo,t=[],h=0;64>h;h++)t[h]=4294967296*n.abs(n.sin(h+1))|0;e=e.MD5=s.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(n,e){for(var v,a,l=0;16>l;l++)v=e+l,a=n[v],n[v]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;var l=this._hash.words,v=n[e+0],a=n[e+1],y=n[e+2],p=n[e+3],w=n[e+4],b=n[e+5],k=n[e+6],d=n[e+7],g=n[e+8],nt=n[e+9],tt=n[e+10],it=n[e+11],rt=n[e+12],ut=n[e+13],ft=n[e+14],et=n[e+15],o=l[0],c=l[1],h=l[2],s=l[3],o=i(o,c,h,s,v,7,t[0]),s=i(s,o,c,h,a,12,t[1]),h=i(h,s,o,c,y,17,t[2]),c=i(c,h,s,o,p,22,t[3]),o=i(o,c,h,s,w,7,t[4]),s=i(s,o,c,h,b,12,t[5]),h=i(h,s,o,c,k,17,t[6]),c=i(c,h,s,o,d,22,t[7]),o=i(o,c,h,s,g,7,t[8]),s=i(s,o,c,h,nt,12,t[9]),h=i(h,s,o,c,tt,17,t[10]),c=i(c,h,s,o,it,22,t[11]),o=i(o,c,h,s,rt,7,t[12]),s=i(s,o,c,h,ut,12,t[13]),h=i(h,s,o,c,ft,17,t[14]),c=i(c,h,s,o,et,22,t[15]),o=r(o,c,h,s,a,5,t[16]),s=r(s,o,c,h,k,9,t[17]),h=r(h,s,o,c,it,14,t[18]),c=r(c,h,s,o,v,20,t[19]),o=r(o,c,h,s,b,5,t[20]),s=r(s,o,c,h,tt,9,t[21]),h=r(h,s,o,c,et,14,t[22]),c=r(c,h,s,o,w,20,t[23]),o=r(o,c,h,s,nt,5,t[24]),s=r(s,o,c,h,ft,9,t[25]),h=r(h,s,o,c,p,14,t[26]),c=r(c,h,s,o,g,20,t[27]),o=r(o,c,h,s,ut,5,t[28]),s=r(s,o,c,h,y,9,t[29]),h=r(h,s,o,c,d,14,t[30]),c=r(c,h,s,o,rt,20,t[31]),o=u(o,c,h,s,b,4,t[32]),s=u(s,o,c,h,g,11,t[33]),h=u(h,s,o,c,it,16,t[34]),c=u(c,h,s,o,ft,23,t[35]),o=u(o,c,h,s,a,4,t[36]),s=u(s,o,c,h,w,11,t[37]),h=u(h,s,o,c,d,16,t[38]),c=u(c,h,s,o,tt,23,t[39]),o=u(o,c,h,s,ut,4,t[40]),s=u(s,o,c,h,v,11,t[41]),h=u(h,s,o,c,p,16,t[42]),c=u(c,h,s,o,k,23,t[43]),o=u(o,c,h,s,nt,4,t[44]),s=u(s,o,c,h,rt,11,t[45]),h=u(h,s,o,c,et,16,t[46]),c=u(c,h,s,o,y,23,t[47]),o=f(o,c,h,s,v,6,t[48]),s=f(s,o,c,h,d,10,t[49]),h=f(h,s,o,c,ft,15,t[50]),c=f(c,h,s,o,b,21,t[51]),o=f(o,c,h,s,rt,6,t[52]),s=f(s,o,c,h,p,10,t[53]),h=f(h,s,o,c,tt,15,t[54]),c=f(c,h,s,o,a,21,t[55]),o=f(o,c,h,s,g,6,t[56]),s=f(s,o,c,h,et,10,t[57]),h=f(h,s,o,c,k,15,t[58]),c=f(c,h,s,o,ut,21,t[59]),o=f(o,c,h,s,w,6,t[60]),s=f(s,o,c,h,it,10,t[61]),h=f(h,s,o,c,y,15,t[62]),c=f(c,h,s,o,nt,21,t[63]);l[0]=l[0]+o|0,l[1]=l[1]+c|0,l[2]=l[2]+h|0,l[3]=l[3]+s|0},_doFinalize:function(){var u=this._data,r=u.words,t=8*this._nDataBytes,i=8*u.sigBytes,f;for(r[i>>>5]|=128<<24-i%32,f=n.floor(t/4294967296),r[(i+64>>>9<<4)+15]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,r[(i+64>>>9<<4)+14]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,u.sigBytes=4*(r.length+1),this._process(),u=this._hash,r=u.words,t=0;4>t;t++)i=r[t],r[t]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360;return u},clone:function(){var n=s.clone.call(this);return n._hash=this._hash.clone(),n}}),o.MD5=s._createHelper(e),o.HmacMD5=s._createHmacHelper(e)}(Math),function(n){function u(n,t,i){var p=0,w=[],b=0,k,r,tt,d,u,g,l,v=!1,nt=!1,it=[],rt=[],y,ut=!1;if(i=i||{},k=i.encoding||"UTF8",y=i.numRounds||1,tt=c(t,k),y!==parseInt(y,10)||1>y)throw Error("numRounds must a integer >= 1");if(g=function(t,i){return a(t,i,n)},l=function(t,i,r,u){var f,e;if("SHA-384"===n||"SHA-512"===n)f=(i+129>>>10<<5)+31,e=32;else throw Error("Unexpected error in SHA-2 implementation");for(;t.length<=f;)t.push(0);for(t[i>>>5]|=128<<24-i%32,t[f]=i+r,r=t.length,i=0;i<r;i+=e)u=a(t.slice(i,i+e),u,n);if("SHA-384"===n)t=[u[0].a,u[0].b,u[1].a,u[1].b,u[2].a,u[2].b,u[3].a,u[3].b,u[4].a,u[4].b,u[5].a,u[5].b];else if("SHA-512"===n)t=[u[0].a,u[0].b,u[1].a,u[1].b,u[2].a,u[2].b,u[3].a,u[3].b,u[4].a,u[4].b,u[5].a,u[5].b,u[6].a,u[6].b,u[7].a,u[7].b];else throw Error("Unexpected error in SHA-2 implementation");return t},"SHA-384"===n)u=1024,d=384;else if("SHA-512"===n)u=1024,d=512;else throw Error("Chosen SHA variant is not supported");r=f(n),this.setHMACKey=function(t,i,e){var o;if(!0===nt)throw Error("HMAC key already set");if(!0===v)throw Error("Cannot set HMAC key after finalizing hash");if(!0===ut)throw Error("Cannot set HMAC key after calling update");if(k=(e||{}).encoding||"UTF8",i=c(i,k)(t),t=i.binLen,i=i.value,o=u>>>3,e=o/4-1,o<t/8){for(i=l(i,t,0,f(n));i.length<=e;)i.push(0);i[e]&=4294967040}else if(o>t/8){for(;i.length<=e;)i.push(0);i[e]&=4294967040}for(t=0;t<=e;t+=1)it[t]=i[t]^909522486,rt[t]=i[t]^1549556828;r=g(it,r),p=u,nt=!0},this.update=function(n){var t,e,i,f=0,o=u>>>5;for(t=tt(n,w,b),n=t.binLen,e=t.value,t=n>>>5,i=0;i<t;i+=o)f+u<=n&&(r=g(e.slice(i,i+o),r),f+=u);p+=f,w=e.slice(f>>>5),b=n%u,ut=!0},this.getHash=function(t,i){var u,c,a;if(!0===nt)throw Error("Cannot call getHash after setting HMAC key");a=h(i);switch(t){case"HEX":u=function(n){return e(n,a)};break;case"B64":u=function(n){return o(n,a)};break;case"BYTES":u=s;break;default:throw Error("format must be HEX, B64, or BYTES");}if(!1===v)for(r=l(w,b,p,r),c=1;c<y;c+=1)r=l(r,d,0,f(n));return v=!0,u(r)},this.getHMAC=function(t,i){var c,y,a;if(!1===nt)throw Error("Cannot call getHMAC without first setting HMAC key");a=h(i);switch(t){case"HEX":c=function(n){return e(n,a)};break;case"B64":c=function(n){return o(n,a)};break;case"BYTES":c=s;break;default:throw Error("outputFormat must be HEX, B64, or BYTES");}return!1===v&&(y=l(w,b,p,r),r=g(rt,f(n)),r=l(y,d,u,r)),v=!0,c(r)}}function t(n,t){this.a=n,this.b=t}function y(n,t,i){var u=n.length,r,f,e,o,s;if(t=t||[0],i=i||0,s=i>>>3,0!=u%2)throw Error("String of HEX type must be in byte increments");for(r=0;r<u;r+=2){if(f=parseInt(n.substr(r,2),16),isNaN(f))throw Error("String of HEX type contains invalid characters");for(o=(r>>>1)+s,e=o>>>2;t.length<=e;)t.push(0);t[e]|=f<<8*(3-o%4)}return{value:t,binLen:4*u+i}}function p(n,t,i){var u=[],r,o,f,e,u=t||[0];for(i=i||0,o=i>>>3,r=0;r<n.length;r+=1)t=n.charCodeAt(r),e=r+o,f=e>>>2,u.length<=f&&u.push(0),u[f]|=t<<8*(3-e%4);return{value:u,binLen:8*n.length+i}}function w(n,t,i){var o=[],s=0,f,u,r,h,e,c,o=t||[0];if(i=i||0,t=i>>>3,-1===n.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");if(u=n.indexOf("="),n=n.replace(/\=/g,""),-1!==u&&u<n.length)throw Error("Invalid '=' found in base-64 string");for(u=0;u<n.length;u+=4){for(e=n.substr(u,4),r=h=0;r<e.length;r+=1)f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e[r]),h|=f<<18-6*r;for(r=0;r<e.length-1;r+=1){for(c=s+t,f=c>>>2;o.length<=f;)o.push(0);o[f]|=(h>>>16-8*r&255)<<8*(3-c%4),s+=1}}return{value:o,binLen:8*s+i}}function e(n,t){for(var r="",f=4*n.length,u,i=0;i<f;i+=1)u=n[i>>>2]>>>8*(3-i%4),r+="0123456789abcdef".charAt(u>>>4&15)+"0123456789abcdef".charAt(u&15);return t.outputUpper?r.toUpperCase():r}function o(n,t){for(var f="",e=4*n.length,u,i,r=0;r<e;r+=3)for(i=r+1>>>2,u=n.length<=i?0:n[i],i=r+2>>>2,i=n.length<=i?0:n[i],i=(n[r>>>2]>>>8*(3-r%4)&255)<<16|(u>>>8*(3-(r+1)%4)&255)<<8|i>>>8*(3-(r+2)%4)&255,u=0;4>u;u+=1)f+=8*r+6*u<=32*n.length?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>>6*(3-u)&63):t.b64Pad;return f}function s(n){for(var i="",u=4*n.length,r,t=0;t<u;t+=1)r=n[t>>>2]>>>8*(3-t%4)&255,i+=String.fromCharCode(r);return i}function h(n){var t={outputUpper:!1,b64Pad:"="};if(n=n||{},t.outputUpper=n.outputUpper||!1,!0===n.hasOwnProperty("b64Pad")&&(t.b64Pad=n.b64Pad),"boolean"!=typeof t.outputUpper)throw Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw Error("Invalid b64Pad formatting option");return t}function c(n,t){var i;switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch(n){case"HEX":i=y;break;case"TEXT":i=function(n,i,r){var e=[],f=[],c=0,u,o,l,s,h,e=i||[0];if(i=r||0,l=i>>>3,"UTF8"===t)for(u=0;u<n.length;u+=1)for(r=n.charCodeAt(u),f=[],128>r?f.push(r):2048>r?(f.push(192|r>>>6),f.push(128|r&63)):55296>r||57344<=r?f.push(224|r>>>12,128|r>>>6&63,128|r&63):(u+=1,r=65536+((r&1023)<<10|n.charCodeAt(u)&1023),f.push(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|r&63)),o=0;o<f.length;o+=1){for(h=c+l,s=h>>>2;e.length<=s;)e.push(0);e[s]|=f[o]<<8*(3-h%4),c+=1}else if("UTF16BE"===t||"UTF16LE"===t)for(u=0;u<n.length;u+=1){for(r=n.charCodeAt(u),"UTF16LE"===t&&(o=r&255,r=o<<8|r>>>8),h=c+l,s=h>>>2;e.length<=s;)e.push(0);e[s]|=r<<8*(2-h%4),c+=2}return{value:e,binLen:8*c+i}};break;case"B64":i=w;break;case"BYTES":i=p;break;default:throw Error("format must be HEX, TEXT, B64, or BYTES");}return i}function r(n,i){var r=null,r=new t(n.a,n.b);return r=32>=i?new t(r.a>>>i|r.b<<32-i&4294967295,r.b>>>i|r.a<<32-i&4294967295):new t(r.b>>>i-32|r.a<<64-i&4294967295,r.a>>>i-32|r.b<<64-i&4294967295)}function l(n,i){var r=null;return r=32>=i?new t(n.a>>>i,n.b>>>i|n.a<<32-i&4294967295):new t(0,n.a>>>i-32)}function b(n,i,r){return new t(n.a&i.a^~n.a&r.a,n.b&i.b^~n.b&r.b)}function k(n,i,r){return new t(n.a&i.a^n.a&r.a^i.a&r.a,n.b&i.b^n.b&r.b^i.b&r.b)}function d(n){var i=r(n,28),u=r(n,34);return n=r(n,39),new t(i.a^u.a^n.a,i.b^u.b^n.b)}function g(n){var i=r(n,14),u=r(n,18);return n=r(n,41),new t(i.a^u.a^n.a,i.b^u.b^n.b)}function nt(n){var i=r(n,1),u=r(n,8);return n=l(n,7),new t(i.a^u.a^n.a,i.b^u.b^n.b)}function tt(n){var i=r(n,19),u=r(n,61);return n=l(n,6),new t(i.a^u.a^n.a,i.b^u.b^n.b)}function it(n,i){var r,u,f;return r=(n.b&65535)+(i.b&65535),u=(n.b>>>16)+(i.b>>>16)+(r>>>16),f=(u&65535)<<16|r&65535,r=(n.a&65535)+(i.a&65535)+(u>>>16),u=(n.a>>>16)+(i.a>>>16)+(r>>>16),new t((u&65535)<<16|r&65535,f)}function rt(n,i,r,u){var f,e,o;return f=(n.b&65535)+(i.b&65535)+(r.b&65535)+(u.b&65535),e=(n.b>>>16)+(i.b>>>16)+(r.b>>>16)+(u.b>>>16)+(f>>>16),o=(e&65535)<<16|f&65535,f=(n.a&65535)+(i.a&65535)+(r.a&65535)+(u.a&65535)+(e>>>16),e=(n.a>>>16)+(i.a>>>16)+(r.a>>>16)+(u.a>>>16)+(f>>>16),new t((e&65535)<<16|f&65535,o)}function ut(n,i,r,u,f){var e,o,s;return e=(n.b&65535)+(i.b&65535)+(r.b&65535)+(u.b&65535)+(f.b&65535),o=(n.b>>>16)+(i.b>>>16)+(r.b>>>16)+(u.b>>>16)+(f.b>>>16)+(e>>>16),s=(o&65535)<<16|e&65535,e=(n.a&65535)+(i.a&65535)+(r.a&65535)+(u.a&65535)+(f.a&65535)+(o>>>16),o=(n.a>>>16)+(i.a>>>16)+(r.a>>>16)+(u.a>>>16)+(f.a>>>16)+(e>>>16),new t((o&65535)<<16|e&65535,s)}function f(n){var i,r;i=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],r=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];switch(n){case"SHA-224":n=i;break;case"SHA-256":n=r;break;case"SHA-384":n=[new t(3418070365,i[0]),new t(1654270250,i[1]),new t(2438529370,i[2]),new t(355462360,i[3]),new t(1731405415,i[4]),new t(41048885895,i[5]),new t(3675008525,i[6]),new t(1203062813,i[7])];break;case"SHA-512":n=[new t(r[0],4089235720),new t(r[1],2227873595),new t(r[2],4271175723),new t(r[3],1595750129),new t(r[4],2917565137),new t(r[5],725511199),new t(r[6],4215389547),new t(r[7],327033209)];break;default:throw Error("Unknown SHA variant");}return n}function a(n,i,r){var h,c,p,s,l,a,w,y,e,ft,u,et,f,ot,st,ht,ct,lt,at,vt,yt,pt,o=[],wt;if("SHA-384"===r||"SHA-512"===r)ft=80,et=2,pt=t,f=it,ot=rt,st=ut,ht=nt,ct=tt,lt=d,at=g,yt=k,vt=b,wt=v;else throw Error("Unexpected error in SHA-2 implementation");for(r=i[0],h=i[1],c=i[2],p=i[3],s=i[4],l=i[5],a=i[6],w=i[7],u=0;u<ft;u+=1)16>u?(e=u*et,y=n.length<=e?0:n[e],e=n.length<=e+1?0:n[e+1],o[u]=new pt(y,e)):o[u]=ot(ct(o[u-2]),o[u-7],ht(o[u-15]),o[u-16]),y=st(w,at(s),vt(s,l,a),wt[u],o[u]),e=f(lt(r),yt(r,h,c)),w=a,a=l,l=s,s=f(p,y),p=c,c=h,h=r,r=f(y,e);return i[0]=f(r,i[0]),i[1]=f(h,i[1]),i[2]=f(c,i[2]),i[3]=f(p,i[3]),i[4]=f(s,i[4]),i[5]=f(l,i[5]),i[6]=f(a,i[6]),i[7]=f(w,i[7]),i}var i,v;i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],v=[new t(i[0],3609767458),new t(i[1],602891725),new t(i[2],3964484399),new t(i[3],2173295548),new t(i[4],4081628472),new t(i[5],3053834265),new t(i[6],2937671579),new t(i[7],3664609560),new t(i[8],2734883394),new t(i[9],1164996542),new t(i[10],1323610764),new t(i[11],3590304994),new t(i[12],4068182383),new t(i[13],991336113),new t(i[14],633803317),new t(i[15],3479774868),new t(i[16],2666613458),new t(i[17],944711139),new t(i[18],2341262773),new t(i[19],2007800933),new t(i[20],1495990901),new t(i[21],1856431235),new t(i[22],3175218132),new t(i[23],2198950837),new t(i[24],3999719339),new t(i[25],766784016),new t(i[26],2566594879),new t(i[27],3203337956),new t(i[28],1034457026),new t(i[29],2466948901),new t(i[30],3758326383),new t(i[31],168717936),new t(i[32],1188179964),new t(i[33],1546045734),new t(i[34],1522805485),new t(i[35],2643833823),new t(i[36],2343527390),new t(i[37],1014477480),new t(i[38],1206759142),new t(i[39],344077627),new t(i[40],1290863460),new t(i[41],3158454273),new t(i[42],3505952657),new t(i[43],106217008),new t(i[44],3606008344),new t(i[45],1432725776),new t(i[46],1467031594),new t(i[47],851169720),new t(i[48],3100823752),new t(i[49],1363258195),new t(i[50],3750685593),new t(i[51],3785050280),new t(i[52],3318307427),new t(i[53],3812723403),new t(i[54],2003034995),new t(i[55],3602036899),new t(i[56],1575990012),new t(i[57],1125592928),new t(i[58],2716904306),new t(i[59],442776044),new t(i[60],593698344),new t(i[61],3733110249),new t(i[62],2999351573),new t(i[63],3815920427),new t(3391569614,3928383900),new t(3515267271,566280711),new t(3940187606,3454069534),new t(4118630271,4000239992),new t(116418474,1914138554),new t(174292421,2731055270),new t(289380356,3203993006),new t(460393269,320620315),new t(685471733,587496836),new t(852142971,1086792851),new t(1017036298,365543100),new t(1126000580,2618297676),new t(1288033470,3409855158),new t(1501505948,4234509866),new t(1607167915,987167468),new t(1816402316,1246189591)],"function"==typeof define&&define.amd?define(function(){return u}):"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports?module.exports=exports=u:exports=u:n.jsSHA=u}(this);var byteUtils={hexChar:["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],getRandomByte:function(){var n=1/(Math.random()*Math.random()+Math.random()+1);return Math.floor(n*255)},getRandomBytes:function(n){var i,t;if(typeof window.crypto!="undefined")return this.getCryptoRandomBytes(n);for(i=new Array(n),t=0;t<n;t++)i[t]=this.getRandomByte();return i},getCryptoRandomBytes:function(n){var t=new Uint8Array(n),i;return window.crypto.getRandomValues(t),i=[].slice.call(t)},getRandomByteHEX:function(){return this.byteToHex(this.getRandomByte())},getRandomBytesHEX:function(n){return byteUtils.bytesToHex(this.getRandomBytes(n))},getCryptoRandomBytesHEX:function(n){return byteUtils.bytesToHex(this.getCryptoRandomBytes(n))},xorHEX:function(n,t){for(var r="",i=0;i<n.length;i+=2)r+=this.byteToHex(this.hex2byte(n[i]+n[i+1])^this.hex2byte(t[i]+t[i+1]));return r},byteToHex:function(n){return this.hexChar[n>>4&15]+this.hexChar[n&15]},bytesToHex:function(n){for(var i="",t=0;t<n.length;t++)i=i+this.byteToHex(n[t]);return i},hex2byte:function(n){return parseInt(n,16)},hex2bytes:function(n){for(var t=[];n.length>=2;)t.push(this.hex2byte(n.substring(0,2))),n=n.substring(2,n.length);return t},int2bytes:function(n){return""+this.byteToHex(n>>24&255)+this.byteToHex(n>>16&255)+this.byteToHex(n>>8&255)+this.byteToHex(n&255)},wordArrayToBytes:function(n){for(var f=n.words,i=n.sigBytes,r=new Uint8Array(i),u,t=0;t<i;t++)u=f[t>>>2]>>>24-t%4*8&255,r[t]=u;return r},getRandomInt:function(){if(typeof window.crypto!="undefined"){var n=new Int32Array(1);return window.crypto.getRandomValues(n),Math.abs(Math.floor(n[0]))}return Math.floor(Math.random()*INT_MAX)},getRandomIntBounded:function(n,t){if(n>=t)throw"Минимальное значение должно быть строго меньше максимального";var i=this.getRandomInt();return Math.floor((t-n)/INT_MAX*i+n)}},INT_MAX=2147483647,Auth={INT_ONE:"00000001",CLIENT_KEY_STR:"",SERVER_KEY_STR:"",hashType:"SHA-512",exports:{saltedPassword:"",authMessage:"",clientProof:""},init:function(n,t){this.CLIENT_KEY_STR=n,this.SERVER_KEY_STR=t},hi:function(n,t,i){for(var e=t+Auth.INT_ONE,r=this.getHmac(n,"HEX",e,"HEX"),u=r,f=1;f<i;f++)u=this.getHmac(n,"HEX",u,"HEX"),r=byteUtils.xorHEX(r,u);return r},"getnonсeC":function(){return byteUtils.getRandomBytesHEX(32)},getSalt:function(){return byteUtils.getRandomBytesHEX(32)},getIterationCount:function(){return byteUtils.getRandomIntBounded(4096,5e3)},getAuthMessage:function(n,t,i,r,u){for(var e="",f=0;f<n.length;f++)e+=byteUtils.byteToHex(n.charCodeAt(f));for(e+=t,e+=i,e+=byteUtils.int2bytes(r),f=0;f<u.length;f++)e+=byteUtils.byteToHex(u.charCodeAt(f));return e},getClientProof:function(n,t,i,r,u,f){var e,o,s;return this.exports.saltedPassword=this.hi(t,i,r),e=this.getHmac(this.exports.saltedPassword,"HEX",this.CLIENT_KEY_STR,"HEX"),o=this.getHash(e),this.exports.authMessage=this.getAuthMessage(n,u,i,r,f),s=this.getHmac(o,"HEX",this.exports.authMessage,"HEX"),this.exports.clientProof=byteUtils.xorHEX(e,s)},checkServerSignature:function(n){var t=this.getHmac(this.exports.saltedPassword,"HEX",this.SERVER_KEY_STR,"HEX"),i=this.getHmac(t,"HEX",this.exports.authMessage,"HEX");return i==n},getMd5Hash:function(n){return CryptoJS.MD5(n).toString()},getHash:function(n){var t=new jsSHA(this.hashType,"HEX");return t.update(n),t.getHash("HEX")},getHmac:function(n,t,i,r){var u=new jsSHA(this.hashType,r);return u.setHMACKey(n,t),u.update(i),u.getHMAC("HEX")},getHMacHex:function(n,t){var i=new jsSHA(this.hashType,"TEXT");return i.setHMACKey(n,"HEX"),i.update(t),i.getHMAC("HEX")},getHMacHexHex:function(n,t){var i=new jsSHA(this.hashType,"HEX");return i.setHMACKey(n,"HEX"),i.update(t),i.getHMAC("HEX")}};OperTimeOut=function(n){var t=this;t.timeout=300,t.timer=$("#"+n),t.ShowTimeOut=function(){var i=Math.floor(t.timeout/60%60),n=Math.floor(t.timeout%60);t.timer.html(i+":"+(n<10?"0"+n:n)),t.timeout<=0&&clearInterval(t.interval),t.timeout--},t.interval=window.setInterval(t.ShowTimeOut,1e3)},$(function(){var t=navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1),n;$(".showCookie").click(function(){$("ol").toggle(),$(".hide").show(),$(".p_cookie").hide()}),$(".hideCookie").click(function(){$("ol").toggle(),$(".hide").hide(),$(".p_cookie").show()});$(document).on("keypress","input.card_number",function(n){var t=n.charCode?n.charCode:n.which;return!(t!=8&&t!=0&&(t<48||t>57))});$(document).on("keypress","input.field_login",function(n){var t=String.fromCharCode(n.charCode?n.charCode:n.which),i=$(this).closest(".field").find(".error__message").attr("id"),u=t.toUpperCase()===t&&t.toLowerCase()!==t&&!n.shiftKey,r=/[а-яА-ЯЁё]/g.test(t);return u||r?u?ShowTextWarning(i,"Включен CAPS LOCK"):r&&ShowTextWarning(i,"Переключить клавиатуру на английский язык"):HideWarning(i),!r});$(".code_refresh").on("click",function(){window.location=$(this).next("a").attr("href")});$(".field-pswd").on("keypress",function(n){var i=$(this).closest(".field").find(".error__message").attr("id"),t=String.fromCharCode(n.charCode?n.charCode:n.which);t.toUpperCase()!==t||t.toLowerCase()===t||n.shiftKey?HideWarning(i):ShowTextWarning(i,"Включен CAPS LOCK")});$("#fieldCard, #fieldCardFp").mask("9999-9999-9999-9999",{onincomplete:function(){$(this).val("")},placeholder:" "}),$(".code_change").each(function(){$(this).find("a").length&&$(this).show()});$("a").on("click",function(){$(this).is("[disabled]")&&event.preventDefault()});n=new OperTimeOut("smsTimeOut"),document.msCapsLockWarningOff=!0,$(document).ready(function(){setTimeout(function(){var n=$(".main__content").height();$(".block-disabled").height(n-50)},2e3)})}),loginProcess=!1,$(function(){$("#divHideFirst").on("click",function(){SlideAdvices($("#divFirstBlock"),$("#divHideFirst"))});$("#divHideSecond").on("click",function(){SlideAdvices($("#divSecondBlock"),$("#divHideSecond"))});window.innerHeight<700&&$(".dialog").css({position:"absolute"}),clearCookie(),$(document).keypress(function(n){$("#registrationBlockId").is(":visible")&&n.which==13&&($("#btnNextLink").is(":visible")&&!$("#btnNextLink").hasClass("disable")&&$("#btnNextLink").click(),n.preventDefault())}),$("#"+PageConfig.TxtPasswordID).keypress(function(n){if(n.keyCode!=13)return pwdKeyPress(n,PageConfig.BtnLoginStandardID)}),window.devicePixelRatio&&window.devicePixelRatio>1&&retinaSupport(),$("#errMessage:visible").length>0&&$("#txtLogin, #txtPassword").addClass("border-red"),$("#errMessageCode:visible").length>0&&$("#txtCode, #tbTableCode").addClass("border-red"),wfp(),hideLoginLoader(),$(document).keydown(function(n){switch(n.keyCode){case 13:return $("#registrationBlockId").is(":visible")?($("#btnNextLink").click(),!1):$("#forgotPasswordBlockLineId").is(":visible")?($("#btnNextLinkFp").is(":visible")&&!$("#btnNextLinkFp").hasClass("disable")&&$("#btnNextLinkFp").click(),!1):$("#btnLoginStandard").length>0?handleLoginClick():$("#btnLoginSMS").is(":visible")?($("#btnLoginSMS").click(),!1):$("#btnLoginTable").is(":visible")?($("#btnLoginTable").click(),!1):!0;case 27:$("#registrationBlockId").is(":visible")?$("#closeButtonId").click():$("#forgotPasswordBlockLineId").is(":visible")&&$("#closeButtonFpId").click()}})}),$.cookie=function(n,t,i){var f,r,e,o,u,s;if(typeof t!="undefined"){i=i||{},t===null&&(t="",i.expires=-1),f="",i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)&&(typeof i.expires=="number"?(r=new Date,r.setTime(r.getTime()+i.expires*864e5)):r=i.expires,f="; expires="+r.toUTCString());var h=i.path?"; path="+i.path:"",c=i.domain?"; domain="+i.domain:"",l=i.secure?"; secure":"";document.cookie=[n,"=",encodeURIComponent(t),f,h,c,l].join("")}else{if(e=null,document.cookie&&document.cookie!="")for(o=document.cookie.split(";"),u=0;u<o.length;u++)if(s=jQuery.trim(o[u]),s.substring(0,n.length+1)==n+"="){e=decodeURIComponent(s.substring(n.length+1));break}return e}},mkbo=new function(){var n="application/json; charset=utf-8";this.ajax=function(t,i,r){return $.ajax({type:"POST",url:t,data:i,contentType:n,dataType:"json",success:r})},this.ajax_async=function(t,i,r,u){return $.ajax({type:"POST",async:!0,url:t,data:i,contentType:n,dataType:"json",success:r,error:u})},this.ajax_sync=function(t,i,r,u){return $.ajax({type:"POST",async:!1,url:t,data:i,contentType:n,dataType:"json",success:r,error:u})}},PasswordVars={digits:"0123456789",latinLower:"abcdefghijklmnopqrstuvwxyz",latinUpper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ","specСhars":"~`!@№$;%^:&?*()-_+=[{]}|\\'\",."},PasswordValidator=function(n){var t=n.userName,i=n.pwdConfirm,v=n.isChange||!1,y=n.oldPassword,r=9,u=256,p=this,f=0,e=1,o=2,s=3,h=4,c=5,l=6,a=7;this.fullValidate=function(n){return n==null||n.trim()==""?e:n.length<r?o:n.length>u?s:i!=null&&n!=i?h:v&&y.isNullOrEmpty()?a:t!=null&&n.toUpperCase()==t.toUpperCase()?c:p.validate(n)},this.validate=function(n){var u=PasswordVars.digits+PasswordVars.latinLower+PasswordVars.latinUpper+PasswordVars.specСhars,r=n.toCharArray(),i=r.length>=9;return(i=i&&r.all(function(n){return u.contains(n)}),i=i&&r.any(function(n){return PasswordVars.latinLower.contains(n)}),i=i&&r.any(function(n){return PasswordVars.latinUpper.contains(n)}),i=i&&n!=t,!i)?l:f},this.getMessage=function(n){switch(n){case f:return"";case e:return"Введите пароль";case o:return"Длина пароля должна быть не менее "+r+" символов.";case s:return"Длина пароля превышает допустимые "+u+" символов";case h:return"Введенный пароль и подтверждение не совпадают";case c:return"Введенный пароль совпадает с логином";case a:return"Не указан старый пароль";case l:return"Введеный пароль не соответствует требованиям безопасности";default:return"Неизвестная ошибка"}}},function(){function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}},t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}return n}()({1:[function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function r(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 f(n,t,i){return t&&r(n.prototype,t),i&&r(n,i),n}Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var e=function(){function n(){u(this,n)}return f(n,null,[{key:"getCookieExpiresString",value:function(n){var t=new Date,i=new Date(t.getTime()+n);return"expires=".concat(i.toGMTString(),";")}},{key:"bake",value:function(t,i){document.cookie="smartbanner_exited=1; ".concat(t?n.getCookieExpiresString(t):""," path=").concat(i)}},{key:"unbake",value:function(){document.cookie="smartbanner_exited=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"}},{key:"baked",get:function(){var n=document.cookie.replace(/(?:(?:^|.*;\s*)smartbanner_exited\s*=\s*([^;]*).*$)|^.*$/,"$1");return n==="1"}}]),n}();i["default"]=e},{}],2:[function(n,t,i){(function(n){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function t(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 u(n,i,r){return i&&t(n.prototype,i),r&&t(n,r),n}Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var f=function(){function t(){r(this,t)}return u(t,null,[{key:"platform",value:function(){return/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":void 0}},{key:"userAgentMatchesRegex",value:function(n){return new RegExp(n).test(window.navigator.userAgent)}},{key:"jQueryMobilePage",value:function(){return typeof n.$!="undefined"&&n.$.mobile!=="undefined"&&document.querySelector(".ui-page")!==null}},{key:"wrapperElement",value:function(){var n=t.jQueryMobilePage()?".ui-page":"html";return document.querySelectorAll(n)}}]),t}();i["default"]=f}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],3:[function(n){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}var u=f(n("./smartbanner.js")),r;window.addEventListener("load",function(){r=new u["default"],r.apiEnabled?window.smartbanner=r:r.publish()})},{"./smartbanner.js":5}],4:[function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function r(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 f(n,t,i){return t&&r(n.prototype,t),i&&r(n,i),n}function e(n){return n.indexOf("smartbanner:")!==-1&&n.split(":")[1].length>0}function o(n){var t=n.split("-");return t.map(function(n,i){i>0&&(t[i]=n.charAt(0).toUpperCase()+n.substring(1))}),t.join("")}Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var s=function(){function n(){u(this,n)}return f(n,[{key:"parse",value:function(){var t=document.getElementsByTagName("meta"),n={};return Array.apply(null,t).forEach(function(t){var i=null,r=t.getAttribute("name"),u=t.getAttribute("content");r&&u&&e(r)&&u.length>0&&(i=r.split(":")[1],i.indexOf("-")!==-1&&(i=o(i)),n[i]=u)}),n}}]),n}();i["default"]=s},{}],5:[function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(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 v(n,t,i){return t&&o(n.prototype,t),i&&o(n,i),n}function w(n,t){t.exit(),n.preventDefault()}function b(n,t){t.clickout()}function s(n){this.positioningDisabled||h(n.data.height)}function k(n){var i=document.querySelector(".js_smartbanner__exit"),t;if(i.addEventListener("click",function(t){return w(t,n)}),t=document.querySelector(".js_smartbanner__button"),t.addEventListener("click",function(t){return b(t,n)}),r["default"].jQueryMobilePage())$(document).on("pagebeforeshow",n,s)}function d(){r["default"].jQueryMobilePage()&&$(document).off("pagebeforeshow",s)}function h(n){for(var o=r["default"].wrapperElement(),t,f,e,i=0,s=o.length;i<s;i++)if(t=o[i],r["default"].jQueryMobilePage()){if(t.getAttribute(u.originalTop))continue;f=parseFloat(getComputedStyle(t).top),t.setAttribute(u.originalTop,isNaN(f)?0:f),t.style.top=n+"px"}else{if(t.getAttribute(u.originalMarginTop))continue;e=parseFloat(getComputedStyle(t).marginTop),t.setAttribute(u.originalMarginTop,isNaN(e)?0:e),t.style.marginTop=n+"px"}}function g(){for(var i=r["default"].wrapperElement(),n,t=0,f=i.length;t<f;t++)n=i[t],r["default"].jQueryMobilePage()&&n.getAttribute(u.originalTop)?n.style.top=n.getAttribute(u.originalTop)+"px":n.getAttribute(u.originalMarginTop)&&(n.style.marginTop=n.getAttribute(u.originalMarginTop)+"px")}var c;Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var l=f(n("./optionparser.js")),r=f(n("./detector.js")),e=f(n("./bakery.js"));var y="android,ios",p="Close",u={originalTop:"data-smartbanner-original-top",originalMarginTop:"data-smartbanner-original-margin-top"};c=function(){function n(){a(this,n);var t=new l["default"];this.options=t.parse(),this.platform=r["default"].platform()}return v(n,[{key:"publish",value:function(){var n,t;if(Object.keys(this.options).length===0)throw new Error("No options detected. Please consult documentation.");if(e["default"].baked||this.userAgentExcluded||!(this.platformEnabled||this.userAgentIncluded))return!1;n=document.createElement("div"),document.querySelector("body").appendChild(n),n.outerHTML=this.html,t=new Event("smartbanner.view"),document.dispatchEvent(t),this.positioningDisabled||h(this.height),k(this)}},{key:"exit",value:function(){var n,t;d(),this.positioningDisabled||g(),n=document.querySelector(".js_smartbanner"),document.querySelector("body").removeChild(n),t=new Event("smartbanner.exit"),document.dispatchEvent(t),e["default"].bake(this.hideTtl,this.hidePath)}},{key:"clickout",value:function(){var n=new Event("smartbanner.clickout");document.dispatchEvent(n)}},{key:"originalTop",get:function(){var n=r["default"].wrapperElement()[0];return parseFloat(n.getAttribute(u.originalTop))}},{key:"originalTopMargin",get:function(){var n=r["default"].wrapperElement()[0];return parseFloat(n.getAttribute(u.originalMarginTop))}},{key:"priceSuffix",get:function(){return this.platform==="ios"?this.options.priceSuffixApple:this.platform==="android"?this.options.priceSuffixGoogle:""}},{key:"icon",get:function(){return this.platform==="android"?this.options.iconGoogle:this.options.iconApple}},{key:"buttonUrl",get:function(){return this.platform==="android"?this.options.buttonUrlGoogle:this.platform==="ios"?this.options.buttonUrlApple:"#"}},{key:"closeLabel",get:function(){return this.options.closeLabel!==undefined?this.options.closeLabel:p}},{key:"html",get:function(){var n=this.options.customDesignModifier?this.options.customDesignModifier:this.platform;return'<div class="smartbanner smartbanner--'.concat(n,' js_smartbanner">\n      <a href="javascript:void();" class="smartbanner__exit js_smartbanner__exit" aria-label="').concat(this.closeLabel,'"><\/a>\n      <div class="smartbanner__icon" style="background-image: url(').concat(this.icon,');"><\/div>\n      <div class="smartbanner__info">\n        <div>\n          <div class="smartbanner__info__title">').concat(this.options.title,'<\/div>\n          <div class="smartbanner__info__author">').concat(this.options.author,'<\/div>\n          <div class="smartbanner__info__price">').concat(this.options.price).concat(this.priceSuffix,'<\/div>\n        <\/div>\n      <\/div>\n      <a href="').concat(this.buttonUrl,'" target="_blank" class="smartbanner__button js_smartbanner__button" rel="noopener" aria-label="').concat(this.options.button,'"><span class="smartbanner__button__label">').concat(this.options.button,"<\/span><\/a>\n    <\/div>")}},{key:"height",get:function(){try{return document.querySelector(".js_smartbanner").offsetHeight}catch(n){return 0}}},{key:"platformEnabled",get:function(){var n=this.options.enabledPlatforms||y;return n&&n.replace(/\s+/g,"").split(",").indexOf(this.platform)!==-1}},{key:"positioningDisabled",get:function(){return this.options.disablePositioning==="true"}},{key:"apiEnabled",get:function(){return this.options.api==="true"}},{key:"userAgentExcluded",get:function(){return this.options.excludeUserAgentRegex?r["default"].userAgentMatchesRegex(this.options.excludeUserAgentRegex):!1}},{key:"userAgentIncluded",get:function(){return this.options.includeUserAgentRegex?r["default"].userAgentMatchesRegex(this.options.includeUserAgentRegex):!1}},{key:"hideTtl",get:function(){return this.options.hideTtl?parseInt(this.options.hideTtl):!1}},{key:"hidePath",get:function(){return this.options.hidePath?this.options.hidePath:"/"}}]),n}(),i["default"]=c},{"./bakery.js":1,"./detector.js":2,"./optionparser.js":4}]},{},[3]),secregister=!1,$(document).ready(function(){function n(n){var t=0,r,i;if(n||(n=window.event),n.cancelBubble?n.cancelBubble=!0:n.stopPropagation(),r=n.srcElement?n.srcElement:n.target,n.which)t=n.which;else if(n.keyCode)t=n.keyCode;else if(n.charCode)t=n.charCode;else return!0;return n.charCode&&n.charCode==0?!0:n.modifiers&&(n.modifiers==n.ALT_MASK||n.modifiers==n.CONTROL_MASK||n.modifiers==n.META_MASK)?!0:n.ctrlKey||n.altKey?!0:t==8&&r.value==""?(r.id=="fieldCard4"&&(i=document.getElementById("fieldCard3")),r.id=="fieldCard3"&&(i=document.getElementById("fieldCard2")),r.id=="fieldCard2"&&(i=document.getElementById("fieldCard1")),i)?(i.focus(),i.value=i.value.slice(0,-1),n.preventDefault&&n.preventDefault(),n.returnValue&&(n.returnValue=!1),!1):!0:t<32||t==35||t==36||t==37||t==39||t==45||t==46||t==144?!0:t>=48&&t<=57||t>=96&&t<=105?(r.id=="fieldCard1"&&r.value.length==4&&(i=document.getElementById("fieldCard2")),r.id=="fieldCard2"&&r.value.length==4&&(i=document.getElementById("fieldCard3")),r.id=="fieldCard3"&&r.value.length==4&&(i=document.getElementById("fieldCard4")),i&&i.value=="")?(i.focus(),t>=96&&t<=105&&(t-=48),i.value=String.fromCharCode(t),n.preventDefault&&n.preventDefault(),n.returnValue&&(n.returnValue=!1),!1):!0:(n.preventDefault&&n.preventDefault(),n.returnValue&&(n.returnValue=!1),!1)}PageConfig.IsRegistrationEnabled&&PreLoader(),$("#btnEnd").click(function(){PreLoader(),Clear()}),$("#fieldCard1").keydown(n),$("#fieldCard2").keydown(n),$("#fieldCard3").keydown(n),$("#fieldCard4").keydown(n),$("#btnNextLink").click(function(){var n,t;if(!$(this).hasClass("disable")){if($("#firstStep:visible").length>0){PrepareStart(),setTimeout(function(){PrepareEnd(),$(".step").hide(),$("#secondStep").show(),setRegText("Регистрация в МКБ Онлайн","Продолжить")},100);return}if($("#secondStep:visible").length>0){if($("#registrationBlockId .errorCard").text("").hide(),HideError("reglogin1_error"),HideError("reglogin2_error"),!$("#fieldUsername").val()){ShowTextError("reglogin1_error","Логин не введен"),CaptchaReset();return}if($("#fieldUsername").val()!=$("#fieldUsername2").val()){ShowTextError("reglogin2_error","Введенные логины различаются"),CaptchaReset();return}if(!$("#tbxCaptR").val()){$("#secondStepError").show().text("Не указан код с картинки");return}if(!$("#confirmButton:checked").length){$("#secondStepError").show().text("Подтвердите согласие с ДКБО");return}PrepareStart(),setTimeout(function(){var t=!1,n=$("#fieldCard1").val()+$("#fieldCard2").val()+$("#fieldCard3").val()+$("#fieldCard4").val();n=n?n:$("#fieldCard").val().replace(/[^0-9\.]+/g,""),mkbo.ajax_sync("/Public/UtilSvc.asmx/Check","{cardNumber:'"+n+"',username:'"+$("#fieldUsername").val()+"',captcha:'"+$("#tbxCaptR").val()+"'}",function(n){PrepareEnd();var i=$.parseJSON(n.d);i.Result?($("#resultId").val(i.Id),$("#registrationBlockId .step").hide(),$("#thirdStep").show(),$("#registrationBlockId").find(".tabs__opener").filter("[data-tab='createaccount']").trigger("click",!0),setRegText("Подтверждение регистрации","Перейти к установке пароля"),t=!0,$("#txtLogin").val($("#fieldUsername").val())):($("#txtLogin").val(null),(i.Type=="card"||i.Type=="login"||i.Type=="captcha")&&$("#secondStepError").show().html(i.Message))}),CaptchaReset(),t&&mkbo.ajax_sync("/Public/UtilSvc.asmx/GetConfirmInfo","{registrationId:'"+$("#resultId").val()+"'}",function(n){var t=$.parseJSON(n.d);$("#maskPhone").text(t.phone),$("#sendSms").hide()})},100);return}if($("#thirdStep:visible").length>0){if($("#sendSms").hide(),HideError("regsmscode_error"),!$("#codeResultCheck").val()){ShowTextError("regsmscode_error","Код подтверждения не введен");return}PrepareStart(),setTimeout(function(){mkbo.ajax_sync("/Public/UtilSvc.asmx/ValidCode","{secureCode:'"+$("#codeResultCheck").val()+"', registrationId:'"+$("#resultId").val()+"'}",function(n){PrepareEnd();var t=$.parseJSON(n.d);t.Result?($("#registrationBlockId .step").hide(),$("#fourthStep").show(),$("#registrationBlockId").find(".tabs__opener").filter("[data-tab='sendsms']").trigger("click",!0),setRegText("Конфиденциальная информация","Сохранить")):($("#secureCodeError").show().text(t.Message),$("#sendSms").show())})},100);return}if($("#fourthStep:visible").length>0){if($("#fourthStepError").hide(),HideError("regpswd1_error"),HideError("regpswd2_error"),n=$("#password").val(),t=$("#passwordConfirm").val(),!n){ShowTextError("regpswd1_error","Пароль не введен"),CaptchaReset();return}if(n!=t){ShowTextError("regpswd2_error","Введенные пароли различаются"),CaptchaReset();return}var i=$('input[name="fingerprint"]').val(),r=$("#resultId").val(),u={passwd:n,passwdCompare:t,registrationId:r,salt:null,sp:null,ic:null,fp:i||null};if(PrepareStart(),secregister){var h=$("#fieldUsername").val(),f=new PasswordValidator({userName:h,pwdConfirm:t}),e=f.fullValidate(n);if(e!=0){$("#fourthStepError").show().text(f.getMessage(e)),PrepareEnd();return}var c=Auth.getMd5Hash($("#password").val()),o=Auth.getSalt(),s=Auth.getIterationCount(),l=Auth.hi(c,o,s);u={passwd:null,passwdCompare:null,registrationId:r,salt:o,sp:l,ic:s,fp:i||null}}setTimeout(function(){mkbo.ajax_sync("/Public/UtilSvc.asmx/CreateUser",JSON.stringify(u),function(t){PrepareEnd();var i=$.parseJSON(t.d);i.Result?($("#registrationBlockId .step, #btnNextLink").hide(),$("#fiveStep").show(),setRegText("Завершение регистрации"),$("#txtPassword").val(n),handleLoginClick()):($("#fourthStepError").show().text(i.Message),$("#txtPassword").val(null))},function(){$("#fourthStepError").show().text("Произошла ошибка запроса. Повторите попытку позднее."),PrepareEnd()})},100);return}}}),$("#closeButtonId").click(function(){PreLoader(),Clear()}),$("#confirmButton").change(function(){$("#confirmButton").is(":checked")?$("#btnNextLink").removeClass("disable"):$("#btnNextLink").addClass("disable")}),$("#sendSmsA").click(function(){$("#secureCodeError").text(""),mkbo.ajax_sync("/Public/UtilSvc.asmx/SendSecondSms","{registrationId:'"+$("#resultId").val()+"'}",function(n){var t=$.parseJSON(n.d);t.Result||$("#secureCodeError").text(t.Message),$("#sendSms").hide()})}),$("#regButton").click(function(){PageConfig.IsRegistrationEnabled?Loader():alert("Регистрация в МКБ Онлайн временно закрыта!")}),$("#aRefresh").click(function(){CaptchaReset()})}),secforgotp=!1,$(document).ready(function(){function t(n){var t=0,r,i;if(n||(n=window.event),n.cancelBubble?n.cancelBubble=!0:n.stopPropagation(),r=n.srcElement?n.srcElement:n.target,n.which)t=n.which;else if(n.keyCode)t=n.keyCode;else if(n.charCode)t=n.charCode;else return!0;return n.charCode&&n.charCode==0?!0:n.modifiers&&(n.modifiers==n.ALT_MASK||n.modifiers==n.CONTROL_MASK||n.modifiers==n.META_MASK)?!0:n.ctrlKey||n.altKey?!0:t==8&&r.value==""?(r.id=="fieldCardFp4"&&(i=document.getElementById("fieldCardFp3")),r.id=="fieldCardFp3"&&(i=document.getElementById("fieldCardFp2")),r.id=="fieldCardFp2"&&(i=document.getElementById("fieldCardFp1")),i)?(i.focus(),i.value=i.value.slice(0,-1),n.preventDefault&&n.preventDefault(),n.returnValue&&(n.returnValue=!1),!1):!0:t<32||t==35||t==36||t==37||t==39||t==45||t==46||t==144?!0:t>=48&&t<=57||t>=96&&t<=105?(r.id=="fieldCardFp1"&&r.value.length==4&&(i=document.getElementById("fieldCardFp2")),r.id=="fieldCardFp2"&&r.value.length==4&&(i=document.getElementById("fieldCardFp3")),r.id=="fieldCardFp3"&&r.value.length==4&&(i=document.getElementById("fieldCardFp4")),i&&i.value=="")?(i.focus(),t>=96&&t<=105&&(t-=48),i.value=String.fromCharCode(t),n.preventDefault&&n.preventDefault(),n.returnValue&&(n.returnValue=!1),!1):!0:(n.preventDefault&&n.preventDefault(),n.returnValue&&(n.returnValue=!1),!1)}PageConfig.IsForgotPasswordEnabled&&PreLoaderForgotPasswd(),$("#buttonForgotPasswd").click(function(){PageConfig.IsForgotPasswordEnabled?LoaderForgotPasswd():alert("Восстановление доступа в МКБ Онлайн временно закрыто!")}),$("#closeButtonFpId").click(function(){PreLoaderForgotPasswd(),ClearForgotPasswd()}),$("#btnEndFp").click(function(){PreLoaderForgotPasswd(),ClearForgotPasswd()}),$("#fieldCardFp1").keydown(t),$("#fieldCardFp2").keydown(t),$("#fieldCardFp3").keydown(t),$("#fieldCardFp4").keydown(t);var i=null,n=!1;$("#btnNextLinkFp").click(function(){var t,r,f,e;if(!n){if(n=!0,PrepareStartForgotPasswd(),$("#forgotPasswordBlockId .error").text("").hide(),t=$("#fieldCardFp1").val()+$("#fieldCardFp2").val()+$("#fieldCardFp3").val()+$("#fieldCardFp4").val(),t=t?t:$("#fieldCardFp").val().replace(/[^0-9\.]+/g,""),$("#secondStepFp:visible").length>0){if(!$("#tbxCaptFp").val()){$("#errorFpCard").show().text("Не указан код с картинки"),PrepareEndForgotPasswd(),n=!1;return}r=!1,setTimeout(function(){mkbo.ajax_sync("/Public/UtilSvc.asmx/CheckForgotPassword","{cardNumber:'"+t+"',captcha:'"+$("#tbxCaptFp").val()+"'}",function(n){PrepareEndForgotPasswd();var t=$.parseJSON(n.d);t.Result?($("#resultFpId").val(t.Id),$("#forgotPasswordBlockId .step").hide(),$("#fourthStepFp").show(),r=!0):(t.Type=="card"||t.Type=="captcha")&&$("#errorFpCard").show().text(t.Message)}),CaptchaResetFp(),r&&mkbo.ajax_sync("/Public/UtilSvc.asmx/GetForgotPasswordConfirmInfo","{forgotPasswordId:'"+$("#resultFpId").val()+"'}",function(n){var t=$.parseJSON(n.d);$("#maskPhoneFp").text(t.phone),$("#sendSmsFpA").hide()})},100),n=!1;return}if($("#fourthStepFp:visible").length>0){$("#sendSmsFpA").hide(),setTimeout(function(){mkbo.ajax_sync("/Public/UtilSvc.asmx/ValidCodeForgotPassword","{secureCode:'"+$("#codeResultCheckFp").val()+"',cardNumber:'"+t+"',forgotPasswordId:'"+$("#resultFpId").val()+"'}",function(n){PrepareEndForgotPasswd();var t=$.parseJSON(n.d);t.Result?(i=t.Message,$("#forgotPasswordBlockId .step").hide(),$("#fiveStepFp").show()):($("#secureCodeErrorFp").show().text(t.Message),$("#sendSmsFpA").show())})},100),n=!1;return}if($("#fiveStepFp:visible").length>0){var o=$("#resultFpId").val(),u=$("#passwordFp").val(),s=$("#passwordConfirmFp").val(),h=$("#txtDate").val(),c=$('input[name="fingerprint"]').val(),l={passwd:u,passwdCompare:s,forgotPasswordId:o,salt:null,sp:null,ic:null,birthDate:h,fp:c||null};if(secforgotp){if(f=new PasswordValidator({userName:i,pwdConfirm:s}),e=f.fullValidate(u),e!=0){$("#errorFpConfirm").show().text(f.getMessage(e)),PrepareEndForgotPasswd(),n=!1;return}var a=Auth.getIterationCount(),v=Auth.getSalt(),y=Auth.getMd5Hash(u);l={passwd:null,passwdCompare:null,forgotPasswordId:o,salt:v,sp:Auth.hi(y,v,a),ic:a,birthDate:h,fp:c||null}}setTimeout(function(){mkbo.ajax_sync("/Public/UtilSvc.asmx/ConfirmPassword",JSON.stringify(l),function(n){PrepareEndForgotPasswd();var t=$.parseJSON(n.d);t.Result?($("#forgotPasswordBlockId .step,#btnNextLinkFp").hide(),$("#sixStepFp").show()):$("#errorFpConfirm").show().text(t.Message)},function(){})},100),n=!1;return}}}),$("#sendSmsFpA").click(function(){$("#secureCodeErrorFp").hide().text(""),mkbo.ajax_sync("/Public/UtilSvc.asmx/SendSecondSmsForgotPassword","{forgotPasswordId:'"+$("#resultFpId").val()+"'}",function(n){var t=$.parseJSON(n.d);t.Result||$("#secureCodeErrorFp").show().text(t.Message),$("#sendSmsFpA").hide(),$("#phProtectCode").hide()})}),$("#aRefreshFp").click(function(){CaptchaResetFp()}),$(".datepicker").mask&&$(".datepicker").mask("99.99.9999"),$("#passwordFp").keypress(function(n){if(n.which==60||n.which==62)return alert('Символы "<" и ">" запрещены для ввода.'),!1}),$("#passwordFp").change(function(){return this.value.indexOf(">")>-1||this.value.indexOf("<")>-1||this.value.indexOf("#")>-1?(alert('Символы "<", ">" и "#" запрещены для ввода.'),this.value="",!1):!0})})