package.js.dataTables.min.mjs Maven / Gradle / Ivy
/*! DataTables 2.1.4
* © SpryMedia Ltd - datatables.net/license
*/
import jQuery from"jquery";var _ext,_Api,_api_register,_api_registerPlural,$=jQuery,DataTable=function(e,b){var v,D,y;return DataTable.factory(e,b)?DataTable:this instanceof DataTable?$(e).DataTable(b):(D=void 0===(b=e),y=(v=this).length,D&&(b={}),this.api=function(){return new _Api(this)},this.each(function(){var e=1").prependTo(this),fastData:function(e,t,a){return _fnGetCellData(u,e,t,a)}}),a=(u.nTable=this,u.oInit=e,i.push(u),u.api=new _Api(u),u.oInstance=1===v.length?v:r.dataTable(),_fnCompatOpts(e),e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=Array.isArray(e.aLengthMenu[0])?e.aLengthMenu[0][0]:$.isPlainObject(e.aLengthMenu[0])?e.aLengthMenu[0].value:e.aLengthMenu[0]),e=_fnExtend($.extend(!0,{},n),e),_fnMap(u.oFeatures,e,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),_fnMap(u,e,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),_fnMap(u.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),_fnMap(u.oLanguage,e,"fnInfoCallback"),_fnCallbackReg(u,"aoDrawCallback",e.fnDrawCallback),_fnCallbackReg(u,"aoStateSaveParams",e.fnStateSaveParams),_fnCallbackReg(u,"aoStateLoadParams",e.fnStateLoadParams),_fnCallbackReg(u,"aoStateLoaded",e.fnStateLoaded),_fnCallbackReg(u,"aoRowCallback",e.fnRowCallback),_fnCallbackReg(u,"aoRowCreatedCallback",e.fnCreatedRow),_fnCallbackReg(u,"aoHeaderCallback",e.fnHeaderCallback),_fnCallbackReg(u,"aoFooterCallback",e.fnFooterCallback),_fnCallbackReg(u,"aoInitComplete",e.fnInitComplete),_fnCallbackReg(u,"aoPreDrawCallback",e.fnPreDrawCallback),u.rowIdFn=_fnGetObjectDataFn(e.rowId),_fnBrowserDetect(u),u.oClasses),c=($.extend(a,DataTable.ext.classes,e.oClasses),r.addClass(a.table),u.oFeatures.bPaginate||(e.iDisplayStart=0),void 0===u.iInitDisplayStart&&(u.iInitDisplayStart=e.iDisplayStart,u._iDisplayStart=e.iDisplayStart),e.iDeferLoading),f=(null!==c&&(u.deferLoading=!0,d=Array.isArray(c),u._iRecordsDisplay=d?c[0]:c,u._iRecordsTotal=d?c[1]:c),[]),d=this.getElementsByTagName("thead"),c=_fnDetectHeader(u,d[0]);if(e.aoColumns)f=e.aoColumns;else if(c.length)for(g=c[t=0].length;t").appendTo(r):c).html(u.caption),c.length&&(c[0]._captionSide=c.css("caption-side"),u.captionNode=c[0]),0===d.length&&(d=$("").appendTo(r)),u.nTHead=d[0],$("tr",d).addClass(a.thead.row),r.children("tbody")),d=(0===c.length&&(c=$("").insertAfter(d)),u.nTBody=c[0],r.children("tfoot")),m=(0===d.length&&(d=$("").appendTo(r)),u.nTFoot=d[0],$("tr",d).addClass(a.tfoot.row),u.aiDisplay=u.aiDisplayMaster.slice(),u.bInitialised=!0,u.oLanguage);$.extend(!0,m,e.oLanguage),m.sUrl?$.ajax({dataType:"json",url:m.sUrl,success:function(e){_fnCamelToHungarian(n.oLanguage,e),$.extend(!0,m,e,u.oInit.oLanguage),_fnCallbackFire(u,null,"i18n",[u],!0),_fnInitialise(u)},error:function(){_fnLog(u,0,"i18n file loading error",21),_fnInitialise(u)}}):(_fnCallbackFire(u,null,"i18n",[u]),_fnInitialise(u))}}),v=null,this)},_re_dic=(DataTable.ext=_ext={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:DataTable.fnVersionCheck,iApiIndex:0,sVersion:DataTable.version},$.extend(_ext,{afnFiltering:_ext.search,aTypes:_ext.type.detect,ofnSearch:_ext.type.search,oSort:_ext.type.order,afnSortData:_ext.order,aoFeatures:_ext.feature,oStdClasses:_ext.classes,oPagination:_ext.pager}),$.extend(DataTable.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled"}}),{}),_re_new_lines=/[\r\n\u2028]/g,_re_html=/<([^>]*>)/g,_max_str_len=Math.pow(2,28),_re_date=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,_re_escape_regex=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),_re_formatted_numeric=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,_empty=function(e){return!e||!0===e||"-"===e},_intVal=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},_numToDecimal=function(e,t){return _re_dic[t]||(_re_dic[t]=new RegExp(_fnEscapeRegex(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(_re_dic[t],"."):e},_isNumber=function(e,t,a,n){var r=typeof e,i="string"==r;return"number"==r||"bigint"==r||!(!n||!_empty(e))||(t&&i&&(e=_numToDecimal(e,t)),a&&i&&(e=e.replace(_re_formatted_numeric,"")),!isNaN(parseFloat(e))&&isFinite(e))},_isHtml=function(e){return _empty(e)||"string"==typeof e},_htmlNumeric=function(e,t,a,n){return!(!n||!_empty(e))||("string"!=typeof e||!e.match(/<(input|select)/i))&&_isHtml(e)&&!!_isNumber(_stripHtml(e),t,a,n)||null},_pluck=function(e,t,a){var n=[],r=0,i=e.length;if(void 0!==a)for(;r_max_str_len)throw new Error("Exceeded max str len");var t;for(e=e.replace(_re_html,"");(e=(t=e).replace(//g,">").replace(/"/g,"""):e},_normalize=function(e,t){var a;return"string"!=typeof e?e:(a=e.normalize("NFD")).length!==e.length?(!0===t?e+" ":"")+a.replace(/[\u0300-\u036f]/g,""):a},_areAllUnique=function(e){if(!(e.length<2))for(var t=e.slice().sort(),a=t[0],n=1,r=t.length;n ").css({position:"fixed",top:0,left:-1*window.pageXOffset,height:1,width:1,overflow:"hidden"}).append($("").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append($("").css({width:"100%",height:10}))).appendTo("body")).children()).children(),t.barWidth=n[0].offsetWidth-n[0].clientWidth,t.bScrollbarLeft=1!==Math.round(r.offset().left),a.remove()),$.extend(e.oBrowser,DataTable.__browser),e.oScroll.iBarWidth=DataTable.__browser.barWidth}function _fnAddColumn(e){var t=DataTable.defaults.column,a=e.aoColumns.length,t=$.extend({},DataTable.models.oColumn,t,{aDataSort:t.aDataSort||[a],mData:t.mData||a,idx:a,searchFixed:{},colEl:$(" ").attr("data-dt-column",a)}),t=(e.aoColumns.push(t),e.aoPreSearchCols);t[a]=$.extend({},DataTable.models.oSearch,t[a])}function _fnColumnOptions(e,t,a){function n(e){return"string"==typeof e&&-1!==e.indexOf("@")}var r=e.aoColumns[t],i=(null!=a&&(_fnCompatCols(a),_fnCamelToHungarian(DataTable.defaults.column,a,!0),void 0===a.mDataProp||a.mData||(a.mData=a.mDataProp),a.sType&&(r._sManualType=a.sType),a.className&&!a.sClass&&(a.sClass=a.className),t=r.sClass,$.extend(r,a),_fnMap(r,a,"sWidth","sWidthOrig"),t!==r.sClass&&(r.sClass=t+" "+r.sClass),void 0!==a.iDataSort&&(r.aDataSort=[a.iDataSort]),_fnMap(r,a,"aDataSort")),r.mData),o=_fnGetObjectDataFn(i);r.mRender&&Array.isArray(r.mRender)&&(a=(t=r.mRender.slice()).shift(),r.mRender=DataTable.render[a].apply(window,t)),r._render=r.mRender?_fnGetObjectDataFn(r.mRender):null;r._bAttrSrc=$.isPlainObject(i)&&(n(i.sort)||n(i.type)||n(i.filter)),r._setter=null,r.fnGetData=function(e,t,a){var n=o(e,t,void 0,a);return r._render&&t?r._render(n,t,e,a):n},r.fnSetData=function(e,t,a){return _fnSetObjectDataFn(i)(e,t,a)},"number"==typeof i||r._isArrayHost||(e._rowReadObject=!0),e.oFeatures.bSort||(r.bSortable=!1)}function _fnAdjustColumnSizing(e){_fnCalculateColumnWidths(e),_fnColumnSizes(e);var t=e.oScroll;""===t.sY&&""===t.sX||_fnScrollDraw(e),_fnCallbackFire(e,null,"column-sizing",[e])}function _fnColumnSizes(e){for(var t=e.aoColumns,a=0;a ").appendTo(i)).length)for(var l=$("td, th",a).length,s=r.length;l").html(r[l][o]||"").appendTo(a);var u=_fnDetectHeader(e,i,!0);"header"===t?e.aoHeader=u:e.aoFooter=u,$(i).children("tr").attr("role","row"),$(i).children("tr").children("th, td").each(function(){_fnRenderer(e,t)(e,$(this),n)})}}function _fnHeaderLayout(e,t,a){var n,r,i,o,l,s=[],u=[],c=e.aoColumns,e=c.length;if(t){for(a=a||_range(e).filter(function(e){return c[e].bVisible}),n=0;n ").append($(" ",{colSpan:_fnVisbleColumns(e),class:e.oClasses.empty.row}).html(a))[0]}function _layoutItems(e,t,a){if(Array.isArray(a))for(var n=0;n ").attr({id:t.sTableId+"_wrapper",class:e.container}).insertBefore(n);t.nTableWrapper=r[0],t.sDom?_fnLayoutDom(t,t.sDom,r):(e=_layoutArray(t,t.layout,"top"),n=_layoutArray(t,t.layout,"bottom"),a=_fnRenderer(t,"layout"),e.forEach(function(e){a(t,r,e)}),a(t,r,{full:{table:!0,contents:[_fnFeatureHtmlTable(t)]}}),n.forEach(function(e){a(t,r,e)})),_processingHtml(t)}function _fnLayoutDom(t,e,a){for(var n=e.match(/(".*?")|('.*?')|./g),r=0;r "),"'"!=(s=n[r+1])[0]&&'"'!=s[0]||(-1!=(i=s.replace(/['"]/g,s="")).indexOf(".")?(s=(o=i.split("."))[0],o=o[1]):"#"==i[0]?s=i:o=i,l.attr("id",s.substring(1)).addClass(o),r++),a.append(l),a=l):">"==u?a=a.parent():"t"==u?c=_fnFeatureHtmlTable(t):DataTable.ext.feature.forEach(function(e){u==e.cFeature&&(c=e.fnInit(t))}),c&&a.append(c)}}function _fnDetectHeader(e,t,a){for(var n,r,i,o,l,s,u=e.aoColumns,c=$(t).children("tr"),f=t&&"thead"===t.nodeName.toLowerCase(),d=[],_=0,p=c.length;_").addClass("dt-column-title").append(r.childNodes).appendTo(r),f)&&0===$("span.dt-column-order",r).length&&$("").addClass("dt-column-order").appendTo(r),o=0;o=e.fnRecordsDisplay()?0:a,e.iInitDisplayStart=-1)}function _fnBuildAjax(a,e,n){function t(e){var t=a.jqXHR?a.jqXHR.status:null;if((null===e||"number"==typeof t&&204==t)&&_fnAjaxDataSrc(a,e={},[]),(t=e.error||e.sError)&&_fnLog(a,0,t),e.d&&"string"==typeof e.d)try{e=JSON.parse(e.d)}catch(e){}a.json=e,_fnCallbackFire(a,null,"xhr",[a,e,a.jqXHR],!0),n(e)}var r,i=a.ajax,o=a.oInstance,l=($.isPlainObject(i)&&i.data&&(l="function"==typeof(r=i.data)?r(e,a):r,e="function"==typeof r&&l?l:$.extend(!0,e,l),delete i.data),{url:"string"==typeof i?i:"",data:e,success:t,dataType:"json",cache:!1,type:a.sServerMethod,error:function(e,t){-1===_fnCallbackFire(a,null,"xhr",[a,null,a.jqXHR],!0).indexOf(!0)&&("parsererror"==t?_fnLog(a,0,"Invalid JSON response",1):4===e.readyState&&_fnLog(a,0,"Ajax error",7)),_fnProcessingDisplay(a,!1)}});$.isPlainObject(i)&&$.extend(l,i),a.oAjaxData=e,_fnCallbackFire(a,null,"preXhr",[a,e,l],!0),"function"==typeof i?a.jqXHR=i.call(o,e,t,a):""===i.url?(o={},DataTable.util.set(i.dataSrc)(o,[]),t(o)):a.jqXHR=$.ajax(l),r&&(i.data=r)}function _fnAjaxUpdate(t){t.iDraw++,_fnProcessingDisplay(t,!0),_fnBuildAjax(t,_fnAjaxParameters(t),function(e){_fnAjaxUpdateDraw(t,e)})}function _fnAjaxParameters(t){function a(e,t){return"function"==typeof n[e][t]?"function":n[e][t]}var n=t.aoColumns,e=t.oFeatures,r=t.oPreviousSearch,i=t.aoPreSearchCols;return{draw:t.iDraw,columns:n.map(function(t,e){return{data:a(e,"mData"),name:t.sName,searchable:t.bSearchable,orderable:t.bSortable,search:{value:i[e].search,regex:i[e].regex,fixed:Object.keys(t.searchFixed).map(function(e){return{name:e,term:t.searchFixed[e].toString()}})}}}),order:_fnSortFlatten(t).map(function(e){return{column:e.col,dir:e.dir,name:a(e.col,"sName")}}),start:t._iDisplayStart,length:e.bPaginate?t._iDisplayLength:-1,search:{value:r.search,regex:r.regex,fixed:Object.keys(t.searchFixed).map(function(e){return{name:e,term:t.searchFixed[e].toString()}})}}}function _fnAjaxUpdateDraw(e,t){var a=_fnAjaxDataSrc(e,t),n=_fnAjaxDataSrcParam(e,"draw",t),r=_fnAjaxDataSrcParam(e,"recordsTotal",t),t=_fnAjaxDataSrcParam(e,"recordsFiltered",t);if(void 0!==n){if(+n")[0],__filter_div_textContent=void 0!==__filter_div.textContent;function _fnFilterData(e){for(var t,a,n,r,i,o=e.aoColumns,l=e.aoData,s=!1,u=0;u ",{id:e.sTableId+"_processing",class:e.oClasses.processing.container,role:"status"}).html(e.oLanguage.sProcessing).append(""),a?n.prependTo($("div.dt-scroll",e.nTableWrapper)):n.insertBefore(t),$(t).on("processing.dt.DT",function(e,t,a){n.css("display",a?"block":"none")}))}function _fnProcessingDisplay(e,t){e.bDrawing&&!1===t||_fnCallbackFire(e,null,"processing",[e,t])}function _fnProcessingRun(e,t,a){t?(_fnProcessingDisplay(e,!0),setTimeout(function(){a(),_fnProcessingDisplay(e,!1)},0)):a()}function _fnFeatureHtmlTable(e){var t,a,n,r,i,o,l,s,u,c,f,d,_,p=$(e.nTable),h=e.oScroll;return""===h.sX&&""===h.sY?e.nTable:(t=h.sX,a=h.sY,n=e.oClasses.scrolling,i=(r=e.captionNode)?r._captionSide:null,u=$(p[0].cloneNode(!1)),o=$(p[0].cloneNode(!1)),c=function(e){return e?_fnStringToCss(e):null},(l=p.children("tfoot")).length||(l=null),u=$(s="",{class:n.container}).append($(s,{class:n.header.self}).css({overflow:"hidden",position:"relative",border:0,width:t?c(t):"100%"}).append($(s,{class:n.header.inner}).css({"box-sizing":"content-box",width:h.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===i?r:null).append(p.children("thead"))))).append($(s,{class:n.body}).css({position:"relative",overflow:"auto",width:c(t)}).append(p)),l&&u.append($(s,{class:n.footer.self}).css({overflow:"hidden",border:0,width:t?c(t):"100%"}).append($(s,{class:n.footer.inner}).append(o.removeAttr("id").css("margin-left",0).append("bottom"===i?r:null).append(p.children("tfoot"))))),c=u.children(),f=c[0],d=c[1],_=l?c[2]:null,$(d).on("scroll.DT",function(){var e=this.scrollLeft;f.scrollLeft=e,l&&(_.scrollLeft=e)}),$("th, td",f).on("focus",function(){var e=f.scrollLeft;d.scrollLeft=e,l&&(d.scrollLeft=e)}),$(d).css("max-height",a),h.bCollapse||$(d).css("height",a),e.nScrollHead=f,e.nScrollBody=d,e.nScrollFoot=_,e.aoDrawCallback.push(_fnScrollDraw),u[0])}function _fnScrollDraw(t){var e=t.oScroll.iBarWidth,a=$(t.nScrollHead).children("div"),n=a.children("table"),r=t.nScrollBody,i=$(r),o=$(t.nScrollFoot).children("div"),l=o.children("table"),s=$(t.nTHead),u=$(t.nTable),c=t.nTFoot&&$("th, td",t.nTFoot).length?$(t.nTFoot):null,f=t.oBrowser,d=r.scrollHeight>r.clientHeight;if(t.scrollBarVis!==d&&void 0!==t.scrollBarVis)t.scrollBarVis=d,_fnAdjustColumnSizing(t);else{if(t.scrollBarVis=d,u.children("thead, tfoot").remove(),(d=s.clone().prependTo(u)).find("th, td").removeAttr("tabindex"),d.find("[id]").removeAttr("id"),c&&(g=c.clone().prependTo(u)).find("[id]").removeAttr("id"),t.aiDisplay.length)for(var _=u.children("tbody").eq(0).children("tr").eq(0).children("th, td").map(function(e){return{idx:_fnVisibleToColumnIndex(t,e),width:$(this).outerWidth()}}),p=0;p<_.length;p++){var h=t.aoColumns[_[p].idx].colEl[0];h.style.width.replace("px","")!==_[p].width&&(h.style.width=_[p].width+"px")}n.find("colgroup").remove(),n.append(t.colgroup.clone()),c&&(l.find("colgroup").remove(),l.append(t.colgroup.clone())),$("th, td",d).each(function(){$(this.childNodes).wrapAll('')}),c&&$("th, td",g).each(function(){$(this.childNodes).wrapAll('')});var s=Math.floor(u.height())>r.clientHeight||"scroll"==i.css("overflow-y"),d="padding"+(f.bScrollbarLeft?"Left":"Right"),g=u.outerWidth();n.css("width",_fnStringToCss(g)),a.css("width",_fnStringToCss(g)).css(d,s?e+"px":"0px"),c&&(l.css("width",_fnStringToCss(g)),o.css("width",_fnStringToCss(g)).css(d,s?e+"px":"0px")),u.children("colgroup").prependTo(u),i.trigger("scroll"),!t.bSorted&&!t.bFiltered||t._drawHold||(r.scrollTop=0)}}function _fnCalculateColumnWidths(t){if(t.oFeatures.bAutoWidth){var e=t.nTable,a=t.aoColumns,n=t.oScroll,r=n.sY,i=n.sX,n=n.sXInner,o=_fnGetColumns(t,"bVisible"),l=e.getAttribute("width"),s=e.parentNode,u=e.style.width,u=((u=u||l?u:e.style.width="100%")&&-1!==u.indexOf("%")&&(l=u),_fnCallbackFire(t,null,"column-calc",{visible:o},!1),$(e.cloneNode()).css("visibility","hidden").removeAttr("id")),c=(u.append(""),$(" ").appendTo(u.find("tbody")));for(u.append($(t.nTHead).clone()).append($(t.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),u.find("thead th, thead td").each(function(){var e=_fnColumnsSumWidth(t,this,!0,!1);e?(this.style.width=e,i&&$(this).append($("").css({width:e,margin:0,padding:0,border:0,height:1}))):this.style.width=""}),b=0;b").addClass(_).addClass(f.sClass).append(d).appendTo(c)}$("[name]",u).removeAttr("name");for(var h=$("").css(i||r?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(s),g=(i&&n?u.width(n):i?(u.css("width","auto"),u.removeAttr("width"),u.width()r&&(n=s,r=l.length)}a.maxLenString=n}return a.maxLenString}function _fnStringToCss(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function _colGroup(e){var t=e.aoColumns;for(e.colgroup.empty(),i=0;i=i.length?[0,t[1]]:t)})),void 0!==e.search&&$.extend(a.oPreviousSearch,e.search),e.columns){for(n=0,r=e.columns.length;ne?new _Api(t[e],this[e]):null},filter:function(e){e=__arrayProto.filter.call(this,e,this);return new _Api(this.context,e)},flatten:function(){var e=[];return new _Api(this.context,e.concat.apply(e,this.toArray()))},get:function(e){return this[e]},join:__arrayProto.join,includes:function(e){return-1!==this.indexOf(e)},indexOf:__arrayProto.indexOf,iterator:function(e,t,a,n){var r,i,o,l,s,u,c,f,d=[],_=this.context,p=this.selector;for("string"==typeof e&&(n=a,a=t,t=e,e=!1),i=0,o=_.length;i").html(r),e.captionNode=a[0],i)||(t.prepend(a),i=a.css("caption-side")),a.html(r),i&&(a.css("caption-side",i),a[0]._captionSide=i),(n.find("div.dataTables_scroll").length?(e="top"===i?"Head":"Foot",n.find("div.dataTables_scroll"+e+" table")):t).prepend(a)},1)}),_api_register("caption.node()",function(){var e=this.context;return e.length?e[0].captionNode:null}),_api_register("draw()",function(t){return this.iterator("table",function(e){"page"===t?_fnDraw(e):_fnReDraw(e,!1===(t="string"==typeof t?"full-hold"!==t:t))})}),_api_register("page()",function(t){return void 0===t?this.page.info().page:this.iterator("table",function(e){_fnPageChange(e,t)})}),_api_register("page.info()",function(){var e,t,a,n,r;if(0!==this.context.length)return t=(e=this.context[0])._iDisplayStart,a=e.oFeatures.bPaginate?e._iDisplayLength:-1,n=e.fnRecordsDisplay(),{page:(r=-1===a)?0:Math.floor(t/a),pages:r?1:Math.ceil(n/a),start:t,end:e.fnDisplayEnd(),length:a,recordsTotal:e.fnRecordsTotal(),recordsDisplay:n,serverSide:"ssp"===_fnDataSource(e)}}),_api_register("page.len()",function(t){return void 0===t?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",function(e){_fnLengthChange(e,t)})}),function(r,i,e){var t,a;e&&(t=new _Api(r)).one("draw",function(){e(t.ajax.json())}),"ssp"==_fnDataSource(r)?_fnReDraw(r,i):(_fnProcessingDisplay(r,!0),(a=r.jqXHR)&&4!==a.readyState&&a.abort(),_fnBuildAjax(r,{},function(e){_fnClearTable(r);for(var t=_fnAjaxDataSrc(r,e),a=0,n=t.length;a ").attr("data-dt-row",o.idx).addClass(t),$("td",a).addClass(t).html(e)[0].colSpan=_fnVisbleColumns(i),s.push(a[0]))}var s=[];l(e,t),o._details&&o._details.detach(),o._details=$(s),o._detailsShow&&o._details.insertAfter(o.nTr)},__details_state=DataTable.util.throttle(function(e){_fnSaveState(e[0])},500),__details_remove=function(e,t){var a=e.context;a.length&&(t=a[0].aoData[void 0!==t?t:e[0]])&&t._details&&(t._details.remove(),t._detailsShow=void 0,t._details=void 0,$(t.nTr).removeClass("dt-hasChild"),__details_state(a))},__details_display=function(e,t){var a,n=e.context;n.length&&e.length&&(a=n[0].aoData[e[0]])._details&&((a._detailsShow=t)?(a._details.insertAfter(a.nTr),$(a.nTr).addClass("dt-hasChild")):(a._details.detach(),$(a.nTr).removeClass("dt-hasChild")),_fnCallbackFire(n[0],null,"childRow",[t,e.row(e[0])]),__details_events(n[0]),__details_state(n))},__details_events=function(o){var r=new _Api(o),e=".dt.DT_details",t="draw"+e,a="column-sizing"+e,e="destroy"+e,l=o.aoData;r.off(t+" "+a+" "+e),0<_pluck(l,"_details").length&&(r.on(t,function(e,t){o===t&&r.rows({page:"current"}).eq(0).each(function(e){e=l[e];e._detailsShow&&e._details.insertAfter(e.nTr)})}),r.on(a,function(e,t){if(o===t)for(var a,n=_fnVisbleColumns(t),r=0,i=l.length;r").html(""+Array(e).join(" ")+" "),a=($(this.table().body()).append(e),e.children().map(function(){return $(this).outerWidth()}));return e.remove(),this.iterator("column",function(e,t){e=_fnColumnIndexToVisible(e,t);return null!==e?a[e]:0},1)}),_api_registerPlural("columns().indexes()","column().index()",function(a){return this.iterator("column",function(e,t){return"visible"===a?_fnColumnIndexToVisible(e,t):t},1)}),_api_register("columns.adjust()",function(){return this.iterator("table",function(e){_fnAdjustColumnSizing(e)},1)}),_api_register("column.index()",function(e,t){var a;if(0!==this.context.length)return a=this.context[0],"fromVisible"===e||"toData"===e?_fnVisibleToColumnIndex(a,t):"fromData"===e||"toVisible"===e?_fnColumnIndexToVisible(a,t):void 0}),_api_register("column()",function(e,t){return _selector_first(this.columns(e,t))}),function(n,e,t){var r,i,o,l,s,u,c,f=n.aoData,d=_selector_row_indexes(n,t),a=_removeEmpty(_pluck_order(f,d,"anCells")),_=$(_flatten([],a)),p=n.aoColumns.length;return _selector_run("cell",e,function(e){var t,a="function"==typeof e;if(null==e||a){for(i=[],o=0,l=d.length;o').html(a)[0]:$("