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