(function(a){a.cookie=function(g,f,k){if(arguments.length>1&&(!/Object/.test(Object.prototype.toString.call(f))||f===null||f===undefined)){k=a.extend({},k);if(f===null||f===undefined){k.expires=-1}if(typeof k.expires==="number"){var h=k.expires,j=k.expires=new Date();j.setDate(j.getDate()+h)}f=String(f);return(document.cookie=[encodeURIComponent(g),"=",k.raw?f:encodeURIComponent(f),k.expires?"; expires="+k.expires.toUTCString():"",k.path?"; path="+k.path:"",k.domain?"; domain="+k.domain:"",k.secure?"; secure":""].join(""))}k=f||{};var b=k.raw?function(i){return i}:decodeURIComponent;var c=document.cookie.split("; ");for(var e=0,d;d=c[e]&&c[e].split("=");e++){if(b(d[0])===g){return b(d[1]||"")}}return null}})(jQuery);!(function(b){b.extend({tablesorter:new function(){var c=this;c.version="2.16.4";c.parsers=[];c.widgets=[];c.defaults={theme:"default",widthFixed:false,showProcessing:false,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:true,tabIndex:true,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:true,delayInit:false,serverSideSorting:false,headers:{},ignoreCase:true,sortForce:null,sortList:[],sortAppend:null,sortStable:false,sortInitialOrder:"asc",sortLocaleCompare:false,sortReset:false,sortRestart:false,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:true,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:false,headerList:[],empties:{},strings:{},parsers:[]};c.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"};c.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"};function n(){var y=arguments[0],z=arguments.length>1?Array.prototype.slice.call(arguments):y;if(typeof console!=="undefined"&&typeof console.log!=="undefined"){console[/error/i.test(y)?"error":/warn/i.test(y)?"warn":"log"](z)}else{alert(z)}}function h(y,z){n(y+" ("+(new Date().getTime()-z.getTime())+"ms)")}c.log=n;c.benchmark=h;function p(z){for(var y in z){return false}return true}function e(B,A,y){if(!A){return""}var D=B.config,z=D.textExtraction||"",C="";if(z==="basic"){C=b(A).attr(D.textAttribute)||A.textContent||A.innerText||b(A).text()||""}else{if(typeof(z)==="function"){C=z(A,B,y)}else{if(typeof(z)==="object"&&z.hasOwnProperty(y)){C=z[y](A,B,y)}else{C=A.textContent||A.innerText||b(A).text()||""}}}return b.trim(C)}function i(E,G,C,B){var D,z=c.parsers.length,y=false,A="",F=true;while(A===""&&F){C++;if(G[C]){y=G[C].cells[B];A=e(E,y,B);if(E.config.debug){n("Checking if value was empty on row "+C+", column: "+B+': "'+A+'"')}}else{F=false}}while(--z>=0){D=c.parsers[z];if(D&&D.id!=="text"&&D.is&&D.is(A,E,y)){return D}}return c.getParserById("text")}function j(L){var K=L.config,E=K.$tbodies=K.$table.children("tbody:not(."+K.cssInfoBlock+")"),M,J,C,F,G,y,A,B,H,D=0,z="",I=E.length;if(I===0){return K.debug?n("Warning: *Empty table!* Not building a parser cache"):""}else{if(K.debug){B=new Date();n("Detecting parsers for each column")}}J=[];while(D':"";D.$headers=b(F).find(D.selectorHeaders).each(function(H){A=b(this);y=D.headers[H];D.headerContent[H]=b(this).html();G=D.headerTemplate.replace(/\{content\}/g,b(this).html()).replace(/\{icon\}/g,B);if(D.onRenderTemplate){C=D.onRenderTemplate.apply(A,[H,G]);if(C&&typeof C==="string"){G=C}}b(this).html('
");if(D.onRenderHeader){D.onRenderHeader.apply(A,[H])}this.column=parseInt(b(this).attr("data-column"),10);this.order=g(c.getData(A,y,"sortInitialOrder")||D.sortInitialOrder)?[1,0,2]:[0,1,2];this.count=-1;this.lockedOrder=false;E=c.getData(A,y,"lockedOrder")||false;if(typeof E!=="undefined"&&E!==false){this.order=this.lockedOrder=g(E)?[1,1,1]:[0,0,0]}A.addClass(c.css.header+" "+D.cssHeader);D.headerList[H]=this;A.parent().addClass(c.css.headerRow+" "+D.cssHeaderRow).attr("role","row");if(D.tabIndex){A.attr("tabindex",0)}}).attr({scope:"col",role:"columnheader"});k(F);if(D.debug){h("Built headers:",z);n(D.$headers)}}function o(z,y,B){var A=z.config;A.$table.find(A.selectorRemove).remove();j(z);x(z);w(A.$table,y,B)}function k(A){var z,y,B=A.config;B.$headers.each(function(C,D){y=b(D);z=c.getData(D,B.headers[C],"sorter")==="false";D.sortDisabled=z;y[z?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+z);if(A.id){if(z){y.removeAttr("aria-controls")}else{y.attr("aria-controls",A.id)}}})}function d(I){var C,A,y,F=I.config,E=F.sortList,D=E.length,H=c.css.sortNone+" "+F.cssNone,B=[c.css.sortAsc+" "+F.cssAsc,c.css.sortDesc+" "+F.cssDesc],G=["ascending","descending"],z=b(I).find("tfoot tr").children().add(F.$extraHeaders).removeClass(B.join(" "));F.$headers.removeClass(B.join(" ")).addClass(H).attr("aria-sort","none");for(A=0;A"),z=b(A).width();b(A.tBodies[0]).find("tr:first").children("td:visible").each(function(){y.append(b("").css("width",parseInt((b(this).width()/z)*1000,10)/10+"%"))});b(A).prepend(y)}}function t(C,D,z){var B,A,E,F=C.config,y=D||F.sortList;F.sortList=[];b.each(y,function(H,G){B=[parseInt(G[0],10),parseInt(G[1],10)];E=F.$headers.filter('[data-column="'+B[0]+'"]:last')[0];if(E){F.sortList.push(B);A=b.inArray(B[1],E.order);if(z){E.count=E.count+1}E.count=A>=0?A:B[1]%(F.sortReset?3:2)}})}function l(z,y){return(z&&z[y])?z[y].type||"":""}function u(H,F,y){var C,B,z,A,I,D=H.config,E=!y[D.sortMultiSortKey],G=D.$table;G.trigger("sortStart",H);F.count=y[D.sortResetKey]?2:(F.count+1)%(D.sortReset?3:2);if(D.sortRestart){B=F;D.$headers.each(function(){if(this!==B&&(E||!b(this).is("."+c.css.sortDesc+",."+c.css.sortAsc))){this.count=-1}})}B=F.column;if(E){D.sortList=[];if(D.sortForce!==null){C=D.sortForce;for(z=0;z1){for(z=1;z1){for(z=0;z=0){D.sortList.splice(I,1)}}}if(c.isValueInArray(B,D.sortList)>=0){for(z=0;z1){for(z=1;z=0){L=B.eq(K).find("tr").index(C);G=F.index();A.cache[K].normalized[L][A.columns].$row=C;H=A.cache[K].normalized[L][G]=A.parsers[G].format(e(z,I,G),z,I,G);if((A.parsers[G].type||"").toLowerCase()==="numeric"){A.cache[K].colMax[G]=Math.max(Math.abs(H)||0,A.cache[K].colMax[G]||0)}w(y,E,J)}}).bind("addRows"+A.namespace,function(F,H,G,I){F.stopPropagation();z.isUpdating=true;if(p(A.cache)){k(z);o(z,G,I)}else{H=b(H);var E,D,C,B,J,L=H.filter("tr").length,K=y.find("tbody").index(H.parents("tbody").filter(":first"));if(!(A.parsers&&A.parsers.length)){j(z)}for(E=0;E1)||(D[0]===1&&parseInt(D[1],10)>=4)})(b.fn.jquery.split("."));C.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,"null":0,top:true,bottom:false};if(!/tablesorter\-/.test(A.attr("class"))){z=(C.theme!==""?" tablesorter-"+C.theme:"")}C.$table=A.addClass(c.css.table+" "+C.tableClass+z).attr({role:"grid"});if(!C.namespace){C.namespace=".tablesorter"+Math.random().toString(16).slice(2)}else{C.namespace="."+C.namespace.replace(/\W/g,"")}C.$tbodies=A.children("tbody:not(."+C.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"});if(C.$table.find("caption").length){C.$table.attr("aria-labelledby","theCaption")}C.widgetInit={};C.textExtraction=C.$table.attr("data-text-extraction")||C.textExtraction||"basic";s(B);m(B);j(B);if(!C.delayInit){x(B)}c.bindEvents(B,C.$headers,true);q(B);if(C.supportsDataObject&&typeof A.data().sortlist!=="undefined"){C.sortList=A.data().sortlist}else{if(y&&(A.metadata()&&A.metadata().sortlist)){C.sortList=A.metadata().sortlist}}c.applyWidget(B,true);if(C.sortList.length>0){A.trigger("sorton",[C.sortList,{},!C.initWidgets,true])}else{d(B);if(C.initWidgets){c.applyWidget(B,false)}}if(C.showProcessing){A.unbind("sortBegin"+C.namespace+" sortEnd"+C.namespace).bind("sortBegin"+C.namespace+" sortEnd"+C.namespace,function(D){clearTimeout(C.processTimer);c.isProcessing(B);if(D.type==="sortBegin"){C.processTimer=setTimeout(function(){c.isProcessing(B,true)},500)}})}B.hasInitialized=true;B.isProcessing=false;if(C.debug){c.benchmark("Overall initialization time",b.data(B,"startoveralltimer"))}A.trigger("tablesorter-initialized",B);if(typeof C.initialized==="function"){C.initialized(B)}};c.computeColumnIndex=function(G){var M=[],A={},L=0,E,D,C,B,K,N,O,J,y,I,F,H,z;for(E=0;E0){y=y.filter(function(){return this.sortDisabled?false:c.isValueInArray(parseFloat(b(this).attr("data-column")),C.sortList)>=0})}y.addClass(c.css.processing+" "+C.cssProcessing)}else{y.removeClass(c.css.processing+" "+C.cssProcessing)}};c.processTbody=function(A,y,z){A=b(A)[0];var B;if(z){A.isProcessing=true;y.before('');B=(b.fn.detach)?y.detach():y.remove();return B}B=b(A).find("span.tablesorter-savemyplace");y.insertAfter(B);B.remove();A.isProcessing=false};c.clearTableBody=function(y){b(y)[0].config.$tbodies.empty()};c.bindEvents=function(A,z,y){A=b(A)[0];var C,B=A.config;if(y!==true){B.$extraHeaders=B.$extraHeaders?B.$extraHeaders.add(z):z}z.find(B.selectorSort).add(z.filter(B.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(B.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(B.namespace+" "),function(F,G){var D,E=F.type;if(((F.which||F.button)!==1&&!/sort|keyup/.test(E))||(E==="keyup"&&F.which!==13)){return}if(E==="mouseup"&&G!==true&&(new Date().getTime()-C>250)){return}if(E==="mousedown"){C=new Date().getTime();return F.target.tagName==="INPUT"?"":!B.cancelSelection}if(B.delayInit&&p(B.cache)){x(A)}D=b.fn.closest?b(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:b(this).parents("th, td")[0];D=B.$headers[z.index(D)];if(!D.sortDisabled){u(A,D,F)}});if(B.cancelSelection){z.attr("unselectable","on").bind("selectstart",false).css({"user-select":"none",MozUserSelect:"none"})}};c.restoreHeaders=function(y){var z=b(y)[0].config;z.$table.find(z.selectorHeaders).each(function(A){if(b(this).find("."+c.css.headerIn).length){b(this).html(z.headerContent[A])}})};c.destroy=function(C,z,F){C=b(C)[0];if(!C.hasInitialized){return}c.refreshWidgets(C,true,true);var E=b(C),D=C.config,y=E.find("thead:first"),A=y.find("tr."+c.css.headerRow).removeClass(c.css.headerRow+" "+D.cssHeaderRow),B=E.find("tfoot:first > tr").children("th, td");if(z===false&&b.inArray("uitheme",D.widgets)>=0){E.trigger("applyWidgetId",["uitheme"]);E.trigger("applyWidgetId",["zebra"])}y.find("tr").not(A).remove();E.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd ".split(" ").join(D.namespace+" "));D.$headers.add(B).removeClass([c.css.header,D.cssHeader,D.cssAsc,D.cssDesc,c.css.sortAsc,c.css.sortDesc,c.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true");A.find(D.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(D.namespace+" "));c.restoreHeaders(C);E.toggleClass(c.css.table+" "+D.tableClass+" tablesorter-"+D.theme,z===false);C.hasInitialized=false;delete C.config.cache;if(typeof F==="function"){F(C)}};c.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i};c.sortNatural=function(E,D){if(E===D){return 0}var G,A,C,I,z,H,B,F,y=c.regex;if(y.hex.test(D)){A=parseInt(E.match(y.hex),16);I=parseInt(D.match(y.hex),16);if(AI){return 1}}G=E.replace(y.chunk,"\\0$1\\0").replace(y.chunks,"").split("\\0");C=D.replace(y.chunk,"\\0$1\\0").replace(y.chunks,"").split("\\0");F=Math.max(G.length,C.length);for(B=0;BH){return 1}}return 0};c.sortNaturalAsc=function(z,y,A,B,D){if(z===y){return 0}var C=D.string[(D.empties[A]||D.emptyTo)];if(z===""&&C!==0){return typeof C==="boolean"?(C?-1:1):-C||-1}if(y===""&&C!==0){return typeof C==="boolean"?(C?1:-1):C||1}return c.sortNatural(z,y)};c.sortNaturalDesc=function(z,y,A,B,D){if(z===y){return 0}var C=D.string[(D.empties[A]||D.emptyTo)];if(z===""&&C!==0){return typeof C==="boolean"?(C?-1:1):C||1}if(y===""&&C!==0){return typeof C==="boolean"?(C?1:-1):-C||-1}return c.sortNatural(y,z)};c.sortText=function(z,y){return z>y?1:(z1){r=0;i=e.children("tr:visible").not(n.selectorRemove);i.each(function(){m=b(this);if(!d.test(this.className)){r++}j=(r%2===0);m.removeClass(p.zebra[j?1:0]).addClass(p.zebra[j?0:1])})}}if(n.debug){a.benchmark("Applying Zebra widget",f)}},remove:function(i,j,g){var f,e,d=j.$tbodies,h=(g.zebra||["even","odd"]).join(" ");for(f=0;f0){$(this).find("th").each(function(){$(this).addClass("sorter-false")[0].sortDisabled=true});$(this).trigger("update")}})};