/**
* HideSeek-Mod jQuery plugin
*
* @copyright Copyright 2015, Dimitris Krestos
* @license Apache License, Version 2.0 (http://www.opensource.org/licenses/apache2.0.php)
* @link http://vdw.staytuned.gr
* @version v0.8.3
*
* Dependencies are include in minified versions at the bottom:
* 1. Highlight v4 by Johann Burkard
*
* Sample html structure
*
*
*
*
* or
*
*
*
* item 1
* ...
* item 2
*
*
* or any similar structure...
*/
!function(c,t){"use strict";c.fn.hideseek=function(i){i=c.extend({list:".hideseek-data",nodata:"",attribute:"text",matches:!1,highlight:!1,ignore:"",headers:"",navigation:!1,ignore_accents:!1,hidden_mode:!1,min_chars:1,throttle:0},i);return this.each(function(){var h=c(this);h.opts=[],h.state={},c.map(["list","nodata","attribute","matches","highlight","ignore","headers","navigation","ignore_accents","hidden_mode","min_chars","throttle"],function(e,t){h.opts[e]=h.data(e)||i[e]}),h.opts.headers&&(h.opts.ignore+=h.opts.ignore?", "+h.opts.headers:h.opts.headers);var l=function(e){return e=e.toLowerCase(),h.opts.ignore_accents?t.removeAccents(e):e},d=c(h.opts.list);h.opts.navigation&&h.attr("autocomplete","off"),h.opts.hidden_mode&&d.children().hide(),h.keyup(function(t,i){if(!i||"number"!=typeof i||i<=0)return t;var s=0;return function(){var e=arguments;clearTimeout(s),s=setTimeout(function(){t.apply(null,e)},i)}}(function(e){var t,i,s,n,a=l(h.val());function o(e){h.opts.highlight?e.removeHighlight().highlight(a,h.opts.ignore_accents).show():e.show()}function r(e){return e.children(".selected:visible")}h.opts.min_chars&&a.length
*
* @license MIT
* @author Johann Burkard
* @link http://johannburkard.de
*/
function($,hideseek){$.fn.highlight=function(e,l){return this.length&&e&&e.length?this.each(function(){!function e(t,i){var s=0;if(3==t.nodeType){var n=(l?hideseek.removeAccents(t.data):t.data).toUpperCase().indexOf(i);if(0<=n){var a=document.createElement("span");a.className="highlight";var o=t.splitText(n),r=(o.splitText(i.length),o.cloneNode(!0));a.appendChild(r),o.parentNode.replaceChild(a,o),s=1}}else if(1==t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName))for(var h=0;h