From 478ca512cbeb2e753ab2d39d3087a3709468bca6 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 20 Mar 2023 12:35:30 +0000 Subject: [PATCH] 7191c90f7134d1bccc6e5fcdbaab9998eec6e148 Fix: Remove incorrect argument count on internal filtering call Relates to https://github.com/DataTables/DataTablesSrc/issues/210 df587f100c1f32013a0e07ccb8f96dea99e1cc3b Merge branch 'master' of github.com:DataTables/DataTablesSrc Sync to source repo @df587f100c1f32013a0e07ccb8f96dea99e1cc3b --- datatables.json | 2 +- js/jquery.dataTables.js | 2 +- js/jquery.dataTables.min.js | 2 +- js/jquery.dataTables.min.mjs | 2 +- js/jquery.dataTables.mjs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/datatables.json b/datatables.json index ee1e91e..b365b56 100644 --- a/datatables.json +++ b/datatables.json @@ -11,5 +11,5 @@ ], "src-repo": "http://github.com/DataTables/DataTablesSrc", "last-tag": "1.13.4", - "last-sync": "3e3b2a54a8513842de4874480983ceca238410b5" + "last-sync": "df587f100c1f32013a0e07ccb8f96dea99e1cc3b" } \ No newline at end of file diff --git a/js/jquery.dataTables.js b/js/jquery.dataTables.js index 65116f2..e5cbbca 100644 --- a/js/jquery.dataTables.js +++ b/js/jquery.dataTables.js @@ -4397,7 +4397,7 @@ if ( _fnDataSource( oSettings ) != 'ssp' ) { /* Global filter */ - _fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive, oInput.return ); + _fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive ); fnSaveFilter( oInput ); /* Now do the individual column filter */ diff --git a/js/jquery.dataTables.min.js b/js/jquery.dataTables.min.js index cfa83bd..3e87022 100644 --- a/js/jquery.dataTables.min.js +++ b/js/jquery.dataTables.min.js @@ -1,4 +1,4 @@ /*! DataTables 1.13.4 * ©2008-2023 SpryMedia Ltd - datatables.net/license */ -!function(n){"use strict";var a;"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,window,document)}):"object"==typeof exports?(a=require("jquery"),"undefined"!=typeof window?module.exports=function(t,e){return t=t||window,e=e||a(t),n(e,t,t.document)}:n(a,window,window.document)):window.DataTable=n(jQuery,window,document)}(function(P,j,y,N){"use strict";function d(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null}function l(t,e,n){var a=typeof t,r="string"==a;return"number"==a||"bigint"==a||(!!h(t)||(e&&r&&(t=G(t,e)),n&&r&&(t=t.replace(q,"")),!isNaN(parseFloat(t))&&isFinite(t)))}function a(t,e,n){var a;return!!h(t)||((h(a=t)||"string"==typeof a)&&!!l(t.replace(V,""),e,n)||null)}function m(t,e,n,a){var r=[],o=0,i=e.length;if(a!==N)for(;o").appendTo(l)),h.nTHead=n[0],l.children("tbody")),n=(0===a.length&&(a=P("").insertAfter(n)),h.nTBody=a[0],l.children("tfoot"));if(0===(n=0===n.length&&0").appendTo(l):n).length||0===n.children().length?l.addClass(p.sNoFooter):0/g,X=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,J=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),q=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,h=function(t){return!t||!0===t||"-"===t},G=function(t,e){return c[e]||(c[e]=new RegExp(Ot(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(c[e],"."):t},H=function(t,e,n){var a=[],r=0,o=t.length;if(n!==N)for(;r").css({position:"fixed",top:0,left:-1*P(j).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(P("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(P("
").css({width:"100%",height:10}))).appendTo("body")).children()).children(),e.barWidth=a[0].offsetWidth-a[0].clientWidth,e.bScrollOversize=100===r[0].offsetWidth&&100!==a[0].clientWidth,e.bScrollbarLeft=1!==Math.round(r.offset().left),e.bBounding=!!n[0].getBoundingClientRect().width,n.remove()),P.extend(t.oBrowser,w.__browser),t.oScroll.iBarWidth=w.__browser.barWidth}function et(t,e,n,a,r,o){var i,l=a,s=!1;for(n!==N&&(i=n,s=!0);l!==r;)t.hasOwnProperty(l)&&(i=s?e(i,t[l],l,t):t[l],s=!0,l+=o);return i}function nt(t,e){var n=w.defaults.column,a=t.aoColumns.length,n=P.extend({},w.models.oColumn,n,{nTh:e||y.createElement("th"),sTitle:n.sTitle||(e?e.innerHTML:""),aDataSort:n.aDataSort||[a],mData:n.mData||a,idx:a}),n=(t.aoColumns.push(n),t.aoPreSearchCols);n[a]=P.extend({},w.models.oSearch,n[a]),at(t,a,P(e).data())}function at(t,e,n){function a(t){return"string"==typeof t&&-1!==t.indexOf("@")}var e=t.aoColumns[e],r=t.oClasses,o=P(e.nTh),i=(e.sWidthOrig||(e.sWidthOrig=o.attr("width")||null,(u=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(e.sWidthOrig=u[1])),n!==N&&null!==n&&(Q(n),C(w.defaults.column,n,!0),n.mDataProp===N||n.mData||(n.mData=n.mDataProp),n.sType&&(e._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&o.addClass(n.sClass),u=e.sClass,P.extend(e,n),F(e,n,"sWidth","sWidthOrig"),u!==e.sClass&&(e.sClass=u+" "+e.sClass),n.iDataSort!==N&&(e.aDataSort=[n.iDataSort]),F(e,n,"aDataSort")),e.mData),l=A(i),s=e.mRender?A(e.mRender):null,u=(e._bAttrSrc=P.isPlainObject(i)&&(a(i.sort)||a(i.type)||a(i.filter)),e._setter=null,e.fnGetData=function(t,e,n){var a=l(t,e,N,n);return s&&e?s(a,e,t,n):a},e.fnSetData=function(t,e,n){return b(i)(t,e,n)},"number"==typeof i||e._isArrayHost||(t._rowReadObject=!0),t.oFeatures.bSort||(e.bSortable=!1,o.addClass(r.sSortableNone)),-1!==P.inArray("asc",e.asSorting)),n=-1!==P.inArray("desc",e.asSorting);e.bSortable&&(u||n)?u&&!n?(e.sSortingClass=r.sSortableAsc,e.sSortingClassJUI=r.sSortJUIAscAllowed):!u&&n?(e.sSortingClass=r.sSortableDesc,e.sSortingClassJUI=r.sSortJUIDescAllowed):(e.sSortingClass=r.sSortable,e.sSortingClassJUI=r.sSortJUI):(e.sSortingClass=r.sSortableNone,e.sSortingClassJUI="")}function O(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;ee(t);for(var n=0,a=e.length;ne&&t[r]--;-1!=a&&n===N&&t.splice(a,1)}function bt(n,a,t,e){function r(t,e){for(;t.childNodes.length;)t.removeChild(t.firstChild);t.innerHTML=S(n,a,e,"display")}var o,i,l=n.aoData[a];if("dom"!==t&&(t&&"auto"!==t||"dom"!==l.src)){var s=l.anCells;if(s)if(e!==N)r(s[e],e);else for(o=0,i=s.length;o").appendTo(r)),c=0,f=s.length;c=s.fnRecordsDisplay()?0:l,s.iInitDisplayStart=-1);var n=R(t,"aoPreDrawCallback","preDraw",[t]);if(-1!==P.inArray(!1,n))D(t,!1);else{var a=[],r=0,o=t.asStripeClasses,i=o.length,l=t.oLanguage,s="ssp"==E(t),u=t.aiDisplay,n=t._iDisplayStart,c=t.fnDisplayEnd();if(t.bDrawing=!0,t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,D(t,!1);else if(s){if(!t.bDestroying&&!e)return void xt(t)}else t.iDraw++;if(0!==u.length)for(var f=s?t.aoData.length:c,d=s?0:n;d",{class:i?o[0]:""}).append(P("",{valign:"top",colSpan:T(t),class:t.oClasses.sRowEmpty}).html(e))[0]}R(t,"aoHeaderCallback","header",[P(t.nTHead).children("tr")[0],ht(t),n,c,u]),R(t,"aoFooterCallback","footer",[P(t.nTFoot).children("tr")[0],ht(t),n,c,u]);s=P(t.nTBody);s.children().detach(),s.append(P(a)),R(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function u(t,e){var n=t.oFeatures,a=n.bSort,n=n.bFilter;a&&ie(t),n?Rt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,v(t),t._drawHold=!1}function _t(t){for(var e,n,a,r,o,i,l,s=t.oClasses,u=P(t.nTable),u=P("
").insertBefore(u),c=t.oFeatures,f=P("
",{id:t.sTableId+"_wrapper",class:s.sWrapper+(t.nTFoot?"":" "+s.sNoFooter)}),d=(t.nHolding=u[0],t.nTableWrapper=f[0],t.nTableReinsertBefore=t.nTable.nextSibling,t.sDom.split("")),h=0;h")[0],"'"==(r=d[h+1])||'"'==r){for(o="",i=2;d[h+i]!=r;)o+=d[h+i],i++;"H"==o?o=s.sJUIHeader:"F"==o&&(o=s.sJUIFooter),-1!=o.indexOf(".")?(l=o.split("."),a.id=l[0].substr(1,l[0].length-1),a.className=l[1]):"#"==o.charAt(0)?a.id=o.substr(1,o.length-1):a.className=o,h+=i}f.append(a),f=P(a)}else if(">"==n)f=f.parent();else if("l"==n&&c.bPaginate&&c.bLengthChange)e=$t(t);else if("f"==n&&c.bFilter)e=Lt(t);else if("r"==n&&c.bProcessing)e=Zt(t);else if("t"==n)e=Kt(t);else if("i"==n&&c.bInfo)e=Ut(t);else if("p"==n&&c.bPaginate)e=zt(t);else if(0!==w.ext.feature.length)for(var p=w.ext.feature,g=0,b=p.length;g',s=(s=r.sSearch).match(/_INPUT_/)?s.replace("_INPUT_",l):s+l,l=P("
",{id:i.f?null:a+"_filter",class:t.sFilter}).append(P("
").addClass(t.sLength);return a.aanFeatures.l||(c[0].id=e+"_length"),c.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),P("select",c).val(a._iDisplayLength).on("change.DT",function(t){Gt(a,P(this).val()),v(a)}),P(a.nTable).on("length.dt.DT",function(t,e,n){a===e&&P("select",c).val(n)}),c[0]}function zt(t){function c(t){v(t)}var e=t.sPaginationType,f=w.ext.pager[e],d="function"==typeof f,e=P("
").addClass(t.oClasses.sPaging+e)[0],h=t.aanFeatures;return d||f.fnInit(t,e,c),h.p||(e.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(d)for(var e=t._iDisplayStart,n=t._iDisplayLength,a=t.fnRecordsDisplay(),r=-1===n,o=r?0:Math.ceil(e/n),i=r?1:Math.ceil(a/n),l=f(o,i),s=0,u=h.p.length;s",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing,role:"status"}).html(t.oLanguage.sProcessing).append("
").insertBefore(t.nTable)[0]}function D(t,e){t.oFeatures.bProcessing&&P(t.aanFeatures.r).css("display",e?"block":"none"),R(t,null,"processing",[t,e])}function Kt(t){var e,n,a,r,o,i,l,s,u,c,f,d,h=P(t.nTable),p=t.oScroll;return""===p.sX&&""===p.sY?t.nTable:(e=p.sX,n=p.sY,a=t.oClasses,o=(r=h.children("caption")).length?r[0]._captionSide:null,s=P(h[0].cloneNode(!1)),i=P(h[0].cloneNode(!1)),u=function(t){return t?M(t):null},(l=h.children("tfoot")).length||(l=null),s=P(f="
",{class:a.sScrollWrapper}).append(P(f,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:e?u(e):"100%"}).append(P(f,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:p.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===o?r:null).append(h.children("thead"))))).append(P(f,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:u(e)}).append(h)),l&&s.append(P(f,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:e?u(e):"100%"}).append(P(f,{class:a.sScrollFootInner}).append(i.removeAttr("id").css("margin-left",0).append("bottom"===o?r:null).append(h.children("tfoot"))))),u=s.children(),c=u[0],f=u[1],d=l?u[2]:null,e&&P(f).on("scroll.DT",function(t){var e=this.scrollLeft;c.scrollLeft=e,l&&(d.scrollLeft=e)}),P(f).css("max-height",n),p.bCollapse||P(f).css("height",n),t.nScrollHead=c,t.nScrollBody=f,t.nScrollFoot=d,t.aoDrawCallback.push({fn:Qt,sName:"scrolling"}),s[0])}function Qt(n){function t(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0}var e,a,r,o,i,l=n.oScroll,s=l.sX,u=l.sXInner,c=l.sY,l=l.iBarWidth,f=P(n.nScrollHead),d=f[0].style,h=f.children("div"),p=h[0].style,h=h.children("table"),g=n.nScrollBody,b=P(g),m=g.style,S=P(n.nScrollFoot).children("div"),v=S.children("table"),y=P(n.nTHead),D=P(n.nTable),_=D[0],w=_.style,C=n.nTFoot?P(n.nTFoot):null,T=n.oBrowser,x=T.bScrollOversize,A=(H(n.aoColumns,"nTh"),[]),I=[],F=[],L=[],R=g.scrollHeight>g.clientHeight;n.scrollBarVis!==R&&n.scrollBarVis!==N?(n.scrollBarVis=R,O(n)):(n.scrollBarVis=R,D.children("thead, tfoot").remove(),C&&(R=C.clone().prependTo(D),i=C.find("tr"),a=R.find("tr"),R.find("[id]").removeAttr("id")),R=y.clone().prependTo(D),y=y.find("tr"),e=R.find("tr"),R.find("th, td").removeAttr("tabindex"),R.find("[id]").removeAttr("id"),s||(m.width="100%",f[0].style.width="100%"),P.each(Ct(n,R),function(t,e){r=rt(n,t),e.style.width=n.aoColumns[r].sWidth}),C&&k(function(t){t.style.width=""},a),f=D.outerWidth(),""===s?(w.width="100%",x&&(D.find("tbody").height()>g.offsetHeight||"scroll"==b.css("overflow-y"))&&(w.width=M(D.outerWidth()-l)),f=D.outerWidth()):""!==u&&(w.width=M(u),f=D.outerWidth()),k(t,e),k(function(t){var e=j.getComputedStyle?j.getComputedStyle(t).width:M(P(t).width());F.push(t.innerHTML),A.push(e)},e),k(function(t,e){t.style.width=A[e]},y),P(e).css("height",0),C&&(k(t,a),k(function(t){L.push(t.innerHTML),I.push(M(P(t).css("width")))},a),k(function(t,e){t.style.width=I[e]},i),P(a).height(0)),k(function(t,e){t.innerHTML='
'+F[e]+"
",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=A[e]},e),C&&k(function(t,e){t.innerHTML='
'+L[e]+"
",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=I[e]},a),Math.round(D.outerWidth())g.offsetHeight||"scroll"==b.css("overflow-y")?f+l:f,x&&(g.scrollHeight>g.offsetHeight||"scroll"==b.css("overflow-y"))&&(w.width=M(o-l)),""!==s&&""===u||W(n,1,"Possible column misalignment",6)):o="100%",m.width=M(o),d.width=M(o),C&&(n.nScrollFoot.style.width=M(o)),c||x&&(m.height=M(_.offsetHeight+l)),R=D.outerWidth(),h[0].style.width=M(R),p.width=M(R),y=D.height()>g.clientHeight||"scroll"==b.css("overflow-y"),p[i="padding"+(T.bScrollbarLeft?"Left":"Right")]=y?l+"px":"0px",C&&(v[0].style.width=M(R),S[0].style.width=M(R),S[0].style[i]=y?l+"px":"0px"),D.children("colgroup").insertBefore(D.children("thead")),b.trigger("scroll"),!n.bSorted&&!n.bFiltered||n._drawHold||(g.scrollTop=0))}function k(t,e,n){for(var a,r,o=0,i=0,l=e.length;i/g;function ee(t){var e,n,a=t.nTable,r=t.aoColumns,o=t.oScroll,i=o.sY,l=o.sX,o=o.sXInner,s=r.length,u=it(t,"bVisible"),c=P("th",t.nTHead),f=a.getAttribute("width"),d=a.parentNode,h=!1,p=t.oBrowser,g=p.bScrollOversize,b=a.style.width;for(b&&-1!==b.indexOf("%")&&(f=b),D=0;D").appendTo(b.find("tbody")));for(b.find("thead, tfoot").remove(),b.append(P(t.nTHead).clone()).append(P(t.nTFoot).clone()),b.find("tfoot th, tfoot td").css("width",""),c=Ct(t,b.find("thead")[0]),D=0;D").css({width:e.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(t.aoData.length)for(D=0;D").css(l||i?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(b).appendTo(d),y=(l&&o?b.width(o):l?(b.css("width","auto"),b.removeAttr("width"),b.width()").css("width",M(t)).appendTo(e||y.body))[0].offsetWidth,t.remove(),e):0}function re(t,e){var n,a=oe(t,e);return a<0?null:(n=t.aoData[a]).nTr?n.anCells[e]:P("").html(S(t,a,e,"display"))[0]}function oe(t,e){for(var n,a=-1,r=-1,o=0,i=t.aoData.length;oa&&(a=n.length,r=o);return r}function M(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function I(t){function e(t){t.length&&!Array.isArray(t[0])?h.push(t):P.merge(h,t)}var n,a,r,o,i,l,s,u=[],c=t.aoColumns,f=t.aaSortingFixed,d=P.isPlainObject(f),h=[];for(Array.isArray(f)&&e(f),d&&f.pre&&e(f.pre),e(t.aaSorting),d&&f.post&&e(f.post),n=0;n/g,""),u=i.nTh;u.removeAttribute("aria-sort"),i=i.bSortable?s+("asc"===(0=o.length?[0,e[1]]:e)})),t.search!==N&&P.extend(n.oPreviousSearch,Bt(t.search)),t.columns){for(a=0,r=t.columns.length;a").addClass(e),P("td",n).addClass(e).html(t)[0].colSpan=T(o),l.push(n[0]))}var l=[];i(e,n),t._details&&t._details.detach(),t._details=P(l),t._detailsShow&&t._details.insertAfter(t.nTr)}function xe(t,e){var n=t.context;if(n.length&&t.length){var a=n[0].aoData[t[0]];if(a._details){(a._detailsShow=e)?(a._details.insertAfter(a.nTr),P(a.nTr).addClass("dt-hasChild")):(a._details.detach(),P(a.nTr).removeClass("dt-hasChild")),R(n[0],null,"childRow",[e,t.row(t[0])]);var s=n[0],r=new B(s),a=".dt.DT_details",e="draw"+a,t="column-sizing"+a,a="destroy"+a,u=s.aoData;if(r.off(e+" "+t+" "+a),H(u,"_details").length>0){r.on(e,function(t,e){if(s!==e)return;r.rows({page:"current"}).eq(0).each(function(t){var e=u[t];if(e._detailsShow)e._details.insertAfter(e.nTr)})});r.on(t,function(t,e,n,a){if(s!==e)return;var r,o=T(e);for(var i=0,l=u.length;it?new B(e[t],this[t]):null},filter:function(t){var e=[];if(o.filter)e=o.filter.call(this,t,this);else for(var n=0,a=this.length;n").appendTo(t);p(u,n)}else{switch(g=null,b=n,a=c.iTabIndex,n){case"ellipsis":t.append('');break;case"first":g=S.sFirst,0===d&&(a=-1,b+=" "+o);break;case"previous":g=S.sPrevious,0===d&&(a=-1,b+=" "+o);break;case"next":g=S.sNext,0!==h&&d!==h-1||(a=-1,b+=" "+o);break;case"last":g=S.sLast,0!==h&&d!==h-1||(a=-1,b+=" "+o);break;default:g=c.fnFormatNumber(n+1),b=d===n?m.sPageButtonActive:""}null!==g&&(u=c.oInit.pagingTag||"a",r=-1!==b.indexOf(o),me(P("<"+u+">",{class:m.sPageButton+" "+b,"aria-controls":c.sTableId,"aria-disabled":r?"true":null,"aria-label":v[n],"aria-role":"link","aria-current":b===m.sPageButtonActive?"page":null,"data-dt-idx":n,tabindex:a,id:0===f&&"string"==typeof n?c.sTableId+"_"+n:null}).html(g).appendTo(t),{action:n},i))}}var g,b,n,m=c.oClasses,S=c.oLanguage.oPaginate,v=c.oLanguage.oAria.paginate||{};try{n=P(t).find(y.activeElement).data("dt-idx")}catch(t){}p(P(t).empty(),e),n!==N&&P(t).find("[data-dt-idx="+n+"]").trigger("focus")}}}),P.extend(w.ext.type.detect,[function(t,e){e=e.oLanguage.sDecimal;return l(t,e)?"num"+e:null},function(t,e){var n;return(!t||t instanceof Date||X.test(t))&&(null!==(n=Date.parse(t))&&!isNaN(n)||h(t))?"date":null},function(t,e){e=e.oLanguage.sDecimal;return l(t,e,!0)?"num-fmt"+e:null},function(t,e){e=e.oLanguage.sDecimal;return a(t,e)?"html-num"+e:null},function(t,e){e=e.oLanguage.sDecimal;return a(t,e,!0)?"html-num-fmt"+e:null},function(t,e){return h(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),P.extend(w.ext.type.search,{html:function(t){return h(t)?t:"string"==typeof t?t.replace(U," ").replace(V,""):""},string:function(t){return!h(t)&&"string"==typeof t?t.replace(U," "):t}});function ke(t,e,n,a){var r;return 0===t||t&&"-"!==t?"number"==(r=typeof t)||"bigint"==r?t:((t=e?G(t,e):t).replace&&(n&&(t=t.replace(n,"")),a&&(t=t.replace(a,""))),+t):-1/0}function Me(n){P.each({num:function(t){return ke(t,n)},"num-fmt":function(t){return ke(t,n,q)},"html-num":function(t){return ke(t,n,V)},"html-num-fmt":function(t){return ke(t,n,V,q)}},function(t,e){p.type.order[t+n+"-pre"]=e,t.match(/^html\-/)&&(p.type.search[t+n]=p.type.search.html)})}P.extend(p.type.order,{"date-pre":function(t){t=Date.parse(t);return isNaN(t)?-1/0:t},"html-pre":function(t){return h(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return h(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t").addClass(l.sSortJUIWrapper).append(o.contents()).append(P("").addClass(l.sSortIcon+" "+i.sSortingClassJUI)).appendTo(o),P(r.nTable).on("order.dt.DT",function(t,e,n,a){r===e&&(e=i.idx,o.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==a[e]?l.sSortAsc:"desc"==a[e]?l.sSortDesc:i.sSortingClass),o.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==a[e]?l.sSortJUIAsc:"desc"==a[e]?l.sSortJUIDesc:i.sSortingClassJUI))})}}});function We(t){return"string"==typeof(t=Array.isArray(t)?t.join(","):t)?t.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):t}function Ee(t,e,n,a,r){return j.moment?t[e](r):j.luxon?t[n](r):a?t[a](r):t}var Be=!1;function Ue(t,e,n){var a;if(j.moment){if(!(a=j.moment.utc(t,e,n,!0)).isValid())return null}else if(j.luxon){if(!(a=e&&"string"==typeof t?j.luxon.DateTime.fromFormat(t,e):j.luxon.DateTime.fromISO(t)).isValid)return null;a.setLocale(n)}else e?(Be||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Be=!0):a=new Date(t);return a}function Ve(s){return function(a,r,o,i){0===arguments.length?(o="en",a=r=null):1===arguments.length?(o="en",r=a,a=null):2===arguments.length&&(o=r,r=a,a=null);var l="datetime-"+r;return w.ext.type.order[l]||(w.ext.type.detect.unshift(function(t){return t===l&&l}),w.ext.type.order[l+"-asc"]=function(t,e){t=t.valueOf(),e=e.valueOf();return t===e?0:t").appendTo(l)),h.nTHead=n[0],l.children("tbody")),n=(0===a.length&&(a=P("").insertAfter(n)),h.nTBody=a[0],l.children("tfoot"));if(0===(n=0===n.length&&0").appendTo(l):n).length||0===n.children().length?l.addClass(p.sNoFooter):0/g,X=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,J=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),q=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,h=function(t){return!t||!0===t||"-"===t},G=function(t,e){return c[e]||(c[e]=new RegExp(Ot(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(c[e],"."):t},H=function(t,e,n){var a=[],r=0,o=t.length;if(n!==N)for(;r").css({position:"fixed",top:0,left:-1*P(j).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(P("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(P("
").css({width:"100%",height:10}))).appendTo("body")).children()).children(),e.barWidth=a[0].offsetWidth-a[0].clientWidth,e.bScrollOversize=100===r[0].offsetWidth&&100!==a[0].clientWidth,e.bScrollbarLeft=1!==Math.round(r.offset().left),e.bBounding=!!n[0].getBoundingClientRect().width,n.remove()),P.extend(t.oBrowser,w.__browser),t.oScroll.iBarWidth=w.__browser.barWidth}function et(t,e,n,a,r,o){var i,l=a,s=!1;for(n!==N&&(i=n,s=!0);l!==r;)t.hasOwnProperty(l)&&(i=s?e(i,t[l],l,t):t[l],s=!0,l+=o);return i}function nt(t,e){var n=w.defaults.column,a=t.aoColumns.length,n=P.extend({},w.models.oColumn,n,{nTh:e||y.createElement("th"),sTitle:n.sTitle||(e?e.innerHTML:""),aDataSort:n.aDataSort||[a],mData:n.mData||a,idx:a}),n=(t.aoColumns.push(n),t.aoPreSearchCols);n[a]=P.extend({},w.models.oSearch,n[a]),at(t,a,P(e).data())}function at(t,e,n){function a(t){return"string"==typeof t&&-1!==t.indexOf("@")}var e=t.aoColumns[e],r=t.oClasses,o=P(e.nTh),i=(e.sWidthOrig||(e.sWidthOrig=o.attr("width")||null,(u=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(e.sWidthOrig=u[1])),n!==N&&null!==n&&(Q(n),C(w.defaults.column,n,!0),n.mDataProp===N||n.mData||(n.mData=n.mDataProp),n.sType&&(e._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&o.addClass(n.sClass),u=e.sClass,P.extend(e,n),F(e,n,"sWidth","sWidthOrig"),u!==e.sClass&&(e.sClass=u+" "+e.sClass),n.iDataSort!==N&&(e.aDataSort=[n.iDataSort]),F(e,n,"aDataSort")),e.mData),l=A(i),s=e.mRender?A(e.mRender):null,u=(e._bAttrSrc=P.isPlainObject(i)&&(a(i.sort)||a(i.type)||a(i.filter)),e._setter=null,e.fnGetData=function(t,e,n){var a=l(t,e,N,n);return s&&e?s(a,e,t,n):a},e.fnSetData=function(t,e,n){return b(i)(t,e,n)},"number"==typeof i||e._isArrayHost||(t._rowReadObject=!0),t.oFeatures.bSort||(e.bSortable=!1,o.addClass(r.sSortableNone)),-1!==P.inArray("asc",e.asSorting)),n=-1!==P.inArray("desc",e.asSorting);e.bSortable&&(u||n)?u&&!n?(e.sSortingClass=r.sSortableAsc,e.sSortingClassJUI=r.sSortJUIAscAllowed):!u&&n?(e.sSortingClass=r.sSortableDesc,e.sSortingClassJUI=r.sSortJUIDescAllowed):(e.sSortingClass=r.sSortable,e.sSortingClassJUI=r.sSortJUI):(e.sSortingClass=r.sSortableNone,e.sSortingClassJUI="")}function O(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;ee(t);for(var n=0,a=e.length;ne&&t[r]--;-1!=a&&n===N&&t.splice(a,1)}function bt(n,a,t,e){function r(t,e){for(;t.childNodes.length;)t.removeChild(t.firstChild);t.innerHTML=S(n,a,e,"display")}var o,i,l=n.aoData[a];if("dom"!==t&&(t&&"auto"!==t||"dom"!==l.src)){var s=l.anCells;if(s)if(e!==N)r(s[e],e);else for(o=0,i=s.length;o").appendTo(r)),c=0,f=s.length;c=s.fnRecordsDisplay()?0:l,s.iInitDisplayStart=-1);var n=R(t,"aoPreDrawCallback","preDraw",[t]);if(-1!==P.inArray(!1,n))D(t,!1);else{var a=[],r=0,o=t.asStripeClasses,i=o.length,l=t.oLanguage,s="ssp"==E(t),u=t.aiDisplay,n=t._iDisplayStart,c=t.fnDisplayEnd();if(t.bDrawing=!0,t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,D(t,!1);else if(s){if(!t.bDestroying&&!e)return void xt(t)}else t.iDraw++;if(0!==u.length)for(var f=s?t.aoData.length:c,d=s?0:n;d",{class:i?o[0]:""}).append(P("",{valign:"top",colSpan:T(t),class:t.oClasses.sRowEmpty}).html(e))[0]}R(t,"aoHeaderCallback","header",[P(t.nTHead).children("tr")[0],ht(t),n,c,u]),R(t,"aoFooterCallback","footer",[P(t.nTFoot).children("tr")[0],ht(t),n,c,u]);s=P(t.nTBody);s.children().detach(),s.append(P(a)),R(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function u(t,e){var n=t.oFeatures,a=n.bSort,n=n.bFilter;a&&ie(t),n?Rt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,v(t),t._drawHold=!1}function _t(t){for(var e,n,a,r,o,i,l,s=t.oClasses,u=P(t.nTable),u=P("
").insertBefore(u),c=t.oFeatures,f=P("
",{id:t.sTableId+"_wrapper",class:s.sWrapper+(t.nTFoot?"":" "+s.sNoFooter)}),d=(t.nHolding=u[0],t.nTableWrapper=f[0],t.nTableReinsertBefore=t.nTable.nextSibling,t.sDom.split("")),h=0;h")[0],"'"==(r=d[h+1])||'"'==r){for(o="",i=2;d[h+i]!=r;)o+=d[h+i],i++;"H"==o?o=s.sJUIHeader:"F"==o&&(o=s.sJUIFooter),-1!=o.indexOf(".")?(l=o.split("."),a.id=l[0].substr(1,l[0].length-1),a.className=l[1]):"#"==o.charAt(0)?a.id=o.substr(1,o.length-1):a.className=o,h+=i}f.append(a),f=P(a)}else if(">"==n)f=f.parent();else if("l"==n&&c.bPaginate&&c.bLengthChange)e=$t(t);else if("f"==n&&c.bFilter)e=Lt(t);else if("r"==n&&c.bProcessing)e=Zt(t);else if("t"==n)e=Kt(t);else if("i"==n&&c.bInfo)e=Ut(t);else if("p"==n&&c.bPaginate)e=zt(t);else if(0!==w.ext.feature.length)for(var p=w.ext.feature,g=0,b=p.length;g',s=(s=r.sSearch).match(/_INPUT_/)?s.replace("_INPUT_",l):s+l,l=P("
",{id:i.f?null:a+"_filter",class:t.sFilter}).append(P("
").addClass(t.sLength);return a.aanFeatures.l||(c[0].id=e+"_length"),c.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),P("select",c).val(a._iDisplayLength).on("change.DT",function(t){Gt(a,P(this).val()),v(a)}),P(a.nTable).on("length.dt.DT",function(t,e,n){a===e&&P("select",c).val(n)}),c[0]}function zt(t){function c(t){v(t)}var e=t.sPaginationType,f=w.ext.pager[e],d="function"==typeof f,e=P("
").addClass(t.oClasses.sPaging+e)[0],h=t.aanFeatures;return d||f.fnInit(t,e,c),h.p||(e.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(d)for(var e=t._iDisplayStart,n=t._iDisplayLength,a=t.fnRecordsDisplay(),r=-1===n,o=r?0:Math.ceil(e/n),i=r?1:Math.ceil(a/n),l=f(o,i),s=0,u=h.p.length;s",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing,role:"status"}).html(t.oLanguage.sProcessing).append("
").insertBefore(t.nTable)[0]}function D(t,e){t.oFeatures.bProcessing&&P(t.aanFeatures.r).css("display",e?"block":"none"),R(t,null,"processing",[t,e])}function Kt(t){var e,n,a,r,o,i,l,s,u,c,f,d,h=P(t.nTable),p=t.oScroll;return""===p.sX&&""===p.sY?t.nTable:(e=p.sX,n=p.sY,a=t.oClasses,o=(r=h.children("caption")).length?r[0]._captionSide:null,s=P(h[0].cloneNode(!1)),i=P(h[0].cloneNode(!1)),u=function(t){return t?M(t):null},(l=h.children("tfoot")).length||(l=null),s=P(f="
",{class:a.sScrollWrapper}).append(P(f,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:e?u(e):"100%"}).append(P(f,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:p.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===o?r:null).append(h.children("thead"))))).append(P(f,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:u(e)}).append(h)),l&&s.append(P(f,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:e?u(e):"100%"}).append(P(f,{class:a.sScrollFootInner}).append(i.removeAttr("id").css("margin-left",0).append("bottom"===o?r:null).append(h.children("tfoot"))))),u=s.children(),c=u[0],f=u[1],d=l?u[2]:null,e&&P(f).on("scroll.DT",function(t){var e=this.scrollLeft;c.scrollLeft=e,l&&(d.scrollLeft=e)}),P(f).css("max-height",n),p.bCollapse||P(f).css("height",n),t.nScrollHead=c,t.nScrollBody=f,t.nScrollFoot=d,t.aoDrawCallback.push({fn:Qt,sName:"scrolling"}),s[0])}function Qt(n){function t(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0}var e,a,r,o,i,l=n.oScroll,s=l.sX,u=l.sXInner,c=l.sY,l=l.iBarWidth,f=P(n.nScrollHead),d=f[0].style,h=f.children("div"),p=h[0].style,h=h.children("table"),g=n.nScrollBody,b=P(g),m=g.style,S=P(n.nScrollFoot).children("div"),v=S.children("table"),y=P(n.nTHead),D=P(n.nTable),_=D[0],w=_.style,C=n.nTFoot?P(n.nTFoot):null,T=n.oBrowser,x=T.bScrollOversize,A=(H(n.aoColumns,"nTh"),[]),I=[],F=[],L=[],R=g.scrollHeight>g.clientHeight;n.scrollBarVis!==R&&n.scrollBarVis!==N?(n.scrollBarVis=R,O(n)):(n.scrollBarVis=R,D.children("thead, tfoot").remove(),C&&(R=C.clone().prependTo(D),i=C.find("tr"),a=R.find("tr"),R.find("[id]").removeAttr("id")),R=y.clone().prependTo(D),y=y.find("tr"),e=R.find("tr"),R.find("th, td").removeAttr("tabindex"),R.find("[id]").removeAttr("id"),s||(m.width="100%",f[0].style.width="100%"),P.each(Ct(n,R),function(t,e){r=rt(n,t),e.style.width=n.aoColumns[r].sWidth}),C&&k(function(t){t.style.width=""},a),f=D.outerWidth(),""===s?(w.width="100%",x&&(D.find("tbody").height()>g.offsetHeight||"scroll"==b.css("overflow-y"))&&(w.width=M(D.outerWidth()-l)),f=D.outerWidth()):""!==u&&(w.width=M(u),f=D.outerWidth()),k(t,e),k(function(t){var e=j.getComputedStyle?j.getComputedStyle(t).width:M(P(t).width());F.push(t.innerHTML),A.push(e)},e),k(function(t,e){t.style.width=A[e]},y),P(e).css("height",0),C&&(k(t,a),k(function(t){L.push(t.innerHTML),I.push(M(P(t).css("width")))},a),k(function(t,e){t.style.width=I[e]},i),P(a).height(0)),k(function(t,e){t.innerHTML='
'+F[e]+"
",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=A[e]},e),C&&k(function(t,e){t.innerHTML='
'+L[e]+"
",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=I[e]},a),Math.round(D.outerWidth())g.offsetHeight||"scroll"==b.css("overflow-y")?f+l:f,x&&(g.scrollHeight>g.offsetHeight||"scroll"==b.css("overflow-y"))&&(w.width=M(o-l)),""!==s&&""===u||W(n,1,"Possible column misalignment",6)):o="100%",m.width=M(o),d.width=M(o),C&&(n.nScrollFoot.style.width=M(o)),c||x&&(m.height=M(_.offsetHeight+l)),R=D.outerWidth(),h[0].style.width=M(R),p.width=M(R),y=D.height()>g.clientHeight||"scroll"==b.css("overflow-y"),p[i="padding"+(T.bScrollbarLeft?"Left":"Right")]=y?l+"px":"0px",C&&(v[0].style.width=M(R),S[0].style.width=M(R),S[0].style[i]=y?l+"px":"0px"),D.children("colgroup").insertBefore(D.children("thead")),b.trigger("scroll"),!n.bSorted&&!n.bFiltered||n._drawHold||(g.scrollTop=0))}function k(t,e,n){for(var a,r,o=0,i=0,l=e.length;i/g;function ee(t){var e,n,a=t.nTable,r=t.aoColumns,o=t.oScroll,i=o.sY,l=o.sX,o=o.sXInner,s=r.length,u=it(t,"bVisible"),c=P("th",t.nTHead),f=a.getAttribute("width"),d=a.parentNode,h=!1,p=t.oBrowser,g=p.bScrollOversize,b=a.style.width;for(b&&-1!==b.indexOf("%")&&(f=b),D=0;D").appendTo(b.find("tbody")));for(b.find("thead, tfoot").remove(),b.append(P(t.nTHead).clone()).append(P(t.nTFoot).clone()),b.find("tfoot th, tfoot td").css("width",""),c=Ct(t,b.find("thead")[0]),D=0;D").css({width:e.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(t.aoData.length)for(D=0;D").css(l||i?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(b).appendTo(d),y=(l&&o?b.width(o):l?(b.css("width","auto"),b.removeAttr("width"),b.width()").css("width",M(t)).appendTo(e||y.body))[0].offsetWidth,t.remove(),e):0}function re(t,e){var n,a=oe(t,e);return a<0?null:(n=t.aoData[a]).nTr?n.anCells[e]:P("").html(S(t,a,e,"display"))[0]}function oe(t,e){for(var n,a=-1,r=-1,o=0,i=t.aoData.length;oa&&(a=n.length,r=o);return r}function M(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function I(t){function e(t){t.length&&!Array.isArray(t[0])?h.push(t):P.merge(h,t)}var n,a,r,o,i,l,s,u=[],c=t.aoColumns,f=t.aaSortingFixed,d=P.isPlainObject(f),h=[];for(Array.isArray(f)&&e(f),d&&f.pre&&e(f.pre),e(t.aaSorting),d&&f.post&&e(f.post),n=0;n/g,""),u=i.nTh;u.removeAttribute("aria-sort"),i=i.bSortable?s+("asc"===(0=o.length?[0,e[1]]:e)})),t.search!==N&&P.extend(n.oPreviousSearch,Bt(t.search)),t.columns){for(a=0,r=t.columns.length;a").addClass(e),P("td",n).addClass(e).html(t)[0].colSpan=T(o),l.push(n[0]))}var l=[];i(e,n),t._details&&t._details.detach(),t._details=P(l),t._detailsShow&&t._details.insertAfter(t.nTr)}function xe(t,e){var n=t.context;if(n.length&&t.length){var a=n[0].aoData[t[0]];if(a._details){(a._detailsShow=e)?(a._details.insertAfter(a.nTr),P(a.nTr).addClass("dt-hasChild")):(a._details.detach(),P(a.nTr).removeClass("dt-hasChild")),R(n[0],null,"childRow",[e,t.row(t[0])]);var s=n[0],r=new B(s),a=".dt.DT_details",e="draw"+a,t="column-sizing"+a,a="destroy"+a,u=s.aoData;if(r.off(e+" "+t+" "+a),H(u,"_details").length>0){r.on(e,function(t,e){if(s!==e)return;r.rows({page:"current"}).eq(0).each(function(t){var e=u[t];if(e._detailsShow)e._details.insertAfter(e.nTr)})});r.on(t,function(t,e,n,a){if(s!==e)return;var r,o=T(e);for(var i=0,l=u.length;it?new B(e[t],this[t]):null},filter:function(t){var e=[];if(o.filter)e=o.filter.call(this,t,this);else for(var n=0,a=this.length;n").appendTo(t);p(u,n)}else{switch(g=null,b=n,a=c.iTabIndex,n){case"ellipsis":t.append('');break;case"first":g=S.sFirst,0===d&&(a=-1,b+=" "+o);break;case"previous":g=S.sPrevious,0===d&&(a=-1,b+=" "+o);break;case"next":g=S.sNext,0!==h&&d!==h-1||(a=-1,b+=" "+o);break;case"last":g=S.sLast,0!==h&&d!==h-1||(a=-1,b+=" "+o);break;default:g=c.fnFormatNumber(n+1),b=d===n?m.sPageButtonActive:""}null!==g&&(u=c.oInit.pagingTag||"a",r=-1!==b.indexOf(o),me(P("<"+u+">",{class:m.sPageButton+" "+b,"aria-controls":c.sTableId,"aria-disabled":r?"true":null,"aria-label":v[n],"aria-role":"link","aria-current":b===m.sPageButtonActive?"page":null,"data-dt-idx":n,tabindex:a,id:0===f&&"string"==typeof n?c.sTableId+"_"+n:null}).html(g).appendTo(t),{action:n},i))}}var g,b,n,m=c.oClasses,S=c.oLanguage.oPaginate,v=c.oLanguage.oAria.paginate||{};try{n=P(t).find(y.activeElement).data("dt-idx")}catch(t){}p(P(t).empty(),e),n!==N&&P(t).find("[data-dt-idx="+n+"]").trigger("focus")}}}),P.extend(w.ext.type.detect,[function(t,e){e=e.oLanguage.sDecimal;return l(t,e)?"num"+e:null},function(t,e){var n;return(!t||t instanceof Date||X.test(t))&&(null!==(n=Date.parse(t))&&!isNaN(n)||h(t))?"date":null},function(t,e){e=e.oLanguage.sDecimal;return l(t,e,!0)?"num-fmt"+e:null},function(t,e){e=e.oLanguage.sDecimal;return a(t,e)?"html-num"+e:null},function(t,e){e=e.oLanguage.sDecimal;return a(t,e,!0)?"html-num-fmt"+e:null},function(t,e){return h(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),P.extend(w.ext.type.search,{html:function(t){return h(t)?t:"string"==typeof t?t.replace(U," ").replace(V,""):""},string:function(t){return!h(t)&&"string"==typeof t?t.replace(U," "):t}});function ke(t,e,n,a){var r;return 0===t||t&&"-"!==t?"number"==(r=typeof t)||"bigint"==r?t:((t=e?G(t,e):t).replace&&(n&&(t=t.replace(n,"")),a&&(t=t.replace(a,""))),+t):-1/0}function Me(n){P.each({num:function(t){return ke(t,n)},"num-fmt":function(t){return ke(t,n,q)},"html-num":function(t){return ke(t,n,V)},"html-num-fmt":function(t){return ke(t,n,V,q)}},function(t,e){p.type.order[t+n+"-pre"]=e,t.match(/^html\-/)&&(p.type.search[t+n]=p.type.search.html)})}P.extend(p.type.order,{"date-pre":function(t){t=Date.parse(t);return isNaN(t)?-1/0:t},"html-pre":function(t){return h(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return h(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t").addClass(l.sSortJUIWrapper).append(o.contents()).append(P("").addClass(l.sSortIcon+" "+i.sSortingClassJUI)).appendTo(o),P(r.nTable).on("order.dt.DT",function(t,e,n,a){r===e&&(e=i.idx,o.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==a[e]?l.sSortAsc:"desc"==a[e]?l.sSortDesc:i.sSortingClass),o.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==a[e]?l.sSortJUIAsc:"desc"==a[e]?l.sSortJUIDesc:i.sSortingClassJUI))})}}});function We(t){return"string"==typeof(t=Array.isArray(t)?t.join(","):t)?t.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):t}function Ee(t,e,n,a,r){return j.moment?t[e](r):j.luxon?t[n](r):a?t[a](r):t}var Be=!1;function Ue(t,e,n){var a;if(j.moment){if(!(a=j.moment.utc(t,e,n,!0)).isValid())return null}else if(j.luxon){if(!(a=e&&"string"==typeof t?j.luxon.DateTime.fromFormat(t,e):j.luxon.DateTime.fromISO(t)).isValid)return null;a.setLocale(n)}else e?(Be||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Be=!0):a=new Date(t);return a}function Ve(s){return function(a,r,o,i){0===arguments.length?(o="en",a=r=null):1===arguments.length?(o="en",r=a,a=null):2===arguments.length&&(o=r,r=a,a=null);var l="datetime-"+r;return w.ext.type.order[l]||(w.ext.type.detect.unshift(function(t){return t===l&&l}),w.ext.type.order[l+"-asc"]=function(t,e){t=t.valueOf(),e=e.valueOf();return t===e?0:t").appendTo(l)),_.nTHead=n[0],l.children("tbody")),n=(0===a.length&&(a=$("").insertAfter(n)),_.nTBody=a[0],l.children("tfoot"));if(0===(n=0===n.length&&0").appendTo(l):n).length||0===n.children().length?l.addClass(h.sNoFooter):0/g,_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,n){var a=typeof e,r="string"==a;return"number"==a||"bigint"==a||(!!_empty(e)||(t&&r&&(e=_numToDecimal(e,t)),n&&r&&(e=e.replace(_re_formatted_numeric,"")),!isNaN(parseFloat(e))&&isFinite(e)))},_isHtml=function(e){return _empty(e)||"string"==typeof e},_htmlNumeric=function(e,t,n){return!!_empty(e)||(_isHtml(e)&&!!_isNumber(_stripHtml(e),t,n)||null)},_pluck=function(e,t,n){var a=[],r=0,i=e.length;if(void 0!==n)for(;r").css({position:"fixed",top:0,left:-1*$(window).scrollLeft(),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=a[0].offsetWidth-a[0].clientWidth,t.bScrollOversize=100===r[0].offsetWidth&&100!==a[0].clientWidth,t.bScrollbarLeft=1!==Math.round(r.offset().left),t.bBounding=!!n[0].getBoundingClientRect().width,n.remove()),$.extend(e.oBrowser,DataTable.__browser),e.oScroll.iBarWidth=DataTable.__browser.barWidth}function _fnReduce(e,t,n,a,r,i){var o,l=a,s=!1;for(void 0!==n&&(o=n,s=!0);l!==r;)e.hasOwnProperty(l)&&(o=s?t(o,e[l],l,e):e[l],s=!0,l+=i);return o}function _fnAddColumn(e,t){var n=DataTable.defaults.column,a=e.aoColumns.length,n=$.extend({},DataTable.models.oColumn,n,{nTh:t||document.createElement("th"),sTitle:n.sTitle||(t?t.innerHTML:""),aDataSort:n.aDataSort||[a],mData:n.mData||a,idx:a}),n=(e.aoColumns.push(n),e.aoPreSearchCols);n[a]=$.extend({},DataTable.models.oSearch,n[a]),_fnColumnOptions(e,a,$(t).data())}function _fnColumnOptions(e,t,n){function a(e){return"string"==typeof e&&-1!==e.indexOf("@")}var t=e.aoColumns[t],r=e.oClasses,i=$(t.nTh),o=(t.sWidthOrig||(t.sWidthOrig=i.attr("width")||null,(u=(i.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(t.sWidthOrig=u[1])),null!=n&&(_fnCompatCols(n),_fnCamelToHungarian(DataTable.defaults.column,n,!0),void 0===n.mDataProp||n.mData||(n.mData=n.mDataProp),n.sType&&(t._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&i.addClass(n.sClass),u=t.sClass,$.extend(t,n),_fnMap(t,n,"sWidth","sWidthOrig"),u!==t.sClass&&(t.sClass=u+" "+t.sClass),void 0!==n.iDataSort&&(t.aDataSort=[n.iDataSort]),_fnMap(t,n,"aDataSort")),t.mData),l=_fnGetObjectDataFn(o),s=t.mRender?_fnGetObjectDataFn(t.mRender):null,u=(t._bAttrSrc=$.isPlainObject(o)&&(a(o.sort)||a(o.type)||a(o.filter)),t._setter=null,t.fnGetData=function(e,t,n){var a=l(e,t,void 0,n);return s&&t?s(a,t,e,n):a},t.fnSetData=function(e,t,n){return _fnSetObjectDataFn(o)(e,t,n)},"number"==typeof o||t._isArrayHost||(e._rowReadObject=!0),e.oFeatures.bSort||(t.bSortable=!1,i.addClass(r.sSortableNone)),-1!==$.inArray("asc",t.asSorting)),n=-1!==$.inArray("desc",t.asSorting);t.bSortable&&(u||n)?u&&!n?(t.sSortingClass=r.sSortableAsc,t.sSortingClassJUI=r.sSortJUIAscAllowed):!u&&n?(t.sSortingClass=r.sSortableDesc,t.sSortingClassJUI=r.sSortJUIDescAllowed):(t.sSortingClass=r.sSortable,t.sSortingClassJUI=r.sSortJUI):(t.sSortingClass=r.sSortableNone,t.sSortingClassJUI="")}function _fnAdjustColumnSizing(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;_fnCalculateColumnWidths(e);for(var n=0,a=t.length;nt&&e[r]--;-1!=a&&void 0===n&&e.splice(a,1)}function _fnInvalidate(n,a,e,t){function r(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=_fnGetCellData(n,a,t,"display")}var i,o,l=n.aoData[a];if("dom"!==e&&(e&&"auto"!==e||"dom"!==l.src)){var s=l.anCells;if(s)if(void 0!==t)r(s[t],t);else for(i=0,o=s.length;i").appendTo(r)),c=0,f=s.length;c",{class:o?i[0]:""}).append($("",{valign:"top",colSpan:_fnVisbleColumns(e),class:e.oClasses.sRowEmpty}).html(t))[0]}_fnCallbackFire(e,"aoHeaderCallback","header",[$(e.nTHead).children("tr")[0],_fnGetDataMaster(e),u,c,s]),_fnCallbackFire(e,"aoFooterCallback","footer",[$(e.nTFoot).children("tr")[0],_fnGetDataMaster(e),u,c,s]);l=$(e.nTBody);l.children().detach(),l.append($(a)),_fnCallbackFire(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function _fnReDraw(e,t){var n=e.oFeatures,a=n.bSort,n=n.bFilter;a&&_fnSort(e),n?_fnFilterComplete(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,_fnDraw(e),e._drawHold=!1}function _fnAddOptionsHtml(e){for(var t,n,a,r,i,o,l,s=e.oClasses,u=$(e.nTable),u=$("
").insertBefore(u),c=e.oFeatures,f=$("
",{id:e.sTableId+"_wrapper",class:s.sWrapper+(e.nTFoot?"":" "+s.sNoFooter)}),d=(e.nHolding=u[0],e.nTableWrapper=f[0],e.nTableReinsertBefore=e.nTable.nextSibling,e.sDom.split("")),_=0;_")[0],"'"==(r=d[_+1])||'"'==r){for(i="",o=2;d[_+o]!=r;)i+=d[_+o],o++;"H"==i?i=s.sJUIHeader:"F"==i&&(i=s.sJUIFooter),-1!=i.indexOf(".")?(l=i.split("."),a.id=l[0].substr(1,l[0].length-1),a.className=l[1]):"#"==i.charAt(0)?a.id=i.substr(1,i.length-1):a.className=i,_+=o}f.append(a),f=$(a)}else if(">"==n)f=f.parent();else if("l"==n&&c.bPaginate&&c.bLengthChange)t=_fnFeatureHtmlLength(e);else if("f"==n&&c.bFilter)t=_fnFeatureHtmlFilter(e);else if("r"==n&&c.bProcessing)t=_fnFeatureHtmlProcessing(e);else if("t"==n)t=_fnFeatureHtmlTable(e);else if("i"==n&&c.bInfo)t=_fnFeatureHtmlInfo(e);else if("p"==n&&c.bPaginate)t=_fnFeatureHtmlPaginate(e);else if(0!==DataTable.ext.feature.length)for(var h=DataTable.ext.feature,p=0,g=h.length;p=e.fnRecordsDisplay()?0:n,e.iInitDisplayStart=-1)}function _fnBuildAjax(r,e,n){function t(e){var t=r.jqXHR?r.jqXHR.status:null;(null===e||"number"==typeof t&&204==t)&&_fnAjaxDataSrc(r,e={},[]),(t=e.error||e.sError)&&_fnLog(r,0,t),r.json=e,_fnCallbackFire(r,null,"xhr",[r,e,r.jqXHR]),n(e)}_fnCallbackFire(r,"aoServerParams","serverParams",[e]),e&&Array.isArray(e)&&(a={},i=/(.*?)\[\]$/,$.each(e,function(e,t){var n=t.name.match(i);n?(n=n[0],a[n]||(a[n]=[]),a[n].push(t.value)):a[t.name]=t.value}),e=a);var a,i,o,l=r.ajax,s=r.oInstance,u=($.isPlainObject(l)&&l.data&&(u="function"==typeof(o=l.data)?o(e,r):o,e="function"==typeof o&&u?u:$.extend(!0,e,u),delete l.data),{data:e,success:t,dataType:"json",cache:!1,type:r.sServerMethod,error:function(e,t,n){var a=_fnCallbackFire(r,null,"xhr",[r,null,r.jqXHR]);-1===$.inArray(!0,a)&&("parsererror"==t?_fnLog(r,0,"Invalid JSON response",1):4===e.readyState&&_fnLog(r,0,"Ajax error",7)),_fnProcessingDisplay(r,!1)}});r.oAjaxData=e,_fnCallbackFire(r,null,"preXhr",[r,e]),r.fnServerData?r.fnServerData.call(s,r.sAjaxSource,$.map(e,function(e,t){return{name:t,value:e}}),t,r):r.sAjaxSource||"string"==typeof l?r.jqXHR=$.ajax($.extend(u,{url:l||r.sAjaxSource})):"function"==typeof l?r.jqXHR=l.call(s,e,t,r):(r.jqXHR=$.ajax($.extend(u,l)),l.data=o)}function _fnAjaxUpdate(t){t.iDraw++,_fnProcessingDisplay(t,!0),_fnBuildAjax(t,_fnAjaxParameters(t),function(e){_fnAjaxUpdateDraw(t,e)})}function _fnAjaxParameters(e){function n(e,t){c.push({name:e,value:t})}for(var t,a,r,i=e.aoColumns,o=i.length,l=e.oFeatures,s=e.oPreviousSearch,u=e.aoPreSearchCols,c=[],f=_fnSortFlatten(e),d=e._iDisplayStart,_=!1!==l.bPaginate?e._iDisplayLength:-1,h=(n("sEcho",e.iDraw),n("iColumns",o),n("sColumns",_pluck(i,"sName").join(",")),n("iDisplayStart",d),n("iDisplayLength",_),{draw:e.iDraw,columns:[],order:[],start:d,length:_,search:{value:s.sSearch,regex:s.bRegex}}),p=0;p',s=(s=r.sSearch).match(/_INPUT_/)?s.replace("_INPUT_",l):s+l,l=$("
",{id:o.f?null:a+"_filter",class:e.sFilter}).append($("
").addClass(e.sLength);return a.aanFeatures.l||(c[0].id=t+"_length"),c.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),$("select",c).val(a._iDisplayLength).on("change.DT",function(e){_fnLengthChange(a,$(this).val()),_fnDraw(a)}),$(a.nTable).on("length.dt.DT",function(e,t,n){a===t&&$("select",c).val(n)}),c[0]}function _fnFeatureHtmlPaginate(e){function c(e){_fnDraw(e)}var t=e.sPaginationType,f=DataTable.ext.pager[t],d="function"==typeof f,t=$("
").addClass(e.oClasses.sPaging+t)[0],_=e.aanFeatures;return d||f.fnInit(e,t,c),_.p||(t.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(d)for(var t=e._iDisplayStart,n=e._iDisplayLength,a=e.fnRecordsDisplay(),r=-1===n,i=r?0:Math.ceil(t/n),o=r?1:Math.ceil(a/n),l=f(i,o),s=0,u=_.p.length;s",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing,role:"status"}).html(e.oLanguage.sProcessing).append("
").insertBefore(e.nTable)[0]}function _fnProcessingDisplay(e,t){e.oFeatures.bProcessing&&$(e.aanFeatures.r).css("display",t?"block":"none"),_fnCallbackFire(e,null,"processing",[e,t])}function _fnFeatureHtmlTable(e){var t,n,a,r,i,o,l,s,u,c,f,d,_=$(e.nTable),h=e.oScroll;return""===h.sX&&""===h.sY?e.nTable:(t=h.sX,n=h.sY,a=e.oClasses,i=(r=_.children("caption")).length?r[0]._captionSide:null,s=$(_[0].cloneNode(!1)),o=$(_[0].cloneNode(!1)),f="
",u=function(e){return e?_fnStringToCss(e):null},(l=_.children("tfoot")).length||(l=null),s=$(f,{class:a.sScrollWrapper}).append($(f,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:t?u(t):"100%"}).append($(f,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:h.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===i?r:null).append(_.children("thead"))))).append($(f,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:u(t)}).append(_)),l&&s.append($(f,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:t?u(t):"100%"}).append($(f,{class:a.sScrollFootInner}).append(o.removeAttr("id").css("margin-left",0).append("bottom"===i?r:null).append(_.children("tfoot"))))),u=s.children(),c=u[0],f=u[1],d=l?u[2]:null,t&&$(f).on("scroll.DT",function(e){var t=this.scrollLeft;c.scrollLeft=t,l&&(d.scrollLeft=t)}),$(f).css("max-height",n),h.bCollapse||$(f).css("height",n),e.nScrollHead=c,e.nScrollBody=f,e.nScrollFoot=d,e.aoDrawCallback.push({fn:_fnScrollDraw,sName:"scrolling"}),s[0])}function _fnScrollDraw(n){function e(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var t,a,r,i,o,l=n.oScroll,s=l.sX,u=l.sXInner,c=l.sY,l=l.iBarWidth,f=$(n.nScrollHead),d=f[0].style,_=f.children("div"),h=_[0].style,_=_.children("table"),p=n.nScrollBody,g=$(p),b=p.style,m=$(n.nScrollFoot).children("div"),D=m.children("table"),S=$(n.nTHead),v=$(n.nTable),C=v[0],y=C.style,T=n.nTFoot?$(n.nTFoot):null,w=n.oBrowser,x=w.bScrollOversize,A=(_pluck(n.aoColumns,"nTh"),[]),F=[],I=[],P=[],L=p.scrollHeight>p.clientHeight;n.scrollBarVis!==L&&void 0!==n.scrollBarVis?(n.scrollBarVis=L,_fnAdjustColumnSizing(n)):(n.scrollBarVis=L,v.children("thead, tfoot").remove(),T&&(L=T.clone().prependTo(v),o=T.find("tr"),a=L.find("tr"),L.find("[id]").removeAttr("id")),L=S.clone().prependTo(v),S=S.find("tr"),t=L.find("tr"),L.find("th, td").removeAttr("tabindex"),L.find("[id]").removeAttr("id"),s||(b.width="100%",f[0].style.width="100%"),$.each(_fnGetUniqueThs(n,L),function(e,t){r=_fnVisibleToColumnIndex(n,e),t.style.width=n.aoColumns[r].sWidth}),T&&_fnApplyToChildren(function(e){e.style.width=""},a),f=v.outerWidth(),""===s?(y.width="100%",x&&(v.find("tbody").height()>p.offsetHeight||"scroll"==g.css("overflow-y"))&&(y.width=_fnStringToCss(v.outerWidth()-l)),f=v.outerWidth()):""!==u&&(y.width=_fnStringToCss(u),f=v.outerWidth()),_fnApplyToChildren(e,t),_fnApplyToChildren(function(e){var t=window.getComputedStyle?window.getComputedStyle(e).width:_fnStringToCss($(e).width());I.push(e.innerHTML),A.push(t)},t),_fnApplyToChildren(function(e,t){e.style.width=A[t]},S),$(t).css("height",0),T&&(_fnApplyToChildren(e,a),_fnApplyToChildren(function(e){P.push(e.innerHTML),F.push(_fnStringToCss($(e).css("width")))},a),_fnApplyToChildren(function(e,t){e.style.width=F[t]},o),$(a).height(0)),_fnApplyToChildren(function(e,t){e.innerHTML='
'+I[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},t),T&&_fnApplyToChildren(function(e,t){e.innerHTML='
'+P[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=F[t]},a),Math.round(v.outerWidth())p.offsetHeight||"scroll"==g.css("overflow-y")?f+l:f,x&&(p.scrollHeight>p.offsetHeight||"scroll"==g.css("overflow-y"))&&(y.width=_fnStringToCss(i-l)),""!==s&&""===u||_fnLog(n,1,"Possible column misalignment",6)):i="100%",b.width=_fnStringToCss(i),d.width=_fnStringToCss(i),T&&(n.nScrollFoot.style.width=_fnStringToCss(i)),c||x&&(b.height=_fnStringToCss(C.offsetHeight+l)),L=v.outerWidth(),_[0].style.width=_fnStringToCss(L),h.width=_fnStringToCss(L),S=v.height()>p.clientHeight||"scroll"==g.css("overflow-y"),h[o="padding"+(w.bScrollbarLeft?"Left":"Right")]=S?l+"px":"0px",T&&(D[0].style.width=_fnStringToCss(L),m[0].style.width=_fnStringToCss(L),m[0].style[o]=S?l+"px":"0px"),v.children("colgroup").insertBefore(v.children("thead")),g.trigger("scroll"),!n.bSorted&&!n.bFiltered||n._drawHold||(p.scrollTop=0))}function _fnApplyToChildren(e,t,n){for(var a,r,i=0,o=0,l=t.length;o/g;function _fnCalculateColumnWidths(e){var t,n,a=e.nTable,r=e.aoColumns,i=e.oScroll,o=i.sY,l=i.sX,i=i.sXInner,s=r.length,u=_fnGetColumns(e,"bVisible"),c=$("th",e.nTHead),f=a.getAttribute("width"),d=a.parentNode,_=!1,h=e.oBrowser,p=h.bScrollOversize,g=a.style.width;for(g&&-1!==g.indexOf("%")&&(f=g),v=0;v").appendTo(g.find("tbody")));for(g.find("thead, tfoot").remove(),g.append($(e.nTHead).clone()).append($(e.nTFoot).clone()),g.find("tfoot th, tfoot td").css("width",""),c=_fnGetUniqueThs(e,g.find("thead")[0]),v=0;v").css({width:t.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(e.aoData.length)for(v=0;v").css(l||o?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(g).appendTo(d),S=(l&&i?g.width(i):l?(g.css("width","auto"),g.removeAttr("width"),g.width()").css("width",_fnStringToCss(e)).appendTo(t||document.body))[0].offsetWidth,e.remove(),t):0}function _fnGetWidestNode(e,t){var n,a=_fnGetMaxLenString(e,t);return a<0?null:(n=e.aoData[a]).nTr?n.anCells[t]:$("").html(_fnGetCellData(e,a,t,"display"))[0]}function _fnGetMaxLenString(e,t){for(var n,a=-1,r=-1,i=0,o=e.aoData.length;ia&&(a=n.length,r=i);return r}function _fnStringToCss(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function _fnSortFlatten(e){function t(e){e.length&&!Array.isArray(e[0])?_.push(e):$.merge(_,e)}var n,a,r,i,o,l,s,u=[],c=e.aoColumns,f=e.aaSortingFixed,d=$.isPlainObject(f),_=[];for(Array.isArray(f)&&t(f),d&&f.pre&&t(f.pre),t(e.aaSorting),d&&f.post&&t(f.post),n=0;n<_.length;n++)for(r=(i=c[s=_[n][a=0]].aDataSort).length;a/g,""),u=o.nTh;u.removeAttribute("aria-sort"),o=o.bSortable?s+("asc"===(0=i.length?[0,t[1]]:t)})),void 0!==e.search&&$.extend(n.oPreviousSearch,_fnSearchToHung(e.search)),e.columns){for(a=0,r=e.columns.length;ae?new _Api(t[e],this[e]):null},filter:function(e){var t=[];if(__arrayProto.filter)t=__arrayProto.filter.call(this,e,this);else for(var n=0,a=this.length;n").addClass(t),$("td",n).addClass(t).html(e)[0].colSpan=_fnVisbleColumns(i),l.push(n[0]))}var l=[];o(t,n),e._details&&e._details.detach(),e._details=$(l),e._detailsShow&&e._details.insertAfter(e.nTr)}),__details_state=DataTable.util.throttle(function(e){_fnSaveState(e[0])},500),__details_remove=function(e,t){var n=e.context;n.length&&(t=n[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(n))},__details_display=function(e,t){var n,a=e.context;a.length&&e.length&&((n=a[0].aoData[e[0]])._details&&((n._detailsShow=t)?(n._details.insertAfter(n.nTr),$(n.nTr).addClass("dt-hasChild")):(n._details.detach(),$(n.nTr).removeClass("dt-hasChild")),_fnCallbackFire(a[0],null,"childRow",[t,e.row(e[0])]),__details_events(a[0]),__details_state(a)))},__details_events=function(s){var r=new _Api(s),e=".dt.DT_details",t="draw"+e,n="column-sizing"+e,e="destroy"+e,u=s.aoData;r.off(t+" "+n+" "+e),0<_pluck(u,"_details").length&&(r.on(t,function(e,t){s===t&&r.rows({page:"current"}).eq(0).each(function(e){e=u[e];e._detailsShow&&e._details.insertAfter(e.nTr)})}),r.on(n,function(e,t,n,a){if(s===t)for(var r,i=_fnVisbleColumns(t),o=0,l=u.length;o").appendTo(e);h(u,a)}else{switch(p=null,g=a,r=c.iTabIndex,a){case"ellipsis":e.append('');break;case"first":p=m.sFirst,0===d&&(r=-1,g+=" "+o);break;case"previous":p=m.sPrevious,0===d&&(r=-1,g+=" "+o);break;case"next":p=m.sNext,0!==_&&d!==_-1||(r=-1,g+=" "+o);break;case"last":p=m.sLast,0!==_&&d!==_-1||(r=-1,g+=" "+o);break;default:p=c.fnFormatNumber(a+1),g=d===a?b.sPageButtonActive:""}null!==p&&(u=c.oInit.pagingTag||"a",i=-1!==g.indexOf(o),_fnBindAction($("<"+u+">",{class:b.sPageButton+" "+g,"aria-controls":c.sTableId,"aria-disabled":i?"true":null,"aria-label":D[a],"aria-role":"link","aria-current":g===b.sPageButtonActive?"page":null,"data-dt-idx":a,tabindex:r,id:0===f&&"string"==typeof a?c.sTableId+"_"+a:null}).html(p).appendTo(e),{action:a},n))}}var p,g,n,b=c.oClasses,m=c.oLanguage.oPaginate,D=c.oLanguage.oAria.paginate||{};try{n=$(e).find(document.activeElement).data("dt-idx")}catch(e){}h($(e).empty(),t),void 0!==n&&$(e).find("[data-dt-idx="+n+"]").trigger("focus")}}}),$.extend(DataTable.ext.type.detect,[function(e,t){t=t.oLanguage.sDecimal;return _isNumber(e,t)?"num"+t:null},function(e,t){var n;return(!e||e instanceof Date||_re_date.test(e))&&(null!==(n=Date.parse(e))&&!isNaN(n)||_empty(e))?"date":null},function(e,t){t=t.oLanguage.sDecimal;return _isNumber(e,t,!0)?"num-fmt"+t:null},function(e,t){t=t.oLanguage.sDecimal;return _htmlNumeric(e,t)?"html-num"+t:null},function(e,t){t=t.oLanguage.sDecimal;return _htmlNumeric(e,t,!0)?"html-num-fmt"+t:null},function(e,t){return _empty(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),$.extend(DataTable.ext.type.search,{html:function(e){return _empty(e)?e:"string"==typeof e?e.replace(_re_new_lines," ").replace(_re_html,""):""},string:function(e){return!_empty(e)&&"string"==typeof e?e.replace(_re_new_lines," "):e}});var __numericReplace=function(e,t,n,a){var r;return 0===e||e&&"-"!==e?"number"==(r=typeof e)||"bigint"==r?e:((e=t?_numToDecimal(e,t):e).replace&&(n&&(e=e.replace(n,"")),a&&(e=e.replace(a,""))),+e):-1/0};function _addNumericSort(n){$.each({num:function(e){return __numericReplace(e,n)},"num-fmt":function(e){return __numericReplace(e,n,_re_formatted_numeric)},"html-num":function(e){return __numericReplace(e,n,_re_html)},"html-num-fmt":function(e){return __numericReplace(e,n,_re_html,_re_formatted_numeric)}},function(e,t){_ext.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(_ext.type.search[e+n]=_ext.type.search.html)})}$.extend(_ext.type.order,{"date-pre":function(e){e=Date.parse(e);return isNaN(e)?-1/0:e},"html-pre":function(e){return _empty(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return _empty(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e").addClass(l.sSortJUIWrapper).append(i.contents()).append($("").addClass(l.sSortIcon+" "+o.sSortingClassJUI)).appendTo(i),$(r.nTable).on("order.dt.DT",function(e,t,n,a){r===t&&(t=o.idx,i.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==a[t]?l.sSortAsc:"desc"==a[t]?l.sSortDesc:o.sSortingClass),i.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==a[t]?l.sSortJUIAsc:"desc"==a[t]?l.sSortJUIDesc:o.sSortingClassJUI))})}}});var __htmlEscapeEntities=function(e){return"string"==typeof(e=Array.isArray(e)?e.join(","):e)?e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):e};function __mld(e,t,n,a,r){return window.moment?e[t](r):window.luxon?e[n](r):a?e[a](r):e}var __mlWarning=!1;function __mldObj(e,t,n){var a;if(window.moment){if(!(a=window.moment.utc(e,t,n,!0)).isValid())return null}else if(window.luxon){if(!(a=t&&"string"==typeof e?window.luxon.DateTime.fromFormat(e,t):window.luxon.DateTime.fromISO(e)).isValid)return null;a.setLocale(n)}else t?(__mlWarning||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),__mlWarning=!0):a=new Date(e);return a}function __mlHelper(s){return function(a,r,i,o){0===arguments.length?(i="en",a=r=null):1===arguments.length?(i="en",r=a,a=null):2===arguments.length&&(i=r,r=a,a=null);var l="datetime-"+r;return DataTable.ext.type.order[l]||(DataTable.ext.type.detect.unshift(function(e){return e===l&&l}),DataTable.ext.type.order[l+"-asc"]=function(e,t){e=e.valueOf(),t=t.valueOf();return e===t?0:e").appendTo(l)),_.nTHead=n[0],l.children("tbody")),n=(0===a.length&&(a=$("").insertAfter(n)),_.nTBody=a[0],l.children("tfoot"));if(0===(n=0===n.length&&0").appendTo(l):n).length||0===n.children().length?l.addClass(h.sNoFooter):0/g,_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,n){var a=typeof e,r="string"==a;return"number"==a||"bigint"==a||(!!_empty(e)||(t&&r&&(e=_numToDecimal(e,t)),n&&r&&(e=e.replace(_re_formatted_numeric,"")),!isNaN(parseFloat(e))&&isFinite(e)))},_isHtml=function(e){return _empty(e)||"string"==typeof e},_htmlNumeric=function(e,t,n){return!!_empty(e)||(_isHtml(e)&&!!_isNumber(_stripHtml(e),t,n)||null)},_pluck=function(e,t,n){var a=[],r=0,i=e.length;if(void 0!==n)for(;r").css({position:"fixed",top:0,left:-1*$(window).scrollLeft(),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=a[0].offsetWidth-a[0].clientWidth,t.bScrollOversize=100===r[0].offsetWidth&&100!==a[0].clientWidth,t.bScrollbarLeft=1!==Math.round(r.offset().left),t.bBounding=!!n[0].getBoundingClientRect().width,n.remove()),$.extend(e.oBrowser,DataTable.__browser),e.oScroll.iBarWidth=DataTable.__browser.barWidth}function _fnReduce(e,t,n,a,r,i){var o,l=a,s=!1;for(void 0!==n&&(o=n,s=!0);l!==r;)e.hasOwnProperty(l)&&(o=s?t(o,e[l],l,e):e[l],s=!0,l+=i);return o}function _fnAddColumn(e,t){var n=DataTable.defaults.column,a=e.aoColumns.length,n=$.extend({},DataTable.models.oColumn,n,{nTh:t||document.createElement("th"),sTitle:n.sTitle||(t?t.innerHTML:""),aDataSort:n.aDataSort||[a],mData:n.mData||a,idx:a}),n=(e.aoColumns.push(n),e.aoPreSearchCols);n[a]=$.extend({},DataTable.models.oSearch,n[a]),_fnColumnOptions(e,a,$(t).data())}function _fnColumnOptions(e,t,n){function a(e){return"string"==typeof e&&-1!==e.indexOf("@")}var t=e.aoColumns[t],r=e.oClasses,i=$(t.nTh),o=(t.sWidthOrig||(t.sWidthOrig=i.attr("width")||null,(u=(i.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(t.sWidthOrig=u[1])),null!=n&&(_fnCompatCols(n),_fnCamelToHungarian(DataTable.defaults.column,n,!0),void 0===n.mDataProp||n.mData||(n.mData=n.mDataProp),n.sType&&(t._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&i.addClass(n.sClass),u=t.sClass,$.extend(t,n),_fnMap(t,n,"sWidth","sWidthOrig"),u!==t.sClass&&(t.sClass=u+" "+t.sClass),void 0!==n.iDataSort&&(t.aDataSort=[n.iDataSort]),_fnMap(t,n,"aDataSort")),t.mData),l=_fnGetObjectDataFn(o),s=t.mRender?_fnGetObjectDataFn(t.mRender):null,u=(t._bAttrSrc=$.isPlainObject(o)&&(a(o.sort)||a(o.type)||a(o.filter)),t._setter=null,t.fnGetData=function(e,t,n){var a=l(e,t,void 0,n);return s&&t?s(a,t,e,n):a},t.fnSetData=function(e,t,n){return _fnSetObjectDataFn(o)(e,t,n)},"number"==typeof o||t._isArrayHost||(e._rowReadObject=!0),e.oFeatures.bSort||(t.bSortable=!1,i.addClass(r.sSortableNone)),-1!==$.inArray("asc",t.asSorting)),n=-1!==$.inArray("desc",t.asSorting);t.bSortable&&(u||n)?u&&!n?(t.sSortingClass=r.sSortableAsc,t.sSortingClassJUI=r.sSortJUIAscAllowed):!u&&n?(t.sSortingClass=r.sSortableDesc,t.sSortingClassJUI=r.sSortJUIDescAllowed):(t.sSortingClass=r.sSortable,t.sSortingClassJUI=r.sSortJUI):(t.sSortingClass=r.sSortableNone,t.sSortingClassJUI="")}function _fnAdjustColumnSizing(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;_fnCalculateColumnWidths(e);for(var n=0,a=t.length;nt&&e[r]--;-1!=a&&void 0===n&&e.splice(a,1)}function _fnInvalidate(n,a,e,t){function r(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=_fnGetCellData(n,a,t,"display")}var i,o,l=n.aoData[a];if("dom"!==e&&(e&&"auto"!==e||"dom"!==l.src)){var s=l.anCells;if(s)if(void 0!==t)r(s[t],t);else for(i=0,o=s.length;i").appendTo(r)),c=0,f=s.length;c",{class:o?i[0]:""}).append($("",{valign:"top",colSpan:_fnVisbleColumns(e),class:e.oClasses.sRowEmpty}).html(t))[0]}_fnCallbackFire(e,"aoHeaderCallback","header",[$(e.nTHead).children("tr")[0],_fnGetDataMaster(e),u,c,s]),_fnCallbackFire(e,"aoFooterCallback","footer",[$(e.nTFoot).children("tr")[0],_fnGetDataMaster(e),u,c,s]);l=$(e.nTBody);l.children().detach(),l.append($(a)),_fnCallbackFire(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function _fnReDraw(e,t){var n=e.oFeatures,a=n.bSort,n=n.bFilter;a&&_fnSort(e),n?_fnFilterComplete(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,_fnDraw(e),e._drawHold=!1}function _fnAddOptionsHtml(e){for(var t,n,a,r,i,o,l,s=e.oClasses,u=$(e.nTable),u=$("
").insertBefore(u),c=e.oFeatures,f=$("
",{id:e.sTableId+"_wrapper",class:s.sWrapper+(e.nTFoot?"":" "+s.sNoFooter)}),d=(e.nHolding=u[0],e.nTableWrapper=f[0],e.nTableReinsertBefore=e.nTable.nextSibling,e.sDom.split("")),_=0;_")[0],"'"==(r=d[_+1])||'"'==r){for(i="",o=2;d[_+o]!=r;)i+=d[_+o],o++;"H"==i?i=s.sJUIHeader:"F"==i&&(i=s.sJUIFooter),-1!=i.indexOf(".")?(l=i.split("."),a.id=l[0].substr(1,l[0].length-1),a.className=l[1]):"#"==i.charAt(0)?a.id=i.substr(1,i.length-1):a.className=i,_+=o}f.append(a),f=$(a)}else if(">"==n)f=f.parent();else if("l"==n&&c.bPaginate&&c.bLengthChange)t=_fnFeatureHtmlLength(e);else if("f"==n&&c.bFilter)t=_fnFeatureHtmlFilter(e);else if("r"==n&&c.bProcessing)t=_fnFeatureHtmlProcessing(e);else if("t"==n)t=_fnFeatureHtmlTable(e);else if("i"==n&&c.bInfo)t=_fnFeatureHtmlInfo(e);else if("p"==n&&c.bPaginate)t=_fnFeatureHtmlPaginate(e);else if(0!==DataTable.ext.feature.length)for(var h=DataTable.ext.feature,p=0,g=h.length;p=e.fnRecordsDisplay()?0:n,e.iInitDisplayStart=-1)}function _fnBuildAjax(r,e,n){function t(e){var t=r.jqXHR?r.jqXHR.status:null;(null===e||"number"==typeof t&&204==t)&&_fnAjaxDataSrc(r,e={},[]),(t=e.error||e.sError)&&_fnLog(r,0,t),r.json=e,_fnCallbackFire(r,null,"xhr",[r,e,r.jqXHR]),n(e)}_fnCallbackFire(r,"aoServerParams","serverParams",[e]),e&&Array.isArray(e)&&(a={},i=/(.*?)\[\]$/,$.each(e,function(e,t){var n=t.name.match(i);n?(n=n[0],a[n]||(a[n]=[]),a[n].push(t.value)):a[t.name]=t.value}),e=a);var a,i,o,l=r.ajax,s=r.oInstance,u=($.isPlainObject(l)&&l.data&&(u="function"==typeof(o=l.data)?o(e,r):o,e="function"==typeof o&&u?u:$.extend(!0,e,u),delete l.data),{data:e,success:t,dataType:"json",cache:!1,type:r.sServerMethod,error:function(e,t,n){var a=_fnCallbackFire(r,null,"xhr",[r,null,r.jqXHR]);-1===$.inArray(!0,a)&&("parsererror"==t?_fnLog(r,0,"Invalid JSON response",1):4===e.readyState&&_fnLog(r,0,"Ajax error",7)),_fnProcessingDisplay(r,!1)}});r.oAjaxData=e,_fnCallbackFire(r,null,"preXhr",[r,e]),r.fnServerData?r.fnServerData.call(s,r.sAjaxSource,$.map(e,function(e,t){return{name:t,value:e}}),t,r):r.sAjaxSource||"string"==typeof l?r.jqXHR=$.ajax($.extend(u,{url:l||r.sAjaxSource})):"function"==typeof l?r.jqXHR=l.call(s,e,t,r):(r.jqXHR=$.ajax($.extend(u,l)),l.data=o)}function _fnAjaxUpdate(t){t.iDraw++,_fnProcessingDisplay(t,!0),_fnBuildAjax(t,_fnAjaxParameters(t),function(e){_fnAjaxUpdateDraw(t,e)})}function _fnAjaxParameters(e){function n(e,t){c.push({name:e,value:t})}for(var t,a,r,i=e.aoColumns,o=i.length,l=e.oFeatures,s=e.oPreviousSearch,u=e.aoPreSearchCols,c=[],f=_fnSortFlatten(e),d=e._iDisplayStart,_=!1!==l.bPaginate?e._iDisplayLength:-1,h=(n("sEcho",e.iDraw),n("iColumns",o),n("sColumns",_pluck(i,"sName").join(",")),n("iDisplayStart",d),n("iDisplayLength",_),{draw:e.iDraw,columns:[],order:[],start:d,length:_,search:{value:s.sSearch,regex:s.bRegex}}),p=0;p',s=(s=r.sSearch).match(/_INPUT_/)?s.replace("_INPUT_",l):s+l,l=$("
",{id:o.f?null:a+"_filter",class:e.sFilter}).append($("
").addClass(e.sLength);return a.aanFeatures.l||(c[0].id=t+"_length"),c.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),$("select",c).val(a._iDisplayLength).on("change.DT",function(e){_fnLengthChange(a,$(this).val()),_fnDraw(a)}),$(a.nTable).on("length.dt.DT",function(e,t,n){a===t&&$("select",c).val(n)}),c[0]}function _fnFeatureHtmlPaginate(e){function c(e){_fnDraw(e)}var t=e.sPaginationType,f=DataTable.ext.pager[t],d="function"==typeof f,t=$("
").addClass(e.oClasses.sPaging+t)[0],_=e.aanFeatures;return d||f.fnInit(e,t,c),_.p||(t.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(d)for(var t=e._iDisplayStart,n=e._iDisplayLength,a=e.fnRecordsDisplay(),r=-1===n,i=r?0:Math.ceil(t/n),o=r?1:Math.ceil(a/n),l=f(i,o),s=0,u=_.p.length;s",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing,role:"status"}).html(e.oLanguage.sProcessing).append("
").insertBefore(e.nTable)[0]}function _fnProcessingDisplay(e,t){e.oFeatures.bProcessing&&$(e.aanFeatures.r).css("display",t?"block":"none"),_fnCallbackFire(e,null,"processing",[e,t])}function _fnFeatureHtmlTable(e){var t,n,a,r,i,o,l,s,u,c,f,d,_=$(e.nTable),h=e.oScroll;return""===h.sX&&""===h.sY?e.nTable:(t=h.sX,n=h.sY,a=e.oClasses,i=(r=_.children("caption")).length?r[0]._captionSide:null,s=$(_[0].cloneNode(!1)),o=$(_[0].cloneNode(!1)),f="
",u=function(e){return e?_fnStringToCss(e):null},(l=_.children("tfoot")).length||(l=null),s=$(f,{class:a.sScrollWrapper}).append($(f,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:t?u(t):"100%"}).append($(f,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:h.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===i?r:null).append(_.children("thead"))))).append($(f,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:u(t)}).append(_)),l&&s.append($(f,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:t?u(t):"100%"}).append($(f,{class:a.sScrollFootInner}).append(o.removeAttr("id").css("margin-left",0).append("bottom"===i?r:null).append(_.children("tfoot"))))),u=s.children(),c=u[0],f=u[1],d=l?u[2]:null,t&&$(f).on("scroll.DT",function(e){var t=this.scrollLeft;c.scrollLeft=t,l&&(d.scrollLeft=t)}),$(f).css("max-height",n),h.bCollapse||$(f).css("height",n),e.nScrollHead=c,e.nScrollBody=f,e.nScrollFoot=d,e.aoDrawCallback.push({fn:_fnScrollDraw,sName:"scrolling"}),s[0])}function _fnScrollDraw(n){function e(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var t,a,r,i,o,l=n.oScroll,s=l.sX,u=l.sXInner,c=l.sY,l=l.iBarWidth,f=$(n.nScrollHead),d=f[0].style,_=f.children("div"),h=_[0].style,_=_.children("table"),p=n.nScrollBody,g=$(p),b=p.style,m=$(n.nScrollFoot).children("div"),D=m.children("table"),S=$(n.nTHead),v=$(n.nTable),C=v[0],y=C.style,T=n.nTFoot?$(n.nTFoot):null,w=n.oBrowser,x=w.bScrollOversize,A=(_pluck(n.aoColumns,"nTh"),[]),F=[],I=[],P=[],L=p.scrollHeight>p.clientHeight;n.scrollBarVis!==L&&void 0!==n.scrollBarVis?(n.scrollBarVis=L,_fnAdjustColumnSizing(n)):(n.scrollBarVis=L,v.children("thead, tfoot").remove(),T&&(L=T.clone().prependTo(v),o=T.find("tr"),a=L.find("tr"),L.find("[id]").removeAttr("id")),L=S.clone().prependTo(v),S=S.find("tr"),t=L.find("tr"),L.find("th, td").removeAttr("tabindex"),L.find("[id]").removeAttr("id"),s||(b.width="100%",f[0].style.width="100%"),$.each(_fnGetUniqueThs(n,L),function(e,t){r=_fnVisibleToColumnIndex(n,e),t.style.width=n.aoColumns[r].sWidth}),T&&_fnApplyToChildren(function(e){e.style.width=""},a),f=v.outerWidth(),""===s?(y.width="100%",x&&(v.find("tbody").height()>p.offsetHeight||"scroll"==g.css("overflow-y"))&&(y.width=_fnStringToCss(v.outerWidth()-l)),f=v.outerWidth()):""!==u&&(y.width=_fnStringToCss(u),f=v.outerWidth()),_fnApplyToChildren(e,t),_fnApplyToChildren(function(e){var t=window.getComputedStyle?window.getComputedStyle(e).width:_fnStringToCss($(e).width());I.push(e.innerHTML),A.push(t)},t),_fnApplyToChildren(function(e,t){e.style.width=A[t]},S),$(t).css("height",0),T&&(_fnApplyToChildren(e,a),_fnApplyToChildren(function(e){P.push(e.innerHTML),F.push(_fnStringToCss($(e).css("width")))},a),_fnApplyToChildren(function(e,t){e.style.width=F[t]},o),$(a).height(0)),_fnApplyToChildren(function(e,t){e.innerHTML='
'+I[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},t),T&&_fnApplyToChildren(function(e,t){e.innerHTML='
'+P[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=F[t]},a),Math.round(v.outerWidth())p.offsetHeight||"scroll"==g.css("overflow-y")?f+l:f,x&&(p.scrollHeight>p.offsetHeight||"scroll"==g.css("overflow-y"))&&(y.width=_fnStringToCss(i-l)),""!==s&&""===u||_fnLog(n,1,"Possible column misalignment",6)):i="100%",b.width=_fnStringToCss(i),d.width=_fnStringToCss(i),T&&(n.nScrollFoot.style.width=_fnStringToCss(i)),c||x&&(b.height=_fnStringToCss(C.offsetHeight+l)),L=v.outerWidth(),_[0].style.width=_fnStringToCss(L),h.width=_fnStringToCss(L),S=v.height()>p.clientHeight||"scroll"==g.css("overflow-y"),h[o="padding"+(w.bScrollbarLeft?"Left":"Right")]=S?l+"px":"0px",T&&(D[0].style.width=_fnStringToCss(L),m[0].style.width=_fnStringToCss(L),m[0].style[o]=S?l+"px":"0px"),v.children("colgroup").insertBefore(v.children("thead")),g.trigger("scroll"),!n.bSorted&&!n.bFiltered||n._drawHold||(p.scrollTop=0))}function _fnApplyToChildren(e,t,n){for(var a,r,i=0,o=0,l=t.length;o/g;function _fnCalculateColumnWidths(e){var t,n,a=e.nTable,r=e.aoColumns,i=e.oScroll,o=i.sY,l=i.sX,i=i.sXInner,s=r.length,u=_fnGetColumns(e,"bVisible"),c=$("th",e.nTHead),f=a.getAttribute("width"),d=a.parentNode,_=!1,h=e.oBrowser,p=h.bScrollOversize,g=a.style.width;for(g&&-1!==g.indexOf("%")&&(f=g),v=0;v").appendTo(g.find("tbody")));for(g.find("thead, tfoot").remove(),g.append($(e.nTHead).clone()).append($(e.nTFoot).clone()),g.find("tfoot th, tfoot td").css("width",""),c=_fnGetUniqueThs(e,g.find("thead")[0]),v=0;v").css({width:t.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(e.aoData.length)for(v=0;v").css(l||o?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(g).appendTo(d),S=(l&&i?g.width(i):l?(g.css("width","auto"),g.removeAttr("width"),g.width()").css("width",_fnStringToCss(e)).appendTo(t||document.body))[0].offsetWidth,e.remove(),t):0}function _fnGetWidestNode(e,t){var n,a=_fnGetMaxLenString(e,t);return a<0?null:(n=e.aoData[a]).nTr?n.anCells[t]:$("").html(_fnGetCellData(e,a,t,"display"))[0]}function _fnGetMaxLenString(e,t){for(var n,a=-1,r=-1,i=0,o=e.aoData.length;ia&&(a=n.length,r=i);return r}function _fnStringToCss(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function _fnSortFlatten(e){function t(e){e.length&&!Array.isArray(e[0])?_.push(e):$.merge(_,e)}var n,a,r,i,o,l,s,u=[],c=e.aoColumns,f=e.aaSortingFixed,d=$.isPlainObject(f),_=[];for(Array.isArray(f)&&t(f),d&&f.pre&&t(f.pre),t(e.aaSorting),d&&f.post&&t(f.post),n=0;n<_.length;n++)for(r=(i=c[s=_[n][a=0]].aDataSort).length;a/g,""),u=o.nTh;u.removeAttribute("aria-sort"),o=o.bSortable?s+("asc"===(0=i.length?[0,t[1]]:t)})),void 0!==e.search&&$.extend(n.oPreviousSearch,_fnSearchToHung(e.search)),e.columns){for(a=0,r=e.columns.length;ae?new _Api(t[e],this[e]):null},filter:function(e){var t=[];if(__arrayProto.filter)t=__arrayProto.filter.call(this,e,this);else for(var n=0,a=this.length;n").addClass(t),$("td",n).addClass(t).html(e)[0].colSpan=_fnVisbleColumns(i),l.push(n[0]))}var l=[];o(t,n),e._details&&e._details.detach(),e._details=$(l),e._detailsShow&&e._details.insertAfter(e.nTr)}),__details_state=DataTable.util.throttle(function(e){_fnSaveState(e[0])},500),__details_remove=function(e,t){var n=e.context;n.length&&(t=n[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(n))},__details_display=function(e,t){var n,a=e.context;a.length&&e.length&&((n=a[0].aoData[e[0]])._details&&((n._detailsShow=t)?(n._details.insertAfter(n.nTr),$(n.nTr).addClass("dt-hasChild")):(n._details.detach(),$(n.nTr).removeClass("dt-hasChild")),_fnCallbackFire(a[0],null,"childRow",[t,e.row(e[0])]),__details_events(a[0]),__details_state(a)))},__details_events=function(s){var r=new _Api(s),e=".dt.DT_details",t="draw"+e,n="column-sizing"+e,e="destroy"+e,u=s.aoData;r.off(t+" "+n+" "+e),0<_pluck(u,"_details").length&&(r.on(t,function(e,t){s===t&&r.rows({page:"current"}).eq(0).each(function(e){e=u[e];e._detailsShow&&e._details.insertAfter(e.nTr)})}),r.on(n,function(e,t,n,a){if(s===t)for(var r,i=_fnVisbleColumns(t),o=0,l=u.length;o").appendTo(e);h(u,a)}else{switch(p=null,g=a,r=c.iTabIndex,a){case"ellipsis":e.append('');break;case"first":p=m.sFirst,0===d&&(r=-1,g+=" "+o);break;case"previous":p=m.sPrevious,0===d&&(r=-1,g+=" "+o);break;case"next":p=m.sNext,0!==_&&d!==_-1||(r=-1,g+=" "+o);break;case"last":p=m.sLast,0!==_&&d!==_-1||(r=-1,g+=" "+o);break;default:p=c.fnFormatNumber(a+1),g=d===a?b.sPageButtonActive:""}null!==p&&(u=c.oInit.pagingTag||"a",i=-1!==g.indexOf(o),_fnBindAction($("<"+u+">",{class:b.sPageButton+" "+g,"aria-controls":c.sTableId,"aria-disabled":i?"true":null,"aria-label":D[a],"aria-role":"link","aria-current":g===b.sPageButtonActive?"page":null,"data-dt-idx":a,tabindex:r,id:0===f&&"string"==typeof a?c.sTableId+"_"+a:null}).html(p).appendTo(e),{action:a},n))}}var p,g,n,b=c.oClasses,m=c.oLanguage.oPaginate,D=c.oLanguage.oAria.paginate||{};try{n=$(e).find(document.activeElement).data("dt-idx")}catch(e){}h($(e).empty(),t),void 0!==n&&$(e).find("[data-dt-idx="+n+"]").trigger("focus")}}}),$.extend(DataTable.ext.type.detect,[function(e,t){t=t.oLanguage.sDecimal;return _isNumber(e,t)?"num"+t:null},function(e,t){var n;return(!e||e instanceof Date||_re_date.test(e))&&(null!==(n=Date.parse(e))&&!isNaN(n)||_empty(e))?"date":null},function(e,t){t=t.oLanguage.sDecimal;return _isNumber(e,t,!0)?"num-fmt"+t:null},function(e,t){t=t.oLanguage.sDecimal;return _htmlNumeric(e,t)?"html-num"+t:null},function(e,t){t=t.oLanguage.sDecimal;return _htmlNumeric(e,t,!0)?"html-num-fmt"+t:null},function(e,t){return _empty(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),$.extend(DataTable.ext.type.search,{html:function(e){return _empty(e)?e:"string"==typeof e?e.replace(_re_new_lines," ").replace(_re_html,""):""},string:function(e){return!_empty(e)&&"string"==typeof e?e.replace(_re_new_lines," "):e}});var __numericReplace=function(e,t,n,a){var r;return 0===e||e&&"-"!==e?"number"==(r=typeof e)||"bigint"==r?e:((e=t?_numToDecimal(e,t):e).replace&&(n&&(e=e.replace(n,"")),a&&(e=e.replace(a,""))),+e):-1/0};function _addNumericSort(n){$.each({num:function(e){return __numericReplace(e,n)},"num-fmt":function(e){return __numericReplace(e,n,_re_formatted_numeric)},"html-num":function(e){return __numericReplace(e,n,_re_html)},"html-num-fmt":function(e){return __numericReplace(e,n,_re_html,_re_formatted_numeric)}},function(e,t){_ext.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(_ext.type.search[e+n]=_ext.type.search.html)})}$.extend(_ext.type.order,{"date-pre":function(e){e=Date.parse(e);return isNaN(e)?-1/0:e},"html-pre":function(e){return _empty(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return _empty(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e").addClass(l.sSortJUIWrapper).append(i.contents()).append($("").addClass(l.sSortIcon+" "+o.sSortingClassJUI)).appendTo(i),$(r.nTable).on("order.dt.DT",function(e,t,n,a){r===t&&(t=o.idx,i.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==a[t]?l.sSortAsc:"desc"==a[t]?l.sSortDesc:o.sSortingClass),i.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==a[t]?l.sSortJUIAsc:"desc"==a[t]?l.sSortJUIDesc:o.sSortingClassJUI))})}}});var __htmlEscapeEntities=function(e){return"string"==typeof(e=Array.isArray(e)?e.join(","):e)?e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):e};function __mld(e,t,n,a,r){return window.moment?e[t](r):window.luxon?e[n](r):a?e[a](r):e}var __mlWarning=!1;function __mldObj(e,t,n){var a;if(window.moment){if(!(a=window.moment.utc(e,t,n,!0)).isValid())return null}else if(window.luxon){if(!(a=t&&"string"==typeof e?window.luxon.DateTime.fromFormat(e,t):window.luxon.DateTime.fromISO(e)).isValid)return null;a.setLocale(n)}else t?(__mlWarning||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),__mlWarning=!0):a=new Date(e);return a}function __mlHelper(s){return function(a,r,i,o){0===arguments.length?(i="en",a=r=null):1===arguments.length?(i="en",r=a,a=null):2===arguments.length&&(i=r,r=a,a=null);var l="datetime-"+r;return DataTable.ext.type.order[l]||(DataTable.ext.type.detect.unshift(function(e){return e===l&&l}),DataTable.ext.type.order[l+"-asc"]=function(e,t){e=e.valueOf(),t=t.valueOf();return e===t?0:e