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.0.12/JS/dataTables.searchBuilder.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*! SearchBuilder 1.0.1\n * ©2020 SpryMedia Ltd - datatables.net/license/mit\n */\n(function () {\n\t'use strict';\n\n\t/*! DateTime picker for DataTables.net v1.0.1\n\t *\n\t * ©2020 SpryMedia Ltd, all rights reserved.\n\t * License: MIT datatables.net/license/mit\n\t */\n\n\t/**\n\t * @summary     DateTime picker for DataTables.net\n\t * @version     1.0.1\n\t * @file        dataTables.dateTime.js\n\t * @author      SpryMedia Ltd\n\t * @contact     www.datatables.net/contact\n\t */\n\t(function( factory ){\n\t\tif ( typeof define === 'function' && define.amd ) {\n\t\t\t// AMD\n\t\t\tdefine( ['jquery'], function ( $ ) {\n\t\t\t\treturn factory( $, window, document );\n\t\t\t} );\n\t\t}\n\t\telse if ( typeof exports === 'object' ) {\n\t\t\t// CommonJS\n\t\t\tmodule.exports = function (root, $) {\n\t\t\t\tif ( ! root ) {\n\t\t\t\t\troot = window;\n\t\t\t\t}\n\n\t\t\t\treturn factory( $, root, root.document );\n\t\t\t};\n\t\t}\n\t\telse {\n\t\t\t// Browser\n\t\t\tfactory( jQuery, window, document );\n\t\t}\n\t}(function( $, window, document, undefined$1 ) {\n\n\t// Support libraries which support a Moment like API\n\tvar dateLib = window.moment\n\t\t? window.moment\n\t\t: window.dayjs\n\t\t\t? window.dayjs\n\t\t\t: null;\n\n\t/*\n\t * This file provides a DateTime GUI picker (calendar and time input). Only the\n\t * format YYYY-MM-DD is supported without additional software, but the end user\n\t * experience can be greatly enhanced by including the momentjs or dayjs library\n\t * which provide date / time parsing and formatting options.\n\t *\n\t * This functionality is required because the HTML5 date and datetime input\n\t * types are not widely supported in desktop browsers.\n\t *\n\t * Constructed by using:\n\t *\n\t *     new DateTime( input, opts )\n\t *\n\t * where `input` is the HTML input element to use and `opts` is an object of\n\t * options based on the `DateTime.defaults` object.\n\t */\n\tvar DateTime = function ( input, opts ) {\n\t\tthis.c = $.extend( true, {}, DateTime.defaults, opts );\n\t\tvar classPrefix = this.c.classPrefix;\n\t\tvar i18n = this.c.i18n;\n\n\t\t// Only IS8601 dates are supported without moment pr dayjs\n\t\tif ( ! dateLib && this.c.format !== 'YYYY-MM-DD' ) {\n\t\t\tthrow \"DateTime: Without momentjs or dayjs only the format 'YYYY-MM-DD' can be used\";\n\t\t}\n\n\t\t// Min and max need to be `Date` objects in the config\n\t\tif (typeof this.c.minDate === 'string') {\n\t\t\tthis.c.minDate = new Date(this.c.minDate);\n\t\t}\n\t\tif (typeof this.c.maxDate === 'string') {\n\t\t\tthis.c.maxDate = new Date(this.c.maxDate);\n\t\t}\n\n\t\t// DOM structure\n\t\tvar structure = $(\n\t\t\t'<div class=\"'+classPrefix+'\">'+\n\t\t\t\t'<div class=\"'+classPrefix+'-date\">'+\n\t\t\t\t\t'<div class=\"'+classPrefix+'-title\">'+\n\t\t\t\t\t\t'<div class=\"'+classPrefix+'-iconLeft\">'+\n\t\t\t\t\t\t\t'<button>'+i18n.previous+'</button>'+\n\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t\t'<div class=\"'+classPrefix+'-iconRight\">'+\n\t\t\t\t\t\t\t'<button>'+i18n.next+'</button>'+\n\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t\t'<div class=\"'+classPrefix+'-label\">'+\n\t\t\t\t\t\t\t'<span></span>'+\n\t\t\t\t\t\t\t'<select class=\"'+classPrefix+'-month\"></select>'+\n\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t\t'<div class=\"'+classPrefix+'-label\">'+\n\t\t\t\t\t\t\t'<span></span>'+\n\t\t\t\t\t\t\t'<select class=\"'+classPrefix+'-year\"></select>'+\n\t\t\t\t\t\t'</div>'+\n\t\t\t\t\t'</div>'+\n\t\t\t\t\t'<div class=\"'+classPrefix+'-calendar\"></div>'+\n\t\t\t\t'</div>'+\n\t\t\t\t'<div class=\"'+classPrefix+'-time\">'+\n\t\t\t\t\t'<div class=\"'+classPrefix+'-hours\"></div>'+\n\t\t\t\t\t'<div class=\"'+classPrefix+'-minutes\"></div>'+\n\t\t\t\t\t'<div class=\"'+classPrefix+'-seconds\"></div>'+\n\t\t\t\t'</div>'+\n\t\t\t\t'<div class=\"'+classPrefix+'-error\"></div>'+\n\t\t\t'</div>'\n\t\t);\n\n\t\tthis.dom = {\n\t\t\tcontainer: structure,\n\t\t\tdate:      structure.find( '.'+classPrefix+'-date' ),\n\t\t\ttitle:     structure.find( '.'+classPrefix+'-title' ),\n\t\t\tcalendar:  structure.find( '.'+classPrefix+'-calendar' ),\n\t\t\ttime:      structure.find( '.'+classPrefix+'-time' ),\n\t\t\terror:     structure.find( '.'+classPrefix+'-error' ),\n\t\t\tinput:     $(input)\n\t\t};\n\n\t\tthis.s = {\n\t\t\t/** @type {Date} Date value that the picker has currently selected */\n\t\t\td: null,\n\n\t\t\t/** @type {Date} Date of the calendar - might not match the value */\n\t\t\tdisplay: null,\n\n\t\t\t/** @type {number} Used to select minutes in a range where the range base is itself unavailable */\n\t\t\tminutesRange: null,\n\n\t\t\t/** @type {number} Used to select minutes in a range where the range base is itself unavailable */\n\t\t\tsecondsRange: null,\n\n\t\t\t/** @type {String} Unique namespace string for this instance */\n\t\t\tnamespace: 'dateime-'+(DateTime._instance++),\n\n\t\t\t/** @type {Object} Parts of the picker that should be shown */\n\t\t\tparts: {\n\t\t\t\tdate:    this.c.format.match( /[YMD]|L(?!T)|l/ ) !== null,\n\t\t\t\ttime:    this.c.format.match( /[Hhm]|LT|LTS/ ) !== null,\n\t\t\t\tseconds: this.c.format.indexOf( 's' )   !== -1,\n\t\t\t\thours12: this.c.format.match( /[haA]/ ) !== null\n\t\t\t}\n\t\t};\n\n\t\tthis.dom.container\n\t\t\t.append( this.dom.date )\n\t\t\t.append( this.dom.time )\n\t\t\t.append( this.dom.error );\n\n\t\tthis.dom.date\n\t\t\t.append( this.dom.title )\n\t\t\t.append( this.dom.calendar );\n\n\t\tthis._constructor();\n\t};\n\n\t$.extend( DateTime.prototype, {\n\t\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t\t * Public\n\t\t */\n\t\t\n\t\t/**\n\t\t * Destroy the control\n\t\t */\n\t\tdestroy: function () {\n\t\t\tthis._hide(true);\n\t\t\tthis.dom.container.off().empty();\n\t\t\tthis.dom.input.off('.datetime');\n\t\t},\n\n\t\terrorMsg: function ( msg ) {\n\t\t\tvar error = this.dom.error;\n\n\t\t\tif ( msg ) {\n\t\t\t\terror.html( msg );\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror.empty();\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\thide: function () {\n\t\t\tthis._hide();\n\n\t\t\treturn this;\n\t\t},\n\n\t\tmax: function ( date ) {\n\t\t\tthis.c.maxDate = typeof date === 'string'\n\t\t\t\t? new Date(date)\n\t\t\t\t: date;\n\n\t\t\tthis._optionsTitle();\n\t\t\tthis._setCalander();\n\n\t\t\treturn this;\n\t\t},\n\n\t\tmin: function ( date ) {\n\t\t\tthis.c.minDate = typeof date === 'string'\n\t\t\t\t? new Date(date)\n\t\t\t\t: date;\n\n\t\t\tthis._optionsTitle();\n\t\t\tthis._setCalander();\n\n\t\t\treturn this;\n\t\t},\n\n\t\t/**\n\t\t * Check if an element belongs to this control\n\t\t *\n\t\t * @param  {node} node Element to check\n\t\t * @return {boolean}   true if owned by this control, false otherwise\n\t\t */\n\t\towns: function ( node ) {\n\t\t\treturn $(node).parents().filter( this.dom.container ).length > 0;\n\t\t},\n\n\t\t/**\n\t\t * Get / set the value\n\t\t *\n\t\t * @param  {string|Date} set   Value to set\n\t\t * @param  {boolean} [write=true] Flag to indicate if the formatted value\n\t\t *   should be written into the input element\n\t\t */\n\t\tval: function ( set, write ) {\n\t\t\tif ( set === undefined$1 ) {\n\t\t\t\treturn this.s.d;\n\t\t\t}\n\n\t\t\tif ( set instanceof Date ) {\n\t\t\t\tthis.s.d = this._dateToUtc( set );\n\t\t\t}\n\t\t\telse if ( set === null || set === '' ) {\n\t\t\t\tthis.s.d = null;\n\t\t\t}\n\t\t\telse if ( set === '--now' ) {\n\t\t\t\tthis.s.d = new Date();\n\t\t\t}\n\t\t\telse if ( typeof set === 'string' ) {\n\t\t\t\tif ( dateLib ) {\n\t\t\t\t\t// Use moment or dayjs if possible (even for ISO8601 strings, since it\n\t\t\t\t\t// will correctly handle 0000-00-00 and the like)\n\t\t\t\t\tvar m = dateLib.utc( set, this.c.format, this.c.locale, this.c.strict );\n\t\t\t\t\tthis.s.d = m.isValid() ? m.toDate() : null;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Else must be using ISO8601 without a date library (constructor would\n\t\t\t\t\t// have thrown an error otherwise)\n\t\t\t\t\tvar match = set.match(/(\\d{4})\\-(\\d{2})\\-(\\d{2})/ );\n\t\t\t\t\tthis.s.d = match ?\n\t\t\t\t\t\tnew Date( Date.UTC(match[1], match[2]-1, match[3]) ) :\n\t\t\t\t\t\tnull;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( write || write === undefined$1 ) {\n\t\t\t\tif ( this.s.d ) {\n\t\t\t\t\tthis._writeOutput();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// The input value was not valid...\n\t\t\t\t\tthis.dom.input.val( set );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// We need a date to be able to display the calendar at all\n\t\t\tif ( ! this.s.d ) {\n\t\t\t\tthis.s.d = this._dateToUtc( new Date() );\n\t\t\t}\n\n\t\t\tthis.s.display = new Date( this.s.d.toString() );\n\n\t\t\t// Set the day of the month to be 1 so changing between months doesn't\n\t        // run into issues when going from day 31 to 28 (for example)\n\t\t\tthis.s.display.setUTCDate( 1 );\n\n\t\t\t// Update the display elements for the new value\n\t\t\tthis._setTitle();\n\t\t\tthis._setCalander();\n\t\t\tthis._setTime();\n\n\t\t\treturn this;\n\t\t},\n\n\n\t\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t\t * Constructor\n\t\t */\n\t\t\n\t\t/**\n\t\t * Build the control and assign initial event handlers\n\t\t *\n\t\t * @private\n\t\t */\n\t\t_constructor: function () {\n\t\t\tvar that = this;\n\t\t\tvar classPrefix = this.c.classPrefix;\n\t\t\tvar onChange = function () {\n\t\t\t\tthat.c.onChange.call( that, that.dom.input.val(), that.s.d, that.dom.input );\n\t\t\t};\n\n\t\t\tif ( ! this.s.parts.date ) {\n\t\t\t\tthis.dom.date.css( 'display', 'none' );\n\t\t\t}\n\n\t\t\tif ( ! this.s.parts.time ) {\n\t\t\t\tthis.dom.time.css( 'display', 'none' );\n\t\t\t}\n\n\t\t\tif ( ! this.s.parts.seconds ) {\n\t\t\t\tthis.dom.time.children('div.'+classPrefix+'-seconds').remove();\n\t\t\t\tthis.dom.time.children('span').eq(1).remove();\n\t\t\t}\n\n\t\t\t// Render the options\n\t\t\tthis._optionsTitle();\n\n\t\t\twindow.allan = this;\n\n\t\t\t// When attached to a hidden input, we always show the input picker, and\n\t\t\t// do so inline\n\t\t\tif (this.dom.input.attr('type') === 'hidden') {\n\t\t\t\tthis.dom.container.addClass('inline');\n\t\t\t\tthis.c.attachTo = 'input';\n\n\t\t\t\tthis.val( this.dom.input.val(), false );\n\t\t\t\tthis._show();\n\t\t\t}\n\n\t\t\t// Trigger the display of the widget when clicking or focusing on the\n\t\t\t// input element\n\t\t\tthis.dom.input\n\t\t\t\t.attr('autocomplete', 'off')\n\t\t\t\t.on('focus.datetime click.datetime', function () {\n\t\t\t\t\t// If already visible - don't do anything\n\t\t\t\t\tif ( that.dom.container.is(':visible') || that.dom.input.is(':disabled') ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// In case the value has changed by text\n\t\t\t\t\tthat.val( that.dom.input.val(), false );\n\n\t\t\t\t\tthat._show();\n\t\t\t\t} )\n\t\t\t\t.on('keyup.datetime', function () {\n\t\t\t\t\t// Update the calendar's displayed value as the user types\n\t\t\t\t\tif ( that.dom.container.is(':visible') ) {\n\t\t\t\t\t\tthat.val( that.dom.input.val(), false );\n\t\t\t\t\t}\n\t\t\t\t} );\n\n\t\t\t// Main event handlers for input in the widget\n\t\t\tthis.dom.container\n\t\t\t\t.on( 'change', 'select', function () {\n\t\t\t\t\tvar select = $(this);\n\t\t\t\t\tvar val = select.val();\n\n\t\t\t\t\tif ( select.hasClass(classPrefix+'-month') ) {\n\t\t\t\t\t\t// Month select\n\t\t\t\t\t\tthat._correctMonth( that.s.display, val );\n\t\t\t\t\t\tthat._setTitle();\n\t\t\t\t\t\tthat._setCalander();\n\t\t\t\t\t}\n\t\t\t\t\telse if ( select.hasClass(classPrefix+'-year') ) {\n\t\t\t\t\t\t// Year select\n\t\t\t\t\t\tthat.s.display.setUTCFullYear( val );\n\t\t\t\t\t\tthat._setTitle();\n\t\t\t\t\t\tthat._setCalander();\n\t\t\t\t\t}\n\t\t\t\t\telse if ( select.hasClass(classPrefix+'-hours') || select.hasClass(classPrefix+'-ampm') ) {\n\t\t\t\t\t\t// Hours - need to take account of AM/PM input if present\n\t\t\t\t\t\tif ( that.s.parts.hours12 ) {\n\t\t\t\t\t\t\tvar hours = $(that.dom.container).find('.'+classPrefix+'-hours').val() * 1;\n\t\t\t\t\t\t\tvar pm = $(that.dom.container).find('.'+classPrefix+'-ampm').val() === 'pm';\n\n\t\t\t\t\t\t\tthat.s.d.setUTCHours( hours === 12 && !pm ?\n\t\t\t\t\t\t\t\t0 :\n\t\t\t\t\t\t\t\tpm && hours !== 12 ?\n\t\t\t\t\t\t\t\t\thours + 12 :\n\t\t\t\t\t\t\t\t\thours\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthat.s.d.setUTCHours( val );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthat._setTime();\n\t\t\t\t\t\tthat._writeOutput( true );\n\n\t\t\t\t\t\tonChange();\n\t\t\t\t\t}\n\t\t\t\t\telse if ( select.hasClass(classPrefix+'-minutes') ) {\n\t\t\t\t\t\t// Minutes select\n\t\t\t\t\t\tthat.s.d.setUTCMinutes( val );\n\t\t\t\t\t\tthat._setTime();\n\t\t\t\t\t\tthat._writeOutput( true );\n\n\t\t\t\t\t\tonChange();\n\t\t\t\t\t}\n\t\t\t\t\telse if ( select.hasClass(classPrefix+'-seconds') ) {\n\t\t\t\t\t\t// Seconds select\n\t\t\t\t\t\tthat.s.d.setSeconds( val );\n\t\t\t\t\t\tthat._setTime();\n\t\t\t\t\t\tthat._writeOutput( true );\n\n\t\t\t\t\t\tonChange();\n\t\t\t\t\t}\n\n\t\t\t\t\tthat.dom.input.focus();\n\t\t\t\t\tthat._position();\n\t\t\t\t} )\n\t\t\t\t.on( 'click', function (e) {\n\t\t\t\t\tvar d = that.s.d;\n\t\t\t\t\tvar nodeName = e.target.nodeName.toLowerCase();\n\t\t\t\t\tvar target = nodeName === 'span' ?\n\t\t\t\t\t\te.target.parentNode :\n\t\t\t\t\t\te.target;\n\n\t\t\t\t\tnodeName = target.nodeName.toLowerCase();\n\n\t\t\t\t\tif ( nodeName === 'select' ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\te.stopPropagation();\n\n\t\t\t\t\tif ( nodeName === 'button' ) {\n\t\t\t\t\t\tvar button = $(target);\n\t\t\t\t\t\tvar parent = button.parent();\n\n\t\t\t\t\t\tif ( parent.hasClass('disabled') && ! parent.hasClass('range') ) {\n\t\t\t\t\t\t\tbutton.blur();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( parent.hasClass(classPrefix+'-iconLeft') ) {\n\t\t\t\t\t\t\t// Previous month\n\t\t\t\t\t\t\tthat.s.display.setUTCMonth( that.s.display.getUTCMonth()-1 );\n\t\t\t\t\t\t\tthat._setTitle();\n\t\t\t\t\t\t\tthat._setCalander();\n\n\t\t\t\t\t\t\tthat.dom.input.focus();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( parent.hasClass(classPrefix+'-iconRight') ) {\n\t\t\t\t\t\t\t// Next month\n\t\t\t\t\t\t\tthat._correctMonth( that.s.display, that.s.display.getUTCMonth()+1 );\n\t\t\t\t\t\t\tthat._setTitle();\n\t\t\t\t\t\t\tthat._setCalander();\n\n\t\t\t\t\t\t\tthat.dom.input.focus();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( button.parents('.'+classPrefix+'-time').length ) {\n\t\t\t\t\t\t\tvar val = button.data('value');\n\t\t\t\t\t\t\tvar unit = button.data('unit');\n\n\t\t\t\t\t\t\tif ( unit === 'minutes' ) {\n\t\t\t\t\t\t\t\tif ( parent.hasClass('disabled') && parent.hasClass('range') ) {\n\t\t\t\t\t\t\t\t\tthat.s.minutesRange = val;\n\t\t\t\t\t\t\t\t\tthat._setTime();\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tthat.s.minutesRange = null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ( unit === 'seconds' ) {\n\t\t\t\t\t\t\t\tif ( parent.hasClass('disabled') && parent.hasClass('range') ) {\n\t\t\t\t\t\t\t\t\tthat.s.secondsRange = val;\n\t\t\t\t\t\t\t\t\tthat._setTime();\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tthat.s.secondsRange = null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Specific to hours for 12h clock\n\t\t\t\t\t\t\tif ( val === 'am' ) {\n\t\t\t\t\t\t\t\tif ( d.getUTCHours() >= 12 ) {\n\t\t\t\t\t\t\t\t\tval = d.getUTCHours() - 12;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( val === 'pm' ) {\n\t\t\t\t\t\t\t\tif ( d.getUTCHours() < 12 ) {\n\t\t\t\t\t\t\t\t\tval = d.getUTCHours() + 12;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tvar set = unit === 'hours' ?\n\t\t\t\t\t\t\t\t'setUTCHours' :\n\t\t\t\t\t\t\t\tunit === 'minutes' ?\n\t\t\t\t\t\t\t\t\t'setUTCMinutes' :\n\t\t\t\t\t\t\t\t\t'setSeconds';\n\n\t\t\t\t\t\t\td[set]( val );\n\t\t\t\t\t\t\tthat._setTime();\n\t\t\t\t\t\t\tthat._writeOutput( true );\n\t\t\t\t\t\t\tonChange();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// Calendar click\n\t\t\t\t\t\t\tif ( ! d ) {\n\t\t\t\t\t\t\t\td = that._dateToUtc( new Date() );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Can't be certain that the current day will exist in\n\t\t\t\t\t\t\t// the new month, and likewise don't know that the\n\t\t\t\t\t\t\t// new day will exist in the old month, But 1 always\n\t\t\t\t\t\t\t// does, so we can change the month without worry of a\n\t\t\t\t\t\t\t// recalculation being done automatically by `Date`\n\t\t\t\t\t\t\td.setUTCDate( 1 );\n\t\t\t\t\t\t\td.setUTCFullYear( button.data('year') );\n\t\t\t\t\t\t\td.setUTCMonth( button.data('month') );\n\t\t\t\t\t\t\td.setUTCDate( button.data('day') );\n\n\t\t\t\t\t\t\tthat._writeOutput( true );\n\n\t\t\t\t\t\t\t// Don't hide if there is a time picker, since we want to\n\t\t\t\t\t\t\t// be able to select a time as well.\n\t\t\t\t\t\t\tif ( ! that.s.parts.time ) {\n\t\t\t\t\t\t\t\t// This is annoying but IE has some kind of async\n\t\t\t\t\t\t\t\t// behaviour with focus and the focus from the above\n\t\t\t\t\t\t\t\t// write would occur after this hide - resulting in the\n\t\t\t\t\t\t\t\t// calendar opening immediately\n\t\t\t\t\t\t\t\tsetTimeout( function () {\n\t\t\t\t\t\t\t\t\tthat._hide();\n\t\t\t\t\t\t\t\t}, 10 );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tthat._setCalander();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tonChange();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Click anywhere else in the widget - return focus to the\n\t\t\t\t\t\t// input element\n\t\t\t\t\t\tthat.dom.input.focus();\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t},\n\n\n\t\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t\t * Private\n\t\t */\n\n\t\t/**\n\t\t * Compare the date part only of two dates - this is made super easy by the\n\t\t * toDateString method!\n\t\t *\n\t\t * @param  {Date} a Date 1\n\t\t * @param  {Date} b Date 2\n\t\t * @private\n\t\t */\n\t\t_compareDates: function( a, b ) {\n\t\t\t// Can't use toDateString as that converts to local time\n\t\t\treturn this._dateToUtcString(a) === this._dateToUtcString(b);\n\t\t},\n\n\t\t/**\n\t\t * When changing month, take account of the fact that some months don't have\n\t\t * the same number of days. For example going from January to February you\n\t\t * can have the 31st of Jan selected and just add a month since the date\n\t\t * would still be 31, and thus drop you into March.\n\t\t *\n\t\t * @param  {Date} date  Date - will be modified\n\t\t * @param  {integer} month Month to set\n\t\t * @private\n\t\t */\n\t\t_correctMonth: function ( date, month ) {\n\t\t\tvar days = this._daysInMonth( date.getUTCFullYear(), month );\n\t\t\tvar correctDays = date.getUTCDate() > days;\n\n\t\t\tdate.setUTCMonth( month );\n\n\t\t\tif ( correctDays ) {\n\t\t\t\tdate.setUTCDate( days );\n\t\t\t\tdate.setUTCMonth( month );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Get the number of days in a method. Based on\n\t\t * http://stackoverflow.com/a/4881951 by Matti Virkkunen\n\t\t *\n\t\t * @param  {integer} year  Year\n\t\t * @param  {integer} month Month (starting at 0)\n\t\t * @private\n\t\t */\n\t\t_daysInMonth: function ( year, month ) {\n\t\t\t// \n\t\t\tvar isLeap = ((year % 4) === 0 && ((year % 100) !== 0 || (year % 400) === 0));\n\t\t\tvar months = [31, (isLeap ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\n\t\t\treturn months[month];\n\t\t},\n\n\t\t/**\n\t\t * Create a new date object which has the UTC values set to the local time.\n\t\t * This allows the local time to be used directly for the library which\n\t\t * always bases its calculations and display on UTC.\n\t\t *\n\t\t * @param  {Date} s Date to \"convert\"\n\t\t * @return {Date}   Shifted date\n\t\t */\n\t\t_dateToUtc: function ( s ) {\n\t\t\treturn new Date( Date.UTC(\n\t\t\t\ts.getFullYear(), s.getMonth(), s.getDate(),\n\t\t\t\ts.getHours(), s.getMinutes(), s.getSeconds()\n\t\t\t) );\n\t\t},\n\n\t\t/**\n\t\t * Create a UTC ISO8601 date part from a date object\n\t\t *\n\t\t * @param  {Date} d Date to \"convert\"\n\t\t * @return {string} ISO formatted date\n\t\t */\n\t\t_dateToUtcString: function ( d ) {\n\t\t\treturn d.getUTCFullYear()+'-'+\n\t\t\t\tthis._pad(d.getUTCMonth()+1)+'-'+\n\t\t\t\tthis._pad(d.getUTCDate());\n\t\t},\n\n\t\t/**\n\t\t * Hide the control and remove events related to its display\n\t\t *\n\t\t * @private\n\t\t */\n\t\t_hide: function (destroy) {\n\t\t\tif (! destroy && this.dom.input.attr('type') === 'hidden') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar namespace = this.s.namespace;\n\n\t\t\tthis.dom.container.detach();\n\n\t\t\t$(window).off( '.'+namespace );\n\t\t\t$(document).off( 'keydown.'+namespace );\n\t\t\t$('div.dataTables_scrollBody').off( 'scroll.'+namespace );\n\t\t\t$('div.DTE_Body_Content').off( 'scroll.'+namespace );\n\t\t\t$('body').off( 'click.'+namespace );\n\t\t},\n\n\t\t/**\n\t\t * Convert a 24 hour value to a 12 hour value\n\t\t *\n\t\t * @param  {integer} val 24 hour value\n\t\t * @return {integer}     12 hour value\n\t\t * @private\n\t\t */\n\t\t_hours24To12: function ( val ) {\n\t\t\treturn val === 0 ?\n\t\t\t\t12 :\n\t\t\t\tval > 12 ?\n\t\t\t\t\tval - 12 :\n\t\t\t\t\tval;\n\t\t},\n\n\t\t/**\n\t\t * Generate the HTML for a single day in the calendar - this is basically\n\t\t * and HTML cell with a button that has data attributes so we know what was\n\t\t * clicked on (if it is clicked on) and a bunch of classes for styling.\n\t\t *\n\t\t * @param  {object} day Day object from the `_htmlMonth` method\n\t\t * @return {string}     HTML cell\n\t\t */\n\t\t_htmlDay: function( day )\n\t\t{\n\t\t\tif ( day.empty ) {\n\t\t\t\treturn '<td class=\"empty\"></td>';\n\t\t\t}\n\n\t\t\tvar classes = [ 'selectable' ];\n\t\t\tvar classPrefix = this.c.classPrefix;\n\n\t\t\tif ( day.disabled ) {\n\t\t\t\tclasses.push( 'disabled' );\n\t\t\t}\n\n\t\t\tif ( day.today ) {\n\t\t\t\tclasses.push( 'now' );\n\t\t\t}\n\n\t\t\tif ( day.selected ) {\n\t\t\t\tclasses.push( 'selected' );\n\t\t\t}\n\n\t\t\treturn '<td data-day=\"' + day.day + '\" class=\"' + classes.join(' ') + '\">' +\n\t\t\t\t\t'<button class=\"'+classPrefix+'-button '+classPrefix+'-day\" type=\"button\" ' +'data-year=\"' + day.year + '\" data-month=\"' + day.month + '\" data-day=\"' + day.day + '\">' +\n\t\t\t\t\t\t'<span>'+day.day+'</span>'+\n\t\t\t\t\t'</button>' +\n\t\t\t\t'</td>';\n\t\t},\n\n\n\t\t/**\n\t\t * Create the HTML for a month to be displayed in the calendar table.\n\t\t * \n\t\t * Based upon the logic used in Pikaday - MIT licensed\n\t\t * Copyright (c) 2014 David Bushell\n\t\t * https://github.com/dbushell/Pikaday\n\t\t *\n\t\t * @param  {integer} year  Year\n\t\t * @param  {integer} month Month (starting at 0)\n\t\t * @return {string} Calendar month HTML\n\t\t * @private\n\t\t */\n\t\t_htmlMonth: function ( year, month ) {\n\t\t\tvar now    = this._dateToUtc( new Date() ),\n\t\t\t\tdays   = this._daysInMonth( year, month ),\n\t\t\t\tbefore = new Date( Date.UTC(year, month, 1) ).getUTCDay(),\n\t\t\t\tdata   = [],\n\t\t\t\trow    = [];\n\n\t\t\tif ( this.c.firstDay > 0 ) {\n\t\t\t\tbefore -= this.c.firstDay;\n\n\t\t\t\tif (before < 0) {\n\t\t\t\t\tbefore += 7;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar cells = days + before,\n\t\t\t\tafter = cells;\n\n\t\t\twhile ( after > 7 ) {\n\t\t\t\tafter -= 7;\n\t\t\t}\n\n\t\t\tcells += 7 - after;\n\n\t\t\tvar minDate = this.c.minDate;\n\t\t\tvar maxDate = this.c.maxDate;\n\n\t\t\tif ( minDate ) {\n\t\t\t\tminDate.setUTCHours(0);\n\t\t\t\tminDate.setUTCMinutes(0);\n\t\t\t\tminDate.setSeconds(0);\n\t\t\t}\n\n\t\t\tif ( maxDate ) {\n\t\t\t\tmaxDate.setUTCHours(23);\n\t\t\t\tmaxDate.setUTCMinutes(59);\n\t\t\t\tmaxDate.setSeconds(59);\n\t\t\t}\n\n\t\t\tfor ( var i=0, r=0 ; i<cells ; i++ ) {\n\t\t\t\tvar day      = new Date( Date.UTC(year, month, 1 + (i - before)) ),\n\t\t\t\t\tselected = this.s.d ? this._compareDates(day, this.s.d) : false,\n\t\t\t\t\ttoday    = this._compareDates(day, now),\n\t\t\t\t\tempty    = i < before || i >= (days + before),\n\t\t\t\t\tdisabled = (minDate && day < minDate) ||\n\t\t\t\t\t           (maxDate && day > maxDate);\n\n\t\t\t\tvar disableDays = this.c.disableDays;\n\t\t\t\tif ( Array.isArray( disableDays ) && $.inArray( day.getUTCDay(), disableDays ) !== -1 ) {\n\t\t\t\t\tdisabled = true;\n\t\t\t\t}\n\t\t\t\telse if ( typeof disableDays === 'function' && disableDays( day ) === true ) {\n\t\t\t\t\tdisabled = true;\n\t\t\t\t}\n\n\t\t\t\tvar dayConfig = {\n\t\t\t\t\tday:      1 + (i - before),\n\t\t\t\t\tmonth:    month,\n\t\t\t\t\tyear:     year,\n\t\t\t\t\tselected: selected,\n\t\t\t\t\ttoday:    today,\n\t\t\t\t\tdisabled: disabled,\n\t\t\t\t\tempty:    empty\n\t\t\t\t};\n\n\t\t\t\trow.push( this._htmlDay(dayConfig) );\n\n\t\t\t\tif ( ++r === 7 ) {\n\t\t\t\t\tif ( this.c.showWeekNumber ) {\n\t\t\t\t\t\trow.unshift( this._htmlWeekOfYear(i - before, month, year) );\n\t\t\t\t\t}\n\n\t\t\t\t\tdata.push( '<tr>'+row.join('')+'</tr>' );\n\t\t\t\t\trow = [];\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar classPrefix = this.c.classPrefix;\n\t\t\tvar className = classPrefix+'-table';\n\t\t\tif ( this.c.showWeekNumber ) {\n\t\t\t\tclassName += ' weekNumber';\n\t\t\t}\n\n\t\t\t// Show / hide month icons based on min/max\n\t\t\tif ( minDate ) {\n\t\t\t\tvar underMin = minDate >= new Date( Date.UTC(year, month, 1, 0, 0, 0 ) );\n\n\t\t\t\tthis.dom.title.find('div.'+classPrefix+'-iconLeft')\n\t\t\t\t\t.css( 'display', underMin ? 'none' : 'block' );\n\t\t\t}\n\n\t\t\tif ( maxDate ) {\n\t\t\t\tvar overMax = maxDate < new Date( Date.UTC(year, month+1, 1, 0, 0, 0 ) );\n\n\t\t\t\tthis.dom.title.find('div.'+classPrefix+'-iconRight')\n\t\t\t\t\t.css( 'display', overMax ? 'none' : 'block' );\n\t\t\t}\n\n\t\t\treturn '<table class=\"'+className+'\">' +\n\t\t\t\t\t'<thead>'+\n\t\t\t\t\t\tthis._htmlMonthHead() +\n\t\t\t\t\t'</thead>'+\n\t\t\t\t\t'<tbody>'+\n\t\t\t\t\t\tdata.join('') +\n\t\t\t\t\t'</tbody>'+\n\t\t\t\t'</table>';\n\t\t},\n\n\t\t/**\n\t\t * Create the calendar table's header (week days)\n\t\t *\n\t\t * @return {string} HTML cells for the row\n\t\t * @private\n\t\t */\n\t\t_htmlMonthHead: function () {\n\t\t\tvar a = [];\n\t\t\tvar firstDay = this.c.firstDay;\n\t\t\tvar i18n = this.c.i18n;\n\n\t\t\t// Take account of the first day shift\n\t\t\tvar dayName = function ( day ) {\n\t\t\t\tday += firstDay;\n\n\t\t\t\twhile (day >= 7) {\n\t\t\t\t\tday -= 7;\n\t\t\t\t}\n\n\t\t\t\treturn i18n.weekdays[day];\n\t\t\t};\n\t\t\t\n\t\t\t// Empty cell in the header\n\t\t\tif ( this.c.showWeekNumber ) {\n\t\t\t\ta.push( '<th></th>' );\n\t\t\t}\n\n\t\t\tfor ( var i=0 ; i<7 ; i++ ) {\n\t\t\t\ta.push( '<th>'+dayName( i )+'</th>' );\n\t\t\t}\n\n\t\t\treturn a.join('');\n\t\t},\n\n\t\t/**\n\t\t * Create a cell that contains week of the year - ISO8601\n\t\t *\n\t\t * Based on https://stackoverflow.com/questions/6117814/ and\n\t\t * http://techblog.procurios.nl/k/n618/news/view/33796/14863/\n\t\t *\n\t\t * @param  {integer} d Day of month\n\t\t * @param  {integer} m Month of year (zero index)\n\t\t * @param  {integer} y Year\n\t\t * @return {string}   \n\t\t * @private\n\t\t */\n\t\t_htmlWeekOfYear: function ( d, m, y ) {\n\t\t\tvar date = new Date( y, m, d, 0, 0, 0, 0 );\n\n\t\t\t// First week of the year always has 4th January in it\n\t\t\tdate.setDate( date.getDate() + 4 - (date.getDay() || 7) );\n\n\t\t\tvar oneJan = new Date( y, 0, 1 );\n\t\t\tvar weekNum = Math.ceil( ( ( (date - oneJan) / 86400000) + 1)/7 );\n\n\t\t\treturn '<td class=\"'+this.c.classPrefix+'-week\">' + weekNum + '</td>';\n\t\t},\n\n\t\t/**\n\t\t * Create option elements from a range in an array\n\t\t *\n\t\t * @param  {string} selector Class name unique to the select element to use\n\t\t * @param  {array} values   Array of values\n\t\t * @param  {array} [labels] Array of labels. If given must be the same\n\t\t *   length as the values parameter.\n\t\t * @private\n\t\t */\n\t\t_options: function ( selector, values, labels ) {\n\t\t\tif ( ! labels ) {\n\t\t\t\tlabels = values;\n\t\t\t}\n\n\t\t\tvar select = this.dom.container.find('select.'+this.c.classPrefix+'-'+selector);\n\t\t\tselect.empty();\n\n\t\t\tfor ( var i=0, ien=values.length ; i<ien ; i++ ) {\n\t\t\t\tselect.append( '<option value=\"'+values[i]+'\">'+labels[i]+'</option>' );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Set an option and update the option's span pair (since the select element\n\t\t * has opacity 0 for styling)\n\t\t *\n\t\t * @param  {string} selector Class name unique to the select element to use\n\t\t * @param  {*}      val      Value to set\n\t\t * @private\n\t\t */\n\t\t_optionSet: function ( selector, val ) {\n\t\t\tvar select = this.dom.container.find('select.'+this.c.classPrefix+'-'+selector);\n\t\t\tvar span = select.parent().children('span');\n\n\t\t\tselect.val( val );\n\n\t\t\tvar selected = select.find('option:selected');\n\t\t\tspan.html( selected.length !== 0 ?\n\t\t\t\tselected.text() :\n\t\t\t\tthis.c.i18n.unknown\n\t\t\t);\n\t\t},\n\n\t\t/**\n\t\t * Create time options list.\n\t\t *\n\t\t * @param  {string} unit Time unit - hours, minutes or seconds\n\t\t * @param  {integer} count Count range - 12, 24 or 60\n\t\t * @param  {integer} val Existing value for this unit\n\t\t * @param  {integer[]} allowed Values allow for selection\n\t\t * @param  {integer} range Override range\n\t\t * @private\n\t\t */\n\t\t_optionsTime: function ( unit, count, val, allowed, range ) {\n\t\t\tvar classPrefix = this.c.classPrefix;\n\t\t\tvar container = this.dom.container.find('div.'+classPrefix+'-'+unit);\n\t\t\tvar i, j;\n\t\t\tvar render = count === 12 ?\n\t\t\t\tfunction (i) { return i; } :\n\t\t\t\tthis._pad;\n\t\t\tvar classPrefix = this.c.classPrefix;\n\t\t\tvar className = classPrefix+'-table';\n\t\t\tvar i18n = this.c.i18n;\n\n\t\t\tif ( ! container.length ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar a = '';\n\t\t\tvar span = 10;\n\t\t\tvar button = function (value, label, className) {\n\t\t\t\t// Shift the value for PM\n\t\t\t\tif ( count === 12 && typeof value === 'number' ) {\n\t\t\t\t\tif (val >= 12 ) {\n\t\t\t\t\t\tvalue += 12;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (value == 12) {\n\t\t\t\t\t\tvalue = 0;\n\t\t\t\t\t}\n\t\t\t\t\telse if (value == 24) {\n\t\t\t\t\t\tvalue = 12;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar selected = val === value || (value === 'am' && val < 12) || (value === 'pm' && val >= 12) ?\n\t\t\t\t\t'selected' :\n\t\t\t\t\t'';\n\t\t\t\t\n\t\t\t\tif (allowed && $.inArray(value, allowed) === -1) {\n\t\t\t\t\tselected += ' disabled';\n\t\t\t\t}\n\n\t\t\t\tif ( className ) {\n\t\t\t\t\tselected += ' '+className;\n\t\t\t\t}\n\n\t\t\t\treturn '<td class=\"selectable '+selected+'\">' +\n\t\t\t\t\t'<button class=\"'+classPrefix+'-button '+classPrefix+'-day\" type=\"button\" data-unit=\"'+unit+'\" data-value=\"'+value+ '\">' +\n\t\t\t\t\t\t'<span>'+label+'</span>'+\n\t\t\t\t\t'</button>' +\n\t\t\t\t'</td>';\n\t\t\t};\n\n\t\t\tif ( count === 12 ) {\n\t\t\t\t// Hours with AM/PM\n\t\t\t\ta += '<tr>';\n\t\t\t\t\n\t\t\t\tfor ( i=1 ; i<=6 ; i++ ) {\n\t\t\t\t\ta += button(i, render(i));\n\t\t\t\t}\n\t\t\t\ta += button('am', i18n.amPm[0]);\n\n\t\t\t\ta += '</tr>';\n\t\t\t\ta += '<tr>';\n\n\t\t\t\tfor ( i=7 ; i<=12 ; i++ ) {\n\t\t\t\t\ta += button(i, render(i));\n\t\t\t\t}\n\t\t\t\ta += button('pm', i18n.amPm[1]);\n\t\t\t\ta += '</tr>';\n\n\t\t\t\tspan = 7;\n\t\t\t}\n\t\t\telse if ( count === 24 ) {\n\t\t\t\t// Hours - 24\n\t\t\t\tvar c = 0;\n\t\t\t\tfor (j=0 ; j<4 ; j++ ) {\n\t\t\t\t\ta += '<tr>';\n\t\t\t\t\tfor ( i=0 ; i<6 ; i++ ) {\n\t\t\t\t\t\ta += button(c, render(c));\n\t\t\t\t\t\tc++;\n\t\t\t\t\t}\n\t\t\t\t\ta += '</tr>';\n\t\t\t\t}\n\n\t\t\t\tspan = 6;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Minutes and seconds\n\t\t\t\ta += '<tr>';\n\t\t\t\tfor (j=0 ; j<60 ; j+=10 ) {\n\t\t\t\t\ta += button(j, render(j), 'range');\n\t\t\t\t}\n\t\t\t\ta += '</tr>';\n\t\t\t\t\n\t\t\t\t// Slight hack to allow for the different number of columns\n\t\t\t\ta += '</tbody></thead><table class=\"'+className+' '+className+'-nospace\"><tbody>';\n\n\t\t\t\tvar start = range !== null ?\n\t\t\t\t\trange :\n\t\t\t\t\tMath.floor( val / 10 )*10;\n\n\t\t\t\ta += '<tr>';\n\t\t\t\tfor (j=start+1 ; j<start+10 ; j++ ) {\n\t\t\t\t\ta += button(j, render(j));\n\t\t\t\t}\n\t\t\t\ta += '</tr>';\n\n\t\t\t\tspan = 6;\n\t\t\t}\n\n\t\t\tcontainer\n\t\t\t\t.empty()\n\t\t\t\t.append(\n\t\t\t\t\t'<table class=\"'+className+'\">'+\n\t\t\t\t\t\t'<thead><tr><th colspan=\"'+span+'\">'+\n\t\t\t\t\t\t\ti18n[unit] +\n\t\t\t\t\t\t'</th></tr></thead>'+\n\t\t\t\t\t\t'<tbody>'+\n\t\t\t\t\t\t\ta+\n\t\t\t\t\t\t'</tbody>'+\n\t\t\t\t\t'</table>'\n\t\t\t\t);\n\t\t},\n\n\t\t/**\n\t\t * Create the options for the month and year\n\t\t *\n\t\t * @param  {integer} year  Year\n\t\t * @param  {integer} month Month (starting at 0)\n\t\t * @private\n\t\t */\n\t\t_optionsTitle: function () {\n\t\t\tvar i18n = this.c.i18n;\n\t\t\tvar min = this.c.minDate;\n\t\t\tvar max = this.c.maxDate;\n\t\t\tvar minYear = min ? min.getFullYear() : null;\n\t\t\tvar maxYear = max ? max.getFullYear() : null;\n\n\t\t\tvar i = minYear !== null ? minYear : new Date().getFullYear() - this.c.yearRange;\n\t\t\tvar j = maxYear !== null ? maxYear : new Date().getFullYear() + this.c.yearRange;\n\n\t\t\tthis._options( 'month', this._range( 0, 11 ), i18n.months );\n\t\t\tthis._options( 'year', this._range( i, j ) );\n\t\t},\n\n\t\t/**\n\t\t * Simple two digit pad\n\t\t *\n\t\t * @param  {integer} i      Value that might need padding\n\t\t * @return {string|integer} Padded value\n\t\t * @private\n\t\t */\n\t\t_pad: function ( i ) {\n\t\t\treturn i<10 ? '0'+i : i;\n\t\t},\n\n\t\t/**\n\t\t * Position the calendar to look attached to the input element\n\t\t * @private\n\t\t */\n\t\t_position: function () {\n\t\t\tvar offset = this.c.attachTo === 'input' ? this.dom.input.position() : this.dom.input.offset();\n\t\t\tvar container = this.dom.container;\n\t\t\tvar inputHeight = this.dom.input.outerHeight();\n\n\t\t\tif (container.hasClass('inline')) {\n\t\t\t\tcontainer.insertAfter( this.dom.input );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( this.s.parts.date && this.s.parts.time && $(window).width() > 550 ) {\n\t\t\t\tcontainer.addClass('horizontal');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcontainer.removeClass('horizontal');\n\t\t\t}\n\n\t\t\tif(this.c.attachTo === 'input') {\n\t\t\t\tcontainer\n\t\t\t\t\t.css( {\n\t\t\t\t\t\ttop: offset.top + inputHeight,\n\t\t\t\t\t\tleft: offset.left\n\t\t\t\t\t} )\n\t\t\t\t\t.insertAfter( this.dom.input );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcontainer\n\t\t\t\t\t.css( {\n\t\t\t\t\t\ttop: offset.top + inputHeight,\n\t\t\t\t\t\tleft: offset.left\n\t\t\t\t\t} )\n\t\t\t\t\t.appendTo( 'body' );\n\t\t\t}\n\n\t\t\tvar calHeight = container.outerHeight();\n\t\t\tvar calWidth = container.outerWidth();\n\t\t\tvar scrollTop = $(window).scrollTop();\n\n\t\t\t// Correct to the bottom\n\t\t\tif ( offset.top + inputHeight + calHeight - scrollTop > $(window).height() ) {\n\t\t\t\tvar newTop = offset.top - calHeight;\n\n\t\t\t\tcontainer.css( 'top', newTop < 0 ? 0 : newTop );\n\t\t\t}\n\n\t\t\t// Correct to the right\n\t\t\tif ( calWidth + offset.left > $(window).width() ) {\n\t\t\t\tvar newLeft = $(window).width() - calWidth;\n\n\t\t\t\t// Account for elements which are inside a position absolute element\n\t\t\t\tif (this.c.attachTo === 'input') {\n\t\t\t\t\tnewLeft -= $(container).offsetParent().offset().left;\n\t\t\t\t}\n\n\t\t\t\tcontainer.css( 'left', newLeft < 0 ? 0 : newLeft );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Create a simple array with a range of values\n\t\t *\n\t\t * @param  {integer} start   Start value (inclusive)\n\t\t * @param  {integer} end     End value (inclusive)\n\t\t * @param  {integer} [inc=1] Increment value\n\t\t * @return {array}           Created array\n\t\t * @private\n\t\t */\n\t\t_range: function ( start, end, inc ) {\n\t\t\tvar a = [];\n\n\t\t\tif ( ! inc ) {\n\t\t\t\tinc = 1;\n\t\t\t}\n\n\t\t\tfor ( var i=start ; i<=end ; i+=inc ) {\n\t\t\t\ta.push( i );\n\t\t\t}\n\n\t\t\treturn a;\n\t\t},\n\n\t\t/**\n\t\t * Redraw the calendar based on the display date - this is a destructive\n\t\t * operation\n\t\t *\n\t\t * @private\n\t\t */\n\t\t_setCalander: function () {\n\t\t\tif ( this.s.display ) {\n\t\t\t\tthis.dom.calendar\n\t\t\t\t\t.empty()\n\t\t\t\t\t.append( this._htmlMonth(\n\t\t\t\t\t\tthis.s.display.getUTCFullYear(),\n\t\t\t\t\t\tthis.s.display.getUTCMonth()\n\t\t\t\t\t) );\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Set the month and year for the calendar based on the current display date\n\t\t *\n\t\t * @private\n\t\t */\n\t\t_setTitle: function () {\n\t\t\tthis._optionSet( 'month', this.s.display.getUTCMonth() );\n\t\t\tthis._optionSet( 'year', this.s.display.getUTCFullYear() );\n\t\t},\n\n\t\t/**\n\t\t * Set the time based on the current value of the widget\n\t\t *\n\t\t * @private\n\t\t */\n\t\t_setTime: function () {\n\t\t\tvar that = this;\n\t\t\tvar d = this.s.d;\n\t\t\tvar hours = d ? d.getUTCHours() : 0;\n\t\t\tvar allowed = function ( prop ) { // Backwards compt with `Increment` option\n\t\t\t\treturn that.c[prop+'Available'] ?\n\t\t\t\t\tthat.c[prop+'Available'] :\n\t\t\t\t\tthat._range( 0, 59, that.c[prop+'Increment'] );\n\t\t\t};\n\n\t\t\tthis._optionsTime( 'hours', this.s.parts.hours12 ? 12 : 24, hours, this.c.hoursAvailable );\n\t\t\tthis._optionsTime( 'minutes', 60, d ? d.getUTCMinutes() : 0, allowed('minutes'), this.s.minutesRange );\n\t\t\tthis._optionsTime( 'seconds', 60, d ? d.getSeconds() : 0, allowed('seconds'), this.s.secondsRange );\n\t\t},\n\n\t\t/**\n\t\t * Show the widget and add events to the document required only while it\n\t\t * is displayed\n\t\t * \n\t\t * @private\n\t\t */\n\t\t_show: function () {\n\t\t\tvar that = this;\n\t\t\tvar namespace = this.s.namespace;\n\n\t\t\tthis._position();\n\n\t\t\t// Need to reposition on scroll\n\t\t\t$(window).on( 'scroll.'+namespace+' resize.'+namespace, function () {\n\t\t\t\tthat._hide();\n\t\t\t} );\n\n\t\t\t$('div.DTE_Body_Content').on( 'scroll.'+namespace, function () {\n\t\t\t\tthat._hide();\n\t\t\t} );\n\n\t\t\t$('div.dataTables_scrollBody').on( 'scroll.'+namespace, function () {\n\t\t\t\tthat._hide();\n\t\t\t} );\n\n\t\t\tvar offsetParent = this.dom.input[0].offsetParent;\n\n\t\t\tif ( offsetParent !== document.body ) {\n\t\t\t\t$(offsetParent).on( 'scroll.'+namespace, function () {\n\t\t\t\t\tthat._hide();\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\t// On tab focus will move to a different field (no keyboard navigation\n\t\t\t// in the date picker - this might need to be changed).\n\t\t\t$(document).on( 'keydown.'+namespace, function (e) {\n\t\t\t\tif (\n\t\t\t\t\te.keyCode === 9  || // tab\n\t\t\t\t\te.keyCode === 27 || // esc\n\t\t\t\t\te.keyCode === 13    // return\n\t\t\t\t) {\n\t\t\t\t\tthat._hide();\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// Hide if clicking outside of the widget - but in a different click\n\t\t\t// event from the one that was used to trigger the show (bubble and\n\t\t\t// inline)\n\t\t\tsetTimeout( function () {\n\t\t\t\t$('body').on( 'click.'+namespace, function (e) {\n\t\t\t\t\tvar parents = $(e.target).parents();\n\n\t\t\t\t\tif ( ! parents.filter( that.dom.container ).length && e.target !== that.dom.input[0] ) {\n\t\t\t\t\t\tthat._hide();\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}, 10 );\n\t\t},\n\n\t\t/**\n\t\t * Write the formatted string to the input element this control is attached\n\t\t * to\n\t\t *\n\t\t * @private\n\t\t */\n\t\t_writeOutput: function ( focus ) {\n\t\t\tvar date = this.s.d;\n\n\t\t\t// Use moment or dayjs if possible - otherwise it must be ISO8601 (or the\n\t\t\t// constructor would have thrown an error)\n\t\t\tvar out = dateLib ?\n\t\t\t\tdateLib.utc( date, undefined$1, this.c.locale, this.c.strict ).format( this.c.format ) :\n\t\t\t\tdate.getUTCFullYear() +'-'+\n\t\t\t\t\tthis._pad(date.getUTCMonth() + 1) +'-'+\n\t\t\t\t\tthis._pad(date.getUTCDate());\n\n\t\t\t\tthis.dom.input\n\t\t\t\t\t.val( out )\n\t\t\t\t\t.trigger('change', {write: date});\n\t\t\t\n\t\t\tif ( this.dom.input.attr('type') === 'hidden' ) {\n\t\t\t\tthis.val(out, false);\n\t\t\t}\n\n\t\t\tif ( focus ) {\n\t\t\t\tthis.dom.input.focus();\n\t\t\t}\n\t\t}\n\t} );\n\n\t/**\n\t * Use a specificmoment compatible date library\n\t */\n\tDateTime.use = function (lib) {\n\t\tdateLib = lib;\n\t};\n\n\t/**\n\t * For generating unique namespaces\n\t *\n\t * @type {Number}\n\t * @private\n\t */\n\tDateTime._instance = 0;\n\n\t/**\n\t * Defaults for the date time picker\n\t *\n\t * @type {Object}\n\t */\n\tDateTime.defaults = {\n\t\tattachTo: 'body',\n\n\t\t// Not documented - could be an internal property\n\t\tclassPrefix: 'dt-datetime',\n\n\t\t// function or array of ints\n\t\tdisableDays: null,\n\n\t\t// first day of the week (0: Sunday, 1: Monday, etc)\n\t\tfirstDay: 1,\n\n\t\tformat: 'YYYY-MM-DD',\n\n\t\thoursAvailable: null,\n\n\t\ti18n: {\n\t\t\tprevious: 'Previous',\n\t\t\tnext:     'Next',\n\t\t\tmonths:   [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ],\n\t\t\tweekdays: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ],\n\t\t\tamPm:     [ 'am', 'pm' ],\n\t\t\thours:    'Hour',\n\t\t\tminutes:  'Minute',\n\t\t\tseconds:  'Second',\n\t\t\tunknown:  '-'\n\t\t},\n\n\t\tmaxDate: null,\n\n\t\tminDate: null,\n\n\t\tminutesAvailable: null,\n\n\t\tminutesIncrement: 1, // deprecated\n\n\t\tstrict: true,\n\n\t\tlocale: 'en',\n\n\t\tonChange: function () {},\n\n\t\tsecondsAvailable: null,\n\n\t\tsecondsIncrement: 1, // deprecated\n\n\t\t// show the ISO week number at the head of the row\n\t\tshowWeekNumber: false,\n\n\t\t// overruled by max / min date\n\t\tyearRange: 25\n\t};\n\n\tDateTime.version = '1.0.1';\n\n\t// Global export - if no conflicts\n\tif (! window.DateTime) {\n\t\twindow.DateTime = DateTime;\n\t}\n\n\t// Make available via jQuery\n\t$.fn.dtDateTime = function (options) {\n\t\treturn this.each(function() {\n\t\t\tnew DateTime(this, options);\n\t\t});\n\t};\n\n\t// Attach to DataTables if present\n\tif ($.fn.dataTable) {\n\t\t$.fn.dataTable.DateTime = DateTime;\n\t\t$.fn.DataTable.DateTime = DateTime;\n\t}\n\n\treturn DateTime;\n\n\t}));\n\n\tvar $;\n\tvar DataTable;\n\tvar moment = window.moment;\n\tvar luxon = window.luxon;\n\t/**\n\t * Sets the value of jQuery for use in the file\n\t * @param jq the instance of jQuery to be set\n\t */\n\tfunction setJQuery(jq) {\n\t    $ = jq;\n\t    DataTable = jq.fn.dataTable;\n\t}\n\t/**\n\t * The Criteria class is used within SearchBuilder to represent a search criteria\n\t */\n\tvar Criteria = /** @class */ (function () {\n\t    function Criteria(table, opts, topGroup, index, depth) {\n\t        var _this = this;\n\t        if (index === void 0) { index = 0; }\n\t        if (depth === void 0) { depth = 1; }\n\t        // Check that the required version of DataTables is included\n\t        if (!DataTable || !DataTable.versionCheck || !DataTable.versionCheck('1.10.0')) {\n\t            throw new Error('SearchPane requires DataTables 1.10 or newer');\n\t        }\n\t        // Check that Select is included\n\t        if (!DataTable.DateTime) {\n\t            throw new Error('SearchPane requires DateTime');\n\t        }\n\t        this.classes = $.extend(true, {}, Criteria.classes);\n\t        // Get options from user and any extra conditions/column types defined by plug-ins\n\t        this.c = $.extend(true, {}, Criteria.defaults, $.fn.dataTable.ext.searchBuilder, opts);\n\t        var i18n = this.c.i18n;\n\t        this.s = {\n\t            condition: undefined,\n\t            conditions: {},\n\t            data: undefined,\n\t            dataIdx: -1,\n\t            dataPoints: [],\n\t            depth: depth,\n\t            dt: table,\n\t            filled: false,\n\t            index: index,\n\t            dateFormat: false,\n\t            topGroup: topGroup,\n\t            type: '',\n\t            value: []\n\t        };\n\t        this.dom = {\n\t            buttons: $('<div/>')\n\t                .addClass(this.classes.buttonContainer),\n\t            condition: $('<select disabled/>')\n\t                .addClass(this.classes.condition)\n\t                .addClass(this.classes.dropDown)\n\t                .addClass(this.classes.italic)\n\t                .attr('autocomplete', 'hacking'),\n\t            conditionTitle: $('<option value=\"\" disabled selected hidden/>')\n\t                .text(this.s.dt.i18n('searchBuilder.condition', i18n.condition)),\n\t            container: $('<div/>')\n\t                .addClass(this.classes.container),\n\t            data: $('<select/>')\n\t                .addClass(this.classes.data)\n\t                .addClass(this.classes.dropDown)\n\t                .addClass(this.classes.italic),\n\t            dataTitle: $('<option value=\"\" disabled selected hidden/>')\n\t                .text(this.s.dt.i18n('searchBuilder.data', i18n.data)),\n\t            defaultValue: $('<select disabled/>')\n\t                .addClass(this.classes.value)\n\t                .addClass(this.classes.dropDown)\n\t                .addClass(this.classes.select),\n\t            \"delete\": $('<button>&times</button>')\n\t                .addClass(this.classes[\"delete\"])\n\t                .addClass(this.classes.button)\n\t                .attr('title', this.s.dt.i18n('searchBuilder.deleteTitle', i18n.deleteTitle))\n\t                .attr('type', 'button'),\n\t            left: $('<button>\\<</button>')\n\t                .addClass(this.classes.left)\n\t                .addClass(this.classes.button)\n\t                .attr('title', this.s.dt.i18n('searchBuilder.leftTitle', i18n.leftTitle))\n\t                .attr('type', 'button'),\n\t            right: $('<button>\\></button>')\n\t                .addClass(this.classes.right)\n\t                .addClass(this.classes.button)\n\t                .attr('title', this.s.dt.i18n('searchBuilder.rightTitle', i18n.rightTitle))\n\t                .attr('type', 'button'),\n\t            value: [\n\t                $('<select disabled/>')\n\t                    .addClass(this.classes.value)\n\t                    .addClass(this.classes.dropDown)\n\t                    .addClass(this.classes.italic)\n\t                    .addClass(this.classes.select)\n\t            ],\n\t            valueTitle: $('<option value=\"--valueTitle--\" selected/>').text(this.s.dt.i18n('searchBuilder.value', i18n.value))\n\t        };\n\t        // If the greyscale option is selected then add the class to add the grey colour to SearchBuilder\n\t        if (this.c.greyscale) {\n\t            $(this.dom.data).addClass(this.classes.greyscale);\n\t            $(this.dom.condition).addClass(this.classes.greyscale);\n\t            $(this.dom.defaultValue).addClass(this.classes.greyscale);\n\t            for (var _i = 0, _a = this.dom.value; _i < _a.length; _i++) {\n\t                var val = _a[_i];\n\t                $(val).addClass(this.classes.greyscale);\n\t            }\n\t        }\n\t        // For responsive design, adjust the criterias properties on the following events\n\t        this.s.dt.on('draw.dtsp', function () {\n\t            _this._adjustCriteria();\n\t        });\n\t        this.s.dt.on('buttons-action', function () {\n\t            _this._adjustCriteria();\n\t        });\n\t        $(window).on('resize.dtsp', DataTable.util.throttle(function () {\n\t            _this._adjustCriteria();\n\t        }));\n\t        this._buildCriteria();\n\t        return this;\n\t    }\n\t    /**\n\t     * Adds the left button to the criteria\n\t     */\n\t    Criteria.prototype.updateArrows = function (hasSiblings, redraw) {\n\t        if (hasSiblings === void 0) { hasSiblings = false; }\n\t        if (redraw === void 0) { redraw = true; }\n\t        // Empty the container and append all of the elements in the correct order\n\t        $(this.dom.container)\n\t            .empty()\n\t            .append(this.dom.data)\n\t            .append(this.dom.condition)\n\t            .append(this.dom.value[0]);\n\t        this.setListeners();\n\t        // Trigger the inserted events for the value elements as they are inserted\n\t        $(this.dom.value[0]).trigger('dtsb-inserted');\n\t        for (var i = 1; i < this.dom.value.length; i++) {\n\t            $(this.dom.container).append(this.dom.value[i]);\n\t            $(this.dom.value[i]).trigger('dtsb-inserted');\n\t        }\n\t        // If this is a top level criteria then don't let it move left\n\t        if (this.s.depth > 1) {\n\t            $(this.dom.buttons).append(this.dom.left);\n\t        }\n\t        // If the depthLimit of the query has been hit then don't add the right button\n\t        if ((this.c.depthLimit === false || this.s.depth < this.c.depthLimit) && hasSiblings) {\n\t            $(this.dom.buttons).append(this.dom.right);\n\t        }\n\t        else {\n\t            $(this.dom.right).remove();\n\t        }\n\t        $(this.dom.buttons).append(this.dom[\"delete\"]);\n\t        $(this.dom.container).append(this.dom.buttons);\n\t        if (redraw) {\n\t            // A different combination of arrows and selectors may lead to a need for responsive to be triggered\n\t            this._adjustCriteria();\n\t        }\n\t    };\n\t    /**\n\t     * Destroys the criteria, removing listeners and container from the dom\n\t     */\n\t    Criteria.prototype.destroy = function () {\n\t        // Turn off listeners\n\t        $(this.dom.data).off('.dtsb');\n\t        $(this.dom.condition).off('.dtsb');\n\t        $(this.dom[\"delete\"]).off('.dtsb');\n\t        for (var _i = 0, _a = this.dom.value; _i < _a.length; _i++) {\n\t            var val = _a[_i];\n\t            $(val).off('.dtsb');\n\t        }\n\t        // Remove container from the dom\n\t        $(this.dom.container).remove();\n\t    };\n\t    /**\n\t     * Passes in the data for the row and compares it against this single criteria\n\t     * @param rowData The data for the row to be compared\n\t     * @returns boolean Whether the criteria has passed\n\t     */\n\t    Criteria.prototype.search = function (rowData, rowIdx) {\n\t        var condition = this.s.conditions[this.s.condition];\n\t        if (this.s.condition !== undefined && condition !== undefined) {\n\t            var filter = rowData[this.s.dataIdx];\n\t            // This check is in place for if a custom decimal character is in place\n\t            if (this.s.type.indexOf('num') !== -1 &&\n\t                (this.s.dt.settings()[0].oLanguage.sDecimal !== '' || this.s.dt.settings()[0].oLanguage.sThousands !== '')) {\n\t                var splitRD = [rowData[this.s.dataIdx]];\n\t                if (this.s.dt.settings()[0].oLanguage.sDecimal !== '') {\n\t                    splitRD = rowData[this.s.dataIdx].split(this.s.dt.settings()[0].oLanguage.sDecimal);\n\t                }\n\t                if (this.s.dt.settings()[0].oLanguage.sThousands !== '') {\n\t                    for (var i = 0; i < splitRD.length; i++) {\n\t                        splitRD[i] = splitRD[i].replace(this.s.dt.settings()[0].oLanguage.sThousands, ',');\n\t                    }\n\t                }\n\t                filter = splitRD.join('.');\n\t            }\n\t            // If orthogonal data is in place we need to get it's values for searching\n\t            if (this.c.orthogonal.search !== 'filter') {\n\t                var settings = this.s.dt.settings()[0];\n\t                filter = settings.oApi._fnGetCellData(settings, rowIdx, this.s.dataIdx, typeof this.c.orthogonal === 'string' ?\n\t                    this.c.orthogonal :\n\t                    this.c.orthogonal.search);\n\t            }\n\t            if (this.s.type === 'array') {\n\t                // Make sure we are working with an array\n\t                if (!Array.isArray(filter)) {\n\t                    filter = [filter];\n\t                }\n\t                filter.sort();\n\t                if (filter !== null) {\n\t                    for (var _i = 0, filter_1 = filter; _i < filter_1.length; _i++) {\n\t                        var filt = filter_1[_i];\n\t                        filt = filt.replace(/[\\r\\n\\u2028]/g, ' ');\n\t                    }\n\t                }\n\t            }\n\t            else if (filter !== null) {\n\t                filter = filter.replace(/[\\r\\n\\u2028]/g, ' ');\n\t            }\n\t            if (this.s.type.indexOf('html') !== -1) {\n\t                filter = filter.replace(/(<([^>]+)>)/ig, '');\n\t            }\n\t            // Not ideal, but jqueries .val() returns an empty string even\n\t            // when the value set is null, so we shall assume the two are equal\n\t            if (filter === null) {\n\t                filter = '';\n\t            }\n\t            return condition.search(filter, this.s.value, this);\n\t        }\n\t    };\n\t    /**\n\t     * Gets the details required to rebuild the criteria\n\t     */\n\t    Criteria.prototype.getDetails = function () {\n\t        var value = this.s.value;\n\t        // This check is in place for if a custom decimal character is in place\n\t        if (this.s.type.indexOf('num') !== -1 &&\n\t            (this.s.dt.settings()[0].oLanguage.sDecimal !== '' || this.s.dt.settings()[0].oLanguage.sThousands !== '')) {\n\t            for (var i = 0; i < this.s.value.length; i++) {\n\t                var splitRD = [this.s.value[i].toString()];\n\t                if (this.s.dt.settings()[0].oLanguage.sDecimal !== '') {\n\t                    splitRD = this.s.value[i].split(this.s.dt.settings()[0].oLanguage.sDecimal);\n\t                }\n\t                if (this.s.dt.settings()[0].oLanguage.sThousands !== '') {\n\t                    for (var j = 0; j < splitRD.length; j++) {\n\t                        splitRD[j] = splitRD[j].replace(this.s.dt.settings()[0].oLanguage.sThousands, ',');\n\t                    }\n\t                }\n\t                this.s.value[i] = splitRD.join('.');\n\t            }\n\t        }\n\t        return {\n\t            condition: this.s.condition,\n\t            data: this.s.data,\n\t            value: value\n\t        };\n\t    };\n\t    /**\n\t     * Getter for the node for the container of the criteria\n\t     * @returns JQuery<HTMLElement> the node for the container\n\t     */\n\t    Criteria.prototype.getNode = function () {\n\t        return this.dom.container;\n\t    };\n\t    /**\n\t     * Populates the criteria data, condition and value(s) as far as has been selected\n\t     */\n\t    Criteria.prototype.populate = function () {\n\t        this._populateData();\n\t        // If the column index has been found attempt to select a condition\n\t        if (this.s.dataIdx !== -1) {\n\t            this._populateCondition();\n\t            // If the condittion has been found attempt to select the values\n\t            if (this.s.condition !== undefined) {\n\t                this._populateValue();\n\t            }\n\t        }\n\t    };\n\t    /**\n\t     * Rebuilds the criteria based upon the details passed in\n\t     * @param loadedCriteria the details required to rebuild the criteria\n\t     */\n\t    Criteria.prototype.rebuild = function (loadedCriteria) {\n\t        // Check to see if the previously selected data exists, if so select it\n\t        var foundData = false;\n\t        var dataIdx;\n\t        this._populateData();\n\t        // If a data selection has previously been made attempt to find and select it\n\t        if (loadedCriteria.data !== undefined) {\n\t            var italic_1 = this.classes.italic;\n\t            var data_1 = this.dom.data;\n\t            $(this.dom.data).children('option').each(function () {\n\t                if ($(this).text() === loadedCriteria.data) {\n\t                    $(this).attr('selected', true);\n\t                    $(data_1).removeClass(italic_1);\n\t                    foundData = true;\n\t                    dataIdx = $(this).val();\n\t                }\n\t            });\n\t        }\n\t        // If the data has been found and selected then the condition can be populated and searched\n\t        if (foundData) {\n\t            this.s.data = loadedCriteria.data;\n\t            this.s.dataIdx = dataIdx;\n\t            this.c.orthogonal = this._getOptions().orthogonal;\n\t            $(this.dom.dataTitle).remove();\n\t            this._populateCondition();\n\t            $(this.dom.conditionTitle).remove();\n\t            var condition_1;\n\t            // Check to see if the previously selected condition exists, if so select it\n\t            $(this.dom.condition).children('option').each(function () {\n\t                if ((loadedCriteria.condition !== undefined &&\n\t                    $(this).val() === loadedCriteria.condition &&\n\t                    typeof loadedCriteria.condition === 'string')) {\n\t                    $(this).attr('selected', true);\n\t                    condition_1 = $(this).val();\n\t                }\n\t            });\n\t            this.s.condition = condition_1;\n\t            // If the condition has been found and selected then the value can be populated and searched\n\t            if (this.s.condition !== undefined) {\n\t                $(this.dom.conditionTitle).remove();\n\t                $(this.dom.condition).removeClass(this.classes.italic);\n\t                this._populateValue(loadedCriteria);\n\t            }\n\t            else {\n\t                $(this.dom.conditionTitle).prependTo(this.dom.condition).attr('selected', true);\n\t            }\n\t        }\n\t    };\n\t    /**\n\t     * Sets the listeners for the criteria\n\t     */\n\t    Criteria.prototype.setListeners = function () {\n\t        var _this = this;\n\t        $(this.dom.data)\n\t            .unbind('input change')\n\t            .on('input change', function () {\n\t            $(_this.dom.dataTitle).attr('selected', false);\n\t            $(_this.dom.data).removeClass(_this.classes.italic);\n\t            _this.s.dataIdx = $(_this.dom.data).children('option:selected').val();\n\t            _this.s.data = $(_this.dom.data).children('option:selected').text();\n\t            _this.c.orthogonal = _this._getOptions().orthogonal;\n\t            // When the data is changed, the values in condition and value may also change so need to renew them\n\t            _this._clearCondition();\n\t            _this._clearValue();\n\t            _this._populateCondition();\n\t            // If this criteria was previously active in the search then remove it from the search and trigger a new search\n\t            if (_this.s.filled) {\n\t                _this.s.filled = false;\n\t                _this.s.dt.draw();\n\t                _this.setListeners();\n\t            }\n\t            _this.s.dt.state.save();\n\t        });\n\t        $(this.dom.condition)\n\t            .unbind('input change')\n\t            .on('input change', function () {\n\t            $(_this.dom.conditionTitle).attr('selected', false);\n\t            $(_this.dom.condition).removeClass(_this.classes.italic);\n\t            var condDisp = $(_this.dom.condition).children('option:selected').val();\n\t            // Find the condition that has been selected and store it internally\n\t            for (var _i = 0, _a = Object.keys(_this.s.conditions); _i < _a.length; _i++) {\n\t                var cond = _a[_i];\n\t                if (cond === condDisp) {\n\t                    _this.s.condition = condDisp;\n\t                    break;\n\t                }\n\t            }\n\t            // When the condition is changed, the value selector may switch between a select element and an input element\n\t            _this._clearValue();\n\t            _this._populateValue();\n\t            for (var _b = 0, _c = _this.dom.value; _b < _c.length; _b++) {\n\t                var val = _c[_b];\n\t                // If this criteria was previously active in the search then remove it from the search and trigger a new search\n\t                if (_this.s.filled && $(_this.dom.container).has(val).length !== 0) {\n\t                    _this.s.filled = false;\n\t                    _this.s.dt.draw();\n\t                    _this.setListeners();\n\t                }\n\t            }\n\t            _this.s.dt.draw();\n\t        });\n\t    };\n\t    /**\n\t     * Adjusts the criteria to make SearchBuilder responsive\n\t     */\n\t    Criteria.prototype._adjustCriteria = function () {\n\t        // If this criteria is not present then don't bother adjusting it\n\t        if ($(document).has(this.dom.container).length === 0) {\n\t            return;\n\t        }\n\t        var valRight;\n\t        var valWidth;\n\t        var outmostval = this.dom.value[this.dom.value.length - 1];\n\t        // Calculate the width and right value of the outmost value element\n\t        if ($(this.dom.container).has(outmostval).length !== 0) {\n\t            valWidth = $(outmostval).outerWidth(true);\n\t            valRight = $(outmostval).offset().left + valWidth;\n\t        }\n\t        else {\n\t            return;\n\t        }\n\t        var leftOffset = $(this.dom.left).offset();\n\t        var rightOffset = $(this.dom.right).offset();\n\t        var clearOffset = $(this.dom[\"delete\"]).offset();\n\t        var hasLeft = $(this.dom.container).has(this.dom.left).length !== 0;\n\t        var hasRight = $(this.dom.container).has(this.dom.right).length !== 0;\n\t        var buttonsLeft = hasLeft ?\n\t            leftOffset.left :\n\t            hasRight ?\n\t                rightOffset.left :\n\t                clearOffset.left;\n\t        // Perform the responsive calculations and redraw where necessary\n\t        if ((buttonsLeft - valRight < 15 ||\n\t            (hasLeft && leftOffset.top !== clearOffset.top) ||\n\t            (hasRight && rightOffset.top !== clearOffset.top)) &&\n\t            !$(this.dom.container).parent().hasClass(this.classes.vertical)) {\n\t            $(this.dom.container).parent().addClass(this.classes.vertical);\n\t            $(this.s.topGroup).trigger('dtsb-redrawContents');\n\t        }\n\t        else if (buttonsLeft -\n\t            ($(this.dom.data).offset().left +\n\t                $(this.dom.data).outerWidth(true) +\n\t                $(this.dom.condition).outerWidth(true) +\n\t                valWidth) > 15\n\t            && $(this.dom.container).parent().hasClass(this.classes.vertical)) {\n\t            $(this.dom.container).parent().removeClass(this.classes.vertical);\n\t            $(this.s.topGroup).trigger('dtsb-redrawContents');\n\t        }\n\t    };\n\t    /**\n\t     * Builds the elements of the dom together\n\t     */\n\t    Criteria.prototype._buildCriteria = function () {\n\t        // Append Titles for select elements\n\t        $(this.dom.data).append(this.dom.dataTitle);\n\t        $(this.dom.condition).append(this.dom.conditionTitle);\n\t        // Add elements to container\n\t        $(this.dom.container)\n\t            .append(this.dom.data)\n\t            .append(this.dom.condition);\n\t        for (var _i = 0, _a = this.dom.value; _i < _a.length; _i++) {\n\t            var val = _a[_i];\n\t            $(val).append(this.dom.valueTitle);\n\t            $(this.dom.container).append(val);\n\t        }\n\t        // Add buttons to container\n\t        $(this.dom.container)\n\t            .append(this.dom[\"delete\"])\n\t            .append(this.dom.right);\n\t        this.setListeners();\n\t    };\n\t    /**\n\t     * Clears the condition select element\n\t     */\n\t    Criteria.prototype._clearCondition = function () {\n\t        $(this.dom.condition).empty();\n\t        $(this.dom.conditionTitle).attr('selected', true).attr('disabled', true);\n\t        $(this.dom.condition).prepend(this.dom.conditionTitle).prop('selectedIndex', 0);\n\t        this.s.conditions = {};\n\t        this.s.condition = undefined;\n\t    };\n\t    /**\n\t     * Clears the value elements\n\t     */\n\t    Criteria.prototype._clearValue = function () {\n\t        if (this.s.condition !== undefined) {\n\t            var _loop_1 = function (val) {\n\t                // Timeout is annoying but because of IOS\n\t                setTimeout(function () {\n\t                    $(val).remove();\n\t                }, 50);\n\t            };\n\t            // Remove all of the value elements\n\t            for (var _i = 0, _a = this.dom.value; _i < _a.length; _i++) {\n\t                var val = _a[_i];\n\t                _loop_1(val);\n\t            }\n\t            // Call the init function to get the value elements for this condition\n\t            this.dom.value = [].concat(this.s.conditions[this.s.condition].init(this, Criteria.updateListener));\n\t            $(this.dom.value[0]).insertAfter(this.dom.condition).trigger('dtsb-inserted');\n\t            // Insert all of the value elements\n\t            for (var i = 1; i < this.dom.value.length; i++) {\n\t                $(this.dom.value[i]).insertAfter(this.dom.value[i - 1]).trigger('dtsb-inserted');\n\t            }\n\t        }\n\t        else {\n\t            var _loop_2 = function (val) {\n\t                // Timeout is annoying but because of IOS\n\t                setTimeout(function () {\n\t                    $(val).remove();\n\t                }, 50);\n\t            };\n\t            // Remove all of the value elements\n\t            for (var _b = 0, _c = this.dom.value; _b < _c.length; _b++) {\n\t                var val = _c[_b];\n\t                _loop_2(val);\n\t            }\n\t            // Append the default valueTitle to the default select element\n\t            $(this.dom.valueTitle)\n\t                .attr('selected', true);\n\t            $(this.dom.defaultValue)\n\t                .append(this.dom.valueTitle)\n\t                .insertAfter(this.dom.condition);\n\t        }\n\t        this.s.value = [];\n\t        this.dom.value = [\n\t            $('<select disabled/>')\n\t                .addClass(this.classes.value)\n\t                .addClass(this.classes.dropDown)\n\t                .addClass(this.classes.italic)\n\t                .addClass(this.classes.select)\n\t                .append($(this.dom.valueTitle).clone())\n\t        ];\n\t    };\n\t    /**\n\t     * Gets the options for the column\n\t     * @returns {object} The options for the column\n\t     */\n\t    Criteria.prototype._getOptions = function () {\n\t        var table = this.s.dt;\n\t        return $.extend(true, {}, Criteria.defaults, table.settings()[0].aoColumns[this.s.dataIdx].searchBuilder);\n\t    };\n\t    /**\n\t     * Populates the condition dropdown\n\t     */\n\t    Criteria.prototype._populateCondition = function () {\n\t        var conditionOpts = [];\n\t        var conditionsLength = Object.keys(this.s.conditions).length;\n\t        // If there are no conditions stored then we need to get them from the appropriate type\n\t        if (conditionsLength === 0) {\n\t            var column = $(this.dom.data).children('option:selected').val();\n\t            this.s.type = this.s.dt.columns().type().toArray()[column];\n\t            // If the column type is unknown, call a draw to try reading it again\n\t            if (this.s.type === null) {\n\t                this.s.dt.draw();\n\t                this.setListeners();\n\t                this.s.type = this.s.dt.columns().type().toArray()[column];\n\t            }\n\t            // Enable the condition element\n\t            $(this.dom.condition)\n\t                .attr('disabled', false)\n\t                .empty()\n\t                .append(this.dom.conditionTitle)\n\t                .addClass(this.classes.italic);\n\t            $(this.dom.conditionTitle)\n\t                .attr('selected', true);\n\t            var decimal = this.s.dt.settings()[0].oLanguage.sDecimal;\n\t            // This check is in place for if a custom decimal character is in place\n\t            if (decimal !== '' && this.s.type.indexOf(decimal) === this.s.type.length - decimal.length) {\n\t                if (this.s.type.indexOf('num-fmt') !== -1) {\n\t                    this.s.type = this.s.type.replace(decimal, '');\n\t                }\n\t                else if (this.s.type.indexOf('num') !== -1) {\n\t                    this.s.type = this.s.type.replace(decimal, '');\n\t                }\n\t            }\n\t            // Select which conditions are going to be used based on the column type\n\t            var conditionObj = this.c.conditions[this.s.type] !== undefined ?\n\t                this.c.conditions[this.s.type] :\n\t                this.s.type.indexOf('moment') !== -1 ?\n\t                    this.c.conditions.moment :\n\t                    this.s.type.indexOf('luxon') !== -1 ?\n\t                        this.c.conditions.luxon :\n\t                        this.c.conditions.string;\n\t            // If it is a moment format then extract the date format\n\t            if (this.s.type.indexOf('moment') !== -1) {\n\t                this.s.dateFormat = this.s.type.replace(/moment\\-/g, '');\n\t            }\n\t            else if (this.s.type.indexOf('luxon') !== -1) {\n\t                this.s.dateFormat = this.s.type.replace(/luxon\\-/g, '');\n\t            }\n\t            // Add all of the conditions to the select element\n\t            for (var _i = 0, _a = Object.keys(conditionObj); _i < _a.length; _i++) {\n\t                var condition = _a[_i];\n\t                if (conditionObj[condition] !== null) {\n\t                    this.s.conditions[condition] = conditionObj[condition];\n\t                    var condName = conditionObj[condition].conditionName;\n\t                    if (typeof condName === 'function') {\n\t                        condName = condName(this.s.dt, this.c.i18n);\n\t                    }\n\t                    conditionOpts.push($('<option>', {\n\t                        text: condName,\n\t                        value: condition\n\t                    })\n\t                        .addClass(this.classes.option)\n\t                        .addClass(this.classes.notItalic));\n\t                }\n\t            }\n\t        }\n\t        // Otherwise we can just load them in\n\t        else if (conditionsLength > 0) {\n\t            $(this.dom.condition).empty().attr('disabled', false).addClass(this.classes.italic);\n\t            for (var _b = 0, _c = Object.keys(this.s.conditions); _b < _c.length; _b++) {\n\t                var condition = _c[_b];\n\t                var condName = this.s.conditions[condition].conditionName;\n\t                if (typeof condName === 'function') {\n\t                    condName = condName(this.s.dt, this.c.i18n);\n\t                }\n\t                var newOpt = $('<option>', {\n\t                    text: condName,\n\t                    value: condition\n\t                })\n\t                    .addClass(this.classes.option)\n\t                    .addClass(this.classes.notItalic);\n\t                if (this.s.condition !== undefined && this.s.condition === condName) {\n\t                    $(newOpt).attr('selected', true);\n\t                    $(this.dom.condition).removeClass(this.classes.italic);\n\t                }\n\t                conditionOpts.push(newOpt);\n\t            }\n\t        }\n\t        else {\n\t            $(this.dom.condition)\n\t                .attr('disabled', true)\n\t                .addClass(this.classes.italic);\n\t            return;\n\t        }\n\t        for (var _d = 0, conditionOpts_1 = conditionOpts; _d < conditionOpts_1.length; _d++) {\n\t            var opt = conditionOpts_1[_d];\n\t            $(this.dom.condition).append(opt);\n\t        }\n\t        $(this.dom.condition).prop('selectedIndex', 0);\n\t    };\n\t    /**\n\t     * Populates the data select element\n\t     */\n\t    Criteria.prototype._populateData = function () {\n\t        var _this = this;\n\t        $(this.dom.data).empty().append(this.dom.dataTitle);\n\t        // If there are no datas stored then we need to get them from the table\n\t        if (this.s.dataPoints.length === 0) {\n\t            this.s.dt.columns().every(function (index) {\n\t                // Need to check that the column can be filtered on before adding it\n\t                if (_this.c.columns === true ||\n\t                    (_this.s.dt.columns(_this.c.columns).indexes().toArray().indexOf(index) !== -1)) {\n\t                    var found = false;\n\t                    for (var _i = 0, _a = _this.s.dataPoints; _i < _a.length; _i++) {\n\t                        var val = _a[_i];\n\t                        if (val.index === index) {\n\t                            found = true;\n\t                            break;\n\t                        }\n\t                    }\n\t                    if (!found) {\n\t                        var opt = { text: _this.s.dt.settings()[0].aoColumns[index].sTitle.replace(/(<([^>]+)>)/ig, ''), index: index };\n\t                        _this.s.dataPoints.push(opt);\n\t                        $(_this.dom.data).append($('<option>', {\n\t                            text: opt.text,\n\t                            value: opt.index\n\t                        })\n\t                            .addClass(_this.classes.option)\n\t                            .addClass(_this.classes.notItalic));\n\t                    }\n\t                }\n\t            });\n\t        }\n\t        // Otherwise we can just load them in\n\t        else {\n\t            var _loop_3 = function (data) {\n\t                this_1.s.dt.columns().every(function (index) {\n\t                    if (_this.s.dt.settings()[0].aoColumns[index].sTitle === data.text) {\n\t                        data.index = index;\n\t                    }\n\t                });\n\t                var newOpt = $('<option>', {\n\t                    text: data.text.replace(/(<([^>]+)>)/ig, ''),\n\t                    value: data.index\n\t                })\n\t                    .addClass(this_1.classes.option)\n\t                    .addClass(this_1.classes.notItalic);\n\t                if (this_1.s.data === data.text) {\n\t                    this_1.s.dataIdx = data.index;\n\t                    $(newOpt).attr('selected', true);\n\t                    $(this_1.dom.data).removeClass(this_1.classes.italic);\n\t                }\n\t                $(this_1.dom.data).append(newOpt);\n\t            };\n\t            var this_1 = this;\n\t            for (var _i = 0, _a = this.s.dataPoints; _i < _a.length; _i++) {\n\t                var data = _a[_i];\n\t                _loop_3(data);\n\t            }\n\t        }\n\t    };\n\t    /**\n\t     * Populates the Value select element\n\t     * @param loadedCriteria optional, used to reload criteria from predefined filters\n\t     */\n\t    Criteria.prototype._populateValue = function (loadedCriteria) {\n\t        var _this = this;\n\t        var prevFilled = this.s.filled;\n\t        this.s.filled = false;\n\t        // Remove any previous value elements\n\t        // Timeout is annoying but because of IOS\n\t        setTimeout(function () {\n\t            $(_this.dom.defaultValue).remove();\n\t        }, 50);\n\t        var _loop_4 = function (val) {\n\t            // Timeout is annoying but because of IOS\n\t            setTimeout(function () {\n\t                $(val).remove();\n\t            }, 50);\n\t        };\n\t        for (var _i = 0, _a = this.dom.value; _i < _a.length; _i++) {\n\t            var val = _a[_i];\n\t            _loop_4(val);\n\t        }\n\t        var children = $(this.dom.container).children();\n\t        if (children.length > 3) {\n\t            for (var i = 2; i < children.length - 1; i++) {\n\t                $(children[i]).remove();\n\t            }\n\t        }\n\t        // Find the column with the title matching the data for the criteria and take note of the index\n\t        if (loadedCriteria !== undefined) {\n\t            this.s.dt.columns().every(function (index) {\n\t                if (_this.s.dt.settings()[0].aoColumns[index].sTitle === loadedCriteria.data) {\n\t                    _this.s.dataIdx = index;\n\t                }\n\t            });\n\t        }\n\t        // Initialise the value elements based on the condition\n\t        this.dom.value = [].concat(this.s.conditions[this.s.condition].init(this, Criteria.updateListener, loadedCriteria !== undefined ? loadedCriteria.value : undefined));\n\t        if (loadedCriteria !== undefined && loadedCriteria.value !== undefined) {\n\t            this.s.value = loadedCriteria.value;\n\t        }\n\t        // Insert value elements and trigger the inserted event\n\t        $(this.dom.value[0])\n\t            .insertAfter(this.dom.condition)\n\t            .trigger('dtsb-inserted');\n\t        for (var i = 1; i < this.dom.value.length; i++) {\n\t            $(this.dom.value[i])\n\t                .insertAfter(this.dom.value[i - 1])\n\t                .trigger('dtsb-inserted');\n\t        }\n\t        // Check if the criteria can be used in a search\n\t        this.s.filled = this.s.conditions[this.s.condition].isInputValid(this.dom.value, this);\n\t        this.setListeners();\n\t        // If it can and this is different to before then trigger a draw\n\t        if (prevFilled !== this.s.filled) {\n\t            this.s.dt.draw();\n\t            this.setListeners();\n\t        }\n\t    };\n\t    Criteria.version = '1.0.0';\n\t    Criteria.classes = {\n\t        button: 'dtsb-button',\n\t        buttonContainer: 'dtsb-buttonContainer',\n\t        condition: 'dtsb-condition',\n\t        container: 'dtsb-criteria',\n\t        data: 'dtsb-data',\n\t        \"delete\": 'dtsb-delete',\n\t        dropDown: 'dtsb-dropDown',\n\t        greyscale: 'dtsb-greyscale',\n\t        input: 'dtsb-input',\n\t        italic: 'dtsb-italic',\n\t        joiner: 'dtsp-joiner',\n\t        left: 'dtsb-left',\n\t        notItalic: 'dtsb-notItalic',\n\t        option: 'dtsb-option',\n\t        right: 'dtsb-right',\n\t        select: 'dtsb-select',\n\t        value: 'dtsb-value',\n\t        vertical: 'dtsb-vertical'\n\t    };\n\t    /**\n\t     * Default initialisation function for select conditions\n\t     */\n\t    Criteria.initSelect = function (that, fn, preDefined, array) {\n\t        if (preDefined === void 0) { preDefined = null; }\n\t        if (array === void 0) { array = false; }\n\t        var column = $(that.dom.data).children('option:selected').val();\n\t        var indexArray = that.s.dt.rows().indexes().toArray();\n\t        var settings = that.s.dt.settings()[0];\n\t        // Declare select element to be used with all of the default classes and listeners.\n\t        var el = $('<select/>')\n\t            .addClass(Criteria.classes.value)\n\t            .addClass(Criteria.classes.dropDown)\n\t            .addClass(Criteria.classes.italic)\n\t            .addClass(Criteria.classes.select)\n\t            .append(that.dom.valueTitle)\n\t            .on('input change', function () {\n\t            $(this).removeClass(Criteria.classes.italic);\n\t            fn(that, this);\n\t        });\n\t        if (that.c.greyscale) {\n\t            $(el).addClass(Criteria.classes.greyscale);\n\t        }\n\t        var added = [];\n\t        var options = [];\n\t        // Add all of the options from the table to the select element.\n\t        // Only add one option for each possible value\n\t        for (var _i = 0, indexArray_1 = indexArray; _i < indexArray_1.length; _i++) {\n\t            var index = indexArray_1[_i];\n\t            var filter = settings.oApi._fnGetCellData(settings, index, column, typeof that.c.orthogonal === 'string' ?\n\t                that.c.orthogonal :\n\t                that.c.orthogonal.search);\n\t            var value = {\n\t                filter: typeof filter === 'string' ?\n\t                    filter.replace(/[\\r\\n\\u2028]/g, ' ') : // Need to replace certain characters to match the search values\n\t                    filter,\n\t                index: index,\n\t                text: settings.oApi._fnGetCellData(settings, index, column, typeof that.c.orthogonal === 'string' ?\n\t                    that.c.orthogonal :\n\t                    that.c.orthogonal.display)\n\t            };\n\t            // If we are dealing with an array type, either make sure we are working with arrays, or sort them\n\t            if (that.s.type === 'array') {\n\t                value.filter = !Array.isArray(value.filter) ?\n\t                    [value.filter] :\n\t                    value.filter = value.filter.sort();\n\t                value.text = !Array.isArray(value.text) ?\n\t                    [value.text] :\n\t                    value.text = value.text.sort();\n\t            }\n\t            // Function to add an option to the select element\n\t            var addOption = function (filt, text) {\n\t                // Add text and value, stripping out any html if that is the column type\n\t                var opt = $('<option>', {\n\t                    type: Array.isArray(filt) ? 'Array' : 'String',\n\t                    value: that.s.type.indexOf('html') !== -1 && filt !== null && typeof filt === 'string' ?\n\t                        filt.replace(/(<([^>]+)>)/ig, '') :\n\t                        filt\n\t                })\n\t                    .addClass(that.classes.option)\n\t                    .addClass(that.classes.notItalic)\n\t                    // Have to add the text this way so that special html characters are not escaped - &amp; etc.\n\t                    .html(typeof text === 'string' ?\n\t                    text.replace(/(<([^>]+)>)/ig, '') :\n\t                    text);\n\t                var val = $(opt).val();\n\t                // Check that this value has not already been added\n\t                if (added.indexOf(val) === -1) {\n\t                    added.push(val);\n\t                    options.push(opt);\n\t                    if (preDefined !== null && Array.isArray(preDefined[0])) {\n\t                        preDefined[0] = preDefined[0].sort().join(',');\n\t                    }\n\t                    // If this value was previously selected as indicated by preDefined, then select it again\n\t                    if (preDefined !== null && opt.val() === preDefined[0]) {\n\t                        opt.attr('selected', true);\n\t                        $(el).removeClass(Criteria.classes.italic);\n\t                    }\n\t                }\n\t            };\n\t            // If this is to add the individual values within the array we need to loop over the array\n\t            if (array) {\n\t                for (var i = 0; i < value.filter.length; i++) {\n\t                    addOption(value.filter[i], value.text[i]);\n\t                }\n\t            }\n\t            // Otherwise the value that is in the cell is to be added\n\t            else {\n\t                addOption(value.filter, value.text);\n\t            }\n\t        }\n\t        options.sort(function (a, b) {\n\t            if (that.s.type === 'string' || that.s.type === 'num' || that.s.type === 'html' || that.s.type === 'html-num') {\n\t                if ($(a).val() < $(b).val()) {\n\t                    return -1;\n\t                }\n\t                else if ($(a).val() < $(b).val()) {\n\t                    return 1;\n\t                }\n\t                else {\n\t                    return 0;\n\t                }\n\t            }\n\t            else if (that.s.type === 'num-fmt' || that.s.type === 'html-num-fmt') {\n\t                if (+$(a).val().replace(/[^0-9.]/g, '') < +$(b).val().replace(/[^0-9.]/g, '')) {\n\t                    return -1;\n\t                }\n\t                else if (+$(a).val().replace(/[^0-9.]/g, '') < +$(b).val().replace(/[^0-9.]/g, '')) {\n\t                    return 1;\n\t                }\n\t                else {\n\t                    return 0;\n\t                }\n\t            }\n\t        });\n\t        for (var _a = 0, options_1 = options; _a < options_1.length; _a++) {\n\t            var opt = options_1[_a];\n\t            $(el).append(opt);\n\t        }\n\t        return el;\n\t    };\n\t    /**\n\t     * Default initialisation function for select array conditions\n\t     *\n\t     * This exists because there needs to be different select functionality for contains/without and equals/not\n\t     */\n\t    Criteria.initSelectArray = function (that, fn, preDefined) {\n\t        if (preDefined === void 0) { preDefined = null; }\n\t        return Criteria.initSelect(that, fn, preDefined, true);\n\t    };\n\t    /**\n\t     * Default initialisation function for input conditions\n\t     */\n\t    Criteria.initInput = function (that, fn, preDefined) {\n\t        var _this = this;\n\t        if (preDefined === void 0) { preDefined = null; }\n\t        // Declare the input element\n\t        var searchDelay = that.s.dt.settings()[0].searchDelay;\n\t        var el = $('<input/>')\n\t            .addClass(Criteria.classes.value)\n\t            .addClass(Criteria.classes.input)\n\t            .on('input', searchDelay !== null ?\n\t            that.s.dt.settings()[0].oApi._fnThrottle(function () {\n\t                return fn(that, this);\n\t            }, searchDelay) :\n\t            function () { fn(that, _this); });\n\t        if (that.c.greyscale) {\n\t            $(el).addClass(Criteria.classes.greyscale);\n\t        }\n\t        // If there is a preDefined value then add it\n\t        if (preDefined !== null) {\n\t            $(el).val(preDefined[0]);\n\t        }\n\t        // This is add responsive functionality to the logic button without redrawing everything else\n\t        that.s.dt.one('draw', function () {\n\t            $(that.s.topGroup).trigger('dtsb-redrawLogic');\n\t        });\n\t        return el;\n\t    };\n\t    /**\n\t     * Default initialisation function for conditions requiring 2 inputs\n\t     */\n\t    Criteria.init2Input = function (that, fn, preDefined) {\n\t        var _this = this;\n\t        if (preDefined === void 0) { preDefined = null; }\n\t        // Declare all of the necessary jQuery elements\n\t        var searchDelay = that.s.dt.settings()[0].searchDelay;\n\t        var els = [\n\t            $('<input/>')\n\t                .addClass(Criteria.classes.value)\n\t                .addClass(Criteria.classes.input)\n\t                .on('input', searchDelay !== null ?\n\t                that.s.dt.settings()[0].oApi._fnThrottle(function () {\n\t                    return fn(that, this);\n\t                }, searchDelay) :\n\t                function () { fn(that, _this); }),\n\t            $('<span>')\n\t                .addClass(that.classes.joiner).text(that.s.dt.i18n('searchBuilder.valueJoiner', that.c.i18n.valueJoiner)),\n\t            $('<input/>')\n\t                .addClass(Criteria.classes.value)\n\t                .addClass(Criteria.classes.input)\n\t                .on('input', searchDelay !== null ?\n\t                that.s.dt.settings()[0].oApi._fnThrottle(function () {\n\t                    return fn(that, this);\n\t                }, searchDelay) :\n\t                function () { fn(that, _this); })\n\t        ];\n\t        if (that.c.greyscale) {\n\t            $(els[0]).addClass(Criteria.classes.greyscale);\n\t            $(els[2]).addClass(Criteria.classes.greyscale);\n\t        }\n\t        // If there is a preDefined value then add it\n\t        if (preDefined !== null) {\n\t            $(els[0]).val(preDefined[0]);\n\t            $(els[2]).val(preDefined[1]);\n\t        }\n\t        // This is add responsive functionality to the logic button without redrawing everything else\n\t        that.s.dt.one('draw', function () {\n\t            $(that.s.topGroup).trigger('dtsb-redrawLogic');\n\t        });\n\t        return els;\n\t    };\n\t    /**\n\t     * Default initialisation function for date conditions\n\t     */\n\t    Criteria.initDate = function (that, fn, preDefined) {\n\t        var _this = this;\n\t        if (preDefined === void 0) { preDefined = null; }\n\t        var searchDelay = that.s.dt.settings()[0].searchDelay;\n\t        // Declare date element using DataTables dateTime plugin\n\t        var el = $('<input/>')\n\t            .addClass(Criteria.classes.value)\n\t            .addClass(Criteria.classes.input)\n\t            .dtDateTime({\n\t            attachTo: 'input',\n\t            format: that.s.dateFormat ? that.s.dateFormat : undefined\n\t        })\n\t            .on('input change', searchDelay !== null ?\n\t            that.s.dt.settings()[0].oApi._fnThrottle(function () {\n\t                return fn(that, this);\n\t            }, searchDelay) :\n\t            function () { fn(that, _this); });\n\t        if (that.c.greyscale) {\n\t            $(el).addClass(Criteria.classes.greyscale);\n\t        }\n\t        // If there is a preDefined value then add it\n\t        if (preDefined !== null) {\n\t            $(el).val(preDefined[0]);\n\t        }\n\t        // This is add responsive functionality to the logic button without redrawing everything else\n\t        that.s.dt.one('draw', function () {\n\t            $(that.s.topGroup).trigger('dtsb-redrawLogic');\n\t        });\n\t        return el;\n\t    };\n\t    Criteria.initNoValue = function (that) {\n\t        // This is add responsive functionality to the logic button without redrawing everything else\n\t        that.s.dt.one('draw', function () {\n\t            $(that.s.topGroup).trigger('dtsb-redrawLogic');\n\t        });\n\t    };\n\t    Criteria.init2Date = function (that, fn, preDefined) {\n\t        var _this = this;\n\t        if (preDefined === void 0) { preDefined = null; }\n\t        var searchDelay = that.s.dt.settings()[0].searchDelay;\n\t        // Declare all of the date elements that are required using DataTables dateTime plugin\n\t        var els = [\n\t            $('<input/>')\n\t                .addClass(Criteria.classes.value)\n\t                .addClass(Criteria.classes.input)\n\t                .dtDateTime({\n\t                attachTo: 'input',\n\t                format: that.s.dateFormat ? that.s.dateFormat : undefined\n\t            })\n\t                .on('input change', searchDelay !== null ?\n\t                that.s.dt.settings()[0].oApi._fnThrottle(function () {\n\t                    return fn(that, this);\n\t                }, searchDelay) :\n\t                function () { fn(that, _this); }),\n\t            $('<span>')\n\t                .addClass(that.classes.joiner)\n\t                .text(that.s.dt.i18n('searchBuilder.valueJoiner', that.c.i18n.valueJoiner)),\n\t            $('<input/>')\n\t                .addClass(Criteria.classes.value)\n\t                .addClass(Criteria.classes.input)\n\t                .dtDateTime({\n\t                attachTo: 'input',\n\t                format: that.s.dateFormat ? that.s.dateFormat : undefined\n\t            })\n\t                .on('input change', searchDelay !== null ?\n\t                that.s.dt.settings()[0].oApi._fnThrottle(function () {\n\t                    return fn(that, this);\n\t                }, searchDelay) :\n\t                function () { fn(that, _this); }),\n\t        ];\n\t        if (that.c.greyscale) {\n\t            $(els[0]).addClass(Criteria.classes.greyscale);\n\t            $(els[2]).addClass(Criteria.classes.greyscale);\n\t        }\n\t        // If there are and preDefined values then add them\n\t        if (preDefined !== null && preDefined.length > 0) {\n\t            $(els[0]).val(preDefined[0]);\n\t            $(els[2]).val(preDefined[1]);\n\t        }\n\t        // This is add responsive functionality to the logic button without redrawing everything else\n\t        that.s.dt.one('draw', function () {\n\t            $(that.s.topGroup).trigger('dtsb-redrawLogic');\n\t        });\n\t        return els;\n\t    };\n\t    /**\n\t     * Default function for select elements to validate condition\n\t     */\n\t    Criteria.isInputValidSelect = function (el) {\n\t        var allFilled = true;\n\t        // Check each element to make sure that the selections are valid\n\t        for (var _i = 0, el_1 = el; _i < el_1.length; _i++) {\n\t            var element = el_1[_i];\n\t            if ($(element).children('option:selected').length === $(element).children('option').length - $(element).children('option.' + Criteria.classes.notItalic).length &&\n\t                $(element).children('option:selected').length === 1 &&\n\t                $(element).children('option:selected')[0] === $(element).children('option:hidden')[0]) {\n\t                allFilled = false;\n\t            }\n\t        }\n\t        return allFilled;\n\t    };\n\t    /**\n\t     * Default function for input and date elements to validate condition\n\t     */\n\t    Criteria.isInputValidInput = function (el) {\n\t        var allFilled = true;\n\t        // Check each element to make sure that the inputs are valid\n\t        for (var _i = 0, el_2 = el; _i < el_2.length; _i++) {\n\t            var element = el_2[_i];\n\t            if ($(element).is('input') && $(element).val().length === 0) {\n\t                allFilled = false;\n\t            }\n\t        }\n\t        return allFilled;\n\t    };\n\t    /**\n\t     * Default function for getting select conditions\n\t     */\n\t    Criteria.inputValueSelect = function (el) {\n\t        var values = [];\n\t        // Go through the select elements and push each selected option to the return array\n\t        for (var _i = 0, el_3 = el; _i < el_3.length; _i++) {\n\t            var element = el_3[_i];\n\t            if ($(element).is('select')) {\n\t                var val = $(element).children('option:selected').val();\n\t                // If the type of the option is an array we need to split it up and sort it\n\t                values.push($(element).children('option:selected').attr('type') === 'Array' ?\n\t                    val.split(',').sort() :\n\t                    val);\n\t            }\n\t        }\n\t        return values;\n\t    };\n\t    /**\n\t     * Default function for getting input conditions\n\t     */\n\t    Criteria.inputValueInput = function (el) {\n\t        var values = [];\n\t        // Go through the input elements and push each value to the return array\n\t        for (var _i = 0, el_4 = el; _i < el_4.length; _i++) {\n\t            var element = el_4[_i];\n\t            if ($(element).is('input')) {\n\t                values.push($(element).val());\n\t            }\n\t        }\n\t        return values;\n\t    };\n\t    /**\n\t     * Function that is run on each element as a call back when a search should be triggered\n\t     */\n\t    Criteria.updateListener = function (that, el) {\n\t        // When the value is changed the criteria is now complete so can be included in searches\n\t        // Get the condition from the map based on the key that has been selected for the condition\n\t        var condition = that.s.conditions[that.s.condition];\n\t        that.s.filled = condition.isInputValid(that.dom.value, that);\n\t        that.s.value = condition.inputValue(that.dom.value, that);\n\t        if (!Array.isArray(that.s.value)) {\n\t            that.s.value = [that.s.value];\n\t        }\n\t        for (var i = 0; i < that.s.value.length; i++) {\n\t            // If the value is an array we need to sort it\n\t            if (Array.isArray(that.s.value[i])) {\n\t                that.s.value[i].sort();\n\t            }\n\t            // Otherwise replace the decimal place character for i18n\n\t            else if (that.s.type.indexOf('num') !== -1 &&\n\t                (that.s.dt.settings()[0].oLanguage.sDecimal !== '' || that.s.dt.settings()[0].oLanguage.sThousands !== '')) {\n\t                var splitRD = [that.s.value[i].toString()];\n\t                if (that.s.dt.settings()[0].oLanguage.sDecimal !== '') {\n\t                    splitRD = that.s.value[i].split(that.s.dt.settings()[0].oLanguage.sDecimal);\n\t                }\n\t                if (that.s.dt.settings()[0].oLanguage.sThousands !== '') {\n\t                    for (var j = 0; j < splitRD.length; j++) {\n\t                        splitRD[j] = splitRD[j].replace(that.s.dt.settings()[0].oLanguage.sThousands, ',');\n\t                    }\n\t                }\n\t                that.s.value[i] = splitRD.join('.');\n\t            }\n\t        }\n\t        // Take note of the cursor position so that we can refocus there later\n\t        var idx = null;\n\t        var cursorPos = null;\n\t        for (var i = 0; i < that.dom.value.length; i++) {\n\t            if (el === that.dom.value[i][0]) {\n\t                idx = i;\n\t                if (el.selectionStart !== undefined) {\n\t                    cursorPos = el.selectionStart;\n\t                }\n\t            }\n\t        }\n\t        // Trigger a search\n\t        that.s.dt.draw();\n\t        // Refocus the element and set the correct cursor position\n\t        if (idx !== null) {\n\t            $(that.dom.value[idx]).removeClass(that.classes.italic);\n\t            $(that.dom.value[idx]).focus();\n\t            if (cursorPos !== null) {\n\t                $(that.dom.value[idx])[0].setSelectionRange(cursorPos, cursorPos);\n\t            }\n\t        }\n\t    };\n\t    // The order of the conditions will make tslint sad :(\n\t    Criteria.dateConditions = {\n\t        '=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.equals', i18n.conditions.date.equals);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                value = value.replace(/(\\/|\\-|\\,)/g, '-');\n\t                return value === comparison[0];\n\t            }\n\t        },\n\t        '!=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.not', i18n.conditions.date.not);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                value = value.replace(/(\\/|\\-|\\,)/g, '-');\n\t                return value !== comparison[0];\n\t            }\n\t        },\n\t        '<': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.before', i18n.conditions.date.before);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                value = value.replace(/(\\/|\\-|\\,)/g, '-');\n\t                return value < comparison[0];\n\t            }\n\t        },\n\t        '>': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.after', i18n.conditions.date.after);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                value = value.replace(/(\\/|\\-|\\,)/g, '-');\n\t                return value > comparison[0];\n\t            }\n\t        },\n\t        'between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.between', i18n.conditions.date.between);\n\t            },\n\t            init: Criteria.init2Date,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                value = value.replace(/(\\/|\\-|\\,)/g, '-');\n\t                if (comparison[0] < comparison[1]) {\n\t                    return comparison[0] <= value && value <= comparison[1];\n\t                }\n\t                else {\n\t                    return comparison[1] <= value && value <= comparison[0];\n\t                }\n\t            }\n\t        },\n\t        '!between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.notBetween', i18n.conditions.date.notBetween);\n\t            },\n\t            init: Criteria.init2Date,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                value = value.replace(/(\\/|\\-|\\,)/g, '-');\n\t                if (comparison[0] < comparison[1]) {\n\t                    return !(comparison[0] <= value && value <= comparison[1]);\n\t                }\n\t                else {\n\t                    return !(comparison[1] <= value && value <= comparison[0]);\n\t                }\n\t            }\n\t        },\n\t        'null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.empty', i18n.conditions.date.empty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return (value === null || value === undefined || value.length === 0);\n\t            }\n\t        },\n\t        '!null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.notEmpty', i18n.conditions.date.notEmpty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return !(value === null || value === undefined || value.length === 0);\n\t            }\n\t        }\n\t    };\n\t    // The order of the conditions will make tslint sad :(\n\t    Criteria.momentDateConditions = {\n\t        '=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.equals', i18n.conditions.date.equals);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                return moment(value, that.s.dateFormat).valueOf() === moment(comparison[0], that.s.dateFormat).valueOf();\n\t            }\n\t        },\n\t        '!=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.not', i18n.conditions.date.not);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                return moment(value, that.s.dateFormat).valueOf() !== moment(comparison[0], that.s.dateFormat).valueOf();\n\t            }\n\t        },\n\t        '<': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.before', i18n.conditions.date.before);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                return moment(value, that.s.dateFormat).valueOf() < moment(comparison[0], that.s.dateFormat).valueOf();\n\t            }\n\t        },\n\t        '>': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.after', i18n.conditions.date.after);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                return moment(value, that.s.dateFormat).valueOf() > moment(comparison[0], that.s.dateFormat).valueOf();\n\t            }\n\t        },\n\t        'between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.between', i18n.conditions.date.between);\n\t            },\n\t            init: Criteria.init2Date,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                var val = moment(value, that.s.dateFormat).valueOf();\n\t                var comp0 = moment(comparison[0], that.s.dateFormat).valueOf();\n\t                var comp1 = moment(comparison[1], that.s.dateFormat).valueOf();\n\t                if (comp0 < comp1) {\n\t                    return comp0 <= val && val <= comp1;\n\t                }\n\t                else {\n\t                    return comp1 <= val && val <= comp0;\n\t                }\n\t            }\n\t        },\n\t        '!between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.notBetween', i18n.conditions.date.notBetween);\n\t            },\n\t            init: Criteria.init2Date,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                var val = moment(value, that.s.dateFormat).valueOf();\n\t                var comp0 = moment(comparison[0], that.s.dateFormat).valueOf();\n\t                var comp1 = moment(comparison[1], that.s.dateFormat).valueOf();\n\t                if (comp0 < comp1) {\n\t                    return !(+comp0 <= +val && +val <= +comp1);\n\t                }\n\t                else {\n\t                    return !(+comp1 <= +val && +val <= +comp0);\n\t                }\n\t            }\n\t        },\n\t        'null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.empty', i18n.conditions.date.empty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return (value === null || value === undefined || value.length === 0);\n\t            }\n\t        },\n\t        '!null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.notEmpty', i18n.conditions.date.notEmpty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return !(value === null || value === undefined || value.length === 0);\n\t            }\n\t        }\n\t    };\n\t    // The order of the conditions will make tslint sad :(\n\t    Criteria.luxonDateConditions = {\n\t        '=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.equals', i18n.conditions.date.equals);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                return luxon.DateTime.fromFormat(value, that.s.dateFormat).ts\n\t                    === luxon.DateTime.fromFormat(comparison[0], that.s.dateFormat).ts;\n\t            }\n\t        },\n\t        '!=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.not', i18n.conditions.date.not);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                return luxon.DateTime.fromFormat(value, that.s.dateFormat).ts\n\t                    !== luxon.DateTime.fromFormat(comparison[0], that.s.dateFormat).ts;\n\t            }\n\t        },\n\t        '<': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.before', i18n.conditions.date.before);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                return luxon.DateTime.fromFormat(value, that.s.dateFormat).ts\n\t                    < luxon.DateTime.fromFormat(comparison[0], that.s.dateFormat).ts;\n\t            }\n\t        },\n\t        '>': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.after', i18n.conditions.date.after);\n\t            },\n\t            init: Criteria.initDate,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                return luxon.DateTime.fromFormat(value, that.s.dateFormat).ts\n\t                    > luxon.DateTime.fromFormat(comparison[0], that.s.dateFormat).ts;\n\t            }\n\t        },\n\t        'between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.between', i18n.conditions.date.between);\n\t            },\n\t            init: Criteria.init2Date,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                var val = luxon.DateTime.fromFormat(value, that.s.dateFormat).ts;\n\t                var comp0 = luxon.DateTime.fromFormat(comparison[0], that.s.dateFormat).ts;\n\t                var comp1 = luxon.DateTime.fromFormat(comparison[1], that.s.dateFormat).ts;\n\t                if (comp0 < comp1) {\n\t                    return comp0 <= val && val <= comp1;\n\t                }\n\t                else {\n\t                    return comp1 <= val && val <= comp0;\n\t                }\n\t            }\n\t        },\n\t        '!between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.notBetween', i18n.conditions.date.notBetween);\n\t            },\n\t            init: Criteria.init2Date,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison, that) {\n\t                var val = luxon.DateTime.fromFormat(value, that.s.dateFormat).ts;\n\t                var comp0 = luxon.DateTime.fromFormat(comparison[0], that.s.dateFormat).ts;\n\t                var comp1 = luxon.DateTime.fromFormat(comparison[1], that.s.dateFormat).ts;\n\t                if (comp0 < comp1) {\n\t                    return !(+comp0 <= +val && +val <= +comp1);\n\t                }\n\t                else {\n\t                    return !(+comp1 <= +val && +val <= +comp0);\n\t                }\n\t            }\n\t        },\n\t        'null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.empty', i18n.conditions.date.empty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return (value === null || value === undefined || value.length === 0);\n\t            }\n\t        },\n\t        '!null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.date.notEmpty', i18n.conditions.date.notEmpty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return !(value === null || value === undefined || value.length === 0);\n\t            }\n\t        }\n\t    };\n\t    // The order of the conditions will make tslint sad :(\n\t    Criteria.numConditions = {\n\t        '=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.equals', i18n.conditions.number.equals);\n\t            },\n\t            init: Criteria.initSelect,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                return +value === +comparison[0];\n\t            }\n\t        },\n\t        '!=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.not', i18n.conditions.number.not);\n\t            },\n\t            init: Criteria.initSelect,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                return +value !== +comparison[0];\n\t            }\n\t        },\n\t        '<': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.lt', i18n.conditions.number.lt);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                return +value < +comparison[0];\n\t            }\n\t        },\n\t        '<=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.lte', i18n.conditions.number.lte);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                return +value <= +comparison[0];\n\t            }\n\t        },\n\t        '>=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.gte', i18n.conditions.number.gte);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                return +value >= +comparison[0];\n\t            }\n\t        },\n\t        '>': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.gt', i18n.conditions.number.gt);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                return +value > +comparison[0];\n\t            }\n\t        },\n\t        'between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.between', i18n.conditions.number.between);\n\t            },\n\t            init: Criteria.init2Input,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                if (+comparison[0] < +comparison[1]) {\n\t                    return +comparison[0] <= +value && +value <= +comparison[1];\n\t                }\n\t                else {\n\t                    return +comparison[1] <= +value && +value <= +comparison[0];\n\t                }\n\t            }\n\t        },\n\t        '!between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.notBetween', i18n.conditions.number.notBetween);\n\t            },\n\t            init: Criteria.init2Input,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                if (+comparison[0] < +comparison[1]) {\n\t                    return !(+comparison[0] <= +value && +value <= +comparison[1]);\n\t                }\n\t                else {\n\t                    return !(+comparison[1] <= +value && +value <= +comparison[0]);\n\t                }\n\t            }\n\t        },\n\t        'null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.empty', i18n.conditions.number.empty);\n\t            },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () { return; },\n\t            isInputValid: function () { return true; },\n\t            search: function (value) {\n\t                return (value === null || value === undefined || value.length === 0);\n\t            }\n\t        },\n\t        '!null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.notEmpty', i18n.conditions.number.notEmpty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return !(value === null || value === undefined || value.length === 0);\n\t            }\n\t        }\n\t    };\n\t    // The order of the conditions will make tslint sad :(\n\t    Criteria.numFmtConditions = {\n\t        '=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.equals', i18n.conditions.number.equals);\n\t            },\n\t            init: Criteria.initSelect,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                var val = value.indexOf('-') === 0 ?\n\t                    '-' + value.replace(/[^0-9.]/g, '') :\n\t                    value.replace(/[^0-9.]/g, '');\n\t                var comp = comparison[0].indexOf('-') === 0 ?\n\t                    '-' + comparison[0].replace(/[^0-9.]/g, '') :\n\t                    comparison[0].replace(/[^0-9.]/g, '');\n\t                return +val === +comp;\n\t            }\n\t        },\n\t        '!=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.not', i18n.conditions.number.not);\n\t            },\n\t            init: Criteria.initSelect,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                var val = value.indexOf('-') === 0 ?\n\t                    '-' + value.replace(/[^0-9.]/g, '') :\n\t                    value.replace(/[^0-9.]/g, '');\n\t                var comp = comparison[0].indexOf('-') === 0 ?\n\t                    '-' + comparison[0].replace(/[^0-9.]/g, '') :\n\t                    comparison[0].replace(/[^0-9.]/g, '');\n\t                return +val !== +comp;\n\t            }\n\t        },\n\t        '<': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.lt', i18n.conditions.number.lt);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                var val = value.indexOf('-') === 0 ?\n\t                    '-' + value.replace(/[^0-9.]/g, '') :\n\t                    value.replace(/[^0-9.]/g, '');\n\t                var comp = comparison[0].indexOf('-') === 0 ?\n\t                    '-' + comparison[0].replace(/[^0-9.]/g, '') :\n\t                    comparison[0].replace(/[^0-9.]/g, '');\n\t                return +val < +comp;\n\t            }\n\t        },\n\t        '<=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.lte', i18n.conditions.number.lte);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                var val = value.indexOf('-') === 0 ?\n\t                    '-' + value.replace(/[^0-9.]/g, '') :\n\t                    value.replace(/[^0-9.]/g, '');\n\t                var comp = comparison[0].indexOf('-') === 0 ?\n\t                    '-' + comparison[0].replace(/[^0-9.]/g, '') :\n\t                    comparison[0].replace(/[^0-9.]/g, '');\n\t                return +val <= +comp;\n\t            }\n\t        },\n\t        '>=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.gte', i18n.conditions.number.gte);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                var val = value.indexOf('-') === 0 ?\n\t                    '-' + value.replace(/[^0-9.]/g, '') :\n\t                    value.replace(/[^0-9.]/g, '');\n\t                var comp = comparison[0].indexOf('-') === 0 ?\n\t                    '-' + comparison[0].replace(/[^0-9.]/g, '') :\n\t                    comparison[0].replace(/[^0-9.]/g, '');\n\t                return +val >= +comp;\n\t            }\n\t        },\n\t        '>': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.gt', i18n.conditions.number.gt);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                var val = value.indexOf('-') === 0 ?\n\t                    '-' + value.replace(/[^0-9.]/g, '') :\n\t                    value.replace(/[^0-9.]/g, '');\n\t                var comp = comparison[0].indexOf('-') === 0 ?\n\t                    '-' + comparison[0].replace(/[^0-9.]/g, '') :\n\t                    comparison[0].replace(/[^0-9.]/g, '');\n\t                return +val > +comp;\n\t            }\n\t        },\n\t        'between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.between', i18n.conditions.number.between);\n\t            },\n\t            init: Criteria.init2Input,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                var val = value.indexOf('-') === 0 ?\n\t                    '-' + value.replace(/[^0-9.]/g, '') :\n\t                    value.replace(/[^0-9.]/g, '');\n\t                var comp0 = comparison[0].indexOf('-') === 0 ?\n\t                    '-' + comparison[0].replace(/[^0-9.]/g, '') :\n\t                    comparison[0].replace(/[^0-9.]/g, '');\n\t                var comp1 = comparison[1].indexOf('-') === 0 ?\n\t                    '-' + comparison[1].replace(/[^0-9.]/g, '') :\n\t                    comparison[1].replace(/[^0-9.]/g, '');\n\t                if (+comp0 < +comp1) {\n\t                    return +comp0 <= +val && +val <= +comp1;\n\t                }\n\t                else {\n\t                    return +comp1 <= +val && +val <= +comp0;\n\t                }\n\t            }\n\t        },\n\t        '!between': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.notBetween', i18n.conditions.number.notBetween);\n\t            },\n\t            init: Criteria.init2Input,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                var val = value.indexOf('-') === 0 ?\n\t                    '-' + value.replace(/[^0-9.]/g, '') :\n\t                    value.replace(/[^0-9.]/g, '');\n\t                var comp0 = comparison[0].indexOf('-') === 0 ?\n\t                    '-' + comparison[0].replace(/[^0-9.]/g, '') :\n\t                    comparison[0].replace(/[^0-9.]/g, '');\n\t                var comp1 = comparison[1].indexOf('-') === 0 ?\n\t                    '-' + comparison[1].replace(/[^0-9.]/g, '') :\n\t                    comparison[1].replace(/[^0-9.]/g, '');\n\t                if (+comp0 < +comp1) {\n\t                    return !(+comp0 <= +val && +val <= +comp1);\n\t                }\n\t                else {\n\t                    return !(+comp1 <= +val && +val <= +comp0);\n\t                }\n\t            }\n\t        },\n\t        'null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.empty', i18n.conditions.number.empty);\n\t            },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () { return; },\n\t            isInputValid: function () { return true; },\n\t            search: function (value) {\n\t                return (value === null || value === undefined || value.length === 0);\n\t            }\n\t        },\n\t        '!null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.number.notEmpty', i18n.conditions.number.notEmpty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return !(value === null || value === undefined || value.length === 0);\n\t            }\n\t        }\n\t    };\n\t    // The order of the conditions will make tslint sad :(\n\t    Criteria.stringConditions = {\n\t        '=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.string.equals', i18n.conditions.string.equals);\n\t            },\n\t            init: Criteria.initSelect,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                return value === comparison[0];\n\t            }\n\t        },\n\t        '!=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.string.not', i18n.conditions.string.not);\n\t            },\n\t            init: Criteria.initSelect,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                return value !== comparison[0];\n\t            }\n\t        },\n\t        'starts': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.string.startsWith', i18n.conditions.string.startsWith);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                return value.toLowerCase().indexOf(comparison[0].toLowerCase()) === 0;\n\t            }\n\t        },\n\t        'contains': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.string.contains', i18n.conditions.string.contains);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                return value.toLowerCase().indexOf(comparison[0].toLowerCase()) !== -1;\n\t            }\n\t        },\n\t        'ends': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.string.endsWith', i18n.conditions.string.endsWith);\n\t            },\n\t            init: Criteria.initInput,\n\t            inputValue: Criteria.inputValueInput,\n\t            isInputValid: Criteria.isInputValidInput,\n\t            search: function (value, comparison) {\n\t                return value.toLowerCase().endsWith(comparison[0].toLowerCase());\n\t            }\n\t        },\n\t        'null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.string.empty', i18n.conditions.string.empty);\n\t            },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () { return; },\n\t            isInputValid: function () { return true; },\n\t            search: function (value) {\n\t                return (value === null || value === undefined || value.length === 0);\n\t            }\n\t        },\n\t        '!null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.string.notEmpty', i18n.conditions.string.notEmpty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () {\n\t                return;\n\t            },\n\t            search: function (value) {\n\t                return !(value === null || value === undefined || value.length === 0);\n\t            }\n\t        }\n\t    };\n\t    // The order of the conditions will make tslint sad :(\n\t    Criteria.arrayConditions = {\n\t        'contains': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.array.contains', i18n.conditions.array.contains);\n\t            },\n\t            init: Criteria.initSelectArray,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                return value.indexOf(comparison[0]) !== -1;\n\t            }\n\t        },\n\t        'without': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.array.without', i18n.conditions.array.without);\n\t            },\n\t            init: Criteria.initSelectArray,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                return value.indexOf(comparison[0]) === -1;\n\t            }\n\t        },\n\t        '=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.array.equals', i18n.conditions.array.equals);\n\t            },\n\t            init: Criteria.initSelect,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                if (value.length === comparison[0].length) {\n\t                    for (var i = 0; i < value.length; i++) {\n\t                        if (value[i] !== comparison[0][i]) {\n\t                            return false;\n\t                        }\n\t                    }\n\t                    return true;\n\t                }\n\t                return false;\n\t            }\n\t        },\n\t        '!=': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.array.not', i18n.conditions.array.not);\n\t            },\n\t            init: Criteria.initSelect,\n\t            inputValue: Criteria.inputValueSelect,\n\t            isInputValid: Criteria.isInputValidSelect,\n\t            search: function (value, comparison) {\n\t                if (value.length === comparison[0].length) {\n\t                    for (var i = 0; i < value.length; i++) {\n\t                        if (value[i] !== comparison[0][i]) {\n\t                            return true;\n\t                        }\n\t                    }\n\t                    return false;\n\t                }\n\t                return true;\n\t            }\n\t        },\n\t        'null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.array.empty', i18n.conditions.array.empty);\n\t            },\n\t            init: Criteria.initNoValue,\n\t            isInputValid: function () { return true; },\n\t            inputValue: function () { return; },\n\t            search: function (value) {\n\t                return (value === null || value === undefined || value.length === 0);\n\t            }\n\t        },\n\t        '!null': {\n\t            conditionName: function (dt, i18n) {\n\t                return dt.i18n('searchBuilder.conditions.array.notEmpty', i18n.conditions.array.notEmpty);\n\t            },\n\t            isInputValid: function () { return true; },\n\t            init: Criteria.initNoValue,\n\t            inputValue: function () { return; },\n\t            search: function (value) {\n\t                return (value !== null && value !== undefined && value.length !== 0);\n\t            }\n\t        }\n\t    };\n\t    Criteria.defaults = {\n\t        columns: true,\n\t        conditions: {\n\t            'array': Criteria.arrayConditions,\n\t            'date': Criteria.dateConditions,\n\t            'html': Criteria.stringConditions,\n\t            'html-num': Criteria.numConditions,\n\t            'html-num-fmt': Criteria.numFmtConditions,\n\t            'luxon': Criteria.luxonDateConditions,\n\t            'moment': Criteria.momentDateConditions,\n\t            'num': Criteria.numConditions,\n\t            'num-fmt': Criteria.numFmtConditions,\n\t            'string': Criteria.stringConditions\n\t        },\n\t        depthLimit: false,\n\t        filterChanged: undefined,\n\t        greyscale: false,\n\t        i18n: {\n\t            add: 'Add Condition',\n\t            button: {\n\t                0: 'Search Builder',\n\t                _: 'Search Builder (%d)'\n\t            },\n\t            clearAll: 'Clear All',\n\t            condition: 'Condition',\n\t            data: 'Data',\n\t            deleteTitle: 'Delete filtering rule',\n\t            leftTitle: 'Outdent criteria',\n\t            logicAnd: 'And',\n\t            logicOr: 'Or',\n\t            rightTitle: 'Indent criteria',\n\t            title: {\n\t                0: 'Custom Search Builder',\n\t                _: 'Custom Search Builder (%d)'\n\t            },\n\t            value: 'Value',\n\t            valueJoiner: 'and'\n\t        },\n\t        logic: 'AND',\n\t        orthogonal: {\n\t            display: 'display',\n\t            search: 'filter'\n\t        },\n\t        preDefined: false\n\t    };\n\t    return Criteria;\n\t}());\n\n\tvar $$1;\n\tvar DataTable$1;\n\t/**\n\t * Sets the value of jQuery for use in the file\n\t * @param jq the instance of jQuery to be set\n\t */\n\tfunction setJQuery$1(jq) {\n\t    $$1 = jq;\n\t    DataTable$1 = jq.fn.dataTable;\n\t}\n\t/**\n\t * The Group class is used within SearchBuilder to represent a group of criteria\n\t */\n\tvar Group = /** @class */ (function () {\n\t    function Group(table, opts, topGroup, index, isChild, depth) {\n\t        if (index === void 0) { index = 0; }\n\t        if (isChild === void 0) { isChild = false; }\n\t        if (depth === void 0) { depth = 1; }\n\t        // Check that the required version of DataTables is included\n\t        if (!DataTable$1 || !DataTable$1.versionCheck || !DataTable$1.versionCheck('1.10.0')) {\n\t            throw new Error('SearchBuilder requires DataTables 1.10 or newer');\n\t        }\n\t        // Check that Select is included\n\t        if (!DataTable$1.DateTime) {\n\t            throw new Error('SearchPane requires DateTime');\n\t        }\n\t        this.classes = $$1.extend(true, {}, Group.classes);\n\t        // Get options from user\n\t        this.c = $$1.extend(true, {}, Group.defaults, opts);\n\t        this.s = {\n\t            criteria: [],\n\t            depth: depth,\n\t            dt: table,\n\t            index: index,\n\t            isChild: isChild,\n\t            logic: undefined,\n\t            opts: opts,\n\t            toDrop: undefined,\n\t            topGroup: topGroup\n\t        };\n\t        this.dom = {\n\t            add: $$1('<button/>')\n\t                .addClass(this.classes.add)\n\t                .addClass(this.classes.button)\n\t                .attr('type', 'button'),\n\t            clear: $$1('<button>&times</button>')\n\t                .addClass(this.classes.button)\n\t                .addClass(this.classes.clearGroup)\n\t                .attr('type', 'button'),\n\t            container: $$1('<div/>')\n\t                .addClass(this.classes.group),\n\t            logic: $$1('<button/>')\n\t                .addClass(this.classes.logic)\n\t                .addClass(this.classes.button)\n\t                .attr('type', 'button'),\n\t            logicContainer: $$1('<div/>')\n\t                .addClass(this.classes.logicContainer)\n\t        };\n\t        // A reference to the top level group is maintained throughout any subgroups and criteria that may be created\n\t        if (this.s.topGroup === undefined) {\n\t            this.s.topGroup = this.dom.container;\n\t        }\n\t        this._setup();\n\t        return this;\n\t    }\n\t    /**\n\t     * Destroys the groups buttons, clears the internal criteria and removes it from the dom\n\t     */\n\t    Group.prototype.destroy = function () {\n\t        // Turn off listeners\n\t        $$1(this.dom.add).off('.dtsb');\n\t        $$1(this.dom.logic).off('.dtsb');\n\t        // Trigger event for groups at a higher level to pick up on\n\t        $$1(this.dom.container)\n\t            .trigger('dtsb-destroy')\n\t            .remove();\n\t        this.s.criteria = [];\n\t    };\n\t    /**\n\t     * Gets the details required to rebuild the group\n\t     */\n\t    Group.prototype.getDetails = function () {\n\t        if (this.s.criteria.length === 0) {\n\t            return {};\n\t        }\n\t        var details = {\n\t            criteria: [],\n\t            logic: this.s.logic\n\t        };\n\t        // NOTE here crit could be either a subgroup or a criteria\n\t        for (var _i = 0, _a = this.s.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            details.criteria.push(crit.criteria.getDetails());\n\t        }\n\t        return details;\n\t    };\n\t    /**\n\t     * Getter for the node for the container of the group\n\t     * @returns Node for the container of the group\n\t     */\n\t    Group.prototype.getNode = function () {\n\t        return this.dom.container;\n\t    };\n\t    /**\n\t     * Rebuilds the group based upon the details passed in\n\t     * @param loadedDetails the details required to rebuild the group\n\t     */\n\t    Group.prototype.rebuild = function (loadedDetails) {\n\t        // If no criteria are stored then just return\n\t        if (loadedDetails.criteria === undefined || loadedDetails.criteria === null || loadedDetails.criteria.length === 0) {\n\t            return;\n\t        }\n\t        this.s.logic = loadedDetails.logic;\n\t        $$1(this.dom.logic).text(this.s.logic === 'OR'\n\t            ? this.s.dt.i18n('searchBuilder.logicOr', this.c.i18n.logicOr)\n\t            : this.s.dt.i18n('searchBuilder.logicAnd', this.c.i18n.logicAnd));\n\t        // Add all of the criteria, be it a sub group or a criteria\n\t        for (var _i = 0, _a = loadedDetails.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            if (crit.logic !== undefined) {\n\t                this._addPrevGroup(crit);\n\t            }\n\t            else if (crit.logic === undefined) {\n\t                this._addPrevCriteria(crit);\n\t            }\n\t        }\n\t        // For all of the criteria children, update the arrows incase they require changing and set the listeners\n\t        for (var _b = 0, _c = this.s.criteria; _b < _c.length; _b++) {\n\t            var crit = _c[_b];\n\t            if (crit.criteria instanceof Criteria) {\n\t                crit.criteria.updateArrows(this.s.criteria.length > 1, false);\n\t                this._setCriteriaListeners(crit.criteria);\n\t            }\n\t        }\n\t    };\n\t    /**\n\t     * Redraws the Contents of the searchBuilder Groups and Criteria\n\t     */\n\t    Group.prototype.redrawContents = function () {\n\t        // Clear the container out and add the basic elements\n\t        $$1(this.dom.container)\n\t            .empty()\n\t            .append(this.dom.logicContainer)\n\t            .append(this.dom.add);\n\t        // Sort the criteria by index so that they appear in the correct order\n\t        this.s.criteria.sort(function (a, b) {\n\t            if (a.criteria.s.index < b.criteria.s.index) {\n\t                return -1;\n\t            }\n\t            else if (a.criteria.s.index > b.criteria.s.index) {\n\t                return 1;\n\t            }\n\t            return 0;\n\t        });\n\t        this.setListeners();\n\t        for (var i = 0; i < this.s.criteria.length; i++) {\n\t            var crit = this.s.criteria[i].criteria;\n\t            if (crit instanceof Criteria) {\n\t                // Reset the index to the new value\n\t                this.s.criteria[i].index = i;\n\t                this.s.criteria[i].criteria.s.index = i;\n\t                // Add to the group\n\t                $$1(this.s.criteria[i].criteria.dom.container).insertBefore(this.dom.add);\n\t                // Set listeners for various points\n\t                this._setCriteriaListeners(crit);\n\t                this.s.criteria[i].criteria.rebuild(this.s.criteria[i].criteria.getDetails());\n\t            }\n\t            else if (crit instanceof Group && crit.s.criteria.length > 0) {\n\t                // Reset the index to the new value\n\t                this.s.criteria[i].index = i;\n\t                this.s.criteria[i].criteria.s.index = i;\n\t                // Add the sub group to the group\n\t                $$1(this.s.criteria[i].criteria.dom.container).insertBefore(this.dom.add);\n\t                // Redraw the contents of the group\n\t                crit.redrawContents();\n\t                this._setGroupListeners(crit);\n\t            }\n\t            else {\n\t                // The group is empty so remove it\n\t                this.s.criteria.splice(i, 1);\n\t                i--;\n\t            }\n\t        }\n\t        this.setupLogic();\n\t    };\n\t    /**\n\t     * Resizes the logic button only rather than the entire dom.\n\t     */\n\t    Group.prototype.redrawLogic = function () {\n\t        for (var _i = 0, _a = this.s.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            if (crit instanceof Group) {\n\t                crit.redrawLogic();\n\t            }\n\t        }\n\t        this.setupLogic();\n\t    };\n\t    /**\n\t     * Search method, checking the row data against the criteria in the group\n\t     * @param rowData The row data to be compared\n\t     * @returns boolean The result of the search\n\t     */\n\t    Group.prototype.search = function (rowData, rowIdx) {\n\t        if (this.s.logic === 'AND') {\n\t            return this._andSearch(rowData, rowIdx);\n\t        }\n\t        else if (this.s.logic === 'OR') {\n\t            return this._orSearch(rowData, rowIdx);\n\t        }\n\t        return true;\n\t    };\n\t    /**\n\t     * Locates the groups logic button to the correct location on the page\n\t     */\n\t    Group.prototype.setupLogic = function () {\n\t        // Remove logic button\n\t        $$1(this.dom.logicContainer).remove();\n\t        $$1(this.dom.clear).remove();\n\t        // If there are no criteria in the group then keep the logic removed and return\n\t        if (this.s.criteria.length < 1) {\n\t            if (!this.s.isChild) {\n\t                $$1(this.dom.container).trigger('dtsb-destroy');\n\t                // Set criteria left margin\n\t                $$1(this.dom.container).css('margin-left', 0);\n\t            }\n\t            return;\n\t        }\n\t        // Set width, take 2 for the border\n\t        var height = $$1(this.dom.container).height() - 1;\n\t        $$1(this.dom.clear).height('0px');\n\t        $$1(this.dom.logicContainer).append(this.dom.clear).width(height);\n\t        // Prepend logic button\n\t        $$1(this.dom.container).prepend(this.dom.logicContainer);\n\t        this._setLogicListener();\n\t        // Set criteria left margin\n\t        $$1(this.dom.container).css('margin-left', $$1(this.dom.logicContainer).outerHeight(true));\n\t        var logicOffset = $$1(this.dom.logicContainer).offset();\n\t        // Set horizontal alignment\n\t        var currentLeft = logicOffset.left;\n\t        var groupLeft = $$1(this.dom.container).offset().left;\n\t        var shuffleLeft = currentLeft - groupLeft;\n\t        var newPos = currentLeft - shuffleLeft - $$1(this.dom.logicContainer).outerHeight(true);\n\t        $$1(this.dom.logicContainer).offset({ left: newPos });\n\t        // Set vertical alignment\n\t        var firstCrit = $$1(this.dom.logicContainer).next();\n\t        var currentTop = logicOffset.top;\n\t        var firstTop = $$1(firstCrit).offset().top;\n\t        var shuffleTop = currentTop - firstTop;\n\t        var newTop = currentTop - shuffleTop;\n\t        $$1(this.dom.logicContainer).offset({ top: newTop });\n\t        $$1(this.dom.clear).outerHeight($$1(this.dom.logicContainer).height());\n\t        this._setClearListener();\n\t    };\n\t    /**\n\t     * Sets listeners on the groups elements\n\t     */\n\t    Group.prototype.setListeners = function () {\n\t        var _this = this;\n\t        $$1(this.dom.add).unbind('click');\n\t        $$1(this.dom.add).on('click', function () {\n\t            // If this is the parent group then the logic button has not been added yet\n\t            if (!_this.s.isChild) {\n\t                $$1(_this.dom.container).prepend(_this.dom.logicContainer);\n\t            }\n\t            _this.addCriteria();\n\t            $$1(_this.dom.container).trigger('dtsb-add');\n\t            _this.s.dt.state.save();\n\t            return false;\n\t        });\n\t        for (var _i = 0, _a = this.s.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            crit.criteria.setListeners();\n\t        }\n\t        this._setClearListener();\n\t        this._setLogicListener();\n\t    };\n\t    /**\n\t     * Adds a criteria to the group\n\t     * @param crit Instance of Criteria to be added to the group\n\t     */\n\t    Group.prototype.addCriteria = function (crit, redraw) {\n\t        if (crit === void 0) { crit = null; }\n\t        if (redraw === void 0) { redraw = true; }\n\t        var index = crit === null ? this.s.criteria.length : crit.s.index;\n\t        var criteria = new Criteria(this.s.dt, this.s.opts, this.s.topGroup, index, this.s.depth);\n\t        // If a Criteria has been passed in then set the values to continue that\n\t        if (crit !== null) {\n\t            criteria.c = crit.c;\n\t            criteria.s = crit.s;\n\t            criteria.s.depth = this.s.depth;\n\t            criteria.classes = crit.classes;\n\t        }\n\t        criteria.populate();\n\t        var inserted = false;\n\t        for (var i = 0; i < this.s.criteria.length; i++) {\n\t            if (i === 0 && this.s.criteria[i].criteria.s.index > criteria.s.index) {\n\t                // Add the node for the criteria at the start of the group\n\t                $$1(criteria.getNode()).insertBefore(this.s.criteria[i].criteria.dom.container);\n\t                inserted = true;\n\t            }\n\t            else if (i < this.s.criteria.length - 1 &&\n\t                this.s.criteria[i].criteria.s.index < criteria.s.index &&\n\t                this.s.criteria[i + 1].criteria.s.index > criteria.s.index) {\n\t                // Add the node for the criteria in the correct location\n\t                $$1(criteria.getNode()).insertAfter(this.s.criteria[i].criteria.dom.container);\n\t                inserted = true;\n\t            }\n\t        }\n\t        if (!inserted) {\n\t            $$1(criteria.getNode()).insertBefore(this.dom.add);\n\t        }\n\t        // Add the details for this criteria to the array\n\t        this.s.criteria.push({\n\t            criteria: criteria,\n\t            index: index\n\t        });\n\t        this.s.criteria = this.s.criteria.sort(function (a, b) {\n\t            return a.criteria.s.index - b.criteria.s.index;\n\t        });\n\t        for (var _i = 0, _a = this.s.criteria; _i < _a.length; _i++) {\n\t            var opt = _a[_i];\n\t            if (opt.criteria instanceof Criteria) {\n\t                opt.criteria.updateArrows(this.s.criteria.length > 1, redraw);\n\t            }\n\t        }\n\t        this._setCriteriaListeners(criteria);\n\t        criteria.setListeners();\n\t        this.setupLogic();\n\t    };\n\t    /**\n\t     * Checks the group to see if it has any filled criteria\n\t     */\n\t    Group.prototype.checkFilled = function () {\n\t        for (var _i = 0, _a = this.s.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            if ((crit.criteria instanceof Criteria && crit.criteria.s.filled) ||\n\t                (crit.criteria instanceof Group && crit.criteria.checkFilled())) {\n\t                return true;\n\t            }\n\t        }\n\t        return false;\n\t    };\n\t    /**\n\t     * Gets the count for the number of criteria in this group and any sub groups\n\t     */\n\t    Group.prototype.count = function () {\n\t        var count = 0;\n\t        for (var _i = 0, _a = this.s.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            if (crit.criteria instanceof Group) {\n\t                count += crit.criteria.count();\n\t            }\n\t            else {\n\t                count++;\n\t            }\n\t        }\n\t        return count;\n\t    };\n\t    /**\n\t     * Rebuilds a sub group that previously existed\n\t     * @param loadedGroup The details of a group within this group\n\t     */\n\t    Group.prototype._addPrevGroup = function (loadedGroup) {\n\t        var idx = this.s.criteria.length;\n\t        var group = new Group(this.s.dt, this.c, this.s.topGroup, idx, true, this.s.depth + 1);\n\t        // Add the new group to the criteria array\n\t        this.s.criteria.push({\n\t            criteria: group,\n\t            index: idx,\n\t            logic: group.s.logic\n\t        });\n\t        // Rebuild it with the previous conditions for that group\n\t        group.rebuild(loadedGroup);\n\t        this.s.criteria[idx].criteria = group;\n\t        $$1(this.s.topGroup).trigger('dtsb-redrawContents');\n\t        this._setGroupListeners(group);\n\t    };\n\t    /**\n\t     * Rebuilds a criteria of this group that previously existed\n\t     * @param loadedCriteria The details of a criteria within the group\n\t     */\n\t    Group.prototype._addPrevCriteria = function (loadedCriteria) {\n\t        var idx = this.s.criteria.length;\n\t        var criteria = new Criteria(this.s.dt, this.s.opts, this.s.topGroup, idx, this.s.depth);\n\t        criteria.populate();\n\t        // Add the new criteria to the criteria array\n\t        this.s.criteria.push({\n\t            criteria: criteria,\n\t            index: idx\n\t        });\n\t        // Rebuild it with the previous conditions for that criteria\n\t        criteria.rebuild(loadedCriteria);\n\t        this.s.criteria[idx].criteria = criteria;\n\t        $$1(this.s.topGroup).trigger('dtsb-redrawContents');\n\t    };\n\t    /**\n\t     * Checks And the criteria using AND logic\n\t     * @param rowData The row data to be checked against the search criteria\n\t     * @returns boolean The result of the AND search\n\t     */\n\t    Group.prototype._andSearch = function (rowData, rowIdx) {\n\t        // If there are no criteria then return true for this group\n\t        if (this.s.criteria.length === 0) {\n\t            return true;\n\t        }\n\t        for (var _i = 0, _a = this.s.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            // If the criteria is not complete then skip it\n\t            if (crit.criteria instanceof Criteria && !crit.criteria.s.filled) {\n\t                continue;\n\t            }\n\t            // Otherwise if a single one fails return false\n\t            else if (!crit.criteria.search(rowData, rowIdx)) {\n\t                return false;\n\t            }\n\t        }\n\t        // If we get to here then everything has passed, so return true for the group\n\t        return true;\n\t    };\n\t    /**\n\t     * Checks And the criteria using OR logic\n\t     * @param rowData The row data to be checked against the search criteria\n\t     * @returns boolean The result of the OR search\n\t     */\n\t    Group.prototype._orSearch = function (rowData, rowIdx) {\n\t        // If there are no criteria in the group then return true\n\t        if (this.s.criteria.length === 0) {\n\t            return true;\n\t        }\n\t        // This will check to make sure that at least one criteria in the group is complete\n\t        var filledfound = false;\n\t        for (var _i = 0, _a = this.s.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            if (crit.criteria instanceof Criteria && crit.criteria.s.filled) {\n\t                // A completed criteria has been found so set the flag\n\t                filledfound = true;\n\t                // If the search passes then return true\n\t                if (crit.criteria.search(rowData, rowIdx)) {\n\t                    return true;\n\t                }\n\t            }\n\t            else if (crit.criteria instanceof Group && crit.criteria.checkFilled()) {\n\t                filledfound = true;\n\t                if (crit.criteria.search(rowData, rowIdx)) {\n\t                    return true;\n\t                }\n\t            }\n\t        }\n\t        // If we get here we need to return the inverse of filledfound,\n\t        //  as if any have been found and we are here then none have passed\n\t        return !filledfound;\n\t    };\n\t    /**\n\t     * Removes a criteria from the group\n\t     * @param criteria The criteria instance to be removed\n\t     */\n\t    Group.prototype._removeCriteria = function (criteria, group) {\n\t        if (group === void 0) { group = false; }\n\t        // If removing a criteria and there is only then then just destroy the group\n\t        if (this.s.criteria.length <= 1 && this.s.isChild) {\n\t            this.destroy();\n\t        }\n\t        else {\n\t            // Otherwise splice the given criteria out and redo the indexes\n\t            var last = void 0;\n\t            for (var i = 0; i < this.s.criteria.length; i++) {\n\t                if (this.s.criteria[i].index === criteria.s.index && (!group || this.s.criteria[i].criteria instanceof Group)) {\n\t                    last = i;\n\t                }\n\t            }\n\t            // We want to remove the last element with the desired index, as its replacement will be inserted before it\n\t            if (last !== undefined) {\n\t                this.s.criteria.splice(last, 1);\n\t            }\n\t            for (var i = 0; i < this.s.criteria.length; i++) {\n\t                this.s.criteria[i].index = i;\n\t                this.s.criteria[i].criteria.s.index = i;\n\t            }\n\t        }\n\t    };\n\t    /**\n\t     * Sets the listeners in group for a criteria\n\t     * @param criteria The criteria for the listeners to be set on\n\t     */\n\t    Group.prototype._setCriteriaListeners = function (criteria) {\n\t        var _this = this;\n\t        $$1(criteria.dom[\"delete\"])\n\t            .unbind('click')\n\t            .on('click', function () {\n\t            _this._removeCriteria(criteria);\n\t            $$1(criteria.dom.container).remove();\n\t            for (var _i = 0, _a = _this.s.criteria; _i < _a.length; _i++) {\n\t                var crit = _a[_i];\n\t                if (crit.criteria instanceof Criteria) {\n\t                    crit.criteria.updateArrows(_this.s.criteria.length > 1);\n\t                }\n\t            }\n\t            criteria.destroy();\n\t            _this.s.dt.draw();\n\t            $$1(_this.s.topGroup).trigger('dtsb-redrawContents');\n\t            $$1(_this.s.topGroup).trigger('dtsb-updateTitle');\n\t            return false;\n\t        });\n\t        $$1(criteria.dom.right)\n\t            .unbind('click')\n\t            .on('click', function () {\n\t            var idx = criteria.s.index;\n\t            var group = new Group(_this.s.dt, _this.s.opts, _this.s.topGroup, criteria.s.index, true, _this.s.depth + 1);\n\t            // Add the criteria that is to be moved to the new group\n\t            group.addCriteria(criteria);\n\t            // Update the details in the current groups criteria array\n\t            _this.s.criteria[idx].criteria = group;\n\t            _this.s.criteria[idx].logic = 'AND';\n\t            $$1(_this.s.topGroup).trigger('dtsb-redrawContents');\n\t            _this._setGroupListeners(group);\n\t            return false;\n\t        });\n\t        $$1(criteria.dom.left)\n\t            .unbind('click')\n\t            .on('click', function () {\n\t            _this.s.toDrop = new Criteria(_this.s.dt, _this.s.opts, _this.s.topGroup, criteria.s.index);\n\t            _this.s.toDrop.s = criteria.s;\n\t            _this.s.toDrop.c = criteria.c;\n\t            _this.s.toDrop.classes = criteria.classes;\n\t            _this.s.toDrop.populate();\n\t            // The dropCriteria event mutates the reference to the index so need to store it\n\t            var index = _this.s.toDrop.s.index;\n\t            $$1(_this.dom.container).trigger('dtsb-dropCriteria');\n\t            criteria.s.index = index;\n\t            _this._removeCriteria(criteria);\n\t            // By tracking the top level group we can directly trigger a redraw on it,\n\t            //  bubbling is also possible, but that is slow with deep levelled groups\n\t            $$1(_this.s.topGroup).trigger('dtsb-redrawContents');\n\t            _this.s.dt.draw();\n\t            return false;\n\t        });\n\t    };\n\t    /**\n\t     * Set's the listeners for the group clear button\n\t     */\n\t    Group.prototype._setClearListener = function () {\n\t        var _this = this;\n\t        $$1(this.dom.clear)\n\t            .unbind('click')\n\t            .on('click', function () {\n\t            if (!_this.s.isChild) {\n\t                $$1(_this.dom.container).trigger('dtsb-clearContents');\n\t                return false;\n\t            }\n\t            _this.destroy();\n\t            $$1(_this.s.topGroup).trigger('dtsb-updateTitle');\n\t            $$1(_this.s.topGroup).trigger('dtsb-redrawContents');\n\t            return false;\n\t        });\n\t    };\n\t    /**\n\t     * Sets listeners for sub groups of this group\n\t     * @param group The sub group that the listeners are to be set on\n\t     */\n\t    Group.prototype._setGroupListeners = function (group) {\n\t        var _this = this;\n\t        // Set listeners for the new group\n\t        $$1(group.dom.add)\n\t            .unbind('click')\n\t            .on('click', function () {\n\t            _this.setupLogic();\n\t            $$1(_this.dom.container).trigger('dtsb-add');\n\t            return false;\n\t        });\n\t        $$1(group.dom.container)\n\t            .unbind('dtsb-add')\n\t            .on('dtsb-add', function () {\n\t            _this.setupLogic();\n\t            $$1(_this.dom.container).trigger('dtsb-add');\n\t            return false;\n\t        });\n\t        $$1(group.dom.container)\n\t            .unbind('dtsb-destroy')\n\t            .on('dtsb-destroy', function () {\n\t            _this._removeCriteria(group, true);\n\t            $$1(group.dom.container).remove();\n\t            _this.setupLogic();\n\t            return false;\n\t        });\n\t        $$1(group.dom.container)\n\t            .unbind('dtsb-dropCriteria')\n\t            .on('dtsb-dropCriteria', function () {\n\t            var toDrop = group.s.toDrop;\n\t            toDrop.s.index = group.s.index;\n\t            toDrop.updateArrows(_this.s.criteria.length > 1, false);\n\t            _this.addCriteria(toDrop, false);\n\t            return false;\n\t        });\n\t        group.setListeners();\n\t    };\n\t    /**\n\t     * Sets up the Group instance, setting listeners and appending elements\n\t     */\n\t    Group.prototype._setup = function () {\n\t        this.setListeners();\n\t        $$1(this.dom.add).text(this.s.dt.i18n('searchBuilder.add', this.c.i18n.add));\n\t        $$1(this.dom.logic).text(this.c.logic === 'OR'\n\t            ? this.s.dt.i18n('searchBuilder.logicOr', this.c.i18n.logicOr)\n\t            : this.s.dt.i18n('searchBuilder.logicAnd', this.c.i18n.logicAnd));\n\t        this.s.logic = this.c.logic === 'OR' ? 'OR' : 'AND';\n\t        if (this.c.greyscale) {\n\t            $$1(this.dom.logic).addClass(this.classes.greyscale);\n\t        }\n\t        $$1(this.dom.logicContainer).append(this.dom.logic).append(this.dom.clear);\n\t        // Only append the logic button immediately if this is a sub group,\n\t        //  otherwise it will be prepended later when adding a criteria\n\t        if (this.s.isChild) {\n\t            $$1(this.dom.container).append(this.dom.logicContainer);\n\t        }\n\t        $$1(this.dom.container).append(this.dom.add);\n\t    };\n\t    /**\n\t     * Sets the listener for the logic button\n\t     */\n\t    Group.prototype._setLogicListener = function () {\n\t        var _this = this;\n\t        $$1(this.dom.logic)\n\t            .unbind('click')\n\t            .on('click', function () {\n\t            _this._toggleLogic();\n\t            _this.s.dt.draw();\n\t            for (var _i = 0, _a = _this.s.criteria; _i < _a.length; _i++) {\n\t                var crit = _a[_i];\n\t                crit.criteria.setListeners();\n\t            }\n\t        });\n\t    };\n\t    /**\n\t     * Toggles the logic for the group\n\t     */\n\t    Group.prototype._toggleLogic = function () {\n\t        if (this.s.logic === 'OR') {\n\t            this.s.logic = 'AND';\n\t            $$1(this.dom.logic).text(this.s.dt.i18n('searchBuilder.logicAnd', this.c.i18n.logicAnd));\n\t        }\n\t        else if (this.s.logic === 'AND') {\n\t            this.s.logic = 'OR';\n\t            $$1(this.dom.logic).text(this.s.dt.i18n('searchBuilder.logicOr', this.c.i18n.logicOr));\n\t        }\n\t    };\n\t    Group.version = '1.0.0';\n\t    Group.classes = {\n\t        add: 'dtsb-add',\n\t        button: 'dtsb-button',\n\t        clearGroup: 'dtsb-clearGroup',\n\t        greyscale: 'dtsb-greyscale',\n\t        group: 'dtsb-group',\n\t        inputButton: 'dtsb-iptbtn',\n\t        logic: 'dtsb-logic',\n\t        logicContainer: 'dtsb-logicContainer'\n\t    };\n\t    Group.defaults = {\n\t        columns: true,\n\t        conditions: {\n\t            'date': Criteria.dateConditions,\n\t            'html': Criteria.stringConditions,\n\t            'html-num': Criteria.numConditions,\n\t            'html-num-fmt': Criteria.numFmtConditions,\n\t            'luxon': Criteria.luxonDateConditions,\n\t            'moment': Criteria.momentDateConditions,\n\t            'num': Criteria.numConditions,\n\t            'num-fmt': Criteria.numFmtConditions,\n\t            'string': Criteria.stringConditions\n\t        },\n\t        depthLimit: false,\n\t        filterChanged: undefined,\n\t        greyscale: false,\n\t        i18n: {\n\t            add: 'Add Condition',\n\t            button: {\n\t                0: 'Search Builder',\n\t                _: 'Search Builder (%d)'\n\t            },\n\t            clearAll: 'Clear All',\n\t            condition: 'Condition',\n\t            data: 'Data',\n\t            deleteTitle: 'Delete filtering rule',\n\t            leftTitle: 'Outdent criteria',\n\t            logicAnd: 'And',\n\t            logicOr: 'Or',\n\t            rightTitle: 'Indent criteria',\n\t            title: {\n\t                0: 'Custom Search Builder',\n\t                _: 'Custom Search Builder (%d)'\n\t            },\n\t            value: 'Value',\n\t            valueJoiner: 'and'\n\t        },\n\t        logic: 'AND',\n\t        orthogonal: {\n\t            display: 'display',\n\t            search: 'filter'\n\t        },\n\t        preDefined: false\n\t    };\n\t    return Group;\n\t}());\n\n\tvar $$2;\n\tvar DataTable$2;\n\t/**\n\t * Sets the value of jQuery for use in the file\n\t * @param jq the instance of jQuery to be set\n\t */\n\tfunction setJQuery$2(jq) {\n\t    $$2 = jq;\n\t    DataTable$2 = jq.fn.DataTable;\n\t}\n\t/**\n\t * SearchBuilder class for DataTables.\n\t * Allows for complex search queries to be constructed and implemented on a DataTable\n\t */\n\tvar SearchBuilder = /** @class */ (function () {\n\t    function SearchBuilder(builderSettings, opts) {\n\t        var _this = this;\n\t        // Check that the required version of DataTables is included\n\t        if (!DataTable$2 || !DataTable$2.versionCheck || !DataTable$2.versionCheck('1.10.0')) {\n\t            throw new Error('SearchBuilder requires DataTables 1.10 or newer');\n\t        }\n\t        // Check that Select is included\n\t        if (!DataTable$2.DateTime) {\n\t            throw new Error('SearchPane requires DateTime');\n\t        }\n\t        var table = new DataTable$2.Api(builderSettings);\n\t        this.classes = $$2.extend(true, {}, SearchBuilder.classes);\n\t        // Get options from user\n\t        this.c = $$2.extend(true, {}, SearchBuilder.defaults, opts);\n\t        this.dom = {\n\t            clearAll: $$2('<button type=\"button\">' + table.i18n('searchBuilder.clearAll', this.c.i18n.clearAll) + '</button>')\n\t                .addClass(this.classes.clearAll)\n\t                .addClass(this.classes.button)\n\t                .attr('type', 'button'),\n\t            container: $$2('<div/>')\n\t                .addClass(this.classes.container),\n\t            title: $$2('<div/>')\n\t                .addClass(this.classes.title),\n\t            titleRow: $$2('<div/>')\n\t                .addClass(this.classes.titleRow),\n\t            topGroup: undefined\n\t        };\n\t        this.s = {\n\t            dt: table,\n\t            opts: opts,\n\t            search: undefined,\n\t            topGroup: undefined\n\t        };\n\t        // If searchbuilder is already defined for this table then return\n\t        if (table.settings()[0]._searchBuilder !== undefined) {\n\t            return;\n\t        }\n\t        table.settings()[0]._searchBuilder = this;\n\t        // Run the remaining setup when the table is initialised\n\t        if (this.s.dt.settings()[0]._bInitComplete) {\n\t            this._setUp();\n\t        }\n\t        else {\n\t            table.one('init.dt', function () {\n\t                _this._setUp();\n\t            });\n\t        }\n\t        return this;\n\t    }\n\t    /**\n\t     * Gets the details required to rebuild the SearchBuilder as it currently is\n\t     */\n\t    SearchBuilder.prototype.getDetails = function () {\n\t        return this.s.topGroup.getDetails();\n\t    };\n\t    /**\n\t     * Getter for the node of the container for the searchBuilder\n\t     * @returns JQuery<HTMLElement> the node of the container\n\t     */\n\t    SearchBuilder.prototype.getNode = function () {\n\t        return this.dom.container;\n\t    };\n\t    /**\n\t     * Rebuilds the SearchBuilder to a state that is provided\n\t     * @param details The details required to perform a rebuild\n\t     */\n\t    SearchBuilder.prototype.rebuild = function (details) {\n\t        $$2(this.dom.clearAll).click();\n\t        // If there are no details to rebuild then return\n\t        if (details === undefined || details === null) {\n\t            return this;\n\t        }\n\t        this.s.topGroup.rebuild(details);\n\t        this.s.dt.draw();\n\t        this.s.topGroup.setListeners();\n\t        return this;\n\t    };\n\t    /**\n\t     * Applies the defaults to preDefined criteria\n\t     * @param preDef the array of criteria to be processed.\n\t     */\n\t    SearchBuilder.prototype._applyPreDefDefaults = function (preDef) {\n\t        var _this = this;\n\t        if (preDef.criteria !== undefined && preDef.logic === undefined) {\n\t            preDef.logic = 'AND';\n\t        }\n\t        var _loop_1 = function (crit) {\n\t            // Apply the defaults to any further criteria\n\t            if (crit.criteria !== undefined) {\n\t                crit = this_1._applyPreDefDefaults(crit);\n\t            }\n\t            else {\n\t                this_1.s.dt.columns().every(function (index) {\n\t                    if (_this.s.dt.settings()[0].aoColumns[index].sTitle === crit.data) {\n\t                        crit.dataIdx = index;\n\t                    }\n\t                });\n\t            }\n\t        };\n\t        var this_1 = this;\n\t        for (var _i = 0, _a = preDef.criteria; _i < _a.length; _i++) {\n\t            var crit = _a[_i];\n\t            _loop_1(crit);\n\t        }\n\t        return preDef;\n\t    };\n\t    /**\n\t     * Set's up the SearchBuilder\n\t     */\n\t    SearchBuilder.prototype._setUp = function (loadState) {\n\t        var _this = this;\n\t        if (loadState === void 0) { loadState = true; }\n\t        this.s.topGroup = new Group(this.s.dt, this.c, undefined);\n\t        this._setClearListener();\n\t        this.s.dt.on('stateSaveParams', function (e, settings, data) {\n\t            data.searchBuilder = _this.getDetails();\n\t            data.page = _this.s.dt.page();\n\t        });\n\t        this._build();\n\t        if (loadState) {\n\t            var loadedState = this.s.dt.state.loaded();\n\t            // If the loaded State is not null rebuild based on it for statesave\n\t            if (loadedState !== null && loadedState.searchBuilder !== undefined) {\n\t                this.s.topGroup.rebuild(loadedState.searchBuilder);\n\t                $$2(this.s.topGroup.dom.container).trigger('dtsb-redrawContents');\n\t                this.s.dt.page(loadedState.page).draw('page');\n\t                this.s.topGroup.setListeners();\n\t            }\n\t            // Otherwise load any predefined options\n\t            else if (this.c.preDefined !== false) {\n\t                this.c.preDefined = this._applyPreDefDefaults(this.c.preDefined);\n\t                this.rebuild(this.c.preDefined);\n\t            }\n\t        }\n\t        this._setEmptyListener();\n\t        this.s.dt.state.save();\n\t    };\n\t    /**\n\t     * Updates the title of the SearchBuilder\n\t     * @param count the number of filters in the SearchBuilder\n\t     */\n\t    SearchBuilder.prototype._updateTitle = function (count) {\n\t        $$2(this.dom.title).text(this.s.dt.i18n('searchBuilder.title', this.c.i18n.title, count));\n\t    };\n\t    /**\n\t     * Builds all of the dom elements together\n\t     */\n\t    SearchBuilder.prototype._build = function () {\n\t        var _this = this;\n\t        // Empty and setup the container\n\t        $$2(this.dom.clearAll).remove();\n\t        $$2(this.dom.container).empty();\n\t        var count = this.s.topGroup.count();\n\t        this._updateTitle(count);\n\t        $$2(this.dom.titleRow).append(this.dom.title);\n\t        $$2(this.dom.container).append(this.dom.titleRow);\n\t        this.dom.topGroup = this.s.topGroup.getNode();\n\t        $$2(this.dom.container).append(this.dom.topGroup);\n\t        this._setRedrawListener();\n\t        var tableNode = this.s.dt.table(0).node();\n\t        if ($$2.fn.dataTable.ext.search.indexOf(this.s.search) === -1) {\n\t            // Custom search function for SearchBuilder\n\t            this.s.search = function (settings, searchData, dataIndex, origData) {\n\t                if (settings.nTable !== tableNode) {\n\t                    return true;\n\t                }\n\t                return _this.s.topGroup.search(searchData, dataIndex);\n\t            };\n\t            // Add SearchBuilder search function to the dataTables search array\n\t            $$2.fn.dataTable.ext.search.push(this.s.search);\n\t        }\n\t        // Register an Api method for getting the column type\n\t        $$2.fn.DataTable.Api.registerPlural('columns().type()', 'column().type()', function (selector, opts) {\n\t            return this.iterator('column', function (settings, column) {\n\t                return settings.aoColumns[column].sType;\n\t            }, 1);\n\t        });\n\t        this.s.dt.on('destroy.dt', function () {\n\t            $$2(_this.dom.container).remove();\n\t            $$2(_this.dom.clearAll).remove();\n\t            var searchIdx = $$2.fn.dataTable.ext.search.indexOf(_this.s.search);\n\t            while (searchIdx !== -1) {\n\t                $$2.fn.dataTable.ext.search.splice(searchIdx, 1);\n\t                searchIdx = $$2.fn.dataTable.ext.search.indexOf(_this.s.search);\n\t            }\n\t        });\n\t    };\n\t    /**\n\t     * Checks if the clearAll button should be added or not\n\t     */\n\t    SearchBuilder.prototype._checkClear = function () {\n\t        if (this.s.topGroup.s.criteria.length > 0) {\n\t            $$2(this.dom.clearAll).insertAfter(this.dom.title);\n\t            this._setClearListener();\n\t        }\n\t        else {\n\t            $$2(this.dom.clearAll).remove();\n\t        }\n\t    };\n\t    /**\n\t     * Update the count in the title/button\n\t     * @param count Number of filters applied\n\t     */\n\t    SearchBuilder.prototype._filterChanged = function (count) {\n\t        var fn = this.c.filterChanged;\n\t        if (typeof fn === 'function') {\n\t            fn(count, this.s.dt.i18n('searchBuilder.button', this.c.i18n.button, count));\n\t        }\n\t    };\n\t    /**\n\t     * Set the listener for the clear button\n\t     */\n\t    SearchBuilder.prototype._setClearListener = function () {\n\t        var _this = this;\n\t        $$2(this.dom.clearAll).unbind('click');\n\t        $$2(this.dom.clearAll).on('click', function () {\n\t            _this.s.topGroup = new Group(_this.s.dt, _this.c, undefined);\n\t            _this._build();\n\t            _this.s.dt.draw();\n\t            _this.s.topGroup.setListeners();\n\t            $$2(_this.dom.clearAll).remove();\n\t            _this._setEmptyListener();\n\t            _this._filterChanged(0);\n\t            return false;\n\t        });\n\t    };\n\t    /**\n\t     * Set the listener for the Redraw event\n\t     */\n\t    SearchBuilder.prototype._setRedrawListener = function () {\n\t        var _this = this;\n\t        $$2(this.s.topGroup.dom.container).unbind('dtsb-redrawContents');\n\t        $$2(this.s.topGroup.dom.container).on('dtsb-redrawContents', function () {\n\t            _this._checkClear();\n\t            _this.s.topGroup.redrawContents();\n\t            _this.s.topGroup.setupLogic();\n\t            _this._setEmptyListener();\n\t            var count = _this.s.topGroup.count();\n\t            _this._updateTitle(count);\n\t            _this._filterChanged(count);\n\t            _this.s.dt.state.save();\n\t        });\n\t        $$2(this.s.topGroup.dom.container).unbind('dtsb-redrawLogic');\n\t        $$2(this.s.topGroup.dom.container).on('dtsb-redrawLogic', function () {\n\t            _this.s.topGroup.redrawLogic();\n\t            var count = _this.s.topGroup.count();\n\t            _this._updateTitle(count);\n\t            _this._filterChanged(count);\n\t        });\n\t        $$2(this.s.topGroup.dom.container).on('dtsb-add', function () {\n\t            var count = _this.s.topGroup.count();\n\t            _this._updateTitle(count);\n\t            _this._filterChanged(count);\n\t        });\n\t        $$2(this.s.dt).on('postEdit postCreate postRemove', function () {\n\t            _this.s.topGroup.redrawContents();\n\t        });\n\t        $$2(this.s.topGroup.dom.container).unbind('dtsb-clearContents');\n\t        $$2(this.s.topGroup.dom.container).on('dtsb-clearContents', function () {\n\t            _this._setUp(false);\n\t            _this._filterChanged(0);\n\t            _this.s.dt.draw();\n\t        });\n\t        $$2(this.s.topGroup.dom.container).on('dtsb-updateTitle', function () {\n\t            var count = _this.s.topGroup.count();\n\t            _this._updateTitle(count);\n\t            _this._filterChanged(count);\n\t        });\n\t    };\n\t    /**\n\t     * Sets listeners to check whether clearAll should be added or removed\n\t     */\n\t    SearchBuilder.prototype._setEmptyListener = function () {\n\t        var _this = this;\n\t        $$2(this.s.topGroup.dom.add).on('click', function () {\n\t            _this._checkClear();\n\t        });\n\t        $$2(this.s.topGroup.dom.container).on('dtsb-destroy', function () {\n\t            $$2(_this.dom.clearAll).remove();\n\t        });\n\t    };\n\t    SearchBuilder.version = '1.0.1';\n\t    SearchBuilder.classes = {\n\t        button: 'dtsb-button',\n\t        clearAll: 'dtsb-clearAll',\n\t        container: 'dtsb-searchBuilder',\n\t        inputButton: 'dtsb-iptbtn',\n\t        title: 'dtsb-title',\n\t        titleRow: 'dtsb-titleRow'\n\t    };\n\t    SearchBuilder.defaults = {\n\t        columns: true,\n\t        conditions: {\n\t            'date': Criteria.dateConditions,\n\t            'html': Criteria.stringConditions,\n\t            'html-num': Criteria.numConditions,\n\t            'html-num-fmt': Criteria.numFmtConditions,\n\t            'luxon': Criteria.luxonDateConditions,\n\t            'moment': Criteria.momentDateConditions,\n\t            'num': Criteria.numConditions,\n\t            'num-fmt': Criteria.numFmtConditions,\n\t            'string': Criteria.stringConditions\n\t        },\n\t        depthLimit: false,\n\t        filterChanged: undefined,\n\t        greyscale: false,\n\t        i18n: {\n\t            add: 'Add Condition',\n\t            button: {\n\t                0: 'Search Builder',\n\t                _: 'Search Builder (%d)'\n\t            },\n\t            clearAll: 'Clear All',\n\t            condition: 'Condition',\n\t            conditions: {\n\t                array: {\n\t                    contains: 'Contains',\n\t                    empty: 'Empty',\n\t                    equals: 'Equals',\n\t                    not: 'Not',\n\t                    notEmpty: 'Not Empty',\n\t                    without: 'Without'\n\t                },\n\t                date: {\n\t                    after: 'After',\n\t                    before: 'Before',\n\t                    between: 'Between',\n\t                    empty: 'Empty',\n\t                    equals: 'Equals',\n\t                    not: 'Not',\n\t                    notBetween: 'Not Between',\n\t                    notEmpty: 'Not Empty'\n\t                },\n\t                number: {\n\t                    between: 'Between',\n\t                    empty: 'Empty',\n\t                    equals: 'Equals',\n\t                    gt: 'Greater Than',\n\t                    gte: 'Greater Than Equal To',\n\t                    lt: 'Less Than',\n\t                    lte: 'Less Than Equal To',\n\t                    not: 'Not',\n\t                    notBetween: 'Not Between',\n\t                    notEmpty: 'Not Empty'\n\t                },\n\t                string: {\n\t                    contains: 'Contains',\n\t                    empty: 'Empty',\n\t                    endsWith: 'Ends With',\n\t                    equals: 'Equals',\n\t                    not: 'Not',\n\t                    notEmpty: 'Not Empty',\n\t                    startsWith: 'Starts With'\n\t                }\n\t            },\n\t            data: 'Data',\n\t            deleteTitle: 'Delete filtering rule',\n\t            leftTitle: 'Outdent criteria',\n\t            logicAnd: 'And',\n\t            logicOr: 'Or',\n\t            rightTitle: 'Indent criteria',\n\t            title: {\n\t                0: 'Custom Search Builder',\n\t                _: 'Custom Search Builder (%d)'\n\t            },\n\t            value: 'Value',\n\t            valueJoiner: 'and'\n\t        },\n\t        logic: 'AND',\n\t        orthogonal: {\n\t            display: 'display',\n\t            search: 'filter'\n\t        },\n\t        preDefined: false\n\t    };\n\t    return SearchBuilder;\n\t}());\n\n\t/*! SearchBuilder 1.0.1\n\t * ©2020 SpryMedia Ltd - datatables.net/license/mit\n\t */\n\t// DataTables extensions common UMD. Note that this allows for AMD, CommonJS\n\t// (with window and jQuery being allowed as parameters to the returned\n\t// function) or just default browser loading.\n\t(function (factory) {\n\t    if (typeof define === 'function' && define.amd) {\n\t        // AMD\n\t        define(['jquery', 'datatables.net'], function ($) {\n\t            return factory($, window, document);\n\t        });\n\t    }\n\t    else if (typeof exports === 'object') {\n\t        // CommonJS\n\t        module.exports = function (root, $) {\n\t            if (!root) {\n\t                root = window;\n\t            }\n\t            if (!$ || !$.fn.dataTable) {\n\t                $ = require('datatables.net')(root, $).$;\n\t            }\n\t            return factory($, root, root.document);\n\t        };\n\t    }\n\t    else {\n\t        // Browser - assume jQuery has already been loaded\n\t        factory(window.jQuery, window, document);\n\t    }\n\t}(function ($, window, document) {\n\t    setJQuery$2($);\n\t    setJQuery$1($);\n\t    setJQuery($);\n\t    var DataTable = $.fn.dataTable;\n\t    $.fn.dataTable.SearchBuilder = SearchBuilder;\n\t    $.fn.DataTable.SearchBuilder = SearchBuilder;\n\t    $.fn.dataTable.Group = Group;\n\t    $.fn.DataTable.Group = Group;\n\t    $.fn.dataTable.Criteria = Criteria;\n\t    $.fn.DataTable.Criteria = Criteria;\n\t    var apiRegister = $.fn.dataTable.Api.register;\n\t    // Set up object for plugins\n\t    $.fn.dataTable.ext.searchBuilder = {\n\t        conditions: {}\n\t    };\n\t    $.fn.dataTable.ext.buttons.searchBuilder = {\n\t        action: function (e, dt, node, config) {\n\t            e.stopPropagation();\n\t            this.popover(config._searchBuilder.getNode(), {\n\t                align: 'dt-container'\n\t            });\n\t        },\n\t        config: {},\n\t        init: function (dt, node, config) {\n\t            var sb = new $.fn.dataTable.SearchBuilder(dt, $.extend({\n\t                filterChanged: function (count, text) {\n\t                    dt.button(node).text(text);\n\t                }\n\t            }, config.config));\n\t            dt.button(node).text(config.text || dt.i18n('searchBuilder.button', sb.c.i18n.button, 0));\n\t            config._searchBuilder = sb;\n\t        },\n\t        text: null\n\t    };\n\t    apiRegister('searchBuilder.getDetails()', function () {\n\t        var ctx = this.context[0];\n\t        return ctx._searchBuilder.getDetails();\n\t    });\n\t    apiRegister('searchBuilder.rebuild()', function (details) {\n\t        var ctx = this.context[0];\n\t        ctx._searchBuilder.rebuild(details);\n\t        return this;\n\t    });\n\t    apiRegister('searchBuilder.container()', function () {\n\t        var ctx = this.context[0];\n\t        return ctx._searchBuilder.getNode();\n\t    });\n\t    /**\n\t     * Init function for SearchBuilder\n\t     * @param settings the settings to be applied\n\t     * @param options the options for SearchBuilder\n\t     * @returns JQUERY<HTMLElement> Returns the node of the SearchBuilder\n\t     */\n\t    function _init(settings, options) {\n\t        var api = new DataTable.Api(settings);\n\t        var opts = options\n\t            ? options\n\t            : api.init().searchBuilder || DataTable.defaults.searchBuilder;\n\t        var searchBuilder = new SearchBuilder(api, opts);\n\t        var node = searchBuilder.getNode();\n\t        return node;\n\t    }\n\t    // Attach a listener to the document which listens for DataTables initialisation\n\t    // events so we can automatically initialise\n\t    $(document).on('preInit.dt.dtsp', function (e, settings, json) {\n\t        if (e.namespace !== 'dt') {\n\t            return;\n\t        }\n\t        if (settings.oInit.searchBuilder ||\n\t            DataTable.defaults.searchBuilder) {\n\t            if (!settings._searchBuilder) {\n\t                _init(settings);\n\t            }\n\t        }\n\t    });\n\t    // DataTables `dom` feature option\n\t    DataTable.ext.feature.push({\n\t        cFeature: 'Q',\n\t        fnInit: _init\n\t    });\n\t    // DataTables 2 layout feature\n\t    if (DataTable.ext.features) {\n\t        DataTable.ext.features.register('searchBuilder', _init);\n\t    }\n\t}));\n\n}());\n"]}