You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
96 KiB

/*! DataTables 1.13.4
* ©2008-2023 SpryMedia Ltd - datatables.net/license
*/
import jQuery from"jquery";let $=jQuery;var _ext,_api_register,_api_registerPlural,DataTable=function(e,S){if(DataTable.factory(e,S))return DataTable;if(this instanceof DataTable)return $(e).DataTable(S);S=e,this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new _Api(e?_fnSettingsFromNode(this[_ext.iApiIndex]):this)},this.fnAddData=function(e,t){var n=this.api(!0),e=(Array.isArray(e)&&(Array.isArray(e[0])||$.isPlainObject(e[0]))?n.rows:n.row).add(e);return void 0!==t&&!t||n.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],a=n.oScroll;void 0===e||e?t.draw(!1):""===a.sX&&""===a.sY||_fnScrollDraw(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();void 0!==e&&!e||t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var a=this.api(!0),e=a.rows(e),r=e.settings()[0],i=r.aoData[e[0][0]];return e.remove(),t&&t.call(this,r,i),void 0!==n&&!n||a.draw(),i},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,a,r,i){var o=this.api(!0);(null==t?o:o.column(t)).search(e,n,a,i),o.draw()},this.fnGetData=function(e,t){var n,a=this.api(!0);return void 0!==e?(n=e.nodeName?e.nodeName.toLowerCase():"",void 0!==t||"td"==n||"th"==n?a.cell(e,t).data():a.row(e).data()||null):a.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return void 0!==e?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(n=t.cell(e).index()).row,n.columnVisible,n.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){e=this.api(!0).page(e);void 0!==t&&!t||e.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t);void 0!==n&&!n||e.columns.adjust().draw()},this.fnSettings=function(){return _fnSettingsFromNode(this[_ext.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,a,r){var i=this.api(!0);return(null==n?i.row(t):i.cell(t,n)).data(e),void 0!==r&&!r||i.columns.adjust(),void 0!==a&&!a||i.draw(),0},this.fnVersionCheck=_ext.fnVersionCheck;var t,v=this,C=void 0===S,y=this.length;for(t in C&&(S={}),this.oApi=this.internal=_ext.internal,DataTable.ext.internal)t&&(this[t]=_fnExternApiFunc(t));return this.each(function(){var r=1<y?_fnExtend({},S,!0):S,i=0,e=this.getAttribute("id"),o=!1,t=DataTable.defaults,l=$(this);if("table"!=this.nodeName.toLowerCase())_fnLog(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{_fnCompatOpts(t),_fnCompatCols(t.column),_fnCamelToHungarian(t,t,!0),_fnCamelToHungarian(t.column,t.column,!0),_fnCamelToHungarian(t,$.extend(r,l.data()),!0);for(var n=DataTable.settings,i=0,s=n.length;i<s;i++){var a=n[i];if(a.nTable==this||a.nTHead&&a.nTHead.parentNode==this||a.nTFoot&&a.nTFoot.parentNode==this){var u=(void 0!==r.bRetrieve?r:t).bRetrieve,c=(void 0!==r.bDestroy?r:t).bDestroy;if(C||u)return a.oInstance;if(c){a.oInstance.fnDestroy();break}return void _fnLog(a,0,"Cannot reinitialise DataTable",3)}if(a.sTableId==this.id){n.splice(i,1);break}}null!==e&&""!==e||(e="DataTables_Table_"+DataTable.ext._unique++,this.id=e);var f,d,_=$.extend(!0,{},DataTable.models.oSettings,{sDestroyWidth:l[0].style.width,sInstance:e,sTableId:e}),h=(_.nTable=this,_.oApi=v.internal,_.oInit=r,n.push(_),_.oInstance=1===v.length?v:l.dataTable(),_fnCompatOpts(r),_fnLanguageCompat(r.oLanguage),r.aLengthMenu&&!r.iDisplayLength&&(r.iDisplayLength=(Array.isArray(r.aLengthMenu[0])?r.aLengthMenu[0]:r.aLengthMenu)[0]),r=_fnExtend($.extend(!0,{},t),r),_fnMap(_.oFeatures,r,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSort