")}),a=n,x.each(a,function(e,t){var a=x(t);a.is("["+d+"]")&&(a.is("."+h.descend)||a.addClass(h.ascend))}),o.is("[data-tablesaw-sortable-switch]")&&function(a){i=x("").addClass(h.switcher).addClass(h.tableToolbar);var l=[""+_.i18n.sort+":"];l.push(''),a.each(function(e){var t=x(this),a=t.is("["+d+"]"),s=t.is("."+h.descend),n=t.is("["+f+"]"),i=0;x(this.cells.slice(0,5)).each(function(){isNaN(parseInt(u(this),10))||i++});var o=5===i;n||t.attr(f,o?"":"false"),l.push("'+t.text()+" "+(o?"↑":"(A-Z)")+" "),l.push("'+t.text()+" "+(o?"↓":"(Z-A)")+" ")}),l.push(" "),i.html(l.join(""));var e=o.prev().filter(".tablesaw-bar"),t=e.children().eq(0);t.length?i.insertBefore(t):i.appendTo(e),i.find(".btn").tablesawbtn(),i.find("select").on("change",function(){var e=x(this).val().split("_"),t=a.eq(e[0]);r(t.siblings()),o[c]("sortBy",t.get(0),"asc"===e[1])})}(n,o.find("tbody tr:nth-child(-n+3)"))},getColumnNumber:function(e){return x(e).prevAll().length},getTableRows:function(){return x(this).find("tbody tr")},sortRows:function(e,s,t,a){var n,i,o,l;o=e,l=[],x.each(o,function(e,t){var a=x(t).children().get(s);l.push({element:a,cell:u(a),rowNum:e})}),n=l;var r,c,d,h=x(a).data("tablesaw-sort");return i=!(!h||"function"!=typeof h)&&h(t)||(r=t,c=x(a).is("["+f+"]")&&!x(a).is("["+f+'="false"]'),d=/[^\-\+\d\.]/g,r?function(e,t){return c?parseFloat(e.cell.replace(d,""))-parseFloat(t.cell.replace(d,"")):e.cell.toLowerCase()>t.cell.toLowerCase()?1:-1}:function(e,t){return c?parseFloat(t.cell.replace(d,""))-parseFloat(e.cell.replace(d,"")):e.cell.toLowerCase()
"),a=x(" ").appendTo(e),s=x(" ").appendTo(e),r=c._getPrimaryHeaderCells(),i=r.not('[data-tablesaw-priority="persist"]'),d=[],o=x(document.head||"head"),h=l.attr("id");if(!r.length)throw new Error("tablesaw swipe: no header cells found. Are you using