function stopProp(n){n.stopPropagation?(n.stopPropagation(),n.preventDefault()):n.cancelBubble=!0}function StringBuilder(){var n=[];this.append=function(t){t=i(t);t.length>0&&(n[n.length]=t)};this.appendLine=function(t){if(t=i(t),this.isEmpty()){if(!(t.length>0))return;n[n.length]=t}else n[n.length]=t.length>0?"\r\n"+t:"\r\n"};this.clear=function(){n=[]};this.isEmpty=function(){return 0==n.length};this.toString=function(){return n.join("")};var i=function(n){return t(n)?r(n)!=r(new String)?String(n):n:""},t=function(n){return null!=n&&"undefined"!=typeof n},r=function(n){if(!t(n.constructor))throw Error("Unexpected object type");var i=String(n.constructor).match(/function\s+(\w+)/);return t(i)?i[1]:"undefined"}}function isMobile(n){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4))}function parseURL(n){var t=document.createElement("a"),f={},r,u,i;for(t.href=n,r=t.search.replace(/^\?/,"").split("&"),i=0;i<r.length;i++)u=r[i].split("="),f[u[0]]=u[1];return{protocol:t.protocol,host:t.host,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,searchObject:f,hash:t.hash}}function time_offset(){return(new Date).getTimezoneOffset()*-1}function OpenInNewTab(n){if(inIframe)document.location.href=n;else{var t=window.open(n,"_blank");t.focus()}}function OpenInCurrentTab(n){if(inIframe)document.location.href=n;else{var t=window.open(n,"_parent");t.focus()}}function inIframe(){try{return window.self!==window.top}catch(n){return!0}}function StopLinkProp(){try{$(".stop-prop").off().click(function(n){n.stopPropagation();n.preventDefault()})}catch(n){return!0}}function sbtooltip_setposition(n,t,i,r){var u=i?n.pageX-10:i,f=r?n.pageY-100:r;$("#"+t).css({position:"absolute",top:f,left:u,"z-index":"999999"})}function hasWhiteSpace(n){return/\s/g.test(n)}function trim_whitespace(n){return $.trim(n.text)}function escape_for_ajax(n){return n?n.replace(/(['"\\])/g,"\\$1"):n}function unescape_from_ajax(n){return n=n.replaceAll("\\\\'","'",!0),n=n.replaceAll("\\'","'",!0),n.replaceAll('\\"','"',!0)}function htmlDecode(n){return $("<textarea/>").html(n).text()}function htmlEncode(n){return $("<textarea/>").text(n).html()}function get_text_color(n){n=n.replace("#","");var t=parseInt(n.substr(0,2),16),i=parseInt(n.substr(2,2),16),r=parseInt(n.substr(4,2),16),u=(t*299+i*587+r*114)/1e3;return u>=128?__default_text_color:"#fff"}function rgb2hex(n){function t(n){return("0"+parseInt(n).toString(16)).slice(-2)}return n=n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),"#"+t(n[1])+t(n[2])+t(n[3])}function hex2rgb(n){var i,t;return n=n===undefined?"#fff":n,i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=n.replace(i,function(n,t,i,r){return t+t+i+i+r+r}),t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function truncate(n,t,i){var u,r=n.length>t;return i=i||!0,n=r?n.substr(0,t-1):n,u=n.search(/\s/)===-1?!0:!1,u||(n=i&&r?n.substr(0,n.lastIndexOf(" ")):n),r?n+"&hellip;":n}function setModalMaxHeight(n){this.$element=$(n);this.$content=this.$element.find(".modal-content");var t=this.$content.outerHeight()-this.$content.innerHeight(),i=$(window).width()<768?20:60,r=$(window).height()-(i+t),u=this.$element.find(".modal-header").outerHeight()||0,f=this.$element.find(".modal-footer").outerHeight()||0,e=r-(u+f);this.$content.css({overflow:"hidden"});$(n).find(".modal-body").css({"max-height":e,"overflow-y":"auto"})}function debounce(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}}function is_valid_email(n){return/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(n)}function extract_emails(n){return n.match(/([a-zA-Z0-9.'_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi)}function is_valid_LDAPUserName(n){return/["//\\[\]:;|=,+*?<>]/.test(n)}function sleep(n){for(var i=(new Date).getTime(),t=0;t<1e7;t++)if((new Date).getTime()-i>n)break}function load_function_safe(n){try{n()}catch(t){setTimeout(function(){load_function_safe(n)},1e3)}}function load_nav_dropdowns(){$(".dropbtn").off().click(function(n){stopProp(n);$(".tooltip").remove();var t=$(this).next(".dropdown-content");$(this).hasClass("active")?($(t).removeClass("active"),$(this).removeClass("active")):($(t).addClass("active"),$(this).addClass("active"))});$("body").off("click").click(function(){$(".dropbtn").removeClass("active");$(".dropdown-content").removeClass("active")})}function uploader_clearfiles(n){try{var t=$find(n),r=t.getUploadedFiles().length;for(i=r-1;i>=0;i--)t.deleteFileInputAt(i)}catch(u){}}function CopyToClipboard(n){var t=$("#_hiddenClipboard_");t.length||($("body").append('<textarea style="position:absolute;top: -9999px;" id="_hiddenClipboard_"><\/textarea>'),t=$("#_hiddenClipboard_"));t.html(n);t.select();document.execCommand("copy");document.getSelection().removeAllRanges()}function int_phone_formatting(n){var i=$(n),t;typeof intlTelInputUtils!="undefined"&&(t=i.intlTelInput("getNumber",intlTelInputUtils.numberFormat.E164),typeof t=="string"&&i.intlTelInput("setNumber",t))}function int_phone_format(n){var r=(""+n).replace(/\D/g,""),t=r.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/),i;return t?(i=t[1]?"+1 ":"",[i,"(",t[2],") ",t[3],"-",t[4]].join("")):null}function addMinutes(n,t){return n+t*6e4}function load_cascading_list(n,t,i){var c,h,s,f,e;$("#"+n).hide();c=$("#"+n);$("#"+n+"_clist").remove();var r=1,u=new StringBuilder,o=[t];if(u.append('<div id="'+n+'_clist">'),u.append(load_cascading_list_dropdown(n,0,0)),parseInt(t)>0&&Number.isInteger(t)||!Number.isInteger(t)&&t!=="0"&&t!==""){for(h=function(t){return $("#"+n+" [value='"+t+"']").attr("data-parent-id")},p=t,s=0;p!=="0"&&p!==undefined&&s<25;)p=h(p),p!=="0"&&p!==undefined&&o.push(p),s++;$.each(o.reverse(),function(t,i){u.append(load_cascading_list_dropdown(n,i,r));r++})}for(u.append("<\/div>"),$("#"+n).after($.parseHTML(u.toString())),r===1&&$("#"+n+"_0").text().trim()===""&&(f=new StringBuilder,f.append('<div class="margin-bottom-20 clearfix"><select id="'+n+"_"+r+'" data-id="'+r+'" class="form-control select2" style="width:100%">'),f.append('<option value=""><\/option>'),f.append("<\/select><\/div>"),$("#"+n+"_clist").append($.parseHTML(f.toString()))),e=0;e<r-1;e++)$.each(o,function(t,i){+ '_clist';var r=$("#"+n+"_"+e);r.containsOption(String(i).trim())&&r.selectOptions(String(i).trim())});load_cascading_list_bindings(n,i)}function load_cascading_list_dropdown(n,t,i){var r=new StringBuilder,u=$("#"+n+" [data-parent-id='"+t+"']");return u.length>0&&(r.append('<div class="margin-bottom-20 clearfix"><select id="'+n+"_"+i+'" data-id="'+i+'" class="form-control select2" style="width:100%">'),r.append('<option value=""><\/option>'),$.each(u,function(n,t){var i=$(t),u=i.val(),f=i.text();r.append('<option value="'+u+'">'+f+"<\/option>")}),r.append("<\/select><\/div>")),r.toString()}function load_cascading_list_bindings(n,t){var i=$("#"+n+"_clist .select2").closest(".modal").length?$("#"+n+"_clist .select2").closest(".modal"):null;$("#"+n+"_clist .select2").off("change").on("change",function(){var r=this,i=$(r).val(),u=$("#"+n+" [data-parent-id='"+i+"']");u.length===0||i===""?($("#"+n).val(i),load_cascading_list(n,i,t),t&&t.apply(r,[i])):load_cascading_list(n,i,t)})}function overlay(n,t){var i=100;typeof t!="undefined"&&(i=t);setTimeout(function(){var t=$('<div id="modal-overlay" class="box-overlay"><div class="center" style="text-align: center;position: absolute; left: 0; right: 0; top: 75px; "><div class="loader-wrapper active"><div class="loader-layer loader-blue-only"><div class="loader-circle-left"><div class="circle"><\/div><\/div><div class="loader-circle-gap"><\/div><div class="loader-circle-right"><div class="circle"><\/div><\/div><\/div><\/div><\/div><\/div>').hide().fadeIn(5e3);$(n).append(t)},i)}function overlay_reset(){$(".box-overlay").remove()}function escapeHtml(n){return n===null||n===""?n:String(n).replace(/[&<>"'`=\/]/g,function(n){return entityMap[n]})}function asset_select2_templateResult(n){var u=n.id===undefined?"":n.id,t=new StringBuilder,r,i;return n.id!=="-1"?(r="",n.support_level_color!==undefined&&n.support_level_color!==""&&n.support_level_color!==null&&(i="#757575",n.support_level_color!==""&&n.support_level_color!==null&&n.support_level_color!=="#fff"&&(i=n.support_level_color),r="<span class='label label-border pull-right'"+(i!=="#757575"?" style='border-color:"+i+" !important;'":"")+">"+n.support_level+"<\/span>"),t.append('<table cellpadding="2" cellspacing="0" class="table-results">'),t.append('<tr class="no-border"><td class="dot"><i class="dot fas fa-solid fa-circle '+(n.active?"green":"red")+'" aria-hidden="true"><\/i><\/td><td style="font-weight: normal;">&nbsp;'+n.text+r+"<\/td><\/tr>"),t.append("<\/table>")):n.id==="-1"&&(t.append('<table cellpadding="2" cellspacing="0" class="table-results"><tr>'),t.append('<tr><td class="select2_search_heading">'+n.text+"<\/tr>"),t.append("<\/table>")),$.parseHTML(t.toString())}function get_cursor_position(n){var t=0,i;return document.selection?(n.focus(),i=document.selection.createRange(),i.moveStart("character",-n.value.length),t=i.text.length):(n.selectionStart||n.selectionStart==="0")&&(t=n.selectionStart),t}function set_cursor_position(n,t){if(n.setSelectionRange)n.focus(),n.setSelectionRange(t,t);else if(n.createTextRange){var i=n.createTextRange();i.collapse(!0);i.moveEnd("character",t);i.moveStart("character",t);i.select()}}function clean_param(n){return n=encodeURIComponent(n),n.replace(/'/g,"\\'")}function getParameterByName(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}function throbber_bouncy(n,t){t?$(n).find(".throbber-bounce").remove():$(n).append('<div class="cssload-container throbber-bounce"><div class="cssload-bouncywrap"><div class="cssload-cssload-dotcon cssload-dc1"><div class="cssload-dot"><\/div><\/div><div class="cssload-cssload-dotcon dc2"><div class="cssload-dot"><\/div><\/div><div class="cssload-cssload-dotcon dc3"><div class="cssload-dot"><\/div><\/div><\/div><\/div>')}function stripHTML(n){var t=document.createElement("div"),i=document.createTextNode(n);return t.appendChild(i),t.innerHTML}function removeHTMLTags(n){return n.replace(/<[^>]*>?/gm,"")}function printElem(n){var i=document.getElementById(n).innerHTML,t=window.open("","Print","height=600,width=800");return t.document.write("<html><head><title>Print<\/title>"),t.document.write("<\/head><body >"),t.document.write(i),t.document.write("<\/body><\/html>"),t.document.close(),t.focus(),t.print(),t.close(),!0}function getOffset(n){for(var t=0,i=0;n&&!isNaN(n.offsetLeft)&&!isNaN(n.offsetTop);)t+=n.offsetLeft-n.scrollLeft,i+=n.offsetTop-n.scrollTop,n=n.offsetParent;return{top:i,left:t}}function lazy_image_loading(){var n,t,i,r;$(".lazy").hide();n=function(){r&&clearTimeout(r);r=setTimeout(function(){var i=window.pageYOffset;t.forEach(function(n){n.offsetTop<window.innerHeight+i&&(n.src=n.dataset.src,$(n).show())});t.length===0&&(document.removeEventListener("scroll",n),window.removeEventListener("resize",n),window.removeEventListener("orientationChange",n))},20)};"IntersectionObserver"in window?(t=document.querySelectorAll(".lazy"),i=new IntersectionObserver(function(n){n.forEach(function(n){if(n.isIntersecting){var t=n.target;t.src=t.dataset.src;i.unobserve(t)}})}),t.forEach(function(n){i.observe(n);$(n).hasClass("hide")||$(n).hasClass("lazyhide")||$(n).show()})):(t=document.querySelectorAll(".lazy"),n(),document.addEventListener("scroll",n),window.addEventListener("resize",n),window.addEventListener("orientationChange",n))}function disable_console(){(function(){try{var n=console;Object.defineProperty(window,"console",{get:function(){if(n._commandLineAPI)throw"Sorry, for security reasons, the script console is deactivated";return n},set:function(t){n=t}})}catch(t){}})()}function fixHtml(n){var t=document.createElement("div");return t.innerHTML=n,t.innerHTML}function isDefined(n){var t;return n!==t}function readable_seconds_percise(n){for(var i=[[Math.floor(n/31536e3),"yr"],[Math.floor(n%31536e3/86400),"days"],[Math.floor(n%31536e3%86400/3600),"hrs"],[Math.floor(n%31536e3%86400%3600/60),"min"],[n%31536e3%86400%3600%60,"sec"],],r="",t=0,u=i.length;t<u;t++)i[t][0]!==0&&(r+=" "+i[t][0]+""+(i[t][0]===1?i[t][1].substr(0,i[t][1].length-1):i[t][1]));return r.trim()}function readable_seconds(n){var r=moment.duration(n,"seconds"),i={years:r.years(),months:r.months(),weeks:r.weeks(),days:r.days(),hours:r.asHours(),minutes:r.minutes(),seconds:r.seconds()},t;return i.years>=365?(t=Math.floor(i.years),t>1?t+" years":t+" year"):i.days>=1?(t=Math.floor(i.days),t>1?t+" days":t+" day"):i.hours>=1?(t=Math.floor(i.hours),t>1?t+" hours":t+" hour"):i.minutes>=1?(t=Math.floor(i.minutes),t>1?t+" minutes":t+" minute"):i.seconds>=1?(t=Math.floor(i.seconds),t>1?t+" seconds":t+" second"):""}function sentiment_format(n){if(!n||n==="0")return"";var n=parseInt(n),i="",r="",t="";return n>0&&n<20?(i="label-danger",r="/images/moods/color_sad_lots.png",t="Very negative"):n>=20&&n<40?(i="label-danger",r="/images/moods/color_sad.png",t="Negative"):n>=40&&n<70?(i="label-warning",r="/images/moods/color_bored.png",t="Passive"):n>=70&&n<90?(i="label-success",r="/images/moods/color_happy.png",t="Positive"):n>=90&&(i="label-success",r="/images/moods/color_excited.png",t="Very positive"),'<div class= "center"><div class="label label-outline '+i+'" clearfix" title="'+t+'" style="display: inline-block;"><img title="'+t+'" src="'+r+'" class="middle" style="height:20px"> '+t+" ("+n+")<\/div><\/div>"}function active_format(n){return n?'<span class="label label-success"> active <\/span>':'<span class="label label-dark"> inactive <\/span>'}function boolean_format(n){return n?'<span class="label label-success"> Yes <\/span>':'<span class="label label-dark"> No <\/span>'}function isTrue(n){typeof n=="string"&&(n=n.trim().toLowerCase());switch(n){case!0:case"true":case 1:case"1":case"on":case"yes":return!0;default:return!1}}function onKendoFilterMenuInit(n){var t=1,i;n.container.find('[data-bind="value: filters[0].operator"]')&&n.container.find('[data-bind="value: filters[0].operator"]').data("kendoDropDownList")?(n.container.find('[data-bind="value: filters[0].operator"]').data("kendoDropDownList").value("contains"),n.container.find('[data-bind="value: filters[1].operator"]').data("kendoDropDownList").value("contains"),n.container.find('[data-bind="value: filters[0].operator"]').data("kendoDropDownList").trigger("change"),n.container.find('[data-bind="value: filters[1].operator"]').data("kendoDropDownList").trigger("change")):t=500;i=setInterval(function(){for(var t=0,r=0;t<100&&r<=5e3;)t=n.container.find(".k-filter-menu-container").height(),t>100&&($(n.container).height(t+25),$(n.container).closest(".k-animation-container").height(t+25)),r++;clearInterval(i)},t);return}function getScripts(n,t){var i=0;n.forEach(function(r){$.getScript(r,function(){++i==n.length&&t()},!0)})}function isReallyVisible(n,t){if(n.tagName=="HTML")return!0;var r=n.parentNode.getBoundingClientRect(),i=arguments[2]||n.getBoundingClientRect();return(t?i.top>=r.top:i.bottom>r.top)&&(t?i.left>=r.left:i.right>r.left)&&(t?i.bottom<=r.bottom:i.top<r.bottom)&&(t?i.right<=r.right:i.left<r.right)&&isReallyVisible(n.parentNode,t,i)}function RadComboBox_DefaultOnLoad(n){var t=n.findItemByValue(n.get_value());t&&t.select()}function page_load(){setTimeout(function(){$("#tz").val(time_offset());$.each($("textarea.limited"),function(){$(val).hasAttr("maxlength")&&$(val).maxlength({message:"used %charsTyped% of %charsTotal% chars."})});$(".btn-search").click(function(){return $(this).button("loading"),sb_comm_search(),!1});$("#text_search_box").keypress(function(n){n.which===13&&(n.preventDefault(),$(".btn-search").button("loading"),sb_comm_search())});$("#hyp_reset_password").off().click(function(n){return n.preventDefault(),$("#text_signin_un").val()!==""&&is_valid_email($("#text_signin_un").val())?($("#text_signin_un").removeClass("error"),sb_comm_password_reset_request(),!1):($(".signin-section .form-error").show(),$(".signin-section .form-error .message").text("Please fill out your username first followed by clicking on the forgot password link."),$("#text_signin_un").addClass("error"),!1)});$("select option[value='-1']").attr("disabled","disabled");$.cookie("tz",(new Date).getTimezoneOffset()*-1);$("#back-to-top").on("click",function(n){n.preventDefault();$("html,body").animate({scrollTop:0},700)});$("#cmb_sel_cp").off().change(function(){$(this).val()!==""&&$("form").submit()});$(".run-wf").off().click(function(n){return n.stopPropagation(),parseInt($(this).attr("data-id"))>0?($("#ValWf").val($(this).attr("data-id")),btn_submit_workflow_click()):alert("Workflow ID is not defined.  Define with the attribute data-id in order to run."),!1});$("footer").insertAfter(".mpcontent");$("img:not([data-src])").find("img:not([src])").remove();$('input[search_kb="1"]').off().on("keyup",function(){var t=$(this).attr("id"),r=$(this).val(),i=$(this),n;if(console.log(r),n=$("#pre_search__menu_{0}".format(t)),n.length===0){$(i).after('<ul id="pre_search__menu_{0}" class="pre_search__menu"><\/ul>'.format(t));n=$("#pre_search__menu_{0}".format(t));i.attr("search-ml")!=undefined&&i.attr("search-ml")!==""&&n.css("margin-left",i.attr("search-ml"));(i.attr("search-bg")!=undefined||i.attr("search-bg")!=="")&&n.css("background",i.attr("search-bg"));$(document).off().on("click",function(i){i.target.id==t||i.target.id=="pre_search__menu_{0}".format(t)||$(i.target).parents("#pre_search__menu_{0}".format(t)).length?n.show():n.hide()})}else $("#pre_search__menu_{0}".format(t)).empty();n.append('<li class="pre_search__item"><a class="pre_search__link searching">Searching...<\/a><\/li>');n.show();keypress_delay(function(){$.ajax({type:"POST",url:"/community/community.asmx/search_kb",contentType:"application/json; charset=utf-8",data:"{'q':'"+r+"'}",dataType:"json",cache:!0}).then(function(i){$("#pre_search__menu_{0}".format(t)).empty();var r=$.parseJSON(i.d);r.length>0?$.each(r,function(t,i){var r=new StringBuilder;r.append('<li class="pre_search__item">');r.append('<a class="pre_search__link" href="/article/{1}" target="_blank">{0}<\/a>'.format(i.title,i.id));r.append("<\/li>");n.append(r.toString())}):n.append('<li class="pre_search__item"><a class="pre_search__link searching">No results found<\/a><\/li>')})},250)}).keydown(function(n){var i=$(this).attr("id"),r=$(this).val(),u=$(this),t;if(n.which===13)return n.preventDefault(),stopProp(n),t=$("#pre_search__menu_{0}".format(i)),t.hide(),$(".btn-search").button("loading"),sb_comm_search(),!1}).on("click",function(){var t=$(this).attr("id"),i=$(this).val(),r=$(this),n=$("#pre_search__menu_{0}".format(t));n.is(":visible")===!1&&n.show()});$(".tags.email").length>0&&(console.log("go"),$(".tags.email").tag({isEmail:!0,autocompleteOnSpace:!0,autocompleteOnComma:!0}));$("body").fadeIn(50)},50)}function sb_comm_cpsel(){var n=document.getElementById("sb-modal-cpselect"),t=document.getElementsByClassName("close")[0];btn.onclick=function(){n.style.display="block"};t.onclick=function(){n.style.display="none"};window.onclick=function(t){t.target===n&&(n.style.display="none")}}function sb_comm_div_change(n){$("body").fadeOut();window.location.href="/submitcase/"+n+"/"}function btn_submit_workflow_click(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_workflow,"OnClick")},1)}function sb_comm_search(n){n=n===undefined?$("#text_search_box").val():n;n!==""&&(location.pathname.toLowerCase().indexOf("forum")>=0||location.pathname.toLowerCase().indexOf("topic")>=0?window.location.href="/search/forum/"+encodeURIComponent(n).replace(/\./g,"%2E")+"/":(n=encodeURIComponent(n),n=n.replace(/\./g,"_ppp_"),window.location.href="/search/"+n+"/"))}function sb_comm_load(n){_recaptcha=null;__sas=n}function sb_comm_password_reset_request(){$("#val_password_reset_request").val("1");$("form").submit()}function sb_comm_reload(){$(".btn").button("reset")}function recaptcha_create(){}function sb_comm_uploader_delete(n,t){$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:"/ws/attachment_temp_delete.asmx/DeleteTempFile",data:"{'temp_id':'"+$("#ValTempId").val()+"','file_name':'"+t.get_fileName()+"','acc':'"+$("#ValACC").val()+"'}",dataType:"json",async:!0})}function load_attachment_uploader(){setTimeout(function(){$(".attachment-uploader-control").show();$(".attachment-uploader-control").appendTo($(".attachment-uploader"))},750)}function load_avatar_uploader(){setTimeout(function(){$(".avatar-uploader-control").show();$(".avatar-uploader-control").appendTo($(".avatar-uploader"))},750)}function sb_comm_avatar_uploaded(n,t){$("#val_avatar_remove").val("0");$("#img-avatar").attr("src",t.get_fileInfo().AttachmentURL);$("#img-avatar").show();typeof profile_avatar_uploaded=="function"&&profile_avatar_uploaded()}function sb_comm_case_comments_settext(n){$("#text_comments").val(n)}function submit_vote_up(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_vote_up,"OnClick")},1)}function submit_project_change(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_project,"OnClick")},1)}function submit_vote_down(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_vote_down,"OnClick")},1)}function submit_comment(n){n!==null&&n!==""&&($("#"+val_submit_comment).val(n),setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_comment,"OnClick")},1))}function submit_topic(n,t){n!==null&&n!==""&&t!==null&&t!==""&&($("#"+val_submit_post_title).val(n),$("#"+val_submit_post_comment).val(t),setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_post,"OnClick")},1))}function submit_post(n){n!==null&&n!==""&&($("#"+val_submit_post_comment).val(n),setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_post,"OnClick")},1))}function submit_case_activity(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_case_activity,"OnClick")},1)}function submit_case_report(n){$("#"+val_submit_generate_case_report).val(n);setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_generate_case_report,"OnClick")},1)}function submit_caselist_allcases(n){$("#"+val_submit_caselist_allcases).val(n?1:0);setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_caselist_allcases,"OnClick")},1)}function submit_case_open(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_case_open,"OnClick")},1)}function submit_close(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_case_close,"OnClick")},1)}function submit_csr(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_submit_csr,"OnClick")},1)}function submit_contact(){$("#"+btn_submit_contact).val("1");setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_contact_update,"OnClick")},1)}function submit_company(){$("#"+btn_submit_company).val("1");setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_company_update,"OnClick")},1)}function case_company_filter(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_filter_company,"OnClick")},1)}function case_contact_filter(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_filter_contact,"OnClick")},1)}function saml_login_redirect(){setTimeout(function(){$find(__ajaxManagerId).ajaxRequestWithTarget(btn_saml_redirect,"OnClick")},1)}function search_kb(){}var _global_chart_pie_nodata,keypress_delay,entityMap,List;(function(n){n.fn.passStrengthify=function(t){var e=n(this),u,o=[[0,8,16,32,48,64,72],[0,16,32,48,64,78,92],[0,32,64,78,92,108,128]],s=["Very weak","Very weak","Weak","Weak","Moderate","Good","Strong","Very strong"],f=["gray","red","red","#C00000","orange","#0099FF","blue","green"],r=o[0],c=n("<span>").css("margin-left","0px"),h=[],i=0,l=0,a=!1,y=function(n){var h=0,e={"[a-z]":26,"[A-Z]":26,"(\\d[^\\d])|(^\\d+$)":10,"[\\W_]":32},r,u,f,o,t;if(n=n.replace(/(.)(\1)(\1)+/gi,"$1$2"),n=n.replace(/(a)(b(c(d(e(f(g(h(i(j(k(l(m(n(o(p(q(r(u(v(w(x(y(z)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?)?/gi,"$1"),n=n.replace(/(0)(1(2(3(4(5(6(7(8(9)?)?)?)?)?)?)?)?)?/g,"$1"),n=n.replace(/(1)(2(3(4(5(6(7(8(9(0)?)?)?)?)?)?)?)?)?/g,"$1"),n=n.replace(/([^\d])(\d)(\d)+$/,"$1$2"),!n.length)return 0;for(r in e)n.search(RegExp(r))!=-1&&(h+=e[r]);if(!h)return 0;for(r=e=0;r<n.length;r++){f=n;o=r;u=h;var i=f.charAt(o),s={"1":"l","3":"e","4":"a","5":"s","7":"t","@":"a",$:"s"};typeof s[i]!="undefined"&&(i=s[i]);i.match(/^[a-zA-Z]$/)?(i=i.toLowerCase().charCodeAt(0)-"a".charCodeAt(0),t=void 0,t=null,o&&(t=f.charAt(o-1),typeof s[t]!="undefined"&&(t=s[t])),t!=null&&t.match(/^[a-zA-Z]$/)?(f=void 0,f=t.toLowerCase().charCodeAt(0)-"a".charCodeAt(0),t=[.0002835,.0228302,.0369041,.042629,.0012216,.0075739,.0171385,.0014659,.0372661,.0002353,.0110124,.0778259,.0260757,.2145354,.0005459,.0195213,.0001749,.110477,.093429,.131796,.0098029,.0306574,.0088799,.0009562,.0233701,.0018701,.0580027,.0058699,791e-7,.0022625,.3416714,.0002057,.0004272,.0003639,.0479084,.0076894,0,.115056,.0012816,.0003481,.0966553,158e-7,0,.0740301,.0226884,.010743,.1196127,.001155,316e-7,0,.0864502,0,.1229841,271e-7,.0215451,.0005246,.1715916,9e-6,0,.1701716,.056549,0,.0453966,.0488879,0,362e-7,.1759242,9e-6,.0017185,.0376812,.0010492,.0906756,.0358361,0,0,0,.0041969,9e-6,.0280345,.0005057,.0002585,.0081086,.1224833,.0006799,.0054844,.000708,.0794902,.0003484,.0001911,.0092662,.0021466,.0030456,.0397283,.000163,225e-7,.0178918,.0307037,.0009159,.0178805,.0027759,.0013655,0,.0076478,0,.0545873,.0012798,.0224322,.0843434,.0317097,.008564,.0052834,.0017762,.0127186,.0002605,.0010967,.0339975,.0186268,.0815271,.0032334,.0101307,.0021424,.1307517,.0712793,.0241537,.0014289,.0157312,.0070879,.0105139,.0125997,.0001831,.0638579,.0002384,.0003179,.0002086,.0928264,.0500293,199e-7,993e-7,.0820576,0,199e-7,.0266638,397e-7,894e-7,.1545186,.0001689,99e-7,.0825344,.0039539,.034194,.0334986,99e-7,.0001987,0,.00152,0,.0592435,.0003842,.0005205,.0020078,.1482326,.0002727,.0101631,.1420108,.0501091,248e-7,372e-7,.0395122,.002987,.0127906,.0573224,.0005577,0,.0884686,.0261142,.0062466,.0256309,372e-7,.000347,0,.003272,.0001363,.1580232,.0007737,.002046,.0005185,.4597035,.0004627,359e-7,718e-7,.1252667,0,4e-6,.0014278,.0013042,.0012922,.0700557,439e-7,.0003191,.0117178,.0022056,.0297253,.0131497,0,.001029,0,.0072309,0,.0166996,.0069144,.0486793,.0363474,.0480664,.0271435,.0307856,775e-7,.0004826,35e-7,.0073125,.0526842,.0412929,.2618995,.0497818,.0062698,.0004333,.043762,.1157982,.1198384,.000701,.0235788,211e-7,.001881,0,.0032265,.2106638,0,0,0,.190642,0,0,0,.0004353,0,0,0,0,0,.2644178,0,0,0,0,0,.3299238,0,0,0,.0002176,0,.0169234,.0011671,.0005058,.0017118,.3321662,.0041628,.0004669,.0007781,.1300965,0,.0003112,.0185963,.0009726,.100957,.0113601,.001206,0,.0004279,.0613523,.0022954,.0029956,0,.0041239,0,.0086757,0,.10168,.0005515,.0020459,.0668636,.1657445,.0134024,.0011801,.0001542,.1107889,119e-7,.0053728,.135518,.0055389,.0009726,.0826499,.0022654,59e-7,.0018443,.0230153,.0180635,.0144461,.004163,.0025797,0,.0968765,237e-7,.1539307,.0285939,.0001653,.0025384,.2496134,.0017798,195e-7,.0003015,.0877464,195e-7,0,.0015756,.0221846,.0029567,.1098532,.0485124,0,.016991,.0249954,.0008461,.0385435,292e-7,.0001167,0,.0505257,0,.0240107,.0005432,.0423173,.1767352,.0849166,.0053036,.1188694,.0028799,.0295789,.0012223,.0071353,.0087755,.0006582,.0085073,.0653564,.0003343,.0009716,.0004144,.0427003,.0956004,.0093814,.00335,.0008497,.0003343,.012115,.0001288,.0083175,.0072923,.0127087,.0203076,.0029439,.1135873,.0060659,.0018527,.0087857,.0001978,.0106912,.0268647,.0580447,.1459838,.0330625,.0138659,.0002308,.1175433,.032268,.0492657,.1337201,.0164801,.0488371,.0005374,.0033923,.0008571,.1284508,.0004427,.0004427,.0004713,.2213542,.0001428,857e-7,.0221226,.0538854,286e-7,.0001143,.0957597,.0010854,.0005856,.1212242,.0607692,0,.1362487,.0222939,.0408603,.0270926,0,.0011711,0,.0042274,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.0002284,.0002284,0,.9949749,0,0,0,0,0,.0733524,.0032081,.0116789,.028407,.234553,.0056616,.0107385,.0026432,.0792432,435e-7,.0087196,.0117263,.0192448,.0221961,.0919374,.0048043,316e-7,.0189406,.0459213,.0421561,.0173721,.0070603,.0019873,4e-6,.0284504,.0055945,.0349781,.0006441,.0157796,.0015208,.1179849,.0010558,.0004688,.0569819,.0506053,495e-7,.005378,.0114497,.006552,.0022488,.0491264,.0287844,.0008309,.0001906,.0463897,.1269191,.0330152,8e-5,.0053856,0,.0020925,0,.0393295,.000159,.0037195,674e-7,.0892434,.0009218,404e-7,.3352928,.0666758,54e-7,162e-7,.0146273,.000911,.0011051,.0913053,809e-7,27e-7,.0310281,.0245378,.0171177,.0185732,27e-7,.0078702,0,.0121422,.0002776,.0261517,.0181796,.0459729,.0223272,.0308931,.0058765,.0505571,699e-7,.0298191,87e-7,.0001572,.1066327,.0308669,.1156002,.002017,.0448465,.0001746,.1626908,.1207345,.1249869,349e-7,.0009343,.0002008,.0008819,.0002969,.0010042,.1022242,0,0,.0049559,.6796927,0,0,.0002371,.1467561,0,0,.0001423,0,.0128284,.0429195,0,0,.0008299,.0003083,0,.0025847,.0005928,0,0,.0038888,0,.1832539,.0003329,.0002984,.0018938,.1605624,.0013085,344e-7,.1893372,.1788924,0,.000505,.0089412,.0002755,.0372798,.0933831,803e-7,115e-7,.0082066,.0126485,.0018135,.0011707,0,.0003214,0,.0006887,0,.0600144,0,.1573582,.001005,.05542,0,.0001436,.0132089,.1122757,0,0,.0014358,.0001436,0,.0055994,.2157933,.0031587,0,.0027279,.2360373,.0195262,.0051687,.0001436,.0093324,.0020101,0,.0072178,.0039321,.0011985,.0020738,.0562745,.0015217,.0003097,.0007137,.0141393,135e-7,269e-7,.0031914,.0039051,.0022488,.1205478,.0027875,0,.0048882,.0324935,.0109613,.0005925,673e-7,.0016025,.0001347,943e-7,.000202,.4219769,.0007526,.0060211,.0067737,.3038133,0,0,.0005018,.0709985,.0002509,0,.0198194,0,0,.0730055,0,0,.0002509,.0017561,.0005018,.0037632,.0010035,0,0,.0100351,.026844][i+26*f]):t=(o?[.080642499002080981,.015373768624831691,.026892340312538593,.043286671390026357,.12886234260657689,.0244847137116921,.019625534749730816,.060987267963718068,.06905550211598431,.0011176940633901926,.0062521823678781188,.041016761327711163,.025009719347800208,.069849754102356679,.073783151266212627,.017031440203182008,.0010648594165322703,.06156572691936394,.063817324270356,.090246649949305979,.0278568510204016,.010257964235274787,.021192261444145363,.0016941732664605912,.01806326249861108,.0009695838238376564]:[.11617102232902775,.047081205567237411,.035155702413137084,.02673475518173626,.020026033843997197,.0378391909482327,.019525382997897269,.072414138379893869,.062941824371683192,.0063182136777811164,.0069089816761790327,.027085210774006212,.043796936016821872,.023680785020526691,.062721537999399224,.025483128066486435,.00043055972764593971,.016551516972063685,.077650946230099133,.16692700510663863,.014889356163011918,.0061980574747171327,.066696705717432664,50065084609993e-18,.01622108741363773,.00050065084609993])[i],u>=26&&(t*=26/u),u=t):u=1/u;e+=Math.max(-7,Math.log(u)/.69314718055994529)}return-1*e},p=function(n){var t=0,u=0;if(u=y(n),r.length&&r[0]instanceof RegExp)jQuery.each(r,function(i,r){t+=n.search(r)!=-1});else for(i=0;i<r.length;i++){if(u<r[i])break;t=i+1}return[u,t]},v=function(){var r=n(this).val(),u=!r.length||r.length<l,e,o,v,y;for(r=p(r),e=r[0],r=u?0:r[1],o=h.length,y=u?t.labels.tooShort:a?Math.round(e*100)/100+" bits":s[r],v=f[r],u=f[r],e=f[0],c.text(y).css("color",v),i=0;i<o;i++)h[i].css("background-color",i<r?u:e)};return typeof t=="undefined"&&(t={}),typeof t.labels=="undefined"&&(t.labels={}),t.labels=n.extend({tooShort:"Too short",passwordStrength:"Password strength:"},t.labels),u=n("<span>").css("display","inline-block").addClass("passStrengthify"),n(this).each(function(){var p,y;for(t.element?t.element.append(u):n(this).parent().append(u),t.minimum&&(l=t.minimum),typeof t.security=="undefined"&&(t.security=1),t.security>=0&&t.security<o.length&&(r=o[t.security]),t.levels||(t.levels=s),t.colours||(t.colours=f),t.tests||(t.tests=r),t.levels&&t.colours&&t.tests&&t.levels.length==t.colours.length&&t.colours.length==t.tests.length+1&&(s=t.levels,f=t.colours,r=t.tests),t.rawEntropy&&(a=!0),u.append(n("<div>").append(n("<span>").css("font-size","smaller").text(t.labels.passwordStrength).append(c))),p=5,i=0;i<r.length;i++)y=n("<span>").css("height","3px").css("width",p+"px").css("margin-right","3px").css("max-height","3px").css("font-size","1px").css("float","left"),h.push(y),u.append(y);e.keypress(v);e.keyup(v);e.trigger("keyup")})}})(jQuery),function(n){n.fn.addOption=function(){var f=function(n,t,i,r,u){var e=document.createElement("option"),o,h,s,c,f,l;if(e.value=t,e.text=i,o=n.options,h=o.length,!n.cache)for(n.cache={},s=0;s<h;s++)n.cache[o[s].value]=s;if(u||u==0)for(c=e,f=u;f<=h;f++)l=n.options[f],n.options[f]=c,o[f]=c,n.cache[o[f].value]=f,c=l;typeof n.cache[t]=="undefined"&&(n.cache[t]=h);n.options[n.cache[t]]=e;r&&(e.selected=!0)},n=arguments;if(n.length==0)return this;var i=!0,r=!1,u,e,o,t=0;return typeof n[0]=="object"&&(r=!0,u=n[0]),n.length>=2&&(typeof n[1]=="boolean"?(i=n[1],t=n[2]):typeof n[2]=="boolean"?(i=n[2],t=n[1]):t=n[1],r||(e=n[0],o=n[1])),this.each(function(){if(this.nodeName.toLowerCase()=="select")if(r)for(var n in u)f(this,n,u[n],i,t),t+=1;else f(this,e,o,i,t)}),this};n.fn.ajaxAddOption=function(t,i,r,u,f){return typeof t!="string"?this:(typeof i!="object"&&(i={}),typeof r!="boolean"&&(r=!0),this.each(function(){var e=this;n.getJSON(t,i,function(t){n(e).addOption(t,r);typeof u=="function"&&(typeof f=="object"?u.apply(e,f):u.call(e))})}),this)};n.fn.removeOption=function(){var t=arguments,i,n,u,f,r;if(t.length==0)return this;if(i=typeof t[0],i=="string"||i=="object"||i=="function"){if(n=t[0],n.constructor==Array){for(f=n.length,r=0;r<f;r++)this.removeOption(n[r],t[1]);return this}}else if(i=="number")u=t[0];else return this;return this.each(function(){var i,r,e,f;if(this.nodeName.toLowerCase()=="select")if(this.cache&&(this.cache=null),i=!1,r=this.options,!n)i=t[1]===!0?r[u].selected:!0,i&&this.remove(u);else for(e=r.length,f=e-1;f>=0;f--)n.constructor==RegExp?r[f].value.match(n)&&(i=!0):r[f].value==n&&(i=!0),i&&t[1]===!0&&(i=r[f].selected),i&&(r[f]=null),i=!1}),this};n.fn.sortOptions=function(t){var i=n(this).selectedValues(),r=typeof t=="undefined"?!0:!!t;return this.each(function(){var n;if(this.nodeName.toLowerCase()=="select"){var t=this.options,u=t.length,i=[];for(n=0;n<u;n++)i[n]={v:t[n].value,t:t[n].text};for(i.sort(function(n,t){return(o1t=n.t.toLowerCase(),o2t=t.t.toLowerCase(),o1t==o2t)?0:r?o1t<o2t?-1:1:o1t>o2t?-1:1}),n=0;n<u;n++)t[n].text=i[n].t,t[n].value=i[n].v}}).selectOptions(i,!0),this};n.fn.selectOptions=function(t,i){var r=t,u=typeof t,e,f;return(u=="object"&&r.constructor==Array&&(e=this,n.each(r,function(){e.selectOptions(this,i)})),f=i||!1,u!="string"&&u!="function"&&u!="object")?this:(this.each(function(){var t,i,n;if(this.nodeName.toLowerCase()!="select")return this;for(t=this.options,i=t.length,n=0;n<i;n++)r.constructor==RegExp?t[n].value.match(r)?t[n].selected=!0:f&&(t[n].selected=!1):t[n].value==r?t[n].selected=!0:f&&(t[n].selected=!1)}),this)};n.fn.copyOptions=function(t,i){var r=i||"selected";return n(t).size()==0?this:(this.each(function(){var u,f,i;if(this.nodeName.toLowerCase()!="select")return this;for(u=this.options,f=u.length,i=0;i<f;i++)(r=="all"||r=="selected"&&u[i].selected)&&n(t).addOption(u[i].value,u[i].text)}),this)};n.fn.containsOption=function(n,t){var i=!1,u=n,f=typeof u,r=typeof t;return f!="string"&&f!="function"&&f!="object"?r=="function"?this:i:(this.each(function(){var f,e,n;if(this.nodeName.toLowerCase()!="select")return this;if(i&&r!="function")return!1;for(f=this.options,e=f.length,n=0;n<e;n++)u.constructor==RegExp?f[n].value.match(u)&&(i=!0,r=="function"&&t.call(f[n],n)):f[n].value==u&&(i=!0,r=="function"&&t.call(f[n],n))}),r=="function"?this:i)};n.fn.selectedValues=function(){var n=[];return this.selectedOptions().each(function(){n[n.length]=this.value}),n};n.fn.selectedTexts=function(){var n=[];return this.selectedOptions().each(function(){n[n.length]=this.text}),n};n.fn.selectedOptions=function(){return this.find("option:selected")}}(jQuery);var __email_outbound=10,__email_reply=15,__email_forward=20;!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function r(i,r){var f=t.raw?i:function(n){0===n.indexOf('"')&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(n){}}(i);return n.isFunction(r)?r(f):f}var u=/\+/g,t=n.cookie=function(u,f,e){var v,s;if(arguments.length>1&&!n.isFunction(f))return"number"==typeof(e=n.extend({},t.defaults,e)).expires&&(v=e.expires,s=e.expires=new Date,s.setMilliseconds(s.getMilliseconds()+864e5*v)),document.cookie=[i(u),"=",(h=f,i(t.json?JSON.stringify(h):String(h))),e.expires?"; expires="+e.expires.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("");for(var h,c,l=u?void 0:{},y=document.cookie?document.cookie.split("; "):[],a=0,b=y.length;a<b;a++){var p=y[a].split("="),w=(c=p.shift(),t.raw?c:decodeURIComponent(c)),o=p.join("=");if(u===w){l=r(o,f);break}u||void 0===(o=r(o))||(l[w]=o)}return l};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t)}}),function(n){n.fn.getCursorPosition=function(){var t=n(this).get(0),i=0,r,u;return"selectionStart"in t?i=t.selectionStart:"selection"in document&&(t.focus(),r=document.selection.createRange(),u=document.selection.createRange().text.length,r.moveStart("character",-t.value.length),i=r.text.length-u),i}}(jQuery);$.fn.selectRange=function(n,t){return t===undefined&&(t=n),this.each(function(){if("selectionStart"in this)this.selectionStart=n,this.selectionEnd=t;else if(this.setSelectionRange)this.setSelectionRange(n,t);else if(this.createTextRange){var i=this.createTextRange();i.collapse(!0);i.moveEnd("character",t);i.moveStart("character",n);i.select()}})},function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t(n):typeof define=="function"&&define.amd?define(t):t(n)}(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){var _Base64=global.Base64,version="2.5.0",buffer,noEnum;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(err){buffer=undefined}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(n){for(var i={},t=0,r=n.length;t<r;t++)i[n.charAt(t)]=t;return i}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(n){var t;return n.length<2?(t=n.charCodeAt(0),t<128?n:t<2048?fromCharCode(192|t>>>6)+fromCharCode(128|t&63):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|t&63)):(t=65536+(n.charCodeAt(0)-55296)*1024+(n.charCodeAt(1)-56320),fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|t&63))},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(n){return n.replace(re_utob,cb_utob)},cb_encode=function(n){var i=[0,2,1][n.length%3],t=n.charCodeAt(0)<<16|(n.length>1?n.charCodeAt(1):0)<<8|(n.length>2?n.charCodeAt(2):0),r=[b64chars.charAt(t>>>18),b64chars.charAt(t>>>12&63),i>=2?"=":b64chars.charAt(t>>>6&63),i>=1?"=":b64chars.charAt(t&63)];return r.join("")},btoa=global.btoa?function(n){return global.btoa(n)}:function(n){return n.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(n){return(n.constructor===buffer.constructor?n:buffer.from(n)).toString("base64")}:function(n){return(n.constructor===buffer.constructor?n:new buffer(n)).toString("base64")}:function(n){return btoa(utob(n))},encode=function(n,t){return t?_encode(String(n)).replace(/[+\/]/g,function(n){return n=="+"?"-":"_"}).replace(/=/g,""):_encode(String(n))},encodeURI=function(n){return encode(n,!0)},re_btou=new RegExp("[À-ß][-¿]|[à-ï][-¿]{2}|[ð-÷][-¿]{3}","g"),cb_btou=function(n){switch(n.length){case 4:var i=(7&n.charCodeAt(0))<<18|(63&n.charCodeAt(1))<<12|(63&n.charCodeAt(2))<<6|63&n.charCodeAt(3),t=i-65536;return fromCharCode((t>>>10)+55296)+fromCharCode((t&1023)+56320);case 3:return fromCharCode((15&n.charCodeAt(0))<<12|(63&n.charCodeAt(1))<<6|63&n.charCodeAt(2));default:return fromCharCode((31&n.charCodeAt(0))<<6|63&n.charCodeAt(1))}},btou=function(n){return n.replace(re_btou,cb_btou)},cb_decode=function(n){var t=n.length,u=t%4,i=(t>0?b64tab[n.charAt(0)]<<18:0)|(t>1?b64tab[n.charAt(1)]<<12:0)|(t>2?b64tab[n.charAt(2)]<<6:0)|(t>3?b64tab[n.charAt(3)]:0),r=[fromCharCode(i>>>16),fromCharCode(i>>>8&255),fromCharCode(i&255)];return r.length-=[0,0,2,1][u],r.join("")},atob=global.atob?function(n){return global.atob(n)}:function(n){return n.replace(/[\s\S]{1,4}/g,cb_decode)},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(n){return(n.constructor===buffer.constructor?n:buffer.from(n,"base64")).toString()}:function(n){return(n.constructor===buffer.constructor?n:new buffer(n,"base64")).toString()}:function(n){return btou(atob(n))},decode=function(n){return _decode(String(n).replace(/[-_]/g,function(n){return n=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var n=global.Base64;return global.Base64=_Base64,n};return global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"&&(noEnum=function(n){return{value:n,enumerable:!1,writable:!0,configurable:!0}},global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)}));Object.defineProperty(String.prototype,"toBase64",noEnum(function(n){return encode(this,n)}));Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}),global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){function r(t){return!t.nodeName||-1!==n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function i(t){return n.isFunction(t)||n.isPlainObject(t)?t:{top:t,left:t}}var t=n.scrollTo=function(t,i,r){return n(window).scrollTo(t,i,r)};return t.defaults={axis:"xy",duration:0,limit:!0},n.fn.scrollTo=function(u,f,e){"object"==typeof f&&(e=f,f=0);"function"==typeof e&&(e={onAfter:e});"max"===u&&(u=9e9);e=n.extend({},t.defaults,e);f=f||e.duration;var o=e.queue&&1<e.axis.length;return o&&(f/=2),e.offset=i(e.offset),e.over=i(e.over),this.each(function(){function y(t){var i=n.extend({},e,{queue:!0,duration:f,complete:t&&function(){t.call(c,s,e)}});a.animate(h,i)}var p;if(null!==u){var l=r(this),c=l?this.contentWindow||window:this,a=n(c),s=u,h={},v;switch(typeof s){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(s)){s=i(s);break}s=l?n(s):n(s,c);case"object":if(s.length===0)return;(s.is||s.style)&&(v=(s=n(s)).offset())}p=n.isFunction(e.offset)&&e.offset(c,s)||e.offset;n.each(e.axis.split(""),function(n,i){var u="x"===i?"Left":"Top",f=u.toLowerCase(),r="scroll"+u,w=a[r](),b=t.max(c,i);v?(h[r]=v[f]+(l?0:w-a.offset()[f]),e.margin&&(h[r]-=parseInt(s.css("margin"+u),10)||0,h[r]-=parseInt(s.css("border"+u+"Width"),10)||0),h[r]+=p[f]||0,e.over[f]&&(h[r]+=s["x"===i?"width":"height"]()*e.over[f])):(u=s[f],h[r]=u.slice&&"%"===u.slice(-1)?parseFloat(u)/100*b:u);e.limit&&/^\d+$/.test(h[r])&&(h[r]=0>=h[r]?0:Math.min(h[r],b));!n&&1<e.axis.length&&(w===h[r]?h={}:o&&(y(e.onAfterFirst),h={}))});y(e.onAfter)}})},t.max=function(t,i){var u="x"===i?"Width":"Height",e="scroll"+u;if(!r(t))return t[e]-n(t)[u.toLowerCase()]();var u="client"+u,f=t.ownerDocument||t.document,o=f.documentElement,f=f.body;return Math.max(o[e],f[e])-Math.min(o[u],f[u])},n.Tween.propHooks.scrollLeft=n.Tween.propHooks.scrollTop={get:function(t){return n(t.elem)[t.prop]()},set:function(t){var r=this.get(t),i;if(t.options.interrupt&&t._last&&t._last!==r)return n(t.elem).stop();i=Math.round(t.now);r!==i&&(n(t.elem)[t.prop](i),t._last=this.get(t))}},t});jQuery.fn.reverse=[].reverse;String.prototype.format||(String.prototype.format=function(){var n;return n=arguments,n.length===1&&n[0]!==null&&typeof n[0]=="object"&&(n=n[0]),this.replace(/{([^}]*)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})});_global_chart_pie_nodata=[{value:100,color:"rgba(151,187,205,0.2)",highlight:"rgba(151,187,205,1)",label:"No data available"}];keypress_delay=function(){var n=0;return function(t,i){clearTimeout(n);n=setTimeout(t,i)}}();jQuery.expr.filters.offscreen=function(n){return n.offsetLeft+n.offsetWidth<0||n.offsetTop+n.offsetHeight<0||n.offsetLeft>window.innerWidth||n.offsetTop>window.innerHeight};Array.prototype.where=function(n){var t,i;switch(typeof n){case"function":return $.grep(this,n);case"object":t=this;for(i in n)n.hasOwnProperty(i)&&(t=$.grep(t,function(t){return t[i]===n[i]}));return t.slice(0);default:throw new TypeError("func must be either a function or an object of properties and values to filter by");}};jQuery.removeFromArray=function(n,t){return jQuery.grep(t,function(t){return t!==n})};Array.prototype.equals&&console.warn("Overriding existing Array.prototype.equals. Possible causes: New API defines the method, there's a framework conflict or you've got double inclusions in your code.");Array.prototype.equals=function(n){if(!n||this.length!=n.length)return!1;for(var t=0,i=this.length;t<i;t++)if(this[t]instanceof Array&&n[t]instanceof Array){if(!this[t].equals(n[t]))return!1}else if(this[t]!=n[t])return!1;return!0};Object.defineProperty(Array.prototype,"equals",{enumerable:!1});String.prototype.replaceAll=function(n,t,i){return this.replace(new RegExp(n.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),i?"gi":"g"),typeof t=="string"?t.replace(/\$/g,"$$$$"):t)};$.fn.hasAttr=function(n){return this.attr(n)!==undefined};String.prototype.contains=function(n){return this.indexOf(n)!==-1};Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){t===null?t=0:t<0&&(t=Math.max(0,this.length+t));for(var i=t,r=this.length;i<r;i++)if(this[i]===n)return i;return-1});jQuery.fn.outerHTML=function(n){return n?this.before(n).remove():jQuery("<p>").append(this.eq(0).clone()).html()};$.fn.CopyToClipboard=function(){var n=!1;n=this.is("select")||this.is("textarea")||this.is("input")?this.val():this.text();CopyToClipboard(n)};$(function(){$("[data-clipboard-target]").each(function(){$(this).click(function(){$($(this).data("clipboard-target")).CopyToClipboard()})});$("[data-clipboard-text]").each(function(){$(this).click(function(){CopyToClipboard($(this).data("clipboard-text"))})})});entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};String.prototype.trunc=function(n,t){if(this.length<=n)return this;var i=this.substr(0,n-1);return t?i.substr(0,c=i.lastIndexOf("<br />")>0?i.lastIndexOf("<br />"):i.lastIndexOf(" ")>0?i.lastIndexOf(" "):i):i};String.linkify||(String.prototype.linkify=function(){return this.replace(/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,'<a target="_blank" href="$&">$&<\/a>').replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,'$1<a target="_blank" href="http://$2">$2<\/a>').replace(/[\w.]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim,'<a href="mailto:$&">$&<\/a>')}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){n.fn.addBack=n.fn.addBack||n.fn.andSelf;n.fn.extend({actual:function(t,i){var s,u,h,c;if(!this[t])throw'$.actual => The jQuery method "'+t+'" you called does not exist';var f=n.extend({absolute:!1,clone:!1,includeMargin:!1,display:"block"},i),r=this.eq(0),e,o;return f.clone===!0?(e=function(){r=r.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},o=function(){r.remove()}):(s=[],u="",e=function(){h=r.parents().addBack().filter(":hidden");u+="visibility: hidden !important; display: "+f.display+" !important; ";f.absolute===!0&&(u+="position: absolute !important; ");h.each(function(){var i=n(this),t=i.attr("style");s.push(t);i.attr("style",t?t+";"+u:u)})},o=function(){h.each(function(t){var i=n(this),r=s[t];r===undefined?i.removeAttr("style"):i.attr("style",r)})}),e(),c=/(outer)/.test(t)?r[t](f.includeMargin):r[t](),o(),c}})}),function(n){n.fn.inputFilter=function(n){return this.on("input keydown keyup mousedown mouseup select contextmenu drop",function(){n(this.value)?(this.oldValue=this.value,this.oldSelectionStart=this.selectionStart,this.oldSelectionEnd=this.selectionEnd):this.hasOwnProperty("oldValue")?(this.value=this.oldValue,this.setSelectionRange(this.oldSelectionStart,this.oldSelectionEnd)):this.value=""})}}(jQuery),function(){$.getScript=function(n,t,i){$.ajax({type:"GET",url:n,success:t,dataType:"script",cache:i})}}();__fadeInTime=75;__fadeOutTime=75;var _recaptcha=null,_filtercheck=null,_current_tab=1;List=function(){var t={"./src/add-async.js":function(n){n.exports=function(n){return function t(i,r,u){var f=i.splice(0,50);u=(u=u||[]).concat(n.add(f));i.length>0?setTimeout(function(){t(i,r,u)},1):(n.update(),r(u))}}},"./src/filter.js":function(n){n.exports=function(n){return n.handlers.filterStart=n.handlers.filterStart||[],n.handlers.filterComplete=n.handlers.filterComplete||[],function(t){var r;if(n.trigger("filterStart"),n.i=1,n.reset.filter(),void 0===t)n.filtered=!1;else{n.filtered=!0;for(var u=n.items,i=0,f=u.length;i<f;i++)r=u[i],r.filtered=t(r)?!0:!1}return n.update(),n.trigger("filterComplete"),n.visibleItems}}},"./src/fuzzy-search.js":function(n,t,i){i("./src/utils/classes.js");var r=i("./src/utils/events.js"),u=i("./src/utils/extend.js"),f=i("./src/utils/to-string.js"),e=i("./src/utils/get-by-class.js"),o=i("./src/utils/fuzzy.js");n.exports=function(n,t){t=u({location:0,distance:100,threshold:.4,multiSearch:!0,searchClass:"fuzzy-search"},t=t||{});var i={search:function(r,u){for(var e=t.multiSearch?r.replace(/ +$/,"").split(/ +/):[r],f=0,o=n.items.length;f<o;f++)i.item(n.items[f],u,e)},item:function(n,t,r){for(var f=!0,u=0;u<r.length;u++){for(var o=!1,e=0,s=t.length;e<s;e++)i.values(n.values(),t[e],r[u])&&(o=!0);o||(f=!1)}n.found=f},values:function(n,i,r){if(n.hasOwnProperty(i)){var u=f(n[i]).toLowerCase();if(o(u,r,t))return!0}return!1}};return r.bind(e(n.listContainer,t.searchClass),"keyup",n.utils.events.debounce(function(t){var r=t.target||t.srcElement;n.search(r.value,i.search)},n.searchDelay)),function(t,r){n.search(t,r,i.search)}}},"./src/index.js":function(n,t,i){var f=i("./node_modules/string-natural-compare/natural-compare.js"),r=i("./src/utils/get-by-class.js"),e=i("./src/utils/extend.js"),u=i("./src/utils/index-of.js"),o=i("./src/utils/events.js"),s=i("./src/utils/to-string.js"),h=i("./src/utils/classes.js"),c=i("./src/utils/get-attribute.js"),l=i("./src/utils/to-array.js");n.exports=function(n,t,a){var y,v=this,p=i("./src/item.js")(v),w=i("./src/add-async.js")(v),b=i("./src/pagination.js")(v);y={start:function(){v.listClass="list";v.searchClass="search";v.sortClass="sort";v.page=1e4;v.i=1;v.items=[];v.visibleItems=[];v.matchingItems=[];v.searched=!1;v.filtered=!1;v.searchColumns=void 0;v.searchDelay=0;v.handlers={updated:[]};v.valueNames=[];v.utils={getByClass:r,extend:e,indexOf:u,events:o,toString:s,naturalSort:f,classes:h,getAttribute:c,toArray:l};v.utils.extend(v,t);v.listContainer="string"==typeof n?document.getElementById(n):n;v.listContainer&&(v.list=r(v.listContainer,v.listClass,!0),v.parse=i("./src/parse.js")(v),v.templater=i("./src/templater.js")(v),v.search=i("./src/search.js")(v),v.filter=i("./src/filter.js")(v),v.sort=i("./src/sort.js")(v),v.fuzzySearch=i("./src/fuzzy-search.js")(v,t.fuzzySearch),this.handlers(),this.items(),this.pagination(),v.update())},handlers:function(){for(var n in v.handlers)v[n]&&v.handlers.hasOwnProperty(n)&&v.on(n,v[n])},items:function(){v.parse(v.list);void 0!==a&&v.add(a)},pagination:function(){if(void 0!==t.pagination){!0===t.pagination&&(t.pagination=[{}]);void 0===t.pagination[0]&&(t.pagination=[t.pagination]);for(var n=0,i=t.pagination.length;n<i;n++)b(t.pagination[n])}}};this.reIndex=function(){v.items=[];v.visibleItems=[];v.matchingItems=[];v.searched=!1;v.filtered=!1;v.parse(v.list)};this.toJSON=function(){for(var t=[],n=0,i=v.items.length;n<i;n++)t.push(v.items[n].values());return t};this.add=function(n,t){var r,u,i,e,f;if(0!==n.length){if(!t){for(r=[],u=!1,void 0===n[0]&&(n=[n]),i=0,e=n.length;i<e;i++)u=v.items.length>v.page,f=new p(n[i],void 0,u),v.items.push(f),r.push(f);return v.update(),r}w(n.slice(0),t)}};this.show=function(n,t){return this.i=n,this.page=t,v.update(),v};this.remove=function(n,t,i){for(var u=0,r=0,f=v.items.length;r<f;r++)v.items[r].values()[n]==t&&(v.templater.remove(v.items[r],i),v.items.splice(r,1),f--,r--,u++);return v.update(),u};this.get=function(n,t){for(var r,u=[],i=0,f=v.items.length;i<f;i++)r=v.items[i],r.values()[n]==t&&u.push(r);return u};this.size=function(){return v.items.length};this.clear=function(){return v.templater.clear(),v.items=[],v};this.on=function(n,t){return v.handlers[n].push(t),v};this.off=function(n,t){var i=v.handlers[n],r=u(i,t);return r>-1&&i.splice(r,1),v};this.trigger=function(n){for(var t=v.handlers[n].length;t--;)v.handlers[n][t](v);return v};this.reset={filter:function(){for(var n=v.items,t=n.length;t--;)n[t].filtered=!1;return v},search:function(){for(var n=v.items,t=n.length;t--;)n[t].found=!1;return v}};this.update=function(){var t=v.items,i=t.length,n;for(v.visibleItems=[],v.matchingItems=[],v.templater.clear(),n=0;n<i;n++)t[n].matching()&&v.matchingItems.length+1>=v.i&&v.visibleItems.length<v.page?(t[n].show(),v.visibleItems.push(t[n]),v.matchingItems.push(t[n])):t[n].matching()?(v.matchingItems.push(t[n]),t[n].hide()):t[n].hide();return v.trigger("updated"),v};y.start()}},"./src/item.js":function(n){n.exports=function(n){return function(t,i,r){var u=this;this._values={};this.found=!1;this.filtered=!1;this.values=function(t,i){if(void 0===t)return u._values;for(var r in t)u._values[r]=t[r];!0!==i&&n.templater.set(u,u.values())};this.show=function(){n.templater.show(u)};this.hide=function(){n.templater.hide(u)};this.matching=function(){return n.filtered&&n.searched&&u.found&&u.filtered||n.filtered&&!n.searched&&u.filtered||!n.filtered&&n.searched&&u.found||!n.filtered&&!n.searched};this.visible=function(){return!(!u.elm||u.elm.parentNode!=n.list)},function(t,i,r){if(void 0===i)r?u.values(t,r):u.values(t);else{u.elm=i;var f=n.templater.get(u,t);u.values(f)}}(t,i,r)}}},"./src/pagination.js":function(n,t,i){var r=i("./src/utils/classes.js"),u=i("./src/utils/events.js"),f=i("./src/index.js");n.exports=function(n){var t=!1,i=function(i,u){var f,l;if(n.page<1)return n.listContainer.style.display="none",void(t=!0);t&&(n.listContainer.style.display="block");var o,p=n.matchingItems.length,w=n.i,h=n.page,a=Math.ceil(p/h),c=Math.ceil(w/h),v=u.innerWindow||2,y=u.left||u.outerWindow||0,s=u.right||u.outerWindow||0;for(s=a-s,i.clear(),f=1;f<=a;f++)l=c===f?"active":"",e.number(f,y,s,c,v)?(o=i.add({page:f,dotted:!1})[0],l&&r(o.elm).add(l),o.elm.firstChild.setAttribute("data-i",f),o.elm.firstChild.setAttribute("data-page",h)):e.dotted(i,f,y,s,c,v,i.size())&&(o=i.add({page:"...",dotted:!0})[0],r(o.elm).add("disabled"))},e={number:function(n,t,i,r,u){return this.left(n,t)||this.right(n,i)||this.innerWindow(n,r,u)},left:function(n,t){return n<=t},right:function(n,t){return n>t},innerWindow:function(n,t,i){return n>=t-i&&n<=t+i},dotted:function(n,t,i,r,u,f,e){return this.dottedLeft(n,t,i,r,u,f)||this.dottedRight(n,t,i,r,u,f,e)},dottedLeft:function(n,t,i,r,u,f){return t==i+1&&!this.innerWindow(t,u,f)&&!this.right(t,r)},dottedRight:function(n,t,i,r,u,f,e){return!n.items[e-1].values().dotted&&t==r&&!this.innerWindow(t,u,f)&&!this.right(t,r)}};return function(t){var r=new f(n.listContainer.id,{listClass:t.paginationClass||"pagination",item:t.item||"<li><a class='page' href='#'><\/a><\/li>",valueNames:["page","dotted"],searchClass:"pagination-search-that-is-not-supposed-to-exist",sortClass:"pagination-sort-that-is-not-supposed-to-exist"});u.bind(r.listContainer,"click",function(t){var i=t.target||t.srcElement,r=n.utils.getAttribute(i,"data-page"),u=n.utils.getAttribute(i,"data-i");u&&n.show((u-1)*r+1,r)});n.on("updated",function(){i(r,t)});i(r,t)}}},"./src/parse.js":function(n,t,i){n.exports=function(n){var t=i("./src/item.js")(n),r=function(i,r){for(var u=0,f=i.length;u<f;u++)n.items.push(new t(r,i[u]))},u=function t(i,u){var f=i.splice(0,50);r(f,u);i.length>0?setTimeout(function(){t(i,u)},1):(n.update(),n.trigger("parseComplete"))};return n.handlers.parseComplete=n.handlers.parseComplete||[],function(){var t=function(n){for(var i=n.childNodes,r=[],t=0,u=i.length;t<u;t++)void 0===i[t].data&&r.push(i[t]);return r}(n.list),i=n.valueNames;n.indexAsync?u(t,i):r(t,i)}}},"./src/search.js":function(n){n.exports=function(n){var t,u,i,r={resetList:function(){n.i=1;n.templater.clear();i=void 0},setOptions:function(n){2==n.length&&n[1]instanceof Array?t=n[1]:2==n.length&&"function"==typeof n[1]?(t=void 0,i=n[1]):3==n.length?(t=n[1],i=n[2]):t=void 0},setColumns:function(){0!==n.items.length&&void 0===t&&(t=void 0===n.searchColumns?r.toArray(n.items[0].values()):n.searchColumns)},setSearchString:function(t){t=(t=n.utils.toString(t).toLowerCase()).replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");u=t},toArray:function(n){var t=[];for(var i in n)t.push(i);return t}},e=function(){for(var o,s,v,h,c,y,f,e,r=[],i=u;null!==(o=i.match(/"([^"]+)"/));)r.push(o[1]),i=i.substring(0,o.index)+i.substring(o.index+o[0].length);for((i=i.trim()).length&&(r=r.concat(i.split(/\s+/))),s=0,v=n.items.length;s<v;s++)if(h=n.items[s],h.found=!1,r.length){for(c=0,y=r.length;c<y;c++){for(var l=!1,a=0,p=t.length;a<p;a++)if(f=h.values(),e=t[a],f.hasOwnProperty(e)&&void 0!==f[e]&&null!==f[e]&&-1!==("string"!=typeof f[e]?f[e].toString():f[e]).toLowerCase().indexOf(r[c])){l=!0;break}if(!l)break}h.found=l}},o=function(){n.reset.search();n.searched=!1},f=function(f){return n.trigger("searchStart"),r.resetList(),r.setSearchString(f),r.setOptions(arguments),r.setColumns(),""===u?o():(n.searched=!0,i?i(u,t):e()),n.update(),n.trigger("searchComplete"),n.visibleItems};return n.handlers.searchStart=n.handlers.searchStart||[],n.handlers.searchComplete=n.handlers.searchComplete||[],n.utils.events.bind(n.utils.getByClass(n.listContainer,n.searchClass),"keyup",n.utils.events.debounce(function(t){var i=t.target||t.srcElement;(""!==i.value||n.searched)&&f(i.value)},n.searchDelay)),n.utils.events.bind(n.utils.getByClass(n.listContainer,n.searchClass),"input",function(n){""===(n.target||n.srcElement).value&&f("")}),f}},"./src/sort.js":function(n){n.exports=function(n){var t={els:void 0,clear:function(){for(var i=0,r=t.els.length;i<r;i++)n.utils.classes(t.els[i]).remove("asc"),n.utils.classes(t.els[i]).remove("desc")},getOrder:function(t){var i=n.utils.getAttribute(t,"data-order");return"asc"==i||"desc"==i?i:n.utils.classes(t).has("desc")?"asc":n.utils.classes(t).has("asc")?"desc":"asc"},getInSensitive:function(t,i){var r=n.utils.getAttribute(t,"data-insensitive");i.insensitive="false"!==r},setOrder:function(i){for(var r,f,u=0,e=t.els.length;u<e;u++)r=t.els[u],n.utils.getAttribute(r,"data-sort")===i.valueName&&(f=n.utils.getAttribute(r,"data-order"),"asc"==f||"desc"==f?f==i.order&&n.utils.classes(r).add(i.order):n.utils.classes(r).add(i.order))}},i=function(){var i,r,e,u,f;n.trigger("sortStart");i={};r=arguments[0].currentTarget||arguments[0].srcElement||void 0;r?(i.valueName=n.utils.getAttribute(r,"data-sort"),t.getInSensitive(r,i),i.order=t.getOrder(r)):((i=arguments[1]||i).valueName=arguments[0],i.order=i.order||"asc",i.insensitive=void 0===i.insensitive||i.insensitive);t.clear();t.setOrder(i);u=i.sortFunction||n.sortFunction||null;f="desc"===i.order?-1:1;e=u?function(n,t){return u(n,t,i)*f}:function(t,r){var u=n.utils.naturalSort;return u.alphabet=n.alphabet||i.alphabet||void 0,!u.alphabet&&i.insensitive&&(u=n.utils.naturalSort.caseInsensitive),u(t.values()[i.valueName],r.values()[i.valueName])*f};n.items.sort(e);n.update();n.trigger("sortComplete")};return n.handlers.sortStart=n.handlers.sortStart||[],n.handlers.sortComplete=n.handlers.sortComplete||[],t.els=n.utils.getByClass(n.listContainer,n.sortClass),n.utils.events.bind(t.els,"click",i),n.on("searchStart",t.clear),n.on("filterStart",t.clear),i}},"./src/templater.js":function(n){var t=function(n){var i,t=this,u=function(t,i){var u=t.cloneNode(!0),e,s,f,r,o,h;for(u.removeAttribute("id"),e=0,s=i.length;e<s;e++)if(f=void 0,r=i[e],r.data)for(o=0,h=r.data.length;o<h;o++)u.setAttribute("data-"+r.data[o],"");else r.attr&&r.name?(f=n.utils.getByClass(u,r.name,!0))&&f.setAttribute(r.attr,""):(f=n.utils.getByClass(u,r,!0))&&(f.innerHTML="");return u},f=function(){for(var i=n.list.childNodes,t=0,r=i.length;t<r;t++)if(void 0===i[t].data)return i[t].cloneNode(!0)},r=function(n){var t,i;if("string"==typeof n){if(/<tr[\s>]/g.exec(n))return t=document.createElement("tbody"),t.innerHTML=n,t.firstElementChild;if(-1!==n.indexOf("<"))return i=document.createElement("div"),i.innerHTML=n,i.firstElementChild}},e=function(t,i,r){var f=void 0,u=function(t){for(var i,r=0,f=n.valueNames.length;r<f;r++)if(i=n.valueNames[r],i.data){for(var e=i.data,u=0,o=e.length;u<o;u++)if(e[u]===t)return{data:t}}else{if(i.attr&&i.name&&i.name==t)return i;if(i===t)return t}}(i);u&&(u.data?t.elm.setAttribute("data-"+u.data,r):u.attr&&u.name?(f=n.utils.getByClass(t.elm,u.name,!0))&&f.setAttribute(u.attr,r):(f=n.utils.getByClass(t.elm,u,!0))&&(f.innerHTML=r))};this.get=function(i,r){var f,u,e,h;t.create(i);for(var o={},s=0,c=r.length;s<c;s++)if(f=void 0,u=r[s],u.data)for(e=0,h=u.data.length;e<h;e++)o[u.data[e]]=n.utils.getAttribute(i.elm,"data-"+u.data[e]);else u.attr&&u.name?(f=n.utils.getByClass(i.elm,u.name,!0),o[u.name]=f?n.utils.getAttribute(f,u.attr):""):(f=n.utils.getByClass(i.elm,u,!0),o[u]=f?f.innerHTML:"");return o};this.set=function(n,i){if(!t.create(n))for(var r in i)i.hasOwnProperty(r)&&e(n,r,i[r])};this.create=function(n){return void 0===n.elm&&(n.elm=i(n.values()),t.set(n,n.values()),!0)};this.remove=function(t){t.elm.parentNode===n.list&&n.list.removeChild(t.elm)};this.show=function(i){t.create(i);n.list.appendChild(i.elm)};this.hide=function(t){void 0!==t.elm&&t.elm.parentNode===n.list&&n.list.removeChild(t.elm)};this.clear=function(){if(n.list.hasChildNodes())for(;n.list.childNodes.length>=1;)n.list.removeChild(n.list.firstChild)},function(){var t;if("function"!=typeof n.item){if(!(t="string"==typeof n.item?-1===n.item.indexOf("<")?document.getElementById(n.item):r(n.item):f()))throw new Error("The list needs to have at least one item on init otherwise you'll have to add a template.");t=u(t,n.valueNames);i=function(){return t.cloneNode(!0)}}else i=function(t){var i=n.item(t);return r(i)}}()};n.exports=function(n){return new t(n)}},"./src/utils/classes.js":function(n,t,i){function r(n){if(!n||!n.nodeType)throw new Error("A DOM element reference is required");this.el=n;this.list=n.classList}var u=i("./src/utils/index-of.js"),f=/\s+/;Object.prototype.toString;n.exports=function(n){return new r(n)};r.prototype.add=function(n){if(this.list)return this.list.add(n),this;var t=this.array();return~u(t,n)||t.push(n),this.el.className=t.join(" "),this};r.prototype.remove=function(n){if(this.list)return this.list.remove(n),this;var t=this.array(),i=u(t,n);return~i&&t.splice(i,1),this.el.className=t.join(" "),this};r.prototype.toggle=function(n,t){return this.list?(void 0!==t?t!==this.list.toggle(n,t)&&this.list.toggle(n):this.list.toggle(n),this):(void 0!==t?t?this.add(n):this.remove(n):this.has(n)?this.remove(n):this.add(n),this)};r.prototype.array=function(){var n=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(f);return""===n[0]&&n.shift(),n};r.prototype.has=r.prototype.contains=function(n){return this.list?this.list.contains(n):!!~u(this.array(),n)}},"./src/utils/events.js":function(n,t,i){var r=window.addEventListener?"addEventListener":"attachEvent",e=window.removeEventListener?"removeEventListener":"detachEvent",u="addEventListener"!==r?"on":"",f=i("./src/utils/to-array.js");t.bind=function(n,t,i,e){for(var o=0,s=(n=f(n)).length;o<s;o++)n[o][r](u+t,i,e||!1)};t.unbind=function(n,t,i,r){for(var o=0,s=(n=f(n)).length;o<s;o++)n[o][e](u+t,i,r||!1)};t.debounce=function(n,t,i){var r;return t?function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}:n}},"./src/utils/extend.js":function(n){n.exports=function(n){for(var t,r,u=Array.prototype.slice.call(arguments,1),i=0;t=u[i];i++)if(t)for(r in t)n[r]=t[r];return n}},"./src/utils/fuzzy.js":function(n){n.exports=function(n,t,i){function c(n,i){var r=n/t.length,f=Math.abs(u-i);return b?r+f/b:f?1:r}var nt=i.location||0,b=i.distance||100,tt=i.threshold||.4,u,k,f,e,l,o,d,v,a,s,r,p,w;if(t===n)return!0;if(t.length>32)return!1;for(u=nt,k=function(){for(var i={},n=0;n<t.length;n++)i[t.charAt(n)]=0;for(n=0;n<t.length;n++)i[t.charAt(n)]|=1<<t.length-n-1;return i}(),f=tt,e=n.indexOf(t,u),-1!=e&&(f=Math.min(c(0,e),f),-1!=(e=n.lastIndexOf(t,u+t.length))&&(f=Math.min(c(0,e),f))),d=1<<t.length-1,e=-1,a=t.length+n.length,s=0;s<t.length;s++){for(l=0,o=a;l<o;)c(s,u+o)<=f?l=o:a=o,o=Math.floor((a-l)/2+l);a=o;var g=Math.max(1,u-o+1),y=Math.min(u+o,n.length)+t.length,h=Array(y+2);for(h[y+1]=(1<<s)-1,r=y;r>=g;r--)if(p=k[n.charAt(r-1)],(h[r]=0===s?(h[r+1]<<1|1)&p:(h[r+1]<<1|1)&p|(v[r+1]|v[r])<<1|1|v[r+1],h[r]&d)&&(w=c(s,r-1),w<=f)){if(f=w,!((e=r-1)>u))break;g=Math.max(1,2*u-e)}if(c(s+1,u)>f)break;v=h}return!(e<0)}},"./src/utils/get-attribute.js":function(n){n.exports=function(n,t){var u=n.getAttribute&&n.getAttribute(t)||null;if(!u)for(var r=n.attributes,f=r.length,i=0;i<f;i++)void 0!==r[i]&&r[i].nodeName===t&&(u=r[i].nodeValue);return u}},"./src/utils/get-by-class.js":function(n){n.exports=function(n,t,i,r){return(r=r||{}).test&&r.getElementsByClassName||!r.test&&document.getElementsByClassName?function(n,t,i){return i?n.getElementsByClassName(t)[0]:n.getElementsByClassName(t)}(n,t,i):r.test&&r.querySelector||!r.test&&document.querySelector?function(n,t,i){return t="."+t,i?n.querySelector(t):n.querySelectorAll(t)}(n,t,i):function(n,t,i){for(var f=[],u=n.getElementsByTagName("*"),o=u.length,s=new RegExp("(^|\\s)"+t+"(\\s|$)"),r=0,e=0;r<o;r++)if(s.test(u[r].className)){if(i)return u[r];f[e]=u[r];e++}return f}(n,t,i)}},"./src/utils/index-of.js":function(n){var t=[].indexOf;n.exports=function(n,i){if(t)return n.indexOf(i);for(var r=0,u=n.length;r<u;++r)if(n[r]===i)return r;return-1}},"./src/utils/to-array.js":function(n){n.exports=function(n){if(void 0===n)return[];if(null===n)return[null];if(n===window)return[window];if("string"==typeof n)return[n];if(function(n){return"[object Array]"===Object.prototype.toString.call(n)}(n))return n;if("number"!=typeof n.length)return[n];if("function"==typeof n&&n instanceof Function)return[n];for(var i=[],t=0,r=n.length;t<r;t++)(Object.prototype.hasOwnProperty.call(n,t)||t in n)&&i.push(n[t]);return i.length?i:[]}},"./src/utils/to-string.js":function(n){n.exports=function(n){return(n=null===(n=void 0===n?"":n)?"":n).toString()}},"./node_modules/string-natural-compare/natural-compare.js":function(n){"use strict";function f(n){return n>=48&&n<=57}function i(n,i){for(var r,e,l,v,a,y,p,o=(n+="").length,s=(i+="").length,h=0,c=0;h<o&&c<s;)if(r=n.charCodeAt(h),e=i.charCodeAt(c),f(r)){if(!f(e))return r-e;for(l=h,v=c;48===r&&++l<o;)r=n.charCodeAt(l);for(;48===e&&++v<s;)e=i.charCodeAt(v);for(a=l,y=v;a<o&&f(n.charCodeAt(a));)++a;for(;y<s&&f(i.charCodeAt(y));)++y;if(p=a-l-y+v,p)return p;for(;l<a;)if(p=n.charCodeAt(l++)-i.charCodeAt(v++))return p;h=a;c=y}else{if(r!==e)return r<u&&e<u&&-1!==t[r]&&-1!==t[e]?t[r]-t[e]:r-e;++h;++c}return h>=o&&c<s&&o>=s?-1:c>=s&&h<o&&s>=o?1:o-s}var r,t,u=0;i.caseInsensitive=i.i=function(n,t){return i((""+n).toLowerCase(),(""+t).toLowerCase())};Object.defineProperties(i,{alphabet:{get:function(){return r},set:function(n){t=[];var i=0;if(r=n)for(;i<r.length;i++)t[r.charCodeAt(i)]=i;for(u=t.length,i=0;i<u;i++)void 0===t[i]&&(t[i]=-1)}}});n.exports=i}},n={};return function i(r){if(n[r])return n[r].exports;var u=n[r]={exports:{}};return t[r](u,u.exports,i),u.exports}("./src/index.js")}()