diff --git a/jquery.dataTables.min.js b/jquery.dataTables.min.js index bf4a9a0..89e3a80 100644 --- a/jquery.dataTables.min.js +++ b/jquery.dataTables.min.js @@ -1,1341 +1,2006 @@ -/*! DataTables 1.13.4 +/*! DataTables 1.13.5 * ©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) { + "use strict"; 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 < i; o++) t[e[o]][n] && r.push(t[e[o]][n][a]); - else for (; o < i; o++) r.push(t[e[o]][n]); - return r; - } - function f(t, e) { - var n, - a = []; - e === N ? ((e = 0), (n = t)) : ((n = e), (e = t)); - for (var r = e; r < n; r++) a.push(r); - return a; - } - function _(t) { - for (var e = [], n = 0, a = t.length; n < a; n++) t[n] && e.push(t[n]); - return e; - } - function s(t, e) { - return -1 !== this.indexOf(t, (e = e === N ? 0 : e)); - } - var p, - e, - t, - w = function (t, v) { - if (w.factory(t, v)) return w; - if (this instanceof w) return P(t).DataTable(v); - (v = t), - (this.$ = function (t, e) { - return this.api(!0).$(t, e); - }), - (this._ = function (t, e) { - return this.api(!0).rows(t, e).data(); - }), - (this.api = function (t) { - return new B(t ? ge(this[p.iApiIndex]) : this); - }), - (this.fnAddData = function (t, e) { - var n = this.api(!0), - t = ( - Array.isArray(t) && (Array.isArray(t[0]) || P.isPlainObject(t[0])) - ? n.rows - : n.row - ).add(t); - return (e !== N && !e) || n.draw(), t.flatten().toArray(); - }), - (this.fnAdjustColumnSizing = function (t) { - var e = this.api(!0).columns.adjust(), - n = e.settings()[0], - a = n.oScroll; - t === N || t ? e.draw(!1) : ("" === a.sX && "" === a.sY) || Qt(n); - }), - (this.fnClearTable = function (t) { - var e = this.api(!0).clear(); - (t !== N && !t) || e.draw(); - }), - (this.fnClose = function (t) { - this.api(!0).row(t).child.hide(); - }), - (this.fnDeleteRow = function (t, e, n) { - var a = this.api(!0), - t = a.rows(t), - r = t.settings()[0], - o = r.aoData[t[0][0]]; - return ( - t.remove(), e && e.call(this, r, o), (n !== N && !n) || a.draw(), o - ); - }), - (this.fnDestroy = function (t) { - this.api(!0).destroy(t); - }), - (this.fnDraw = function (t) { - this.api(!0).draw(t); - }), - (this.fnFilter = function (t, e, n, a, r, o) { - var i = this.api(!0); - (null === e || e === N ? i : i.column(e)).search(t, n, a, o), - i.draw(); - }), - (this.fnGetData = function (t, e) { - var n, - a = this.api(!0); - return t !== N - ? ((n = t.nodeName ? t.nodeName.toLowerCase() : ""), - e !== N || "td" == n || "th" == n - ? a.cell(t, e).data() - : a.row(t).data() || null) - : a.data().toArray(); - }), - (this.fnGetNodes = function (t) { - var e = this.api(!0); - return t !== N - ? e.row(t).node() - : e.rows().nodes().flatten().toArray(); - }), - (this.fnGetPosition = function (t) { - var e = this.api(!0), - n = t.nodeName.toUpperCase(); - return "TR" == n - ? e.row(t).index() - : "TD" == n || "TH" == n - ? [(n = e.cell(t).index()).row, n.columnVisible, n.column] - : null; - }), - (this.fnIsOpen = function (t) { - return this.api(!0).row(t).child.isShown(); - }), - (this.fnOpen = function (t, e, n) { - return this.api(!0).row(t).child(e, n).show().child()[0]; - }), - (this.fnPageChange = function (t, e) { - t = this.api(!0).page(t); - (e !== N && !e) || t.draw(!1); - }), - (this.fnSetColumnVis = function (t, e, n) { - t = this.api(!0).column(t).visible(e); - (n !== N && !n) || t.columns.adjust().draw(); - }), - (this.fnSettings = function () { - return ge(this[p.iApiIndex]); - }), - (this.fnSort = function (t) { - this.api(!0).order(t).draw(); - }), - (this.fnSortListener = function (t, e, n) { - this.api(!0).order.listener(t, e, n); - }), - (this.fnUpdate = function (t, e, n, a, r) { - var o = this.api(!0); - return ( - (n === N || null === n ? o.row(e) : o.cell(e, n)).data(t), - (r !== N && !r) || o.columns.adjust(), - (a !== N && !a) || o.draw(), - 0 - ); - }), - (this.fnVersionCheck = p.fnVersionCheck); - var e, - y = this, - D = v === N, - _ = this.length; - for (e in (D && (v = {}), - (this.oApi = this.internal = p.internal), - w.ext.internal)) - e && (this[e] = Ge(e)); - return ( - this.each(function () { - var r = 1 < _ ? be({}, v, !0) : v, - o = 0, - t = this.getAttribute("id"), - i = !1, - e = w.defaults, - l = P(this); - if ("table" != this.nodeName.toLowerCase()) - W( - null, - 0, - "Non-table node initialisation (" + this.nodeName + ")", - 2 - ); - else { - K(e), - Q(e.column), - C(e, e, !0), - C(e.column, e.column, !0), - C(e, P.extend(r, l.data()), !0); - for (var n = w.settings, o = 0, s = n.length; o < s; o++) { - var a = n[o]; - if ( - a.nTable == this || - (a.nTHead && a.nTHead.parentNode == this) || - (a.nTFoot && a.nTFoot.parentNode == this) - ) { - var u = (r.bRetrieve !== N ? r : e).bRetrieve, - c = (r.bDestroy !== N ? r : e).bDestroy; - if (D || u) return a.oInstance; - if (c) { - a.oInstance.fnDestroy(); - break; - } - return void W(a, 0, "Cannot reinitialise DataTable", 3); - } - if (a.sTableId == this.id) { - n.splice(o, 1); - break; - } - } - (null !== t && "" !== t) || - ((t = "DataTables_Table_" + w.ext._unique++), (this.id = t)); - var f, - d, - h = P.extend(!0, {}, w.models.oSettings, { - sDestroyWidth: l[0].style.width, - sInstance: t, - sTableId: t, - }), - p = - ((h.nTable = this), - (h.oApi = y.internal), - (h.oInit = r), - n.push(h), - (h.oInstance = 1 === y.length ? y : l.dataTable()), - K(r), - Z(r.oLanguage), - r.aLengthMenu && - !r.iDisplayLength && - (r.iDisplayLength = ( - Array.isArray(r.aLengthMenu[0]) - ? r.aLengthMenu[0] - : r.aLengthMenu - )[0]), - (r = be(P.extend(!0, {}, e), r)), - F(h.oFeatures, r, [ - "bPaginate", - "bLengthChange", - "bFilter", - "bSort", - "bSortMulti", - "bInfo", - "bProcessing", - "bAutoWidth", - "bSortClasses", - "bServerSide", - "bDeferRender", - ]), - F(h, r, [ - "asStripeClasses", - "ajax", - "fnServerData", - "fnFormatNumber", - "sServerMethod", - "aaSorting", - "aaSortingFixed", - "aLengthMenu", - "sPaginationType", - "sAjaxSource", - "sAjaxDataProp", - "iStateDuration", - "sDom", - "bSortCellsTop", - "iTabIndex", - "fnStateLoadCallback", - "fnStateSaveCallback", - "renderer", - "searchDelay", - "rowId", - ["iCookieDuration", "iStateDuration"], - ["oSearch", "oPreviousSearch"], - ["aoSearchCols", "aoPreSearchCols"], - ["iDisplayLength", "_iDisplayLength"], - ]), - F(h.oScroll, r, [ - ["sScrollX", "sX"], - ["sScrollXInner", "sXInner"], - ["sScrollY", "sY"], - ["bScrollCollapse", "bCollapse"], - ]), - F(h.oLanguage, r, "fnInfoCallback"), - L(h, "aoDrawCallback", r.fnDrawCallback, "user"), - L(h, "aoServerParams", r.fnServerParams, "user"), - L(h, "aoStateSaveParams", r.fnStateSaveParams, "user"), - L(h, "aoStateLoadParams", r.fnStateLoadParams, "user"), - L(h, "aoStateLoaded", r.fnStateLoaded, "user"), - L(h, "aoRowCallback", r.fnRowCallback, "user"), - L(h, "aoRowCreatedCallback", r.fnCreatedRow, "user"), - L(h, "aoHeaderCallback", r.fnHeaderCallback, "user"), - L(h, "aoFooterCallback", r.fnFooterCallback, "user"), - L(h, "aoInitComplete", r.fnInitComplete, "user"), - L(h, "aoPreDrawCallback", r.fnPreDrawCallback, "user"), - (h.rowIdFn = A(r.rowId)), - tt(h), - h.oClasses), - g = - (P.extend(p, w.ext.classes, r.oClasses), - l.addClass(p.sTable), - h.iInitDisplayStart === N && - ((h.iInitDisplayStart = r.iDisplayStart), - (h._iDisplayStart = r.iDisplayStart)), - null !== r.iDeferLoading && - ((h.bDeferLoading = !0), - (t = Array.isArray(r.iDeferLoading)), - (h._iRecordsDisplay = t - ? r.iDeferLoading[0] - : r.iDeferLoading), - (h._iRecordsTotal = t - ? r.iDeferLoading[1] - : r.iDeferLoading)), - h.oLanguage), - t = - (P.extend(!0, g, r.oLanguage), - g.sUrl - ? (P.ajax({ - dataType: "json", - url: g.sUrl, - success: function (t) { - C(e.oLanguage, t), - Z(t), - P.extend(!0, g, t, h.oInit.oLanguage), - R(h, null, "i18n", [h]), - Jt(h); - }, - error: function () { - Jt(h); - }, - }), - (i = !0)) - : R(h, null, "i18n", [h]), - null === r.asStripeClasses && - (h.asStripeClasses = [p.sStripeOdd, p.sStripeEven]), - h.asStripeClasses), - b = l.children("tbody").find("tr").eq(0), - m = - (-1 !== - P.inArray( - !0, - P.map(t, function (t, e) { - return b.hasClass(t); - }) - ) && - (P("tbody tr", this).removeClass(t.join(" ")), - (h.asDestroyStripes = t.slice())), - []), - t = this.getElementsByTagName("thead"); - if ( - (0 !== t.length && (wt(h.aoHeader, t[0]), (m = Ct(h))), - null === r.aoColumns) - ) - for (f = [], o = 0, s = m.length; o < s; o++) f.push(null); - else f = r.aoColumns; - for (o = 0, s = f.length; o < s; o++) nt(h, m ? m[o] : null); - st(h, r.aoColumnDefs, f, function (t, e) { - at(h, t, e); - }), - b.length && - ((d = function (t, e) { - return null !== t.getAttribute("data-" + e) ? e : null; - }), - P(b[0]) - .children("th, td") - .each(function (t, e) { - var n, - a = h.aoColumns[t]; - a || W(h, 0, "Incorrect column count", 18), - a.mData === t && - ((n = d(e, "sort") || d(e, "order")), - (e = d(e, "filter") || d(e, "search")), - (null === n && null === e) || - ((a.mData = { - _: t + ".display", - sort: null !== n ? t + ".@data-" + n : N, - type: null !== n ? t + ".@data-" + n : N, - filter: null !== e ? t + ".@data-" + e : N, - }), - (a._isArrayHost = !0), - at(h, t))); - })); - var S = h.oFeatures, - t = function () { - if (r.aaSorting === N) { - var t = h.aaSorting; - for (o = 0, s = t.length; o < s; o++) - t[o][1] = h.aoColumns[o].asSorting[0]; - } - ce(h), - S.bSort && - L(h, "aoDrawCallback", function () { - var t, n; - h.bSorted && - ((t = I(h)), - (n = {}), - P.each(t, function (t, e) { - n[e.src] = e.dir; - }), - R(h, null, "order", [h, t, n]), - le(h)); - }), - L( - h, - "aoDrawCallback", - function () { - (h.bSorted || "ssp" === E(h) || S.bDeferRender) && ce(h); - }, - "sc" - ); - var e = l.children("caption").each(function () { - this._captionSide = P(this).css("caption-side"); - }), - n = l.children("thead"), - a = - (0 === n.length && (n = P("").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 < e.length && - ("" !== h.oScroll.sX || "" !== h.oScroll.sY) - ? P("").appendTo(l) - : n).length || 0 === n.children().length - ? l.addClass(p.sNoFooter) - : 0 < n.length && - ((h.nTFoot = n[0]), wt(h.aoFooter, h.nTFoot)), - r.aaData) - ) - for (o = 0; o < r.aaData.length; o++) x(h, r.aaData[o]); - else - (!h.bDeferLoading && "dom" != E(h)) || - ut(h, P(h.nTBody).children("tr")); - (h.aiDisplay = h.aiDisplayMaster.slice()), - !(h.bInitialised = !0) === i && Jt(h); - }; - L(h, "aoDrawCallback", de, "state_save"), - r.bStateSave ? ((S.bStateSave = !0), he(h, 0, t)) : t(); - } - }), - (y = null), - this - ); - }, - c = {}, - U = /[\r\n\u2028]/g, - V = /<.*?>/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 < o; r++) t[r] && t[r][e] && a.push(t[r][e][n]); - else for (; r < o; r++) t[r] && a.push(t[r][e]); - return a; - }, - $ = function (t) { - if (!(t.length < 2)) - for ( - var e = t.slice().sort(), n = e[0], a = 1, r = e.length; - a < r; - a++ - ) { - if (e[a] === n) return !1; - n = e[a]; - } - return !0; - }, - z = function (t) { - if ($(t)) return t.slice(); - var e, - n, - a, - r = [], - o = t.length, - i = 0; - t: for (n = 0; n < o; n++) { - for (e = t[n], a = 0; a < i; a++) if (r[a] === e) continue t; - r.push(e), i++; - } - return r; - }, - Y = function (t, e) { - if (Array.isArray(e)) for (var n = 0; n < e.length; n++) Y(t, e[n]); - else t.push(e); - return t; - }; - function i(n) { - var a, - r, - o = {}; - P.each(n, function (t, e) { - (a = t.match(/^([^A-Z]+?)([A-Z])/)) && - -1 !== "a aa ai ao as b fn i m o s ".indexOf(a[1] + " ") && - ((r = t.replace(a[0], a[2].toLowerCase())), - (o[r] = t), - "o" === a[1] && i(n[t])); - }), - (n._hungarianMap = o); - } - function C(n, a, r) { - var o; - n._hungarianMap || i(n), - P.each(a, function (t, e) { - (o = n._hungarianMap[t]) === N || - (!r && a[o] !== N) || - ("o" === o.charAt(0) - ? (a[o] || (a[o] = {}), P.extend(!0, a[o], a[t]), C(n[o], a[o], r)) - : (a[o] = a[t])); - }); - } - function Z(t) { - var e, - n = w.defaults.oLanguage, - a = n.sDecimal; - a && Me(a), - t && - ((e = t.sZeroRecords), - !t.sEmptyTable && - e && - "No data available in table" === n.sEmptyTable && - F(t, t, "sZeroRecords", "sEmptyTable"), - !t.sLoadingRecords && - e && - "Loading..." === n.sLoadingRecords && - F(t, t, "sZeroRecords", "sLoadingRecords"), - t.sInfoThousands && (t.sThousands = t.sInfoThousands), - (e = t.sDecimal) && a !== e && Me(e)); - } - Array.isArray || - (Array.isArray = function (t) { - return "[object Array]" === Object.prototype.toString.call(t); - }), - Array.prototype.includes || (Array.prototype.includes = s), - String.prototype.trim || - (String.prototype.trim = function () { - return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); - }), - String.prototype.includes || (String.prototype.includes = s), - (w.util = { - throttle: function (a, t) { - var r, - o, - i = t !== N ? t : 200; - return function () { - var t = this, - e = +new Date(), - n = arguments; - r && e < r + i - ? (clearTimeout(o), - (o = setTimeout(function () { - (r = N), a.apply(t, n); - }, i))) - : ((r = e), a.apply(t, n)); - }; - }, - escapeRegex: function (t) { - return t.replace(J, "\\$1"); - }, - set: function (a) { - var d; - return P.isPlainObject(a) - ? w.util.set(a._) - : null === a - ? function () {} - : "function" == typeof a - ? function (t, e, n) { - a(t, "set", e, n); - } - : "string" != typeof a || - (-1 === a.indexOf(".") && - -1 === a.indexOf("[") && - -1 === a.indexOf("(")) - ? function (t, e) { - t[a] = e; - } - : ((d = function (t, e, n) { - for ( - var a, - r, - o, - i, - l = dt(n), - n = l[l.length - 1], - s = 0, - u = l.length - 1; - s < u; - s++ - ) { - if ("__proto__" === l[s] || "constructor" === l[s]) - throw new Error("Cannot set prototype values"); - if (((a = l[s].match(ft)), (r = l[s].match(g)), a)) { - if ( - ((l[s] = l[s].replace(ft, "")), - (t[l[s]] = []), - (a = l.slice()).splice(0, s + 1), - (i = a.join(".")), - Array.isArray(e)) - ) - for (var c = 0, f = e.length; c < f; c++) - d((o = {}), e[c], i), t[l[s]].push(o); - else t[l[s]] = e; - return; - } - r && ((l[s] = l[s].replace(g, "")), (t = t[l[s]](e))), - (null !== t[l[s]] && t[l[s]] !== N) || (t[l[s]] = {}), - (t = t[l[s]]); - } - n.match(g) ? t[n.replace(g, "")](e) : (t[n.replace(ft, "")] = e); - }), - function (t, e) { - return d(t, e, a); - }); - }, - get: function (r) { - var o, d; - return P.isPlainObject(r) - ? ((o = {}), - P.each(r, function (t, e) { - e && (o[t] = w.util.get(e)); - }), - function (t, e, n, a) { - var r = o[e] || o._; - return r !== N ? r(t, e, n, a) : t; + "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); }) - : null === r - ? function (t) { - return t; - } - : "function" == typeof r - ? function (t, e, n, a) { - return r(t, e, n, a); - } - : "string" != typeof r || - (-1 === r.indexOf(".") && - -1 === r.indexOf("[") && - -1 === r.indexOf("(")) - ? function (t, e) { - return t[r]; - } - : ((d = function (t, e, n) { - var a, r, o; - if ("" !== n) - for (var i = dt(n), l = 0, s = i.length; l < s; l++) { - if (((f = i[l].match(ft)), (a = i[l].match(g)), f)) { - if ( - ((i[l] = i[l].replace(ft, "")), - "" !== i[l] && (t = t[i[l]]), - (r = []), - i.splice(0, l + 1), - (o = i.join(".")), - Array.isArray(t)) - ) - for (var u = 0, c = t.length; u < c; u++) - r.push(d(t[u], e, o)); - var f = f[0].substring(1, f[0].length - 1); - t = "" === f ? r : r.join(f); + : n(a, window, window.document)) + : (window.DataTable = n(jQuery, window, document)); + })(function (P, j, y, H) { + "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 = $(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, "").replace(/