(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){ /*! Widget: sort2Hash (BETA) - updated 9/27/2017 (v2.29.0) */ !function(l){"use strict";var c=l.tablesorter||{},H=c.sort2Hash={init:function(e,t){var a,r,o,s,n=e.table,i=e.pager,h=c.hasWidget(n,"saveSort"),d=H.decodeHash(e,t,"sort");(d&&!h||d&&h&&t.sort2Hash_overrideSaveSort)&&H.convertString2Sort(e,t,d),c.hasWidget(e.table,"pager")&&(r=parseInt(H.decodeHash(e,t,"page"),10),o=i.page=r<0?0:r>i.totalPages?i.totalPages-1:r,s=i.size=parseInt(H.decodeHash(e,t,"size"),10)),c.hasWidget(n,"filter")&&(a=H.decodeHash(e,t,"filter"))&&(a=a.split(t.sort2Hash_separator),e.$table.one("tablesorter-ready",function(){setTimeout(function(){e.$table.one("filterEnd",function(){l(this).triggerHandler("pageAndSize",[o,s])}),(r=c.filter.equalFilters?c.filter.equalFilters(e,e.lastSearch,a):(e.lastSearch||[]).join("")!==(a||[]).join(""))||l.tablesorter.setFilters(n,a,!0)},100)})),a||e.$table.one("tablesorter-ready",function(){e.$table.triggerHandler("pageAndSize",[o,s])}),e.$table.on("sortEnd.sort2hash filterEnd.sort2hash pagerComplete.sort2Hash",function(){this.hasInitialized&&H.setHash(this.config,this.config.widgetOptions)})},getTableId:function(e,t){return t.sort2Hash_tableId||e.table.id||"table"+l("table").index(e.$table)},regexEscape:function(e){return e.replace(/([\.\^\$\*\+\-\?\(\)\[\]\{\}\\\|])/g,"\\$1")},convertString2Sort:function(e,t,a){for(var r,o,s,n,i,h=a.split(t.sort2Hash_separator),d=0,l=h.length,c=[];de.columns)for(r=new RegExp("("+H.regexEscape(o)+")","i"),n=0;n