1/*! 2 Responsive 2.2.1 3 2014-2017 SpryMedia Ltd - datatables.net/license 4*/ 5(function (c) { "function" === typeof define && define.amd ? define(["jquery", "datatables.net"], function (l) { return c(l, window, document) }) : "object" === typeof exports ? module.exports = function (l, k) { l || (l = window); if (!k || !k.fn.dataTable) k = require("datatables.net")(l, k).$; return c(k, l, l.document) } : c(jQuery, window, document) })(function (c, l, k, q) { 6 function s(b, a, c) { var e = a + "-" + c; if (m[e]) return m[e]; for (var f = [], b = b.cell(a, c).node().childNodes, a = 0, c = b.length; a < c; a++) f.push(b[a]); return m[e] = f } function r(b, a, c) { 7 var e = a + 8 "-" + c; if (m[e]) { for (var b = b.cell(a, c).node(), c = m[e][0].parentNode.childNodes, a = [], f = 0, g = c.length; f < g; f++) a.push(c[f]); c = 0; for (f = a.length; c < f; c++) b.appendChild(a[c]); m[e] = q } 9 } var o = c.fn.dataTable, j = function (b, a) { 10 if (!o.versionCheck || !o.versionCheck("1.10.10")) throw "DataTables Responsive requires DataTables 1.10.10 or newer"; this.s = { dt: new o.Api(b), columns: [], current: [] }; this.s.dt.settings()[0].responsive || (a && "string" === typeof a.details ? a.details = { type: a.details } : a && !1 === a.details ? a.details = { type: !1 } : 11 a && !0 === a.details && (a.details = { type: "inline" }), this.c = c.extend(!0, {}, j.defaults, o.defaults.responsive, a), b.responsive = this, this._constructor()) 12 }; c.extend(j.prototype, { 13 _constructor: function () { 14 var b = this, a = this.s.dt, d = a.settings()[0], e = c(l).width(); a.settings()[0]._responsive = this; c(l).on("resize.dtr orientationchange.dtr", o.util.throttle(function () { var a = c(l).width(); a !== e && (b._resize(), e = a) })); d.oApi._fnCallbackReg(d, "aoRowCreatedCallback", function (e) { 15 -1 !== c.inArray(!1, b.s.current) && c(">td, >th", 16 e).each(function (e) { e = a.column.index("toData", e); !1 === b.s.current[e] && c(this).css("display", "none") }) 17 }); a.on("destroy.dtr", function () { a.off(".dtr"); c(a.table().body()).off(".dtr"); c(l).off("resize.dtr orientationchange.dtr"); c.each(b.s.current, function (a, c) { !1 === c && b._setColumnVis(a, !0) }) }); this.c.breakpoints.sort(function (a, b) { return a.width < b.width ? 1 : a.width > b.width ? -1 : 0 }); this._classLogic(); this._resizeAuto(); d = this.c.details; !1 !== d.type && (b._detailsInit(), a.on("column-visibility.dtr", function (a, 18 c, e, d, h) { h && (b._classLogic(), b._resizeAuto(), b._resize()) }), a.on("draw.dtr", function () { b._redrawChildren() }), c(a.table().node()).addClass("dtr-" + d.type)); a.on("column-reorder.dtr", function () { b._classLogic(); b._resizeAuto(); b._resize() }); a.on("column-sizing.dtr", function () { b._resizeAuto(); b._resize() }); a.on("preXhr.dtr", function () { 19 var c = []; a.rows().every(function () { this.child.isShown() && c.push(this.id(true)) }); a.one("draw.dtr", function () { 20 b._resizeAuto(); b._resize(); a.rows(c).every(function () { 21 b._detailsDisplay(this, 22 false) 23 }) 24 }) 25 }); a.on("init.dtr", function () { b._resizeAuto(); b._resize(); c.inArray(false, b.s.current) && a.columns.adjust() }); this._resize() 26 }, _columnsVisiblity: function (b) { 27 var a = this.s.dt, d = this.s.columns, e, f, g = d.map(function (a, b) { return { columnIdx: b, priority: a.priority } }).sort(function (a, b) { return a.priority !== b.priority ? a.priority - b.priority : a.columnIdx - b.columnIdx }), i = c.map(d, function (a) { return a.auto && null === a.minWidth ? !1 : !0 === a.auto ? "-" : -1 !== c.inArray(b, a.includeIn) }), n = 0; e = 0; for (f = i.length; e < f; e++) !0 === 28 i[e] && (n += d[e].minWidth); e = a.settings()[0].oScroll; e = e.sY || e.sX ? e.iBarWidth : 0; a = a.table().container().offsetWidth - e - n; e = 0; for (f = i.length; e < f; e++) d[e].control && (a -= d[e].minWidth); n = !1; e = 0; for (f = g.length; e < f; e++) { var h = g[e].columnIdx;
28 "-" === i[h] && (!d[h].control && d[h].minWidth) && (n || 0 > a - d[h].minWidth ? (n = !0, i[h] = !1) : i[h] = !0, a -= d[h].minWidth) } g = !1; e = 0; for (f = d.length; e < f; e++) if (!d[e].control && !d[e].never && !i[e]) { g = !0; break } e = 0; for (f = d.length; e < f; e++) d[e].control && (i[e] = g); -1 === c.inArray(!0, i) && (i[0] = !0); 29 return i 30 }, _classLogic: function () { 31 var b = this, a = this.c.breakpoints, d = this.s.dt, e = d.columns().eq(0).map(function (a) { var b = this.column(a), e = b.header().className, a = d.settings()[0].aoColumns[a].responsivePriority; a === q && (b = c(b.header()).data("priority"), a = b !== q ? 1 * b : 1E4); return { className: e, includeIn: [], auto: !1, control: !1, never: e.match(/\bnever\b/) ? !0 : !1, priority: a } }), f = function (a, b) { var d = e[a].includeIn; -1 === c.inArray(b, d) && d.push(b) }, g = function (c, d, h, g) { 32 if (h) if ("max-" === h) { 33 g = b._find(d).width; d = 0; for (h = 34 a.length; d < h; d++) a[d].width <= g && f(c, a[d].name) 35 } else if ("min-" === h) { g = b._find(d).width; d = 0; for (h = a.length; d < h; d++) a[d].width >= g && f(c, a[d].name) } else { if ("not-" === h) { d = 0; for (h = a.length; d < h; d++) -1 === a[d].name.indexOf(g) && f(c, a[d].name) } } else e[c].includeIn.push(d) 36 }; e.each(function (b, e) { 37 for (var d = b.className.split(" "), f = !1, j = 0, l = d.length; j < l; j++) { 38 var k = c.trim(d[j]); if ("all" === k) { f = !0; b.includeIn = c.map(a, function (a) { return a.name }); return } if ("none" === k || b.never) { f = !0; return } if ("control" === k) { 39 f = !0; b.control = 40 !0; return 41 } c.each(a, function (a, b) { var c = b.name.split("-"), d = k.match(RegExp("(min\\-|max\\-|not\\-)?(" + c[0] + ")(\\-[_a-zA-Z0-9])?")); d && (f = !0, d[2] === c[0] && d[3] === "-" + c[1] ? g(e, b.name, d[1], d[2] + d[3]) : d[2] === c[0] && !d[3] && g(e, b.name, d[1], d[2])) }) 42 } f || (b.auto = !0) 43 }); this.s.columns = e 44 }, _detailsDisplay: function (b, a) { 45 var d = this, e = this.s.dt, f = this.c.details; if (f && !1 !== f.type) { 46 var g = f.display(b, a, function () { return f.renderer(e, b[0], d._detailsObj(b[0])) }); (!0 === g || !1 === g) && c(e.table().node()).triggerHandler("responsive-display.dt", 47 [e, b, g, a]) 48 } 49 }, _detailsInit: function () { 50 var b = this, a = this.s.dt, d = this.c.details;
50 "inline" === d.type && (d.target = "td:first-child, th:first-child"); a.on("draw.dtr", function () { b._tabIndexes() }); b._tabIndexes(); c(a.table().body()).on("keyup.dtr", "td, th", function (a) { a.keyCode === 13 && c(this).data("dtr-keyboard") && c(this).click() }); var e = d.target; c(a.table().body()).on("click.dtr mousedown.dtr mouseup.dtr", "string" === typeof e ? e : "td, th", function (d) { 51 if (c(a.table().node()).hasClass("collapsed") && c.inArray(c(this).closest("tr").get(0), 52 a.rows().nodes().toArray()) !== -1) { if (typeof e === "number") { var g = e < 0 ? a.columns().eq(0).length + e : e; if (a.cell(this).index().column !== g) return } g = a.row(c(this).closest("tr")); d.type === "click" ? b._detailsDisplay(g, false) : d.type === "mousedown" ? c(this).css("outline", "none") : d.type === "mouseup" && c(this).blur().css("outline", "") } 53 }) 54 }, _detailsObj: function (b) { 55 var a = this, d = this.s.dt; return c.map(this.s.columns, function (c, f) { 56 if (!c.never && !c.control) return { 57 title: d.settings()[0].aoColumns[f].sTitle, data: d.cell(b, f).render(a.c.orthogonal), 58 hidden: d.column(f).visible() && !a.s.current[f], columnIndex: f, rowIndex: b 59 } 60 }) 61 }, _find: function (b) { for (var a = this.c.breakpoints, c = 0, e = a.length; c < e; c++) if (a[c].name === b) return a[c] }, _redrawChildren: function () { var b = this, a = this.s.dt; a.rows({ page: "current" }).iterator("row", function (c, e) { a.row(e); b._detailsDisplay(a.row(e), !0) }) }, _resize: function () { 62 var b = this, a = this.s.dt, d = c(l).width(), e = this.c.breakpoints, f = e[0].name, g = this.s.columns, i, n = this.s.current.slice(); for (i = e.length - 1; 0 <= i; i--) if (d <= e[i].width) { 63 f = 64 e[i].name; break 65 } var h = this._columnsVisiblity(f); this.s.current = h; e = !1; i = 0; for (d = g.length; i < d; i++) if (!1 === h[i] && !g[i].never && !g[i].control) { e = !0; break } c(a.table().node()).toggleClass("collapsed", e); var j = !1, k = 0; a.columns().eq(0).each(function (a, c) { !0 === h[c] && k++; h[c] !== n[c] && (j = !0, b._setColumnVis(a, h[c])) }); j && (this._redrawChildren(), c(a.table().node()).trigger("responsive-resize.dt", [a, this.s.current]), 0 === a.page.info().recordsDisplay && c("td", a.table().body()).eq(0).attr("colspan", k)) 66 }, _resizeAuto: function () { 67 var b = 68 this.s.dt, a = this.s.columns; if (this.c.auto && -1 !== c.inArray(!0, c.map(a, function (a) { return a.auto }))) { 69 c.isEmptyObject(m) || c.each(m, function (a) { a = a.split("-"); r(b, 1 * a[0], 1 * a[1]) }); b.table().node(); var d = b.table().node().cloneNode(!1), e = c(b.table().header().cloneNode(!1)).appendTo(d), f = c(b.table().body()).clone(!1, !1).empty().appendTo(d), g = b.columns().header().filter(function (a) { return b.column(a).visible() }).to$().clone(!1).css("display", "table-cell").css("min-width", 0); c(f).append(c(b.rows({ page: "current" }).nodes()).clone(!1)).find("th, td").css("display", 70 ""); if (f = b.table().footer()) { var f = c(f.cloneNode(!1)).appendTo(d), i = b.columns().footer().filter(function (a) { return b.column(a).visible() }).to$().clone(!1).css("display", "table-cell"); c("<tr/>").append(i).appendTo(f) } c("<tr/>").append(g).appendTo(e); "inline" === this.c.details.type && c(d).addClass("dtr-inline collapsed"); c(d).find("[name]").removeAttr("name"); d = c("<div/>").css({ width: 1, height: 1, overflow: "hidden", clear: "both" }).append(d); d.insertBefore(b.table().node()); g.each(function (c) { 71 c = b.column.index("fromVisible", 72 c); a[c].minWidth = this.offsetWidth || 0 73 }); d.remove() 74 } 75 }, _setColumnVis: function (b, a) { var d = this.s.dt, e = a ? "" : "none"; c(d.column(b).header()).css("display", e); c(d.column(b).footer()).css("display", e); d.column(b).nodes().to$().css("display", e); c.isEmptyObject(m) || d.cells(null, b).indexes().each(function (a) { r(d, a.row, a.column) }) }, _tabIndexes: function () { 76 var b = this.s.dt, a = b.cells({ page: "current" }).nodes().to$(), d = b.settings()[0], e = this.c.details.target; a.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]"); 77 a = "number" === typeof e ? ":eq(" + e + ")" : e; "td:first-child, th:first-child" === a && (a = ">td:first-child, >th:first-child"); c(a, b.rows({ page: "current" }).nodes()).attr("tabIndex", d.iTabIndex).data("dtr-keyboard", 1) 78 } 79 }); j.breakpoints = [{ name: "desktop", width: Infinity }, { name: "tablet-l", width: 1024 }, { name: "tablet-p", width: 768 }, { name: "mobile-l", width: 480 }, { name: "mobile-p", width: 320 }]; j.display = { 80 childRow: function (b, a, d) { 81 if (a) { if (c(b.node()).hasClass("parent")) return b.child(d(), "child").show(), !0 } else { 82 if (b.child.isShown()) return b.child(!1), 83 c(b.node()).removeClass("parent"), !1; b.child(d(), "child").show(); c(b.node()).addClass("parent"); return !0 84 } 85 }, childRowImmediate: function (b, a, d) { if (!a && b.child.isShown() || !b.responsive.hasHidden()) return b.child(!1), c(b.node()).removeClass("parent"), !1; b.child(d(), "child").show(); c(b.node()).addClass("parent"); return !0 }, modal: function (b) { 86 return function (a, d, e) { 87 if (d) c("div.dtr-modal-content").empty().append(e()); else { 88 var f = function () { g.remove();
88 c(k).off("keypress.dtr") }, g = c('<div class="dtr-modal"/>').append(c('<div class="dtr-modal-display"/>').append(c('<div class="dtr-modal-content"/>').append(e())).append(c('<div class="dtr-modal-close">×</div>').click(function () { f() }))).append(c('<div class="dtr-modal-background"/>').click(function () { f() })).appendTo("body"); 89 c(k).on("keyup.dtr", function (a) { 27 === a.keyCode && (a.stopPropagation(), f()) }) 90 } b && b.header && c("div.dtr-modal-content").prepend("<h2>" + b.header(a) + "</h2>") 91 } 92 } 93 }; var m = {}; j.renderer = { 94 listHiddenNodes: function () { 95 return function (b, a, d) { 96 var e = c('<ul data-dtr-index="' + a + '" class="dtr-details"/>'), f = !1; c.each(d, function (a, d) { 97 d.hidden && (c('<li data-dtr-index="' + d.columnIndex + '" data-dt-row="' + d.rowIndex + '" data-dt-column="' + d.columnIndex + '"><span class="dtr-title">' + d.title + "</span> </li>").append(c('<span class="dtr-data"/>').append(s(b, 98 d.rowIndex, d.columnIndex))).appendTo(e), f = !0) 99 }); return f ? e : !1 100 } 101 }, listHidden: function () { return function (b, a, d) { return (b = c.map(d, function (a) { return a.hidden ? '<li data-dtr-index="' + a.columnIndex + '" data-dt-row="' + a.rowIndex + '" data-dt-column="' + a.columnIndex + '"><span class="dtr-title">' + a.title + '</span> <span class="dtr-data">' + a.data + "</span></li>" : "" }).join("")) ? c('<ul data-dtr-index="' + a + '" class="dtr-details"/>').append(b) : !1 } }, tableAll: function (b) { 102 b = c.extend({ tableClass: "" }, b); return function (a, 103 d, e) { a = c.map(e, function (a) { return '<tr data-dt-row="' + a.rowIndex + '" data-dt-column="' + a.columnIndex + '"><td>' + a.title + ":</td> <td>" + a.data + "</td></tr>" }).join(""); return c('<table class="' + b.tableClass + ' dtr-details" width="100%"/>').append(a) } 104 } 105 }; j.defaults = { breakpoints: j.breakpoints, auto: !0, details: { display: j.display.childRow, renderer: j.renderer.listHidden(), target: 0, type: "inline" }, orthogonal: "display" }; var p = c.fn.dataTable.Api; p.register("responsive()", function () { return this }); p.register("responsive.index()", 106 function (b) { b = c(b); return { column: b.data("dtr-index"), row: b.parent().data("dtr-index") } }); p.register("responsive.rebuild()", function () { return this.iterator("table", function (b) { b._responsive && b._responsive._classLogic() }) }); p.register("responsive.recalc()", function () { return this.iterator("table", function (b) { b._responsive && (b._responsive._resizeAuto(), b._responsive._resize()) }) }); p.register("responsive.hasHidden()", function () { 107 var b = this.context[0]; return b._responsive ? -1 !== c.inArray(!1, b._responsive.s.current) : 108 !1 109 }); p.registerPlural("columns().responsiveHidden()", "column().responsiveHidden()", function () { return this.iterator("column", function (b, a) { return b._responsive ? b._responsive.s.current[a] : !1 }, 1) }); j.version = "2.2.1"; c.fn.dataTable.Responsive = j; c.fn.DataTable.Responsive = j; c(k).on("preInit.dt.dtr", function (b, a) { 110 if ("dt" === b.namespace && (c(a.nTable).hasClass("responsive") || c(a.nTable).hasClass("dt-responsive") || a.oInit.responsive || o.defaults.responsive)) { 111 var d = a.oInit.responsive; !1 !== d && new j(a, c.isPlainObject(d) ? 112 d : {}) 113 } 114 }); return j 115});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.