var attachArrowKeyListerner=function(){var b=$(window);var a=function(d){var c=d.offset().top-b.scrollTop();
if(c<0||c>b.height()){b.scrollTop(d.offset().top-20)}};$(document).keypress(function(e){if($("#query-builder-container").is(":visible")||$("input:focus").length>0){return
}var c=$(".selected-row");if(e.keyCode==38){var g=c.prev("tr");if(g.length>0&&g.attr("id")!="selectAllStatus"){c.removeClass("selected-row");
g.addClass("selected-row");a(g)}e.preventDefault()}else{if(e.keyCode==40){var d=c.next("tr");
if(d.length>0){c.removeClass("selected-row");d.addClass("selected-row");a(d)}e.preventDefault()
}else{if(e.keyCode==10||e.keyCode==13){if(!c.hasClass("noEnter")){window.location.href=c.attr("id");
e.preventDefault()}}else{if(e.which==32){var f=c.find("input[type=checkbox]");f.click();
e.preventDefault()}}}}})};var defColumns={uniprot:"id,entry name,reviewed,protein names,genes,organism,length",uniparc:"id,organisms,kb,first-seen,last-seen,length",uniref:"id,reviewed,name,count,members,organisms,length,identity",proteomes:"id,name,organism-id,protein_count,busco,cpd,assembly_representation"};
var cookieNames={longColumns:"-longColumns4",viewColumns:"-view-columns4",cart:"cart4",basket:"basket4",blastOptions:"blast-options4",allSelected:"allSelected4",jobNames:"jobs4",columns:"-columns4",javaScriptLoaded:"javaScriptLoaded4",uploadListColumns:"-columns4",resultsDownload:"-results-download4",helpBox:"-help4",limit:"limit4",peptideSearchOptions:"peptidesearch-options4",uploadOptions:"upload-options4",sectionsView:"-sections-view4",privacy:"uniprot-privacy-policy"};
var uniprot={};var __bind=function(a,b){return function(){return a.apply(b,arguments)
}};String.prototype.replaceAll=function(b,a){return this.replace(new RegExp(b,"g"),a)
};String.prototype.startsWith=function(a){return(this.indexOf(a)==0)};String.prototype.endsWith=function(a){return(this.indexOf(a)===(a.length-1))
};uniprot.IframeOnload=function(b){var a=function(){var d=b.contentDocument.body;
var c=d.firstChild.getBoundingClientRect();var e=d.querySelector(".interaction-tooltip").getBoundingClientRect();
b.style.height=(Math.max(c.height,e.bottom)+20)+"px";b.style.width=(Math.max(c.right,e.right)+20)+"px"
};setTimeout(a,500);setTimeout(a,2000);setTimeout(a,4000);setTimeout(a,8000);b.contentDocument.addEventListener("click",function(){setTimeout(a,200)
})};uniprot.protVistaIframeLoad=function(c){window.pv=c;var a=function(){var e=c.contentDocument.body;
var d=e.querySelector(":nth-child(2)").getBoundingClientRect();var f=e.querySelectorAll("protvista-tooltip")[0];
if(f.style.display&&"none"!==f.style.display){var g=f.getBoundingClientRect();c.style.width=(Math.max(d.right,g.right)+20)+"px";
c.style.height=(Math.max(d.height,g.bottom)+20)+"px"}else{c.style.height=(d.height+20)+"px";
c.style.width=(d.right+20)+"px"}};var b=setInterval(function(){var d=window.pv.contentDocument.body;
if(d.querySelectorAll("protvista-tooltip").length>0){clearInterval(b);a();delete window.pv
}},1000);c.contentDocument.addEventListener("click",function(){setTimeout(a,200)})
};uniprot.namespace="";uniprot.jobid="";uniprot.resultsize=0;uniprot.appendFn=function(a){checkIE=arguments.length!==2;
var c=function(e){var d=document.createElement("script");d.setAttribute("type","text/javascript");
d.setAttribute("src","/scripts/"+e);document.querySelector("head").insertAdjacentElement("beforeend",d)
};for(var b=0;b<a.length;b++){if(checkIE&&directory=="ie"){c(a[b].split("-bundle.js")[0]+"-bundle-ie.js")
}else{c(a[b])}}};