!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){return function(t){"use strict";var r=t.tablesorter={version:"2.28.4",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[],globalize:0,imgAttr:0},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,"null":0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(e,a){if(!e||!e.tHead||0===e.tBodies.length||e.hasInitialized===!0)return void(a.debug&&(e.hasInitialized?console.warn("Stopping initialization. Tablesorter has already been initialized"):console.error("Stopping initialization! No table, thead or tbody",e)));var i="",s=t(e),o=t.metadata;e.hasInitialized=!1,e.isProcessing=!0,e.config=a,t.data(e,"tablesorter",a),a.debug&&(console[console.group?"group":"log"]("Initializing tablesorter v"+r.version),t.data(e,"startoveralltimer",new Date)),a.supportsDataObject=function(e){return e[0]=parseInt(e[0],10),e[0]>1||1===e[0]&&parseInt(e[1],10)>=4}(t.fn.jquery.split(".")),a.emptyTo=a.emptyTo.toLowerCase(),a.stringTo=a.stringTo.toLowerCase(),a.last={sortList:[],clickedIndex:-1},/tablesorter\-/.test(s.attr("class"))||(i=""!==a.theme?" tablesorter-"+a.theme:""),a.table=e,a.$table=s.addClass(r.css.table+" "+a.tableClass+i).attr("role","grid"),a.$headers=s.find(a.selectorHeaders),a.namespace?a.namespace="."+a.namespace.replace(r.regex.nonWord,""):a.namespace=".tablesorter"+Math.random().toString(16).slice(2),a.$table.children().children("tr").attr("role","row"),a.$tbodies=s.children("tbody:not(."+a.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),a.$table.children("caption").length&&(i=a.$table.children("caption")[0],i.id||(i.id=a.namespace.slice(1)+"caption"),a.$table.attr("aria-labelledby",i.id)),a.widgetInit={},a.textExtraction=a.$table.attr("data-text-extraction")||a.textExtraction||"basic",r.buildHeaders(a),r.fixColumnWidth(e),r.addWidgetFromClass(e),r.applyWidgetOptions(e),r.setupParsers(a),a.totalRows=0,r.validateOptions(a),a.delayInit||r.buildCache(a),r.bindEvents(e,a.$headers,!0),r.bindMethods(a),a.supportsDataObject&&"undefined"!=typeof s.data().sortlist?a.sortList=s.data().sortlist:o&&s.metadata()&&s.metadata().sortlist&&(a.sortList=s.metadata().sortlist),r.applyWidget(e,!0),a.sortList.length>0?r.sortOn(a,a.sortList,{},!a.initWidgets):(r.setHeadersCss(a),a.initWidgets&&r.applyWidget(e,!1)),a.showProcessing&&s.unbind("sortBegin"+a.namespace+" sortEnd"+a.namespace).bind("sortBegin"+a.namespace+" sortEnd"+a.namespace,function(t){clearTimeout(a.timerProcessing),r.isProcessing(e),"sortBegin"===t.type&&(a.timerProcessing=setTimeout(function(){r.isProcessing(e,!0)},500))}),e.hasInitialized=!0,e.isProcessing=!1,a.debug&&(console.log("Overall initialization time:"+r.benchmark(t.data(e,"startoveralltimer"))),a.debug&&console.groupEnd&&console.groupEnd()),s.triggerHandler("tablesorter-initialized",e),"function"==typeof a.initialized&&a.initialized(e)},bindMethods:function(e){var a=e.$table,i=e.namespace,s="sortReset update updateRows updateAll updateHeaders addRows updateCell updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(i+" ");a.unbind(s.replace(r.regex.spaces," ")).bind("sortReset"+i,function(e,t){e.stopPropagation(),r.sortReset(this.config,t)}).bind("updateAll"+i,function(e,t,a){e.stopPropagation(),r.updateAll(this.config,t,a)}).bind("update"+i+" updateRows"+i,function(e,t,a){e.stopPropagation(),r.update(this.config,t,a)}).bind("updateHeaders"+i,function(e,t){e.stopPropagation(),r.updateHeaders(this.config,t)}).bind("updateCell"+i,function(e,t,a,i){e.stopPropagation(),r.updateCell(this.config,t,a,i)}).bind("addRows"+i,function(e,t,a,i){e.stopPropagation(),r.addRows(this.config,t,a,i)}).bind("updateComplete"+i,function(){this.isUpdating=!1}).bind("sorton"+i,function(e,t,a,i){e.stopPropagation(),r.sortOn(this.config,t,a,i)}).bind("appendCache"+i,function(e,a,i){e.stopPropagation(),r.appendCache(this.config,i),t.isFunction(a)&&a(this)}).bind("updateCache"+i,function(e,t,a){e.stopPropagation(),r.updateCache(this.config,t,a)}).bind("applyWidgetId"+i,function(e,t){e.stopPropagation(),r.applyWidgetId(this,t)}).bind("applyWidgets"+i,function(e,t){e.stopPropagation(),r.applyWidget(this,t)}).bind("refreshWidgets"+i,function(e,t,a){e.stopPropagation(),r.refreshWidgets(this,t,a)}).bind("removeWidget"+i,function(e,t,a){e.stopPropagation(),r.removeWidget(this,t,a)}).bind("destroy"+i,function(e,t,a){e.stopPropagation(),r.destroy(this,t,a)}).bind("resetToLoadState"+i,function(a){a.stopPropagation(),r.removeWidget(this,!0,!1);var i=t.extend(!0,{},e.originalSettings);e=t.extend(!0,r.defaults,i),e.originalSettings=i,this.hasInitialized=!1,r.setup(this,e)})},bindEvents:function(e,a,i){e=t(e)[0];var s,o=e.config,l=o.namespace,n=null;i!==!0&&(a.addClass(l.slice(1)+"_extra_headers"),s=t.fn.closest?a.closest("table")[0]:a.parents("table")[0],s&&"TABLE"===s.nodeName&&s!==e&&t(s).addClass(l.slice(1)+"_extra_table")),s=(o.pointerDown+" "+o.pointerUp+" "+o.pointerClick+" sort keyup ").replace(r.regex.spaces," ").split(" ").join(l+" "),a.find(o.selectorSort).add(a.filter(o.selectorSort)).unbind(s).bind(s,function(e,i){var s,l,c,d=t(e.target),u=" "+e.type+" ";if(!(1!==(e.which||e.button)&&!u.match(" "+o.pointerClick+" | sort | keyup ")||" keyup "===u&&e.which!==r.keyCodes.enter||u.match(" "+o.pointerClick+" ")&&"undefined"!=typeof e.which||u.match(" "+o.pointerUp+" ")&&n!==e.target&&i!==!0)){if(u.match(" "+o.pointerDown+" "))return n=e.target,c=d.jquery.split("."),void("1"===c[0]&&c[1]<4&&e.preventDefault());if(n=null,r.regex.formElements.test(e.target.nodeName)||d.hasClass(o.cssNoSort)||d.parents("."+o.cssNoSort).length>0||d.parents("button").length>0)return!o.cancelSelection;o.delayInit&&r.isEmptyObject(o.cache)&&r.buildCache(o),s=t.fn.closest?t(this).closest("th, td"):/TH|TD/.test(this.nodeName)?t(this):t(this).parents("th, td"),c=a.index(s),o.last.clickedIndex=c<0?s.attr("data-column"):c,l=o.$headers[o.last.clickedIndex],l&&!l.sortDisabled&&r.initSort(o,l,e)}}),o.cancelSelection&&a.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},buildHeaders:function(e){var a,i,s,o;for(e.headerList=[],e.headerContent=[],e.sortVars=[],e.debug&&(s=new Date),e.columns=r.computeColumnIndex(e.$table.children("thead, tfoot").children("tr")),i=e.cssIcon?'':"",e.$headers=t(t.map(e.$table.find(e.selectorHeaders),function(a,s){var o,l,n,c,d,u=t(a);if(!u.parent().hasClass(e.cssIgnoreRow))return o=r.getColumnData(e.table,e.headers,s,!0),e.headerContent[s]=u.html(),""===e.headerTemplate||u.find("."+r.css.headerIn).length||(c=e.headerTemplate.replace(r.regex.templateContent,u.html()).replace(r.regex.templateIcon,u.find("."+r.css.icon).length?"":i),e.onRenderTemplate&&(l=e.onRenderTemplate.apply(u,[s,c]),l&&"string"==typeof l&&(c=l)),u.html('
'+c+"
")),e.onRenderHeader&&e.onRenderHeader.apply(u,[s,e,e.$table]),n=parseInt(u.attr("data-column"),10),a.column=n,d=r.getOrder(r.getData(u,o,"sortInitialOrder")||e.sortInitialOrder),e.sortVars[n]={count:-1,order:d?e.sortReset?[1,0,2]:[1,0]:e.sortReset?[0,1,2]:[0,1],lockedOrder:!1},d=r.getData(u,o,"lockedOrder")||!1,"undefined"!=typeof d&&d!==!1&&(e.sortVars[n].lockedOrder=!0,e.sortVars[n].order=r.getOrder(d)?[1,1]:[0,0]),e.headerList[s]=a,u.addClass(r.css.header+" "+e.cssHeader).parent().addClass(r.css.headerRow+" "+e.cssHeaderRow).attr("role","row"),e.tabIndex&&u.attr("tabindex",0),a})),e.$headerIndexed=[],o=0;o0))for(l+=s,o+=s;s+1>0;)i.parsers[l-s]=f,i.extractors[l-s]=p,s--;l++}y+=i.parsers.length?m:1}e.debug&&(r.isEmptyObject(w)?console.warn(" No parsers detected!"):console[console.table?"table":"log"](w),console.log("Completed detecting parsers"+r.benchmark(g)),console.groupEnd&&console.groupEnd()),e.parsers=i.parsers,e.extractors=i.extractors},addParser:function(e){var t,a=r.parsers.length,i=!0;for(t=0;t=0;)if(o=r.parsers[c],o&&"text"!==o.id&&o.is&&o.is(u,e.table,d,l))return o;return r.getParserById("text")},getElementText:function(e,a,i){if(!a)return"";var s,o=e.textExtraction||"",l=a.jquery?a:t(a);return"string"==typeof o?"basic"===o&&"undefined"!=typeof(s=l.attr(e.textAttribute))?t.trim(s):t.trim(a.textContent||l.text()):"function"==typeof o?t.trim(o(l[0],e.table,i)):"function"==typeof(s=r.getColumnData(e.table,o,i))?t.trim(s(l[0],e.table,i)):t.trim(l[0].textContent||l.text())},getParsedText:function(e,t,a,i){"undefined"==typeof i&&(i=r.getElementText(e,t,a));var s=""+i,o=e.parsers[a],l=e.extractors[a];return o&&(l&&"function"==typeof l.format&&(i=l.format(i,e.table,t,a)),s="no-parser"===o.id?"":o.format(""+i,e.table,t,a),e.ignoreCase&&"string"==typeof s&&(s=s.toLowerCase())),s},buildCache:function(e,a,i){var s,o,l,n,c,d,u,f,p,g,h,m,b,y,w,_,v,x,C,$,S,F,R=e.table,z=e.parsers;if(e.$tbodies=e.$table.children("tbody:not(."+e.cssInfoBlock+")"),u="undefined"==typeof i?e.$tbodies:i,e.cache={},e.totalRows=0,!z)return e.debug?console.warn("Warning: *Empty table!* Not building a cache"):"";for(e.debug&&(m=new Date),e.showProcessing&&r.isProcessing(R,!0),d=0;d0&&(x+=v,$+=v)),x++;else{for(y.$row=f,y.order=n,x=0,$=e.columns,c=0;c<$;++c){if(h=f[0].cells[c],h&&x0)){for(F=0;F<=v;)l=e.duplicateSpan||0===F?o:"string"!=typeof e.textExtraction?r.getElementText(e,h,x+F)||"":"",y.raw[x+F]=l,p[x+F]=l,F++;x+=v,$+=v}x++}p[e.columns]=y,s.normalized[s.normalized.length]=p}s.colMax=_,e.totalRows+=s.normalized.length}if(e.showProcessing&&r.isProcessing(R),e.debug){for(S=Math.min(5,e.cache[0].normalized.length),console[console.group?"group":"log"]("Building cache for "+e.totalRows+" rows (showing "+S+" rows in log) and "+e.columns+" columns"+r.benchmark(m)),o={},c=0;c-1);return a}),a=a.not(".sorter-false").filter('[data-column="'+o[i][0]+'"]'+(1===l?":last":"")),a.length)){for(s=0;s=0?s:o[1]%u.length}},updateAll:function(e,t,a){var i=e.table;i.isUpdating=!0,r.refreshWidgets(i,!0,!0),r.buildHeaders(e),r.bindEvents(i,e.$headers,!0),r.bindMethods(e),r.commonUpdate(e,t,a)},update:function(e,t,a){var i=e.table;i.isUpdating=!0,r.updateHeader(e),r.commonUpdate(e,t,a)},updateHeaders:function(e,t){e.table.isUpdating=!0,r.buildHeaders(e),r.bindEvents(e.table,e.$headers,!0),r.resortComplete(e,t)},updateCell:function(e,a,i,s){if(r.isEmptyObject(e.cache))return r.updateHeader(e),void r.commonUpdate(e,i,s);e.table.isUpdating=!0,e.$table.find(e.selectorRemove).remove();var o,l,n,c,d,u,f=e.$tbodies,p=t(a),g=f.index(t.fn.closest?p.closest("tbody"):p.parents("tbody").filter(":first")),h=e.cache[g],m=t.fn.closest?p.closest("tr"):p.parents("tr").filter(":first");if(a=p[0],f.length&&g>=0){if(n=f.eq(g).find("tr").index(m),d=h.normalized[n],u=m[0].cells.length,u!==e.columns)for(c=0,o=!1,l=0;l0&&(h+=w),h++;b[a.columns]=m,a.cache[c].normalized[g]=b}r.checkResort(a,s,o)}},updateCache:function(e,t,a){e.parsers&&e.parsers.length||r.setupParsers(e,a),r.buildCache(e,t,a)},appendCache:function(e,t){var a,i,s,o,l,n,c,d=e.table,u=e.widgetOptions,f=e.$tbodies,p=[],g=e.cache;if(r.isEmptyObject(g))return e.appender?e.appender(d,p):d.isUpdating?e.$table.triggerHandler("updateComplete",d):"";for(e.debug&&(c=new Date),n=0;n1))for(o=1;o=0)for(o=0;o1))for(o=1;oi)return 1}for(a=(e||"").replace(c.chunk,"\\0$1\\0").replace(c.chunks,"").split("\\0"),i=(t||"").replace(c.chunk,"\\0$1\\0").replace(c.chunks,"").split("\\0"),n=Math.max(a.length,i.length),l=0;lo)return 1}return 0},sortNaturalAsc:function(e,t,a,i){if(e===t)return 0;var s=r.string[i.empties[a]||i.emptyTo];return""===e&&0!==s?"boolean"==typeof s?s?-1:1:-s||-1:""===t&&0!==s?"boolean"==typeof s?s?1:-1:s||1:r.sortNatural(e,t)},sortNaturalDesc:function(e,t,a,i){if(e===t)return 0;var s=r.string[i.empties[a]||i.emptyTo];return""===e&&0!==s?"boolean"==typeof s?s?-1:1:s||1:""===t&&0!==s?"boolean"==typeof s?s?1:-1:-s||-1:r.sortNatural(t,e)},sortText:function(e,t){return e>t?1:e=0&&i!==!0&&c.widgets.splice(l,1),o&&o.remove&&(c.debug&&console.log((i?"Refreshing":"Removing")+' "'+a[s]+'" widget'),o.remove(e,c,c.widgetOptions,i),c.widgetInit[a[s]]=!1)},refreshWidgets:function(e,a,i){e=t(e)[0];var s,o,l=e.config,n=l.widgets,c=r.widgets,d=c.length,u=[],f=function(e){t(e).triggerHandler("refreshComplete")};for(s=0;s'),a=n.$table.width(),s=n.$tbodies.find("tr:first").children(":visible"),o=s.length,l=0;l").css("width",i));n.$table.prepend(c)}},getData:function(e,r,a){var i,s,o="",l=t(e);return l.length?(i=!!t.metadata&&l.metadata(),s=" "+(l.attr("class")||""),"undefined"!=typeof l.data(a)||"undefined"!=typeof l.data(a.toLowerCase())?o+=l.data(a)||l.data(a.toLowerCase()):i&&"undefined"!=typeof i[a]?o+=i[a]:r&&"undefined"!=typeof r[a]?o+=r[a]:" "!==s&&s.match(" "+a+"-")&&(o=s.match(new RegExp("\\s"+a+"-([\\w-]+)"))[1]||""),t.trim(o)):""},getColumnData:function(e,r,a,i,s){if("object"!=typeof r||null===r)return r;e=t(e)[0];var o,l,n=e.config,c=s||n.$headers,d=n.$headerIndexed&&n.$headerIndexed[a]||c.filter('[data-column="'+a+'"]:last');if("undefined"!=typeof r[a])return i?r[a]:r[c.index(d)];for(l in r)if("string"==typeof l&&(o=d.filter(l).add(d.find(l)),o.length))return r[l]},isProcessing:function(e,a,i){e=t(e);var s=e[0].config,o=i||e.find("."+r.css.header);a?("undefined"!=typeof i&&s.sortList.length>0&&(o=o.filter(function(){return!this.sortDisabled&&r.isValueInArray(parseFloat(t(this).attr("data-column")),s.sortList)>=0})),e.add(o).addClass(r.css.processing+" "+s.cssProcessing)):e.add(o).removeClass(r.css.processing+" "+s.cssProcessing)},processTbody:function(e,r,a){if(e=t(e)[0],a)return e.isProcessing=!0,r.before(''),t.fn.detach?r.detach():r.remove();var i=t(e).find("colgroup.tablesorter-savemyplace");r.insertAfter(i),i.remove(),e.isProcessing=!1},clearTableBody:function(e){t(e)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(e){var t,a="[",i=r.characterEquivalents;if(!r.characterRegex){r.characterRegexArray={};for(t in i)"string"==typeof t&&(a+=i[t],r.characterRegexArray[t]=new RegExp("["+i[t]+"]","g"));r.characterRegex=new RegExp(a+"]")}if(r.characterRegex.test(e))for(t in i)"string"==typeof t&&(e=e.replace(r.characterRegexArray[t],t));return e},validateOptions:function(e){var a,i,s,o,l="headers sortForce sortList sortAppend widgets".split(" "),n=e.originalSettings;if(n){e.debug&&(o=new Date);for(a in n)if(s=typeof r.defaults[a],"undefined"===s)console.warn('Tablesorter Warning! "table.config.'+a+'" option not recognized');else if("object"===s)for(i in n[a])s=r.defaults[a]&&typeof r.defaults[a][i],t.inArray(a,l)<0&&"undefined"===s&&console.warn('Tablesorter Warning! "table.config.'+a+"."+i+'" option not recognized');e.debug&&console.log("validate options time:"+r.benchmark(o))}},restoreHeaders:function(e){var a,i,s=t(e)[0].config,o=s.$table.find(s.selectorHeaders),l=o.length;for(a=0;a tr").children("th, td");a===!1&&t.inArray("uitheme",l.widgets)>=0&&(o.triggerHandler("applyWidgetId",["uitheme"]),o.triggerHandler("applyWidgetId",["zebra"])),c.find("tr").not(d).remove(),s="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(l.namespace+" "),o.removeData("tablesorter").unbind(s.replace(r.regex.spaces," ")),l.$headers.add(u).removeClass([r.css.header,l.cssHeader,l.cssAsc,l.cssDesc,r.css.sortAsc,r.css.sortDesc,r.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),d.find(l.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(l.namespace+" ").replace(r.regex.spaces," ")),r.restoreHeaders(e),o.toggleClass(r.css.table+" "+l.tableClass+" tablesorter-"+l.theme,a===!1),e.hasInitialized=!1,delete e.config.cache,"function"==typeof i&&i(e),n&&console.log("tablesorter has been removed")}}};t.fn.tablesorter=function(e){return this.each(function(){var a=this,i=t.extend(!0,{},r.defaults,e,r.instanceMethods);i.originalSettings=e,!a.hasInitialized&&r.buildTable&&"TABLE"!==this.nodeName?r.buildTable(a,i):r.setup(a,i)})},window.console&&window.console.log||(r.logs=[],console={},console.log=console.warn=console.error=console.table=function(){var e=arguments.length>1?arguments:arguments[0];r.logs[r.logs.length]={date:Date.now(),log:e}}),r.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),r.addParser({id:"text",is:function(){return!0},format:function(e,a){var i=a.config;return e&&(e=t.trim(i.ignoreCase?e.toLocaleLowerCase():e),e=i.sortLocaleCompare?r.replaceAccents(e):e),e},type:"text"}),r.regex.nondigit=/[^\w,. \-()]/g,r.addParser({id:"digit",is:function(e){return r.isDigit(e)},format:function(e,a){var i=r.formatFloat((e||"").replace(r.regex.nondigit,""),a);return e&&"number"==typeof i?i:e?t.trim(e&&a.config.ignoreCase?e.toLocaleLowerCase():e):e},type:"numeric"}),r.regex.currencyReplace=/[+\-,. ]/g,r.regex.currencyTest=/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/,r.addParser({id:"currency",is:function(e){return e=(e||"").replace(r.regex.currencyReplace,""),r.regex.currencyTest.test(e)},format:function(e,a){var i=r.formatFloat((e||"").replace(r.regex.nondigit,""),a);return e&&"number"==typeof i?i:e?t.trim(e&&a.config.ignoreCase?e.toLocaleLowerCase():e):e},type:"numeric"}),r.regex.urlProtocolTest=/^(https?|ftp|file):\/\//,r.regex.urlProtocolReplace=/(https?|ftp|file):\/\/(www\.)?/,r.addParser({id:"url",is:function(e){return r.regex.urlProtocolTest.test(e)},format:function(e){return e?t.trim(e.replace(r.regex.urlProtocolReplace,"")):e},type:"text"}),r.regex.dash=/-/g,r.regex.isoDate=/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,r.addParser({id:"isoDate",is:function(e){return r.regex.isoDate.test(e)},format:function(e,t){var a=e?new Date(e.replace(r.regex.dash,"/")):e;return a instanceof Date&&isFinite(a)?a.getTime():e},type:"numeric"}),r.regex.percent=/%/g,r.regex.percentTest=/(\d\s*?%|%\s*?\d)/,r.addParser({id:"percent",is:function(e){return r.regex.percentTest.test(e)&&e.length<15},format:function(e,t){return e?r.formatFloat(e.replace(r.regex.percent,""),t):e},type:"numeric"}),r.addParser({id:"image",is:function(e,t,r,a){return a.find("img").length>0},format:function(e,r,a){return t(a).find("img").attr(r.config.imgAttr||"alt")||e},parsed:!0,type:"text"}),r.regex.dateReplace=/(\S)([AP]M)$/i,r.regex.usLongDateTest1=/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i,r.regex.usLongDateTest2=/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i,r.addParser({id:"usLongDate",is:function(e){return r.regex.usLongDateTest1.test(e)||r.regex.usLongDateTest2.test(e)},format:function(e,t){var a=e?new Date(e.replace(r.regex.dateReplace,"$1 $2")):e;return a instanceof Date&&isFinite(a)?a.getTime():e},type:"numeric"}),r.regex.shortDateTest=/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/,r.regex.shortDateReplace=/[\-.,]/g,r.regex.shortDateXXY=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,r.regex.shortDateYMD=/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,r.convertFormat=function(e,t){e=(e||"").replace(r.regex.spaces," ").replace(r.regex.shortDateReplace,"/"),"mmddyyyy"===t?e=e.replace(r.regex.shortDateXXY,"$3/$1/$2"):"ddmmyyyy"===t?e=e.replace(r.regex.shortDateXXY,"$3/$2/$1"):"yyyymmdd"===t&&(e=e.replace(r.regex.shortDateYMD,"$1/$2/$3"));var a=new Date(e);return a instanceof Date&&isFinite(a)?a.getTime():""},r.addParser({id:"shortDate",is:function(e){return e=(e||"").replace(r.regex.spaces," ").replace(r.regex.shortDateReplace,"/"),r.regex.shortDateTest.test(e)},format:function(e,t,a,i){if(e){var s=t.config,o=s.$headerIndexed[i],l=o.length&&o.data("dateFormat")||r.getData(o,r.getColumnData(t,s.headers,i),"dateFormat")||s.dateFormat;return o.length&&o.data("dateFormat",l),r.convertFormat(e,l)||e}return e},type:"numeric"}),r.regex.timeTest=/^(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i,r.regex.timeMatch=/(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i,r.addParser({id:"time",is:function(e){return r.regex.timeTest.test(e)},format:function(e,t){var a,i=(e||"").match(r.regex.timeMatch),s=new Date(e),o=e&&(null!==i?i[0]:"00:00 AM"),l=o?new Date("2000/01/01 "+o.replace(r.regex.dateReplace,"$1 $2")):o;return l instanceof Date&&isFinite(l)?(a=s instanceof Date&&isFinite(s)?s.getTime():0,a?parseFloat(l.getTime()+"."+s.getTime()):l.getTime()):e},type:"numeric"}),r.addParser({id:"metadata",is:function(){return!1},format:function(e,r,a){var i=r.config,s=i.parserMetadataName?i.parserMetadataName:"sortValue";return t(a).metadata()[s]},type:"numeric"}),r.addWidget({id:"zebra",priority:90,format:function(e,r,a){var i,s,o,l,n,c,d,u=new RegExp(r.cssChildRow,"i"),f=r.$tbodies.add(t(r.namespace+"_extra_table").children("tbody:not(."+r.cssInfoBlock+")"));for(n=0;n')}),a.cssIcon&&_.find("."+t.css.icon).removeClass(b?[g.icons,m].join(" "):"").addClass(x.icons||""),t.hasWidget(a.table,"filter")&&(o=function(){w.children("thead").children("."+t.css.filterRow).removeClass(b?g.filterRow||"":"").addClass(x.filterRow||"")},i.filter_initialized?o():w.one("filterInit",function(){o()}))),s=0;s1)))for(f=1;f=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(a,i,s){if((r.orTest.test(i.iFilter)||r.orSplit.test(i.filter))&&!r.regex.test(i.filter)){var o,l,n,c,d=e.extend({},i),u=i.filter.split(r.orSplit),f=i.iFilter.split(r.orSplit),p=u.length;for(o=0;o=u:o>u:r.ltTest.test(s.iFilter)&&(l=r.lteTest.test(s.iFilter)?o<=u:o=0)))}return null},exact:function(a,i){if(r.exact.test(i.iFilter)){var s=i.iFilter.replace(r.exact,""),o=t.parseFilter(a,s,i)||"";return i.anyMatch?e.inArray(o,i.rowArray)>=0:o==i.iExact}return null},range:function(e,i){if(r.toTest.test(i.iFilter)){var s,o,l,n,c=e.table,d=i.index,u=i.parsed[d],f=i.iFilter.split(r.toSplit);return o=f[0].replace(a.regex.nondigit,"")||"",l=a.formatFloat(t.parseFilter(e,o,i),c),o=f[1].replace(a.regex.nondigit,"")||"",n=a.formatFloat(t.parseFilter(e,o,i),c),(u||"numeric"===e.parsers[d].type)&&(s=e.parsers[d].format(""+f[0],c,e.$headers.eq(d),d),l=""===s||isNaN(s)?l:s,s=e.parsers[d].format(""+f[1],c,e.$headers.eq(d),d),n=""===s||isNaN(s)?n:s),!u&&"numeric"!==e.parsers[d].type||isNaN(l)||isNaN(n)?(o=isNaN(i.iExact)?i.iExact.replace(a.regex.nondigit,""):i.iExact,s=a.formatFloat(o,c)):s=i.cache,l>n&&(o=l,l=n,n=o),s>=l&&s<=n||""===l||""===n}return null},wild:function(e,a){if(r.wildOrTest.test(a.iFilter)){var i=""+(t.parseFilter(e,a.iFilter,a)||"");!r.wildTest.test(i)&&a.nestedFilters&&(i=a.isMatch?i:"^("+i+")$");try{return new RegExp(i.replace(r.wild01,"\\S{1}").replace(r.wild0More,"\\S*"),e.widgetOptions.filter_ignoreCase?"i":"").test(a.exact)}catch(s){return null}}return null},fuzzy:function(e,a){if(r.fuzzyTest.test(a.iFilter)){var i,s=0,o=a.iExact.length,l=a.iFilter.slice(1),n=t.parseFilter(e,l,a)||"";for(i=0;i]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+(c.data("placeholder")||c.attr("data-placeholder")||h.filter_placeholder.select||"")+"":"",u=l,n=l,l.indexOf(h.filter_selectSourceSeparator)>=0&&(u=l.split(h.filter_selectSourceSeparator),n=u[1],u=u[0]),o+="");g.$table.find("thead").find("select."+i.filter+'[data-column="'+d+'"]').append(o),n=h.filter_selectSource,f="function"==typeof n||a.getColumnData(s,n,d),f&&t.buildSelect(g.table,d,"",!0,c.hasClass(h.filter_onlyAvail))}t.buildDefault(s,!0),t.bindSearch(s,g.$table.find("."+i.filter),!0),h.filter_external&&t.bindSearch(s,h.filter_external),h.filter_hideFilters&&t.hideFilters(g),g.showProcessing&&(n="filterStart filterEnd ".split(" ").join(g.namespace+"filter "),g.$table.unbind(n.replace(a.regex.spaces," ")).bind(n,function(t,r){c=r?g.$table.find("."+i.header).filter("[data-column]").filter(function(){return""!==r[e(this).data("column")]}):"",a.isProcessing(s,"filterStart"===t.type,r?c:"")})),g.filteredRows=g.totalRows,n="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(g.namespace+"filter "),g.$table.unbind(n.replace(a.regex.spaces," ")).bind(n,function(){t.completeInit(this)}),g.pager&&g.pager.initialized&&!h.filter_initialized?(g.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){t.filterInitComplete(g)},100)):h.filter_initialized||t.completeInit(s)},completeInit:function(e){var r=e.config,i=r.widgetOptions,s=t.setDefaults(e,r,i)||[];s.length&&(r.delayInit&&""===s.join("")||a.setFilters(e,s,!0)),r.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){i.filter_initialized||t.filterInitComplete(r)},100)},formatterUpdated:function(e,t){var r=e&&e.closest("table")[0].config.widgetOptions;r&&!r.filter_initialized&&(r.filter_formatterInit[t]=1)},filterInitComplete:function(r){var a,i,s=r.widgetOptions,o=0,l=function(){s.filter_initialized=!0,r.lastSearch=r.$table.data("lastSearch"),r.$table.triggerHandler("filterInit",r),t.findRows(r.table,r.lastSearch||[])};if(e.isEmptyObject(s.filter_formatter))l();else{for(i=s.filter_formatterInit.length,a=0;a';for(c=0;c1?'").appendTo(s.$table.children("thead").eq(0)).children("td"),c=0;c").appendTo(l):(g=a.getColumnData(r,o.filter_formatter,c),g?(o.filter_formatterCount++,w=g(l,c),w&&0===w.length&&(w=l.children("input")),w&&(0===w.parent().length||w.parent().length&&w.parent()[0]!==l[0])&&l.append(w)):w=e('').appendTo(l),w&&(h=d.data("placeholder")||d.attr("data-placeholder")||o.filter_placeholder.search||"",w.attr("placeholder",h))),w&&(p=(e.isArray(o.filter_cssFilter)?"undefined"!=typeof o.filter_cssFilter[c]?o.filter_cssFilter[c]||"":"":o.filter_cssFilter)||"",w.addClass(i.filter+" "+p).attr("data-column",l.attr("data-column")),f&&(w.attr("placeholder","").addClass(i.filterDisabled)[0].disabled=!0)))},bindSearch:function(r,i,o){if(r=e(r)[0],i=e(i),i.length){var l,n=r.config,c=n.widgetOptions,d=n.namespace+"filter",u=c.filter_$externalFilters;o!==!0&&(l=c.filter_anyColumnSelector+","+c.filter_multipleColumnSelector,c.filter_$anyMatch=i.filter(l),u&&u.length?c.filter_$externalFilters=c.filter_$externalFilters.add(i):c.filter_$externalFilters=i,a.setFilters(r,n.$table.data("lastSearch")||[],o===!1)),l="keypress keyup keydown search change input ".split(" ").join(d+" "),i.attr("data-lastSearchTime",(new Date).getTime()).unbind(l.replace(a.regex.spaces," ")).bind("keydown"+d,function(e){if(e.which===s.escape&&!r.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+d,function(i){c=r.config.widgetOptions;var o=parseInt(e(this).attr("data-column"),10),l="boolean"==typeof c.filter_liveSearch?c.filter_liveSearch:a.getColumnData(r,c.filter_liveSearch,o);if("undefined"==typeof l&&(l=c.filter_liveSearch.fallback||!1),e(this).attr("data-lastSearchTime",(new Date).getTime()),i.which===s.escape)this.value=c.filter_resetOnEsc?"":n.lastSearch[o];else{if(l===!1)return;if(""!==this.value&&("number"==typeof l&&this.value.length=s.left&&i.which<=s.down)))return}t.searching(r,!0,!0,o)}).bind("search change keypress input ".split(" ").join(d+" "),function(i){var o=parseInt(e(this).attr("data-column"),10),l="boolean"==typeof c.filter_liveSearch?c.filter_liveSearch:a.getColumnData(r,c.filter_liveSearch,o);!r.config.widgetOptions.filter_initialized||i.which!==s.enter&&"search"!==i.type&&("change"!==i.type&&"input"!==i.type||l!==!0||this.value===n.lastSearch[o])||(i.preventDefault(), e(this).attr("data-lastSearchTime",(new Date).getTime()),t.searching(r,"keypress"!==i.type,!0,o))})}},searching:function(e,r,i,s){var o,l=e.config.widgetOptions;"undefined"==typeof s?o=!1:(o="boolean"==typeof l.filter_liveSearch?l.filter_liveSearch:a.getColumnData(e,l.filter_liveSearch,s),"undefined"==typeof o&&(o=l.filter_liveSearch.fallback||!1)),clearTimeout(l.filter_searchTimer),"undefined"==typeof r||r===!0?l.filter_searchTimer=setTimeout(function(){t.checkFilters(e,r,i)},o?l.filter_searchDelay:10):t.checkFilters(e,r,i)},checkFilters:function(r,s,o){var l=r.config,n=l.widgetOptions,c=e.isArray(s),d=c?s:a.getFilters(r,!0),u=(d||[]).join("");return e.isEmptyObject(l.cache)?void(l.delayInit&&(!l.pager||l.pager&&l.pager.initialized)&&a.updateCache(l,function(){t.checkFilters(r,!1,o)})):(c&&(a.setFilters(r,d,!1,o!==!0),n.filter_initialized||(l.lastCombinedFilter="")),n.filter_hideFilters&&l.$table.find("."+i.filterRow).triggerHandler(t.hideFiltersCheck(l)?"mouseleave":"mouseenter"),l.lastCombinedFilter!==u||s===!1?(s===!1&&(l.lastCombinedFilter=null,l.lastSearch=[]),d=d||[],d=Array.prototype.map?d.map(String):d.join("�").split("�"),n.filter_initialized&&l.$table.triggerHandler("filterStart",[d]),l.showProcessing?void setTimeout(function(){return t.findRows(r,d,u),!1},30):(t.findRows(r,d,u),!1)):void 0)},hideFiltersCheck:function(e){if("function"==typeof e.widgetOptions.filter_hideFilters){var t=e.widgetOptions.filter_hideFilters(e);if("boolean"==typeof t)return t}return""===a.getFilters(e.$table).join("")},hideFilters:function(r,a){var s;(a||r.$table).find("."+i.filterRow).addClass(i.filterRowHide).bind("mouseenter mouseleave",function(a){var o=a,l=e(this);clearTimeout(s),s=setTimeout(function(){/enter|over/.test(o.type)?l.removeClass(i.filterRowHide):e(document.activeElement).closest("tr")[0]!==l[0]&&l.toggleClass(i.filterRowHide,t.hideFiltersCheck(r))},200)}).find("input, select").bind("focus blur",function(a){var o=a,l=e(this).closest("tr");clearTimeout(s),s=setTimeout(function(){clearTimeout(s),l.toggleClass(i.filterRowHide,t.hideFiltersCheck(r)&&"focus"!==o.type)},200)})},defaultFilter:function(t,a){if(""===t)return t;var i=r.iQuery,s=a.match(r.igQuery).length,o=s>1?e.trim(t).split(/\s/):[e.trim(t)],l=o.length-1,n=0,c=a;for(l<1&&s>1&&(o[1]=o[0]);i.test(c);)c=c.replace(i,o[n++]||""),i.test(c)&&nl&&(a=o,o=l,l=a),l>=e.columns&&(l=e.columns-1);o<=l;o++)f[f.length]=o;t=t.replace(i[d],"")}if(!r&&/,/.test(t))for(n=t.split(/\s*,\s*/),u=n.length,c=0;c-1})},multipleColumns:function(r,a){var i=r.widgetOptions,s=i.filter_initialized||!a.filter(i.filter_anyColumnSelector).length,o=e.trim(t.getLatestSearch(a).attr("data-column")||"");return t.findRange(r,o,!s)},processTypes:function(r,a,i){var s,o=null,l=null;for(s in t.types)e.inArray(s,i.excludeMatch)<0&&null===l&&(l=t.types[s](r,a,i),null!==l&&(o=l));return o},matchType:function(e,t){var r,a=e.widgetOptions,s=e.$headerIndexed[t];return s.hasClass("filter-exact")?r=!1:s.hasClass("filter-match")?r=!0:(a.filter_columnFilters?s=e.$filters.find("."+i.filter).add(a.filter_$externalFilters).filter('[data-column="'+t+'"]'):a.filter_$externalFilters&&(s=a.filter_$externalFilters.filter('[data-column="'+t+'"]')),r=!!s.length&&"match"===e.widgetOptions.filter_matchType[(s[0].nodeName||"").toLowerCase()]),r},processRow:function(i,s,o){var l,n,c,d,u,f=i.widgetOptions,p=!0,g=f.filter_$anyMatch&&f.filter_$anyMatch.length,h=f.filter_$anyMatch&&f.filter_$anyMatch.length?t.multipleColumns(i,f.filter_$anyMatch):[];if(s.$cells=s.$row.children(),s.anyMatchFlag&&h.length>1||s.anyMatchFilter&&!g){if(s.anyMatch=!0,s.isMatch=!0,s.rowArray=s.$cells.map(function(t){if(e.inArray(t,h)>-1||s.anyMatchFilter&&!g)return s.parsed[t]?u=s.cacheArray[t]:(u=s.rawArray[t],u=e.trim(f.filter_ignoreCase?u.toLowerCase():u),i.sortLocaleCompare&&(u=a.replaceAccents(u))),u}).get(),s.filter=s.anyMatchFilter,s.iFilter=s.iAnyMatchFilter,s.exact=s.rowArray.join(" "),s.iExact=f.filter_ignoreCase?s.exact.toLowerCase():s.exact,s.cache=s.cacheArray.slice(0,-1).join(" "),o.excludeMatch=o.noAnyMatch,n=t.processTypes(i,s,o),null!==n)p=n;else if(f.filter_startsWith)for(p=!1,h=Math.min(i.columns,s.rowArray.length);!p&&h>0;)h--,p=p||0===s.rowArray[h].indexOf(s.iFilter);else p=(s.iExact+s.childRowText).indexOf(s.iFilter)>=0;if(s.anyMatch=!1,s.filters.join("")===s.filter)return p}for(h=0;h=0:s.filter===s.exact:"function"==typeof c?n=c(s.exact,s.cache,s.filter,h,s.$row,i,s):"function"==typeof c[d||s.filter]&&(u=d||s.filter,n=c[u](s.exact,s.cache,s.filter,h,s.$row,i,s))),null===n?(n=t.processTypes(i,s,o),null!==n?l=n:(u=(s.iExact+s.childRowText).indexOf(t.parseFilter(i,s.iFilter,s)),l=!f.filter_startsWith&&u>=0||f.filter_startsWith&&0===u)):l=n,p=!!l&&p);return p},findRows:function(i,s,o){if(i.config.lastCombinedFilter!==o&&i.config.widgetOptions.filter_initialized){var l,n,c,d,u,f,p,g,h,m,b,y,w,_,v,x,C,$,S,F,R,z,T,k,I=e.extend([],s),A=i.config,D=A.widgetOptions,E={anyMatch:!1,filters:s,filter_regexCache:[]},H={noAnyMatch:["range","operators"],functions:[],excludeFilter:[],defaultColFilter:[],defaultAnyFilter:a.getColumnData(i,D.filter_defaultFilter,A.columns,!0)||""};for(E.parsed=[],h=0;h1&&(isNaN(z[0])?e.each(A.headerContent,function(e,t){t.toLowerCase().indexOf(z[0])>-1&&(T=e,s[T]=z[1])}):T=parseInt(z[0],10)-1,T>=0&&T")>=0)return u;e.isArray(u)?n=u:"object"===e.type(c)&&u&&(n=u(r,i,s))}return n===!1&&(n=t.getOptions(r,i,s)),t.processOptions(r,i,n)},processOptions:function(t,r,i){if(!e.isArray(i))return!1;t=e(t)[0];var s,o,l,n,c,d,u=t.config,f="undefined"!=typeof r&&null!==r&&r>=0&&r'+(y.data("placeholder")||y.attr("data-placeholder")||b.filter_placeholder.select||"")+"",_=m.$table.find("thead").find("select."+i.filter+'[data-column="'+s+'"]').val();if("undefined"!=typeof o&&""!==o||(o=t.getOptionSource(a,s,n)),e.isArray(o)){for(c=0;c"}else""+h!="[object Object]"&&(u=h=(""+h).replace(r.quote,"""),d=u,u.indexOf(b.filter_selectSourceSeparator)>=0&&(f=u.split(b.filter_selectSourceSeparator),d=f[0],u=f[1]),w+=""!==h?"":"");o=[]}p=(m.$filters?m.$filters:m.$table.children("thead")).find("."+i.filter),b.filter_$externalFilters&&(p=p&&p.length?p.add(b.filter_$externalFilters):b.filter_$externalFilters),g=p.filter('select[data-column="'+s+'"]'),g.length&&(g[l?"html":"append"](w),e.isArray(o)||g.append(o).val(_),g.val(_))}},buildDefault:function(e,r){var i,s,o,l=e.config,n=l.widgetOptions,c=l.columns;for(i=0;i1&&(c=c.slice(1)),l===f.columns&&(d=c.filter(p.filter_anyColumnSelector),c=d.length?d:c),c.val(s[l]).trigger("change"+f.namespace)):(u[l]=c.val()||"",l===f.columns?c.slice(1).filter('[data-column*="'+c.attr("data-column")+'"]').val(u[l]):c.slice(1).val(u[l])),l===f.columns&&c.length&&(p.filter_$anyMatch=c));return u},a.setFilters=function(r,i,s,o){var l=r?e(r)[0].config:"",n=a.getFilters(r,!0,i,o);return"undefined"==typeof s&&(s=!0),l&&s&&(l.lastCombinedFilter=null,l.lastSearch=[],t.searching(l.table,i,o),l.$table.triggerHandler("filterFomatterUpdate")),0!==n.length}}(e),function(e,t){"use strict";var r=e.tablesorter||{};e.extend(r.css,{sticky:"tablesorter-stickyHeader",stickyVis:"tablesorter-sticky-visible",stickyHide:"tablesorter-sticky-hidden",stickyWrap:"tablesorter-sticky-wrapper"}),r.addHeaderResizeEvent=function(t,r,a){if(t=e(t)[0],t.config){var i={timer:250},s=e.extend({},i,a),o=t.config,l=o.widgetOptions,n=function(e){var t,r,a,i,s,n,c=o.$headers.length;for(l.resize_flag=!0,r=[],t=0;t=0&&!i.$table.hasClass("hasFilters"))){var o,l,n,c,d=i.$table,u=e(s.stickyHeaders_attachTo),f=i.namespace+"stickyheaders ",p=e(s.stickyHeaders_yScroll||s.stickyHeaders_attachTo||t),g=e(s.stickyHeaders_xScroll||s.stickyHeaders_attachTo||t),h=d.children("thead:first"),m=h.children("tr").not(".sticky-false").children(),b=d.children("tfoot"),y=isNaN(s.stickyHeaders_offset)?e(s.stickyHeaders_offset):"",w=y.length?y.height()||0:parseInt(s.stickyHeaders_offset,10)||0,_=d.parent().closest("."+r.css.table).hasClass("hasStickyHeaders")?d.parent().closest("table.tablesorter")[0].config.widgetOptions.$sticky.parent():[],v=_.length?_.height():0,x=s.$sticky=d.clone().addClass("containsStickyHeaders "+r.css.sticky+" "+s.stickyHeaders+" "+i.namespace.slice(1)+"_extra_table").wrap('
'),C=x.parent().addClass(r.css.stickyHide).css({position:u.length?"absolute":"fixed",padding:parseInt(x.parent().parent().css("padding-left"),10),top:w+v,left:0,visibility:"hidden",zIndex:s.stickyHeaders_zIndex||2}),$=x.children("thead:first"),S="",F=0,R=function(e,r){var a,i,s,o,l,n=e.filter(":visible"),c=n.length;for(a=0;aa.top&&c=0&&i.$filters&&i.$filters.eq(o).find("a, select, input").filter(":visible").focus())}),r.filter.bindSearch(d,c.find("."+r.css.filter)),s.filter_hideFilters&&r.filter.hideFilters(i,x)),s.stickyHeaders_addResizeEvent&&d.bind("resize"+i.namespace+"stickyheaders",function(){z()}),d.triggerHandler("stickyHeadersInit")}},remove:function(a,i,s){var o=i.namespace+"stickyheaders ";i.$table.removeClass("hasStickyHeaders").unbind("pagerComplete resize filterEnd stickyHeadersUpdate ".split(" ").join(o).replace(/\s+/g," ")).next("."+r.css.stickyWrap).remove(),s.$sticky&&s.$sticky.length&&s.$sticky.remove(),e(t).add(s.stickyHeaders_xScroll).add(s.stickyHeaders_yScroll).add(s.stickyHeaders_attachTo).unbind("scroll resize ".split(" ").join(o).replace(/\s+/g," ")),r.addHeaderResizeEvent(a,!0)}})}(e,window),function(e,t){"use strict";var r=e.tablesorter||{};e.extend(r.css,{resizableContainer:"tablesorter-resizable-container",resizableHandle:"tablesorter-resizable-handle",resizableNoSelect:"tablesorter-disableSelection",resizableStorage:"tablesorter-resizable"}),e(function(){var t="";e("head").append(t)}),r.resizable={init:function(t,a){if(!t.$table.hasClass("hasResizable")){t.$table.addClass("hasResizable");var i,s,o,l,n,c=t.$table,d=c.parent(),u=parseInt(c.css("margin-top"),10),f=a.resizable_vars={useStorage:r.storage&&a.resizable!==!1,$wrap:d,mouseXPosition:0,$target:null,$next:null,overflow:"auto"===d.css("overflow")||"scroll"===d.css("overflow")||"auto"===d.css("overflow-x")||"scroll"===d.css("overflow-x"),storedSizes:[]};for(r.resizableReset(t.table,!0),f.tableWidth=c.width(),f.fullWidth=Math.abs(d.width()-f.tableWidth)<20,f.useStorage&&f.overflow&&(r.storage(t.table,"tablesorter-table-original-css-width",f.tableWidth),n=r.storage(t.table,"tablesorter-table-resized-width")||"auto",r.resizable.setWidth(c,n,!0)),a.resizable_vars.storedSizes=l=(f.useStorage?r.storage(t.table,r.css.resizableStorage):[])||[],r.resizable.setWidths(t,a,l),r.resizable.updateStoredSizes(t,a),a.$resizable_container=e('
').css({top:u}).insertBefore(c),o=0;o').appendTo(a.$resizable_container).attr({"data-column":o,unselectable:"on"}).data("header",s).bind("selectstart",!1);r.resizable.bindings(t,a)}},updateStoredSizes:function(e,t){var r,a,i=e.columns,s=t.resizable_vars;for(s.storedSizes=[],r=0;r0){for(l.storedSizes[l.target]+=d,r.resizable.setWidth(l.$target,l.storedSizes[l.target],!0),s=0;s0?a.sortList=d:r.hasInitialized&&d&&d.length>0&&t.sortOn(a,d))},remove:function(e,r){r.$table.removeClass("hasSaveSort"),t.storage&&t.storage(e,"tablesorter-savesort","")}})}(e),e.tablesorter}),!function(e){"use strict";var t=e.tablesorter,r=t.grouping={types:{number:function(e,r,a,i){var s,o=r.hasClass(t.css.sortAsc);return i>1&&""!==a?(s=o?Math.floor(parseFloat(a)/i)*i:Math.ceil(parseFloat(a)/i)*i,s+=" - "+(s+(i-1)*(o?1:-1))):s=parseFloat(a)||a,s},separator:function(t,r,a,i){var s=(a+"").split(t.widgetOptions.group_separator);return e.trim(s[i-1]||"")},text:function(e,t,r){return r},word:function(e,t,r,a){var i=(r+" ").match(/\w+/g)||[];return i[a-1]||""},letter:function(e,t,r,a){return r?(r+" ").substring(0,a):""},date:function(e,t,a,i,s){var o,l,n=e.widgetOptions,c=new Date(a||"");return c instanceof Date&&isFinite(c)?(o=c.getFullYear(),l=r.findMonth(n,c.getMonth()),"year"===i?o:"month"===i?l:"monthyear"===i?l+" "+o:"day"===i?l+" "+c.getDate():"week"===i?r.findWeek(n,c.getDay()):"time"===i?r.findTime(n,c):"hour"===i?r.findTime(n,c,"hour"):n.group_dateString(c,e,t)):n.group_dateInvalid}},findMonth:function(e,t){return e.group_months[t+(""===(e.group_months[0]||"")?1:0)]},findWeek:function(t,r){if(e.isArray(t.group_week))return t.group_week[r];if(!e.isEmptyObject(t.group_week)){var a=["sun","mon","tue","wed","thu","fri","sat"];return t.group_week[a[r]]}},findTime:function(e,t,r){var a,i=e.group_time.am&&e.group_time.pm,s=t.getHours(),o=s>=12?1:0,l=e.group_time24Hour&&s>12?s-12:e.group_time24Hour&&0===s?s+12:s,n=("00"+l).slice(-2),c=("00"+t.getMinutes()).slice(-2);return a=e.group_time[i?["am","pm"][o]:o],"hour"===r?n:n+":"+c+(e.group_time24Hour?"":" "+(a||""))},update:function(t){if(!e.isEmptyObject(t.config.cache)){var a=t.config,i=a.widgetOptions,s="undefined"!=typeof a.sortList[0],o={},l=e.isArray(i.group_forceColumn)&&"undefined"!=typeof i.group_forceColumn[0]?i.group_enforceSort&&!s?-1:i.group_forceColumn[0]:s?a.sortList[0][0]:-1;a.$table.find("tr.group-hidden").removeClass("group-hidden").end().find("tr.group-header").remove(),i.group_collapsible&&a.$table.data("pagerSavedHeight",0),l>=0&&l-1,c.toggleClass("collapsed",s),n.toggleClass("group-hidden",s)):r.group_collapsed&&r.group_collapsible&&(c.addClass("collapsed"),n.addClass("group-hidden"))},groupHeaderHTML:function(e,t,r){var a=(r.currentGroup||"").toString().replace(//g,">");return''+(t.group_collapsible?"":"")+''+a+''},saveCurrentGrouping:function(e,r,a){var i,s,o=!1;return r.group_collapsible&&r.group_saveGroups&&(r.group_collapsedGroups=t.storage&&t.storage(e.table,"tablesorter-groups")||{},s="dir"+e.sortList[0][1],i=r.group_collapsedGroup=""+e.sortList[0][0]+s+a.grouping.join(""),r.group_collapsedGroups[i]?o=!0:r.group_collapsedGroups[i]=[]),o},findColumnGroups:function(e,a,i){var s,o,l,n,c,d=t.hasWidget(e.table,"pager"),u=e.pager||{};for(i.groupIndex=0,s=0;s-1&&s.group_collapsedGroups[s.group_collapsedGroup].splice(n,1)),t.storage(a,"tablesorter-groups",s.group_collapsedGroups))}})),e(s.group_saveReset).on("click",function(){r.clearSavedGroups(a)}),i.$table.on("pagerChange.tsgrouping",function(){r.update(a)})},clearSavedGroups:function(e){e&&t.storage&&(t.storage(e,"tablesorter-groups",""),r.update(e))}};t.addWidget({id:"group",priority:100,options:{group_collapsible:!0,group_collapsed:!1,group_saveGroups:!0,group_saveReset:null,group_count:" ({num})",group_separator:"-",group_formatter:null,group_callback:null,group_complete:"groupingComplete",group_forceColumn:[],group_enforceSort:!0,group_checkbox:["checked","unchecked"],group_months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],group_week:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],group_time:["AM","PM"],group_time24Hour:!1,group_dateInvalid:"Invalid Date",group_dateString:function(e){return e.toLocaleString()}},init:function(e,t,a,i){r.bindEvents(e,a,i)},format:function(e,t,a){r.update(e)},remove:function(e,t,r){t.$table.off("click","tr.group-header").off("pagerChange.tsgrouping").find(".group-hidden").removeClass("group-hidden").end().find("tr.group-header").remove()}})}(jQuery),!function(e){"use strict";var t=e.tablesorter||{};t.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"icon-chevron-up glyphicon glyphicon-chevron-up",iconSortDesc:"icon-chevron-down glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}},e.extend(t.css,{wrapper:"tablesorter-wrapper"}),t.addWidget({id:"uitheme",priority:10,format:function(r,a,i){var s,o,l,n,c,d,u,f,p,g,h,m,b,y=t.themes,w=a.$table.add(e(a.namespace+"_extra_table")),_=a.$headers.add(e(a.namespace+"_extra_headers")),v=a.theme||"jui",x=y[v]||{},C=e.trim([x.sortNone,x.sortDesc,x.sortAsc,x.active].join(" ")),$=e.trim([x.iconSortNone,x.iconSortDesc,x.iconSortAsc].join(" "));for(a.debug&&(c=new Date),w.hasClass("tablesorter-"+v)&&a.theme===a.appliedTheme&&i.uitheme_applied||(i.uitheme_applied=!0,g=y[a.appliedTheme]||{},b=!e.isEmptyObject(g),h=b?[g.sortNone,g.sortDesc,g.sortAsc,g.active].join(" "):"",m=b?[g.iconSortNone,g.iconSortDesc,g.iconSortAsc].join(" "):"",b&&(i.zebra[0]=e.trim(" "+i.zebra[0].replace(" "+g.even,"")),i.zebra[1]=e.trim(" "+i.zebra[1].replace(" "+g.odd,"")),a.$tbodies.children().removeClass([g.even,g.odd].join(" "))),x.even&&(i.zebra[0]+=" "+x.even),x.odd&&(i.zebra[1]+=" "+x.odd),w.children("caption").removeClass(g.caption||"").addClass(x.caption),f=w.removeClass((a.appliedTheme?"tablesorter-"+(a.appliedTheme||""):"")+" "+(g.table||"")).addClass("tablesorter-"+v+" "+(x.table||"")).children("tfoot"),a.appliedTheme=a.theme,f.length&&f.children("tr").removeClass(g.footerRow||"").addClass(x.footerRow).children("th, td").removeClass(g.footerCells||"").addClass(x.footerCells),_.removeClass((b?[g.header,g.hover,h].join(" "):"")||"").addClass(x.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(t){e(this)["mouseenter"===t.type?"addClass":"removeClass"](x.hover||"")}),_.each(function(){var r=e(this);r.find("."+t.css.wrapper).length||r.wrapInner('
')}),a.cssIcon&&_.find("."+t.css.icon).removeClass(b?[g.icons,m].join(" "):"").addClass(x.icons||""),t.hasWidget(a.table,"filter")&&(o=function(){w.children("thead").children("."+t.css.filterRow).removeClass(b?g.filterRow||"":"").addClass(x.filterRow||"")},i.filter_initialized?o():w.one("filterInit",function(){o()}))),s=0;s=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(e,a,i){if((r.orTest.test(a.iFilter)||r.orSplit.test(a.filter))&&!r.regex.test(a.filter)){var s,o,l,n,c=p.extend({},a),d=a.filter.split(r.orSplit),u=a.iFilter.split(r.orSplit),f=d.length;for(s=0;s=u:o>u:r.ltTest.test(s.iFilter)&&(l=r.lteTest.test(s.iFilter)?o<=u:o=0)))}return null},exact:function(a,i){if(r.exact.test(i.iFilter)){var s=i.iFilter.replace(r.exact,""),o=t.parseFilter(a,s,i)||"";return i.anyMatch?e.inArray(o,i.rowArray)>=0:o==i.iExact}return null},range:function(e,i){if(r.toTest.test(i.iFilter)){var s,o,l,n,c=e.table,d=i.index,u=i.parsed[d],f=i.iFilter.split(r.toSplit);return o=f[0].replace(a.regex.nondigit,"")||"",l=a.formatFloat(t.parseFilter(e,o,i),c),o=f[1].replace(a.regex.nondigit,"")||"",n=a.formatFloat(t.parseFilter(e,o,i),c),(u||"numeric"===e.parsers[d].type)&&(s=e.parsers[d].format(""+f[0],c,e.$headers.eq(d),d),l=""===s||isNaN(s)?l:s,s=e.parsers[d].format(""+f[1],c,e.$headers.eq(d),d),n=""===s||isNaN(s)?n:s),!u&&"numeric"!==e.parsers[d].type||isNaN(l)||isNaN(n)?(o=isNaN(i.iExact)?i.iExact.replace(a.regex.nondigit,""):i.iExact,s=a.formatFloat(o,c)):s=i.cache,l>n&&(o=l,l=n,n=o),s>=l&&s<=n||""===l||""===n}return null},wild:function(e,a){if(r.wildOrTest.test(a.iFilter)){var i=""+(t.parseFilter(e,a.iFilter,a)||"");!r.wildTest.test(i)&&a.nestedFilters&&(i=a.isMatch?i:"^("+i+")$");try{return new RegExp(i.replace(r.wild01,"\\S{1}").replace(r.wild0More,"\\S*"),e.widgetOptions.filter_ignoreCase?"i":"").test(a.exact)}catch(e){return null}}return null},fuzzy:function(e,a){if(r.fuzzyTest.test(a.iFilter)){var i,s=0,o=a.iExact.length,l=a.iFilter.slice(1),n=t.parseFilter(e,l,a)||"";for(i=0;i]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+(c.data("placeholder")||c.attr("data-placeholder")||h.filter_placeholder.select||"")+"":"",u=l,n=l,l.indexOf(h.filter_selectSourceSeparator)>=0&&(u=l.split(h.filter_selectSourceSeparator),n=u[1],u=u[0]),o+="");g.$table.find("thead").find("select."+i.filter+'[data-column="'+d+'"]').append(o),n=h.filter_selectSource,f="function"==typeof n||a.getColumnData(s,n,d),f&&t.buildSelect(g.table,d,"",!0,c.hasClass(h.filter_onlyAvail))}t.buildDefault(s,!0),t.bindSearch(s,g.$table.find("."+i.filter),!0),h.filter_external&&t.bindSearch(s,h.filter_external),h.filter_hideFilters&&t.hideFilters(g),g.showProcessing&&(n="filterStart filterEnd ".split(" ").join(g.namespace+"filter "),g.$table.unbind(n.replace(a.regex.spaces," ")).bind(n,function(t,r){c=r?g.$table.find("."+i.header).filter("[data-column]").filter(function(){return""!==r[e(this).data("column")]}):"",a.isProcessing(s,"filterStart"===t.type,r?c:"")})),g.filteredRows=g.totalRows,n="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(g.namespace+"filter "),g.$table.unbind(n.replace(a.regex.spaces," ")).bind(n,function(){t.completeInit(this)}),g.pager&&g.pager.initialized&&!h.filter_initialized?(g.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){t.filterInitComplete(g)},100)):h.filter_initialized||t.completeInit(s)},completeInit:function(e){var r=e.config,i=r.widgetOptions,s=t.setDefaults(e,r,i)||[];s.length&&(r.delayInit&&""===s.join("")||a.setFilters(e,s,!0)),r.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){i.filter_initialized||t.filterInitComplete(r)},100)},formatterUpdated:function(e,t){var r=e&&e.closest("table")[0].config.widgetOptions;r&&!r.filter_initialized&&(r.filter_formatterInit[t]=1)},filterInitComplete:function(r){var a,i,s=r.widgetOptions,o=0,l=function(){s.filter_initialized=!0,r.lastSearch=r.$table.data("lastSearch"),r.$table.triggerHandler("filterInit",r),t.findRows(r.table,r.lastSearch||[])};if(e.isEmptyObject(s.filter_formatter))l();else{for(i=s.filter_formatterInit.length,a=0;a';for(c=0;c1?'").appendTo(s.$table.children("thead").eq(0)).children("td"),c=0;c").appendTo(l):(g=a.getColumnData(r,o.filter_formatter,c),g?(o.filter_formatterCount++,w=g(l,c),w&&0===w.length&&(w=l.children("input")),w&&(0===w.parent().length||w.parent().length&&w.parent()[0]!==l[0])&&l.append(w)):w=e('').appendTo(l),w&&(h=d.data("placeholder")||d.attr("data-placeholder")||o.filter_placeholder.search||"",w.attr("placeholder",h))),w&&(p=(e.isArray(o.filter_cssFilter)?"undefined"!=typeof o.filter_cssFilter[c]?o.filter_cssFilter[c]||"":"":o.filter_cssFilter)||"",w.addClass(i.filter+" "+p).attr("data-column",l.attr("data-column")),f&&(w.attr("placeholder","").addClass(i.filterDisabled)[0].disabled=!0)))},bindSearch:function(r,i,o){if(r=e(r)[0],i=e(i),i.length){var l,n=r.config,c=n.widgetOptions,d=n.namespace+"filter",u=c.filter_$externalFilters;o!==!0&&(l=c.filter_anyColumnSelector+","+c.filter_multipleColumnSelector,c.filter_$anyMatch=i.filter(l),u&&u.length?c.filter_$externalFilters=c.filter_$externalFilters.add(i):c.filter_$externalFilters=i,a.setFilters(r,n.$table.data("lastSearch")||[],o===!1)),l="keypress keyup keydown search change input ".split(" ").join(d+" "),i.attr("data-lastSearchTime",(new Date).getTime()).unbind(l.replace(a.regex.spaces," ")).bind("keydown"+d,function(e){if(e.which===s.escape&&!r.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+d,function(i){c=r.config.widgetOptions;var o=parseInt(e(this).attr("data-column"),10),l="boolean"==typeof c.filter_liveSearch?c.filter_liveSearch:a.getColumnData(r,c.filter_liveSearch,o);if("undefined"==typeof l&&(l=c.filter_liveSearch.fallback||!1),e(this).attr("data-lastSearchTime",(new Date).getTime()),i.which===s.escape)this.value=c.filter_resetOnEsc?"":n.lastSearch[o];else{if(l===!1)return;if(""!==this.value&&("number"==typeof l&&this.value.length=s.left&&i.which<=s.down)))return}t.searching(r,!0,!0,o)}).bind("search change keypress input ".split(" ").join(d+" "),function(i){var o=parseInt(e(this).attr("data-column"),10),l="boolean"==typeof c.filter_liveSearch?c.filter_liveSearch:a.getColumnData(r,c.filter_liveSearch,o);!r.config.widgetOptions.filter_initialized||i.which!==s.enter&&"search"!==i.type&&("change"!==i.type&&"input"!==i.type||l!==!0||this.value===n.lastSearch[o])||(i.preventDefault(),e(this).attr("data-lastSearchTime",(new Date).getTime()),t.searching(r,"keypress"!==i.type,!0,o))})}},searching:function(e,r,i,s){var o,l=e.config.widgetOptions;"undefined"==typeof s?o=!1:(o="boolean"==typeof l.filter_liveSearch?l.filter_liveSearch:a.getColumnData(e,l.filter_liveSearch,s),"undefined"==typeof o&&(o=l.filter_liveSearch.fallback||!1)),clearTimeout(l.filter_searchTimer),"undefined"==typeof r||r===!0?l.filter_searchTimer=setTimeout(function(){t.checkFilters(e,r,i)},o?l.filter_searchDelay:10):t.checkFilters(e,r,i)},checkFilters:function(r,s,o){var l=r.config,n=l.widgetOptions,c=e.isArray(s),d=c?s:a.getFilters(r,!0),u=(d||[]).join("");return e.isEmptyObject(l.cache)?void(l.delayInit&&(!l.pager||l.pager&&l.pager.initialized)&&a.updateCache(l,function(){t.checkFilters(r,!1,o)})):(c&&(a.setFilters(r,d,!1,o!==!0),n.filter_initialized||(l.lastCombinedFilter="")),n.filter_hideFilters&&l.$table.find("."+i.filterRow).triggerHandler(t.hideFiltersCheck(l)?"mouseleave":"mouseenter"),l.lastCombinedFilter!==u||s===!1?(s===!1&&(l.lastCombinedFilter=null,l.lastSearch=[]),d=d||[],d=Array.prototype.map?d.map(String):d.join("�").split("�"),n.filter_initialized&&l.$table.triggerHandler("filterStart",[d]),l.showProcessing?void setTimeout(function(){return t.findRows(r,d,u),!1},30):(t.findRows(r,d,u),!1)):void 0)},hideFiltersCheck:function(e){if("function"==typeof e.widgetOptions.filter_hideFilters){var t=e.widgetOptions.filter_hideFilters(e);if("boolean"==typeof t)return t}return""===a.getFilters(e.$table).join("")},hideFilters:function(r,a){var s;(a||r.$table).find("."+i.filterRow).addClass(i.filterRowHide).bind("mouseenter mouseleave",function(a){var o=a,l=e(this);clearTimeout(s),s=setTimeout(function(){/enter|over/.test(o.type)?l.removeClass(i.filterRowHide):e(document.activeElement).closest("tr")[0]!==l[0]&&l.toggleClass(i.filterRowHide,t.hideFiltersCheck(r))},200)}).find("input, select").bind("focus blur",function(a){var o=a,l=e(this).closest("tr");clearTimeout(s),s=setTimeout(function(){clearTimeout(s),l.toggleClass(i.filterRowHide,t.hideFiltersCheck(r)&&"focus"!==o.type)},200)})},defaultFilter:function(t,a){if(""===t)return t;var i=r.iQuery,s=a.match(r.igQuery).length,o=s>1?e.trim(t).split(/\s/):[e.trim(t)],l=o.length-1,n=0,c=a;for(l<1&&s>1&&(o[1]=o[0]);i.test(c);)c=c.replace(i,o[n++]||""),i.test(c)&&nl&&(a=o,o=l,l=a),l>=e.columns&&(l=e.columns-1);o<=l;o++)f[f.length]=o;t=t.replace(i[d],"")}if(!r&&/,/.test(t))for(n=t.split(/\s*,\s*/),u=n.length,c=0;c-1})},multipleColumns:function(r,a){var i=r.widgetOptions,s=i.filter_initialized||!a.filter(i.filter_anyColumnSelector).length,o=e.trim(t.getLatestSearch(a).attr("data-column")||"");return t.findRange(r,o,!s)},processTypes:function(r,a,i){var s,o=null,l=null;for(s in t.types)e.inArray(s,i.excludeMatch)<0&&null===l&&(l=t.types[s](r,a,i),null!==l&&(o=l));return o},matchType:function(e,t){var r,a=e.widgetOptions,s=e.$headerIndexed[t];return s.hasClass("filter-exact")?r=!1:s.hasClass("filter-match")?r=!0:(a.filter_columnFilters?s=e.$filters.find("."+i.filter).add(a.filter_$externalFilters).filter('[data-column="'+t+'"]'):a.filter_$externalFilters&&(s=a.filter_$externalFilters.filter('[data-column="'+t+'"]')),r=!!s.length&&"match"===e.widgetOptions.filter_matchType[(s[0].nodeName||"").toLowerCase()]),r},processRow:function(i,s,o){var l,n,c,d,u,f=i.widgetOptions,p=!0,g=f.filter_$anyMatch&&f.filter_$anyMatch.length,h=f.filter_$anyMatch&&f.filter_$anyMatch.length?t.multipleColumns(i,f.filter_$anyMatch):[];if(s.$cells=s.$row.children(),s.anyMatchFlag&&h.length>1||s.anyMatchFilter&&!g){if(s.anyMatch=!0,s.isMatch=!0,s.rowArray=s.$cells.map(function(t){if(e.inArray(t,h)>-1||s.anyMatchFilter&&!g)return s.parsed[t]?u=s.cacheArray[t]:(u=s.rawArray[t],u=e.trim(f.filter_ignoreCase?u.toLowerCase():u),i.sortLocaleCompare&&(u=a.replaceAccents(u))),u}).get(),s.filter=s.anyMatchFilter,s.iFilter=s.iAnyMatchFilter,s.exact=s.rowArray.join(" "),s.iExact=f.filter_ignoreCase?s.exact.toLowerCase():s.exact,s.cache=s.cacheArray.slice(0,-1).join(" "),o.excludeMatch=o.noAnyMatch,n=t.processTypes(i,s,o),null!==n)p=n;else if(f.filter_startsWith)for(p=!1,h=Math.min(i.columns,s.rowArray.length);!p&&h>0;)h--,p=p||0===s.rowArray[h].indexOf(s.iFilter);else p=(s.iExact+s.childRowText).indexOf(s.iFilter)>=0;if(s.anyMatch=!1,s.filters.join("")===s.filter)return p}for(h=0;h=0:s.filter===s.exact:"function"==typeof c?n=c(s.exact,s.cache,s.filter,h,s.$row,i,s):"function"==typeof c[d||s.filter]&&(u=d||s.filter,n=c[u](s.exact,s.cache,s.filter,h,s.$row,i,s))),null===n?(n=t.processTypes(i,s,o),null!==n?l=n:(u=(s.iExact+s.childRowText).indexOf(t.parseFilter(i,s.iFilter,s)),l=!f.filter_startsWith&&u>=0||f.filter_startsWith&&0===u)):l=n,p=!!l&&p);return p},findRows:function(i,s,o){if(i.config.lastCombinedFilter!==o&&i.config.widgetOptions.filter_initialized){var l,n,c,d,u,f,p,g,h,m,b,y,w,_,v,x,C,$,S,F,R,z,T,k,I=e.extend([],s),A=i.config,D=A.widgetOptions,E={anyMatch:!1,filters:s,filter_regexCache:[]},H={noAnyMatch:["range","operators"],functions:[],excludeFilter:[],defaultColFilter:[],defaultAnyFilter:a.getColumnData(i,D.filter_defaultFilter,A.columns,!0)||""};for(E.parsed=[],h=0;h1&&(isNaN(z[0])?e.each(A.headerContent,function(e,t){t.toLowerCase().indexOf(z[0])>-1&&(T=e,s[T]=z[1])}):T=parseInt(z[0],10)-1,T>=0&&T")>=0)return u;e.isArray(u)?n=u:"object"===e.type(c)&&u&&(n=u(r,i,s))}return n===!1&&(n=t.getOptions(r,i,s)),t.processOptions(r,i,n)},processOptions:function(t,r,i){if(!e.isArray(i))return!1;t=e(t)[0];var s,o,l,n,c,d,u=t.config,f="undefined"!=typeof r&&null!==r&&r>=0&&r'+(y.data("placeholder")||y.attr("data-placeholder")||b.filter_placeholder.select||"")+"",_=m.$table.find("thead").find("select."+i.filter+'[data-column="'+s+'"]').val();if("undefined"!=typeof o&&""!==o||(o=t.getOptionSource(a,s,n)),e.isArray(o)){for(c=0;c"}else""+h!="[object Object]"&&(u=h=(""+h).replace(r.quote,"""),d=u,u.indexOf(b.filter_selectSourceSeparator)>=0&&(f=u.split(b.filter_selectSourceSeparator),d=f[0],u=f[1]),w+=""!==h?"":"");o=[]}p=(m.$filters?m.$filters:m.$table.children("thead")).find("."+i.filter),b.filter_$externalFilters&&(p=p&&p.length?p.add(b.filter_$externalFilters):b.filter_$externalFilters),g=p.filter('select[data-column="'+s+'"]'),g.length&&(g[l?"html":"append"](w),e.isArray(o)||g.append(o).val(_),g.val(_))}},buildDefault:function(e,r){var i,s,o,l=e.config,n=l.widgetOptions,c=l.columns;for(i=0;i1&&(c=c.slice(1)),l===f.columns&&(d=c.filter(p.filter_anyColumnSelector),c=d.length?d:c),c.val(s[l]).trigger("change"+f.namespace)):(u[l]=c.val()||"",l===f.columns?c.slice(1).filter('[data-column*="'+c.attr("data-column")+'"]').val(u[l]):c.slice(1).val(u[l])),l===f.columns&&c.length&&(p.filter_$anyMatch=c));return u},a.setFilters=function(r,i,s,o){var l=r?e(r)[0].config:"",n=a.getFilters(r,!0,i,o);return"undefined"==typeof s&&(s=!0),l&&s&&(l.lastCombinedFilter=null,l.lastSearch=[],t.searching(l.table,i,o),l.$table.triggerHandler("filterFomatterUpdate")),0!==n.length}}(jQuery),!function(e){"use strict";var t=e.tablesorter,r=".tscolsel",a=t.columnSelector={queryAll:"@media only all { [columns] { display: none; } } ",queryBreak:"@media all and (min-width: [size]) { [columns] { display: table-cell; } } ",init:function(t,i,s){var o,l;return o=e(s.columnSelector_layout),o.find("input").add(o.filter("input")).length?(i.$table.addClass(i.namespace.slice(1)+"columnselector"),l=i.selector={$container:e(s.columnSelector_container||"
")},l.$style=e("").prop("disabled",!0).appendTo("head"),l.$breakpoints=e("").prop("disabled",!0).appendTo("head"),l.isInitializing=!0,a.setUpColspan(i,s),a.setupSelector(i,s),s.columnSelector_mediaquery&&a.setupBreakpoints(i,s),l.isInitializing=!1,l.$container.length?a.updateCols(i,s):i.debug&&console.warn("ColumnSelector: >> container not found"),void i.$table.off("refreshColumnSelector"+r).on("refreshColumnSelector"+r,function(e,t,r){a.refreshColumns(this.config,t,r)})):void(i.debug&&console.error("ColumnSelector: >> ERROR: Column Selector aborting, no input found in the layout! ***"))},refreshColumns:function(t,r,i){var s,o,l,n,c=t.selector,d=e.isArray(i||r),u=t.widgetOptions;if("undefined"!=typeof r&&null!==r&&c.$container.length){if("selectors"===r&&(c.$container.empty(),a.setupSelector(t,u),a.setupBreakpoints(t,u),"undefined"==typeof i&&null!==i&&(i=c.auto)),d)for(o=i||r,e.each(o,function(e,t){o[e]=parseInt(t,10)}),s=0;s=0,l=c.$container.find("input[data-column="+s+"]"),l.length&&(l.prop("checked",n),c.states[s]=n);n=i===!0||r===!0||"auto"===r&&i!==!1,l=c.$container.find('input[data-column="auto"]').prop("checked",n),a.updateAuto(t,u,l)}else a.updateBreakpoints(t,u),a.updateCols(t,u);a.saveValues(t,u),a.adjustColspans(t,u)},setupSelector:function(r,i){var s,o,l,n,c,d,u,f=r.selector,p=f.$container,g=i.columnSelector_saveColumns&&t.storage,h=g?t.storage(r.table,"tablesorter-columnSelector"):[],m=g?t.storage(r.table,"tablesorter-columnSelector-auto"):{};for(f.auto=e.isEmptyObject(m)||"boolean"!==e.type(m.auto)?i.columnSelector_mediaqueryState:m.auto,f.states=[],f.$column=[],f.$wrapper=[],f.$checkbox=[],s=0;s0||"disable"===m||i.columnSelector_columns[d]&&"disable"===i.columnSelector_columns[d]?f.states[d]=null:(f.states[d]=h&&"undefined"!=typeof h[d]&&null!==h[d]?h[d]:"undefined"!=typeof i.columnSelector_columns[d]&&null!==i.columnSelector_columns[d]?i.columnSelector_columns[d]:"true"===m||"false"!==m,f.$column[d]=e(this),p.length&&(o=l.attr(i.columnSelector_name)||l.text().trim(),"function"==typeof i.columnSelector_layoutCustomizer&&(u=l.find("."+t.css.headerIn),o=i.columnSelector_layoutCustomizer(u.length?u:l,o,parseInt(d,10))),f.$wrapper[d]=e(i.columnSelector_layout.replace(/\{name\}/g,o)).appendTo(p),f.$checkbox[d]=f.$wrapper[d].find("input").add(f.$wrapper[d].filter("input")).attr("data-column",d).toggleClass(i.columnSelector_cssChecked,f.states[d]).prop("checked",f.states[d]).on("change",function(){if(!f.isInitializing){var t=e(this).attr("data-column");if(!a.checkChange(r,this.checked))return this.checked=!this.checked,!1;r.selector.states[t]=this.checked,a.updateCols(r,i)}}).change()))},checkChange:function(e,t){for(var r=e.widgetOptions,a=r.columnSelector_maxVisible,i=r.columnSelector_minVisible,s=e.selector.states,o=s.length,l=0;o-- >=0;)s[o]&&l++;return!(t&null!==a&&l>=a||!t&&null!==i&&l<=i)},setupBreakpoints:function(t,i){var s=t.selector;i.columnSelector_mediaquery&&(s.lastIndex=-1,a.updateBreakpoints(t,i),t.$table.off("updateAll"+r).on("updateAll"+r,function(){a.setupSelector(t,i),a.setupBreakpoints(t,i),a.updateBreakpoints(t,i),a.updateCols(t,i)})),s.$container.length&&(i.columnSelector_mediaquery&&(s.$auto=e(i.columnSelector_layout.replace(/\{name\}/g,i.columnSelector_mediaqueryName)).prependTo(s.$container),s.$auto.find("input").add(s.$auto.filter("input")).attr("data-column","auto").prop("checked",s.auto).toggleClass(i.columnSelector_cssChecked,s.auto).on("change",function(){a.updateAuto(t,i,e(this))}).change()),t.$table.off("update"+r).on("update"+r,function(){a.updateCols(t,i)}))},updateAuto:function(t,r,i){var s=t.selector;s.auto=i.prop("checked")||!1,e.each(s.$checkbox,function(e,t){t&&(t[0].disabled=s.auto,s.$wrapper[e].toggleClass("disabled",s.auto))}),r.columnSelector_mediaquery&&a.updateBreakpoints(t,r),a.updateCols(t,r),t.selector.$popup&&t.selector.$popup.find(".tablesorter-column-selector").html(s.$container.html()).find("input").each(function(){var t=e(this).attr("data-column");e(this).prop("checked","auto"===t?s.auto:s.states[t])}),a.saveValues(t,r),a.adjustColspans(t,r),s.auto&&t.$table.triggerHandler(r.columnSelector_updated)},addSelectors:function(e,t){var r=[],a=" col:nth-child("+t+")";return r.push(e+a+","+e+"_extra_table"+a),a=' tr:not(.hasSpan) th[data-column="'+(t-1)+'"]',r.push(e+a+","+e+"_extra_table"+a),a=" tr:not(.hasSpan) td:nth-child("+t+")",r.push(e+a+","+e+"_extra_table"+a),a=" tr td:not("+e+'HasSpan)[data-column="'+(t-1)+'"]',r.push(e+a+","+e+"_extra_table"+a),r},updateBreakpoints:function(r,i){var s,o,l,n,c=[],d=r.selector,u=r.namespace+"columnselector",f=[],p="";if(i.columnSelector_mediaquery&&!d.auto)return d.$breakpoints.prop("disabled",!0),void d.$style.prop("disabled",!1);if(i.columnSelector_mediaqueryHidden)for(l=0;l1&&(c=!0,d.eq(s).addClass(r.namespace.slice(1)+"columnselectorHasSpan").attr("data-col-span",o),t.computeColumnIndex(d.eq(s).parent().addClass("hasSpan")));c&&i.columnSelector_mediaquery&&(l=r.namespace+"columnselector",n.off(l).on("resize"+l,t.window_resize).on("resizeEnd"+l,function(){n.off("resize"+l,t.window_resize),a.adjustColspans(r,i),n.on("resize"+l,t.window_resize)}))},adjustColspans:function(t,r){var a,i,s,o,l,n,c=t.selector,d=r.filter_filteredRow||"filtered",u=r.columnSelector_mediaquery&&c.auto,f=t.$table.children("thead, tfoot").children().children().add(e(t.namespace+"_extra_table").children("thead, tfoot").children().children()),p=f.length;for(a=0;a1){for(i=s;i'),i=l.selector,s=l.widgetOptions,n.find(".tablesorter-column-selector").html(i.$container.html()).find("input").each(function(){var t=e(this).attr("data-column"),r="auto"===t?i.auto:i.states[t];e(this).toggleClass(s.columnSelector_cssChecked,r).prop("checked",r)}),i.$popup=n.on("change","input",function(){if(!i.isInitializing){if(!a.checkChange(l,this.checked))return this.checked=!this.checked,!1;o=e(this).toggleClass(s.columnSelector_cssChecked,this.checked).attr("data-column"),i.$container.find('input[data-column="'+o+'"]').prop("checked",this.checked).trigger("change")}}))}};t.window_resize=function(){t.timer_resize&&clearTimeout(t.timer_resize),t.timer_resize=setTimeout(function(){e(window).trigger("resizeEnd")},250)},t.addWidget({id:"columnSelector",priority:10,options:{columnSelector_container:null,columnSelector_columns:{},columnSelector_saveColumns:!0,columnSelector_layout:'',columnSelector_layoutCustomizer:null,columnSelector_name:"data-selector-name",columnSelector_mediaquery:!0,columnSelector_mediaqueryName:"Auto: ",columnSelector_mediaqueryState:!0,columnSelector_mediaqueryHidden:!1,columnSelector_maxVisible:null,columnSelector_minVisible:null,columnSelector_breakpoints:["20em","30em","40em","50em","60em","70em"],columnSelector_maxPriorities:6,columnSelector_priority:"data-priority",columnSelector_cssChecked:"checked",columnSelector_updated:"columnUpdate"},init:function(e,t,r,i){a.init(e,r,i)},remove:function(t,a,i,s){var o=a.selector;o&&o.$container.empty(),!s&&o&&(o.$popup&&o.$popup.empty(),o.$style.remove(),o.$breakpoints.remove(),e(a.namespace+"columnselectorHasSpan").removeClass(i.filter_filteredRow||"filtered"),a.$table.off("updateAll"+r+" update"+r))}})}(jQuery); //# sourceMappingURL=tablesorter.min.js.map