!function(a,b,c){"use strict";functiond(a){functionb(b){returnc.identifier&&b[c.identifier]===a[c.identifier]}varc=this;returnthis.rows.contains(b)?!1:(this.rows.push(a),!0)}functione(b){varc=this.footer?this.footer.find(b):a(),d=this.header?this.header.find(b):a();returna.merge(c,d)}functionf(b){returnb?a.extend({},this.cachedParams,{ctx:b}):this.cachedParams}functiong(){varb={current:this.current,rowCount:this.rowCount,sort:this.sortDictionary,searchPhrase:this.searchPhrase},c=this.options.post;returnc=a.isFunction(c)?c():c,this.options.requestHandler(a.extend(!0,b,c))}functionh(b){return"."+a.trim(b).replace(/\s+/gm,".")}functioni(){varb=this.options.url;returna.isFunction(b)?b():b}functionj(){this.element.trigger("initialize"+H),m.call(this),this.selection=this.options.selection&&null!=this.identifier,o.call(this),q.call(this),C.call(this),A.call(this),r.call(this),n.call(this),this.element.trigger("initialized"+H)}functionk(a){this.options.highlightRows}functionl(a){returna.visible}functionm(){varb=this,c=this.element.find("thead > tr").first(),d=!1;c.children().each(function(){varc=a(this),e=c.data(),f={id:e.columnId,identifier:null==b.identifier&&e.identifier||!1,converter:b.options.converters[e.converter||e.type]||b.options.converters.string,text:c.text(),align:e.align||"left",headerAlign:e.headerAlign||"left",cssClass:e.cssClass||"",headerCssClass:e.headerCssClass||"",formatter:b.options.formatters[e.formatter]||null,order:d||"asc"!==e.order&&"desc"!==e.order?null:e.order,searchable:!(e.searchable===!1),sortable:!(e.sortable===!1),visible:!(e.visible===!1),visibleInSelection:!(e.visibleInSelection===!1),width:a.isNumeric(e.width)?e.width+"px":"string"==typeofe.width?e.width:null};b.columns.push(f),null!=f.order&&(b.sortDictionary[f.id]=f.order),f.identifier&&(b.identifier=f.id,b.converter=f.converter),b.options.multiSort||null===f.order||(d=!0)})}functionn(){functionc(a){for(varb,c=newRegExp(e.searchPhrase,e.options.caseSensitive?"g":"gi"),d=0;d<e.columns.length;d++)if(b=e.columns[d],b.searchable&&b.visible&&b.converter.to(a[b.id]).search(c)>-1)return!0;return!1}functiond(a,b){e.currentRows=a,p.call(e,b),e.options.keepSelection||(e.selectedRows=[]),y.call(e,a),t.call(e),v.call(e),e.element._bgBusyAria(!1).trigger("loaded"+H)}vare=this;if(this.element._bgBusyAria(!0).trigger("load"+H),F.call(this),this.options.ajax){varf=g.call(this),h=i.call(this);if(null==h||"string"!=typeofh||0===h.length)thrownewError("Url setting must be a none empty string or a function that returns one.");this.xqr&&this.xqr.abort();varj={url:h,data:f,success:function(b){e.xqr=null,"string"==typeofb&&(b=a.parseJSON(b)),b=e.options.responseHandler(b),e.current=b.current,d(b.rows,b.total)},error:function(a,b,c){e.xqr=null,"abort"!==b&&(u.call(e),e.element._bgBusyAria(!1).trigger("loaded"+H))}};j=a.extend(this.options.ajaxSettings,j),this.xqr=a.ajax(j)}else{vark=this.searchPhrase.length>0?this.rows.where(c):this.rows,l=k.length;-1!==this.rowCount&&(k=k.page(this.current,this.rowCount)),b.setTimeout(function(){d(k,l)},10)}}functiono(){if(!this.options.ajax){varb=this,c=this.element.find("tbody > tr");c.each(function(){varc=a(this),e=c.children("td"),f={};a.each(b.columns,function(a,b){f[b.id]=b.converter.from(e.eq(a).text())}),d.call(b,f)}),p.call(this,this.rows.length),G.call(this)}}functionp(a){this.total=a,this.totalPages=-1===this.rowCount?1:Math.ceil(this.total/this.rowCount)}functionq(){varb=this.options.templates,c=this.element.parent().hasClass(this.options.css.responsiveTable)?this.element.parent():this.element;this.element.addClass(this.options.css.table),0===this.element.children("tbody").length&&this.element.append(b.body),1&this.options.navigation&&(this.header=a(b.header.resolve(f.call(this,{id:this.element._bgId()+"-header"}))),c.before(this.header)),2&this.options.navigation&&(this.footer=a(b.footer.resolve(f.call(this,{id:this.element._bgId()+"-footer"}))),c.after(this.footer))}functionr(){if(0!==this.options.navigation){varb=this.options.css,c=h(b.actions),d=e.call(this,c);if(d.le