Ajax Search Lite - Version 4.10

Version Description

  • The plugin no longer requires jQuery, it had been reworked to more efficient ES6 standards. By default, the old "legacy" scripts are still in use for existing installations - please see this documentation on how to change it. It will be automatically changed in a future release.
  • Added a results page live loader feature.
  • Added an option to change the results window width
  • It is now possible to change the date format manually for the live results
  • Fixed various minor issues
Download this release

Release Info

Developer wpdreams
Plugin Icon 128x128 Ajax Search Lite
Version 4.10
Comparing to
See all releases

Code changes from version 4.9.5 to 4.10

Files changed (61) hide show
  1. ajax-search-lite.php +3 -3
  2. backend/compatibility.php +2 -2
  3. backend/settings.php +25 -24
  4. backend/settings/assets/compatibility_settings.js +1 -8
  5. backend/settings/assets/js/jquery.conditionals.js +157 -0
  6. backend/settings/assets/search_instance.js +2 -206
  7. backend/settings/assets/types.js +2 -2
  8. backend/settings/default_options.php +26 -7
  9. backend/tabs/compatibility/cssjs_options.php +16 -24
  10. backend/tabs/instance/advanced/content.php +8 -0
  11. backend/tabs/instance/advanced_options.php +1 -1
  12. backend/tabs/instance/general/behavior.php +31 -21
  13. backend/tabs/instance/general/ordering.php +8 -2
  14. backend/tabs/instance/general/results_page_live_loader.php +77 -0
  15. backend/tabs/instance/general/sources.php +1 -1
  16. backend/tabs/instance/general_options.php +8 -4
  17. backend/tabs/instance/layout/box_layout.php +35 -8
  18. backend/tabs/instance/layout/keyword_highlight.php +45 -41
  19. backend/tabs/instance/layout/results_layout.php +51 -5
  20. css/style.basic.css +1059 -1
  21. includes/classes/actions/class-asl-stylesheets.php +53 -34
  22. includes/classes/ajax/class-asl-maintenance.php +1 -1
  23. includes/classes/core/class-asl-filters.php +7 -1
  24. includes/classes/core/class-asl-globals.php +14 -0
  25. includes/classes/core/class-asl-init.php +165 -155
  26. includes/classes/core/class-asl-instances.php +1 -0
  27. includes/classes/core/class-asl-manager.php +1 -0
  28. includes/classes/core/class-asl-scripts-legacy.php +173 -0
  29. includes/classes/core/class-asl-scripts.php +306 -0
  30. includes/classes/core/core.inc.php +3 -1
  31. includes/classes/etc/class-asl_helpers.php +1 -1
  32. includes/classes/filters/class-asl-abstract.php +1 -1
  33. includes/classes/filters/class-asl-etc_fixes.php +12 -1
  34. includes/classes/filters/class-asl-formoverride.php +1 -8
  35. includes/classes/filters/class-asl-searchoverride.php +1 -1
  36. includes/classes/search/class-asl-search-cpt.php +1 -1
  37. includes/classes/search/class-asl-search.php +1 -1
  38. includes/classes/shortcodes/class-asl-search.php +0 -7
  39. includes/functions/functions.php +84 -0
  40. includes/views/asl.shortcode.data.php +12 -0
  41. includes/views/asl.shortcode.php +35 -389
  42. includes/views/asl.shortcode.probox.php +67 -0
  43. includes/views/asl.shortcode.results.php +26 -0
  44. includes/views/asl.shortcode.script.php +85 -0
  45. includes/views/asl.shortcode.settings.php +201 -0
  46. js/legacy/min-scoped/jquery.ajaxsearchlite.min.js +5365 -0
  47. js/legacy/min/jquery.ajaxsearchlite.min.js +152 -0
  48. js/{nomin-scoped → legacy/nomin-scoped}/asl_wrapper.js +86 -3
  49. js/{nomin-scoped → legacy/nomin-scoped}/asljquery.js +0 -0
  50. js/{nomin → legacy/nomin-scoped}/jquery.ajaxsearchlite.js +164 -143
  51. js/{nomin-scoped → legacy/nomin-scoped}/jquery.highlight.js +2 -2
  52. js/{nomin-scoped → legacy/nomin-scoped}/simplebar.js +63 -63
  53. js/{nomin → legacy/nomin}/asl_wrapper.js +84 -1
  54. js/{nomin-scoped → legacy/nomin}/jquery.ajaxsearchlite.js +162 -145
  55. js/{nomin → legacy/nomin}/jquery.highlight.js +0 -0
  56. js/{nomin → legacy/nomin}/simplebar.js +61 -61
  57. js/min-scoped/jquery.ajaxsearchlite.min.js +0 -4
  58. js/min/external/simplebar.js +70 -0
  59. js/min/jquery.ajaxsearchlite.min.js +0 -3
  60. js/min/plugin/merged/asl-prereq-and-wrapper.js +51 -0
  61. js/min/plugin/merged/asl.js +125 -0
ajax-search-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ajax Search Lite
4
  Plugin URI: http://wp-dreams.com
5
  Description: The lite version of the most powerful ajax powered search engine for WordPress.
6
- Version: 4.9.5
7
  Author: Ernest Marcinko
8
  Author URI: http://wp-dreams.com
9
  Text Domain: ajax-search-lite
@@ -26,8 +26,8 @@ define(
26
  str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
27
  );
28
  define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
29
- define('ASL_CURRENT_VERSION', 4750);
30
- define('ASL_CURR_VER_STRING', "4.9.5");
31
  define('ASL_DEBUG', 0);
32
  define('ASL_DEMO', get_option('wd_asl_demo', 0) );
33
 
3
  Plugin Name: Ajax Search Lite
4
  Plugin URI: http://wp-dreams.com
5
  Description: The lite version of the most powerful ajax powered search engine for WordPress.
6
+ Version: 4.10
7
  Author: Ernest Marcinko
8
  Author URI: http://wp-dreams.com
9
  Text Domain: ajax-search-lite
26
  str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
27
  );
28
  define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
29
+ define('ASL_CURRENT_VERSION', 4751);
30
+ define('ASL_CURR_VER_STRING', "4.10");
31
  define('ASL_DEBUG', 0);
32
  define('ASL_DEMO', get_option('wd_asl_demo', 0) );
33
 
backend/compatibility.php CHANGED
@@ -15,13 +15,12 @@ isset($_POST, $_POST['asl_compatibility'], $_POST['asl_compatibility_nonce'])
15
  $values = array(
16
  // CSS and JS
17
  "js_source" => $_POST['js_source'],
18
- "js_init" => $_POST['js_init'],
19
  "load_scroll_js" => $_POST['load_scroll_js'],
20
  "detect_ajax" => $_POST['detect_ajax'],
21
  "js_retain_popstate" => $_POST['js_retain_popstate'],
22
  'js_fix_duplicates' => $_POST['js_fix_duplicates'],
23
  'load_google_fonts' => $_POST['load_google_fonts'],
24
- 'old_browser_compatibility' => $_POST['old_browser_compatibility'],
25
  // Query options
26
  'query_soft_check' => $_POST['query_soft_check'],
27
  'use_acf_getfield' => $_POST['use_acf_getfield'],
@@ -83,6 +82,7 @@ isset($_POST, $_POST['asl_compatibility'], $_POST['asl_compatibility_nonce'])
83
  <div class="clear"></div>
84
  </div>
85
  <?php
 
86
  wp_enqueue_script('wpd-backend-compatibility', plugin_dir_url(__FILE__) . 'settings/assets/compatibility_settings.js', array(
87
  'jquery'
88
  ), ASL_CURR_VER_STRING, true);
15
  $values = array(
16
  // CSS and JS
17
  "js_source" => $_POST['js_source'],
18
+ "script_loading_method" => $_POST['script_loading_method'],
19
  "load_scroll_js" => $_POST['load_scroll_js'],
20
  "detect_ajax" => $_POST['detect_ajax'],
21
  "js_retain_popstate" => $_POST['js_retain_popstate'],
22
  'js_fix_duplicates' => $_POST['js_fix_duplicates'],
23
  'load_google_fonts' => $_POST['load_google_fonts'],
 
24
  // Query options
25
  'query_soft_check' => $_POST['query_soft_check'],
26
  'use_acf_getfield' => $_POST['use_acf_getfield'],
82
  <div class="clear"></div>
83
  </div>
84
  <?php
85
+ wp_enqueue_script('wd_asl_helpers_jquery_conditionals', plugin_dir_url(__FILE__) . 'settings/assets/js/jquery.conditionals.js', array('jquery'), ASL_CURR_VER_STRING, true);
86
  wp_enqueue_script('wpd-backend-compatibility', plugin_dir_url(__FILE__) . 'settings/assets/compatibility_settings.js', array(
87
  'jquery'
88
  ), ASL_CURR_VER_STRING, true);
backend/settings.php CHANGED
@@ -1,9 +1,29 @@
1
  <?php
2
  $params = array();
3
- $messages = "";
4
 
5
  $inst = wd_asl()->instances->get(0);
6
  $sd = &$inst['data'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  ?>
8
  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css'>
9
  <div id="fb-root"></div>
@@ -40,8 +60,6 @@ $sd = &$inst['data'];
40
  </div>
41
  </div>
42
 
43
-
44
- <?php ob_start(); ?>
45
  <div class="wpdreams-box">
46
 
47
  <label class="shortcode"><?php _e("Search shortcode:", "ajax-search-lite"); ?></label>
@@ -53,10 +71,9 @@ $sd = &$inst['data'];
53
  readonly="readonly"/>
54
  </div>
55
  <div class="wpdreams-box" style="float:left;">
 
56
 
57
- {--messages--}
58
-
59
- <form action='' method='POST' name='asl_data'>
60
  <ul id="tabs" class='tabs'>
61
  <li><a tabid="1" class='current general'><?php _e("General Options", "ajax-search-lite"); ?></a></li>
62
  <li><a tabid="2" class='multisite'><?php _e("Image Options", "ajax-search-lite"); ?></a></li>
@@ -119,29 +136,13 @@ $sd = &$inst['data'];
119
  </div>
120
  </div>
121
  <input type="hidden" name="sett_tabid" id="sett_tabid" value="1" />
 
122
  </form>
123
  </div>
124
  <div id="asl-side-container">
125
  <a class="wd-accessible-switch" href="#"><?php echo isset($_COOKIE['asl-accessibility']) ? 'DISABLE ACCESSIBILITY' : 'ENABLE ACCESSIBILITY'; ?></a>
126
  </div>
127
  <div class="clear"></div>
128
- <?php $output = ob_get_clean(); ?>
129
- <?php
130
- if (isset($_POST['submit_asl'])) {
131
-
132
- $params = wpdreams_parse_params($_POST);
133
- $_asl_options = array_merge($sd, $params);
134
-
135
- wd_asl()->instances->update(0, $_asl_options);
136
- // Force instance data to the debug storage
137
- wd_asl()->debug->pushData(
138
- $_asl_options,
139
- 'asl_options', true
140
- );
141
-
142
- $messages .= "<div class='infoMsg'>" . __("Ajax Search Lite settings saved!", "ajax-search-lite") . "</div>";
143
- }
144
- echo str_replace("{--messages--}", $messages, $output);
145
- ?>
146
  </div>
 
147
  <?php wp_enqueue_script('wd_asl_search_instance', plugin_dir_url(__FILE__) . 'settings/assets/search_instance.js', array('jquery'), ASL_CURR_VER_STRING, true); ?>
1
  <?php
2
  $params = array();
3
+ $action_msg = "";
4
 
5
  $inst = wd_asl()->instances->get(0);
6
  $sd = &$inst['data'];
7
+
8
+ if (isset($_POST['submit_asl'])) {
9
+
10
+ if ( wp_verify_nonce( $_POST['asl_sett_nonce'], 'asl_sett_nonce' ) ) {
11
+ $params = wpdreams_parse_params($_POST);
12
+ $_asl_options = array_merge($sd, $params);
13
+
14
+ wd_asl()->instances->update(0, $_asl_options);
15
+ // Force instance data to the debug storage
16
+ wd_asl()->debug->pushData(
17
+ $_asl_options,
18
+ 'asl_options', true
19
+ );
20
+
21
+ $action_msg = "<div class='infoMsg'><strong>" . __('Search settings saved!', 'ajax-search-lite') . '</strong> (' . date("Y-m-d H:i:s") . ")</div>";
22
+ } else {
23
+ $action_msg = "<div class='errorMsg'><strong>". __('<strong>ERROR Saving:</strong> Invalid NONCE, please try again!', 'ajax-search-lite') . '</strong> (' . date("Y-m-d H:i:s") . ")</div>";
24
+ $_POST = array();
25
+ }
26
+ }
27
  ?>
28
  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css'>
29
  <div id="fb-root"></div>
60
  </div>
61
  </div>
62
 
 
 
63
  <div class="wpdreams-box">
64
 
65
  <label class="shortcode"><?php _e("Search shortcode:", "ajax-search-lite"); ?></label>
71
  readonly="readonly"/>
72
  </div>
73
  <div class="wpdreams-box" style="float:left;">
74
+ <?php echo $action_msg; ?>
75
 
76
+ <form action='' method='POST' name='asl_data'>
 
 
77
  <ul id="tabs" class='tabs'>
78
  <li><a tabid="1" class='current general'><?php _e("General Options", "ajax-search-lite"); ?></a></li>
79
  <li><a tabid="2" class='multisite'><?php _e("Image Options", "ajax-search-lite"); ?></a></li>
136
  </div>
137
  </div>
138
  <input type="hidden" name="sett_tabid" id="sett_tabid" value="1" />
139
+ <input type="hidden" name="asl_sett_nonce" id="asl_sett_nonce" value="<?php echo wp_create_nonce( "asl_sett_nonce" ); ?>">
140
  </form>
141
  </div>
142
  <div id="asl-side-container">
143
  <a class="wd-accessible-switch" href="#"><?php echo isset($_COOKIE['asl-accessibility']) ? 'DISABLE ACCESSIBILITY' : 'ENABLE ACCESSIBILITY'; ?></a>
144
  </div>
145
  <div class="clear"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  </div>
147
+ <?php wp_enqueue_script('wd_asl_helpers_jquery_conditionals', plugin_dir_url(__FILE__) . 'settings/assets/js/jquery.conditionals.js', array('jquery'), ASL_CURR_VER_STRING, true); ?>
148
  <?php wp_enqueue_script('wd_asl_search_instance', plugin_dir_url(__FILE__) . 'settings/assets/search_instance.js', array('jquery'), ASL_CURR_VER_STRING, true); ?>
backend/settings/assets/compatibility_settings.js CHANGED
@@ -15,12 +15,5 @@ jQuery(function ($) {
15
  location.hash = $(this).attr('tabid');
16
  });
17
 
18
- $('input[name=selective_enabled]').on('change', function(){
19
- if ( $(this).val() == 0 ) {
20
- $(this).closest('fieldset').find('.item_selective_load').addClass('disabled');
21
- } else {
22
- $(this).closest('fieldset').find('.item_selective_load').removeClass('disabled');
23
- }
24
- });
25
- $('input[name=selective_enabled]').trigger('change');
26
  });
15
  location.hash = $(this).attr('tabid');
16
  });
17
 
18
+ WPD.Conditionals.init('.tabscontent');
 
 
 
 
 
 
 
19
  });
backend/settings/assets/js/jquery.conditionals.js ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // noinspection JSUnresolvedFunction
2
+ jQuery(function($){
3
+ window.window.WPD = window.WPD || {};
4
+ let conditionals = {};
5
+ conditionals = $.extend({
6
+ 'types': {
7
+ 'wd-show-on': {
8
+ 'remove': 'hiddend'
9
+ },
10
+ 'wd-hide-on': {
11
+ 'add': 'hiddend'
12
+ },
13
+ 'wd-disable-on': {
14
+ 'add': 'disabled'
15
+ },
16
+ 'wd-enable-on': {
17
+ 'remove': 'disabled'
18
+ }
19
+ },
20
+ init: function(selector) {
21
+ this.events.init(selector);
22
+ },
23
+ load: function( node ) {
24
+ $.each(Object.keys(this.types), function(i, type) {
25
+ $(node).find('*[' + type + ']').each(function () {
26
+ let rules = $(this).attr(type).split(';'),
27
+ last = rules[rules.length - 1],
28
+ attr = last.split(':')[0];
29
+ $(node).find('*[attr="' + attr + '"], [noattr="' + attr + '"]').last().trigger('conditionalchange');
30
+ });
31
+ });
32
+ },
33
+ events: {
34
+ /**
35
+ * Allows custom syntax on nodes to show/hide/enable/disable on specific conditions
36
+ * Ex.:
37
+ * <node wd-show-on='name1:value1,value2;name2:valueX;..'>
38
+ */
39
+ init: function( selector ) {
40
+ $(selector).each(function(){
41
+ let parent = this;
42
+ $.each(Object.keys(conditionals.types), function(i, type){
43
+ $(parent).find('*[' + type + ']').each(function(){
44
+ let target = this,
45
+ rules = $(this).attr(type).split(';'),
46
+ logic = $(this).attr('wd-conditional-logic') || 'and',
47
+ length = rules.length;
48
+ $.each(rules, function(i, rule){
49
+ let attr = rule.split(':')[0];
50
+ $(parent).find('*[attr="' + attr + '"], *[noattr="' + attr + '"], *[isparam=1][name="' + attr + '"]').each(function(){
51
+ $(this).on('input', function (){
52
+ $(this).trigger('conditionalchange');
53
+ });
54
+ $(this).on('conditionalchange', function(){
55
+ if ( conditionals.functions.check(rules, parent, logic) ) {
56
+ if ( typeof conditionals.types[type].add != "undefined" ) {
57
+ $(target).addClass(conditionals.types[type].add);
58
+ } else if ( typeof conditionals.types[type].remove != "undefined" ) {
59
+ $(target).removeClass(conditionals.types[type].remove);
60
+ }
61
+ } else {
62
+ if ( typeof conditionals.types[type].add != "undefined" ) {
63
+ $(target).removeClass(conditionals.types[type].add);
64
+ } else if ( typeof conditionals.types[type].remove != "undefined" ) {
65
+ $(target).addClass(conditionals.types[type].remove);
66
+ }
67
+ }
68
+ });
69
+ if ( i == (length - 1) ) {
70
+ $(this).trigger('conditionalchange');
71
+ }
72
+ });
73
+ });
74
+ });
75
+ });
76
+
77
+ let observer = new MutationObserver(function(){
78
+ conditionals.load(parent);
79
+ });
80
+ observer.observe(parent, { attributes: false, childList: true, subtree: true });
81
+ });
82
+ }
83
+ },
84
+ functions: {
85
+ /**
86
+ * Checks if all/any the conditional rules are matching within the parent scope
87
+ *
88
+ * @param {[]} rules Array of rules in format "name:value1,value2,..,valueN"
89
+ * @param {{}} parent Scope in whic to look for the rules
90
+ * @param {'and'} logic and||or logic for the rules
91
+ * @returns {boolean}
92
+ */
93
+ check: function(rules, parent, logic) {
94
+ let allRulesMatched = true,
95
+ anyRuleMatched = false;
96
+ $.each(rules, function(i, rule){
97
+ let attr = rule.split(':')[0],
98
+ values = rule.split(':').slice(1)[0].split(',');
99
+ $(parent).find('*[attr="' + attr + '"], [noattr="' + attr + '"], *[isparam=1][name="' + attr + '"]').each(function(){
100
+ let value = conditionals.functions.getNodeValue(this),
101
+ match = false;
102
+ $.each(values, function(ii, val){
103
+ if ( Array.isArray(value) ) {
104
+ if ( value.includes(val) ) {
105
+ match = true;
106
+ return false;
107
+ }
108
+ } else {
109
+ if ( value == val ) {
110
+ match = true;
111
+ return false;
112
+ }
113
+ }
114
+ });
115
+ if ( logic == 'and' ) {
116
+ if ( !match ) {
117
+ allRulesMatched = false;
118
+ return false;
119
+ }
120
+ } else {
121
+ if ( match ) {
122
+ anyRuleMatched = true;
123
+ return false;
124
+ }
125
+ }
126
+ });
127
+ if (
128
+ ( logic == 'and' && !allRulesMatched ) ||
129
+ ( logic == 'or' && anyRuleMatched )
130
+ ) {
131
+ return false;
132
+ }
133
+ });
134
+
135
+ return logic == 'and' ? allRulesMatched : anyRuleMatched;
136
+ },
137
+ getNodeValue: function(node) {
138
+ let name = node.nodeName.toLowerCase(), ret;
139
+
140
+ if ( name == 'select' || name == 'textarea' ) {
141
+ ret = $(node).val();
142
+ } else if ( name == 'input' ) {
143
+ let type = $(node).attr('type');
144
+ if ( type == 'checkbox' ) {
145
+ ret = $(node).is(':checked');
146
+ } else if ( node.type == 'text' || node.type == 'number' || node.type == 'hidden' ) {
147
+ ret = $(node).val();
148
+ }
149
+ }
150
+
151
+ ret = ret === null ? '' : ret;
152
+ return ret;
153
+ }
154
+ }
155
+ }, conditionals);
156
+ window.WPD.Conditionals = conditionals;
157
+ });
backend/settings/assets/search_instance.js CHANGED
@@ -1,4 +1,6 @@
1
  jQuery(function ($) {
 
 
2
  $('.tabs a[tabid=1]').on('click', function () {
3
  $('.tabs a[tabid=101]').trigger('click');
4
  });
@@ -27,218 +29,12 @@ jQuery(function ($) {
27
  $('.tabs a[tabid=1]').click();
28
  }
29
 
30
- $('input[name="search_all_cf"]').change(function () {
31
- if ($(this).val() == 1)
32
- $('input[name="customfields"]').parent().addClass('disabled');
33
- else
34
- $('input[name="customfields"]').parent().removeClass('disabled');
35
- });
36
- $('input[name="search_all_cf"]').change();
37
-
38
- function check_redirect_url() {
39
- var click = $('select[name="redirect_click_to"]').val();
40
- var enter = $('select[name="redirect_enter_to"]').val();
41
- if (
42
- ( click == 'custom_url' ) ||
43
- ( enter == 'custom_url' )
44
- ) {
45
- $('input[name="custom_redirect_url"]').parent().removeClass('disabled');
46
- } else {
47
- $('input[name="custom_redirect_url"]').parent().addClass('disabled');
48
- }
49
-
50
- if ( click == 'ajax_search' || click == 'nothing' ) {
51
- $('select[name=click_action_location]').parent().addClass('hiddend');
52
- } else {
53
- $('select[name=click_action_location]').parent().removeClass('hiddend');
54
- }
55
- if ( enter == 'ajax_search' || enter == 'nothing' ) {
56
- $('select[name=return_action_location]').parent().addClass('hiddend');
57
- } else {
58
- $('select[name=return_action_location]').parent().removeClass('hiddend');
59
- }
60
- }
61
-
62
- $('select[name="redirect_click_to"]').change(check_redirect_url);
63
- $('select[name="redirect_enter_to"]').change(check_redirect_url);
64
- check_redirect_url();
65
-
66
- $('input[name="override_default_results"]').change(function(){
67
- if ($(this).val() == 0)
68
- $('input[name="results_per_page"]').parent().addClass('disabled');
69
- else
70
- $('input[name="results_per_page"]').parent().removeClass('disabled');
71
- });
72
- $('input[name="override_default_results"]').change();
73
-
74
- $('input[name="exactonly"]').change(function(){
75
- if ( $(this).val() == 0 ) {
76
- $('select[name="exact_match_location"]').parent().addClass('disabled');
77
- $('select[name="keyword_logic"]').closest('div').removeClass('disabled');
78
- } else {
79
- $('select[name="exact_match_location"]').parent().removeClass('disabled');
80
- $('select[name="keyword_logic"]').closest('div').addClass('disabled');
81
- }
82
- });
83
- $('input[name="exactonly"]').change();
84
-
85
- // Keyword logic information message
86
- $('select[name=keyword_logic]').on('change', function(){
87
- if ( $(this).val() == 'orex' || $(this).val() == 'andex' ) {
88
- $(this).closest('.item').find('.kwLogicInfo').removeClass('hiddend');
89
- } else {
90
- $(this).closest('.item').find('.kwLogicInfo').addClass('hiddend');
91
- }
92
- });
93
- $('select[name=keyword_logic]').trigger('change');
94
-
95
- // Search keyword highlighter
96
- $('input[name=kw_highlight]').on('change', function(){
97
- if ( $(this).val() == 1 ) {
98
- $("input[name='kw_highlight_whole_words']").closest('.item').removeClass("disabled");
99
- $("input[name='highlight_color']").closest('.item').removeClass("disabled");
100
- $("input[name='highlight_bg_color']").closest('.item').removeClass("disabled");
101
- } else {
102
- $("input[name='kw_highlight_whole_words']").closest('.item').addClass("disabled");
103
- $("input[name='highlight_color']").closest('.item').addClass("disabled");
104
- $("input[name='highlight_bg_color']").closest('.item').addClass("disabled");
105
- }
106
- }).trigger('change');
107
-
108
- $('input[name=single_highlight]').on('change', function(){
109
- if ( $(this).val() == 1 ) {
110
- $("input[name='single_highlightwholewords']").closest('.item').removeClass("disabled");
111
- $("input[name='single_highlightcolor']").closest('.item').removeClass("disabled");
112
- $("input[name='single_highlightbgcolor']").closest('.item').removeClass("disabled");
113
- $("input[name='single_highlight_selector']").closest('.item').removeClass("disabled");
114
- $("input[name='single_highlight_scroll']").closest('.item').removeClass("disabled");
115
- } else {
116
- $("input[name='single_highlightwholewords']").closest('.item').addClass("disabled");
117
- $("input[name='single_highlightcolor']").closest('.item').addClass("disabled");
118
- $("input[name='single_highlightbgcolor']").closest('.item').addClass("disabled");
119
- $("input[name='single_highlight_selector']").closest('.item').addClass("disabled");
120
- $("input[name='single_highlight_scroll']").closest('.item').addClass("disabled");
121
- }
122
- }).trigger('change');
123
-
124
- // Primary and Secondary fields for custom fields
125
- $.each(['titlefield', 'descriptionfield'],
126
- function(i, v){
127
- $("select[name='"+v+"']").change(function(){
128
- if ( $(this).val() != 'c__f' ) {
129
- $("input[name='"+v+"_cf']").parent().css("display", "none");
130
- } else {
131
- $("input[name='"+v+"_cf']").parent().css("display", "");
132
- }
133
- });
134
- $("select[name='"+v+"']").change();
135
- });
136
-
137
- // Ordering
138
- $('select[name="orderby_primary"]').on('change', function(){
139
- if ($(this).val().indexOf('customf') == -1) {
140
- $('input[name="orderby_primary_cf"]').parent().addClass('hiddend');
141
- $('select[name="orderby_primary_cf_type"]').parent().addClass('hiddend');
142
- } else {
143
- $('input[name="orderby_primary_cf"]').parent().removeClass('hiddend');
144
- $('select[name="orderby_primary_cf_type"]').parent().removeClass('hiddend');
145
- }
146
- }).trigger('change');
147
- $('select[name="orderby_secondary"]').on('change', function(){
148
- if ($(this).val().indexOf('customf') == -1) {
149
- $('input[name="orderby_secondary_cf"]').parent().addClass('hiddend');
150
- $('select[name="orderby_secondary_cf_type"]').parent().addClass('hiddend');
151
- } else {
152
- $('input[name="orderby_secondary_cf"]').parent().removeClass('hiddend');
153
- $('select[name="orderby_secondary_cf_type"]').parent().removeClass('hiddend');
154
- }
155
- }).trigger('change');
156
-
157
  // Theme options
158
  $('select[name=theme]').on('change', function(){
159
  $('.asl_theme').removeClass().addClass('asl_theme asl_theme-' + $(this).val());
160
  });
161
  $('select[name=theme]').trigger('change');
162
 
163
- $('input[name=override_bg]').on('change', function(){
164
- if ( $(this).val() == 0 ) {
165
- $('input[name=override_bg_color]').parent().addClass('disabled');
166
- } else {
167
- $('input[name=override_bg_color]').parent().removeClass('disabled');
168
- }
169
- });
170
- $('input[name=override_bg]').trigger('change');
171
-
172
- $('input[name=override_icon]').on('change', function(){
173
- if ( $(this).val() == 0 ) {
174
- $('input[name=override_icon_bg_color]').parent().addClass('disabled');
175
- $('input[name=override_icon_color]').parent().addClass('disabled');
176
- } else {
177
- $('input[name=override_icon_bg_color]').parent().removeClass('disabled');
178
- $('input[name=override_icon_color]').parent().removeClass('disabled');
179
- }
180
- });
181
- $('input[name=override_icon]').trigger('change');
182
-
183
- $('input[name=override_border]').on('change', function(){
184
- if ( $(this).val() == 0 ) {
185
- $('input[name=override_border_style]').closest('.wpdreamsBorder').addClass('disabled');
186
- } else {
187
- $('input[name=override_border_style]').closest('.wpdreamsBorder').removeClass('disabled');
188
- }
189
- });
190
- $('input[name=override_border]').trigger('change');
191
-
192
- $('input[name=results_bg_override]').on('change', function(){
193
- if ( $(this).val() == 0 ) {
194
- $('input[name=results_bg_override_color]').parent().addClass('disabled');
195
- } else {
196
- $('input[name=results_bg_override_color]').parent().removeClass('disabled');
197
- }
198
- }).trigger('change');
199
- $('input[name=results_item_bg_override]').on('change', function(){
200
- if ( $(this).val() == 0 ) {
201
- $('input[name=results_item_bg_override_color]').parent().addClass('disabled');
202
- } else {
203
- $('input[name=results_item_bg_override_color]').parent().removeClass('disabled');
204
- }
205
- }).trigger('change');
206
- $('input[name=results_override_border]').on('change', function(){
207
- if ( $(this).val() == 0 ) {
208
- $('input[name=results_override_border_style]').closest('.wpdreamsBorder').addClass('disabled');
209
- } else {
210
- $('input[name=results_override_border_style]').closest('.wpdreamsBorder').removeClass('disabled');
211
- }
212
- }).trigger('change');
213
-
214
- $('input[name=settings_bg_override]').on('change', function(){
215
- if ( $(this).val() == 0 ) {
216
- $('input[name=settings_bg_override_color]').parent().addClass('disabled');
217
- } else {
218
- $('input[name=settings_bg_override_color]').parent().removeClass('disabled');
219
- }
220
- }).trigger('change');
221
- $('input[name=settings_override_border]').on('change', function(){
222
- if ( $(this).val() == 0 ) {
223
- $('input[name=settings_override_border_style]').closest('.wpdreamsBorder').addClass('disabled');
224
- } else {
225
- $('input[name=settings_override_border_style]').closest('.wpdreamsBorder').removeClass('disabled');
226
- }
227
- }).trigger('change');
228
-
229
- // Primary and Secondary fields for custom fields
230
- $.each(['primary_titlefield', 'secondary_titlefield', 'primary_descriptionfield', 'secondary_descriptionfield'],
231
- function(i, v){
232
- $("select[name='"+v+"']").on('change', function(){
233
- if ( $(this).val() != 'c__f' ) {
234
- $("input[name='"+v+"_cf']").parent().css("display", "none");
235
- } else {
236
- $("input[name='"+v+"_cf']").parent().css("display", "");
237
- }
238
- });
239
- $("select[name='"+v+"']").trigger('change');
240
- });
241
-
242
  // -------------------------------- MODAL MESSAGES ----------------------------------
243
  var modalItems = [
244
  {
1
  jQuery(function ($) {
2
+ WPD.Conditionals.init('.tabscontent');
3
+
4
  $('.tabs a[tabid=1]').on('click', function () {
5
  $('.tabs a[tabid=101]').trigger('click');
6
  });
29
  $('.tabs a[tabid=1]').click();
30
  }
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  // Theme options
33
  $('select[name=theme]').on('change', function(){
34
  $('.asl_theme').removeClass().addClass('asl_theme asl_theme-' + $(this).val());
35
  });
36
  $('select[name=theme]').trigger('change');
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  // -------------------------------- MODAL MESSAGES ----------------------------------
39
  var modalItems = [
40
  {
backend/settings/assets/types.js CHANGED
@@ -73,7 +73,7 @@ jQuery(function($){
73
  $(this).parent().addClass("active");
74
  }
75
  $(hidden).val(val);
76
- $(hidden).change();
77
  });
78
  $('.wpdreamsYesNo .triggerer').on('click', function () {
79
  var hidden = $('input[type=hidden]', $(this).parent());
@@ -84,7 +84,7 @@ jQuery(function($){
84
  } else {
85
  div.addClass("active");
86
  }
87
- $(hidden).change();
88
  });
89
 
90
  /**
73
  $(this).parent().addClass("active");
74
  }
75
  $(hidden).val(val);
76
+ $(hidden).trigger('change').trigger('input');
77
  });
78
  $('.wpdreamsYesNo .triggerer').on('click', function () {
79
  var hidden = $('input[type=hidden]', $(this).parent());
84
  } else {
85
  div.addClass("active");
86
  }
87
+ $(hidden).trigger('change').trigger('input');
88
  });
89
 
90
  /**
backend/settings/default_options.php CHANGED
@@ -69,14 +69,21 @@ function asl_do_init_options() {
69
  /* Compatibility defaults */
70
  $options['asl_compatibility_def'] = array(
71
  // CSS JS
72
- 'js_source' => "min",
73
- 'js_init' => "dynamic",
 
 
 
 
 
 
 
 
74
  'load_scroll_js' => 'yes',
75
  'js_fix_duplicates' => 1,
76
  "detect_ajax" => 0,
77
  "js_retain_popstate" => 0,
78
  'load_google_fonts' => 1,
79
- 'old_browser_compatibility' => 0,
80
  // DB
81
  'query_soft_check' => 0,
82
  'use_acf_getfield' => 0,
@@ -96,8 +103,8 @@ function asl_do_init_options() {
96
  'keyword_logic' => "and",
97
  'mob_auto_focus_menu_selector' => '#menu-toggle',
98
  'trigger_on_facet_change' => 1,
99
- 'redirect_click_to' => 'results_page',
100
- 'redirect_enter_to' => 'results_page',
101
  'click_action_location' => 'same',
102
  'return_action_location' => 'same',
103
  'custom_redirect_url' => '?s={phrase}',
@@ -113,8 +120,14 @@ function asl_do_init_options() {
113
  'search_all_cf' => 0,
114
  'customfields' => "",
115
  'post_status' => 'publish',
116
- 'override_default_results' => 0,
117
  'override_method' => 'get',
 
 
 
 
 
 
118
 
119
  'exactonly' => 0,
120
  'exact_match_location' => 'anywhere',
@@ -126,7 +139,7 @@ function asl_do_init_options() {
126
  'resultitemheight' => "70px",
127
 
128
  'orderby_primary' => 'relevance DESC',
129
- 'orderby_secondary' => 'date DESC',
130
  'orderby_primary_cf' => '',
131
  'orderby_secondary_cf' => '',
132
  'orderby_primary_cf_type' => 'numeric',
@@ -234,6 +247,10 @@ function asl_do_init_options() {
234
  'resultsposition' => 'hover',
235
  'resultsmargintop' => '12px',
236
 
 
 
 
 
237
  'v_res_max_height' => 'none',
238
 
239
  'v_res_column_count' => 1,
@@ -251,6 +268,8 @@ function asl_do_init_options() {
251
  'show_close_icon' => 1,
252
  'showauthor' => 0,
253
  'showdate' => 0,
 
 
254
  'showdescription' => 1,
255
  'descriptionlength' => 100,
256
  'description_context' => 0,
69
  /* Compatibility defaults */
70
  $options['asl_compatibility_def'] = array(
71
  // CSS JS
72
+ 'js_source' => "jqueryless-min",
73
+ 'js_source_def' => array(
74
+ array('option' => 'Non minified', 'value' => 'jqueryless-nomin'),
75
+ array('option' => 'Minified (default)', 'value' => 'jqueryless-min'),
76
+ array('option' => 'Legacy Non minified', 'value' => 'nomin'),
77
+ array('option' => 'Legacy Minified', 'value' => 'min'),
78
+ array('option' => 'Legacy Non-minified scoped', 'value' => 'nomin-scoped'),
79
+ array('option' => 'Legacy Minified scoped', 'value' => 'min-scoped')
80
+ ),
81
+ 'script_loading_method' => 'optimized',
82
  'load_scroll_js' => 'yes',
83
  'js_fix_duplicates' => 1,
84
  "detect_ajax" => 0,
85
  "js_retain_popstate" => 0,
86
  'load_google_fonts' => 1,
 
87
  // DB
88
  'query_soft_check' => 0,
89
  'use_acf_getfield' => 0,
103
  'keyword_logic' => "and",
104
  'mob_auto_focus_menu_selector' => '#menu-toggle',
105
  'trigger_on_facet_change' => 1,
106
+ 'click_action' => 'results_page',
107
+ 'return_action' => 'results_page',
108
  'click_action_location' => 'same',
109
  'return_action_location' => 'same',
110
  'custom_redirect_url' => '?s={phrase}',
120
  'search_all_cf' => 0,
121
  'customfields' => "",
122
  'post_status' => 'publish',
123
+ 'override_default_results' => 1,
124
  'override_method' => 'get',
125
+ 'res_live_search' => 0,
126
+ 'res_live_selector' => '#main',
127
+ 'res_live_trigger_type' => 1,
128
+ 'res_live_trigger_facet' => 1,
129
+ 'res_live_trigger_click' => 0,
130
+ 'res_live_trigger_return' => 0,
131
 
132
  'exactonly' => 0,
133
  'exact_match_location' => 'anywhere',
139
  'resultitemheight' => "70px",
140
 
141
  'orderby_primary' => 'relevance DESC',
142
+ 'orderby_secondary' => 'post_date DESC',
143
  'orderby_primary_cf' => '',
144
  'orderby_secondary_cf' => '',
145
  'orderby_primary_cf_type' => 'numeric',
247
  'resultsposition' => 'hover',
248
  'resultsmargintop' => '12px',
249
 
250
+ 'results_width' => 'auto',
251
+ 'results_width_phone' => 'auto',
252
+ 'results_width_tablet' => 'auto',
253
+
254
  'v_res_max_height' => 'none',
255
 
256
  'v_res_column_count' => 1,
268
  'show_close_icon' => 1,
269
  'showauthor' => 0,
270
  'showdate' => 0,
271
+ 'custom_date' => 0,
272
+ 'custom_date_format' => 'Y-m-d H:i:s',
273
  'showdescription' => 1,
274
  'descriptionlength' => 100,
275
  'description_context' => 0,
backend/tabs/compatibility/cssjs_options.php CHANGED
@@ -1,41 +1,38 @@
1
  <div class="item">
2
  <?php
3
  $o = new wpdreamsCustomSelect("js_source", __('Javascript source', 'ajax-search-lite'), array(
4
- 'selects' => array(
5
- array('option' => __('Non minified', 'ajax-search-lite'), 'value' => 'nomin'),
6
- array('option' => __('Minified', 'ajax-search-lite'), 'value' => 'min'),
7
- array('option' => __('Non-minified scoped', 'ajax-search-lite'), 'value' => 'nomin-scoped'),
8
- array('option' => __('Minified scoped', 'ajax-search-lite'), 'value' => 'min-scoped'),
9
- ),
10
  'value' => $com_options['js_source']
11
  )
12
  );
13
  $params[$o->getName()] = $o->getData();
14
  ?>
15
  <p class="descMsg">
16
- <ul style="float:right;text-align:left;width:50%;">
17
- <li><?php echo __('<b>Non minified</b> - Optimal Compatibility, Medium space', 'ajax-search-lite'); ?></li>
18
- <li><?php echo __('<b>Minified</b> - Optimal Compatibility, Low space (recommended)', 'ajax-search-lite'); ?></li>
19
- <li><?php echo __('<b>Non minified Scoped</b> - High Compatibility, High space', 'ajax-search-lite'); ?></li>
20
- <li><?php echo __('<b>Minified Scoped</b> - High Compatibility, Medium space', 'ajax-search-lite'); ?></li>
21
- </ul>
22
- <div class="clear"></div>
23
  </p>
24
  </div>
25
- <div class="item">
26
  <?php
27
- $o = new wpdreamsCustomSelect("js_init", __('Javascript init method', 'ajax-search-lite'), array(
28
  'selects'=>array(
29
- array('option'=>__('Dynamic (default)', 'ajax-search-lite'), 'value'=>'dynamic'),
30
- array('option'=>__('Blocking', 'ajax-search-lite'), 'value'=>'blocking')
 
31
  ),
32
- 'value'=>$com_options['js_init']
33
  )
34
  );
35
  $params[$o->getName()] = $o->getData();
36
  ?>
37
  <p class="descMsg">
38
- <?php echo __('Try to choose <strong>Blocking</strong> if the search bar is not responding to anything.', 'ajax-search-lite'); ?>
 
 
 
 
 
39
  </p>
40
  </div>
41
  <div class="item">
@@ -90,9 +87,4 @@
90
  <li>When set to <strong>No</strong>, the custom scrollbar will <strong>not be used at all</strong>.</li>
91
  </ul>
92
  </p>
93
- </div>
94
- <div class="item">
95
- <?php $o = new wpdreamsYesNo("old_browser_compatibility", __('Display the default search box on old browsers? (IE<=8)', 'ajax-search-lite'),
96
- $com_options['old_browser_compatibility']
97
- ); ?>
98
  </div>
1
  <div class="item">
2
  <?php
3
  $o = new wpdreamsCustomSelect("js_source", __('Javascript source', 'ajax-search-lite'), array(
4
+ 'selects' => wd_asl()->o['asl_compatibility_def']['js_source_def'],
 
 
 
 
 
5
  'value' => $com_options['js_source']
6
  )
7
  );
8
  $params[$o->getName()] = $o->getData();
9
  ?>
10
  <p class="descMsg">
11
+ <strong>Legacy</strong> scripts use <strong>jQuery</strong> and will be removed on the first 2022 release.
12
+ <?php echo sprintf( __('<a target="_blank" href="%s">Read More</a>'),
13
+ 'https://documentation.ajaxsearchlite.com/compatibility-settings/javascript-compatibility' ); ?>
 
 
 
 
14
  </p>
15
  </div>
16
+ <div class="item" wd-enable-on="js_source:jqueryless-nomin,jqueryless-min">
17
  <?php
18
+ $o = new wpdreamsCustomSelect("script_loading_method", __('Script loading method', 'ajax-search-pro'), array(
19
  'selects'=>array(
20
+ array('option'=>'Classic', 'value'=>'classic'),
21
+ array('option'=>'Optimized (recommended)', 'value'=>'optimized'),
22
+ array('option'=>'Optimized asynchronous', 'value'=>'optimized_async')
23
  ),
24
+ 'value'=>$com_options['script_loading_method']
25
  )
26
  );
27
  $params[$o->getName()] = $o->getData();
28
  ?>
29
  <p class="descMsg">
30
+ <ul style="float:right;text-align:left;width:70%;">
31
+ <li><?php echo __('<b>Classic</b> - All scripts are loaded as blocking at the same time', 'ajax-search-pro'); ?></li>
32
+ <li><?php echo __('<b>Optimized</b> - Scripts are loaded separately, but only the required ones', 'ajax-search-pro'); ?></li>
33
+ <li><?php echo __('<b>Optimized asnynchronous</b> - Same as the Optimized, but the scripts load in the background', 'ajax-search-pro'); ?></li>
34
+ </ul>
35
+ <div class="clear"></div>
36
  </p>
37
  </div>
38
  <div class="item">
87
  <li>When set to <strong>No</strong>, the custom scrollbar will <strong>not be used at all</strong>.</li>
88
  </ul>
89
  </p>
 
 
 
 
 
90
  </div>
backend/tabs/instance/advanced/content.php CHANGED
@@ -31,6 +31,9 @@
31
  ),
32
  'value'=>$sd['primary_titlefield']
33
  ));
 
 
 
34
  $params[$o->getName()] = $o->getData();
35
  $o = new wd_CFSearchCallBack('primary_titlefield_cf', '', array(
36
  'value'=>$sd['primary_titlefield_cf'],
@@ -41,6 +44,7 @@
41
  ));
42
  $params[$o->getName()] = $o->getData();
43
  ?>
 
44
  </div>
45
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
46
  <?php
@@ -54,6 +58,9 @@
54
  'value'=>$sd['primary_descriptionfield']
55
  ));
56
  $params[$o->getName()] = $o->getData();
 
 
 
57
  $o = new wd_CFSearchCallBack('primary_descriptionfield_cf', '', array(
58
  'value'=>$sd['primary_descriptionfield_cf'],
59
  'args'=> array(
@@ -63,6 +70,7 @@
63
  ));
64
  $params[$o->getName()] = $o->getData();
65
  ?>
 
66
  </div>
67
  </fieldset>
68
  <fieldset>
31
  ),
32
  'value'=>$sd['primary_titlefield']
33
  ));
34
+ ?>
35
+ <div wd-show-on="primary_titlefield:c__f">
36
+ <?php
37
  $params[$o->getName()] = $o->getData();
38
  $o = new wd_CFSearchCallBack('primary_titlefield_cf', '', array(
39
  'value'=>$sd['primary_titlefield_cf'],
44
  ));
45
  $params[$o->getName()] = $o->getData();
46
  ?>
47
+ </div>
48
  </div>
49
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
50
  <?php
58
  'value'=>$sd['primary_descriptionfield']
59
  ));
60
  $params[$o->getName()] = $o->getData();
61
+ ?>
62
+ <div wd-show-on="primary_descriptionfield:c__f">
63
+ <?php
64
  $o = new wd_CFSearchCallBack('primary_descriptionfield_cf', '', array(
65
  'value'=>$sd['primary_descriptionfield_cf'],
66
  'args'=> array(
70
  ));
71
  $params[$o->getName()] = $o->getData();
72
  ?>
73
+ </div>
74
  </div>
75
  </fieldset>
76
  <fieldset>
backend/tabs/instance/advanced_options.php CHANGED
@@ -12,7 +12,7 @@
12
  <legend>
13
  <?php echo __('Exclude/Include results', 'ajax-search-lite'); ?>
14
  <span class="asl_legend_docs">
15
- <a target="_blank" href="https://documentation.ajaxsearchpro.com/advanced-options/excluding-and-including-results"><span class="fa fa-book"></span>
16
  <?php echo __('Documentation', 'ajax-search-lite'); ?>
17
  </a>
18
  </span>
12
  <legend>
13
  <?php echo __('Exclude/Include results', 'ajax-search-lite'); ?>
14
  <span class="asl_legend_docs">
15
+ <a target="_blank" href="https://documentation.ajaxsearchlite.com/advanced-options/excluding-and-including-results"><span class="fa fa-book"></span>
16
  <?php echo __('Documentation', 'ajax-search-lite'); ?>
17
  </a>
18
  </span>
backend/tabs/instance/general/behavior.php CHANGED
@@ -7,24 +7,27 @@
7
  </a>
8
  </span>
9
  </legend>
10
- <div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
11
  <?php
12
  $o = new wpdreamsYesNo("exactonly", __("Show exact matches only?", "ajax-search-lite"),
13
  $sd['exactonly']);
14
  $params[$o->getName()] = $o->getData();
15
-
16
- $o = new wpdreamsCustomSelect('exact_match_location', "..and match fields against the search phrase",
17
- array(
18
- 'selects' => array(
19
- array('option' => __('Anywhere', 'ajax-search-lite'), 'value' => 'anywhere'),
20
- array('option' => __('Starting with phrase', 'ajax-search-lite'), 'value' => 'start'),
21
- array('option' => __('Ending with phrase', 'ajax-search-lite'), 'value' => 'end'),
22
- array('option' => __('Complete match', 'ajax-search-lite'), 'value' => 'full')
23
- ),
24
- 'value' => $sd['exact_match_location']
25
- ));
26
- $params[$o->getName()] = $o->getData();
27
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  </div>
29
  <div class="item">
30
  <?php
@@ -42,7 +45,7 @@
42
  <div class="descMsg">
43
  <?php echo __('This determines if the result should match either of the entered phrases (OR logic) or all of the entered phrases (AND logic).', 'ajax-search-lite'); ?>
44
  </div>
45
- <div class="kwLogicInfo infoMsg hiddend">
46
  <?php echo __('Please note: For <strong>performance rasons</strong> exact word matching in the Lite version is only able to check space-separated words. Commas, dots, question marks etc.. are not considered as word separators.', 'ajax-search-lite'); ?>
47
  </div>
48
  </div>
@@ -101,7 +104,7 @@
101
  </div>
102
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
103
  <?php
104
- $o = new wpdreamsCustomSelect("redirect_click_to", __("Action when clicking <strong>the magnifier</strong> icon", "ajax-search-lite"),
105
  array(
106
  'selects' => array(
107
  array("option" => __("Trigger live search", "ajax-search-lite"), "value" => "ajax_search"),
@@ -111,10 +114,13 @@
111
  array("option" => __("Redirec to: Custom URL", "ajax-search-lite"), "value" => "custom_url"),
112
  array("option" => __("Do nothing", "ajax-search-lite"), "value" => "nothing")
113
  ),
114
- 'value' => $sd['redirect_click_to']
115
  ));
116
  $params[$o->getName()] = $o->getData();
117
 
 
 
 
118
  $o = new wpdreamsCustomSelect("click_action_location", " location: ",
119
  array(
120
  'selects' => array(
@@ -125,10 +131,11 @@
125
  ));
126
  $params[$o->getName()] = $o->getData();
127
  ?>
 
128
  </div>
129
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
130
  <?php
131
- $o = new wpdreamsCustomSelect("redirect_enter_to", __("Action when pressing <strong>the return</strong> key", "ajax-search-lite"),
132
  array(
133
  'selects' => array(
134
  array("option" => __("Trigger live search", "ajax-search-lite"), "value" => "ajax_search"),
@@ -138,10 +145,12 @@
138
  array("option" => __("Redirec to: Custom URL", "ajax-search-lite"), "value" => "custom_url"),
139
  array("option" => __("Do nothing", "ajax-search-lite"), "value" => "nothing")
140
  ),
141
- 'value' => $sd['redirect_enter_to']
142
  ));
143
  $params[$o->getName()] = $o->getData();
144
-
 
 
145
  $o = new wpdreamsCustomSelect("return_action_location", " location: ",
146
  array(
147
  'selects' => array(
@@ -152,8 +161,9 @@
152
  ));
153
  $params[$o->getName()] = $o->getData();
154
  ?>
 
155
  </div>
156
- <div class="item">
157
  <?php
158
  $o = new wpdreamsText("custom_redirect_url", __("Custom redirect URL", "ajax-search-lite"), $sd['custom_redirect_url']);
159
  $params[$o->getName()] = $o->getData();
@@ -178,7 +188,7 @@
178
  ?>
179
  <div class="descMsg" style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;"><?php echo __("Might not work with some Themes.", "ajax-search-lite"); ?></p>
180
  </div>
181
- <div class="item">
182
  <?php
183
  $o = new wpdreamsTextSmall("results_per_page", __('Results count per page?', 'ajax-search-lite'),
184
  $sd['results_per_page']);
7
  </a>
8
  </span>
9
  </legend>
10
+ <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
11
  <?php
12
  $o = new wpdreamsYesNo("exactonly", __("Show exact matches only?", "ajax-search-lite"),
13
  $sd['exactonly']);
14
  $params[$o->getName()] = $o->getData();
 
 
 
 
 
 
 
 
 
 
 
 
15
  ?>
16
+ <div wd-enable-on="exactonly:1">
17
+ <?php
18
+ $o = new wpdreamsCustomSelect('exact_match_location', "..and match fields against the search phrase",
19
+ array(
20
+ 'selects' => array(
21
+ array('option' => __('Anywhere', 'ajax-search-lite'), 'value' => 'anywhere'),
22
+ array('option' => __('Starting with phrase', 'ajax-search-lite'), 'value' => 'start'),
23
+ array('option' => __('Ending with phrase', 'ajax-search-lite'), 'value' => 'end'),
24
+ array('option' => __('Complete match', 'ajax-search-lite'), 'value' => 'full')
25
+ ),
26
+ 'value' => $sd['exact_match_location']
27
+ ));
28
+ $params[$o->getName()] = $o->getData();
29
+ ?>
30
+ </div>
31
  </div>
32
  <div class="item">
33
  <?php
45
  <div class="descMsg">
46
  <?php echo __('This determines if the result should match either of the entered phrases (OR logic) or all of the entered phrases (AND logic).', 'ajax-search-lite'); ?>
47
  </div>
48
+ <div class="kwLogicInfo infoMsg" wd-show-on="keyword_logic:orex,andex">
49
  <?php echo __('Please note: For <strong>performance rasons</strong> exact word matching in the Lite version is only able to check space-separated words. Commas, dots, question marks etc.. are not considered as word separators.', 'ajax-search-lite'); ?>
50
  </div>
51
  </div>
104
  </div>
105
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
106
  <?php
107
+ $o = new wpdreamsCustomSelect("click_action", __("Action when clicking <strong>the magnifier</strong> icon", "ajax-search-lite"),
108
  array(
109
  'selects' => array(
110
  array("option" => __("Trigger live search", "ajax-search-lite"), "value" => "ajax_search"),
114
  array("option" => __("Redirec to: Custom URL", "ajax-search-lite"), "value" => "custom_url"),
115
  array("option" => __("Do nothing", "ajax-search-lite"), "value" => "nothing")
116
  ),
117
+ 'value' => $sd['click_action']
118
  ));
119
  $params[$o->getName()] = $o->getData();
120
 
121
+ ?>
122
+ <div wd-hide-on="click_action:ajax_search,nothing,same">
123
+ <?php
124
  $o = new wpdreamsCustomSelect("click_action_location", " location: ",
125
  array(
126
  'selects' => array(
131
  ));
132
  $params[$o->getName()] = $o->getData();
133
  ?>
134
+ </div>
135
  </div>
136
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
137
  <?php
138
+ $o = new wpdreamsCustomSelect("return_action", __("Action when pressing <strong>the return</strong> key", "ajax-search-lite"),
139
  array(
140
  'selects' => array(
141
  array("option" => __("Trigger live search", "ajax-search-lite"), "value" => "ajax_search"),
145
  array("option" => __("Redirec to: Custom URL", "ajax-search-lite"), "value" => "custom_url"),
146
  array("option" => __("Do nothing", "ajax-search-lite"), "value" => "nothing")
147
  ),
148
+ 'value' => $sd['return_action']
149
  ));
150
  $params[$o->getName()] = $o->getData();
151
+ ?>
152
+ <div wd-hide-on="return_action:ajax_search,nothing,same">
153
+ <?php
154
  $o = new wpdreamsCustomSelect("return_action_location", " location: ",
155
  array(
156
  'selects' => array(
161
  ));
162
  $params[$o->getName()] = $o->getData();
163
  ?>
164
+ </div>
165
  </div>
166
+ <div class="item" wd-conditional-logic="or" wd-show-on="return_action:custom_url;click_action:custom_url">
167
  <?php
168
  $o = new wpdreamsText("custom_redirect_url", __("Custom redirect URL", "ajax-search-lite"), $sd['custom_redirect_url']);
169
  $params[$o->getName()] = $o->getData();
188
  ?>
189
  <div class="descMsg" style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;"><?php echo __("Might not work with some Themes.", "ajax-search-lite"); ?></p>
190
  </div>
191
+ <div class="item" wd-disable-on="override_default_results:0">
192
  <?php
193
  $o = new wpdreamsTextSmall("results_per_page", __('Results count per page?', 'ajax-search-lite'),
194
  $sd['results_per_page']);
backend/tabs/instance/general/ordering.php CHANGED
@@ -16,7 +16,9 @@
16
  'value' => $sd['orderby_primary']
17
  ));
18
  $params[$o->getName()] = $o->getData();
19
-
 
 
20
  $o = new wpdreamsText("orderby_primary_cf", __('custom field', 'ajax-search-lite'), $sd['orderby_primary_cf']);
21
  $params[$o->getName()] = $o->getData();
22
 
@@ -30,6 +32,7 @@
30
  ));
31
  $params[$o->getName()] = $o->getData();
32
  ?>
 
33
  </div>
34
  <div class="item wd-secondary-order item-flex-nogrow item-flex-wrap"><?php
35
  $o = new wpdreamsCustomSelect("orderby_secondary", __('Secondary ordering', 'ajax-search-lite'),
@@ -47,7 +50,9 @@
47
  'value' => $sd['orderby_secondary']
48
  ));
49
  $params[$o->getName()] = $o->getData();
50
-
 
 
51
  $o = new wpdreamsText("orderby_secondary_cf", __('custom field', 'ajax-search-lite'), $sd['orderby_secondary_cf']);
52
  $params[$o->getName()] = $o->getData();
53
 
@@ -61,6 +66,7 @@
61
  ));
62
  $params[$o->getName()] = $o->getData();
63
  ?>
 
64
  <div class="descMsg item-flex-grow item-flex-100">
65
  <?php echo __('If two elements match the primary ordering criteria, the <b>Secondary ordering</b> is used.', 'ajax-search-lite'); ?>
66
  </div>
16
  'value' => $sd['orderby_primary']
17
  ));
18
  $params[$o->getName()] = $o->getData();
19
+ ?>
20
+ <div class='item-flex-nogrow item-flex-wrap' wd-show-on="orderby_primary:customfp DESC,customfp ASC">
21
+ <?php
22
  $o = new wpdreamsText("orderby_primary_cf", __('custom field', 'ajax-search-lite'), $sd['orderby_primary_cf']);
23
  $params[$o->getName()] = $o->getData();
24
 
32
  ));
33
  $params[$o->getName()] = $o->getData();
34
  ?>
35
+ </div>
36
  </div>
37
  <div class="item wd-secondary-order item-flex-nogrow item-flex-wrap"><?php
38
  $o = new wpdreamsCustomSelect("orderby_secondary", __('Secondary ordering', 'ajax-search-lite'),
50
  'value' => $sd['orderby_secondary']
51
  ));
52
  $params[$o->getName()] = $o->getData();
53
+ ?>
54
+ <div class='item-flex-nogrow item-flex-wrap' wd-show-on="orderby_secondary:customfs DESC,customfs ASC">
55
+ <?php
56
  $o = new wpdreamsText("orderby_secondary_cf", __('custom field', 'ajax-search-lite'), $sd['orderby_secondary_cf']);
57
  $params[$o->getName()] = $o->getData();
58
 
66
  ));
67
  $params[$o->getName()] = $o->getData();
68
  ?>
69
+ </div>
70
  <div class="descMsg item-flex-grow item-flex-100">
71
  <?php echo __('If two elements match the primary ordering criteria, the <b>Secondary ordering</b> is used.', 'ajax-search-lite'); ?>
72
  </div>
backend/tabs/instance/general/results_page_live_loader.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <fieldset id="res_live_search">
2
+ <legend>
3
+ <?php echo __('Results page live loader', 'ajax-search-lite'); ?>
4
+ <span class="asl_legend_docs">
5
+ <a target="_blank" href="https://documentation.ajaxsearchlite.com/general-options/results-page-live-loader"><span class="fa fa-book"></span>
6
+ <?php echo __('Documentation', 'ajax-search-lite'); ?>
7
+ </a>
8
+ </span>
9
+ </legend>
10
+ <div class="errorMsg">
11
+ <?php echo sprintf( __('<strong>Disclaimer:</strong> Live loading items to a page causes the script event handlers to detach on the affected elements - if there are
12
+ interactive elements (pop-up buttons etc..) controlled by a script within the results, they will probably stop working after a live load.
13
+ This cannot be prevented from this plugins perspective. <a href="%s" target="_blank">More information here.</a>', 'ajax-search-lite'), 'https://documentation.ajaxsearchlite.com/general-options/results-page-live-loader' ); ?>
14
+ </div>
15
+ <div class="item">
16
+ <?php
17
+ $o = new wpdreamsYesNo("res_live_search", __('Live load the results on the results page? <strong>(experimental)</strong>', 'ajax-search-lite'),
18
+ $sd['res_live_search']);
19
+ $params[$o->getName()] = $o->getData();
20
+ ?>
21
+ <div class="descMsg">
22
+ <?php echo __('If this is enabled, and the current page is the results page, the plugin will try to load the results there, without reloading the page.', 'ajax-search-lite'); ?>
23
+ </div>
24
+ </div>
25
+ <div class="item" wd-enable-on="res_live_search:1">
26
+ <?php
27
+ $o = new wpdreamsText("res_live_selector", __('Results container jQuery element selector', 'ajax-search-lite'), $sd['res_live_selector']);
28
+ $params[$o->getName()] = $o->getData();
29
+ ?>
30
+ <div class="descMsg">
31
+ <?php echo __('In many themes this is <strong>#main</strong>, but it can be different. This is very important to get right, or this will surely not work. The plugin will try other values as well, if this fails.', 'ajax-search-lite'); ?>
32
+ </div>
33
+ </div>
34
+ </fieldset>
35
+ <fieldset id="res_live_search_triggers" wd-enable-on="res_live_search:1">
36
+ <legend><?php echo __('Results page live loader triggers', 'ajax-search-lite'); ?></legend>
37
+ <div class="item">
38
+ <?php
39
+ $o = new wpdreamsYesNo("res_live_trigger_type", __('Trigger live search when typing?', 'ajax-search-lite'),
40
+ $sd['res_live_trigger_type']);
41
+ $params[$o->getName()] = $o->getData();
42
+ ?>
43
+ <div class="descMsg">
44
+ <?php echo __('If enabled, on the results page (or custom Elementor posts widget page), overrides the default behavior.', 'ajax-search-lite'); ?>
45
+ </div>
46
+ </div>
47
+ <div class="item">
48
+ <?php
49
+ $o = new wpdreamsYesNo("res_live_trigger_facet", __('Trigger live search when changing a facet on settings?', 'ajax-search-lite'),
50
+ $sd['res_live_trigger_facet']);
51
+ $params[$o->getName()] = $o->getData();
52
+ ?>
53
+ <div class="descMsg">
54
+ <?php echo __('If enabled, on the results page (or custom Elementor posts widget page), overrides the default behavior.', 'ajax-search-lite'); ?>
55
+ </div>
56
+ </div>
57
+ <div class="item">
58
+ <?php
59
+ $o = new wpdreamsYesNo("res_live_trigger_click", __('Trigger live search when clicking the magnifier button?', 'ajax-search-lite'),
60
+ $sd['res_live_trigger_click']);
61
+ $params[$o->getName()] = $o->getData();
62
+ ?>
63
+ <div class="descMsg">
64
+ <?php echo __('If enabled, on the results page (or custom Elementor posts widget page), overrides the default behavior.', 'ajax-search-lite'); ?>
65
+ </div>
66
+ </div>
67
+ <div class="item">
68
+ <?php
69
+ $o = new wpdreamsYesNo("res_live_trigger_return", __('Trigger live search when hitting the return key?', 'ajax-search-lite'),
70
+ $sd['res_live_trigger_return']);
71
+ $params[$o->getName()] = $o->getData();
72
+ ?>
73
+ <div class="descMsg">
74
+ <?php echo __('If enabled, on the results page (or custom Elementor posts widget page), overrides the default behavior.', 'ajax-search-lite'); ?>
75
+ </div>
76
+ </div>
77
+ </fieldset>
backend/tabs/instance/general/sources.php CHANGED
@@ -63,7 +63,7 @@
63
  $params[$o->getName()] = $o->getData();
64
  ?>
65
  </div>
66
- <div class="item">
67
  <?php
68
  $o = new wpdreamsCustomFields("customfields", __("..or search in selected custom fields?", "ajax-search-lite"),
69
  $sd['customfields']);
63
  $params[$o->getName()] = $o->getData();
64
  ?>
65
  </div>
66
+ <div class="item" wd-disable-on="search_all_cf:1">
67
  <?php
68
  $o = new wpdreamsCustomFields("customfields", __("..or search in selected custom fields?", "ajax-search-lite"),
69
  $sd['customfields']);
backend/tabs/instance/general_options.php CHANGED
@@ -1,8 +1,9 @@
1
  <ul id="subtabs" class='tabs'>
2
- <li><a tabid="101" class='subtheme current'>Sources & Basics</a></li>
3
- <li><a tabid="102" class='subtheme'>Behavior</a></li>
4
- <li><a tabid="104" class='subtheme'>Ordering</a></li>
5
- <li><a tabid="103" class='subtheme'>Autocomplete & Suggestions</a></li>
 
6
  </ul>
7
  <div class='tabscontent'>
8
  <div tabid="101">
@@ -44,6 +45,9 @@
44
  <?php include(ASL_PATH."backend/tabs/instance/general/autocomplete.php"); ?>
45
  </fieldset>
46
  </div>
 
 
 
47
  </div>
48
  <div class="item">
49
  <input type="hidden" name='asl_submit' value=1 />
1
  <ul id="subtabs" class='tabs'>
2
+ <li><a tabid="101" class='subtheme current'><?php _e("Sources & Basics", "ajax-search-lite"); ?></a></li>
3
+ <li><a tabid="102" class='subtheme'><?php _e("Behavior", "ajax-search-lite"); ?></a></li>
4
+ <li><a tabid="104" class='subtheme'><?php _e("Ordering", "ajax-search-lite"); ?></a></li>
5
+ <li><a tabid="103" class='subtheme'><?php _e("Autocomplete & Suggestions", "ajax-search-lite"); ?></a></li>
6
+ <li><a tabid="105" class='subtheme'><?php _e("Results Page Live Loader", "ajax-search-lite"); ?></a></li>
7
  </ul>
8
  <div class='tabscontent'>
9
  <div tabid="101">
45
  <?php include(ASL_PATH."backend/tabs/instance/general/autocomplete.php"); ?>
46
  </fieldset>
47
  </div>
48
+ <div tabid="105">
49
+ <?php include(ASL_PATH."backend/tabs/instance/general/results_page_live_loader.php"); ?>
50
+ </div>
51
  </div>
52
  <div class="item">
53
  <input type="hidden" name='asl_submit' value=1 />
backend/tabs/instance/layout/box_layout.php CHANGED
@@ -87,18 +87,23 @@ $themes = array(
87
  $o = new wpdreamsYesNo("override_bg", __("Override background color?", "ajax-search-lite"),
88
  $sd['override_bg']);
89
  $params[$o->getName()] = $o->getData();
90
-
 
 
91
  $o = new wpdreamsColorPicker("override_bg_color", __("color:", "ajax-search-lite"),
92
  $sd['override_bg_color']);
93
  $params[$o->getName()] = $o->getData();
94
  ?>
 
95
  </div>
96
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
97
  <?php
98
  $o = new wpdreamsYesNo("override_icon", __("Override magnifier & icon colors?", "ajax-search-lite"),
99
  $sd['override_icon']);
100
  $params[$o->getName()] = $o->getData();
101
-
 
 
102
  $o = new wpdreamsColorPicker("override_icon_bg_color", __("icon background colors", "ajax-search-lite"),
103
  $sd['override_icon_bg_color']);
104
  $params[$o->getName()] = $o->getData();
@@ -107,6 +112,7 @@ $themes = array(
107
  $sd['override_icon_color']);
108
  $params[$o->getName()] = $o->getData();
109
  ?>
 
110
  </div>
111
  <div class="item">
112
  <div style="margin: 8px 17px 16px 0;">
@@ -114,11 +120,15 @@ $themes = array(
114
  $o = new wpdreamsYesNo("override_border", __("Override search box border?", "ajax-search-lite"),
115
  $sd['override_border']);
116
  $params[$o->getName()] = $o->getData();
117
- ?></div><?php
 
 
 
118
  $o = new wpdreamsBorder("override_border_style", __("Border style", "ajax-search-lite"),
119
  $sd['override_border_style']);
120
  $params[$o->getName()] = $o->getData();
121
  ?>
 
122
  </div>
123
  </fieldset>
124
  <fieldset>
@@ -128,22 +138,28 @@ $themes = array(
128
  $o = new wpdreamsYesNo("results_bg_override", __("Override results container background color?", "ajax-search-lite"),
129
  $sd['results_bg_override']);
130
  $params[$o->getName()] = $o->getData();
131
-
 
 
132
  $o = new wpdreamsColorPicker("results_bg_override_color", __("color:", "ajax-search-lite"),
133
  $sd['results_bg_override_color']);
134
  $params[$o->getName()] = $o->getData();
135
  ?>
 
136
  </div>
137
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
138
  <?php
139
  $o = new wpdreamsYesNo("results_item_bg_override", __("Override results background color?", "ajax-search-lite"),
140
  $sd['results_item_bg_override']);
141
  $params[$o->getName()] = $o->getData();
142
-
 
 
143
  $o = new wpdreamsColorPicker("results_item_bg_override_color", __("color:", "ajax-search-lite"),
144
  $sd['results_item_bg_override_color']);
145
  $params[$o->getName()] = $o->getData();
146
  ?>
 
147
  </div>
148
  <div class="item">
149
  <div style="margin: 8px 17px 16px 0;">
@@ -151,11 +167,15 @@ $themes = array(
151
  $o = new wpdreamsYesNo("results_override_border", __("Override results box border?", "ajax-search-lite"),
152
  $sd['results_override_border']);
153
  $params[$o->getName()] = $o->getData();
154
- ?></div><?php
 
 
 
155
  $o = new wpdreamsBorder("results_override_border_style", __("Border style", "ajax-search-lite"),
156
  $sd['results_override_border_style']);
157
  $params[$o->getName()] = $o->getData();
158
  ?>
 
159
  </div>
160
  </fieldset>
161
  <fieldset>
@@ -165,11 +185,14 @@ $themes = array(
165
  $o = new wpdreamsYesNo("settings_bg_override", __("Override settings container background color?", "ajax-search-lite"),
166
  $sd['settings_bg_override']);
167
  $params[$o->getName()] = $o->getData();
168
-
 
 
169
  $o = new wpdreamsColorPicker("settings_bg_override_color", __("color:", "ajax-search-lite"),
170
  $sd['settings_bg_override_color']);
171
  $params[$o->getName()] = $o->getData();
172
  ?>
 
173
  </div>
174
  <div class="item">
175
  <div style="margin: 8px 17px 16px 0;">
@@ -177,10 +200,14 @@ $themes = array(
177
  $o = new wpdreamsYesNo("settings_override_border", __("Override settings box border?", "ajax-search-lite"),
178
  $sd['settings_override_border']);
179
  $params[$o->getName()] = $o->getData();
180
- ?></div><?php
 
 
 
181
  $o = new wpdreamsBorder("settings_override_border_style", __("Border style", "ajax-search-lite"),
182
  $sd['settings_override_border_style']);
183
  $params[$o->getName()] = $o->getData();
184
  ?>
 
185
  </div>
186
  </fieldset>
87
  $o = new wpdreamsYesNo("override_bg", __("Override background color?", "ajax-search-lite"),
88
  $sd['override_bg']);
89
  $params[$o->getName()] = $o->getData();
90
+ ?>
91
+ <div wd-enable-on="override_bg:1">
92
+ <?php
93
  $o = new wpdreamsColorPicker("override_bg_color", __("color:", "ajax-search-lite"),
94
  $sd['override_bg_color']);
95
  $params[$o->getName()] = $o->getData();
96
  ?>
97
+ </div>
98
  </div>
99
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
100
  <?php
101
  $o = new wpdreamsYesNo("override_icon", __("Override magnifier & icon colors?", "ajax-search-lite"),
102
  $sd['override_icon']);
103
  $params[$o->getName()] = $o->getData();
104
+ ?>
105
+ <div class="item-flex-nogrow" wd-enable-on="override_icon:1">
106
+ <?php
107
  $o = new wpdreamsColorPicker("override_icon_bg_color", __("icon background colors", "ajax-search-lite"),
108
  $sd['override_icon_bg_color']);
109
  $params[$o->getName()] = $o->getData();
112
  $sd['override_icon_color']);
113
  $params[$o->getName()] = $o->getData();
114
  ?>
115
+ </div>
116
  </div>
117
  <div class="item">
118
  <div style="margin: 8px 17px 16px 0;">
120
  $o = new wpdreamsYesNo("override_border", __("Override search box border?", "ajax-search-lite"),
121
  $sd['override_border']);
122
  $params[$o->getName()] = $o->getData();
123
+ ?>
124
+ </div>
125
+ <div wd-enable-on="override_border:1">
126
+ <?php
127
  $o = new wpdreamsBorder("override_border_style", __("Border style", "ajax-search-lite"),
128
  $sd['override_border_style']);
129
  $params[$o->getName()] = $o->getData();
130
  ?>
131
+ </div>
132
  </div>
133
  </fieldset>
134
  <fieldset>
138
  $o = new wpdreamsYesNo("results_bg_override", __("Override results container background color?", "ajax-search-lite"),
139
  $sd['results_bg_override']);
140
  $params[$o->getName()] = $o->getData();
141
+ ?>
142
+ <div wd-enable-on="results_bg_override:1">
143
+ <?php
144
  $o = new wpdreamsColorPicker("results_bg_override_color", __("color:", "ajax-search-lite"),
145
  $sd['results_bg_override_color']);
146
  $params[$o->getName()] = $o->getData();
147
  ?>
148
+ </div>
149
  </div>
150
  <div class="item item-flex-nogrow" style="flex-wrap: wrap;">
151
  <?php
152
  $o = new wpdreamsYesNo("results_item_bg_override", __("Override results background color?", "ajax-search-lite"),
153
  $sd['results_item_bg_override']);
154
  $params[$o->getName()] = $o->getData();
155
+ ?>
156
+ <div wd-enable-on="results_item_bg_override:1">
157
+ <?php
158
  $o = new wpdreamsColorPicker("results_item_bg_override_color", __("color:", "ajax-search-lite"),
159
  $sd['results_item_bg_override_color']);
160
  $params[$o->getName()] = $o->getData();
161
  ?>
162
+ </div>
163
  </div>
164
  <div class="item">
165
  <div style="margin: 8px 17px 16px 0;">
167
  $o = new wpdreamsYesNo("results_override_border", __("Override results box border?", "ajax-search-lite"),
168
  $sd['results_override_border']);
169
  $params[$o->getName()] = $o->getData();
170
+ ?>
171
+ </div>
172
+ <div wd-enable-on="results_override_border:1">
173
+ <?php
174
  $o = new wpdreamsBorder("results_override_border_style", __("Border style", "ajax-search-lite"),
175
  $sd['results_override_border_style']);
176
  $params[$o->getName()] = $o->getData();
177
  ?>
178
+ </div>
179
  </div>
180
  </fieldset>
181
  <fieldset>
185
  $o = new wpdreamsYesNo("settings_bg_override", __("Override settings container background color?", "ajax-search-lite"),
186
  $sd['settings_bg_override']);
187
  $params[$o->getName()] = $o->getData();
188
+ ?>
189
+ <div wd-enable-on="settings_bg_override:1">
190
+ <?php
191
  $o = new wpdreamsColorPicker("settings_bg_override_color", __("color:", "ajax-search-lite"),
192
  $sd['settings_bg_override_color']);
193
  $params[$o->getName()] = $o->getData();
194
  ?>
195
+ </div>
196
  </div>
197
  <div class="item">
198
  <div style="margin: 8px 17px 16px 0;">
200
  $o = new wpdreamsYesNo("settings_override_border", __("Override settings box border?", "ajax-search-lite"),
201
  $sd['settings_override_border']);
202
  $params[$o->getName()] = $o->getData();
203
+ ?>
204
+ </div>
205
+ <div wd-enable-on="settings_override_border:1">
206
+ <?php
207
  $o = new wpdreamsBorder("settings_override_border_style", __("Border style", "ajax-search-lite"),
208
  $sd['settings_override_border_style']);
209
  $params[$o->getName()] = $o->getData();
210
  ?>
211
+ </div>
212
  </div>
213
  </fieldset>
backend/tabs/instance/layout/keyword_highlight.php CHANGED
@@ -13,20 +13,22 @@
13
  $params[$o->getName()] = $o->getData();
14
  ?>
15
  </div>
16
- <div class="item">
17
- <?php
18
- $o = new wpdreamsYesNo("kw_highlight_whole_words", __("Highlight whole words only?", "ajax-search-lite"), $sd['kw_highlight_whole_words']);
19
- $params[$o->getName()] = $o->getData();
20
- ?>
21
- </div>
22
- <div class="item"><?php
23
- $o = new wpdreamsColorPicker("highlight_color", "Highlight text color", $sd['highlight_color']);
24
- $params[$o->getName()] = $o->getData();
25
- ?></div>
26
- <div class="item"><?php
27
- $o = new wpdreamsColorPicker("highlight_bg_color", "Highlight-text background color", $sd['highlight_bg_color']);
28
- $params[$o->getName()] = $o->getData();
29
- ?>
 
 
30
  </div>
31
  </fieldset>
32
  <fieldset>
@@ -45,35 +47,37 @@
45
  $o = new wpdreamsYesNo("single_highlight", __('Highlight search text on single result pages?', 'ajax-search-lite'), $sd['single_highlight']);
46
  $params[$o->getName()] = $o->getData();
47
  ?></div>
48
- <div class="item"><?php
49
- $o = new wpdreamsYesNo("single_highlightwholewords", __('Highlight only whole words?', 'ajax-search-lite'), $sd['single_highlightwholewords']);
50
- $params[$o->getName()] = $o->getData();
51
- ?></div>
52
- <div class="item"><?php
53
- $o = new wpdreamsColorPicker("single_highlightcolor", __('Highlight text color', 'ajax-search-lite'), $sd['single_highlightcolor']);
54
- $params[$o->getName()] = $o->getData();
55
- ?></div>
56
- <div class="item"><?php
57
- $o = new wpdreamsColorPicker("single_highlightbgcolor", __('Highlight-text background color', 'ajax-search-lite'), $sd['single_highlightbgcolor']);
58
- $params[$o->getName()] = $o->getData();
59
- ?>
60
- </div>
61
- <div class="item item-flex-nogrow item-flex-wrap">
62
- <?php
63
- $o = new wpdreamsYesNo("single_highlight_scroll", __('Scroll to the first keyword match if possible?', 'ajax-search-lite'), $sd['single_highlight_scroll']);
 
64
 
65
- $o = new wpdreamsTextSmall("single_highlight_offset", __('scroll offset (px)', 'ajax-search-lite'), $sd['single_highlight_offset']);
66
- ?>
67
- <div class="descMsg item-flex-grow item-flex-100">
68
- <?php echo __('A negative offset will move the window upwards, a positive downwards. Default: 0', 'ajax-search-lite'); ?>
 
69
  </div>
70
- </div>
71
- <div class="item"><?php
72
- $o = new wpdreamsText("single_highlight_selector", __('Result page content jQuery element selector', 'ajax-search-lite'), $sd['single_highlight_selector']);
73
- $params[$o->getName()] = $o->getData();
74
- ?>
75
- <div class="descMsg item-flex-grow item-flex-100">
76
- <?php echo __('Optional, but very useful - it tells which element contains exactly the result content, so words are highlighted only on the given section of the page.', 'ajax-search-lite'); ?>
77
  </div>
78
  </div>
79
  </fieldset>
13
  $params[$o->getName()] = $o->getData();
14
  ?>
15
  </div>
16
+ <div wd-disable-on="kw_highlight:0">
17
+ <div class="item">
18
+ <?php
19
+ $o = new wpdreamsYesNo("kw_highlight_whole_words", __("Highlight whole words only?", "ajax-search-lite"), $sd['kw_highlight_whole_words']);
20
+ $params[$o->getName()] = $o->getData();
21
+ ?>
22
+ </div>
23
+ <div class="item"><?php
24
+ $o = new wpdreamsColorPicker("highlight_color", "Highlight text color", $sd['highlight_color']);
25
+ $params[$o->getName()] = $o->getData();
26
+ ?></div>
27
+ <div class="item"><?php
28
+ $o = new wpdreamsColorPicker("highlight_bg_color", "Highlight-text background color", $sd['highlight_bg_color']);
29
+ $params[$o->getName()] = $o->getData();
30
+ ?>
31
+ </div>
32
  </div>
33
  </fieldset>
34
  <fieldset>
47
  $o = new wpdreamsYesNo("single_highlight", __('Highlight search text on single result pages?', 'ajax-search-lite'), $sd['single_highlight']);
48
  $params[$o->getName()] = $o->getData();
49
  ?></div>
50
+ <div wd-disable-on="single_highlight:0">
51
+ <div class="item"><?php
52
+ $o = new wpdreamsYesNo("single_highlightwholewords", __('Highlight only whole words?', 'ajax-search-lite'), $sd['single_highlightwholewords']);
53
+ $params[$o->getName()] = $o->getData();
54
+ ?></div>
55
+ <div class="item"><?php
56
+ $o = new wpdreamsColorPicker("single_highlightcolor", __('Highlight text color', 'ajax-search-lite'), $sd['single_highlightcolor']);
57
+ $params[$o->getName()] = $o->getData();
58
+ ?></div>
59
+ <div class="item"><?php
60
+ $o = new wpdreamsColorPicker("single_highlightbgcolor", __('Highlight-text background color', 'ajax-search-lite'), $sd['single_highlightbgcolor']);
61
+ $params[$o->getName()] = $o->getData();
62
+ ?>
63
+ </div>
64
+ <div class="item item-flex-nogrow item-flex-wrap">
65
+ <?php
66
+ $o = new wpdreamsYesNo("single_highlight_scroll", __('Scroll to the first keyword match if possible?', 'ajax-search-lite'), $sd['single_highlight_scroll']);
67
 
68
+ $o = new wpdreamsTextSmall("single_highlight_offset", __('scroll offset (px)', 'ajax-search-lite'), $sd['single_highlight_offset']);
69
+ ?>
70
+ <div class="descMsg item-flex-grow item-flex-100">
71
+ <?php echo __('A negative offset will move the window upwards, a positive downwards. Default: 0', 'ajax-search-lite'); ?>
72
+ </div>
73
  </div>
74
+ <div class="item"><?php
75
+ $o = new wpdreamsText("single_highlight_selector", __('Result page content jQuery element selector', 'ajax-search-lite'), $sd['single_highlight_selector']);
76
+ $params[$o->getName()] = $o->getData();
77
+ ?>
78
+ <div class="descMsg item-flex-grow item-flex-100">
79
+ <?php echo __('Optional, but very useful - it tells which element contains exactly the result content, so words are highlighted only on the given section of the page.', 'ajax-search-lite'); ?>
80
+ </div>
81
  </div>
82
  </div>
83
  </fieldset>
backend/tabs/instance/layout/results_layout.php CHANGED
@@ -1,3 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="item item-flex-nogrow item-flex-wrap">
2
  <?php
3
  $o = new wpdreamsCustomSelect("v_res_column_count", __('Number of result columns', 'ajax-search-lite'), array(
@@ -68,11 +93,32 @@
68
  $params[$o->getName()] = $o->getData();
69
  ?>
70
  </div>
71
- <div class="item">
72
- <?php
73
- $o = new wpdreamsYesNo("showdate", __("Show date in results?", "ajax-search-lite"), $sd['showdate']);
74
- $params[$o->getName()] = $o->getData();
75
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  </div>
77
  <div class="item">
78
  <?php
1
+ <div class="item item-flex-nogrow item-flex-wrap">
2
+ <?php
3
+ $o = new wpdreamsTextSmall("results_width", __('Results box width', 'ajax-search-pro'), array(
4
+ 'icon' => 'desktop',
5
+ 'value' => $sd['results_width']
6
+ ));
7
+ $params[$o->getName()] = $o->getData();
8
+ $o = new wpdreamsTextSmall("results_width_tablet", '', array(
9
+ 'icon' => 'tablet',
10
+ 'value' => $sd['results_width_tablet']
11
+ ));
12
+ $params[$o->getName()] = $o->getData();
13
+ $o = new wpdreamsTextSmall("results_width_phone", '', array(
14
+ 'icon' => 'phone',
15
+ 'value' => $sd['results_width_phone']
16
+ ));
17
+ $params[$o->getName()] = $o->getData();
18
+ ?>
19
+ <div class="descMsg item-flex-grow item-flex-100">
20
+ <?php echo sprintf(
21
+ __('Use with <a href="%s" target="_blank">CSS units</a> (like %s or %s or %s ..) Default: <strong>%s</strong>', 'ajax-search-lite'),
22
+ 'https://www.w3schools.com/cssref/css_units.asp', '10px', '50%', 'auto', 'auto'
23
+ ); ?>
24
+ </div>
25
+ </div>
26
  <div class="item item-flex-nogrow item-flex-wrap">
27
  <?php
28
  $o = new wpdreamsCustomSelect("v_res_column_count", __('Number of result columns', 'ajax-search-lite'), array(
93
  $params[$o->getName()] = $o->getData();
94
  ?>
95
  </div>
96
+ <div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
97
+ <?php
98
+ $o = new wpdreamsYesNo("showdate", __('Show date in results?', 'ajax-search-lite'), $sd['showdate']);
99
+ $params[$o->getName()] = $o->getData();
100
+ ?>
101
+ <div wd-enable-on="showdate:1">
102
+ <?php
103
+ $o = new wpdreamsYesNo("custom_date", __('Use custom date format?', 'ajax-search-lite'),
104
+ $sd['custom_date']);
105
+ $params[$o->getName()] = $o->getData();
106
+ ?>
107
+ </div>
108
+ <div wd-enable-on="showdate:1">
109
+ <?php
110
+ $o = new wpdreamsText("custom_date_format", __(' format', 'ajax-search-lite'),
111
+ $sd['custom_date_format']);
112
+ $params[$o->getName()] = $o->getData();
113
+ ?>
114
+ </div>
115
+ <div class='descMsg' style="min-width: 100%;
116
+ flex-wrap: wrap;
117
+ flex-basis: auto;
118
+ flex-grow: 1;
119
+ box-sizing: border-box;">
120
+ <?php echo __('If turned OFF, it will use WordPress defaults. Default custom value: <b>Y-m-d H:i:s</b>', 'ajax-search-lite'); ?>
121
+ </div>
122
  </div>
123
  <div class="item">
124
  <?php
css/style.basic.css CHANGED
@@ -1 +1,1059 @@
1
- @keyframes aslAnFadeInDrop{0%{opacity:0;transform:translate(0,-50px);}100%{opacity:1;transform:translate(0,0);}}@-webkit-keyframes aslAnFadeInDrop{0%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}100%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}}@keyframes aslAnFadeOutDrop{0%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}100%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}}@-webkit-keyframes aslAnFadeOutDrop{0%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}100%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}}.hiddend{display:none !important;}div.asl_w.asl_an_fadeInDrop,div.asl_w.asl_an_fadeOutDrop{-webkit-animation-duration:100ms;animation-duration:100ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;}div.asl_w.asl_an_fadeInDrop{animation-name:aslAnFadeInDrop;-webkit-animation-name:aslAnFadeInDrop;}div.asl_w.asl_an_fadeOutDrop{animation-name:aslAnFadeOutDrop;-webkit-animation-name:aslAnFadeOutDrop;}div.asl_w.asl_main_container{transition:width 130ms linear;-webkit-transition:width 130ms linear;}div.asl_w,div.asl_w *,div.asl_r,div.asl_r *,div.asl_s,div.asl_s *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;-ms-box-sizing:content-box;-o-box-sizing:content-box;box-sizing:content-box;padding:0;margin:0;border:0;border-radius:0;text-transform:none;text-shadow:none;box-shadow:none;text-decoration:none;text-align:left;letter-spacing:normal;}div.asl_r,div.asl_r *{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}div.asl_m .proinput input::-ms-clear{display:none !important;width:0 !important;height:0 !important;}div.asl_m .proinput input::-ms-reveal{display:none !important;width:0 !important;height:0 !important;}div.asl_m input[type="search"]{-webkit-appearance:textfield !important;}div.asl_m input[type="search"]::-webkit-search-decoration,div.asl_m input[type="search"]::-webkit-search-cancel-button,div.asl_m input[type="search"]::-webkit-search-results-button,div.asl_m input[type="search"]::-webkit-search-results-decoration{display:none;}.clear{clear:both;}.hiddend{display:none;}div.asl_m textarea:focus,div.asl_m input:focus{outline:none;}div.asl_m{width:100%;height:auto;border-radius:0;background:rgba(255,255,255,0);overflow:hidden;position:relative;z-index:200;}div.asl_m .probox{width:auto;border-radius:5px;background:#fff;overflow:hidden;border:1px solid #fff;box-shadow:1px 0 3px #ccc inset;display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;}div.asl_m .probox .proinput{width:auto;height:100%;margin:0 0 0 10px;padding:0 5px;float:left;box-shadow:none;position:relative;flex:1 1 auto;-webkit-flex:1 1 auto;order:5;-webkit-order:5;}div.asl_m .probox .proinput input:before,div.asl_m .probox .proinput input:after,div.asl_m .probox .proinput form:before,div.asl_m .probox .proinput form:after{display:none;}div.asl_m .probox .proinput input{height:28px;border:0;background:transparent;width:100%;box-shadow:none;margin:-1px;padding:0;left:0;line-height:normal !important;display:block;}div.asl_m .probox .proinput input::-webkit-input-placeholder{opacity:.85;}div.asl_m .probox .proinput input::-moz-placeholder{opacity:.85;}div.asl_m .probox .proinput input:-ms-input-placeholder{opacity:.85;}div.asl_m .probox .proinput input:-moz-placeholder{opacity:.85;}div.asl_m .proinput input.orig{padding:0 !important;margin:0 !important;background:transparent !important;border:none !important;background-color:transparent !important;box-shadow:none !important;z-index:10;position:relative;}div.asl_m .proinput input.autocomplete{padding:0 !important;margin:0;background:transparent !important;border:none !important;background-color:transparent !important;box-shadow:none !important;opacity:.2;}div.asl_m .probox .proinput input.autocomplete{border:0;background:transparent;width:100%;box-shadow:none;margin:0;margin-top:-28px !important;padding:0;left:0;position:relative;z-index:9;}div.asl_m .probox .proinput.iepaddingfix{padding-top:0;}div.asl_m .probox .proinput .loading{width:32px;background:#000;height:100%;box-shadow:none;}div.asl_m .probox .proloading,div.asl_m .probox .proclose,div.asl_m .probox .promagnifier,div.asl_m .probox .prosettings{width:20px;height:20px;background:none;background-size:20px 20px;float:right;box-shadow:none;margin:0;padding:0;text-align:center;flex:0 0 auto;-webkit-flex:0 0 auto;z-index:100;}div.asl_m .probox .promagnifier{order:10;-webkit-order:10;}div.asl_m .probox .prosettings{order:1;-webkit-order:1;}div.asl_m .probox .proloading,div.asl_m .probox .proclose{background-position:center center;display:none;background-size:auto;background-repeat:no-repeat;background-color:transparent;order:6;-webkit-order:6;}div.asl_m .probox .proclose{position:relative;cursor:pointer;}div.asl_m .probox .promagnifier .innericon,div.asl_m .probox .prosettings .innericon,div.asl_m .probox .proclose .innericon{background-size:20px 20px;background-position:center center;background-repeat:no-repeat;background-color:transparent;width:100%;height:100%;text-align:center;overflow:hidden;}div.asl_m .probox .promagnifier .innericon svg,div.asl_m .probox .prosettings .innericon svg,div.asl_m .probox .proloading svg{height:100%;width:22px;vertical-align:baseline;display:inline-block;}div.asl_m .probox .proloading{padding:2px;box-sizing:border-box;}div.asl_m .probox div.asl_loader,div.asl_m .probox div.asl_loader *{box-sizing:border-box !important;margin:0;padding:0;box-shadow:none;}div.asl_m .probox div.asl_loader{box-sizing:border-box;display:flex;flex:0 1 auto;flex-direction:column;flex-grow:0;flex-shrink:0;flex-basis:28px;max-width:100%;max-height:100%;width:100%;height:100%;align-items:center;justify-content:center;}div.asl_m .probox div.asl_loader-inner{width:100%;margin:0 auto;text-align:center;height:100%;}@-webkit-keyframes rotate-simple{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg);}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes rotate-simple{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg);}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}}div.asl_m .probox div.asl_simple-circle{margin:0;height:100%;width:100%;animation:rotate-simple .8s infinite linear;-webkit-animation:rotate-simple .8s infinite linear;border:4px solid #fff;border-right-color:transparent !important;border-radius:50%;box-sizing:border-box;}div.asl_m .probox .proclose svg{background:#333;border-radius:50%;position:absolute;top:50%;width:20px;height:20px;margin-top:-10px;left:50%;margin-left:-10px;fill:#fefefe;padding:4px;box-sizing:border-box;box-shadow:0 0 0 2px rgba(255,255,255,.9);}div.asl_r *{text-decoration:none;text-shadow:none;}div.asl_r .results .asl_nores{overflow:hidden;width:auto;height:100%;line-height:initial;text-align:center;margin:0;background:#fff;padding:10px 3px;color:#222;}div.asl_r.horizontal{padding:2px 0 10px;}div.asl_r.horizontal .results .nores{background:transparent;}div.asl_r .results{overflow:hidden;width:auto;height:0;margin:0;padding:0;}div.asl_r.horizontal .results{height:auto;width:auto;}div.asl_r .results .item{overflow:hidden;width:auto;margin:0;padding:3px;position:relative;background:#f4f4f4;border-left:1px solid rgba(255,255,255,.6);border-right:1px solid rgba(255,255,255,.4);animation-delay:0s;animation-duration:1s;animation-fill-mode:both;animation-timing-function:ease;backface-visibility:hidden;-webkit-animation-delay:0s;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;-webkit-animation-timing-function:ease;-webkit-backface-visibility:hidden;}div.asl_r.vertical .results .item:first-child{border-radius:3px 3px 0 0;}div.asl_r.vertical .results .item:last-child{border-radius:0 0 3px 3px;margin-bottom:0;}div.asl_r.vertical .results .item:last-child:after{height:0;margin:0;width:0;}div.asl_r .results .item .asl_image{overflow:hidden;background:transparent;margin:2px 8px 0 0;padding:0;float:left;background-position:center;background-size:cover;}div.asl_r .results .item .asl_image img{width:100%;height:100%;}div.asl_r .results .item .asl_content{overflow:hidden;height:auto;background:transparent;margin:0;padding:3px 3px 5px 3px;}div.asl_r .results .item .asl_content h3{margin:0;padding:0;display:inline;line-height:inherit;}div.asl_r .results .item .asl_content .asl_desc{margin-top:4px;font-size:12px;line-height:18px;}div.asl_r .results .item div.etc{margin-top:4px;}div.asl_r .results a span.overlap{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;}div.asl_r p.showmore{text-align:center;padding:0;margin:0;font-weight:normal;font-family:Open Sans;color:#055e94;font-size:12px;line-height:30px;text-shadow:0 0 0 rgba(255,255,255,0);background-color:#fff;margin-top:3px;cursor:pointer;}div.asl_r p.showmore a{font-weight:normal;font-family:Open Sans;color:#055e94;font-size:12px;line-height:30px;text-shadow:0 0 0 rgba(255,255,255,0);display:block;text-align:center;cursor:pointer;}.results .asl_nores .asl_keyword{padding:0 6px;cursor:pointer;font-weight:bold;font-family:Open Sans;}div.asl_r .resdrg{height:auto;}div.asl_w .group:first-of-type{margin:0 0 -3px;}div.asl_s.searchsettings{width:200px;height:auto;position:absolute;display:none;z-index:1101;border-radius:0 0 3px 3px;visibility:hidden;padding:0;}div.asl_s.searchsettings form{display:flex;flex-wrap:wrap;margin:0 0 12px 0 !important;padding:0 !important;}div.asl_s.searchsettings .asl_option_inner{margin:2px 10px 0 10px;*padding-bottom:10px;}div.asl_s.searchsettings.ie78 .asl_option_inner{margin-bottom:0 !important;padding-bottom:0 !important;}div.asl_s.searchsettings .asl_option_label{font-size:14px;line-height:20px !important;margin:0;width:150px;text-shadow:none;padding:0;min-height:20px;border:none;background:transparent;float:none;}div.asl_s.searchsettings .asl_option_inner input[type=checkbox]{display:none !important;}div.asl_s.searchsettings.ie78 .asl_option_inner input[type=checkbox]{display:block;}div.asl_s.searchsettings.ie78 .asl_option_label{float:right !important;}div.asl_s.searchsettings .asl_option{display:flex;flex-direction:row;-webkit-flex-direction:row;align-items:flex-start;margin:0 0 10px 0;cursor:pointer;}div.asl_s.searchsettings .asl_option.asl-o-last,div.asl_s.searchsettings .asl_option:last-child{margin-bottom:0;}div.asl_s.searchsettings .asl_option_inner{width:17px;height:17px;position:relative;flex-grow:0;-webkit-flex-grow:0;flex-shrink:0;-webkit-flex-shrink:0;}div.asl_s.searchsettings .asl_option_inner label{cursor:pointer;position:absolute;width:17px;height:17px;top:0;padding:0;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);overflow:hidden;font-size:0 !important;color:rgba(0,0,0,0);}div.asl_s.searchsettings.ie78 .asl_option_inner label{display:none;}div.asl_s.searchsettings .asl_option_inner label:after{opacity:0;font-family:'aslsicons2';content:"î €";font-weight:normal !important;background:transparent;border:none !important;box-sizing:content-box;color:#fff;height:100%;width:100%;padding:0 !important;margin:1px 0 0 0 !important;line-height:17px;text-align:center;text-decoration:none;text-shadow:none;display:block;font-size:11px !important;position:absolute;top:0;left:0;z-index:1;}div.asl_s.searchsettings.ie78 .asl_option_inner label:after{display:none;}div.asl_s.searchsettings .asl_option_inner label:hover::after{opacity:.3;}div.asl_s.searchsettings .asl_option_inner input[type=checkbox]:checked+label:after{opacity:1;}div.asl_s.searchsettings fieldset{position:relative;float:left;}div.asl_s.searchsettings fieldset{background:transparent;font-size:.9em;margin:12px 0 0 !important;padding:0;width:192px;}div.asl_s.searchsettings fieldset .asl_option_label{width:130px;display:block;}div.asl_s.searchsettings form fieldset legend{padding:5px 0 8px 10px;}/*[simplebar]*/[data-asl_simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;}.asl_simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit;}.asl_simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto !important;height:auto !important;z-index:0;}.asl_simplebar-offset{direction:inherit !important;box-sizing:inherit !important;resize:none !important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch;}.asl_simplebar-content-wrapper{direction:inherit;box-sizing:border-box !important;position:relative;display:block;height:100%;width:auto;visibility:visible;max-width:100%;max-height:100%;scrollbar-width:none;}.asl_simplebar-content-wrapper::-webkit-scrollbar,.asl_simplebar-hide-scrollbar::-webkit-scrollbar{display:none;}.asl_simplebar-content:before,.asl_simplebar-content:after{content:' ';display:table;}.asl_simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none;}.asl_simplebar-height-auto-observer-wrapper{box-sizing:inherit !important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0;}.asl_simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1;}.asl_simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden;}[data-asl_simplebar].asl_simplebar-dragging .asl_simplebar-content{pointer-events:none;user-select:none;-webkit-user-select:none;}[data-asl_simplebar].asl_simplebar-dragging .asl_simplebar-track{pointer-events:all;}.asl_simplebar-scrollbar{position:absolute;right:2px;width:7px;min-height:10px;}.asl_simplebar-scrollbar:before{position:absolute;content:'';background:rgba(0,0,0,.5);border-radius:7px;left:0;right:0;opacity:0;transition:opacity .2s linear;}.asl_simplebar-scrollbar.asl_simplebar-visible:before{opacity:1;transition:opacity 0s linear;}.asl_simplebar-track.asl_simplebar-vertical{top:0;width:11px;margin-top:4px !important;margin-bottom:4px !important;}.asl_simplebar-track.asl_simplebar-vertical .asl_simplebar-scrollbar:before{top:2px;bottom:2px;}.asl_simplebar-track.asl_simplebar-horizontal{left:0;height:11px;margin-left:12px !important;margin-right:12px !important;}.asl_simplebar-track.asl_simplebar-horizontal .asl_simplebar-scrollbar:before{height:100%;left:2px;right:2px;}.asl_simplebar-track.asl_simplebar-horizontal .asl_simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto;}[data-asl_simplebar-direction='rtl'] .asl_simplebar-track.asl_simplebar-vertical{right:auto;left:0;}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;}.asl_simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;}/*[simplebar]*/#asl_hidden_data{display:none !important;}.rtl .asl_content,.rtl .asl_nores,.rtl .asl_content *,.rtl .asl_nores *,.rtl .searchsettings form{text-align:right !important;direction:rtl !important;}.rtl .asl_nores>*{display:inline-block;}.rtl div.asl_r .results .item .asl_image{float:right;margin:2px 0 0 8px;}.rtl .searchsettings .asl_option{flex-direction:row-reverse !important;-webkit-flex-direction:row-reverse !important;}.rtl .asl_option{direction:ltr;}.rtl .asl_label,.rtl .asl_option div.asl_option_label{text-align:right !important;}.rtl .asl_label{max-width:1000px !important;width:100%;direction:rtl !important;}.rtl .asl_label input[type=radio]{margin:0 0 0 6px !important;}.rtl .asl_option_cat_level-0 div.asl_option_label{font-weight:bold !important;}.rtl fieldset .asl_option_cat_level-1{margin-right:12px !important;margin-left:0;}.rtl fieldset .asl_option_cat_level-2{margin-right:24px !important;margin-left:0;}.rtl fieldset .asl_option_cat_level-3{margin-right:36px !important;margin-left:0;}.rtl .searchsettings legend{text-align:right !important;display:block;width:100%;}.rtl .searchsettings input[type=text],.rtl .searchsettings select{direction:rtl !important;text-align:right !important;}.rtl div.asl_w.asl_s.searchsettings form,.rtl div.asl_w.asl_sb.searchsettings form{flex-direction:row-reverse !important;}.rtl div.horizontal.asl_r div.item{float:right !important;}.rtl p.asl-try{direction:rtl;text-align:right;margin-right:10px;width:auto !important;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @keyframes aslAnFadeInDrop {
2
+ 0% {
3
+ opacity: 0;
4
+ transform: translate(0, -50px);
5
+ }
6
+ 100% {
7
+ opacity: 1;
8
+ transform: translate(0, 0);
9
+ }
10
+ }
11
+
12
+ @-webkit-keyframes aslAnFadeInDrop {
13
+ 0% {
14
+ opacity: 0;
15
+ transform: translate(0, -50px);
16
+ -webkit-transform: translate(0, -50px);
17
+ }
18
+ 100% {
19
+ opacity: 1;
20
+ transform: translate(0, 0);
21
+ -webkit-transform: translate(0, 0);
22
+ }
23
+ }
24
+
25
+ @keyframes aslAnFadeOutDrop {
26
+ 0% {
27
+ opacity: 1;
28
+ transform: translate(0, 0);
29
+ -webkit-transform: translate(0, 0);
30
+ }
31
+ 100% {
32
+ opacity: 0;
33
+ transform: translate(0, -50px);
34
+ -webkit-transform: translate(0, -50px);
35
+ }
36
+ }
37
+
38
+ @-webkit-keyframes aslAnFadeOutDrop {
39
+ 0% {
40
+ opacity: 1;
41
+ transform: translate(0, 0);
42
+ -webkit-transform: translate(0, 0);
43
+ }
44
+ 100% {
45
+ opacity: 0;
46
+ transform: translate(0, -50px);
47
+ -webkit-transform: translate(0, -50px);
48
+ }
49
+ }
50
+
51
+ .hiddend {
52
+ display: none !important;
53
+ }
54
+
55
+ div.asl_w.asl_an_fadeInDrop,
56
+ div.asl_w.asl_an_fadeOutDrop {
57
+ -webkit-animation-duration: 100ms;
58
+ animation-duration: 100ms;
59
+ -webkit-animation-fill-mode: forwards;
60
+ animation-fill-mode: forwards;
61
+ }
62
+
63
+ div.asl_w.asl_an_fadeInDrop {
64
+ animation-name: aslAnFadeInDrop;
65
+ -webkit-animation-name: aslAnFadeInDrop;
66
+ }
67
+
68
+ div.asl_w.asl_an_fadeOutDrop {
69
+ animation-name: aslAnFadeOutDrop;
70
+ -webkit-animation-name: aslAnFadeOutDrop;
71
+ }
72
+
73
+ div.asl_w.asl_main_container {
74
+ transition: width 130ms linear;
75
+ -webkit-transition: width 130ms linear;
76
+ }
77
+
78
+ div.asl_w,
79
+ div.asl_w *,
80
+ div.asl_r,
81
+ div.asl_r *,
82
+ div.asl_s,
83
+ div.asl_s * {
84
+ -webkit-box-sizing: content-box;
85
+ -moz-box-sizing: content-box;
86
+ -ms-box-sizing: content-box;
87
+ -o-box-sizing: content-box;
88
+ box-sizing: content-box;
89
+ padding: 0;
90
+ margin: 0;
91
+ border: 0;
92
+ border-radius: 0;
93
+ text-transform: none;
94
+ text-shadow: none;
95
+ box-shadow: none;
96
+ text-decoration: none;
97
+ text-align: left;
98
+ letter-spacing: normal;
99
+ }
100
+
101
+ div.asl_r,
102
+ div.asl_r * {
103
+ -webkit-touch-callout: none;
104
+ -webkit-user-select: none;
105
+ -khtml-user-select: none;
106
+ -moz-user-select: none;
107
+ -ms-user-select: none;
108
+ user-select: none;
109
+ }
110
+
111
+ div.asl_r {
112
+ box-sizing: border-box;
113
+ margin: 12px 0 0 0;
114
+ }
115
+
116
+ div.asl_m .proinput input::-ms-clear {
117
+ display: none !important;
118
+ width: 0 !important;
119
+ height: 0 !important;
120
+ }
121
+
122
+ div.asl_m .proinput input::-ms-reveal {
123
+ display: none !important;
124
+ width: 0 !important;
125
+ height: 0 !important;
126
+ }
127
+
128
+ div.asl_m input[type="search"]::-webkit-search-decoration,
129
+ div.asl_m input[type="search"]::-webkit-search-cancel-button,
130
+ div.asl_m input[type="search"]::-webkit-search-results-button,
131
+ div.asl_m input[type="search"]::-webkit-search-results-decoration {
132
+ display: none;
133
+ }
134
+
135
+ div.asl_m input[type="search"] {
136
+ appearance: auto !important;
137
+ -webkit-appearance: none !important;
138
+ }
139
+
140
+ .clear {
141
+ clear: both;
142
+ }
143
+
144
+ .hiddend {
145
+ display: none;
146
+ }
147
+
148
+ div.asl_m textarea:focus,
149
+ div.asl_m input:focus {
150
+ outline: none;
151
+ }
152
+
153
+ div.asl_m {
154
+ width: 100%;
155
+ height: auto;
156
+ border-radius: 0;
157
+ background: rgba(255, 255, 255, 0);
158
+ overflow: hidden;
159
+ position: relative;
160
+ z-index: 200;
161
+ }
162
+
163
+ div.asl_m .probox {
164
+ width: auto;
165
+ border-radius: 5px;
166
+ background: #fff;
167
+ overflow: hidden;
168
+ border: 1px solid #fff;
169
+ box-shadow: 1px 0 3px #ccc inset;
170
+ display: -webkit-flex;
171
+ display: flex;
172
+ -webkit-flex-direction: row;
173
+ flex-direction: row;
174
+ }
175
+
176
+ div.asl_m .probox .proinput {
177
+ width: auto;
178
+ height: 100%;
179
+ margin: 0 0 0 10px;
180
+ padding: 0 5px;
181
+ float: left;
182
+ box-shadow: none;
183
+ position: relative;
184
+ flex: 1 1 auto;
185
+ -webkit-flex: 1 1 auto;
186
+ order: 5;
187
+ -webkit-order: 5;
188
+ }
189
+
190
+ div.asl_m .probox .proinput input:before,
191
+ div.asl_m .probox .proinput input:after,
192
+ div.asl_m .probox .proinput form:before,
193
+ div.asl_m .probox .proinput form:after {
194
+ display: none;
195
+ }
196
+
197
+ div.asl_m .probox .proinput input {
198
+ height: 28px;
199
+ border: 0;
200
+ background: transparent;
201
+ width: 100%;
202
+ box-shadow: none;
203
+ margin: -1px;
204
+ padding: 0;
205
+ left: 0;
206
+ line-height: normal !important;
207
+ display: block;
208
+ }
209
+
210
+ div.asl_m .probox .proinput input::-webkit-input-placeholder {
211
+ opacity: .85;
212
+ }
213
+
214
+ div.asl_m .probox .proinput input::-moz-placeholder {
215
+ opacity: .85;
216
+ }
217
+
218
+ div.asl_m .probox .proinput input:-ms-input-placeholder {
219
+ opacity: .85;
220
+ }
221
+
222
+ div.asl_m .probox .proinput input:-moz-placeholder {
223
+ opacity: .85;
224
+ }
225
+
226
+ div.asl_m .proinput input.orig {
227
+ padding: 0 !important;
228
+ margin: 0 !important;
229
+ background: transparent !important;
230
+ border: none !important;
231
+ background-color: transparent !important;
232
+ box-shadow: none !important;
233
+ z-index: 10;
234
+ position: relative;
235
+ }
236
+
237
+ div.asl_m .proinput input.autocomplete {
238
+ padding: 0 !important;
239
+ margin: 0;
240
+ background: transparent !important;
241
+ border: none !important;
242
+ background-color: transparent !important;
243
+ box-shadow: none !important;
244
+ opacity: .2;
245
+ }
246
+
247
+ div.asl_m .probox .proinput input.autocomplete {
248
+ border: 0;
249
+ background: transparent;
250
+ width: 100%;
251
+ box-shadow: none;
252
+ margin: 0;
253
+ margin-top: -28px !important;
254
+ padding: 0;
255
+ left: 0;
256
+ position: relative;
257
+ z-index: 9;
258
+ }
259
+
260
+ div.asl_m .probox .proinput.iepaddingfix {
261
+ padding-top: 0;
262
+ }
263
+
264
+ div.asl_m .probox .proinput .loading {
265
+ width: 32px;
266
+ background: #000;
267
+ height: 100%;
268
+ box-shadow: none;
269
+ }
270
+
271
+ div.asl_m .probox .proloading,
272
+ div.asl_m .probox .proclose,
273
+ div.asl_m .probox .promagnifier,
274
+ div.asl_m .probox .prosettings {
275
+ width: 20px;
276
+ height: 20px;
277
+ background: none;
278
+ background-size: 20px 20px;
279
+ float: right;
280
+ box-shadow: none;
281
+ margin: 0;
282
+ padding: 0;
283
+ text-align: center;
284
+ flex: 0 0 auto;
285
+ -webkit-flex: 0 0 auto;
286
+ z-index: 100;
287
+ }
288
+
289
+ div.asl_m .probox .promagnifier {
290
+ order: 10;
291
+ -webkit-order: 10;
292
+ }
293
+
294
+ div.asl_m .probox .prosettings {
295
+ order: 1;
296
+ -webkit-order: 1;
297
+ }
298
+
299
+ div.asl_m .probox .proloading,
300
+ div.asl_m .probox .proclose {
301
+ background-position: center center;
302
+ display: none;
303
+ background-size: auto;
304
+ background-repeat: no-repeat;
305
+ background-color: transparent;
306
+ order: 6;
307
+ -webkit-order: 6;
308
+ }
309
+
310
+ div.asl_m .probox .proclose {
311
+ position: relative;
312
+ cursor: pointer;
313
+ }
314
+
315
+ div.asl_m .probox .promagnifier .innericon,
316
+ div.asl_m .probox .prosettings .innericon,
317
+ div.asl_m .probox .proclose .innericon {
318
+ background-size: 20px 20px;
319
+ background-position: center center;
320
+ background-repeat: no-repeat;
321
+ background-color: transparent;
322
+ width: 100%;
323
+ height: 100%;
324
+ text-align: center;
325
+ overflow: hidden;
326
+ }
327
+
328
+ div.asl_m .probox .promagnifier .innericon svg,
329
+ div.asl_m .probox .prosettings .innericon svg,
330
+ div.asl_m .probox .proloading svg {
331
+ height: 100%;
332
+ width: 22px;
333
+ vertical-align: baseline;
334
+ display: inline-block;
335
+ }
336
+
337
+ div.asl_m .probox .proloading {
338
+ padding: 2px;
339
+ box-sizing: border-box;
340
+ }
341
+
342
+ div.asl_m .probox div.asl_loader,
343
+ div.asl_m .probox div.asl_loader * {
344
+ box-sizing: border-box !important;
345
+ margin: 0;
346
+ padding: 0;
347
+ box-shadow: none;
348
+ }
349
+
350
+ div.asl_m .probox div.asl_loader {
351
+ box-sizing: border-box;
352
+ display: flex;
353
+ flex: 0 1 auto;
354
+ flex-direction: column;
355
+ flex-grow: 0;
356
+ flex-shrink: 0;
357
+ flex-basis: 28px;
358
+ max-width: 100%;
359
+ max-height: 100%;
360
+ width: 100%;
361
+ height: 100%;
362
+ align-items: center;
363
+ justify-content: center;
364
+ }
365
+
366
+ div.asl_m .probox div.asl_loader-inner {
367
+ width: 100%;
368
+ margin: 0 auto;
369
+ text-align: center;
370
+ height: 100%;
371
+ }
372
+
373
+ @-webkit-keyframes rotate-simple {
374
+ 0% {
375
+ -webkit-transform: rotate(0deg);
376
+ transform: rotate(0deg);
377
+ }
378
+ 50% {
379
+ -webkit-transform: rotate(180deg);
380
+ transform: rotate(180deg);
381
+ }
382
+ 100% {
383
+ -webkit-transform: rotate(360deg);
384
+ transform: rotate(360deg);
385
+ }
386
+ }
387
+
388
+ @keyframes rotate-simple {
389
+ 0% {
390
+ -webkit-transform: rotate(0deg);
391
+ transform: rotate(0deg);
392
+ }
393
+ 50% {
394
+ -webkit-transform: rotate(180deg);
395
+ transform: rotate(180deg);
396
+ }
397
+ 100% {
398
+ -webkit-transform: rotate(360deg);
399
+ transform: rotate(360deg);
400
+ }
401
+ }
402
+
403
+ div.asl_m .probox div.asl_simple-circle {
404
+ margin: 0;
405
+ height: 100%;
406
+ width: 100%;
407
+ animation: rotate-simple .8s infinite linear;
408
+ -webkit-animation: rotate-simple .8s infinite linear;
409
+ border: 4px solid #fff;
410
+ border-right-color: transparent !important;
411
+ border-radius: 50%;
412
+ box-sizing: border-box;
413
+ }
414
+
415
+ div.asl_m .probox .proclose svg {
416
+ background: #333;
417
+ border-radius: 50%;
418
+ position: absolute;
419
+ top: 50%;
420
+ width: 20px;
421
+ height: 20px;
422
+ margin-top: -10px;
423
+ left: 50%;
424
+ margin-left: -10px;
425
+ fill: #fefefe;
426
+ padding: 4px;
427
+ box-sizing: border-box;
428
+ box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
429
+ }
430
+
431
+ div.asl_r * {
432
+ text-decoration: none;
433
+ text-shadow: none;
434
+ }
435
+
436
+ div.asl_r .results .asl_nores {
437
+ overflow: hidden;
438
+ width: auto;
439
+ height: 100%;
440
+ line-height: initial;
441
+ text-align: center;
442
+ margin: 0;
443
+ background: #fff;
444
+ padding: 10px 3px;
445
+ color: #222;
446
+ }
447
+
448
+ div.asl_r.horizontal {
449
+ padding: 2px 0 10px;
450
+ }
451
+
452
+ div.asl_r.horizontal .results .nores {
453
+ background: transparent;
454
+ }
455
+
456
+ div.asl_r .results {
457
+ overflow: hidden;
458
+ width: auto;
459
+ height: 0;
460
+ margin: 0;
461
+ padding: 0;
462
+ }
463
+
464
+ div.asl_r.horizontal .results {
465
+ height: auto;
466
+ width: auto;
467
+ }
468
+
469
+ div.asl_r .results .item {
470
+ overflow: hidden;
471
+ width: auto;
472
+ margin: 0;
473
+ padding: 3px;
474
+ position: relative;
475
+ background: #f4f4f4;
476
+ border-left: 1px solid rgba(255, 255, 255, .6);
477
+ border-right: 1px solid rgba(255, 255, 255, .4);
478
+ animation-delay: 0s;
479
+ animation-duration: 1s;
480
+ animation-fill-mode: both;
481
+ animation-timing-function: ease;
482
+ backface-visibility: hidden;
483
+ -webkit-animation-delay: 0s;
484
+ -webkit-animation-duration: 1s;
485
+ -webkit-animation-fill-mode: both;
486
+ -webkit-animation-timing-function: ease;
487
+ -webkit-backface-visibility: hidden;
488
+ }
489
+
490
+ div.asl_r.vertical .results .item:first-child {
491
+ border-radius: 3px 3px 0 0;
492
+ }
493
+
494
+ div.asl_r.vertical .results .item:last-child {
495
+ border-radius: 0 0 3px 3px;
496
+ margin-bottom: 0;
497
+ }
498
+
499
+ div.asl_r.vertical .results .item:last-child:after {
500
+ height: 0;
501
+ margin: 0;
502
+ width: 0;
503
+ }
504
+
505
+ div.asl_r .results .item .asl_image {
506
+ overflow: hidden;
507
+ background: transparent;
508
+ margin: 2px 8px 0 0;
509
+ padding: 0;
510
+ float: left;
511
+ background-position: center;
512
+ background-size: cover;
513
+ }
514
+
515
+ div.asl_r .results .item .asl_image img {
516
+ width: 100%;
517
+ height: 100%;
518
+ }
519
+
520
+ div.asl_r .results .item .asl_content {
521
+ overflow: hidden;
522
+ height: auto;
523
+ background: transparent;
524
+ margin: 0;
525
+ padding: 3px 3px 5px 3px;
526
+ }
527
+
528
+ div.asl_r .results .item .asl_content h3 {
529
+ margin: 0;
530
+ padding: 0;
531
+ display: inline;
532
+ line-height: inherit;
533
+ }
534
+
535
+ div.asl_r .results .item .asl_content .asl_desc {
536
+ margin-top: 4px;
537
+ font-size: 12px;
538
+ line-height: 18px;
539
+ }
540
+
541
+ div.asl_r .results .item div.etc {
542
+ margin-top: 4px;
543
+ }
544
+
545
+ div.asl_r .results a span.overlap {
546
+ position: absolute;
547
+ width: 100%;
548
+ height: 100%;
549
+ top: 0;
550
+ left: 0;
551
+ z-index: 1;
552
+ }
553
+
554
+ div.asl_r p.showmore {
555
+ text-align: center;
556
+ padding: 0;
557
+ margin: 0;
558
+ font-weight: normal;
559
+ font-family: Open Sans;
560
+ color: #055e94;
561
+ font-size: 12px;
562
+ line-height: 30px;
563
+ text-shadow: 0 0 0 rgba(255, 255, 255, 0);
564
+ background-color: #fff;
565
+ margin-top: 3px;
566
+ cursor: pointer;
567
+ }
568
+
569
+ div.asl_r p.showmore a {
570
+ font-weight: normal;
571
+ font-family: Open Sans;
572
+ color: #055e94;
573
+ font-size: 12px;
574
+ line-height: 30px;
575
+ text-shadow: 0 0 0 rgba(255, 255, 255, 0);
576
+ display: block;
577
+ text-align: center;
578
+ cursor: pointer;
579
+ }
580
+
581
+ .results .asl_nores .asl_keyword {
582
+ padding: 0 6px;
583
+ cursor: pointer;
584
+ font-weight: bold;
585
+ font-family: Open Sans;
586
+ }
587
+
588
+ div.asl_r .resdrg {
589
+ height: auto;
590
+ }
591
+
592
+ div.asl_w .group:first-of-type {
593
+ margin: 0 0 -3px;
594
+ }
595
+
596
+ div.asl_s.searchsettings {
597
+ width: 200px;
598
+ height: auto;
599
+ position: absolute;
600
+ display: none;
601
+ z-index: 1101;
602
+ border-radius: 0 0 3px 3px;
603
+ visibility: hidden;
604
+ padding: 0;
605
+ }
606
+
607
+ div.asl_s.searchsettings form {
608
+ display: flex;
609
+ flex-wrap: wrap;
610
+ margin: 0 0 12px 0 !important;
611
+ padding: 0 !important;
612
+ }
613
+
614
+ div.asl_s.searchsettings .asl_option_inner {
615
+ margin: 2px 10px 0 10px;
616
+ *padding-bottom: 10px;
617
+ }
618
+
619
+ div.asl_s.searchsettings.ie78 .asl_option_inner {
620
+ margin-bottom: 0 !important;
621
+ padding-bottom: 0 !important;
622
+ }
623
+
624
+ div.asl_s.searchsettings .asl_option_label {
625
+ font-size: 14px;
626
+ line-height: 20px !important;
627
+ margin: 0;
628
+ width: 150px;
629
+ text-shadow: none;
630
+ padding: 0;
631
+ min-height: 20px;
632
+ border: none;
633
+ background: transparent;
634
+ float: none;
635
+ }
636
+
637
+ div.asl_s.searchsettings .asl_option_inner input[type=checkbox] {
638
+ display: none !important;
639
+ }
640
+
641
+ div.asl_s.searchsettings.ie78 .asl_option_inner input[type=checkbox] {
642
+ display: block;
643
+ }
644
+
645
+ div.asl_s.searchsettings.ie78 .asl_option_label {
646
+ float: right !important;
647
+ }
648
+
649
+ div.asl_s.searchsettings .asl_option {
650
+ display: flex;
651
+ flex-direction: row;
652
+ -webkit-flex-direction: row;
653
+ align-items: flex-start;
654
+ margin: 0 0 10px 0;
655
+ cursor: pointer;
656
+ }
657
+
658
+ div.asl_s.searchsettings .asl_option.asl-o-last,
659
+ div.asl_s.searchsettings .asl_option:last-child {
660
+ margin-bottom: 0;
661
+ }
662
+
663
+ div.asl_s.searchsettings .asl_option_inner {
664
+ width: 17px;
665
+ height: 17px;
666
+ position: relative;
667
+ flex-grow: 0;
668
+ -webkit-flex-grow: 0;
669
+ flex-shrink: 0;
670
+ -webkit-flex-shrink: 0;
671
+ }
672
+
673
+ div.asl_s.searchsettings .asl_option_inner label {
674
+ cursor: pointer;
675
+ position: absolute;
676
+ width: 17px;
677
+ height: 17px;
678
+ top: 0;
679
+ padding: 0;
680
+ border-radius: 2px;
681
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .2);
682
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .2);
683
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .2);
684
+ overflow: hidden;
685
+ font-size: 0 !important;
686
+ color: rgba(0, 0, 0, 0);
687
+ }
688
+
689
+ div.asl_s.searchsettings.ie78 .asl_option_inner label {
690
+ display: none;
691
+ }
692
+
693
+ div.asl_s.searchsettings .asl_option_inner label:after {
694
+ opacity: 0;
695
+ font-family: 'aslsicons2';
696
+ content: "\e800";
697
+ font-weight: normal !important;
698
+ background: transparent;
699
+ border: none !important;
700
+ box-sizing: content-box;
701
+ color: #fff;
702
+ height: 100%;
703
+ width: 100%;
704
+ padding: 0 !important;
705
+ margin: 1px 0 0 0 !important;
706
+ line-height: 17px;
707
+ text-align: center;
708
+ text-decoration: none;
709
+ text-shadow: none;
710
+ display: block;
711
+ font-size: 11px !important;
712
+ position: absolute;
713
+ top: 0;
714
+ left: 0;
715
+ z-index: 1;
716
+ }
717
+
718
+ div.asl_s.searchsettings.ie78 .asl_option_inner label:after {
719
+ display: none;
720
+ }
721
+
722
+ div.asl_s.searchsettings .asl_option_inner label:hover::after {
723
+ opacity: .3;
724
+ }
725
+
726
+ div.asl_s.searchsettings .asl_option_inner input[type=checkbox]:checked+label:after {
727
+ opacity: 1;
728
+ }
729
+
730
+ div.asl_s.searchsettings fieldset {
731
+ position: relative;
732
+ float: left;
733
+ }
734
+
735
+ div.asl_s.searchsettings fieldset {
736
+ background: transparent;
737
+ font-size: .9em;
738
+ margin: 12px 0 0 !important;
739
+ padding: 0;
740
+ width: 192px;
741
+ }
742
+
743
+ div.asl_s.searchsettings fieldset .asl_option_label {
744
+ width: 130px;
745
+ display: block;
746
+ }
747
+
748
+ div.asl_s.searchsettings form fieldset legend {
749
+ padding: 5px 0 8px 10px;
750
+ }
751
+
752
+ /*[simplebar]*/
753
+
754
+ [data-asp_simplebar] {
755
+ position: relative;
756
+ flex-direction: column;
757
+ flex-wrap: wrap;
758
+ justify-content: flex-start;
759
+ align-content: flex-start;
760
+ align-items: flex-start;
761
+ }
762
+
763
+ .asp_simplebar-wrapper {
764
+ overflow: hidden;
765
+ width: inherit;
766
+ height: inherit;
767
+ max-width: inherit;
768
+ max-height: inherit;
769
+ }
770
+
771
+ .asp_simplebar-mask {
772
+ direction: inherit;
773
+ position: absolute;
774
+ overflow: hidden;
775
+ padding: 0;
776
+ margin: 0;
777
+ left: 0;
778
+ top: 0;
779
+ bottom: 0;
780
+ right: 0;
781
+ width: auto !important;
782
+ height: auto !important;
783
+ z-index: 0;
784
+ }
785
+
786
+ .asp_simplebar-offset {
787
+ direction: inherit !important;
788
+ box-sizing: inherit !important;
789
+ resize: none !important;
790
+ position: absolute;
791
+ top: 0;
792
+ left: 0;
793
+ bottom: 0;
794
+ right: 0;
795
+ padding: 0;
796
+ margin: 0;
797
+ -webkit-overflow-scrolling: touch;
798
+ }
799
+
800
+ .asp_simplebar-content-wrapper {
801
+ direction: inherit;
802
+ box-sizing: border-box !important;
803
+ position: relative;
804
+ display: block;
805
+ height: 100%;
806
+ width: auto;
807
+ visibility: visible;
808
+ max-width: 100%;
809
+ max-height: 100%;
810
+ scrollbar-width: none;
811
+ }
812
+
813
+ .asp_simplebar-content-wrapper::-webkit-scrollbar,
814
+ .asp_simplebar-hide-scrollbar::-webkit-scrollbar {
815
+ display: none;
816
+ }
817
+
818
+ .asp_simplebar-content:before,
819
+ .asp_simplebar-content:after {
820
+ content: ' ';
821
+ display: table;
822
+ }
823
+
824
+ .asp_simplebar-placeholder {
825
+ max-height: 100%;
826
+ max-width: 100%;
827
+ width: 100%;
828
+ pointer-events: none;
829
+ }
830
+
831
+ .asp_simplebar-height-auto-observer-wrapper {
832
+ box-sizing: inherit !important;
833
+ height: 100%;
834
+ width: 100%;
835
+ max-width: 1px;
836
+ position: relative;
837
+ float: left;
838
+ max-height: 1px;
839
+ overflow: hidden;
840
+ z-index: -1;
841
+ padding: 0;
842
+ margin: 0;
843
+ pointer-events: none;
844
+ flex-grow: inherit;
845
+ flex-shrink: 0;
846
+ flex-basis: 0;
847
+ }
848
+
849
+ .asp_simplebar-height-auto-observer {
850
+ box-sizing: inherit;
851
+ display: block;
852
+ opacity: 0;
853
+ position: absolute;
854
+ top: 0;
855
+ left: 0;
856
+ height: 1000%;
857
+ width: 1000%;
858
+ min-height: 1px;
859
+ min-width: 1px;
860
+ overflow: hidden;
861
+ pointer-events: none;
862
+ z-index: -1;
863
+ }
864
+
865
+ .asp_simplebar-track {
866
+ z-index: 1;
867
+ position: absolute;
868
+ right: 0;
869
+ bottom: 0;
870
+ pointer-events: none;
871
+ overflow: hidden;
872
+ }
873
+
874
+ [data-asp_simplebar].asp_simplebar-dragging .asp_simplebar-content {
875
+ pointer-events: none;
876
+ user-select: none;
877
+ -webkit-user-select: none;
878
+ }
879
+
880
+ [data-asp_simplebar].asp_simplebar-dragging .asp_simplebar-track {
881
+ pointer-events: all;
882
+ }
883
+
884
+ .asp_simplebar-scrollbar {
885
+ position: absolute;
886
+ right: 2px;
887
+ width: 7px;
888
+ min-height: 10px;
889
+ }
890
+
891
+ .asp_simplebar-scrollbar:before {
892
+ position: absolute;
893
+ content: '';
894
+ background: rgba(0, 0, 0, .5);
895
+ border-radius: 7px;
896
+ left: 0;
897
+ right: 0;
898
+ opacity: 0;
899
+ transition: opacity .2s linear;
900
+ }
901
+
902
+ .asp_simplebar-scrollbar.asp_simplebar-visible:before {
903
+ opacity: 1;
904
+ transition: opacity 0s linear;
905
+ }
906
+
907
+ .asp_simplebar-track.asp_simplebar-vertical {
908
+ top: 0;
909
+ width: 11px;
910
+ margin-top: 4px !important;
911
+ margin-bottom: 4px !important;
912
+ }
913
+
914
+ .asp_simplebar-track.asp_simplebar-vertical .asp_simplebar-scrollbar:before {
915
+ top: 2px;
916
+ bottom: 2px;
917
+ }
918
+
919
+ .asp_simplebar-track.asp_simplebar-horizontal {
920
+ left: 0;
921
+ height: 11px;
922
+ margin-left: 12px !important;
923
+ margin-right: 12px !important;
924
+ }
925
+
926
+ .asp_simplebar-track.asp_simplebar-horizontal .asp_simplebar-scrollbar:before {
927
+ height: 100%;
928
+ left: 2px;
929
+ right: 2px;
930
+ }
931
+
932
+ .asp_simplebar-track.asp_simplebar-horizontal .asp_simplebar-scrollbar {
933
+ right: auto;
934
+ left: 0;
935
+ top: 2px;
936
+ height: 7px;
937
+ min-height: 0;
938
+ min-width: 10px;
939
+ width: auto;
940
+ }
941
+
942
+ [data-asp_simplebar-direction='rtl'] .asp_simplebar-track.asp_simplebar-vertical {
943
+ right: auto;
944
+ left: 0;
945
+ }
946
+
947
+ .hs-dummy-scrollbar-size {
948
+ direction: rtl;
949
+ position: fixed;
950
+ opacity: 0;
951
+ visibility: hidden;
952
+ height: 500px;
953
+ width: 500px;
954
+ overflow-y: hidden;
955
+ overflow-x: scroll;
956
+ }
957
+
958
+ .asp_simplebar-hide-scrollbar {
959
+ position: fixed;
960
+ left: 0;
961
+ visibility: hidden;
962
+ overflow-y: scroll;
963
+ scrollbar-width: none;
964
+ }
965
+
966
+ /*[simplebar]*/
967
+
968
+ #asl_hidden_data {
969
+ display: none !important;
970
+ }
971
+
972
+ .rtl .asl_content,
973
+ .rtl .asl_nores,
974
+ .rtl .asl_content *,
975
+ .rtl .asl_nores *,
976
+ .rtl .searchsettings form {
977
+ text-align: right !important;
978
+ direction: rtl !important;
979
+ }
980
+
981
+ .rtl .asl_nores>* {
982
+ display: inline-block;
983
+ }
984
+
985
+ .rtl div.asl_r .results .item .asl_image {
986
+ float: right;
987
+ margin: 2px 0 0 8px;
988
+ }
989
+
990
+ .rtl .searchsettings .asl_option {
991
+ flex-direction: row-reverse !important;
992
+ -webkit-flex-direction: row-reverse !important;
993
+ }
994
+
995
+ .rtl .asl_option {
996
+ direction: ltr;
997
+ }
998
+
999
+ .rtl .asl_label,
1000
+ .rtl .asl_option div.asl_option_label {
1001
+ text-align: right !important;
1002
+ }
1003
+
1004
+ .rtl .asl_label {
1005
+ max-width: 1000px !important;
1006
+ width: 100%;
1007
+ direction: rtl !important;
1008
+ }
1009
+
1010
+ .rtl .asl_label input[type=radio] {
1011
+ margin: 0 0 0 6px !important;
1012
+ }
1013
+
1014
+ .rtl .asl_option_cat_level-0 div.asl_option_label {
1015
+ font-weight: bold !important;
1016
+ }
1017
+
1018
+ .rtl fieldset .asl_option_cat_level-1 {
1019
+ margin-right: 12px !important;
1020
+ margin-left: 0;
1021
+ }
1022
+
1023
+ .rtl fieldset .asl_option_cat_level-2 {
1024
+ margin-right: 24px !important;
1025
+ margin-left: 0;
1026
+ }
1027
+
1028
+ .rtl fieldset .asl_option_cat_level-3 {
1029
+ margin-right: 36px !important;
1030
+ margin-left: 0;
1031
+ }
1032
+
1033
+ .rtl .searchsettings legend {
1034
+ text-align: right !important;
1035
+ display: block;
1036
+ width: 100%;
1037
+ }
1038
+
1039
+ .rtl .searchsettings input[type=text],
1040
+ .rtl .searchsettings select {
1041
+ direction: rtl !important;
1042
+ text-align: right !important;
1043
+ }
1044
+
1045
+ .rtl div.asl_w.asl_s.searchsettings form,
1046
+ .rtl div.asl_w.asl_sb.searchsettings form {
1047
+ flex-direction: row-reverse !important;
1048
+ }
1049
+
1050
+ .rtl div.horizontal.asl_r div.item {
1051
+ float: right !important;
1052
+ }
1053
+
1054
+ .rtl p.asl-try {
1055
+ direction: rtl;
1056
+ text-align: right;
1057
+ margin-right: 10px;
1058
+ width: auto !important;
1059
+ }
includes/classes/actions/class-asl-stylesheets.php CHANGED
@@ -43,19 +43,23 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
43
  wp_register_style('wpdreams-asl-basic', ASL_URL.'css/style.basic.css', array(), ASL_CURR_VER_STRING);
44
  wp_enqueue_style('wpdreams-asl-basic');
45
  wp_enqueue_style('wpdreams-ajaxsearchlite', ASL_URL.'css/style-'.$asl_options['theme'].'.css', array(), ASL_CURR_VER_STRING);
46
-
47
- self::$inline_css = "
48
- @font-face {
49
- font-family: 'aslsicons2';
50
- src: url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.eot');
51
- src: url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.eot?#iefix') format('embedded-opentype'),
52
- url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.woff2') format('woff2'),
53
- url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.woff') format('woff'),
54
- url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.ttf') format('truetype'),
55
- url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.svg#icons') format('svg');
56
- font-weight: normal;
57
- font-style: normal;
58
- }
 
 
 
 
59
  div[id*='ajaxsearchlitesettings'].searchsettings .asl_option_inner label {
60
  font-size: 0px !important;
61
  color: rgba(0, 0, 0, 0);
@@ -67,10 +71,13 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
67
  left: 0;
68
  z-index: 1;
69
  }
70
- div[id*='ajaxsearchlite'].wpdreams_asl_container {
71
  width: ".$asl_options['box_width'].";
72
  margin: ".wpdreams_four_to_string($asl_options['box_margin']).";
73
  }
 
 
 
74
  div[id*='ajaxsearchliteres'].wpdreams_asl_results div.resdrg span.highlighted {
75
  font-weight: bold;
76
  color: ".$asl_options['highlight_color'].";
@@ -129,6 +136,14 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
129
  ";
130
  }
131
 
 
 
 
 
 
 
 
 
132
  if ( $asl_options['results_bg_override'] == 1 ) {
133
  self::$inline_css .= "
134
  .asl_r.asl_w {
@@ -223,23 +238,44 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
223
  if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_tablet'] ) {
224
  self::$inline_css .= "
225
  @media only screen and (min-width: 641px) and (max-width: 1024px) {
226
- div.asl_w.asl_m {
227
  width: ".$asl_options['box_width_tablet']." !important;
228
  }
229
  }
230
  ";
231
  }
232
 
233
- if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_phone'] ) {
 
 
 
 
 
 
 
 
 
 
 
234
  self::$inline_css .= "
235
  @media only screen and (max-width: 640px) {
236
- div.asl_w.asl_m {
237
  width: ".$asl_options['box_width_phone']." !important;
238
  }
239
  }
240
  ";
241
  }
242
 
 
 
 
 
 
 
 
 
 
 
243
  if ( $asl_options['single_highlight'] == 1 ) {
244
  self::$inline_css .= "body span.asl_single_highlighted {
245
  display: inline !important;
@@ -267,23 +303,6 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
267
  </style>
268
  <?php
269
  }
270
-
271
- /**
272
- * Compatibility resolution to ajax page loaders:
273
- *
274
- * If the _ASL variable is defined at this point, it means that the page was already loaded before,
275
- * and this header script is executed once again. However that also means that the ASL variable is
276
- * resetted (due to the localization script) and that the page content is changed, so ajax search pro
277
- * is not initialized.
278
- *
279
- */
280
- ?>
281
- <script type="text/javascript">
282
- if ( typeof _ASL !== "undefined" && _ASL !== null && typeof _ASL.initialize !== "undefined" ) {
283
- _ASL.initialize();
284
- }
285
- </script>
286
- <?php
287
  }
288
 
289
  // ------------------------------------------------------------
43
  wp_register_style('wpdreams-asl-basic', ASL_URL.'css/style.basic.css', array(), ASL_CURR_VER_STRING);
44
  wp_enqueue_style('wpdreams-asl-basic');
45
  wp_enqueue_style('wpdreams-ajaxsearchlite', ASL_URL.'css/style-'.$asl_options['theme'].'.css', array(), ASL_CURR_VER_STRING);
46
+ self::$inline_css = "";
47
+ if ( asl_is_asset_required('aslsicons2') ) {
48
+ self::$inline_css .= "
49
+ @font-face {
50
+ font-family: 'aslsicons2';
51
+ src: url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.eot');
52
+ src: url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.eot?#iefix') format('embedded-opentype'),
53
+ url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.woff2') format('woff2'),
54
+ url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.woff') format('woff'),
55
+ url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.ttf') format('truetype'),
56
+ url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.svg#icons') format('svg');
57
+ font-weight: normal;
58
+ font-style: normal;
59
+ }
60
+ ";
61
+ }
62
+ self::$inline_css .= "
63
  div[id*='ajaxsearchlitesettings'].searchsettings .asl_option_inner label {
64
  font-size: 0px !important;
65
  color: rgba(0, 0, 0, 0);
71
  left: 0;
72
  z-index: 1;
73
  }
74
+ .asl_w_container {
75
  width: ".$asl_options['box_width'].";
76
  margin: ".wpdreams_four_to_string($asl_options['box_margin']).";
77
  }
78
+ div[id*='ajaxsearchlite'].asl_m {
79
+ width: ".$asl_options['box_width'].";
80
+ }
81
  div[id*='ajaxsearchliteres'].wpdreams_asl_results div.resdrg span.highlighted {
82
  font-weight: bold;
83
  color: ".$asl_options['highlight_color'].";
136
  ";
137
  }
138
 
139
+ if ( $asl_options['results_width'] != 'auto' ) {
140
+ self::$inline_css .= "
141
+ .asl_r.asl_w {
142
+ width: ". esc_attr($asl_options['results_width']).";
143
+ }
144
+ ";
145
+ }
146
+
147
  if ( $asl_options['results_bg_override'] == 1 ) {
148
  self::$inline_css .= "
149
  .asl_r.asl_w {
238
  if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_tablet'] ) {
239
  self::$inline_css .= "
240
  @media only screen and (min-width: 641px) and (max-width: 1024px) {
241
+ .asl_w_container, div.asl_w.asl_m {
242
  width: ".$asl_options['box_width_tablet']." !important;
243
  }
244
  }
245
  ";
246
  }
247
 
248
+
249
+ if ( !empty($asl_options['results_width_tablet']) && $asl_options['results_width'] != $asl_options['results_width_tablet'] ) {
250
+ self::$inline_css .= "
251
+ @media only screen and (min-width: 641px) and (max-width: 1024px) {
252
+ .asl_r.asl_w {
253
+ width: ". esc_attr($asl_options['results_width_tablet']).";
254
+ }
255
+ }
256
+ ";
257
+ }
258
+
259
+ if ( !empty($asl_options['box_width_phone']) && $asl_options['box_width'] != $asl_options['box_width_phone'] ) {
260
  self::$inline_css .= "
261
  @media only screen and (max-width: 640px) {
262
+ .asl_w_container, div.asl_w.asl_m {
263
  width: ".$asl_options['box_width_phone']." !important;
264
  }
265
  }
266
  ";
267
  }
268
 
269
+ if ( !empty($asl_options['results_width_phone']) && $asl_options['results_width'] != $asl_options['results_width_phone'] ) {
270
+ self::$inline_css .= "
271
+ @media only screen and (max-width: 640px) {
272
+ .asl_r.asl_w {
273
+ width: ". esc_attr($asl_options['results_width_phone']).";
274
+ }
275
+ }
276
+ ";
277
+ }
278
+
279
  if ( $asl_options['single_highlight'] == 1 ) {
280
  self::$inline_css .= "body span.asl_single_highlighted {
281
  display: inline !important;
303
  </style>
304
  <?php
305
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  }
307
 
308
  // ------------------------------------------------------------
includes/classes/ajax/class-asl-maintenance.php CHANGED
@@ -9,7 +9,7 @@ if (!class_exists("WD_ASL_Maintenance_Handler")) {
9
  *
10
  * @class WD_ASL_Maintenance_Handler
11
  * @version 1.0
12
- * @package AjaxSearchPro/Classes/Ajax
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
9
  *
10
  * @class WD_ASL_Maintenance_Handler
11
  * @version 1.0
12
+ * @package AjaxSearchLite/Classes/Ajax
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
includes/classes/core/class-asl-filters.php CHANGED
@@ -77,7 +77,13 @@ if ( !class_exists("WD_ASL_Filters") ) {
77
  "handler" => array("EtcFixes", "fixOxygenEditorJS"),
78
  "priority" => 999,
79
  "args" => 1
80
- )
 
 
 
 
 
 
81
  );
82
 
83
  /**
77
  "handler" => array("EtcFixes", "fixOxygenEditorJS"),
78
  "priority" => 999,
79
  "args" => 1
80
+ ),
81
+ array(
82
+ "filter" => "asl_save_search_instance_options",
83
+ "handler" => array("EtcFixes", "switchToNewScriptsOnLiveLoader"),
84
+ "priority" => 999,
85
+ "args" => 1
86
+ )
87
  );
88
 
89
  /**
includes/classes/core/class-asl-globals.php CHANGED
@@ -47,6 +47,20 @@ class WD_ASL_Globals {
47
  */
48
  public $instances;
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  /**
51
  * Instance of the manager
52
  *
47
  */
48
  public $instances;
49
 
50
+ /**
51
+ * Instance of the scripts manager
52
+ *
53
+ * @var WD_ASL_Scripts
54
+ */
55
+ public $scripts;
56
+
57
+ /**
58
+ * Instance of the legacy scripts manager
59
+ *
60
+ * @var WD_ASL_Scripts_Legacy
61
+ */
62
+ public $scripts_legacy;
63
+
64
  /**
65
  * Instance of the manager
66
  *
includes/classes/core/class-asl-init.php CHANGED
@@ -64,6 +64,11 @@ class WD_ASL_Init {
64
  unset( wd_asl()->o['asl_compatibility']['load_mcustom_js']);
65
  asl_save_option('asl_compatibility');
66
  }
 
 
 
 
 
67
 
68
  // 4.18.2
69
  $ana = wd_asl()->o['asl_analytics'];
@@ -101,12 +106,12 @@ class WD_ASL_Init {
101
  // ------------------------- 4.7.13 -----------------------------
102
  if ( isset($sd['redirectonclick']) ) {
103
  if ( $sd['redirectonclick'] == 0 )
104
- $sd['redirect_click_to'] = 'ajax_search';
105
  unset($sd['redirectonclick']);
106
  }
107
  if ( isset($sd['redirect_on_enter']) ) {
108
  if ( $sd['redirect_on_enter'] == 0 )
109
- $sd['redirect_enter_to'] = 'ajax_search';
110
  unset($sd['redirect_on_enter']);
111
  }
112
  // ------------------------- 4.7.14 -----------------------------
@@ -188,6 +193,13 @@ class WD_ASL_Init {
188
  unset($sd['descriptionfield_cf']);
189
  }
190
 
 
 
 
 
 
 
 
191
  // At the end, update
192
  wd_asl()->instances->update(0, $sd);
193
  }
@@ -197,31 +209,36 @@ class WD_ASL_Init {
197
  /**
198
  * Extra styles if needed..
199
  */
200
- public function styles() {
201
- if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
202
- $comp_options = wd_asl()->o['asl_compatibility'];
203
- if ( $comp_options['old_browser_compatibility'] == 1 ) {
204
- return;
205
- }
206
- }
207
- }
208
-
209
- /**
210
- * Prints the scripts
211
- */
212
- public function scripts() {
213
-
214
- $com_opt = wd_asl()->o['asl_compatibility'];
215
- if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
216
- if ( $com_opt['old_browser_compatibility'] == 1 ) {
217
- return;
218
- }
219
- }
220
-
221
- $exit1 = apply_filters('asl_load_css_js', false);
222
- $exit2 = apply_filters('asl_load_js', false);
223
- if ( $exit1 || $exit2 )
224
- return false;
 
 
 
 
 
225
 
226
  $single_highlight = false;
227
  $single_highlight_arr = array();
@@ -232,7 +249,6 @@ class WD_ASL_Init {
232
  if ( $s['data']['single_highlight'] == 1 ) {
233
  $single_highlight = true;
234
  $single_highlight_arr[] = array(
235
- 'id' => $s['id'],
236
  'selector' => $s['data']['single_highlight_selector'],
237
  'scroll' => $s['data']['single_highlight_scroll'] == 1,
238
  'scroll_offset' => intval($s['data']['single_highlight_offset']),
@@ -242,140 +258,135 @@ class WD_ASL_Init {
242
  }
243
  }
244
 
245
- // ------------ Dequeue some scripts causing issues on the back-end --------------
246
- wp_dequeue_script( 'otw-admin-colorpicker' );
247
- wp_dequeue_script( 'otw-admin-select2' );
248
- wp_dequeue_script( 'otw-admin-otwpreview' );
249
- wp_dequeue_script( 'otw-admin-fonts');
250
- wp_dequeue_script( 'otw-admin-functions');
251
- wp_dequeue_script( 'otw-admin-variables');
252
-
253
- $performance_options = wd_asl()->o['asl_performance'];
254
- $analytics = wd_asl()->o['asl_analytics'];
255
-
256
- $prereq = 'jquery';
257
- $js_source = $com_opt['js_source'];
258
- $scripts = array();
259
-
260
- $load_in_footer = w_isset_def($performance_options['load_in_footer'], 1) == 1 ? true : false;
261
- $load_mcustom = w_isset_def($com_opt['load_scroll_js'], "yes") == "yes";
262
-
263
- // Load the wp hooks interface
264
- wp_enqueue_script( 'wp-hooks' );
265
-
266
- if ($js_source == 'nomin' || $js_source == 'nomin-scoped') {
267
- if ($js_source == "nomin-scoped") {
268
- $prereq = "wpdreams-asljquery";
269
- wp_register_script('wpdreams-asljquery', ASL_URL . 'js/' . $js_source . '/asljquery.js', array(), ASL_CURR_VER_STRING, $load_in_footer);
270
- wp_enqueue_script('wpdreams-asljquery');
271
- $scripts[] = ASL_URL . 'js/' . $js_source . '/asljquery.js';
272
- }
273
- wp_register_script('wpdreams-highlight', ASL_URL . 'js/' . $js_source . '/jquery.highlight.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
274
- wp_enqueue_script('wpdreams-highlight');
275
- $scripts[] = ASL_URL . 'js/' . $js_source . '/jquery.highlight.js';
276
- if ( $load_mcustom ) {
277
- wp_register_script('wpdreams-scroll', ASL_URL . 'js/' . $js_source . '/simplebar.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
278
- wp_enqueue_script('wpdreams-scroll');
279
- $scripts[] = ASL_URL . 'js/' . $js_source . '/simplebar.js';
280
- }
281
- wp_register_script('wpdreams-ajaxsearchlite', ASL_URL . 'js/' . $js_source . '/jquery.ajaxsearchlite.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
282
- wp_enqueue_script('wpdreams-ajaxsearchlite');
283
- $scripts[] = ASL_URL . 'js/' . $js_source . '/jquery.ajaxsearchlite.js';
284
-
285
- wp_register_script('wpdreams-asl-wrapper', ASL_URL . 'js/' . $js_source . '/asl_wrapper.js', array($prereq, "wpdreams-ajaxsearchlite"), ASL_CURR_VER_STRING, $load_in_footer);
286
- wp_enqueue_script('wpdreams-asl-wrapper');
287
- $scripts[] = ASL_URL . 'js/' . $js_source . '/asl_wrapper.js';
288
- } else {
289
- wp_enqueue_script('jquery');
290
- wp_register_script('wpdreams-ajaxsearchlite', ASL_URL . "js/" . $js_source . "/jquery.ajaxsearchlite.min.js", array(), ASL_CURR_VER_STRING, $load_in_footer);
291
- wp_enqueue_script('wpdreams-ajaxsearchlite');
292
- $scripts[] = ASL_URL . 'js/' . $js_source . '/jquery.ajaxsearchlite.min.js';
293
- }
294
 
295
- $ajax_url = admin_url('admin-ajax.php');
296
- if ( w_isset_def($performance_options['use_custom_ajax_handler'], 0) == 1 )
297
- $ajax_url = ASL_URL . 'ajax_search.php';
 
298
 
299
- if (strpos($com_opt['js_source'], 'min-scoped') !== false) {
300
- $scope = "asljQuery";
301
- } else {
302
- $scope = "jQuery";
303
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
 
305
- ASL_Helpers::addInlineScript( 'wpdreams-ajaxsearchlite', 'ASL', array(
306
  'wp_rocket_exception' => 'DOMContentLoaded', // WP Rocket hack to prevent the wrapping of the inline script: https://docs.wp-rocket.me/article/1265-load-javascript-deferred
307
- 'ajaxurl' => $ajax_url,
308
- 'backend_ajaxurl' => admin_url( 'admin-ajax.php'),
309
- 'js_scope' => $scope,
310
- 'detect_ajax' => $com_opt['detect_ajax'],
311
- 'scrollbar' => $load_mcustom,
312
- 'js_retain_popstate' => $com_opt['js_retain_popstate'],
313
- 'version' => ASL_CURRENT_VERSION,
314
- 'min_script_src' => $scripts,
 
 
 
 
 
315
  'highlight' => array(
316
  'enabled' => $single_highlight,
317
  'data' => $single_highlight_arr
318
  ),
319
- 'fix_duplicates' => $com_opt['js_fix_duplicates'],
320
- 'analytics' => array(
321
- 'method' => $analytics['analytics'],
322
- 'tracking_id' => $analytics['analytics_tracking_id'],
323
- 'string' => $analytics['analytics_string'],
324
- 'event' => array(
325
- 'focus' => array(
326
- 'active' => $analytics['gtag_focus'],
327
- 'action' => $analytics['gtag_focus_action'],
328
- "category" => $analytics['gtag_focus_ec'],
329
- "label" => $analytics['gtag_focus_el'],
330
- "value" => $analytics['gtag_focus_value']
331
- ),
332
- 'search_start' => array(
333
- 'active' => $analytics['gtag_search_start'],
334
- 'action' => $analytics['gtag_search_start_action'],
335
- "category" => $analytics['gtag_search_start_ec'],
336
- "label" => $analytics['gtag_search_start_el'],
337
- "value" => $analytics['gtag_search_start_value']
338
- ),
339
- 'search_end' => array(
340
- 'active' => $analytics['gtag_search_end'],
341
- 'action' => $analytics['gtag_search_end_action'],
342
- "category" => $analytics['gtag_search_end_ec'],
343
- "label" => $analytics['gtag_search_end_el'],
344
- "value" => $analytics['gtag_search_end_value']
345
- ),
346
- 'magnifier' => array(
347
- 'active' => $analytics['gtag_magnifier'],
348
- 'action' => $analytics['gtag_magnifier_action'],
349
- "category" => $analytics['gtag_magnifier_ec'],
350
- "label" => $analytics['gtag_magnifier_el'],
351
- "value" => $analytics['gtag_magnifier_value']
352
- ),
353
- 'return' => array(
354
- 'active' => $analytics['gtag_return'],
355
- 'action' => $analytics['gtag_return_action'],
356
- "category" => $analytics['gtag_return_ec'],
357
- "label" => $analytics['gtag_return_el'],
358
- "value" => $analytics['gtag_return_value']
359
- ),
360
- 'facet_change' => array(
361
- 'active' => $analytics['gtag_facet_change'],
362
- 'action' => $analytics['gtag_facet_change_action'],
363
- "category" => $analytics['gtag_facet_change_ec'],
364
- "label" => $analytics['gtag_facet_change_el'],
365
- "value" => $analytics['gtag_facet_change_value']
366
- ),
367
- 'result_click' => array(
368
- 'active' => $analytics['gtag_result_click'],
369
- 'action' => $analytics['gtag_result_click_action'],
370
- "category" => $analytics['gtag_result_click_ec'],
371
- "label" => $analytics['gtag_result_click_el'],
372
- "value" => $analytics['gtag_result_click_value']
373
- )
374
- )
375
- )
376
- ), 'before', true);
377
-
378
- }
379
 
380
  public function pluginReset( $triggerActivate = true ) {
381
  $options = array(
@@ -395,7 +406,6 @@ class WD_ASL_Init {
395
  'asl_stat',
396
  'asl_updates',
397
  'asl_updates_lc',
398
- 'asl_media_query',
399
  'asl_performance_stats',
400
  'asl_recently_updated',
401
  'asl_debug_data'
64
  unset( wd_asl()->o['asl_compatibility']['load_mcustom_js']);
65
  asl_save_option('asl_compatibility');
66
  }
67
+ // 4.10
68
+ if ( isset( $comp['old_browser_compatibility']) ) {
69
+ unset( wd_asl()->o['asl_compatibility']['old_browser_compatibility'] );
70
+ asl_save_option('asl_compatibility');
71
+ }
72
 
73
  // 4.18.2
74
  $ana = wd_asl()->o['asl_analytics'];
106
  // ------------------------- 4.7.13 -----------------------------
107
  if ( isset($sd['redirectonclick']) ) {
108
  if ( $sd['redirectonclick'] == 0 )
109
+ $sd['click_action'] = 'ajax_search';
110
  unset($sd['redirectonclick']);
111
  }
112
  if ( isset($sd['redirect_on_enter']) ) {
113
  if ( $sd['redirect_on_enter'] == 0 )
114
+ $sd['return_action'] = 'ajax_search';
115
  unset($sd['redirect_on_enter']);
116
  }
117
  // ------------------------- 4.7.14 -----------------------------
193
  unset($sd['descriptionfield_cf']);
194
  }
195
 
196
+ if ( isset($sd['redirect_enter_to']) ) {
197
+ $sd['return_action'] = $sd['redirect_enter_to'];
198
+ $sd['click_action'] = $sd['redirect_click_to'];
199
+ unset($sd['redirect_enter_to']);
200
+ unset($sd['redirect_click_to']);
201
+ }
202
+
203
  // At the end, update
204
  wd_asl()->instances->update(0, $sd);
205
  }
209
  /**
210
  * Extra styles if needed..
211
  */
212
+ public function styles() {}
213
+
214
+ /**
215
+ * Prints the scripts
216
+ * @noinspection PhpInconsistentReturnPointsInspection
217
+ */
218
+ public function scripts() {
219
+ wd_asl()->scripts = WD_ASL_Scripts::getInstance();
220
+
221
+ $exit1 = apply_filters('asl_load_css_js', false);
222
+ $exit2 = apply_filters('asl_load_js', false);
223
+ if ( $exit1 || $exit2 )
224
+ return false;
225
+
226
+ $performance_options = wd_asl()->o['asl_performance'];
227
+ $analytics = wd_asl()->o['asl_analytics'];
228
+ $comp_settings = wd_asl()->o['asl_compatibility'];
229
+ $load_in_footer = $performance_options['load_in_footer'] == 1;
230
+ $media_query = ASL_DEBUG == 1 ? asl_gen_rnd_str() : ASL_CURRENT_VERSION;
231
+ if ( wd_asl()->manager->getContext() == "backend" ) {
232
+ $legacy = false;
233
+ $js_minified = false;
234
+ $js_optimized = true;
235
+ $js_async_load = false;
236
+ } else {
237
+ $legacy = $comp_settings['js_source'] != 'jqueryless-min' && $comp_settings['js_source'] != 'jqueryless-nomin';
238
+ $js_minified = $comp_settings['js_source'] == 'jqueryless-min';
239
+ $js_optimized = $comp_settings['script_loading_method'] != 'classic';
240
+ $js_async_load = $comp_settings['script_loading_method'] == 'optimized_async';
241
+ }
242
 
243
  $single_highlight = false;
244
  $single_highlight_arr = array();
249
  if ( $s['data']['single_highlight'] == 1 ) {
250
  $single_highlight = true;
251
  $single_highlight_arr[] = array(
 
252
  'selector' => $s['data']['single_highlight_selector'],
253
  'scroll' => $s['data']['single_highlight_scroll'] == 1,
254
  'scroll_offset' => intval($s['data']['single_highlight_offset']),
258
  }
259
  }
260
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
 
262
+ $ajax_url = admin_url('admin-ajax.php');
263
+ if ( $performance_options['use_custom_ajax_handler'] == 1) {
264
+ $ajax_url = ASL_URL . 'ajax_search.php';
265
+ }
266
 
267
+ if (ASL_DEBUG < 1 && strpos($comp_settings['js_source'], "scoped") !== false) {
268
+ $scope = "asljQuery";
269
+ } else {
270
+ $scope = "jQuery";
271
+ }
272
+
273
+ $handle = 'wd-asl-ajaxsearchlite';
274
+
275
+ if ( $legacy ) {
276
+ wd_asl()->scripts_legacy = WD_ASL_Scripts_Legacy::getInstance();
277
+ wd_asl()->scripts_legacy->enqueue();
278
+ $additional_scripts = array();
279
+ } else {
280
+ if ( !$js_async_load ) {
281
+ wd_asl()->scripts->enqueue(
282
+ wd_asl()->scripts->get(array(), $js_minified, $js_optimized, array(
283
+ 'wd-asl-async-loader', 'wd-asl-prereq-and-wrapper'
284
+ )),
285
+ array(
286
+ 'media_query' => $media_query,
287
+ 'in_footer' => $load_in_footer
288
+ )
289
+ );
290
+ $additional_scripts = wd_asl()->scripts->get(array(), $js_minified, $js_optimized,
291
+ array('wd-asl-async-loader', 'wd-asl-prereq-and-wrapper', 'wd-asl-ajaxsearchlite-wrapper')
292
+ );
293
+ } else {
294
+ $handle = 'wd-asl-prereq-and-wrapper';
295
+ wd_asl()->scripts->enqueue(
296
+ wd_asl()->scripts->get($handle, $js_minified, $js_optimized),
297
+ array(
298
+ 'media_query' => $media_query,
299
+ 'in_footer' => $load_in_footer
300
+ )
301
+ );
302
+ $additional_scripts = wd_asl()->scripts->get(array(), $js_minified, $js_optimized,
303
+ array('wd-asl-async-loader',
304
+ 'wd-asl-prereq-and-wrapper',
305
+ 'wd-asl-ajaxsearchlite-wrapper',
306
+ 'wd-asl-ajaxsearchlite-prereq'
307
+ )
308
+ );
309
+ }
310
+ }
311
 
312
+ ASL_Helpers::addInlineScript( $handle, 'ASL', array(
313
  'wp_rocket_exception' => 'DOMContentLoaded', // WP Rocket hack to prevent the wrapping of the inline script: https://docs.wp-rocket.me/article/1265-load-javascript-deferred
314
+ 'ajaxurl' => $ajax_url,
315
+ 'backend_ajaxurl' => admin_url('admin-ajax.php'),
316
+ 'js_scope' => $scope,
317
+ 'asl_url' => ASL_URL,
318
+ 'detect_ajax' => w_isset_def($comp_settings['detect_ajax'], 0),
319
+ 'media_query' => ASL_CURRENT_VERSION,
320
+ 'version' => ASL_CURRENT_VERSION,
321
+ 'pageHTML' => '',
322
+ 'additional_scripts' => $additional_scripts,
323
+ 'script_async_load' => $js_async_load,
324
+ 'scrollbar' => $comp_settings['load_scroll_js'] == "yes" && asl_is_asset_required('simplebar'),
325
+ 'css_async' => false,
326
+ 'js_retain_popstate' => w_isset_def($comp_settings['js_retain_popstate'], 1),
327
  'highlight' => array(
328
  'enabled' => $single_highlight,
329
  'data' => $single_highlight_arr
330
  ),
331
+ 'fix_duplicates' => $comp_settings['js_fix_duplicates'],
332
+ 'analytics' => array(
333
+ 'method' => $analytics['analytics'],
334
+ 'tracking_id' => $analytics['analytics_tracking_id'],
335
+ 'string' => $analytics['analytics_string'],
336
+ 'event' => array(
337
+ 'focus' => array(
338
+ 'active' => $analytics['gtag_focus'],
339
+ 'action' => $analytics['gtag_focus_action'],
340
+ "category" => $analytics['gtag_focus_ec'],
341
+ "label" => $analytics['gtag_focus_el'],
342
+ "value" => $analytics['gtag_focus_value']
343
+ ),
344
+ 'search_start' => array(
345
+ 'active' => $analytics['gtag_search_start'],
346
+ 'action' => $analytics['gtag_search_start_action'],
347
+ "category" => $analytics['gtag_search_start_ec'],
348
+ "label" => $analytics['gtag_search_start_el'],
349
+ "value" => $analytics['gtag_search_start_value']
350
+ ),
351
+ 'search_end' => array(
352
+ 'active' => $analytics['gtag_search_end'],
353
+ 'action' => $analytics['gtag_search_end_action'],
354
+ "category" => $analytics['gtag_search_end_ec'],
355
+ "label" => $analytics['gtag_search_end_el'],
356
+ "value" => $analytics['gtag_search_end_value']
357
+ ),
358
+ 'magnifier' => array(
359
+ 'active' => $analytics['gtag_magnifier'],
360
+ 'action' => $analytics['gtag_magnifier_action'],
361
+ "category" => $analytics['gtag_magnifier_ec'],
362
+ "label" => $analytics['gtag_magnifier_el'],
363
+ "value" => $analytics['gtag_magnifier_value']
364
+ ),
365
+ 'return' => array(
366
+ 'active' => $analytics['gtag_return'],
367
+ 'action' => $analytics['gtag_return_action'],
368
+ "category" => $analytics['gtag_return_ec'],
369
+ "label" => $analytics['gtag_return_el'],
370
+ "value" => $analytics['gtag_return_value']
371
+ ),
372
+ 'facet_change' => array(
373
+ 'active' => $analytics['gtag_facet_change'],
374
+ 'action' => $analytics['gtag_facet_change_action'],
375
+ "category" => $analytics['gtag_facet_change_ec'],
376
+ "label" => $analytics['gtag_facet_change_el'],
377
+ "value" => $analytics['gtag_facet_change_value']
378
+ ),
379
+ 'result_click' => array(
380
+ 'active' => $analytics['gtag_result_click'],
381
+ 'action' => $analytics['gtag_result_click_action'],
382
+ "category" => $analytics['gtag_result_click_ec'],
383
+ "label" => $analytics['gtag_result_click_el'],
384
+ "value" => $analytics['gtag_result_click_value']
385
+ )
386
+ )
387
+ )
388
+ ), 'before', true);
389
+ }
 
390
 
391
  public function pluginReset( $triggerActivate = true ) {
392
  $options = array(
406
  'asl_stat',
407
  'asl_updates',
408
  'asl_updates_lc',
 
409
  'asl_performance_stats',
410
  'asl_recently_updated',
411
  'asl_debug_data'
includes/classes/core/class-asl-instances.php CHANGED
@@ -102,6 +102,7 @@ class WD_ASL_Instances {
102
  public function update( $id = 0, $data = array() ) {
103
 
104
  $this->refresh = true;
 
105
 
106
  return update_option("asl_options", $data);
107
  }
102
  public function update( $id = 0, $data = array() ) {
103
 
104
  $this->refresh = true;
105
+ $data = apply_filters('asl_save_search_instance_options', $data);
106
 
107
  return update_option("asl_options", $data);
108
  }
includes/classes/core/class-asl-manager.php CHANGED
@@ -136,6 +136,7 @@ if (!class_exists("WD_ASL_Manager")) {
136
  $this->context = "frontend";
137
  }
138
 
 
139
  }
140
 
141
  /**
136
  $this->context = "frontend";
137
  }
138
 
139
+ return $this->context;
140
  }
141
 
142
  /**
includes/classes/core/class-asl-scripts-legacy.php ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Prevent direct access */
3
+ defined('ABSPATH') or die("You can't access this file directly.");
4
+
5
+ /**
6
+ * @deprecated Will be removed @2022 Q1
7
+ */
8
+ class WD_ASL_Scripts_Legacy {
9
+ private static $_instance;
10
+ private function __construct() {}
11
+
12
+ public function enqueue() {
13
+ $com_opt = wd_asl()->o['asl_compatibility'];
14
+ $exit1 = apply_filters('asl_load_css_js', false);
15
+ $exit2 = apply_filters('asl_load_js', false);
16
+ if ( $exit1 || $exit2 )
17
+ return false;
18
+
19
+ $single_highlight = false;
20
+ $single_highlight_arr = array();
21
+ $search = wd_asl()->instances->get();
22
+ if (is_array($search) && count($search)>0) {
23
+ foreach ($search as $s) {
24
+ // $style and $id needed in the include
25
+ if ( $s['data']['single_highlight'] == 1 ) {
26
+ $single_highlight = true;
27
+ $single_highlight_arr[] = array(
28
+ 'id' => $s['id'],
29
+ 'selector' => $s['data']['single_highlight_selector'],
30
+ 'scroll' => $s['data']['single_highlight_scroll'] == 1,
31
+ 'scroll_offset' => intval($s['data']['single_highlight_offset']),
32
+ 'whole' => $s['data']['single_highlightwholewords'] == 1,
33
+ );
34
+ }
35
+ }
36
+ }
37
+
38
+ $performance_options = wd_asl()->o['asl_performance'];
39
+ $analytics = wd_asl()->o['asl_analytics'];
40
+
41
+ $prereq = 'jquery';
42
+ $js_source = $com_opt['js_source'];
43
+ $scripts = array();
44
+
45
+ $load_in_footer = w_isset_def($performance_options['load_in_footer'], 1) == 1 ? true : false;
46
+ $load_mcustom = w_isset_def($com_opt['load_scroll_js'], "yes") == "yes";
47
+
48
+ if ($js_source == 'nomin' || $js_source == 'nomin-scoped') {
49
+ if ($js_source == "nomin-scoped") {
50
+ $prereq = "wpdreams-asljquery";
51
+ wp_register_script('wpdreams-asljquery', ASL_URL . 'js/legacy/' . $js_source . '/asljquery.js', array(), ASL_CURR_VER_STRING, $load_in_footer);
52
+ wp_enqueue_script('wpdreams-asljquery');
53
+ $scripts[] = ASL_URL . 'js/legacy/' . $js_source . '/asljquery.js';
54
+ }
55
+ wp_register_script('wpdreams-highlight', ASL_URL . 'js/legacy/' . $js_source . '/jquery.highlight.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
56
+ wp_enqueue_script('wpdreams-highlight');
57
+ $scripts[] = ASL_URL . 'js/legacy/' . $js_source . '/jquery.highlight.js';
58
+ if ( $load_mcustom ) {
59
+ wp_register_script('wpdreams-scroll', ASL_URL . 'js/legacy/' . $js_source . '/simplebar.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
60
+ wp_enqueue_script('wpdreams-scroll');
61
+ $scripts[] = ASL_URL . 'js/legacy/' . $js_source . '/simplebar.js';
62
+ }
63
+ wp_register_script('wpdreams-ajaxsearchlite', ASL_URL . 'js/legacy/' . $js_source . '/jquery.ajaxsearchlite.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
64
+ wp_enqueue_script('wpdreams-ajaxsearchlite');
65
+ $scripts[] = ASL_URL . 'js/legacy/' . $js_source . '/jquery.ajaxsearchlite.js';
66
+
67
+ wp_register_script('wpdreams-asl-wrapper', ASL_URL . 'js/legacy/' . $js_source . '/asl_wrapper.js', array($prereq, "wpdreams-ajaxsearchlite"), ASL_CURR_VER_STRING, $load_in_footer);
68
+ wp_enqueue_script('wpdreams-asl-wrapper');
69
+ $scripts[] = ASL_URL . 'js/legacy/' . $js_source . '/asl_wrapper.js';
70
+ } else {
71
+ wp_enqueue_script('jquery');
72
+ wp_register_script('wpdreams-ajaxsearchlite', ASL_URL . "js/legacy/" . $js_source . "/jquery.ajaxsearchlite.min.js", array(), ASL_CURR_VER_STRING, $load_in_footer);
73
+ wp_enqueue_script('wpdreams-ajaxsearchlite');
74
+ $scripts[] = ASL_URL . 'js/legacy/' . $js_source . '/jquery.ajaxsearchlite.min.js';
75
+ }
76
+
77
+ $ajax_url = admin_url('admin-ajax.php');
78
+ if ( w_isset_def($performance_options['use_custom_ajax_handler'], 0) == 1 )
79
+ $ajax_url = ASL_URL . 'ajax_search.php';
80
+
81
+ if (strpos($com_opt['js_source'], 'min-scoped') !== false) {
82
+ $scope = "asljQuery";
83
+ } else {
84
+ $scope = "jQuery";
85
+ }
86
+
87
+ ASL_Helpers::addInlineScript( 'wpdreams-ajaxsearchlite', 'ASL', array(
88
+ 'wp_rocket_exception' => 'DOMContentLoaded', // WP Rocket hack to prevent the wrapping of the inline script: https://docs.wp-rocket.me/article/1265-load-javascript-deferred
89
+ 'ajaxurl' => $ajax_url,
90
+ 'backend_ajaxurl' => admin_url( 'admin-ajax.php'),
91
+ 'js_scope' => $scope,
92
+ 'detect_ajax' => $com_opt['detect_ajax'],
93
+ 'scrollbar' => $load_mcustom,
94
+ 'js_retain_popstate' => $com_opt['js_retain_popstate'],
95
+ 'version' => ASL_CURRENT_VERSION,
96
+ 'min_script_src' => $scripts,
97
+ 'highlight' => array(
98
+ 'enabled' => $single_highlight,
99
+ 'data' => $single_highlight_arr
100
+ ),
101
+ 'fix_duplicates' => $com_opt['js_fix_duplicates'],
102
+ 'analytics' => array(
103
+ 'method' => $analytics['analytics'],
104
+ 'tracking_id' => $analytics['analytics_tracking_id'],
105
+ 'string' => $analytics['analytics_string'],
106
+ 'event' => array(
107
+ 'focus' => array(
108
+ 'active' => $analytics['gtag_focus'],
109
+ 'action' => $analytics['gtag_focus_action'],
110
+ "category" => $analytics['gtag_focus_ec'],
111
+ "label" => $analytics['gtag_focus_el'],
112
+ "value" => $analytics['gtag_focus_value']
113
+ ),
114
+ 'search_start' => array(
115
+ 'active' => $analytics['gtag_search_start'],
116
+ 'action' => $analytics['gtag_search_start_action'],
117
+ "category" => $analytics['gtag_search_start_ec'],
118
+ "label" => $analytics['gtag_search_start_el'],
119
+ "value" => $analytics['gtag_search_start_value']
120
+ ),
121
+ 'search_end' => array(
122
+ 'active' => $analytics['gtag_search_end'],
123
+ 'action' => $analytics['gtag_search_end_action'],
124
+ "category" => $analytics['gtag_search_end_ec'],
125
+ "label" => $analytics['gtag_search_end_el'],
126
+ "value" => $analytics['gtag_search_end_value']
127
+ ),
128
+ 'magnifier' => array(
129
+ 'active' => $analytics['gtag_magnifier'],
130
+ 'action' => $analytics['gtag_magnifier_action'],
131
+ "category" => $analytics['gtag_magnifier_ec'],
132
+ "label" => $analytics['gtag_magnifier_el'],
133
+ "value" => $analytics['gtag_magnifier_value']
134
+ ),
135
+ 'return' => array(
136
+ 'active' => $analytics['gtag_return'],
137
+ 'action' => $analytics['gtag_return_action'],
138
+ "category" => $analytics['gtag_return_ec'],
139
+ "label" => $analytics['gtag_return_el'],
140
+ "value" => $analytics['gtag_return_value']
141
+ ),
142
+ 'facet_change' => array(
143
+ 'active' => $analytics['gtag_facet_change'],
144
+ 'action' => $analytics['gtag_facet_change_action'],
145
+ "category" => $analytics['gtag_facet_change_ec'],
146
+ "label" => $analytics['gtag_facet_change_el'],
147
+ "value" => $analytics['gtag_facet_change_value']
148
+ ),
149
+ 'result_click' => array(
150
+ 'active' => $analytics['gtag_result_click'],
151
+ 'action' => $analytics['gtag_result_click_action'],
152
+ "category" => $analytics['gtag_result_click_ec'],
153
+ "label" => $analytics['gtag_result_click_el'],
154
+ "value" => $analytics['gtag_result_click_value']
155
+ )
156
+ )
157
+ )
158
+ ), 'before', true);
159
+ }
160
+
161
+ /**
162
+ * Get the instane
163
+ *
164
+ * @return self
165
+ */
166
+ public static function getInstance() {
167
+ if (!(self::$_instance instanceof self)) {
168
+ self::$_instance = new self();
169
+ }
170
+
171
+ return self::$_instance;
172
+ }
173
+ }
includes/classes/core/class-asl-scripts.php ADDED
@@ -0,0 +1,306 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Prevent direct access */
3
+ defined('ABSPATH') or die("You can't access this file directly.");
4
+
5
+ class WD_ASL_Scripts {
6
+ private static $_instance;
7
+
8
+ private $scripts = array(
9
+ 'wd-asl-scroll-simple' => array(
10
+ 'src' => 'js/{js_source}/external/simplebar.js',
11
+ 'prereq' => false
12
+ ),
13
+ 'wd-asl-ajaxsearchlite' => array(
14
+ 'src' => 'js/{js_source}/plugin/merged/asl.js',
15
+ 'prereq' => false
16
+ ),
17
+ 'wd-asl-prereq-and-wrapper' => array(
18
+ 'src' => 'js/{js_source}/plugin/merged/asl-prereq-and-wrapper.js',
19
+ 'prereq' => false
20
+ )
21
+ );
22
+
23
+ private $optimized_scripts = array(
24
+ 'wd-asl-ajaxsearchlite' => array(
25
+ 'wd-asl-ajaxsearchlite-prereq' => array(
26
+ 'handle' => 'wd-asl-ajaxsearchlite', // Handle alias, for the enqueue
27
+ 'src' => 'js/{js_source}/plugin/optimized/asl-prereq.js',
28
+ ),
29
+ 'wd-asl-ajaxsearchlite-core' => array(
30
+ 'src' => 'js/{js_source}/plugin/optimized/asl-core.js',
31
+ ),
32
+ 'wd-asl-ajaxsearchlite-settings' => array(
33
+ 'src' => 'js/{js_source}/plugin/optimized/asl-settings.js',
34
+ 'prereq' => array('wd-asl-ajaxsearchlite'),
35
+ ),
36
+ 'wd-asl-ajaxsearchlite-vertical' => array(
37
+ 'src' => 'js/{js_source}/plugin/optimized/asl-results-vertical.js',
38
+ 'prereq' => array('wd-asl-ajaxsearchlite'),
39
+ ),
40
+ 'wd-asl-ajaxsearchlite-ga' => array(
41
+ 'src' => 'js/{js_source}/plugin/optimized/asl-ga.js',
42
+ 'prereq' => array('wd-asl-ajaxsearchlite'),
43
+ ),
44
+ 'wd-asl-ajaxsearchlite-autocomplete' => array(
45
+ 'src' => 'js/{js_source}/plugin/optimized/asl-autocomplete.js',
46
+ 'prereq' => array('wd-asl-ajaxsearchlite'),
47
+ ),
48
+ 'wd-asl-ajaxsearchlite-load' => array(
49
+ 'src' => 'js/{js_source}/plugin/optimized/asl-load.js',
50
+ 'prereq' => true, // TRUE => previously loaded script
51
+ ),
52
+ 'wd-asl-ajaxsearchlite-wrapper' => array(
53
+ 'src' => 'js/{js_source}/plugin/optimized/asl-wrapper.js',
54
+ 'prereq' => true, // TRUE => previously loaded script
55
+ )
56
+ )
57
+ );
58
+
59
+ private $dev_scripts = array();
60
+ private $dev_scripts_config = 'js/src/config.cfg';
61
+
62
+ private function __construct() {
63
+ if ( defined('ASL_DEBUG') && ASL_DEBUG == 1 ) {
64
+ $blocks = $this->process_config(ASL_PATH . $this->dev_scripts_config);
65
+ foreach($blocks as $handle => $block) {
66
+ $this->dev_scripts[$handle] = array(
67
+ 'src' => $this->get_block_files_ordered($block)
68
+ );
69
+ }
70
+ }
71
+ }
72
+
73
+ public function get( $handles = array(), $minified = true, $optimized = false, $except = array() ) {
74
+ $handles = is_string($handles) ? array($handles) : $handles;
75
+ $handles = count($handles) == 0 ? array_keys($this->scripts) : $handles;
76
+ $js_source = $minified ? "min" : "nomin";
77
+ $return = array();
78
+
79
+ foreach ( $handles as $handle ) {
80
+ if ( in_array($handle, $except) || !$this->isRequired($handle) ) {
81
+ continue;
82
+ }
83
+ if ( isset($this->scripts[$handle]) ) {
84
+ if ( defined('ASL_DEBUG') &&
85
+ ASL_DEBUG == 1 &&
86
+ isset($this->dev_scripts[$handle]) &&
87
+ wd_asl()->manager->getContext() != "backend"
88
+ ) {
89
+ $src = $this->dev_scripts[$handle]['src'];
90
+ $src = !is_array($src) ? array($src) : $src;
91
+ $i = 0;
92
+ foreach ( $src as $file_path ) {
93
+ $_handle = $i == 0 ? $handle : $handle . '_' . $i;
94
+ $url = esc_url_raw(str_replace(
95
+ wp_normalize_path( untrailingslashit( ABSPATH ) ),
96
+ site_url(),
97
+ wp_normalize_path( $file_path )
98
+ ));
99
+ $return[] = array(
100
+ 'handle' => $_handle,
101
+ 'src' => str_replace(
102
+ array('{js_source}'),
103
+ array($js_source),
104
+ $url
105
+ ),
106
+ 'prereq' => $this->scripts[$handle]['prereq']
107
+ );
108
+ ++$i;
109
+ }
110
+ continue;
111
+ }
112
+
113
+ if ( $optimized && isset($this->optimized_scripts[$handle]) ) {
114
+ $prev_handle = '';
115
+ foreach ( $this->optimized_scripts[$handle] as $optimized_script_handle => $optimized_script ) {
116
+ if ( in_array($optimized_script_handle, $except) || !$this->isRequired($optimized_script_handle) ) {
117
+ continue;
118
+ }
119
+ $prereq = !isset($optimized_script['prereq']) || $optimized_script['prereq'] === false ? array() : $optimized_script['prereq'];
120
+ if ( $prereq === true ) {
121
+ $prereq = array($prev_handle);
122
+ }
123
+ $return[] = array(
124
+ 'handle' => isset($optimized_script['handle']) ? $optimized_script['handle'] : $optimized_script_handle,
125
+ 'src' => ASL_URL . str_replace(
126
+ array('{js_source}'),
127
+ array($js_source),
128
+ $optimized_script['src']
129
+ ),
130
+ 'prereq' => $prereq
131
+ );
132
+
133
+ $prev_handle = $optimized_script_handle;
134
+ }
135
+ continue;
136
+ }
137
+
138
+ $return[] = array(
139
+ 'handle' => $handle,
140
+ 'src' => ASL_URL . str_replace(
141
+ array('{js_source}'),
142
+ array($js_source),
143
+ $this->scripts[$handle]['src']
144
+ ),
145
+ 'prereq' => $this->scripts[$handle]['prereq']
146
+ );
147
+ } else if ( $optimized && wd_in_array_r($handle, $this->optimized_scripts) ) {
148
+ foreach ( $this->optimized_scripts as $opt_handle => $scripts ) {
149
+ if ( isset($scripts[$handle]) ) {
150
+ $return[] = array(
151
+ 'handle' => $handle,
152
+ 'src' => ASL_URL . str_replace(
153
+ array('{js_source}'),
154
+ array($js_source),
155
+ $scripts[$handle]['src']
156
+ ),
157
+ 'prereq' => $scripts[$handle]['prereq']
158
+ );
159
+ }
160
+ }
161
+ }
162
+ }
163
+
164
+ return $return;
165
+ }
166
+
167
+ public function enqueue( $scripts = array(), $args = array() ) {
168
+ $defaults = array(
169
+ 'media_query' => '',
170
+ 'in_footer' => true,
171
+ 'prereq' => array()
172
+ );
173
+ $args = wp_parse_args($args, $defaults);
174
+ foreach ( $scripts as $script ) {
175
+ if ( isset($script['prereq']) ) {
176
+ if ( $script['prereq'] === false ) {
177
+ $prereq = array();
178
+ } else {
179
+ $prereq = $script['prereq'];
180
+ }
181
+ } else {
182
+ $prereq = $args['prereq'];
183
+ }
184
+ wp_register_script(
185
+ $script['handle'],
186
+ $script['src'],
187
+ $prereq,
188
+ $args['media_query'],
189
+ $args['in_footer']
190
+ );
191
+ wp_enqueue_script($script['handle']);
192
+ }
193
+
194
+ return $scripts;
195
+ }
196
+
197
+ public function isRequired( $handle ) {
198
+ if ( wd_asl()->manager->getContext() == "backend" ) {
199
+ return true;
200
+ }
201
+
202
+ $required = false;
203
+ switch ( $handle ) {
204
+ case 'wd-asl-scroll-simple':
205
+ if (
206
+ wd_asl()->o['asl_compatibility']['load_scroll_js'] == "yes"
207
+ ) {
208
+ $required = true;
209
+ }
210
+ break;
211
+ case 'wd-asl-ajaxsearchlite-settings':
212
+ if ( asl_is_asset_required('settings') ) {
213
+ $required = true;
214
+ }
215
+ break;
216
+ case 'wd-asl-ajaxsearchlite-vertical':
217
+ if ( asl_is_asset_required('vertical') ) {
218
+ $required = true;
219
+ }
220
+ break;
221
+ case 'wd-asl-ajaxsearchlite-autocomplete':
222
+ if ( asl_is_asset_required('autocomplete') ) {
223
+ $required = true;
224
+ }
225
+ break;
226
+ case 'wd-asl-ajaxsearchlite-ga':
227
+ if ( asl_is_asset_required('ga') ) {
228
+ $required = true;
229
+ }
230
+ break;
231
+ default:
232
+ $required = true;
233
+ break;
234
+ }
235
+
236
+ return $required;
237
+ }
238
+
239
+ private function process_config($cfg) {
240
+ $blocks = $all_blocks = parse_ini_file( $cfg, true);
241
+
242
+ foreach ( $blocks as $name => &$block ) {
243
+ if ( isset($block['config']) ) {
244
+ foreach ( $block['config'] as $config ) {
245
+ $all_blocks = array_merge($all_blocks, $this->process_config( $config ));
246
+ }
247
+ unset($all_blocks[$name]);
248
+ } else {
249
+ if ( !isset($block['input_dir']) ) {
250
+ $all_blocks[$name]['input_dir'] = dirname($cfg) . "/";
251
+ }
252
+ }
253
+ }
254
+
255
+ return $all_blocks;
256
+ }
257
+
258
+ private function get_block_files_ordered($block, $extensions = array('js')) {
259
+ $parsed = array();
260
+ $input_dir = isset($block['input_dir']) ? $block['input_dir'] : $_SERVER['DOCUMENT_ROOT'] . '/';
261
+ $exclude = isset($block['exclude']) ? $block['exclude'] : array();
262
+ foreach ( $exclude as &$e ) {
263
+ $e = $input_dir . $e;
264
+ }
265
+ foreach ( $block['input'] as $input ) {
266
+ $path = $input_dir . $input;
267
+ if ( is_dir($path) ) {
268
+ $dir = array_diff(scandir($path), array('..', '.'));
269
+ foreach ( $dir as $file ) {
270
+ $filepath = $path . '/' . $file;
271
+
272
+ if ( is_dir($filepath) ) {
273
+ continue;
274
+ }
275
+
276
+ if (
277
+ in_array(pathinfo($filepath)['extension'], $extensions) &&
278
+ !in_array($filepath, $exclude) &&
279
+ !in_array($filepath, $parsed)
280
+ ) {
281
+ $parsed[] = $filepath;
282
+ }
283
+ }
284
+ } else {
285
+ if ( !in_array($path, $parsed) ) {
286
+ $parsed[] = $path;
287
+ }
288
+ }
289
+ }
290
+
291
+ return $parsed;
292
+ }
293
+
294
+ /**
295
+ * Get the instane
296
+ *
297
+ * @return self
298
+ */
299
+ public static function getInstance() {
300
+ if (!(self::$_instance instanceof self)) {
301
+ self::$_instance = new self();
302
+ }
303
+
304
+ return self::$_instance;
305
+ }
306
+ }
includes/classes/core/core.inc.php CHANGED
@@ -11,4 +11,6 @@ require_once(ASL_CLASSES_PATH . "core/class-asl-init.php");
11
  require_once(ASL_CLASSES_PATH . "core/class-asl-menu.php");
12
  require_once(ASL_CLASSES_PATH . "core/class-asl-dbman.php");
13
  require_once(ASL_CLASSES_PATH . "core/class-asl-instances.php");
14
- require_once(ASL_CLASSES_PATH . "core/class-asl-manager.php");
 
 
11
  require_once(ASL_CLASSES_PATH . "core/class-asl-menu.php");
12
  require_once(ASL_CLASSES_PATH . "core/class-asl-dbman.php");
13
  require_once(ASL_CLASSES_PATH . "core/class-asl-instances.php");
14
+ require_once(ASL_CLASSES_PATH . "core/class-asl-manager.php");
15
+ require_once(ASL_CLASSES_PATH . "core/class-asl-scripts.php");
16
+ require_once(ASL_CLASSES_PATH . "core/class-asl-scripts-legacy.php");
includes/classes/etc/class-asl_helpers.php CHANGED
@@ -9,7 +9,7 @@ if (!class_exists("ASL_Helpers")) {
9
  *
10
  * @class ASL_Helpers
11
  * @version 1.0
12
- * @package AjaxSearchPro/Classes/Etc
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
9
  *
10
  * @class ASL_Helpers
11
  * @version 1.0
12
+ * @package AjaxSearchLite/Classes/Etc
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
includes/classes/filters/class-asl-abstract.php CHANGED
@@ -9,7 +9,7 @@ if (!class_exists("WD_ASL_Filter_Abstract")) {
9
  *
10
  * @class WD_ASL_Filter_Abstract
11
  * @version 1.0
12
- * @package AjaxSearchPro/Classes/Filters
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
9
  *
10
  * @class WD_ASL_Filter_Abstract
11
  * @version 1.0
12
+ * @package AjaxSearchLite/Classes/Filters
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
includes/classes/filters/class-asl-etc_fixes.php CHANGED
@@ -9,7 +9,7 @@ if (!class_exists("WD_ASL_EtcFixes_Filter")) {
9
  *
10
  * @class WD_ASL_EtcFixes_Filter
11
  * @version 1.0
12
- * @package AjaxSearchPro/Classes/Filters
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
@@ -33,6 +33,17 @@ if (!class_exists("WD_ASL_EtcFixes_Filter")) {
33
  return $menu_items;
34
  }
35
 
 
 
 
 
 
 
 
 
 
 
 
36
  /**
37
  * Fix for the Oxygen builder plugin editor error console
38
  */
9
  *
10
  * @class WD_ASL_EtcFixes_Filter
11
  * @version 1.0
12
+ * @package AjaxSearchLite/Classes/Filters
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
33
  return $menu_items;
34
  }
35
 
36
+ function switchToNewScriptsOnLiveLoader( $options ) {
37
+ if ( $options['res_live_search'] ) {
38
+ $com_options = wd_asl()->o['asl_compatibility'];
39
+ if ( strpos($com_options['js_source'], 'jqueryless') === false ) {
40
+ $com_options['js_source'] = 'jqueryless-min';
41
+ update_option('asl_compatibility', $com_options);
42
+ }
43
+ }
44
+ return $options;
45
+ }
46
+
47
  /**
48
  * Fix for the Oxygen builder plugin editor error console
49
  */
includes/classes/filters/class-asl-formoverride.php CHANGED
@@ -9,20 +9,13 @@ if (!class_exists("WD_ASL_FormOverride_Filter")) {
9
  *
10
  * @class WD_ASL_FormOverride_Filter
11
  * @version 1.0
12
- * @package AjaxSearchPro/Classes/Filters
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
16
  class WD_ASL_FormOverride_Filter extends WD_ASL_Filter_Abstract {
17
 
18
  public function handle( $form = "" ) {
19
- if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
20
- $comp_options = wd_asl()->o['asl_compatibility'];
21
- if ( $comp_options['old_browser_compatibility'] == 1 ) {
22
- return $form;
23
- }
24
- }
25
-
26
  $inst = wd_asl()->instances->get(0);
27
 
28
  if ( $inst['data']['override_search_form'] )
9
  *
10
  * @class WD_ASL_FormOverride_Filter
11
  * @version 1.0
12
+ * @package AjaxSearchLite/Classes/Filters
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
16
  class WD_ASL_FormOverride_Filter extends WD_ASL_Filter_Abstract {
17
 
18
  public function handle( $form = "" ) {
 
 
 
 
 
 
 
19
  $inst = wd_asl()->instances->get(0);
20
 
21
  if ( $inst['data']['override_search_form'] )
includes/classes/filters/class-asl-searchoverride.php CHANGED
@@ -9,7 +9,7 @@ if (!class_exists("WD_ASL_SearchOverride_Filter")) {
9
  *
10
  * @class WD_ASL_SearchOverride_Filter
11
  * @version 1.0
12
- * @package AjaxSearchPro/Classes/Filters
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
9
  *
10
  * @class WD_ASL_SearchOverride_Filter
11
  * @version 1.0
12
+ * @package AjaxSearchLite/Classes/Filters
13
  * @category Class
14
  * @author Ernest Marcinko
15
  */
includes/classes/search/class-asl-search-cpt.php CHANGED
@@ -8,7 +8,7 @@ if ( ! class_exists( 'ASL_Search_CPT' ) ) {
8
  *
9
  * @class ASL_Search_CPT
10
  * @version 2.0
11
- * @package AjaxSearchPro/Classes/Search
12
  * @category Class
13
  * @author Ernest Marcinko
14
  */
8
  *
9
  * @class ASL_Search_CPT
10
  * @version 2.0
11
+ * @package AjaxSearchLite/Classes/Search
12
  * @category Class
13
  * @author Ernest Marcinko
14
  */
includes/classes/search/class-asl-search.php CHANGED
@@ -10,7 +10,7 @@ if (!class_exists('ASL_Search')) {
10
  *
11
  * @class ASL_Search
12
  * @version 2.0
13
- * @package AjaxSearchPro/Abstracts
14
  * @category Class
15
  * @author Ernest Marcinko
16
  */
10
  *
11
  * @class ASL_Search
12
  * @version 2.0
13
+ * @package AjaxSearchLite/Abstracts
14
  * @category Class
15
  * @author Ernest Marcinko
16
  */
includes/classes/shortcodes/class-asl-search.php CHANGED
@@ -50,13 +50,6 @@ if (!class_exists("WD_ASL_Search_Shortcode")) {
50
  'id' => 'something'
51
  ), $atts));
52
 
53
- if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
54
- $com_opt = wd_asl()->o['asl_compatibility'];
55
- if ( $com_opt['old_browser_compatibility'] == 1 ) {
56
- get_search_form(true);
57
- return;
58
- }
59
- }
60
 
61
  $inst = wd_asl()->instances->get(0);
62
  $style = $inst['data'];
50
  'id' => 'something'
51
  ), $atts));
52
 
 
 
 
 
 
 
 
53
 
54
  $inst = wd_asl()->instances->get(0);
55
  $style = $inst['data'];
includes/functions/functions.php CHANGED
@@ -376,6 +376,90 @@ if (!function_exists("wpdreams_four_to_array")) {
376
  }
377
  }
378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
379
  if (!function_exists("asl_generate_html_results")) {
380
  /**
381
  * Converts the results array to HTML code
376
  }
377
  }
378
 
379
+ if (!function_exists("asl_gen_rnd_str")) {
380
+ function asl_gen_rnd_str($length = 6) {
381
+ $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
382
+ $charactersLength = strlen($characters);
383
+ $randomString = '';
384
+ for ($i = 0; $i < $length; $i++) {
385
+ $randomString .= $characters[rand(0, $charactersLength - 1)];
386
+ }
387
+ return $randomString;
388
+ }
389
+ }
390
+
391
+ if ( !function_exists("asl_is_asset_required") ) {
392
+ function asl_is_asset_required($asset) {
393
+ if ( wd_asl()->manager->getContext() == 'backend' ) {
394
+ return true;
395
+ } else {
396
+ $assets = asl_get_unused_assets();
397
+ return !wd_in_array_r($asset, $assets);
398
+ }
399
+ }
400
+ }
401
+
402
+ if ( !function_exists("asl_get_unused_assets") ) {
403
+ function asl_get_unused_assets() {
404
+ $dependencies = array(
405
+ 'vertical', 'autocomplete',
406
+ 'settings', 'ga', 'aslsicons2'
407
+ );
408
+ $external_dependencies = array(
409
+ 'simplebar'
410
+ );
411
+ $filters_may_require_simplebar = false;
412
+ $filters_may_require_aslpsicons2 = false;
413
+
414
+ // --- Auto populate
415
+ if ( wd_asl()->o['asl_analytics']['analytics'] != 0 ) {
416
+ $dependencies = array_diff($dependencies, array('ga'));
417
+ }
418
+
419
+ $search = wd_asl()->instances->get();
420
+ if (is_array($search) && count($search)>0) {
421
+ foreach ($search as $s) {
422
+ // Calculate flags for the generated basic CSS
423
+ // --- Results type - in lite only vertical is present
424
+ $dependencies = array_diff($dependencies, array('vertical'));
425
+
426
+
427
+ // --- Autocomplete
428
+ if ( $s['data']['autocomplete'] ) {
429
+ $dependencies = array_diff($dependencies, array('autocomplete'));
430
+ }
431
+
432
+ // --- Settings visibility - we can check the option only, as settings shortcode is not present
433
+ // ..in the lite version
434
+ if ( $s['data']['show_frontend_search_settings'] ) {
435
+ $dependencies = array_diff($dependencies, array('settings'));
436
+ $filters_may_require_simplebar = true;
437
+ $filters_may_require_aslpsicons2 = true;
438
+ }
439
+
440
+ // --- Autocomplete (not used yet)
441
+ }
442
+ }
443
+
444
+ if ( $filters_may_require_aslpsicons2 ) {
445
+ $dependencies = array_diff($dependencies, array('aslsicons2'));
446
+ }
447
+
448
+ // No vertical or horizontal results results, and no filters that may trigger the scroll script
449
+ if (
450
+ $filters_may_require_simplebar ||
451
+ !in_array('vertical', $dependencies)
452
+ ) {
453
+ $external_dependencies = array_diff($external_dependencies, array('simplebar'));
454
+ }
455
+
456
+ return array(
457
+ 'internal' => $dependencies,
458
+ 'external' => $external_dependencies
459
+ );
460
+ }
461
+ }
462
+
463
  if (!function_exists("asl_generate_html_results")) {
464
  /**
465
  * Converts the results array to HTML code
includes/views/asl.shortcode.data.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if (self::$instanceCount<2): ?>
2
+ <div id="asl_hidden_data">
3
+ <svg style="position:absolute" height="0" width="0">
4
+ <filter id="aslblur">
5
+ <feGaussianBlur in="SourceGraphic" stdDeviation="4"/>
6
+ </filter>
7
+ </svg>
8
+ <svg style="position:absolute" height="0" width="0">
9
+ <filter id="no_aslblur"></filter>
10
+ </svg>
11
+ </div>
12
+ <?php endif; ?>
includes/views/asl.shortcode.php CHANGED
@@ -5,392 +5,38 @@
5
  if ( isset($style['_fo']) && !isset($style['_fo']['categoryset']) )
6
  $style['_fo']['categoryset'] = array();
7
  ?>
8
- <div id='ajaxsearchlite<?php echo self::$instanceCount; ?>' class="wpdreams_asl_container asl_w asl_m asl_m_<?php echo $real_id; ?>">
9
- <div class="probox">
10
-
11
- <?php do_action('asl_layout_before_magnifier', $id); ?>
12
-
13
- <div class='promagnifier'>
14
- <?php do_action('asl_layout_in_magnifier', $id); ?>
15
- <div class='innericon'>
16
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22" height="22" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
17
- <path d="M460.355,421.59L353.844,315.078c20.041-27.553,31.885-61.437,31.885-98.037
18
- C385.729,124.934,310.793,50,218.686,50C126.58,50,51.645,124.934,51.645,217.041c0,92.106,74.936,167.041,167.041,167.041
19
- c34.912,0,67.352-10.773,94.184-29.158L419.945,462L460.355,421.59z M100.631,217.041c0-65.096,52.959-118.056,118.055-118.056
20
- c65.098,0,118.057,52.959,118.057,118.056c0,65.096-52.959,118.056-118.057,118.056C153.59,335.097,100.631,282.137,100.631,217.041
21
- z"/>
22
- </svg>
23
- </div>
24
- </div>
25
-
26
- <?php do_action('asl_layout_after_magnifier', $id); ?>
27
-
28
- <?php do_action('asl_layout_before_settings', $id); ?>
29
-
30
- <div class='prosettings' <?php echo($settingsHidden ? "style='display:none;'" : ""); ?> data-opened=0>
31
- <?php do_action('asl_layout_in_settings', $id); ?>
32
- <div class='innericon'>
33
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22" height="22" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
34
- <polygon transform = "rotate(90 256 256)" points="142.332,104.886 197.48,50 402.5,256 197.48,462 142.332,407.113 292.727,256 "/>
35
- </svg>
36
- </div>
37
- </div>
38
-
39
- <?php do_action('asl_layout_after_settings', $id); ?>
40
-
41
- <?php do_action('asl_layout_before_input', $id); ?>
42
-
43
- <div class='proinput'>
44
- <form autocomplete="off" aria-label='Ajax search form'>
45
- <input aria-label='Search input' type='search' class='orig' name='phrase' placeholder='<?php echo asl_icl_t( "Search bar placeholder text", w_isset_def($style['defaultsearchtext'], '') ); ?>' value='<?php echo apply_filters('asl_print_search_query', get_search_query()); ?>' autocomplete="off"/>
46
- <input aria-label='Autocomplete input, do not use this' type='text' class='autocomplete' name='phrase' value='' autocomplete="off"/>
47
- <input type='submit' value="Start search" style='width:0; height: 0; visibility: hidden;'>
48
- </form>
49
- </div>
50
-
51
- <?php do_action('asl_layout_after_input', $id); ?>
52
-
53
- <?php do_action('asl_layout_before_loading', $id); ?>
54
-
55
- <div class='proloading'>
56
-
57
- <div class="asl_loader"><div class="asl_loader-inner asl_simple-circle"></div></div>
58
-
59
- <?php do_action('asl_layout_in_loading', $id); ?>
60
- </div>
61
-
62
- <?php if ($style['show_close_icon']): ?>
63
- <div class='proclose'>
64
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
65
- y="0px"
66
- width="12" height="12" viewBox="0 0 512 512" enable-background="new 0 0 512 512"
67
- xml:space="preserve">
68
- <polygon points="438.393,374.595 319.757,255.977 438.378,137.348 374.595,73.607 255.995,192.225 137.375,73.622 73.607,137.352 192.246,255.983 73.622,374.625 137.352,438.393 256.002,319.734 374.652,438.378 "/>
69
- </svg>
70
- </div>
71
- <?php endif; ?>
72
-
73
- <?php do_action('asl_layout_after_loading', $id); ?>
74
-
75
- </div>
76
- </div>
77
-
78
- <?php
79
- // Search redirection, memorize general options
80
- if ( isset($style['_fo']) ) {
81
- $_checked = array(
82
- "set_exactonly" => in_array('exact', $style['_fo']['asl_gen']) ? ' checked="checked"' : "",
83
- "set_intitle" => in_array('title', $style['_fo']['asl_gen']) ? ' checked="checked"' : "",
84
- "set_incontent" => in_array('content', $style['_fo']['asl_gen']) ? ' checked="checked"' : "",
85
- "set_inexcerpt" => in_array('excerpt', $style['_fo']['asl_gen']) ? ' checked="checked"' : ""
86
- );
87
- } else {
88
- $_checked = array(
89
- "set_exactonly" => $style['exactonly'] == 1 ? ' checked="checked"' : "",
90
- "set_intitle" => $style['searchintitle'] == 1 ? ' checked="checked"' : "",
91
- "set_incontent" => $style['searchincontent'] == 1 ? ' checked="checked"' : "",
92
- "set_inexcerpt" => $style['searchinexcerpt'] == 1 ? ' checked="checked"' : ""
93
- );
94
- }
95
-
96
- if ( function_exists('qtranxf_getLanguage') ) {
97
- $qtr_lg = qtranxf_getLanguage();
98
- } else if ( function_exists('qtrans_getLanguage') ) {
99
- $qtr_lg = qtrans_getLanguage();
100
- } else {
101
- $qtr_lg = 0;
102
- }
103
- ?>
104
-
105
- <div id='ajaxsearchlitesettings<?php echo $id; ?>' class="searchsettings wpdreams_asl_settings asl_w asl_s asl_s_<?php echo $real_id; ?>">
106
- <form name='options' autocomplete='off'>
107
-
108
- <?php do_action('asl_layout_in_form', $id); ?>
109
-
110
- <?php do_action('asl_layout_settings_before_first_item', $id); ?>
111
-
112
- <div class="asl_option_inner hiddend">
113
- <input type='hidden' name='qtranslate_lang' id='qtranslate_lang<?php echo $id; ?>'
114
- value='<?php echo $qtr_lg; ?>'/>
115
- </div>
116
-
117
- <?php if (defined('ICL_LANGUAGE_CODE')
118
- && ICL_LANGUAGE_CODE != ''
119
- && defined('ICL_SITEPRESS_VERSION')
120
- ): ?>
121
- <div class="asl_option_inner hiddend">
122
- <input type='hidden' name='wpml_lang'
123
- value='<?php echo ICL_LANGUAGE_CODE; ?>'/>
124
- </div>
125
- <?php endif; ?>
126
-
127
- <?php if ( function_exists("pll_current_language") ): ?>
128
- <div class="asl_option_inner hiddend">
129
- <input type='hidden' name='polylang_lang'
130
- value='<?php echo pll_current_language(); ?>'/>
131
- </div>
132
- <?php endif; ?>
133
-
134
- <fieldset class="asl_sett_scroll">
135
- <legend style="display: none;">Generic selectors</legend>
136
- <div class="asl_option<?php echo(($style['showexactmatches'] != 1) ? " hiddend" : ""); ?>">
137
- <div class="asl_option_inner">
138
- <input type="checkbox" value="exact" id="set_exactonly<?php echo $id; ?>"
139
- title="<?php echo asl_icl_t('Exact matches filter', $style['exactmatchestext'], true); ?>"
140
- name="asl_gen[]" <?php echo $_checked["set_exactonly"]; ?>/>
141
- <label for="set_exactonly<?php echo $id; ?>"><?php echo asl_icl_t('Exact matches filter', $style['exactmatchestext'], true); ?></label>
142
- </div>
143
- <div class="asl_option_label">
144
- <?php echo asl_icl_t('Exact matches filter', $style['exactmatchestext']); ?>
145
- </div>
146
- </div>
147
- <div class="asl_option<?php echo(($style['showsearchintitle'] != 1) ? " hiddend" : ""); ?>">
148
- <div class="asl_option_inner">
149
- <input type="checkbox" value="title" id="set_intitle<?php echo $id; ?>"
150
- title="<?php echo asl_icl_t('Search in title filter', $style['searchintitletext'], true); ?>"
151
- name="asl_gen[]" <?php echo $_checked["set_intitle"]; ?>/>
152
- <label for="set_intitle<?php echo $id; ?>"><?php echo asl_icl_t('Search in title filter', $style['searchintitletext'], true); ?></label>
153
- </div>
154
- <div class="asl_option_label">
155
- <?php echo asl_icl_t('Search in title filter', $style['searchintitletext']); ?>
156
- </div>
157
- </div>
158
- <div class="asl_option<?php echo(($style['showsearchincontent'] != 1) ? " hiddend" : ""); ?>">
159
- <div class="asl_option_inner">
160
- <input type="checkbox" value="content" id="set_incontent<?php echo $id; ?>"
161
- title="<?php echo asl_icl_t('Search in content filter', $style['searchincontenttext'], true); ?>"
162
- name="asl_gen[]" <?php echo $_checked["set_incontent"]; ?>/>
163
- <label for="set_incontent<?php echo $id; ?>"><?php echo asl_icl_t('Search in content filter', $style['searchincontenttext'], true); ?></label>
164
- </div>
165
- <div class="asl_option_label">
166
- <?php echo asl_icl_t('Search in content filter', $style['searchincontenttext']); ?>
167
- </div>
168
- </div>
169
- <div class="asl_option_inner hiddend">
170
- <input type="checkbox" value="excerpt" id="set_inexcerpt<?php echo $id; ?>"
171
- title="Search in excerpt"
172
- name="asl_gen[]" <?php echo $_checked["set_inexcerpt"]; ?>/>
173
- <label for="set_inexcerpt<?php echo $id; ?>">Search in excerpt</label>
174
- </div>
175
- </fieldset>
176
- <fieldset class="asl_sett_scroll">
177
- <?php
178
-
179
- $i = 1;
180
- if ( !isset($style['customtypes']) || !is_array($style['customtypes']) )
181
- $style['customtypes'] = array();
182
- if (!isset($style['selected-showcustomtypes']) || !is_array($style['selected-showcustomtypes']))
183
- $style['selected-showcustomtypes'] = array();
184
- $shown_types = array();
185
-
186
- foreach ($style['selected-showcustomtypes'] as $k => $v) {
187
- $selected = in_array($v[0], $style['customtypes']);
188
- $hidden = "";
189
- $shown_types[] = $v[0];
190
- ?>
191
- <div class="asl_option">
192
- <div class="asl_option_inner">
193
- <input type="checkbox" value="<?php echo $v[0]; ?>"
194
- id="<?php echo $id; ?>customset_<?php echo $id . $i; ?>"
195
- title="<?php echo asl_icl_t('Search filter for post type: ' . $v[1], $v[1], true); ?>"
196
- name="customset[]" <?php echo(($selected) ? 'checked="checked"' : ''); ?>/>
197
- <label for="<?php echo $id; ?>customset_<?php echo $id . $i; ?>"><?php echo asl_icl_t('Search filter for post type: ' . $v[1], $v[1], true); ?></label>
198
- </div>
199
- <div class="asl_option_label">
200
- <?php echo asl_icl_t('Search filter for post type: ' . $v[1], $v[1]); ?>
201
- </div>
202
- </div>
203
- <?php
204
- $i++;
205
- }
206
-
207
- $remaining_types = array_unique( array_diff($style['customtypes'], $shown_types) );
208
- foreach ($remaining_types as $k => $v) {
209
- ?>
210
- <div class="asl_option_inner hiddend">
211
- <input type="checkbox" value="<?php echo $v; ?>"
212
- id="<?php echo $id; ?>customset_<?php echo $id . $i; ?>"
213
- title="Hidden option, ignore please"
214
- name="customset[]" checked="checked"/>
215
- <label for="<?php echo $id; ?>customset_<?php echo $id . $i; ?>">Hidden</label>
216
- </div>
217
- <div class="asl_option_label hiddend"></div>
218
-
219
- <?php
220
- $i++;
221
- }
222
- ?>
223
- </fieldset>
224
- <?php
225
- /* Category and term filters */
226
- if ($style['showsearchincategories']) {
227
- ?>
228
-
229
- <fieldset>
230
- <?php if ($style['exsearchincategoriestext'] != ""): ?>
231
- <legend><?php echo asl_icl_t("Categories filter box text", $style['exsearchincategoriestext']); ?></legend>
232
- <?php endif; ?>
233
- <div class='categoryfilter asl_sett_scroll'>
234
- <?php
235
-
236
- /* Categories */
237
- if (!isset($style['selected-exsearchincategories']) || !is_array($style['selected-exsearchincategories']))
238
- $style['selected-exsearchincategories'] = array();
239
- if (!isset($style['selected-excludecategories']) || !is_array($style['selected-excludecategories']))
240
- $style['selected-excludecategories'] = array();
241
- $_all_cat = get_terms('category', array('fields'=>'ids'));
242
- $_needed_cat = array_diff($_all_cat, $style['selected-exsearchincategories']);
243
- foreach ($_needed_cat as $k => $v) {
244
- if ( isset($style['_fo']) )
245
- $selected = in_array( $v, $style['_fo']['categoryset'] );
246
- else
247
- $selected = ! in_array( $v, $style['selected-excludecategories'] );
248
- $cat = get_category($v);
249
- $val = $cat->name;
250
- $hidden = (($style['showsearchincategories']) == 0 ? " hiddend" : "");
251
- if ($style['showuncategorised'] == 0 && $v == 1) {
252
- $hidden = ' hiddend';
253
- }
254
- ?>
255
- <div class="asl_option<?php echo $hidden; ?>">
256
- <div class="asl_option_inner">
257
- <input type="checkbox" value="<?php echo $v; ?>"
258
- id="<?php echo $id; ?>categoryset_<?php echo $v; ?>"
259
- title="<?php echo asl_icl_t('Search filter for category: ' . $val, $val, true); ?>"
260
- name="categoryset[]" <?php echo(($selected) ? 'checked="checked"' : ''); ?>/>
261
- <label for="<?php echo $id; ?>categoryset_<?php echo $v; ?>"><?php echo asl_icl_t('Search filter for category: ' . $val, $val, true); ?></label>
262
- </div>
263
- <div class="asl_option_label">
264
- <?php echo asl_icl_t('Search filter for category: ' . $val, $val); ?>
265
- </div>
266
- </div>
267
- <?php
268
- }
269
- ?>
270
-
271
- </div>
272
- </fieldset>
273
- <?php
274
- }
275
- ?>
276
- </form>
277
- </div>
278
-
279
- <div id='ajaxsearchliteres<?php echo $id; ?>' class='<?php echo $style['resultstype']; ?> wpdreams_asl_results asl_w asl_r asl_r_<?php echo $real_id; ?>'>
280
-
281
- <?php do_action('asl_layout_before_results', $id); ?>
282
-
283
- <div class="results">
284
-
285
- <?php do_action('asl_layout_before_first_result', $id); ?>
286
-
287
- <div class="resdrg">
288
- </div>
289
-
290
- <?php do_action('asl_layout_after_last_result', $id); ?>
291
-
292
- </div>
293
-
294
- <?php do_action('asl_layout_after_results', $id); ?>
295
-
296
- <?php if ($style['showmoreresults'] == 1): ?>
297
- <?php do_action('asl_layout_before_showmore', $id); ?>
298
- <p class='showmore'>
299
- <a><?php echo asl_icl_t('Show more results text', $style['showmoreresultstext']); ?></a>
300
- </p>
301
- <?php do_action('asl_layout_after_showmore', $id); ?>
302
- <?php endif; ?>
303
-
304
- </div>
305
-
306
- <?php if (self::$instanceCount<2): ?>
307
- <div id="asl_hidden_data">
308
- <svg style="position:absolute" height="0" width="0">
309
- <filter id="aslblur">
310
- <feGaussianBlur in="SourceGraphic" stdDeviation="4"/>
311
- </filter>
312
- </svg>
313
- <svg style="position:absolute" height="0" width="0">
314
- <filter id="no_aslblur"></filter>
315
- </svg>
316
-
317
- </div>
318
- <?php endif; ?>
319
-
320
- <?php
321
- $ana_options = get_option('asl_analytics');
322
- $scope = "asljQuery";
323
- ?>
324
- <?php ob_start(); ?>
325
- {
326
- <?php if ( is_admin() ): ?>
327
- "homeurl": "<?php echo home_url("/"); ?>",
328
- <?php else: ?>
329
- "homeurl": "<?php echo function_exists("pll_home_url") ? PLL()->links->get_home_url( '', true ) : home_url("/"); ?>",
330
- <?php endif; ?>
331
- "resultstype": "vertical",
332
- "resultsposition": "hover",
333
- "itemscount": <?php echo ((isset($style['itemscount']) && $style['itemscount']!="")?$style['itemscount']:"10"); ?>,
334
- "imagewidth": <?php echo ((isset($style['settings-imagesettings']['width']))?$style['settings-imagesettings']['width']:"70"); ?>,
335
- "imageheight": <?php echo ((isset($style['settings-imagesettings']['height']))?$style['settings-imagesettings']['height']:"70"); ?>,
336
- "resultitemheight": "<?php echo ((isset($style['resultitemheight']) && $style['resultitemheight']!="")?$style['resultitemheight']:"70"); ?>",
337
- "showauthor": <?php echo ((isset($style['showauthor']) && $style['showauthor']!="")?$style['showauthor']:"1"); ?>,
338
- "showdate": <?php echo ((isset($style['showdate']) && $style['showdate']!="")?$style['showdate']:"1"); ?>,
339
- "showdescription": <?php echo ((isset($style['showdescription']) && $style['showdescription']!="")?$style['showdescription']:"1"); ?>,
340
- "charcount": <?php echo ((isset($style['charcount']) && $style['charcount']!="")?$style['charcount']:"0"); ?>,
341
- "defaultImage": "<?php echo w_isset_def($style['image_default'], "")==""?ASL_URL."img/default.jpg":$style['image_default']; ?>",
342
- "highlight": <?php echo $style['kw_highlight']; ?>,
343
- "highlightwholewords": <?php echo $style['kw_highlight_whole_words']; ?>,
344
- "singleHighlight": <?php echo $style['single_highlight']; ?>,
345
- "scrollToResults": <?php echo w_isset_def($style['scroll_to_results'], 1); ?>,
346
- "resultareaclickable": <?php echo ((isset($style['resultareaclickable']) && $style['resultareaclickable']!="")?$style['resultareaclickable']:0); ?>,
347
- "autocomplete": {
348
- "enabled" : <?php echo w_isset_def($style['autocomplete'], 1); ?>,
349
- "lang" : "<?php echo w_isset_def($style['kw_google_lang'], 'en'); ?>"
350
- },
351
- "mobile": {
352
- "menu_selector": "<?php echo $style['mob_auto_focus_menu_selector']; ?>"
353
- },
354
- "triggerontype": <?php echo ((isset($style['triggerontype']) && $style['triggerontype']!="")?$style['triggerontype']:1); ?>,
355
- "trigger_on_click": <?php echo $style['redirect_click_to'] == 'ajax_search' || $style['redirect_click_to'] == 'first_result' ? 1 : 0; ?>,
356
- "trigger_on_facet_change": <?php echo w_isset_def($style['trigger_on_facet_change'], 0); ?>,
357
- "settingsimagepos": "<?php echo w_isset_def($style['theme'], 'classic-blue')=='classic-blue'?'left':'right'; ?>",
358
- "hresultanimation": "fx-none",
359
- "vresultanimation": "fx-none",
360
- "hresulthidedesc": "<?php echo ((isset($style['hhidedesc']) && $style['hhidedesc']!="")?$style['hhidedesc']:1); ?>",
361
- "prescontainerheight": "<?php echo ((isset($style['prescontainerheight']) && $style['prescontainerheight']!="")?$style['prescontainerheight']:"400px"); ?>",
362
- "pshowsubtitle": "<?php echo ((isset($style['pshowsubtitle']) && $style['pshowsubtitle']!="")?$style['pshowsubtitle']:0); ?>",
363
- "pshowdesc": "<?php echo ((isset($style['pshowdesc']) && $style['pshowdesc']!="")?$style['pshowdesc']:1); ?>",
364
- "closeOnDocClick": <?php echo w_isset_def($style['close_on_document_click'], 1); ?>,
365
- "iifNoImage": "<?php echo w_isset_def($style['i_ifnoimage'], 'description'); ?>",
366
- "iiRows": <?php echo w_isset_def($style['i_rows'], 2); ?>,
367
- "iitemsWidth": <?php echo w_isset_def($style['i_item_width'], 200); ?>,
368
- "iitemsHeight": <?php echo w_isset_def($style['i_item_height'], 200); ?>,
369
- "iishowOverlay": <?php echo w_isset_def($style['i_overlay'], 1); ?>,
370
- "iiblurOverlay": <?php echo w_isset_def($style['i_overlay_blur'], 1); ?>,
371
- "iihideContent": <?php echo w_isset_def($style['i_hide_content'], 1); ?>,
372
- "iianimation": "<?php echo w_isset_def($style['i_animation'], 1); ?>",
373
- "analytics": "<?php echo w_isset_def($ana_options['analytics'], 0); ?>",
374
- "analyticsString": "<?php echo w_isset_def($ana_options['analytics_string'], ""); ?>",
375
- "redirectonclick": <?php echo $style['redirect_click_to'] != 'ajax_search' && $style['redirect_click_to'] != 'nothing' ? 1 : 0; ?>,
376
- "redirectClickTo": "<?php echo $style['redirect_click_to']; ?>",
377
- "redirectClickLoc": "<?php echo $style['click_action_location']; ?>",
378
- "redirect_on_enter": <?php echo $style['redirect_enter_to'] != 'ajax_search' && $style['redirect_enter_to'] != 'nothing' ? 1 : 0; ?>,
379
- "redirectEnterTo": "<?php echo $style['redirect_enter_to']; ?>",
380
- "redirectEnterLoc": "<?php echo $style['return_action_location']; ?>",
381
- "redirect_url": "<?php echo apply_filters( "asl_redirect_url", $style['custom_redirect_url']); ?>",
382
- "overridewpdefault": <?php echo $style['override_default_results']; ?>,
383
- "override_method": "<?php echo $style['override_method']; ?>"
384
- }
385
- <?php $_asl_script_out = ob_get_clean(); ?>
386
- <?php if (wd_asl()->o['asl_compatibility']['js_init'] == "blocking"): ?>
387
- <script type="text/javascript">
388
- /* <![CDATA[ */
389
- if ( typeof ASL_INSTANCES == "undefined" )
390
- var ASL_INSTANCES = {};
391
- ASL_INSTANCES['<?php echo $id; ?>'] = <?php echo $_asl_script_out; ?>;
392
- /* ]]> */
393
- </script>
394
- <?php else: ?>
395
- <div class="asl_init_data wpdreams_asl_data_ct" style="display:none !important;" id="asl_init_id_<?php echo $id; ?>" data-asldata="<?php echo base64_encode($_asl_script_out); ?>"></div>
396
- <?php endif; ?>
5
  if ( isset($style['_fo']) && !isset($style['_fo']['categoryset']) )
6
  $style['_fo']['categoryset'] = array();
7
  ?>
8
+ <div class="asl_w_container asl_w_container_<?php echo $real_id; ?>">
9
+ <div id='ajaxsearchlite<?php echo self::$instanceCount; ?>'
10
+ data-id="<?php echo $real_id; ?>"
11
+ data-instance="1"
12
+ class="asl_w asl_m asl_m_<?php echo $real_id; ?>">
13
+ <?php
14
+ /******************** PROBOX INCLUDE ********************/
15
+ include('asl.shortcode.probox.php');
16
+ ?>
17
+ </div>
18
+ <div class='asl_data_container' style="display:none !important;">
19
+ <?php
20
+ /******************** SCRIPT INCLUDE (hidden) ********************/
21
+ include('asl.shortcode.script.php');
22
+
23
+ /******************** DATA INCLUDE (hidden) ********************/
24
+ include('asl.shortcode.data.php');
25
+ ?>
26
+ </div>
27
+
28
+ <?php
29
+
30
+ /******************** RESULTS INCLUDE ********************/
31
+ include('asl.shortcode.results.php');
32
+ ?>
33
+
34
+ <div id='__original__ajaxsearchlitesettings<?php echo $id; ?>'
35
+ data-id="<?php echo $real_id; ?>"
36
+ class="searchsettings wpdreams_asl_settings asl_w asl_s asl_s_<?php echo $real_id; ?>">
37
+ <?php
38
+ /******************* SETTINGS INCLUDE *******************/
39
+ include('asl.shortcode.settings.php');
40
+ ?>
41
+ </div>
42
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/views/asl.shortcode.probox.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="probox">
2
+
3
+ <?php do_action('asl_layout_before_magnifier', $id); ?>
4
+
5
+ <div class='promagnifier'>
6
+ <?php do_action('asl_layout_in_magnifier', $id); ?>
7
+ <div class='innericon'>
8
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22" height="22" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
9
+ <path d="M460.355,421.59L353.844,315.078c20.041-27.553,31.885-61.437,31.885-98.037
10
+ C385.729,124.934,310.793,50,218.686,50C126.58,50,51.645,124.934,51.645,217.041c0,92.106,74.936,167.041,167.041,167.041
11
+ c34.912,0,67.352-10.773,94.184-29.158L419.945,462L460.355,421.59z M100.631,217.041c0-65.096,52.959-118.056,118.055-118.056
12
+ c65.098,0,118.057,52.959,118.057,118.056c0,65.096-52.959,118.056-118.057,118.056C153.59,335.097,100.631,282.137,100.631,217.041
13
+ z"/>
14
+ </svg>
15
+ </div>
16
+ </div>
17
+
18
+ <?php do_action('asl_layout_after_magnifier', $id); ?>
19
+
20
+ <?php do_action('asl_layout_before_settings', $id); ?>
21
+
22
+ <div class='prosettings' <?php echo($settingsHidden ? "style='display:none;'" : ""); ?> data-opened=0>
23
+ <?php do_action('asl_layout_in_settings', $id); ?>
24
+ <div class='innericon'>
25
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22" height="22" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
26
+ <polygon transform = "rotate(90 256 256)" points="142.332,104.886 197.48,50 402.5,256 197.48,462 142.332,407.113 292.727,256 "/>
27
+ </svg>
28
+ </div>
29
+ </div>
30
+
31
+ <?php do_action('asl_layout_after_settings', $id); ?>
32
+
33
+ <?php do_action('asl_layout_before_input', $id); ?>
34
+
35
+ <div class='proinput'>
36
+ <form autocomplete="off" aria-label='Ajax search form'>
37
+ <input aria-label='Search input' type='search' class='orig' name='phrase' placeholder='<?php echo asl_icl_t( "Search bar placeholder text", w_isset_def($style['defaultsearchtext'], '') ); ?>' value='<?php echo apply_filters('asl_print_search_query', get_search_query()); ?>' autocomplete="off"/>
38
+ <input aria-label='Autocomplete input, do not use this' type='text' class='autocomplete' name='phrase' value='' autocomplete="off"/>
39
+ <input type='submit' value="Start search" style='width:0; height: 0; visibility: hidden;'>
40
+ </form>
41
+ </div>
42
+
43
+ <?php do_action('asl_layout_after_input', $id); ?>
44
+
45
+ <?php do_action('asl_layout_before_loading', $id); ?>
46
+
47
+ <div class='proloading'>
48
+
49
+ <div class="asl_loader"><div class="asl_loader-inner asl_simple-circle"></div></div>
50
+
51
+ <?php do_action('asl_layout_in_loading', $id); ?>
52
+ </div>
53
+
54
+ <?php if ($style['show_close_icon']): ?>
55
+ <div class='proclose'>
56
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
57
+ y="0px"
58
+ width="12" height="12" viewBox="0 0 512 512" enable-background="new 0 0 512 512"
59
+ xml:space="preserve">
60
+ <polygon points="438.393,374.595 319.757,255.977 438.378,137.348 374.595,73.607 255.995,192.225 137.375,73.622 73.607,137.352 192.246,255.983 73.622,374.625 137.352,438.393 256.002,319.734 374.652,438.378 "/>
61
+ </svg>
62
+ </div>
63
+ <?php endif; ?>
64
+
65
+ <?php do_action('asl_layout_after_loading', $id); ?>
66
+
67
+ </div>
includes/views/asl.shortcode.results.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id='ajaxsearchliteres<?php echo $id; ?>' class='<?php echo $style['resultstype']; ?> wpdreams_asl_results asl_w asl_r asl_r_<?php echo $real_id; ?>'>
2
+
3
+ <?php do_action('asl_layout_before_results', $id); ?>
4
+
5
+ <div class="results">
6
+
7
+ <?php do_action('asl_layout_before_first_result', $id); ?>
8
+
9
+ <div class="resdrg">
10
+ </div>
11
+
12
+ <?php do_action('asl_layout_after_last_result', $id); ?>
13
+
14
+ </div>
15
+
16
+ <?php do_action('asl_layout_after_results', $id); ?>
17
+
18
+ <?php if ($style['showmoreresults'] == 1): ?>
19
+ <?php do_action('asl_layout_before_showmore', $id); ?>
20
+ <p class='showmore'>
21
+ <a><?php echo asl_icl_t('Show more results text', $style['showmoreresultstext']); ?></a>
22
+ </p>
23
+ <?php do_action('asl_layout_after_showmore', $id); ?>
24
+ <?php endif; ?>
25
+
26
+ </div>
includes/views/asl.shortcode.script.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $ana_options = get_option('asl_analytics');
3
+ $scope = "asljQuery";
4
+ ?>
5
+ <?php ob_start(); ?>
6
+ {
7
+ <?php if ( is_admin() ): ?>
8
+ "homeurl": "<?php echo home_url("/"); ?>",
9
+ <?php else: ?>
10
+ "homeurl": "<?php echo function_exists("pll_home_url") ? PLL()->links->get_home_url( '', true ) : home_url("/"); ?>",
11
+ <?php endif; ?>
12
+ "resultstype": "vertical",
13
+ "resultsposition": "hover",
14
+ "itemscount": <?php echo ((isset($style['itemscount']) && $style['itemscount']!="")?$style['itemscount']:"10"); ?>,
15
+ "charcount": <?php echo ((isset($style['charcount']) && $style['charcount']!="")?$style['charcount']:"0"); ?>,
16
+ "highlight": <?php echo $style['kw_highlight']; ?>,
17
+ "highlightwholewords": <?php echo $style['kw_highlight_whole_words']; ?>,
18
+ "singleHighlight": <?php echo $style['single_highlight']; ?>,
19
+ "scrollToResults": {
20
+ "enabled": <?php echo $style['scroll_to_results']; ?>,
21
+ "offset": 0
22
+ },
23
+ "resultareaclickable": <?php echo ((isset($style['resultareaclickable']) && $style['resultareaclickable']!="")?$style['resultareaclickable']:0); ?>,
24
+ "autocomplete": {
25
+ "enabled" : <?php echo w_isset_def($style['autocomplete'], 1); ?>,
26
+ "lang" : "<?php echo w_isset_def($style['kw_google_lang'], 'en'); ?>",
27
+ "trigger_charcount" : 0
28
+ },
29
+ "mobile": {
30
+ "menu_selector": "<?php echo $style['mob_auto_focus_menu_selector']; ?>"
31
+ },
32
+ "trigger": {
33
+ "click": "<?php echo $style['click_action']; ?>",
34
+ "click_location": "<?php echo $style['click_action_location']; ?>",
35
+ "return": "<?php echo $style['return_action']; ?>",
36
+ "return_location": "<?php echo $style['return_action_location']; ?>",
37
+ "facet": <?php echo $style['trigger_on_facet_change']; ?>,
38
+ "type": <?php echo $style['triggerontype'] == 1 ? 1 : 0; ?>,
39
+ "redirect_url": "<?php echo apply_filters( "asl_redirect_url", $style['custom_redirect_url'], $real_id ); ?>",
40
+ "delay": 300
41
+ },
42
+ "animations": {
43
+ "pc": {
44
+ "settings": {
45
+ "anim" : "fadedrop",
46
+ "dur" : 300
47
+ },
48
+ "results" : {
49
+ "anim" : "fadedrop",
50
+ "dur" : 300
51
+ },
52
+ "items" : "voidanim"
53
+ },
54
+ "mob": {
55
+ "settings": {
56
+ "anim" : "fadedrop",
57
+ "dur" : 300
58
+ },
59
+ "results" : {
60
+ "anim" : "fadedrop",
61
+ "dur" : 300
62
+ },
63
+ "items" : "voidanim"
64
+ }
65
+ },
66
+ "resPage": {
67
+ "useAjax": <?php echo is_search() && $style['res_live_search'] ? 1 : 0; ?>,
68
+ "selector": "<?php echo $style['res_live_selector']; ?>",
69
+ "trigger_type": <?php echo $style['res_live_trigger_type'] ?>,
70
+ "trigger_facet": <?php echo $style['res_live_trigger_facet'] ?>,
71
+ "trigger_magnifier": <?php echo $style['res_live_trigger_click'] ?>,
72
+ "trigger_return": <?php echo $style['res_live_trigger_return'] ?>
73
+ },
74
+ "results": {
75
+ "width": "<?php echo $style['results_width']; ?>",
76
+ "width_tablet": "<?php echo $style['results_width_tablet']; ?>",
77
+ "width_phone": "<?php echo $style['results_width_phone']; ?>"
78
+ },
79
+ "settingsimagepos": "<?php echo w_isset_def($style['theme'], 'classic-blue')=='classic-blue'?'left':'right'; ?>",
80
+ "closeOnDocClick": <?php echo w_isset_def($style['close_on_document_click'], 1); ?>,
81
+ "overridewpdefault": <?php echo $style['override_default_results']; ?>,
82
+ "override_method": "<?php echo $style['override_method']; ?>"
83
+ }
84
+ <?php $_asl_script_out = ob_get_clean(); ?>
85
+ <div class="asl_init_data wpdreams_asl_data_ct" style="display:none !important;" id="asl_init_id_<?php echo $id; ?>" data-asldata="<?php echo base64_encode($_asl_script_out); ?>"></div>
includes/views/asl.shortcode.settings.php ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Search redirection, memorize general options
3
+ if ( isset($style['_fo']) ) {
4
+ $_checked = array(
5
+ "set_exactonly" => in_array('exact', $style['_fo']['asl_gen']) ? ' checked="checked"' : "",
6
+ "set_intitle" => in_array('title', $style['_fo']['asl_gen']) ? ' checked="checked"' : "",
7
+ "set_incontent" => in_array('content', $style['_fo']['asl_gen']) ? ' checked="checked"' : "",
8
+ "set_inexcerpt" => in_array('excerpt', $style['_fo']['asl_gen']) ? ' checked="checked"' : ""
9
+ );
10
+ } else {
11
+ $_checked = array(
12
+ "set_exactonly" => $style['exactonly'] == 1 ? ' checked="checked"' : "",
13
+ "set_intitle" => $style['searchintitle'] == 1 ? ' checked="checked"' : "",
14
+ "set_incontent" => $style['searchincontent'] == 1 ? ' checked="checked"' : "",
15
+ "set_inexcerpt" => $style['searchinexcerpt'] == 1 ? ' checked="checked"' : ""
16
+ );
17
+ }
18
+
19
+ if ( function_exists('qtranxf_getLanguage') ) {
20
+ $qtr_lg = qtranxf_getLanguage();
21
+ } else if ( function_exists('qtrans_getLanguage') ) {
22
+ $qtr_lg = qtrans_getLanguage();
23
+ } else {
24
+ $qtr_lg = 0;
25
+ }
26
+ ?>
27
+ <form name='options' autocomplete='off'>
28
+
29
+ <?php do_action('asl_layout_in_form', $id); ?>
30
+
31
+ <?php do_action('asl_layout_settings_before_first_item', $id); ?>
32
+
33
+ <input type="hidden" name="filters_changed" style="display:none;" value="0">
34
+ <input type="hidden" name="filters_initial" style="display:none;" value="1">
35
+
36
+ <div class="asl_option_inner hiddend">
37
+ <input type='hidden' name='qtranslate_lang' id='qtranslate_lang<?php echo $id; ?>'
38
+ value='<?php echo $qtr_lg; ?>'/>
39
+ </div>
40
+
41
+ <?php if (defined('ICL_LANGUAGE_CODE')
42
+ && ICL_LANGUAGE_CODE != ''
43
+ && defined('ICL_SITEPRESS_VERSION')
44
+ ): ?>
45
+ <div class="asl_option_inner hiddend">
46
+ <input type='hidden' name='wpml_lang'
47
+ value='<?php echo ICL_LANGUAGE_CODE; ?>'/>
48
+ </div>
49
+ <?php endif; ?>
50
+
51
+ <?php if ( function_exists("pll_current_language") ): ?>
52
+ <div class="asl_option_inner hiddend">
53
+ <input type='hidden' name='polylang_lang'
54
+ value='<?php echo pll_current_language(); ?>'/>
55
+ </div>
56
+ <?php endif; ?>
57
+
58
+ <fieldset class="asl_sett_scroll">
59
+ <legend style="display: none;">Generic selectors</legend>
60
+ <div class="asl_option<?php echo(($style['showexactmatches'] != 1) ? " hiddend" : ""); ?>">
61
+ <div class="asl_option_inner">
62
+ <input type="checkbox" value="exact" id="set_exactonly<?php echo $id; ?>"
63
+ title="<?php echo asl_icl_t('Exact matches filter', $style['exactmatchestext'], true); ?>"
64
+ name="asl_gen[]" <?php echo $_checked["set_exactonly"]; ?>/>
65
+ <label for="set_exactonly<?php echo $id; ?>"><?php echo asl_icl_t('Exact matches filter', $style['exactmatchestext'], true); ?></label>
66
+ </div>
67
+ <div class="asl_option_label">
68
+ <?php echo asl_icl_t('Exact matches filter', $style['exactmatchestext']); ?>
69
+ </div>
70
+ </div>
71
+ <div class="asl_option<?php echo(($style['showsearchintitle'] != 1) ? " hiddend" : ""); ?>">
72
+ <div class="asl_option_inner">
73
+ <input type="checkbox" value="title" id="set_intitle<?php echo $id; ?>"
74
+ title="<?php echo asl_icl_t('Search in title filter', $style['searchintitletext'], true); ?>"
75
+ name="asl_gen[]" <?php echo $_checked["set_intitle"]; ?>/>
76
+ <label for="set_intitle<?php echo $id; ?>"><?php echo asl_icl_t('Search in title filter', $style['searchintitletext'], true); ?></label>
77
+ </div>
78
+ <div class="asl_option_label">
79
+ <?php echo asl_icl_t('Search in title filter', $style['searchintitletext']); ?>
80
+ </div>
81
+ </div>
82
+ <div class="asl_option<?php echo(($style['showsearchincontent'] != 1) ? " hiddend" : ""); ?>">
83
+ <div class="asl_option_inner">
84
+ <input type="checkbox" value="content" id="set_incontent<?php echo $id; ?>"
85
+ title="<?php echo asl_icl_t('Search in content filter', $style['searchincontenttext'], true); ?>"
86
+ name="asl_gen[]" <?php echo $_checked["set_incontent"]; ?>/>
87
+ <label for="set_incontent<?php echo $id; ?>"><?php echo asl_icl_t('Search in content filter', $style['searchincontenttext'], true); ?></label>
88
+ </div>
89
+ <div class="asl_option_label">
90
+ <?php echo asl_icl_t('Search in content filter', $style['searchincontenttext']); ?>
91
+ </div>
92
+ </div>
93
+ <div class="asl_option_inner hiddend">
94
+ <input type="checkbox" value="excerpt" id="set_inexcerpt<?php echo $id; ?>"
95
+ title="Search in excerpt"
96
+ name="asl_gen[]" <?php echo $_checked["set_inexcerpt"]; ?>/>
97
+ <label for="set_inexcerpt<?php echo $id; ?>">Search in excerpt</label>
98
+ </div>
99
+ </fieldset>
100
+ <fieldset class="asl_sett_scroll">
101
+ <legend style="display: none;">Post Type Selectors</legend>
102
+ <?php
103
+
104
+ $i = 1;
105
+ if ( !isset($style['customtypes']) || !is_array($style['customtypes']) )
106
+ $style['customtypes'] = array();
107
+ if (!isset($style['selected-showcustomtypes']) || !is_array($style['selected-showcustomtypes']))
108
+ $style['selected-showcustomtypes'] = array();
109
+ $shown_types = array();
110
+
111
+ foreach ($style['selected-showcustomtypes'] as $k => $v) {
112
+ $selected = in_array($v[0], $style['customtypes']);
113
+ $hidden = "";
114
+ $shown_types[] = $v[0];
115
+ ?>
116
+ <div class="asl_option">
117
+ <div class="asl_option_inner">
118
+ <input type="checkbox" value="<?php echo $v[0]; ?>"
119
+ id="<?php echo $id; ?>customset_<?php echo $id . $i; ?>"
120
+ title="<?php echo asl_icl_t('Search filter for post type: ' . $v[1], $v[1], true); ?>"
121
+ name="customset[]" <?php echo(($selected) ? 'checked="checked"' : ''); ?>/>
122
+ <label for="<?php echo $id; ?>customset_<?php echo $id . $i; ?>"><?php echo asl_icl_t('Search filter for post type: ' . $v[1], $v[1], true); ?></label>
123
+ </div>
124
+ <div class="asl_option_label">
125
+ <?php echo asl_icl_t('Search filter for post type: ' . $v[1], $v[1]); ?>
126
+ </div>
127
+ </div>
128
+ <?php
129
+ $i++;
130
+ }
131
+
132
+ $remaining_types = array_unique( array_diff($style['customtypes'], $shown_types) );
133
+ foreach ($remaining_types as $k => $v) {
134
+ ?>
135
+ <div class="asl_option_inner hiddend">
136
+ <input type="checkbox" value="<?php echo $v; ?>"
137
+ id="<?php echo $id; ?>customset_<?php echo $id . $i; ?>"
138
+ title="Hidden option, ignore please"
139
+ name="customset[]" checked="checked"/>
140
+ <label for="<?php echo $id; ?>customset_<?php echo $id . $i; ?>">Hidden</label>
141
+ </div>
142
+ <div class="asl_option_label hiddend"></div>
143
+
144
+ <?php
145
+ $i++;
146
+ }
147
+ ?>
148
+ </fieldset>
149
+ <?php
150
+ /* Category and term filters */
151
+ if ($style['showsearchincategories']) {
152
+ ?>
153
+
154
+ <fieldset>
155
+ <?php if ($style['exsearchincategoriestext'] != ""): ?>
156
+ <legend><?php echo asl_icl_t("Categories filter box text", $style['exsearchincategoriestext']); ?></legend>
157
+ <?php endif; ?>
158
+ <div class='categoryfilter asl_sett_scroll'>
159
+ <?php
160
+
161
+ /* Categories */
162
+ if (!isset($style['selected-exsearchincategories']) || !is_array($style['selected-exsearchincategories']))
163
+ $style['selected-exsearchincategories'] = array();
164
+ if (!isset($style['selected-excludecategories']) || !is_array($style['selected-excludecategories']))
165
+ $style['selected-excludecategories'] = array();
166
+ $_all_cat = get_terms('category', array('fields'=>'ids'));
167
+ $_needed_cat = array_diff($_all_cat, $style['selected-exsearchincategories']);
168
+ foreach ($_needed_cat as $k => $v) {
169
+ if ( isset($style['_fo']) )
170
+ $selected = in_array( $v, $style['_fo']['categoryset'] );
171
+ else
172
+ $selected = ! in_array( $v, $style['selected-excludecategories'] );
173
+ $cat = get_category($v);
174
+ $val = $cat->name;
175
+ $hidden = (($style['showsearchincategories']) == 0 ? " hiddend" : "");
176
+ if ($style['showuncategorised'] == 0 && $v == 1) {
177
+ $hidden = ' hiddend';
178
+ }
179
+ ?>
180
+ <div class="asl_option<?php echo $hidden; ?>">
181
+ <div class="asl_option_inner">
182
+ <input type="checkbox" value="<?php echo $v; ?>"
183
+ id="<?php echo $id; ?>categoryset_<?php echo $v; ?>"
184
+ title="<?php echo asl_icl_t('Search filter for category: ' . $val, $val, true); ?>"
185
+ name="categoryset[]" <?php echo(($selected) ? 'checked="checked"' : ''); ?>/>
186
+ <label for="<?php echo $id; ?>categoryset_<?php echo $v; ?>"><?php echo asl_icl_t('Search filter for category: ' . $val, $val, true); ?></label>
187
+ </div>
188
+ <div class="asl_option_label">
189
+ <?php echo asl_icl_t('Search filter for category: ' . $val, $val); ?>
190
+ </div>
191
+ </div>
192
+ <?php
193
+ }
194
+ ?>
195
+
196
+ </div>
197
+ </fieldset>
198
+ <?php
199
+ }
200
+ ?>
201
+ </form>
js/legacy/min-scoped/jquery.ajaxsearchlite.min.js ADDED
@@ -0,0 +1,5365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=lb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=mb(b);function pb(){}pb.prototype=d.filters=d.pseudos,d.setFilters=new pb,g=fb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fb.error(a):z(a,i).slice(0)};function qb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;
3
+ if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function ab(){return!0}function bb(){return!1}function cb(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cb()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===cb()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ab:bb):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:bb,isPropagationStopped:bb,isImmediatePropagationStopped:bb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ab,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ab,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ab,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=bb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=bb),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function db(a){var b=eb.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var eb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fb=/ jQuery\d+="(?:null|\d+)"/g,gb=new RegExp("<(?:"+eb+")[\\s/>]","i"),hb=/^\s+/,ib=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,jb=/<([\w:]+)/,kb=/<tbody/i,lb=/<|&#?\w+;/,mb=/<(?:script|style|link)/i,nb=/checked\s*(?:[^=]|=\s*.checked.)/i,ob=/^$|\/(?:java|ecma)script/i,pb=/^true\/(.*)/,qb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,rb={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sb=db(y),tb=sb.appendChild(y.createElement("div"));rb.optgroup=rb.option,rb.tbody=rb.tfoot=rb.colgroup=rb.caption=rb.thead,rb.th=rb.td;function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ub(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function vb(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wb(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xb(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Ab(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xb(b).text=a.text,yb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!gb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(tb.innerHTML=a.outerHTML,tb.removeChild(f=tb.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ub(f),h=ub(a),g=0;null!=(e=h[g]);++g)d[g]&&Bb(e,d[g]);if(b)if(c)for(h=h||ub(a),d=d||ub(f),g=0;null!=(e=h[g]);g++)Ab(e,d[g]);else Ab(a,f);return d=ub(f,"script"),d.length>0&&zb(d,!i&&ub(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=db(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(lb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(jb.exec(f)||["",""])[1].toLowerCase(),l=rb[i]||rb._default,h.innerHTML=l[1]+f.replace(ib,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&hb.test(f)&&p.push(b.createTextNode(hb.exec(f)[0])),!k.tbody){f="table"!==i||kb.test(f)?"<table>"!==l[1]||kb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ub(p,"input"),vb),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ub(o.appendChild(f),"script"),g&&zb(h),c)){e=0;while(f=h[e++])ob.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ub(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&zb(ub(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ub(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fb,""):void 0;if(!("string"!=typeof a||mb.test(a)||!k.htmlSerialize&&gb.test(a)||!k.leadingWhitespace&&hb.test(a)||rb[(jb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ib,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ub(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ub(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&nb.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ub(i,"script"),xb),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ub(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,yb),j=0;f>j;j++)d=g[j],ob.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qb,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Cb,Db={};function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),"none"!==c&&c||(Cb=(Cb||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Cb[0].contentWindow||Cb[0].contentDocument).document,b.write(),b.close(),c=Eb(a,b),Cb.detach()),Db[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Gb=/^margin/,Hb=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ib,Jb,Kb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ib=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Jb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ib(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Hb.test(g)&&Gb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ib=function(a){return a.currentStyle},Jb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ib(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Hb.test(g)&&!Kb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Lb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Mb=/alpha\([^)]*\)/i,Nb=/opacity\s*=\s*([^)]*)/,Ob=/^(none|table(?!-c[ea]).+)/,Pb=new RegExp("^("+S+")(.*)$","i"),Qb=new RegExp("^([+-])=("+S+")","i"),Rb={position:"absolute",visibility:"hidden",display:"block"},Sb={letterSpacing:"0",fontWeight:"400"},Tb=["Webkit","O","Moz","ms"];function Ub(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Tb.length;while(e--)if(b=Tb[e]+c,b in a)return b;return d}function Vb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fb(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wb(a,b,c){var d=Pb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Yb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ib(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Jb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Hb.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xb(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Jb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ub(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ub(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Jb(a,b,d)),"normal"===f&&b in Sb&&(f=Sb[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Ob.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Rb,function(){return Yb(a,b,d)}):Yb(a,b,d):void 0},set:function(a,c,d){var e=d&&Ib(a);return Wb(a,c,d?Xb(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Nb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Mb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Mb.test(f)?f.replace(Mb,e):f+" "+e)}}),m.cssHooks.marginRight=Lb(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Jb,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Gb.test(a)||(m.cssHooks[a+b].set=Wb)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ib(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Vb(this,!0)},hide:function(){return Vb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Zb(a,b,c,d,e){return new Zb.prototype.init(a,b,c,d,e)}m.Tween=Zb,Zb.prototype={constructor:Zb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")
4
+ },cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this):Zb.propHooks._default.get(this)},run:function(a){var b,c=Zb.propHooks[this.prop];return this.pos=b=this.options.duration?m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Zb.propHooks._default.set(this),this}},Zb.prototype.init.prototype=Zb.prototype,Zb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Zb.propHooks.scrollTop=Zb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Zb.prototype.init,m.fx.step={};var $b,_b,ac=/^(?:toggle|show|hide)$/,bc=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cc=/queueHooks$/,dc=[ic],ec={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bc.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bc.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fc(){return setTimeout(function(){$b=void 0}),$b=m.now()}function gc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hc(a,b,c){for(var d,e=(ec[b]||[]).concat(ec["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ic(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fb(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fb(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ac.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fb(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hc(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jc(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kc(a,b,c){var d,e,f=0,g=dc.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$b||fc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$b||fc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jc(k,j.opts.specialEasing);g>f;f++)if(d=dc[f].call(j,a,k,j.opts))return d;return m.map(k,hc,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kc,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],ec[c]=ec[c]||[],ec[c].unshift(b)},prefilter:function(a,b){b?dc.unshift(a):dc.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kc(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gc(b,!0),a,d,e)}}),m.each({slideDown:gc("show"),slideUp:gc("hide"),slideToggle:gc("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($b=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$b=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_b||(_b=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_b),_b=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lc=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lc,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mc,nc,oc=m.expr.attrHandle,pc=/^(?:checked|selected)$/i,qc=k.getSetAttribute,rc=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nc:mc)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rc&&qc||!pc.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qc?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nc={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rc&&qc||!pc.test(c)?a.setAttribute(!qc&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=oc[b]||m.find.attr;oc[b]=rc&&qc||!pc.test(b)?function(a,b,d){var e,f;return d||(f=oc[b],oc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,oc[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rc&&qc||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mc&&mc.set(a,b,c)}}),qc||(mc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},oc.id=oc.name=oc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mc.set},m.attrHooks.contenteditable={set:function(a,b,c){mc.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sc=/^(?:input|select|textarea|button|object)$/i,tc=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sc.test(a.nodeName)||tc.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var uc=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(uc," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(uc," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(uc," ").indexOf(b)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vc=m.now(),wc=/\?/,xc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yc,zc,Ac=/#.*$/,Bc=/([?&])_=[^&]*/,Cc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Dc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ec=/^(?:GET|HEAD)$/,Fc=/^\/\//,Gc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hc={},Ic={},Jc="*/".concat("*");try{zc=location.href}catch(Kc){zc=y.createElement("a"),zc.href="",zc=zc.href}yc=Gc.exec(zc.toLowerCase())||[];function Lc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mc(a,b,c,d){var e={},f=a===Ic;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nc(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Oc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zc,type:"GET",isLocal:Dc.test(yc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nc(Nc(a,m.ajaxSettings),b):Nc(m.ajaxSettings,a)},ajaxPrefilter:Lc(Hc),ajaxTransport:Lc(Ic),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zc)+"").replace(Ac,"").replace(Fc,yc[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yc[1]&&c[2]===yc[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yc[3]||("http:"===yc[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mc(Hc,k,b,v),2===t)return v;h=k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Ec.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wc.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bc.test(e)?e.replace(Bc,"$1_="+vc++):e+(wc.test(e)?"&":"?")+"_="+vc++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jc+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mc(Ic,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Oc(k,v,c)),u=Pc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qc=/%20/g,Rc=/\[\]$/,Sc=/\r?\n/g,Tc=/^(?:submit|button|image|reset|file)$/i,Uc=/^(?:input|select|textarea|keygen)/i;function Vc(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rc.test(a)?d(a,e):Vc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vc(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vc(c,a[c],b,e);return d.join("&").replace(Qc,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Uc.test(this.nodeName)&&!Tc.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sc,"\r\n")}}):{name:b.name,value:c.replace(Sc,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zc()||$c()}:Zc;var Wc=0,Xc={},Yc=m.ajaxSettings.xhr();a.ActiveXObject&&m(a).on("unload",function(){for(var a in Xc)Xc[a](void 0,!0)}),k.cors=!!Yc&&"withCredentials"in Yc,Yc=k.ajax=!!Yc,Yc&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xc[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zc(){try{return new a.XMLHttpRequest}catch(b){}}function $c(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _c=[],ad=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_c.pop()||m.expando+"_"+vc++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ad.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ad.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ad,"$1"+e):b.jsonp!==!1&&(b.url+=(wc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_c.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bd=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bd)return bd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentElement;function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dd(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cd;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cd})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=Lb(k.pixelPosition,function(a,c){return c?(c=Jb(a,b),Hb.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("asljQuery",[],function(){return m});var ed=a.jQuery,fd=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fd),b&&a.jQuery===m&&(a.asljQuery=ed),m},typeof b===K&&(a.asljQuery=a.$=m),m});(function(jQuery, $, window){
5
+ /*
6
+ * jQuery Highlight plugin
7
+ *
8
+ * Based on highlight v3 by Johann Burkard
9
+ * http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html
10
+ * Copyright (c) 2009 Bartek Szopka
11
+ *
12
+ * Licensed under MIT license.
13
+ *
14
+ */
15
+ ;if ( typeof jQuery != 'undefined' ) {
16
+ jQuery.extend({
17
+ highlight: function (node, re, nodeName, className, excludeParents) {
18
+ excludeParents = excludeParents == '' ? '.exhghttt' : excludeParents;
19
+ if (node.nodeType === 3) {
20
+ var normalized = node.data.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
21
+ var match = normalized.match(re);
22
+ if (match) {
23
+ var highlight = document.createElement(nodeName || 'span');
24
+ highlight.className = className || 'highlight';
25
+ if (/\.|,|\s/.test(match[0].charAt(0)))
26
+ var index = match.index + 1;
27
+ else
28
+ var index = match.index;
29
+ var wordNode = node.splitText(index);
30
+ wordNode.splitText(match[1].length);
31
+ var wordClone = wordNode.cloneNode(true);
32
+ highlight.appendChild(wordClone);
33
+ wordNode.parentNode.replaceChild(highlight, wordNode);
34
+ return 1; //skip added node in parent
35
+ }
36
+ } else if ((node.nodeType === 1 && node.childNodes) && // only element nodes that have children
37
+ !/(script|style)/i.test(node.tagName) && // ignore script and style nodes
38
+ !jQuery(node).closest(excludeParents).length > 0 &&
39
+ !(node.tagName === nodeName.toUpperCase() && node.className === className)) { // skip if already highlighted
40
+ for (var i = 0; i < node.childNodes.length; i++) {
41
+ i += jQuery.highlight(node.childNodes[i], re, nodeName, className, excludeParents);
42
+ }
43
+ }
44
+ return 0;
45
+ }
46
+ });
47
+
48
+ jQuery.fn.unhighlight = function (options) {
49
+ var settings = {className: 'highlight', element: 'span'};
50
+ jQuery.extend(settings, options);
51
+
52
+ return this.find(settings.element + "." + settings.className).each(function () {
53
+ var parent = this.parentNode;
54
+ parent.replaceChild(this.firstChild, this);
55
+ parent.normalize();
56
+ }).end();
57
+ };
58
+
59
+ jQuery.fn.highlight = function (words, options) {
60
+ var settings = {
61
+ className: 'highlight',
62
+ element: 'span',
63
+ caseSensitive: false,
64
+ wordsOnly: false,
65
+ excludeParents: ''
66
+ };
67
+ jQuery.extend(settings, options);
68
+
69
+ if (words.constructor === String) {
70
+ words = [words];
71
+ }
72
+ words = jQuery.grep(words, function (word, i) {
73
+ return word != '';
74
+ });
75
+ words = jQuery.map(words, function (word, i) {
76
+ return word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g, "");
77
+ });
78
+ if (words.length == 0) {
79
+ return this;
80
+ }
81
+ ;
82
+
83
+ var flag = settings.caseSensitive ? "" : "i";
84
+ var pattern = "(" + words.join("|") + ")";
85
+ if (settings.wordsOnly) {
86
+ pattern = "(?:,|^|\\s)" + pattern + "(?:,|$|\\s)";
87
+ }
88
+ var re = new RegExp(pattern, flag);
89
+
90
+ return this.each(function () {
91
+ jQuery.highlight(this, re, settings.element, settings.className, settings.excludeParents);
92
+ });
93
+ };
94
+ }
95
+ })(asljQuery, asljQuery, window);(function(jQuery, $, window){
96
+ /*! Ajax Search Lite 4.6 js */
97
+ ;if ( typeof jQuery != 'undefined' ) {(function ($) {
98
+ var prevState;
99
+ var firstIteration = true;
100
+ var methods = {
101
+
102
+ init: function (options, elem) {
103
+ var $this = this;
104
+
105
+ this.elem = elem;
106
+ this.$elem = $(elem);
107
+
108
+ $this.searching = false;
109
+ $this.o = $.extend({
110
+ 'blocking': false
111
+ }, options);
112
+ $this.n = {};
113
+ $this.n.search = $(this.elem);
114
+ $this.n.container = $this.n.search.closest('.asl_w_container');
115
+ $this.o.id = $this.n.search.data('id');
116
+ $this.o.iid = $this.n.search.data('instance');
117
+ $this.o.rid = $this.o.id;
118
+ $this.n.probox = $('.probox', $this.n.search);
119
+ $this.n.proinput = $('.proinput', $this.n.search);
120
+ $this.n.text = $('.proinput input.orig', $this.n.search);
121
+ $this.n.textAutocomplete = $('.proinput input.autocomplete', $this.n.search);
122
+ $this.n.loading = $('.proinput .loading', $this.n.search);
123
+ $this.n.proloading = $('.proloading', $this.n.search);
124
+ $this.n.proclose = $('.proclose', $this.n.search);
125
+ $this.n.promagnifier = $('.promagnifier', $this.n.search);
126
+ $this.n.prosettings = $('.prosettings', $this.n.search);
127
+
128
+ $this.n.searchsettings = $('.asl_s', $this.n.container);
129
+ $this.n.resultsDiv = $('.asl_r', $this.n.container);
130
+
131
+ // Fix any potential clones and adjust the variables
132
+ $this.fixClonedSelf();
133
+
134
+ $this.n.searchsettings = $this.n.searchsettings.clone();
135
+ $('body').append($this.n.searchsettings);
136
+ $this.n.searchsettings.get(0).id = $this.n.searchsettings.get(0).id.replace('__original__', '');
137
+
138
+ $this.n.resultsDiv = $this.n.resultsDiv.clone();
139
+ if ($this.o.resultsposition == 'hover') {
140
+ $('body').append($this.n.resultsDiv);
141
+ } else if ($this.n.resultsAppend.length > 0) {
142
+ $this.n.resultsAppend.append($this.n.resultsDiv);
143
+ }
144
+ $this.n.resultsDiv.get(0).id = $this.n.resultsDiv.get(0).id.replace('__original__', '');
145
+
146
+ $this.n.hiddenContainer = $('#asl_hidden_data');
147
+ $this.n.aslItemOverlay = $('.asl_item_overlay', $this.n.hiddenContainer);
148
+
149
+ $this.resizeTimeout = null;
150
+
151
+ $this.n.showmore = $('.showmore', $this.n.resultsDiv);
152
+ $this.n.items = $('.item', $this.n.resultsDiv);
153
+ $this.n.results = $('.results', $this.n.resultsDiv);
154
+ $this.n.resdrg = $('.resdrg', $this.n.resultsDiv);
155
+
156
+ $this.post = null;
157
+ $this.postAuto = null;
158
+
159
+ $this.n.textAutocomplete.val('');
160
+ $this.scroll = {};
161
+ $this.savedScrollTop = 0; // Save the window scroll on IOS devices
162
+ $this.savedContainerTop = 0;
163
+ $this.is_scroll = typeof asp_SimpleBar != "undefined";
164
+ // Force noscroll on minified version
165
+ if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
166
+ $this.is_scroll = false;
167
+ $this.settScroll = null;
168
+ $this.n.resultsAppend = $('#wpdreams_asl_results_' + $this.o.id);
169
+
170
+ $this.o.redirectOnClick = $this.o.trigger.click != 'ajax_search' && $this.o.trigger.click != 'nothing';
171
+ $this.o.redirectOnEnter = $this.o.trigger.return != 'ajax_search' && $this.o.trigger.return != 'nothing';
172
+
173
+ $this.lastSuccesfulSearch = ''; // Holding the last phrase that returned results
174
+ $this.lastSearchData = {}; // Store the last search information
175
+ $this.triggerPrevState = false;
176
+
177
+
178
+ //$this.n.searchsettings.detach().appendTo("body");
179
+
180
+
181
+
182
+ // Memorize settins and results original HTML codes
183
+ if ( typeof(ASL.resHTML) == 'undefined' )
184
+ ASL.resHTML = $this.n.resultsDiv.html();
185
+ if ( typeof(ASL.setHTML) == 'undefined' )
186
+ ASL.setHTML = $this.n.searchsettings.html();
187
+
188
+ $('fieldset' ,$this.n.searchsettings).each(function(){
189
+ $('.asl_option:not(.hiddend)', this).last().addClass("asl-o-last");
190
+ });
191
+
192
+ // Browser back button detection and
193
+ if ( ASL.js_retain_popstate == 1 )
194
+ $this.initPrevState();
195
+
196
+ $this.monitorTouchMove();
197
+
198
+ if (detectOldIE())
199
+ $this.n.search.addClass('asl_msie');
200
+
201
+ // Calculates the settings animation attributes
202
+ $this.initSettingsAnimations();
203
+
204
+ // Calculates the results animation attributes
205
+ $this.initResultsAnimations();
206
+
207
+ $this.initEvents();
208
+
209
+ // Auto populate init
210
+ $this.initAutop();
211
+
212
+ $this.initEtc();
213
+
214
+ return this;
215
+ },
216
+
217
+ initPrevState: function() {
218
+ var $this = this;
219
+
220
+ // Browser back button check first, only on first init iteration
221
+ if ( firstIteration && prevState == null ) {
222
+ prevState = localStorage.getItem('asl-' + Base64.encode(location.href));
223
+ if ( prevState != null ) {
224
+ prevState = JSON.parse(prevState);
225
+ prevState.settings = Base64.decode(prevState.settings);
226
+ }
227
+ }
228
+ if ( prevState != null && typeof prevState.id != 'undefined' ) {
229
+ if ( prevState.id == $this.o.id ) {
230
+ if (prevState.phrase != '') {
231
+ $this.triggerPrevState = true;
232
+ $this.n.text.val(prevState.phrase);
233
+ }
234
+ if ( formData($('form', $this.n.searchsettings)) != prevState.settings ) {
235
+ $this.triggerPrevState = true;
236
+ formData( $('form', $this.n.searchsettings), prevState.settings );
237
+ }
238
+ }
239
+ }
240
+
241
+ // Reset storage
242
+ localStorage.removeItem('asl-' + Base64.encode(location.href));
243
+ // Set the event
244
+ $this.n.resultsDiv.on('click', '.results .item', function(e) {
245
+ var phrase = $this.n.text.val();
246
+ if ( phrase != '' || $this.settingsChanged ) {
247
+ var stateObj = {
248
+ 'id': $this.o.id,
249
+ 'phrase': phrase,
250
+ 'settings': Base64.encode( formData($('form', $this.n.searchsettings)) )
251
+ };
252
+ localStorage.setItem('asl-' + Base64.encode(location.href), JSON.stringify(stateObj));
253
+ }
254
+ });
255
+ },
256
+
257
+ monitorTouchMove: function() {
258
+ var $this = this, $b = $("body");
259
+ $this.dragging = false;
260
+ $b.on("touchmove", function(){
261
+ $this.dragging = true;
262
+ });
263
+ $b.on("touchstart", function(){
264
+ $this.dragging = false;
265
+ });
266
+ },
267
+
268
+ gaPageview: function(term) {
269
+ var $this = this;
270
+ var tracking_id = $this.gaGetTrackingID();
271
+
272
+ if ( typeof ASL.analytics == 'undefined' || ASL.analytics.method != 'pageview' )
273
+ return false;
274
+
275
+ if ( ASL.analytics.string != '' ) {
276
+ // YOAST uses __gaTracker, if not defined check for ga, if nothing go null, FUN EH??
277
+ var _ga = typeof __gaTracker == "function" ? __gaTracker : (typeof ga == "function" ? ga : false);
278
+ var _gtag = typeof gtag == "function" ? gtag : false;
279
+
280
+ if (!window.location.origin) {
281
+ window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
282
+ }
283
+ // Multisite Subdirectory (if exists)
284
+ var url = $this.o.homeurl.replace(window.location.origin, '');
285
+
286
+ // GTAG bypass pageview tracking method
287
+ if ( _gtag !== false ) {
288
+ if ( tracking_id !== false ) {
289
+ _gtag('config', tracking_id, {'page_path': url + ASL.analytics.string.replace("{asl_term}", term)});
290
+ }
291
+ } else if ( _ga !== false ) {
292
+ if ( tracking_id !== false ) {
293
+ _ga('create', tracking_id, 'auto');
294
+ }
295
+ _ga('send', 'pageview', {
296
+ 'page': url + ASL.analytics.string.replace("{asl_term}", term),
297
+ 'title': 'Ajax Search'
298
+ });
299
+ }
300
+ }
301
+ },
302
+
303
+ gaEvent: function(which, data) {
304
+ var $this = this;
305
+ var tracking_id = $this.gaGetTrackingID();
306
+
307
+ if ( typeof ASL.analytics == 'undefined' || ASL.analytics.method != 'event' )
308
+ return false;
309
+
310
+ // Get the scope
311
+ var _gtag = typeof gtag == "function" ? gtag : false;
312
+ var _ga = typeof __gaTracker == "function" ? __gaTracker : (typeof ga == "function" ? ga : false);
313
+
314
+ if ( _gtag === false && _ga === false )
315
+ return false;
316
+
317
+ if (
318
+ typeof (ASL.analytics.event[which]) != 'undefined' &&
319
+ ASL.analytics.event[which].active == 1 &&
320
+ typeof 'gtag' != 'undefined'
321
+ ) {
322
+ var def_data = {
323
+ "search_id": $this.o.id,
324
+ "search_name": $this.o.name,
325
+ "phrase": $this.n.text.val(),
326
+ "option_name": '',
327
+ "option_value": '',
328
+ "result_title": '',
329
+ "result_url": '',
330
+ "results_count": ''
331
+ };
332
+ var event = {
333
+ 'event_category': ASL.analytics.event[which].category,
334
+ 'event_label': ASL.analytics.event[which].label,
335
+ 'value': ASL.analytics.event[which].value
336
+ };
337
+ data = $.extend(def_data, data);
338
+ $.each(data, function (k, v) {
339
+ v = String(v).replace(/[\s\n\r]+/g, " ").trim();
340
+ $.each(event, function (kk, vv) {
341
+ var regex = new RegExp('\{' + k + '\}', 'gmi');
342
+ event[kk] = vv.replace(regex, v);
343
+ });
344
+ });
345
+ if ( _gtag === false ) {
346
+ if ( tracking_id !== false ) {
347
+ _ga('create', tracking_id, 'auto');
348
+ }
349
+ _ga('send', 'event',
350
+ event.event_category,
351
+ ASL.analytics.event[which].action,
352
+ event.event_label,
353
+ event.value
354
+ );
355
+ } else {
356
+ if ( tracking_id !== false ) {
357
+ event.send_to = tracking_id;
358
+ }
359
+ _gtag('event', ASL.analytics.event[which].action, event);
360
+ }
361
+ }
362
+ },
363
+
364
+ gaGetTrackingID: function() {
365
+ var $this = this;
366
+ var ret = false;
367
+
368
+ if ( typeof ASL.analytics == 'undefined' )
369
+ return ret;
370
+
371
+ if ( typeof ASL.analytics.tracking_id != 'undefined' && ASL.analytics.tracking_id != '' ) {
372
+ return ASL.analytics.tracking_id;
373
+ } else {
374
+ // GTAG bypass pageview tracking method
375
+ var _gtag = typeof gtag == "function" ? gtag : false;
376
+ if ( _gtag !== false && typeof ga != 'undefined' && typeof ga.getAll != 'undefined' ) {
377
+ var id = false;
378
+ ga.getAll().forEach( function(tracker) {
379
+ id = tracker.get('trackingId');
380
+ });
381
+ return id;
382
+ }
383
+ }
384
+
385
+ return ret;
386
+ },
387
+
388
+ createVerticalScroll: function () {
389
+ var $this = this;
390
+ if ( $this.is_scroll && typeof $this.scroll.recalculate === 'undefined' ) {
391
+ $this.scroll = new asp_SimpleBar($this.n.results.get(0), {
392
+ direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
393
+ autoHide: true
394
+ });
395
+ }
396
+ },
397
+
398
+ initEvents: function () {
399
+ var $this = this;
400
+
401
+ if ( isMobile() && detectIOS() ) {
402
+ /**
403
+ * Memorize the scroll top when the input is focused on IOS
404
+ * as fixed elements scroll freely, resulting in incorrect scroll value
405
+ */
406
+ $this.n.text.on('touchstart', function () {
407
+ $this.savedScrollTop = $(window).scrollTop();
408
+ $this.savedContainerTop = $this.n.search.offset().top;
409
+ });
410
+ }
411
+
412
+ // Some kind of crazy rev-slider fix
413
+ $this.n.text.on('click', function(e){
414
+ $(this).trigger('focus');
415
+ $this.gaEvent('focus');
416
+ });
417
+
418
+ $this.n.text.on('focus input', function(e){
419
+ if ( $this.searching ) return;
420
+ if ( $(this).val() != '' ) {
421
+ $this.n.proclose.css('display', 'block');
422
+ } else {
423
+ $this.n.proclose.css({
424
+ display: "none"
425
+ });
426
+ }
427
+ });
428
+
429
+ $($this.n.text.parent()).on('submit', function (e) {
430
+ e.preventDefault();
431
+ if ( isMobile() ) {
432
+ if ( $this.o.redirectOnEnter ) {
433
+ var _e = jQuery.Event("keyup");
434
+ _e.keyCode = _e.which = 13;
435
+ $this.n.text.trigger(_e);
436
+ } else if ( $this.o.trigger.return == 'ajax_search' ) {
437
+ $this.search();
438
+ document.activeElement.blur();
439
+ }
440
+ } else {
441
+ if ( $this.o.trigger.return == 'ajax_search' )
442
+ $this.search();
443
+ }
444
+ });
445
+
446
+ $this.n.resultsDiv.css({
447
+ opacity: 0
448
+ });
449
+ $(document).on("click touchend", function () {
450
+ $this.hideSettings();
451
+ if ($this.opened == false || $this.o.closeOnDocClick != 1) return;
452
+ $this.hideResults();
453
+ });
454
+ $this.n.proclose.on("click touchend", function () {
455
+ $this.n.text.val("");
456
+ $this.n.textAutocomplete.val("");
457
+ $this.hideResults();
458
+ $this.n.text.trigger('focus');
459
+ });
460
+ $($this.elem).on("click touchend", function (e) {
461
+ e.stopImmediatePropagation();
462
+ });
463
+ $this.n.resultsDiv.on("click touchend", function (e) {
464
+ e.stopImmediatePropagation();
465
+ });
466
+ $this.n.searchsettings.on("click touchend", function (e) {
467
+ e.stopImmediatePropagation();
468
+ });
469
+
470
+ $this.n.prosettings.on("click", function () {
471
+ if ($this.n.prosettings.data('opened') == 0) {
472
+ $this.showSettings();
473
+ } else {
474
+ $this.hideSettings();
475
+ }
476
+ });
477
+
478
+ var fixedp = $this.n.search.parents().filter(
479
+ function() {
480
+ return $(this).css('position') == 'fixed';
481
+ }
482
+ );
483
+ if ( fixedp.length > 0 || $this.n.search.css('position') == 'fixed' ) {
484
+ if ( $this.n.resultsDiv.css('position') == 'absolute' )
485
+ $this.n.resultsDiv.css('position', 'fixed');
486
+ $this.n.resultsDiv.css('z-index',99999999999);
487
+ if ( !$this.o.blocking )
488
+ $this.n.searchsettings.css('position', 'fixed');
489
+ }
490
+
491
+ if ( isMobile() ) {
492
+ $(window).on("orientationchange", function () {
493
+ $this.orientationChange();
494
+ // Fire once more a bit delayed, some mobile browsers need to re-zoom etc..
495
+ setTimeout(function(){
496
+ $this.orientationChange();
497
+ }, 800);
498
+ });
499
+ } else {
500
+ var resizeTimer;
501
+ $(window).on("resize", function () {
502
+ clearTimeout(resizeTimer);
503
+ resizeTimer = setTimeout(function () {
504
+ $this.resize();
505
+ }, 100);
506
+ });
507
+ }
508
+
509
+ var scrollTimer;
510
+ $(window).on("scroll", function () {
511
+ clearTimeout(scrollTimer);
512
+ scrollTimer = setTimeout(function() {
513
+ $this.scrolling(false);
514
+ }, 400);
515
+ });
516
+
517
+ // Prevent zoom on IOS
518
+ if ( detectIOS() && isMobile() ) {
519
+ if ( parseInt($this.n.text.css('font-size')) < 16 ) {
520
+ $this.n.text.data('fontSize', $this.n.text.css('font-size')).css('font-size', '16px');
521
+ $this.n.textAutocomplete.css('font-size', '16px');
522
+ $('<style>#ajaxsearchlite'+$this.o.rid+' input.orig::-webkit-input-placeholder{font-size: 16px !important;}</style>').appendTo('head');
523
+ }
524
+ }
525
+
526
+ $this.initNavigationEvent();
527
+
528
+ $this.initMagnifierEvent();
529
+ $this.initAutocompleteEvent();
530
+ $this.initFacetEvents();
531
+ },
532
+
533
+ initAutop: function () {
534
+ var $this = this;
535
+
536
+ // Trigger the prevState here, as it is kind of auto-populate
537
+ if ( prevState != null && $this.triggerPrevState ) {
538
+ $this.search();
539
+ prevState = null;
540
+ return false; // Terminate at this point, to prevent auto-populate
541
+ }
542
+ },
543
+
544
+ initEtc: function() {
545
+ var $this = this;
546
+ var t = null;
547
+
548
+ // Emulate click on checkbox on the whole option
549
+ $('div.asl_option', $this.n.searchsettings).on('mouseup touchend', function(e){
550
+ e.preventDefault(); // Stop firing twice on mouseup and touchend on mobile devices
551
+ e.stopImmediatePropagation();
552
+ if ( $this.dragging ) {
553
+ return false;
554
+ }
555
+ $('input[type="checkbox"]', this).prop("checked", !$('input[type="checkbox"]', this).prop("checked"));
556
+ // Trigger a custom change event, for max compatibility
557
+ // .. the original change is buggy for some installations.
558
+ clearTimeout(t);
559
+ var _this = this;
560
+ t = setTimeout(function() {
561
+ $('input[type="checkbox"]', _this).trigger('asl_chbx_change');
562
+ }, 50);
563
+ });
564
+ $('div.asl_option label', $this.n.searchsettings).on('click', function(e){
565
+ e.preventDefault(); // Let the previous handler handle the events, disable this
566
+ });
567
+
568
+ // GTAG on results click
569
+ $this.n.resultsDiv.on('click', '.results .item', function() {
570
+ $this.gaEvent('result_click', {
571
+ 'result_title': $(this).find('a.asl_res_url').text(),
572
+ 'result_url': $(this).find('a.asl_res_url').attr('href')
573
+ });
574
+
575
+ // Results highlight on results page
576
+ if ( $this.o.singleHighlight == 1 ) {
577
+ localStorage.removeItem('asl_phrase_highlight');
578
+ if ( asl_unquote_phrase( $this.n.text.val() ) != '' )
579
+ localStorage.setItem('asl_phrase_highlight', JSON.stringify({
580
+ 'phrase': asl_unquote_phrase( $this.n.text.val() ),
581
+ 'id': $this.o.id
582
+ }));
583
+ }
584
+ });
585
+
586
+ // Mobile navigation focus
587
+ if ( isMobile() && $this.o.mobile.menu_selector != '' ) {
588
+ $($this.o.mobile.menu_selector).on('touchend', function(){
589
+ var _this = this;
590
+ setTimeout(function () {
591
+ var $input = $(_this).find('input.orig');
592
+ $input = $input.length == 0 ? $(_this).next().find('input.orig') : $input;
593
+ $input = $input.length == 0 ? $(_this).parent().find('input.orig') : $input;
594
+ $input = $input.length == 0 ? $this.n.text : $input;
595
+ if ( $this.n.search.is(':visible') ) {
596
+ $input.get(0).focus();
597
+ }
598
+ }, 300);
599
+ });
600
+ }
601
+ },
602
+
603
+ initNavigationEvent: function () {
604
+ var $this = this;
605
+
606
+ $($this.n.resultsDiv).on('mouseenter', '.item',
607
+ function () {
608
+ $('.item', $this.n.resultsDiv).removeClass('hovered');
609
+ $(this).addClass('hovered');
610
+ }
611
+ );
612
+ $($this.n.resultsDiv).on('mouseleave', '.item',
613
+ function () {
614
+ $('.item', $this.n.resultsDiv).removeClass('hovered');
615
+ }
616
+ );
617
+
618
+ $(document).on('keydown', function (e) {
619
+
620
+ if (window.event) {
621
+ var keycode = window.event.keyCode;
622
+ var ktype = window.event.type;
623
+ } else if (e) {
624
+ var keycode = e.which;
625
+ var ktype = e.type;
626
+ }
627
+
628
+ if ($('.item', $this.n.resultsDiv).length > 0 && $this.n.resultsDiv.css('display') != 'none') {
629
+ if ( keycode == 40 || keycode == 38 ) {
630
+ if (keycode == 40) {
631
+ $this.n.text.blur();
632
+ if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
633
+ $('.item', $this.n.resultsDiv).first().addClass('hovered');
634
+ } else {
635
+ $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').next('.item').addClass('hovered');
636
+ }
637
+ }
638
+ if (keycode == 38) {
639
+ $this.n.text.blur();
640
+ if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
641
+ $('.item', $this.n.resultsDiv).last().addClass('hovered');
642
+ } else {
643
+ $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').prev('.item').addClass('hovered');
644
+ }
645
+ }
646
+ e.stopPropagation();
647
+ e.preventDefault();
648
+ var $container = $this.is_scroll ? $( $this.scroll.getScrollElement() ) : $this.n.results;
649
+ var $scrollTo = $this.n.resultsDiv.find('.resdrg .item.hovered');
650
+ if ( $scrollTo.length == 0 ) {
651
+ $scrollTo = $this.n.resultsDiv.children().first();
652
+ }
653
+ $container.animate({
654
+ "scrollTop": $scrollTo.offset().top - $container.offset().top + $container.scrollTop()
655
+ }, {
656
+ "duration": 120
657
+ });
658
+ }
659
+
660
+ // Trigger click on return key
661
+ if ( keycode == 13 && $('.item.hovered', $this.n.resultsDiv).length > 0 ) {
662
+ e.stopPropagation();
663
+ e.preventDefault();
664
+ $('.item.hovered a.asl_res_url', $this.n.resultsDiv).get(0).click();
665
+ }
666
+ }
667
+ });
668
+ },
669
+
670
+ initMagnifierEvent: function () {
671
+ var $this = this;
672
+
673
+ var t;
674
+ var rt, enterRecentlyPressed = false;
675
+
676
+ // The return event has to be dealt with on a keyup event, as it does not trigger the input event
677
+ $this.n.text.on('keyup', function(e) {
678
+ if (window.event) {
679
+ $this.keycode = window.event.keyCode;
680
+ $this.ktype = window.event.type;
681
+ } else if (e) {
682
+ $this.keycode = e.which;
683
+ $this.ktype = e.type;
684
+ }
685
+
686
+ // Prevent rapid enter key pressing
687
+ if ( $this.keycode == 13 ) {
688
+ clearTimeout(rt);
689
+ rt = setTimeout(function(){
690
+ enterRecentlyPressed = false;
691
+ }, 300);
692
+ if ( enterRecentlyPressed ) {
693
+ return false;
694
+ } else {
695
+ enterRecentlyPressed = true;
696
+ }
697
+ }
698
+
699
+ var isInput = $(this).hasClass("orig");
700
+ if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
701
+ $this.gaEvent('return');
702
+ if ( $this.o.redirectOnEnter == 1 ) {
703
+ if ($this.o.trigger.return != 'first_result') {
704
+ $this.doRedirectToResults($this.ktype);
705
+ } else {
706
+ $this.search();
707
+ }
708
+ } else {
709
+ if ( $this.o.trigger.return == 'nothing' )
710
+ return false;
711
+ if (
712
+ ($('form', $this.n.searchsettings).serialize() + $this.n.text.val().trim()) != $this.lastSuccesfulSearch ||
713
+ !$this.resultsOpened
714
+ ) {
715
+ $this.search();
716
+ }
717
+ }
718
+ clearTimeout(t);
719
+ }
720
+ });
721
+
722
+ $this.n.promagnifier.add($this.n.text).on('click input', function (e) {
723
+ if (window.event) {
724
+ $this.keycode = window.event.keyCode;
725
+ $this.ktype = window.event.type;
726
+ } else if (e) {
727
+ $this.keycode = e.which;
728
+ $this.ktype = e.type;
729
+ }
730
+
731
+ var isInput = $(this).hasClass("orig");
732
+
733
+ if ($this.n.text.val().length < $this.o.charcount) {
734
+ $this.n.proloading.css('display', 'none');
735
+ $this.hideResults();
736
+ if ($this.post != null) $this.post.abort();
737
+ clearTimeout(t);
738
+ return;
739
+ }
740
+
741
+ // If redirection is set to the results page, or custom URL
742
+ if (
743
+ $this.n.text.val().length >= $this.o.charcount &&
744
+ (!isInput && $this.o.redirectOnClick == 1 && $this.ktype == 'click' && $this.o.trigger.click != 'first_result' )
745
+ ) {
746
+ $this.doRedirectToResults($this.ktype);
747
+ clearTimeout(t);
748
+ return;
749
+ }
750
+ // Ignore arrows, F1-F12
751
+ if (
752
+ ($this.keycode >= 37 && $this.keycode <= 40) ||
753
+ ($this.keycode >= 112 && $this.keycode <= 123)
754
+ ) return;
755
+ if ((isInput && $this.ktype == 'click') || $this.keycode == 32) {
756
+ if (
757
+ ($('form', $this.n.searchsettings).serialize() + $this.n.text.val().trim()) == $this.lastSuccesfulSearch
758
+ ) {
759
+ $this.n.proclose.css('display', 'block');
760
+ if ( !$this.resultsOpened )
761
+ $this.showResults();
762
+ }
763
+ return;
764
+ }
765
+ if ($(this).hasClass('orig') && $this.ktype == 'click') return;
766
+
767
+ if ( !isInput && $this.ktype == 'click' ) {
768
+ $this.gaEvent('magnifier');
769
+ }
770
+
771
+ if (
772
+ $this.ktype == 'click' &&
773
+ !( $this.o.trigger.click == 'ajax_search' || $this.o.trigger.click == 'first_result' )
774
+ ) {
775
+ return false;
776
+ }
777
+
778
+ if ($this.o.trigger.type == 0 && $this.ktype == 'input') return;
779
+
780
+ // Is the nothing is choosen
781
+ if (
782
+ (isInput && $this.ktype == 'input' && $this.o.trigger.return == 'nothing') ||
783
+ (!isInput && $this.ktype == 'click' && $this.o.trigger.click == 'nothing')
784
+ )
785
+ return;
786
+
787
+ if ($this.post != null) $this.post.abort();
788
+ clearTimeout(t);
789
+ $this.hideLoader();
790
+ t = setTimeout(function () {
791
+ // If the user types and deletes, while the last results are open
792
+ if ( ($('form', $this.n.searchsettings).serialize() + $this.n.text.val().trim()) != $this.lastSuccesfulSearch ) {
793
+ $this.search();
794
+ } else {
795
+ $this.n.proclose.css('display', 'block');
796
+ if ( $this.isRedirectToFirstResult() ) {
797
+ $this.doRedirectToFirstResult();
798
+ return false;
799
+ } else {
800
+ if ( !$this.resultsOpened )
801
+ $this.showResults();
802
+ }
803
+ }
804
+ }, 250);
805
+ });
806
+ },
807
+
808
+ initFacetEvents: function() {
809
+ var $this = this;
810
+ var t = null;
811
+
812
+ if ($this.o.trigger.facet == 1) {
813
+ $('input[type!=checkbox], select', $this.n.searchsettings).on('change slidechange', function(){
814
+ if ($this.n.text.val().length < $this.o.charcount) return;
815
+ if ($this.post != null) $this.post.abort();
816
+ clearTimeout(t);
817
+ t = setTimeout(function() {
818
+ $this.search();
819
+ }, 50);
820
+ });
821
+ $('input[type=checkbox]', $this.n.searchsettings).on('asl_chbx_change', function(){
822
+ if ($this.n.text.val().length < $this.o.charcount) return;
823
+ if ($this.post != null) $this.post.abort();
824
+ $this.gaEvent('facet_change', {
825
+ 'option_label': $(this).closest('fieldset').find('legend').text(),
826
+ 'option_value': $(this).closest('.asl_option').find('.asl_option_label').text() + ($(this).prop('checked') ? '(checked)' : '(unchecked)')
827
+ });
828
+ clearTimeout(t);
829
+ t = setTimeout(function() {
830
+ $this.search();
831
+ }, 50);
832
+ });
833
+ }
834
+ },
835
+
836
+ isRedirectToFirstResult: function() {
837
+ var $this = this;
838
+ if (
839
+ $('.asl_res_url', $this.n.resultsDiv).length > 0 &&
840
+ (
841
+ ($this.o.redirectOnClick == 1 && $this.ktype == 'click' && $this.o.trigger.click == 'first_result' ) ||
842
+ ($this.o.redirectOnEnter == 1 && ($this.ktype == 'input' || $this.ktype == 'keyup') && $this.keycode == 13 && $this.o.trigger.return == 'first_result' )
843
+ )
844
+ ) {
845
+ return true;
846
+ }
847
+ return false;
848
+ },
849
+
850
+ doRedirectToFirstResult: function() {
851
+ var $this = this;
852
+ var _loc;
853
+
854
+ if ( $this.ktype == 'click' ) {
855
+ _loc = $this.o.trigger.click_location;
856
+ } else {
857
+ _loc = $this.o.trigger.return_location;
858
+ }
859
+
860
+ if ( _loc == 'same' )
861
+ location.href = $( $('.asl_res_url', $this.n.resultsDiv).get(0)).attr('href');
862
+ else
863
+ open_in_new_tab( $( $('.asl_res_url', $this.n.resultsDiv).get(0)).attr('href') );
864
+
865
+ $this.hideLoader();
866
+ $this.hideResults();
867
+ return false;
868
+ },
869
+
870
+ doRedirectToResults: function( ktype ) {
871
+ var $this = this;
872
+
873
+ var source = $this.ktype == 'click' ? $this.o.trigger.click : $this.o.trigger.return;
874
+ var _loc = ktype == 'click' ? $this.o.trigger.click_location : $this.o.trigger.return_location;
875
+
876
+ if ( source == 'results_page' ) {
877
+ var url = '?s=' + asl_nice_phrase($this.n.text.val());
878
+ } else if ( source == 'woo_results_page' ) {
879
+ var url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
880
+ } else {
881
+ var url = $this.o.trigger.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
882
+ }
883
+
884
+ // Is this an URL like xy.com/?x=y
885
+ if ( $this.o.homeurl.indexOf('?') > 1 && url.indexOf('?') === 0 ) {
886
+ url = url.replace('?', '&');
887
+ }
888
+
889
+ if ( $this.o.overridewpdefault ) {
890
+ if ( $this.o.override_method == "post") {
891
+ asl_submit_to_url($this.o.homeurl + url, 'post', {
892
+ asl_active: 1,
893
+ p_asl_data: $('form', $this.n.searchsettings).serialize()
894
+ }, _loc);
895
+ } else {
896
+ var _url = $this.o.homeurl + url + "&asl_active=1&p_asid=" + $this.o.id + "&p_asl_data=1&" + $('form', $this.n.searchsettings).serialize();
897
+ if ( _loc == 'same' )
898
+ location.href = _url;
899
+ else
900
+ open_in_new_tab(_url)
901
+ }
902
+ } else {
903
+ asl_submit_to_url($this.o.homeurl + url, 'post', {
904
+ np_asl_data: $('form', $this.n.searchsettings).serialize()
905
+ }, _loc);
906
+ }
907
+
908
+ $this.n.proloading.css('display', 'none');
909
+ $this.hideLoader();
910
+ $this.hideResults();
911
+ if ($this.post != null) $this.post.abort();
912
+ },
913
+
914
+ destroy: function () {
915
+ /*return this.each(function () {
916
+ var $this = $.extend({}, this, methods);
917
+ $(window).unbind($this);
918
+ });*/
919
+ var $this = this;
920
+ $this.n.searchsettings.remove();
921
+ $this.n.resultsDiv.remove();
922
+ $this.n.search.remove();
923
+ $this.n.container.remove();
924
+ },
925
+ searchfor: function (phrase) {
926
+ $(".proinput input", this).val(phrase).trigger("keyup");
927
+ },
928
+
929
+ initAutocompleteEvent: function () {
930
+ var $this = this;
931
+ var tt;
932
+
933
+ if ( $this.o.autocomplete.enabled == 1 && !isMobile() ) {
934
+ $this.n.text.on('keyup', function (e) {
935
+ if (window.event) {
936
+ $this.keycode = window.event.keyCode;
937
+ $this.ktype = window.event.type;
938
+ } else if (e) {
939
+ $this.keycode = e.which;
940
+ $this.ktype = e.type;
941
+ }
942
+
943
+ var thekey = 39;
944
+ // Lets change the keykode if the direction is rtl
945
+ if ($('body').hasClass('rtl'))
946
+ thekey = 37;
947
+ if ($this.keycode == thekey && $this.n.textAutocomplete.val() != "") {
948
+ e.preventDefault();
949
+ $this.n.text.val($this.n.textAutocomplete.val());
950
+ if ($this.post != null) $this.post.abort();
951
+ $this.search();
952
+ } else {
953
+ if ($this.postAuto != null) $this.postAuto.abort();
954
+ $this.autocompleteGoogleOnly();
955
+ }
956
+ });
957
+ }
958
+ },
959
+
960
+ // If only google source is used, this is much faster..
961
+ autocompleteGoogleOnly: function () {
962
+ var $this = this;
963
+
964
+ var val = $this.n.text.val();
965
+ if ($this.n.text.val() == '') {
966
+ $this.n.textAutocomplete.val('');
967
+ return;
968
+ }
969
+ var autocompleteVal = $this.n.textAutocomplete.val();
970
+ if (autocompleteVal != '' && autocompleteVal.indexOf(val) == 0) {
971
+ return;
972
+ } else {
973
+ $this.n.textAutocomplete.val('');
974
+ }
975
+
976
+ $.ajax({
977
+ url: 'https://clients1.google.com/complete/search',
978
+ dataType: 'jsonp',
979
+ data: {
980
+ q: val,
981
+ hl: $this.o.autocomplete.lang,
982
+ nolabels: 't',
983
+ client: 'hp',
984
+ ds: ''
985
+ },
986
+ success: function(data) {
987
+ if (data[1].length > 0) {
988
+ response = data[1][0][0].replace(/(<([^>]+)>)/ig,"");
989
+ response = $('<textarea />').html(response).text();
990
+ response = response.substr(val.length);
991
+ $this.n.textAutocomplete.val(val + response);
992
+ }
993
+ }
994
+ });
995
+ },
996
+
997
+ search: function () {
998
+ var $this = this;
999
+
1000
+ if ($this.searching && 0) return;
1001
+ if ($this.n.text.val().length < $this.o.charcount) return;
1002
+
1003
+ $this.searching = true;
1004
+ $this.n.proloading.css({
1005
+ display: "block"
1006
+ });
1007
+ $this.n.proclose.css({
1008
+ display: "none"
1009
+ });
1010
+
1011
+ var data = {
1012
+ action: 'ajaxsearchlite_search',
1013
+ aslp: $this.n.text.val(),
1014
+ asid: $this.o.id,
1015
+ options: $('form', $this.n.searchsettings).serialize()
1016
+ };
1017
+
1018
+ data = apply_filters('asl_search_data', data);
1019
+
1020
+ if ( JSON.stringify(data) === JSON.stringify($this.lastSearchData) ) {
1021
+ if ( !$this.resultsOpened )
1022
+ $this.showResults();
1023
+ $this.hideLoader();
1024
+ if ( $this.isRedirectToFirstResult() ) {
1025
+ $this.doRedirectToFirstResult();
1026
+ return false;
1027
+ }
1028
+ return false;
1029
+ }
1030
+
1031
+ $this.gaEvent('search_start');
1032
+
1033
+ // New method without JSON
1034
+ $this.post = $.post(ASL.ajaxurl, data, function (response) {
1035
+ response = response.replace(/^\s*[\r\n]/gm, "");
1036
+ response = response.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1];
1037
+
1038
+ response = apply_filters('asl_search_html', response);
1039
+
1040
+ $this.n.resdrg.html("");
1041
+ $this.n.resdrg.html(response);
1042
+
1043
+ $(".asl_keyword", $this.n.resdrg).on('click', function () {
1044
+ $this.n.text.val($(this).html());
1045
+ $('input.orig', $this.n.search).val($(this).html()).trigger('keydown');
1046
+ $('form', $this.n.search).trigger('submit', 'ajax');
1047
+ $this.search();
1048
+ });
1049
+
1050
+ $this.n.items = $('.item', $this.n.resultsDiv);
1051
+
1052
+ $this.gaEvent('search_end', {'results_count':$this.n.items.length});
1053
+
1054
+ $this.gaPageview($this.n.text.val());
1055
+
1056
+ if ( $this.isRedirectToFirstResult() ) {
1057
+ $this.doRedirectToFirstResult();
1058
+ return false;
1059
+ }
1060
+
1061
+ $this.hideLoader();
1062
+ $this.showResults();
1063
+ $this.scrollToResults();
1064
+ $this.lastSuccesfulSearch = $('form', $this.n.searchsettings).serialize() + $this.n.text.val().trim();
1065
+ $this.lastSearchData = data;
1066
+
1067
+ if ($this.n.items.length == 0) {
1068
+ if ($this.n.showmore != null) {
1069
+ $this.n.showmore.css('display', 'none');
1070
+ }
1071
+ } else {
1072
+ if ($this.n.showmore != null) {
1073
+ $this.n.showmore.css('display', 'block');
1074
+
1075
+ $('a', $this.n.showmore).off();
1076
+ $('a', $this.n.showmore).on('click', function(e){
1077
+ var source = $this.o.trigger.click;
1078
+ var url = '?s=' + asl_nice_phrase($this.n.text.val());
1079
+
1080
+ if ( source == 'results_page' ) {
1081
+ url = '?s=' + asl_nice_phrase($this.n.text.val());
1082
+ } else if ( source == 'woo_results_page' ) {
1083
+ url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
1084
+ } else {
1085
+ url = $this.o.trigger.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
1086
+ }
1087
+
1088
+ if ( $this.o.overridewpdefault ) {
1089
+ if ( $this.o.override_method == "post") {
1090
+ asl_submit_to_url($this.o.homeurl + url, 'post', {
1091
+ asl_active: 1,
1092
+ p_asl_data: $('form', $this.n.searchsettings).serialize()
1093
+ });
1094
+ } else {
1095
+ location.href = $this.o.homeurl + url + "&asl_active=1&p_asid=" + $this.o.id + "&p_asl_data=1&" + $('form', $this.n.searchsettings).serialize()
1096
+ }
1097
+ } else {
1098
+ asl_submit_to_url($this.o.homeurl + url, 'post', {
1099
+ np_asl_data: $('form', $this.n.searchsettings).serialize()
1100
+ });
1101
+ }
1102
+ });
1103
+ }
1104
+ }
1105
+
1106
+ }, "text").fail(function(jqXHR, textStatus, errorThrown){
1107
+ if ( jqXHR.aborted || textStatus == 'abort' )
1108
+ return;
1109
+ $this.n.resdrg.html("");
1110
+ $this.n.resdrg.html('<div class="asl_nores">The request failed. Please check your connection! Status: ' + jqXHR.status + '</div>');
1111
+ $this.n.items = $('.item', $this.n.resultsDiv);
1112
+ $this.hideLoader();
1113
+ $this.showResults();
1114
+ $this.scrollToResults();
1115
+ });
1116
+ },
1117
+
1118
+ showLoader: function( ) {
1119
+ var $this = this;
1120
+ $this.n.proloading.css({
1121
+ display: "block"
1122
+ });
1123
+ },
1124
+
1125
+ hideLoader: function( ) {
1126
+ var $this = this;
1127
+
1128
+ $this.n.proloading.css({
1129
+ display: "none"
1130
+ });
1131
+ $this.n.results.css("display", "");
1132
+ },
1133
+
1134
+ showResultsBox: function() {
1135
+ var $this = this;
1136
+
1137
+ $this.n.resultsDiv.css({
1138
+ display: 'block',
1139
+ height: 'auto'
1140
+ });
1141
+ $this.n.items.addClass($this.animationOpacity);
1142
+
1143
+ $this.fixResultsPosition(true);
1144
+
1145
+ $this.n.resultsDiv.css($this.resAnim.showCSS);
1146
+ $this.n.resultsDiv.removeClass($this.resAnim.hideClass).addClass($this.resAnim.showClass);
1147
+ },
1148
+
1149
+ showResults: function( ) {
1150
+ var $this = this;
1151
+
1152
+ // Create the scrollbars if needed
1153
+ $this.createVerticalScroll();
1154
+ $this.showVerticalResults();
1155
+
1156
+ $this.hideLoader();
1157
+
1158
+ $this.n.proclose.css({
1159
+ display: "block"
1160
+ });
1161
+
1162
+ if ($this.n.showmore != null) {
1163
+ if ($this.n.items.length > 0) {
1164
+ $this.n.showmore.css({
1165
+ 'display': 'block'
1166
+ });
1167
+ } else {
1168
+ $this.n.showmore.css({
1169
+ 'display': 'none'
1170
+ });
1171
+ }
1172
+ }
1173
+
1174
+ if ( $this.is_scroll && typeof $this.scroll.recalculate !== 'undefined' ) {
1175
+ setTimeout(function(){
1176
+ $this.scroll.recalculate();
1177
+ }, 500);
1178
+ }
1179
+
1180
+ $this.resultsOpened = true;
1181
+ },
1182
+
1183
+ hideResults: function( ) {
1184
+ var $this = this;
1185
+
1186
+ if ( !$this.resultsOpened ) return false;
1187
+
1188
+ $this.n.resultsDiv.removeClass($this.resAnim.showClass).addClass($this.resAnim.hideClass);
1189
+ setTimeout(function(){
1190
+ $this.n.resultsDiv.css($this.resAnim.hideCSS);
1191
+ }, $this.resAnim.duration);
1192
+
1193
+ $this.n.proclose.css({
1194
+ display: "none"
1195
+ });
1196
+ if ($this.n.showmore != null) {
1197
+ $this.n.showmore.css({
1198
+ 'display': 'none'
1199
+ });
1200
+ }
1201
+
1202
+ if (isMobile())
1203
+ document.activeElement.blur();
1204
+
1205
+ $this.resultsOpened = false;
1206
+ },
1207
+
1208
+ scrollToResults: function( ) {
1209
+ $this = this;
1210
+ if ( this.o.scrollToResults.enabled ) {
1211
+ if (this.$elem.parent().hasClass("asl_preview_data")) return;
1212
+ if ($this.o.resultsposition == "hover")
1213
+ var stop = $this.n.probox.offset().top - 20;
1214
+ else
1215
+ var stop = $this.n.resultsDiv.offset().top - 20;
1216
+ if ($("#wpadminbar").length > 0)
1217
+ stop -= $("#wpadminbar").height();
1218
+ stop = stop < 0 ? 0 : stop;
1219
+ $('body, html').animate({
1220
+ "scrollTop": stop
1221
+ }, {
1222
+ duration: 500
1223
+ });
1224
+ }
1225
+ },
1226
+
1227
+ createGroup: function (r) {
1228
+ return "<div class='group'>" + r + "</div>";
1229
+ },
1230
+
1231
+ showVerticalResults: function () {
1232
+ var $this = this;
1233
+
1234
+ $this.showResultsBox();
1235
+
1236
+ if ($this.n.items.length > 0) {
1237
+ var count = (($this.n.items.length < $this.o.itemscount) ? $this.n.items.length : $this.o.itemscount);
1238
+ var groups = $('.group', $this.n.resultsDiv);
1239
+
1240
+ if ($this.n.items.length <= $this.o.itemscount) {
1241
+ $this.n.results.css({
1242
+ height: 'auto'
1243
+ });
1244
+ } else {
1245
+
1246
+ // Set the height to a fictive value to refresh the scrollbar
1247
+ // .. otherwise the height is not calculated correctly, because of the scrollbar width.
1248
+ $this.n.results.css({
1249
+ height: 30
1250
+ });
1251
+ $this.resize();
1252
+
1253
+ // Here now we have the correct item height values with the scrollbar enabled
1254
+ var i = 0;
1255
+ var h = 0;
1256
+ var final_h = 0;
1257
+ var highest = 0;
1258
+
1259
+ $this.n.items.each(function () {
1260
+ h += $(this).outerHeight(true);
1261
+ if ($(this).outerHeight(true) > highest)
1262
+ highest = $(this).outerHeight(true);
1263
+ i++;
1264
+ });
1265
+
1266
+ // Get an initial height based on the highest item x viewport
1267
+ final_h = highest * count;
1268
+ // Reduce the final height to the overall height if exceeds it
1269
+ if (final_h > h)
1270
+ final_h = h;
1271
+
1272
+ // Count the average height * viewport size
1273
+ i = i < 1 ? 1 : i;
1274
+ h = h / i * count;
1275
+
1276
+ $this.n.results.css({
1277
+ height: final_h
1278
+ });
1279
+ }
1280
+
1281
+ // ..then all the other math stuff from the resize event
1282
+ $this.resize();
1283
+
1284
+ // Mark the last item
1285
+ $this.n.items.last().addClass('asl_last_item');
1286
+
1287
+ if ($this.o.highlight == 1) {
1288
+ var wholew = (($this.o.highlightwholewords == 1) ? true : false);
1289
+ $("div.item", $this.n.resultsDiv).highlight($this.n.text.val().split(" "), { element: 'span', className: 'highlighted', wordsOnly: wholew });
1290
+ }
1291
+
1292
+ }
1293
+ $this.resize();
1294
+ if ($this.n.items.length == 0) {
1295
+ $this.n.results.css({
1296
+ height: 'auto'
1297
+ });
1298
+ }
1299
+
1300
+ $this.n.results.css({
1301
+ 'overflowY': 'auto'
1302
+ });
1303
+
1304
+ // Scroll to top
1305
+ var $container = $this.is_scroll ? $($this.scroll.getScrollElement()) : $this.n.results;
1306
+ $container.scrollTop(0);
1307
+
1308
+ $this.fixResultsPosition(true);
1309
+ $this.searching = false;
1310
+ },
1311
+
1312
+ initSettingsAnimations: function() {
1313
+ var $this = this;
1314
+ var animDur = 300;
1315
+
1316
+ $this.settAnim = {
1317
+ "showClass": "asl_an_fadeInDrop",
1318
+ "showCSS": {
1319
+ "visibility": "visible",
1320
+ "display": "block",
1321
+ "opacity": 1,
1322
+ "animation-duration": animDur + 'ms'
1323
+ },
1324
+ "hideClass": "asl_an_fadeOutDrop",
1325
+ "hideCSS": {
1326
+ "visibility": "hidden",
1327
+ "opacity": 0,
1328
+ "display": "none"
1329
+ },
1330
+ "duration": animDur
1331
+ };
1332
+
1333
+ $this.n.searchsettings.css({
1334
+ "-webkit-animation-duration": $this.settAnim.duration + "ms",
1335
+ "animation-duration": $this.settAnim.duration + "ms"
1336
+ });
1337
+ },
1338
+
1339
+ initResultsAnimations: function() {
1340
+ var $this = this;
1341
+ var animDur = 300;
1342
+
1343
+ $this.resAnim = {
1344
+ "showClass": "asl_an_fadeInDrop",
1345
+ "showCSS": {
1346
+ "visibility": "visible",
1347
+ "display": "block",
1348
+ "opacity": 1,
1349
+ "animation-duration": animDur + 'ms'
1350
+ },
1351
+ "hideClass": "asl_an_fadeOutDrop",
1352
+ "hideCSS": {
1353
+ "visibility": "hidden",
1354
+ "opacity": 0,
1355
+ "display": "none"
1356
+ },
1357
+ "duration": animDur
1358
+ };
1359
+
1360
+ $this.n.resultsDiv.css({
1361
+ "-webkit-animation-duration": animDur + "ms",
1362
+ "animation-duration": animDur + "ms"
1363
+ });
1364
+ },
1365
+
1366
+ showSettings: function () {
1367
+ var $this = this;
1368
+
1369
+ $this.n.searchsettings.css($this.settAnim.showCSS);
1370
+ $this.n.searchsettings.removeClass($this.settAnim.hideClass).addClass($this.settAnim.showClass);
1371
+
1372
+ if ($this.settScroll == null && ($this.is_scroll) ) {
1373
+ $this.settScroll = [];
1374
+ $('.asl_sett_scroll', $this.n.searchsettings).each(function(i, o){
1375
+ var _this = this;
1376
+ // Small delay to fix a rendering issue
1377
+ setTimeout(function(){
1378
+ $this.settScroll[i] = new asp_SimpleBar($(_this).get(0), {
1379
+ direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
1380
+ autoHide: true
1381
+ });
1382
+ }, 20);
1383
+ });
1384
+ }
1385
+ $this.n.prosettings.data('opened', 1);
1386
+ $this.fixSettingsPosition(true);
1387
+ },
1388
+
1389
+ hideSettings: function () {
1390
+ var $this = this;
1391
+
1392
+ $this.n.searchsettings.removeClass($this.settAnim.showClass).addClass($this.settAnim.hideClass);
1393
+ setTimeout(function(){
1394
+ $this.n.searchsettings.css($this.settAnim.hideCSS);
1395
+ }, $this.settAnim.duration);
1396
+
1397
+ $this.n.prosettings.data('opened', 0);
1398
+ },
1399
+
1400
+ fixClonedSelf: function() {
1401
+ let $this = this,
1402
+ oldInstanceId = $this.o.iid,
1403
+ oldRID = $this.o.rid;
1404
+ while ( !ASL.instances.set($this) ) {
1405
+ ++$this.o.iid;
1406
+ if ($this.o.iid > 50) {
1407
+ break;
1408
+ }
1409
+ }
1410
+ // oof, this was cloned
1411
+ if ( oldInstanceId != $this.o.iid ) {
1412
+ $this.o.rid = $this.o.id + '_' + $this.o.iid;
1413
+ $this.n.search.get(0).id = "ajaxsearchlite" + $this.o.rid;
1414
+ $this.n.search.removeClass('asl_m_' + oldRID).addClass('asl_m_' + $this.o.rid);
1415
+ $this.n.searchsettings.get(0).id = $this.n.searchsettings.get(0).id.replace('settings'+ oldRID, 'settings' + $this.o.rid);
1416
+ if ( $this.n.searchsettings.hasClass('asl_s_' + oldRID) ) {
1417
+ $this.n.searchsettings.removeClass('asl_s_' + oldRID)
1418
+ .addClass('asl_s_' + $this.o.rid).data('instance', $this.o.iid);
1419
+ } else {
1420
+ $this.n.searchsettings.removeClass('asl_sb_' + oldRID)
1421
+ .addClass('asl_sb_' + $this.o.rid).data('instance', $this.o.iid);
1422
+ }
1423
+ $this.n.resultsDiv.get(0).id = $this.n.resultsDiv.get(0).id.replace('prores'+ oldRID, 'prores' + $this.o.rid);
1424
+ $this.n.resultsDiv.removeClass('asl_r_' + oldRID)
1425
+ .addClass('asl_r_' + $this.o.rid).data('instance', $this.o.iid);
1426
+ $this.n.container.find('.asl_init_data').data('instance', $this.o.iid);
1427
+ $this.n.container.find('.asl_init_data').get(0).id =
1428
+ $this.n.container.find('.asl_init_data').get(0).id.replace('asl_init_id_'+ oldRID, 'asl_init_id_' + $this.o.rid);
1429
+
1430
+ $this.n.prosettings.data('opened', 0);
1431
+ }
1432
+ },
1433
+
1434
+ cleanUp: function () {
1435
+ var $this = this;
1436
+
1437
+ if ($('.searchsettings', $this.n.search).length > 0) {
1438
+ $('body>#ajaxsearchlitesettings' + $this.o.rid).remove();
1439
+ $('body>#ajaxsearchliteres' + $this.o.rid).remove();
1440
+ }
1441
+ },
1442
+
1443
+ orientationChange: function() {
1444
+ var $this = this;
1445
+ $this.fixSettingsPosition();
1446
+ $this.fixResultsPosition();
1447
+ $this.fixTryThisPosition();
1448
+ },
1449
+
1450
+ resize: function () {
1451
+ var $this = this;
1452
+
1453
+ $this.fixSettingsPosition();
1454
+ $this.fixResultsPosition();
1455
+ $this.fixTryThisPosition();
1456
+ },
1457
+ scrolling: function (ignoreVisibility) {
1458
+ var $this = this;
1459
+
1460
+ $this.fixSettingsPosition(ignoreVisibility);
1461
+ $this.fixResultsPosition(ignoreVisibility);
1462
+ },
1463
+
1464
+ fixTryThisPosition: function() {
1465
+ // Not available in lite version
1466
+ },
1467
+
1468
+ fixResultsPosition: function(ignoreVisibility) {
1469
+ ignoreVisibility = typeof ignoreVisibility == 'undefined' ? false : ignoreVisibility;
1470
+ var $this = this;
1471
+
1472
+ var rpos = $this.n.resultsDiv.css('position');
1473
+ if ( rpos != 'fixed' && rpos != 'absolute' )
1474
+ return;
1475
+
1476
+ var bodyTop = 0;
1477
+ if ( $("body").css("position") != "static" )
1478
+ bodyTop = $("body").offset().top;
1479
+
1480
+ if (ignoreVisibility == true || $this.n.resultsDiv.css('visibility') == 'visible') {
1481
+ var _roffset_top = 0;
1482
+ var _roffset_left = 0;
1483
+ var _rposition = $this.n.search.offset();
1484
+
1485
+ if ( rpos == 'fixed' ) {
1486
+ bodyTop = 0;
1487
+ _roffset_top = $(document).scrollTop();
1488
+ _roffset_left = $(document).scrollLeft();
1489
+ if ( isMobile() && detectIOS() && $this.n.text.is(':focus') ) {
1490
+ _roffset_top = $this.savedScrollTop;
1491
+ _rposition.top = $this.savedContainerTop;
1492
+ }
1493
+ }
1494
+
1495
+ if ( typeof _rposition != 'undefined' ) {
1496
+ var vwidth;
1497
+ if ( deviceType() == 'phone' ) {
1498
+ vwidth = $this.o.results.width_phone;
1499
+ } else if ( deviceType() == 'tablet' ) {
1500
+ vwidth = $this.o.results.width_tablet;
1501
+ } else {
1502
+ vwidth = $this.o.results.width;
1503
+ }
1504
+ if ( vwidth == 'auto') {
1505
+ vwidth = $this.n.search.outerWidth() < 240 ? 240 : $this.n.search.outerWidth();
1506
+ }
1507
+ //$this.n.resultsDiv.css('width', !isNaN(vwidth) ? vwidth + 'px' : vwidth);
1508
+ //$this.n.resultsDiv.outerWidth(rwidth);
1509
+ $this.n.resultsDiv.css({
1510
+ width: (!isNaN(vwidth) ? vwidth + 'px' : vwidth),
1511
+ top: _rposition.top + $this.n.search.outerHeight(true) - bodyTop - _roffset_top,
1512
+ left: _rposition.left - _roffset_left
1513
+ });
1514
+ }
1515
+ }
1516
+ },
1517
+
1518
+ fixSettingsPosition: function(ignoreVisibility) {
1519
+ ignoreVisibility = typeof ignoreVisibility == 'undefined' ? false : ignoreVisibility;
1520
+ var $this = this;
1521
+ var bodyTop = 0;
1522
+ if ( $("body").css("position") != "static" )
1523
+ bodyTop = $("body").offset().top;
1524
+
1525
+ if ( ( ignoreVisibility == true || $this.n.prosettings.data('opened') != 0 ) && $this.o.blocking != true ) {
1526
+ $this.fixSettingsWidth();
1527
+
1528
+ if ( $this.n.prosettings.css('display') != 'none' ) {
1529
+ var _node = $this.n.prosettings;
1530
+ } else {
1531
+ var _node = $this.n.promagnifier;
1532
+ }
1533
+ var _sposition = _node.offset();
1534
+ var _soffset_top = 0;
1535
+ var _soffset_left = 0;
1536
+ if ( $this.n.searchsettings.css('position') == 'fixed' ) {
1537
+ _soffset_top = $(window).scrollTop();
1538
+ _soffset_left = $(window).scrollLeft();
1539
+ if ( isMobile() && detectIOS() && $this.n.text.is(':focus') ) {
1540
+ _sposition.top = $this.savedContainerTop;
1541
+ _soffset_top = $this.savedScrollTop;
1542
+ }
1543
+ }
1544
+
1545
+ if ($this.o.settingsimagepos == 'left') {
1546
+ $this.n.searchsettings.css({
1547
+ display: "block",
1548
+ top: _sposition.top + _node.height() - 2 - bodyTop - _soffset_top,
1549
+ left: _sposition.left - _soffset_left
1550
+ });
1551
+ } else {
1552
+ $this.n.searchsettings.css({
1553
+ display: "block",
1554
+ top: _sposition.top + _node.height() - 2 - bodyTop - _soffset_top,
1555
+ left: _sposition.left + _node.width() - $this.n.searchsettings.width() - _soffset_left
1556
+ });
1557
+ }
1558
+ }
1559
+ },
1560
+
1561
+ fixSettingsWidth: function () {
1562
+ // There is always only 1 column in lite version
1563
+ }
1564
+ };
1565
+
1566
+ function apply_filters() {
1567
+ if ( typeof wp != 'undefined' && typeof wp.hooks != 'undefined' && typeof wp.hooks.applyFilters != 'undefined' ) {
1568
+ return wp.hooks.applyFilters.apply(null, arguments);
1569
+ } else {
1570
+ return typeof arguments[1] != 'undefined' ? arguments[1] : false;
1571
+ }
1572
+ }
1573
+
1574
+ function deviceType() {
1575
+ var w = $(window).width();
1576
+ if ( w <= 640 ) {
1577
+ return 'phone';
1578
+ } else if ( w <= 1024 ) {
1579
+ return 'tablet';
1580
+ } else {
1581
+ return 'desktop';
1582
+ }
1583
+ }
1584
+
1585
+ /* Mobile detection - Touch desktop device safe! */
1586
+ function isMobile() {
1587
+ try{ document.createEvent("TouchEvent"); return true; }
1588
+ catch(e){ return false; }
1589
+ }
1590
+
1591
+ function formData(form, data) {
1592
+ var els = form.find(':input').get();
1593
+
1594
+ if(arguments.length === 1) {
1595
+ // return all data
1596
+ data = {};
1597
+
1598
+ $.each(els, function() {
1599
+ if (this.name && !this.disabled && (this.checked
1600
+ || /select|textarea/i.test(this.nodeName)
1601
+ || /text/i.test(this.type)) &&
1602
+ !$(this).hasClass('asl_datepicker_field') &&
1603
+ !$(this).hasClass('asl_datepicker')
1604
+ ) {
1605
+ if(data[this.name] == undefined){
1606
+ data[this.name] = [];
1607
+ }
1608
+ data[this.name].push($(this).val());
1609
+ }
1610
+ });
1611
+ return JSON.stringify(data);
1612
+ } else {
1613
+ if ( typeof data != "object" )
1614
+ data = JSON.parse(data);
1615
+ $.each(els, function() {
1616
+ if (this.name) {
1617
+ if (data[this.name]) {
1618
+ var names = data[this.name];
1619
+ var $this = $(this);
1620
+ if(Object.prototype.toString.call(names) !== '[object Array]'){
1621
+ names = [names]; //backwards compat to old version of this code
1622
+ }
1623
+ if(this.type == 'checkbox' || this.type == 'radio') {
1624
+ var val = $this.val();
1625
+ var found = false;
1626
+ for(var i = 0; i < names.length; i++){
1627
+ if(names[i] == val){
1628
+ found = true;
1629
+ break;
1630
+ }
1631
+ }
1632
+ $this.attr("checked", found);
1633
+ } else {
1634
+ $this.val(names[0]);
1635
+ }
1636
+ }
1637
+ }
1638
+ });
1639
+ return form;
1640
+ }
1641
+ }
1642
+
1643
+ function asl_nice_phrase(s) {
1644
+ return encodeURIComponent(s).replace(/\%20/g, '+');
1645
+ }
1646
+
1647
+ function asl_unquote_phrase(s) {
1648
+ return s.replace(/"|'/g, '');
1649
+ }
1650
+
1651
+ function asl_submit_to_url(action, method, input, target) {
1652
+ 'use strict';
1653
+ var form;
1654
+ form = $('<form />', {
1655
+ action: action,
1656
+ method: method,
1657
+ style: 'display: none;'
1658
+ });
1659
+ if (typeof input !== 'undefined' && input !== null) {
1660
+ $.each(input, function (name, value) {
1661
+ $('<input />', {
1662
+ type: 'hidden',
1663
+ name: name,
1664
+ value: value
1665
+ }).appendTo(form);
1666
+ });
1667
+ }
1668
+ if ( typeof (target) != 'undefined' && target == 'new')
1669
+ form.attr('target', '_blank');
1670
+ form.appendTo('body').trigger('submit');
1671
+ }
1672
+
1673
+ function open_in_new_tab(url) {
1674
+ $('<a href="' + url + '" target="_blank">').get(0).click();
1675
+ }
1676
+
1677
+ function detectIE() {
1678
+ var ua = window.navigator.userAgent;
1679
+ var msie = ua.indexOf('MSIE '); // <10
1680
+ var trident = ua.indexOf('Trident/'); // 11
1681
+ var edge = ua.indexOf('Edge/'); // EDGE (12)
1682
+
1683
+ if (msie > 0 || trident > 0 || edge > 0)
1684
+ return true;
1685
+
1686
+ // other browser
1687
+ return false;
1688
+ }
1689
+
1690
+ function detectIOS() {
1691
+ if (
1692
+ typeof window.navigator != "undefined" &&
1693
+ typeof window.navigator.userAgent != "undefined"
1694
+ )
1695
+ return window.navigator.userAgent.match(/(iPod|iPhone|iPad)/) != null;
1696
+ return false;
1697
+ }
1698
+
1699
+ function detectOldIE() {
1700
+ var ua = window.navigator.userAgent;
1701
+
1702
+ var msie = ua.indexOf('MSIE ');
1703
+ if (msie > 0) {
1704
+ return true;
1705
+ }
1706
+
1707
+ return false;
1708
+ }
1709
+
1710
+ // Object.create support test, and fallback for browsers without it
1711
+ if (typeof Object.create !== 'function') {
1712
+ Object.create = function (o) {
1713
+ function F() {
1714
+ }
1715
+
1716
+ F.prototype = o;
1717
+ return new F();
1718
+ };
1719
+ }
1720
+
1721
+
1722
+ // Create a plugin based on a defined object
1723
+ $.plugin = function (name, object) {
1724
+ $.fn[name] = function (options) {
1725
+ return this.each(function () {
1726
+ if (!$.data(this, name)) {
1727
+ $.data(this, name, Object.create(object).init(
1728
+ options, this));
1729
+ }
1730
+ });
1731
+ };
1732
+ };
1733
+
1734
+ $.plugin('ajaxsearchlite', methods);
1735
+
1736
+ /**
1737
+ *
1738
+ * Base64 encode / decode
1739
+ * http://www.webtoolkit.info/
1740
+ *
1741
+ **/
1742
+ var Base64 = {
1743
+
1744
+ // private property
1745
+ _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
1746
+
1747
+ // public method for encoding
1748
+ encode : function (input) {
1749
+ var output = "";
1750
+ var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
1751
+ var i = 0;
1752
+
1753
+ input = Base64._utf8_encode(input);
1754
+
1755
+ while (i < input.length) {
1756
+
1757
+ chr1 = input.charCodeAt(i++);
1758
+ chr2 = input.charCodeAt(i++);
1759
+ chr3 = input.charCodeAt(i++);
1760
+
1761
+ enc1 = chr1 >> 2;
1762
+ enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
1763
+ enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
1764
+ enc4 = chr3 & 63;
1765
+
1766
+ if (isNaN(chr2)) {
1767
+ enc3 = enc4 = 64;
1768
+ } else if (isNaN(chr3)) {
1769
+ enc4 = 64;
1770
+ }
1771
+
1772
+ output = output +
1773
+ this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
1774
+ this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
1775
+
1776
+ }
1777
+
1778
+ return output;
1779
+ },
1780
+
1781
+ // public method for decoding
1782
+ decode : function (input) {
1783
+ var output = "";
1784
+ var chr1, chr2, chr3;
1785
+ var enc1, enc2, enc3, enc4;
1786
+ var i = 0;
1787
+
1788
+ input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
1789
+
1790
+ while (i < input.length) {
1791
+
1792
+ enc1 = this._keyStr.indexOf(input.charAt(i++));
1793
+ enc2 = this._keyStr.indexOf(input.charAt(i++));
1794
+ enc3 = this._keyStr.indexOf(input.charAt(i++));
1795
+ enc4 = this._keyStr.indexOf(input.charAt(i++));
1796
+
1797
+ chr1 = (enc1 << 2) | (enc2 >> 4);
1798
+ chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
1799
+ chr3 = ((enc3 & 3) << 6) | enc4;
1800
+
1801
+ output = output + String.fromCharCode(chr1);
1802
+
1803
+ if (enc3 != 64) {
1804
+ output = output + String.fromCharCode(chr2);
1805
+ }
1806
+ if (enc4 != 64) {
1807
+ output = output + String.fromCharCode(chr3);
1808
+ }
1809
+
1810
+ }
1811
+
1812
+ output = Base64._utf8_decode(output);
1813
+
1814
+ return output;
1815
+
1816
+ },
1817
+
1818
+ // private method for UTF-8 encoding
1819
+ _utf8_encode : function (string) {
1820
+ string = string.replace(/\r\n/g,"\n");
1821
+ var utftext = "";
1822
+
1823
+ for (var n = 0; n < string.length; n++) {
1824
+
1825
+ var c = string.charCodeAt(n);
1826
+
1827
+ if (c < 128) {
1828
+ utftext += String.fromCharCode(c);
1829
+ }
1830
+ else if((c > 127) && (c < 2048)) {
1831
+ utftext += String.fromCharCode((c >> 6) | 192);
1832
+ utftext += String.fromCharCode((c & 63) | 128);
1833
+ }
1834
+ else {
1835
+ utftext += String.fromCharCode((c >> 12) | 224);
1836
+ utftext += String.fromCharCode(((c >> 6) & 63) | 128);
1837
+ utftext += String.fromCharCode((c & 63) | 128);
1838
+ }
1839
+
1840
+ }
1841
+
1842
+ return utftext;
1843
+ },
1844
+
1845
+ // private method for UTF-8 decoding
1846
+ _utf8_decode : function (utftext) {
1847
+ var string = "";
1848
+ var i = 0;
1849
+ var c = c1 = c2 = 0;
1850
+
1851
+ while ( i < utftext.length ) {
1852
+
1853
+ c = utftext.charCodeAt(i);
1854
+
1855
+ if (c < 128) {
1856
+ string += String.fromCharCode(c);
1857
+ i++;
1858
+ }
1859
+ else if((c > 191) && (c < 224)) {
1860
+ c2 = utftext.charCodeAt(i+1);
1861
+ string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
1862
+ i += 2;
1863
+ }
1864
+ else {
1865
+ c2 = utftext.charCodeAt(i+1);
1866
+ c3 = utftext.charCodeAt(i+2);
1867
+ string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
1868
+ i += 3;
1869
+ }
1870
+
1871
+ }
1872
+
1873
+ return string;
1874
+ }
1875
+
1876
+ }
1877
+ })(jQuery);}
1878
+ })(asljQuery, asljQuery, window);(function(jQuery, $, window){
1879
+ /**
1880
+ * asp_SimpleBar.js - v5.3.5
1881
+ * Scrollbars, simpler.
1882
+ * https://grsmto.github.io/asp_simplebar/
1883
+ *
1884
+ * Made by Adrien Denat from a fork by Jonathan Nicol
1885
+ * Under MIT License
1886
+ */
1887
+
1888
+ (function (global, factory) {
1889
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('core-js/modules/es.array.for-each'), require('core-js/modules/web.dom-collections.for-each'), require('core-js/modules/es.array.filter'), require('core-js/modules/es.array.iterator'), require('core-js/modules/es.object.assign'), require('core-js/modules/es.object.to-string'), require('core-js/modules/es.parse-int'), require('core-js/modules/es.string.iterator'), require('core-js/modules/es.weak-map'), require('core-js/modules/web.dom-collections.iterator'), require('core-js/modules/es.array.reduce'), require('core-js/modules/es.function.name'), require('core-js/modules/es.regexp.exec'), require('core-js/modules/es.string.match'), require('core-js/modules/es.string.replace')) :
1890
+ typeof define === 'function' && define.amd ? define(['core-js/modules/es.array.for-each', 'core-js/modules/web.dom-collections.for-each', 'core-js/modules/es.array.filter', 'core-js/modules/es.array.iterator', 'core-js/modules/es.object.assign', 'core-js/modules/es.object.to-string', 'core-js/modules/es.parse-int', 'core-js/modules/es.string.iterator', 'core-js/modules/es.weak-map', 'core-js/modules/web.dom-collections.iterator', 'core-js/modules/es.array.reduce', 'core-js/modules/es.function.name', 'core-js/modules/es.regexp.exec', 'core-js/modules/es.string.match', 'core-js/modules/es.string.replace'], factory) :
1891
+ (global = global || self, global.asp_SimpleBar = factory());
1892
+ }(this, function () { 'use strict';
1893
+
1894
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1895
+
1896
+ /**
1897
+ * lodash (Custom Build) <https://lodash.com/>
1898
+ * Build: `lodash modularize exports="npm" -o ./`
1899
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
1900
+ * Released under MIT license <https://lodash.com/license>
1901
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1902
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1903
+ */
1904
+
1905
+ /** Used as the `TypeError` message for "Functions" methods. */
1906
+ var FUNC_ERROR_TEXT = 'Expected a function';
1907
+
1908
+ /** Used as references for various `Number` constants. */
1909
+ var NAN = 0 / 0;
1910
+
1911
+ /** `Object#toString` result references. */
1912
+ var symbolTag = '[object Symbol]';
1913
+
1914
+ /** Used to match leading and trailing whitespace. */
1915
+ var reTrim = /^\s+|\s+$/g;
1916
+
1917
+ /** Used to detect bad signed hexadecimal string values. */
1918
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
1919
+
1920
+ /** Used to detect binary string values. */
1921
+ var reIsBinary = /^0b[01]+$/i;
1922
+
1923
+ /** Used to detect octal string values. */
1924
+ var reIsOctal = /^0o[0-7]+$/i;
1925
+
1926
+ /** Built-in method references without a dependency on `root`. */
1927
+ var freeParseInt = parseInt;
1928
+
1929
+ /** Detect free variable `global` from Node.js. */
1930
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1931
+
1932
+ /** Detect free variable `self`. */
1933
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1934
+
1935
+ /** Used as a reference to the global object. */
1936
+ var root = freeGlobal || freeSelf || Function('return this')();
1937
+
1938
+ /** Used for built-in method references. */
1939
+ var objectProto = Object.prototype;
1940
+
1941
+ /**
1942
+ * Used to resolve the
1943
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1944
+ * of values.
1945
+ */
1946
+ var objectToString = objectProto.toString;
1947
+
1948
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1949
+ var nativeMax = Math.max,
1950
+ nativeMin = Math.min;
1951
+
1952
+ /**
1953
+ * Gets the timestamp of the number of milliseconds that have elapsed since
1954
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
1955
+ *
1956
+ * @static
1957
+ * @memberOf _
1958
+ * @since 2.4.0
1959
+ * @category Date
1960
+ * @returns {number} Returns the timestamp.
1961
+ * @example
1962
+ *
1963
+ * _.defer(function(stamp) {
1964
+ * console.log(_.now() - stamp);
1965
+ * }, _.now());
1966
+ * // => Logs the number of milliseconds it took for the deferred invocation.
1967
+ */
1968
+ var now = function() {
1969
+ return root.Date.now();
1970
+ };
1971
+
1972
+ /**
1973
+ * Creates a debounced function that delays invoking `func` until after `wait`
1974
+ * milliseconds have elapsed since the last time the debounced function was
1975
+ * invoked. The debounced function comes with a `cancel` method to cancel
1976
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
1977
+ * Provide `options` to indicate whether `func` should be invoked on the
1978
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
1979
+ * with the last arguments provided to the debounced function. Subsequent
1980
+ * calls to the debounced function return the result of the last `func`
1981
+ * invocation.
1982
+ *
1983
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
1984
+ * invoked on the trailing edge of the timeout only if the debounced function
1985
+ * is invoked more than once during the `wait` timeout.
1986
+ *
1987
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
1988
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
1989
+ *
1990
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
1991
+ * for details over the differences between `_.debounce` and `_.throttle`.
1992
+ *
1993
+ * @static
1994
+ * @memberOf _
1995
+ * @since 0.1.0
1996
+ * @category Function
1997
+ * @param {Function} func The function to debounce.
1998
+ * @param {number} [wait=0] The number of milliseconds to delay.
1999
+ * @param {Object} [options={}] The options object.
2000
+ * @param {boolean} [options.leading=false]
2001
+ * Specify invoking on the leading edge of the timeout.
2002
+ * @param {number} [options.maxWait]
2003
+ * The maximum time `func` is allowed to be delayed before it's invoked.
2004
+ * @param {boolean} [options.trailing=true]
2005
+ * Specify invoking on the trailing edge of the timeout.
2006
+ * @returns {Function} Returns the new debounced function.
2007
+ * @example
2008
+ *
2009
+ * // Avoid costly calculations while the window size is in flux.
2010
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
2011
+ *
2012
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
2013
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
2014
+ * 'leading': true,
2015
+ * 'trailing': false
2016
+ * }));
2017
+ *
2018
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
2019
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
2020
+ * var source = new EventSource('/stream');
2021
+ * jQuery(source).on('message', debounced);
2022
+ *
2023
+ * // Cancel the trailing debounced invocation.
2024
+ * jQuery(window).on('popstate', debounced.cancel);
2025
+ */
2026
+ function debounce(func, wait, options) {
2027
+ var lastArgs,
2028
+ lastThis,
2029
+ maxWait,
2030
+ result,
2031
+ timerId,
2032
+ lastCallTime,
2033
+ lastInvokeTime = 0,
2034
+ leading = false,
2035
+ maxing = false,
2036
+ trailing = true;
2037
+
2038
+ if (typeof func != 'function') {
2039
+ throw new TypeError(FUNC_ERROR_TEXT);
2040
+ }
2041
+ wait = toNumber(wait) || 0;
2042
+ if (isObject(options)) {
2043
+ leading = !!options.leading;
2044
+ maxing = 'maxWait' in options;
2045
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
2046
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
2047
+ }
2048
+
2049
+ function invokeFunc(time) {
2050
+ var args = lastArgs,
2051
+ thisArg = lastThis;
2052
+
2053
+ lastArgs = lastThis = undefined;
2054
+ lastInvokeTime = time;
2055
+ result = func.apply(thisArg, args);
2056
+ return result;
2057
+ }
2058
+
2059
+ function leadingEdge(time) {
2060
+ // Reset any `maxWait` timer.
2061
+ lastInvokeTime = time;
2062
+ // Start the timer for the trailing edge.
2063
+ timerId = setTimeout(timerExpired, wait);
2064
+ // Invoke the leading edge.
2065
+ return leading ? invokeFunc(time) : result;
2066
+ }
2067
+
2068
+ function remainingWait(time) {
2069
+ var timeSinceLastCall = time - lastCallTime,
2070
+ timeSinceLastInvoke = time - lastInvokeTime,
2071
+ result = wait - timeSinceLastCall;
2072
+
2073
+ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
2074
+ }
2075
+
2076
+ function shouldInvoke(time) {
2077
+ var timeSinceLastCall = time - lastCallTime,
2078
+ timeSinceLastInvoke = time - lastInvokeTime;
2079
+
2080
+ // Either this is the first call, activity has stopped and we're at the
2081
+ // trailing edge, the system time has gone backwards and we're treating
2082
+ // it as the trailing edge, or we've hit the `maxWait` limit.
2083
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
2084
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
2085
+ }
2086
+
2087
+ function timerExpired() {
2088
+ var time = now();
2089
+ if (shouldInvoke(time)) {
2090
+ return trailingEdge(time);
2091
+ }
2092
+ // Restart the timer.
2093
+ timerId = setTimeout(timerExpired, remainingWait(time));
2094
+ }
2095
+
2096
+ function trailingEdge(time) {
2097
+ timerId = undefined;
2098
+
2099
+ // Only invoke if we have `lastArgs` which means `func` has been
2100
+ // debounced at least once.
2101
+ if (trailing && lastArgs) {
2102
+ return invokeFunc(time);
2103
+ }
2104
+ lastArgs = lastThis = undefined;
2105
+ return result;
2106
+ }
2107
+
2108
+ function cancel() {
2109
+ if (timerId !== undefined) {
2110
+ clearTimeout(timerId);
2111
+ }
2112
+ lastInvokeTime = 0;
2113
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
2114
+ }
2115
+
2116
+ function flush() {
2117
+ return timerId === undefined ? result : trailingEdge(now());
2118
+ }
2119
+
2120
+ function debounced() {
2121
+ var time = now(),
2122
+ isInvoking = shouldInvoke(time);
2123
+
2124
+ lastArgs = arguments;
2125
+ lastThis = this;
2126
+ lastCallTime = time;
2127
+
2128
+ if (isInvoking) {
2129
+ if (timerId === undefined) {
2130
+ return leadingEdge(lastCallTime);
2131
+ }
2132
+ if (maxing) {
2133
+ // Handle invocations in a tight loop.
2134
+ timerId = setTimeout(timerExpired, wait);
2135
+ return invokeFunc(lastCallTime);
2136
+ }
2137
+ }
2138
+ if (timerId === undefined) {
2139
+ timerId = setTimeout(timerExpired, wait);
2140
+ }
2141
+ return result;
2142
+ }
2143
+ debounced.cancel = cancel;
2144
+ debounced.flush = flush;
2145
+ return debounced;
2146
+ }
2147
+
2148
+ /**
2149
+ * Creates a throttled function that only invokes `func` at most once per
2150
+ * every `wait` milliseconds. The throttled function comes with a `cancel`
2151
+ * method to cancel delayed `func` invocations and a `flush` method to
2152
+ * immediately invoke them. Provide `options` to indicate whether `func`
2153
+ * should be invoked on the leading and/or trailing edge of the `wait`
2154
+ * timeout. The `func` is invoked with the last arguments provided to the
2155
+ * throttled function. Subsequent calls to the throttled function return the
2156
+ * result of the last `func` invocation.
2157
+ *
2158
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
2159
+ * invoked on the trailing edge of the timeout only if the throttled function
2160
+ * is invoked more than once during the `wait` timeout.
2161
+ *
2162
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
2163
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
2164
+ *
2165
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
2166
+ * for details over the differences between `_.throttle` and `_.debounce`.
2167
+ *
2168
+ * @static
2169
+ * @memberOf _
2170
+ * @since 0.1.0
2171
+ * @category Function
2172
+ * @param {Function} func The function to throttle.
2173
+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
2174
+ * @param {Object} [options={}] The options object.
2175
+ * @param {boolean} [options.leading=true]
2176
+ * Specify invoking on the leading edge of the timeout.
2177
+ * @param {boolean} [options.trailing=true]
2178
+ * Specify invoking on the trailing edge of the timeout.
2179
+ * @returns {Function} Returns the new throttled function.
2180
+ * @example
2181
+ *
2182
+ * // Avoid excessively updating the position while scrolling.
2183
+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
2184
+ *
2185
+ * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
2186
+ * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
2187
+ * jQuery(element).on('click', throttled);
2188
+ *
2189
+ * // Cancel the trailing throttled invocation.
2190
+ * jQuery(window).on('popstate', throttled.cancel);
2191
+ */
2192
+ function throttle(func, wait, options) {
2193
+ var leading = true,
2194
+ trailing = true;
2195
+
2196
+ if (typeof func != 'function') {
2197
+ throw new TypeError(FUNC_ERROR_TEXT);
2198
+ }
2199
+ if (isObject(options)) {
2200
+ leading = 'leading' in options ? !!options.leading : leading;
2201
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
2202
+ }
2203
+ return debounce(func, wait, {
2204
+ 'leading': leading,
2205
+ 'maxWait': wait,
2206
+ 'trailing': trailing
2207
+ });
2208
+ }
2209
+
2210
+ /**
2211
+ * Checks if `value` is the
2212
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
2213
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
2214
+ *
2215
+ * @static
2216
+ * @memberOf _
2217
+ * @since 0.1.0
2218
+ * @category Lang
2219
+ * @param {*} value The value to check.
2220
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
2221
+ * @example
2222
+ *
2223
+ * _.isObject({});
2224
+ * // => true
2225
+ *
2226
+ * _.isObject([1, 2, 3]);
2227
+ * // => true
2228
+ *
2229
+ * _.isObject(_.noop);
2230
+ * // => true
2231
+ *
2232
+ * _.isObject(null);
2233
+ * // => false
2234
+ */
2235
+ function isObject(value) {
2236
+ var type = typeof value;
2237
+ return !!value && (type == 'object' || type == 'function');
2238
+ }
2239
+
2240
+ /**
2241
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2242
+ * and has a `typeof` result of "object".
2243
+ *
2244
+ * @static
2245
+ * @memberOf _
2246
+ * @since 4.0.0
2247
+ * @category Lang
2248
+ * @param {*} value The value to check.
2249
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2250
+ * @example
2251
+ *
2252
+ * _.isObjectLike({});
2253
+ * // => true
2254
+ *
2255
+ * _.isObjectLike([1, 2, 3]);
2256
+ * // => true
2257
+ *
2258
+ * _.isObjectLike(_.noop);
2259
+ * // => false
2260
+ *
2261
+ * _.isObjectLike(null);
2262
+ * // => false
2263
+ */
2264
+ function isObjectLike(value) {
2265
+ return !!value && typeof value == 'object';
2266
+ }
2267
+
2268
+ /**
2269
+ * Checks if `value` is classified as a `Symbol` primitive or object.
2270
+ *
2271
+ * @static
2272
+ * @memberOf _
2273
+ * @since 4.0.0
2274
+ * @category Lang
2275
+ * @param {*} value The value to check.
2276
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
2277
+ * @example
2278
+ *
2279
+ * _.isSymbol(Symbol.iterator);
2280
+ * // => true
2281
+ *
2282
+ * _.isSymbol('abc');
2283
+ * // => false
2284
+ */
2285
+ function isSymbol(value) {
2286
+ return typeof value == 'symbol' ||
2287
+ (isObjectLike(value) && objectToString.call(value) == symbolTag);
2288
+ }
2289
+
2290
+ /**
2291
+ * Converts `value` to a number.
2292
+ *
2293
+ * @static
2294
+ * @memberOf _
2295
+ * @since 4.0.0
2296
+ * @category Lang
2297
+ * @param {*} value The value to process.
2298
+ * @returns {number} Returns the number.
2299
+ * @example
2300
+ *
2301
+ * _.toNumber(3.2);
2302
+ * // => 3.2
2303
+ *
2304
+ * _.toNumber(Number.MIN_VALUE);
2305
+ * // => 5e-324
2306
+ *
2307
+ * _.toNumber(Infinity);
2308
+ * // => Infinity
2309
+ *
2310
+ * _.toNumber('3.2');
2311
+ * // => 3.2
2312
+ */
2313
+ function toNumber(value) {
2314
+ if (typeof value == 'number') {
2315
+ return value;
2316
+ }
2317
+ if (isSymbol(value)) {
2318
+ return NAN;
2319
+ }
2320
+ if (isObject(value)) {
2321
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
2322
+ value = isObject(other) ? (other + '') : other;
2323
+ }
2324
+ if (typeof value != 'string') {
2325
+ return value === 0 ? value : +value;
2326
+ }
2327
+ value = value.replace(reTrim, '');
2328
+ var isBinary = reIsBinary.test(value);
2329
+ return (isBinary || reIsOctal.test(value))
2330
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
2331
+ : (reIsBadHex.test(value) ? NAN : +value);
2332
+ }
2333
+
2334
+ var lodash_throttle = throttle;
2335
+
2336
+ /**
2337
+ * lodash (Custom Build) <https://lodash.com/>
2338
+ * Build: `lodash modularize exports="npm" -o ./`
2339
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
2340
+ * Released under MIT license <https://lodash.com/license>
2341
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2342
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2343
+ */
2344
+
2345
+ /** Used as the `TypeError` message for "Functions" methods. */
2346
+ var FUNC_ERROR_TEXT$1 = 'Expected a function';
2347
+
2348
+ /** Used as references for various `Number` constants. */
2349
+ var NAN$1 = 0 / 0;
2350
+
2351
+ /** `Object#toString` result references. */
2352
+ var symbolTag$1 = '[object Symbol]';
2353
+
2354
+ /** Used to match leading and trailing whitespace. */
2355
+ var reTrim$1 = /^\s+|\s+$/g;
2356
+
2357
+ /** Used to detect bad signed hexadecimal string values. */
2358
+ var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
2359
+
2360
+ /** Used to detect binary string values. */
2361
+ var reIsBinary$1 = /^0b[01]+$/i;
2362
+
2363
+ /** Used to detect octal string values. */
2364
+ var reIsOctal$1 = /^0o[0-7]+$/i;
2365
+
2366
+ /** Built-in method references without a dependency on `root`. */
2367
+ var freeParseInt$1 = parseInt;
2368
+
2369
+ /** Detect free variable `global` from Node.js. */
2370
+ var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2371
+
2372
+ /** Detect free variable `self`. */
2373
+ var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && self;
2374
+
2375
+ /** Used as a reference to the global object. */
2376
+ var root$1 = freeGlobal$1 || freeSelf$1 || Function('return this')();
2377
+
2378
+ /** Used for built-in method references. */
2379
+ var objectProto$1 = Object.prototype;
2380
+
2381
+ /**
2382
+ * Used to resolve the
2383
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
2384
+ * of values.
2385
+ */
2386
+ var objectToString$1 = objectProto$1.toString;
2387
+
2388
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2389
+ var nativeMax$1 = Math.max,
2390
+ nativeMin$1 = Math.min;
2391
+
2392
+ /**
2393
+ * Gets the timestamp of the number of milliseconds that have elapsed since
2394
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
2395
+ *
2396
+ * @static
2397
+ * @memberOf _
2398
+ * @since 2.4.0
2399
+ * @category Date
2400
+ * @returns {number} Returns the timestamp.
2401
+ * @example
2402
+ *
2403
+ * _.defer(function(stamp) {
2404
+ * console.log(_.now() - stamp);
2405
+ * }, _.now());
2406
+ * // => Logs the number of milliseconds it took for the deferred invocation.
2407
+ */
2408
+ var now$1 = function() {
2409
+ return root$1.Date.now();
2410
+ };
2411
+
2412
+ /**
2413
+ * Creates a debounced function that delays invoking `func` until after `wait`
2414
+ * milliseconds have elapsed since the last time the debounced function was
2415
+ * invoked. The debounced function comes with a `cancel` method to cancel
2416
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
2417
+ * Provide `options` to indicate whether `func` should be invoked on the
2418
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
2419
+ * with the last arguments provided to the debounced function. Subsequent
2420
+ * calls to the debounced function return the result of the last `func`
2421
+ * invocation.
2422
+ *
2423
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
2424
+ * invoked on the trailing edge of the timeout only if the debounced function
2425
+ * is invoked more than once during the `wait` timeout.
2426
+ *
2427
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
2428
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
2429
+ *
2430
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
2431
+ * for details over the differences between `_.debounce` and `_.throttle`.
2432
+ *
2433
+ * @static
2434
+ * @memberOf _
2435
+ * @since 0.1.0
2436
+ * @category Function
2437
+ * @param {Function} func The function to debounce.
2438
+ * @param {number} [wait=0] The number of milliseconds to delay.
2439
+ * @param {Object} [options={}] The options object.
2440
+ * @param {boolean} [options.leading=false]
2441
+ * Specify invoking on the leading edge of the timeout.
2442
+ * @param {number} [options.maxWait]
2443
+ * The maximum time `func` is allowed to be delayed before it's invoked.
2444
+ * @param {boolean} [options.trailing=true]
2445
+ * Specify invoking on the trailing edge of the timeout.
2446
+ * @returns {Function} Returns the new debounced function.
2447
+ * @example
2448
+ *
2449
+ * // Avoid costly calculations while the window size is in flux.
2450
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
2451
+ *
2452
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
2453
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
2454
+ * 'leading': true,
2455
+ * 'trailing': false
2456
+ * }));
2457
+ *
2458
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
2459
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
2460
+ * var source = new EventSource('/stream');
2461
+ * jQuery(source).on('message', debounced);
2462
+ *
2463
+ * // Cancel the trailing debounced invocation.
2464
+ * jQuery(window).on('popstate', debounced.cancel);
2465
+ */
2466
+ function debounce$1(func, wait, options) {
2467
+ var lastArgs,
2468
+ lastThis,
2469
+ maxWait,
2470
+ result,
2471
+ timerId,
2472
+ lastCallTime,
2473
+ lastInvokeTime = 0,
2474
+ leading = false,
2475
+ maxing = false,
2476
+ trailing = true;
2477
+
2478
+ if (typeof func != 'function') {
2479
+ throw new TypeError(FUNC_ERROR_TEXT$1);
2480
+ }
2481
+ wait = toNumber$1(wait) || 0;
2482
+ if (isObject$1(options)) {
2483
+ leading = !!options.leading;
2484
+ maxing = 'maxWait' in options;
2485
+ maxWait = maxing ? nativeMax$1(toNumber$1(options.maxWait) || 0, wait) : maxWait;
2486
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
2487
+ }
2488
+
2489
+ function invokeFunc(time) {
2490
+ var args = lastArgs,
2491
+ thisArg = lastThis;
2492
+
2493
+ lastArgs = lastThis = undefined;
2494
+ lastInvokeTime = time;
2495
+ result = func.apply(thisArg, args);
2496
+ return result;
2497
+ }
2498
+
2499
+ function leadingEdge(time) {
2500
+ // Reset any `maxWait` timer.
2501
+ lastInvokeTime = time;
2502
+ // Start the timer for the trailing edge.
2503
+ timerId = setTimeout(timerExpired, wait);
2504
+ // Invoke the leading edge.
2505
+ return leading ? invokeFunc(time) : result;
2506
+ }
2507
+
2508
+ function remainingWait(time) {
2509
+ var timeSinceLastCall = time - lastCallTime,
2510
+ timeSinceLastInvoke = time - lastInvokeTime,
2511
+ result = wait - timeSinceLastCall;
2512
+
2513
+ return maxing ? nativeMin$1(result, maxWait - timeSinceLastInvoke) : result;
2514
+ }
2515
+
2516
+ function shouldInvoke(time) {
2517
+ var timeSinceLastCall = time - lastCallTime,
2518
+ timeSinceLastInvoke = time - lastInvokeTime;
2519
+
2520
+ // Either this is the first call, activity has stopped and we're at the
2521
+ // trailing edge, the system time has gone backwards and we're treating
2522
+ // it as the trailing edge, or we've hit the `maxWait` limit.
2523
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
2524
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
2525
+ }
2526
+
2527
+ function timerExpired() {
2528
+ var time = now$1();
2529
+ if (shouldInvoke(time)) {
2530
+ return trailingEdge(time);
2531
+ }
2532
+ // Restart the timer.
2533
+ timerId = setTimeout(timerExpired, remainingWait(time));
2534
+ }
2535
+
2536
+ function trailingEdge(time) {
2537
+ timerId = undefined;
2538
+
2539
+ // Only invoke if we have `lastArgs` which means `func` has been
2540
+ // debounced at least once.
2541
+ if (trailing && lastArgs) {
2542
+ return invokeFunc(time);
2543
+ }
2544
+ lastArgs = lastThis = undefined;
2545
+ return result;
2546
+ }
2547
+
2548
+ function cancel() {
2549
+ if (timerId !== undefined) {
2550
+ clearTimeout(timerId);
2551
+ }
2552
+ lastInvokeTime = 0;
2553
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
2554
+ }
2555
+
2556
+ function flush() {
2557
+ return timerId === undefined ? result : trailingEdge(now$1());
2558
+ }
2559
+
2560
+ function debounced() {
2561
+ var time = now$1(),
2562
+ isInvoking = shouldInvoke(time);
2563
+
2564
+ lastArgs = arguments;
2565
+ lastThis = this;
2566
+ lastCallTime = time;
2567
+
2568
+ if (isInvoking) {
2569
+ if (timerId === undefined) {
2570
+ return leadingEdge(lastCallTime);
2571
+ }
2572
+ if (maxing) {
2573
+ // Handle invocations in a tight loop.
2574
+ timerId = setTimeout(timerExpired, wait);
2575
+ return invokeFunc(lastCallTime);
2576
+ }
2577
+ }
2578
+ if (timerId === undefined) {
2579
+ timerId = setTimeout(timerExpired, wait);
2580
+ }
2581
+ return result;
2582
+ }
2583
+ debounced.cancel = cancel;
2584
+ debounced.flush = flush;
2585
+ return debounced;
2586
+ }
2587
+
2588
+ /**
2589
+ * Checks if `value` is the
2590
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
2591
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
2592
+ *
2593
+ * @static
2594
+ * @memberOf _
2595
+ * @since 0.1.0
2596
+ * @category Lang
2597
+ * @param {*} value The value to check.
2598
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
2599
+ * @example
2600
+ *
2601
+ * _.isObject({});
2602
+ * // => true
2603
+ *
2604
+ * _.isObject([1, 2, 3]);
2605
+ * // => true
2606
+ *
2607
+ * _.isObject(_.noop);
2608
+ * // => true
2609
+ *
2610
+ * _.isObject(null);
2611
+ * // => false
2612
+ */
2613
+ function isObject$1(value) {
2614
+ var type = typeof value;
2615
+ return !!value && (type == 'object' || type == 'function');
2616
+ }
2617
+
2618
+ /**
2619
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2620
+ * and has a `typeof` result of "object".
2621
+ *
2622
+ * @static
2623
+ * @memberOf _
2624
+ * @since 4.0.0
2625
+ * @category Lang
2626
+ * @param {*} value The value to check.
2627
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2628
+ * @example
2629
+ *
2630
+ * _.isObjectLike({});
2631
+ * // => true
2632
+ *
2633
+ * _.isObjectLike([1, 2, 3]);
2634
+ * // => true
2635
+ *
2636
+ * _.isObjectLike(_.noop);
2637
+ * // => false
2638
+ *
2639
+ * _.isObjectLike(null);
2640
+ * // => false
2641
+ */
2642
+ function isObjectLike$1(value) {
2643
+ return !!value && typeof value == 'object';
2644
+ }
2645
+
2646
+ /**
2647
+ * Checks if `value` is classified as a `Symbol` primitive or object.
2648
+ *
2649
+ * @static
2650
+ * @memberOf _
2651
+ * @since 4.0.0
2652
+ * @category Lang
2653
+ * @param {*} value The value to check.
2654
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
2655
+ * @example
2656
+ *
2657
+ * _.isSymbol(Symbol.iterator);
2658
+ * // => true
2659
+ *
2660
+ * _.isSymbol('abc');
2661
+ * // => false
2662
+ */
2663
+ function isSymbol$1(value) {
2664
+ return typeof value == 'symbol' ||
2665
+ (isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1);
2666
+ }
2667
+
2668
+ /**
2669
+ * Converts `value` to a number.
2670
+ *
2671
+ * @static
2672
+ * @memberOf _
2673
+ * @since 4.0.0
2674
+ * @category Lang
2675
+ * @param {*} value The value to process.
2676
+ * @returns {number} Returns the number.
2677
+ * @example
2678
+ *
2679
+ * _.toNumber(3.2);
2680
+ * // => 3.2
2681
+ *
2682
+ * _.toNumber(Number.MIN_VALUE);
2683
+ * // => 5e-324
2684
+ *
2685
+ * _.toNumber(Infinity);
2686
+ * // => Infinity
2687
+ *
2688
+ * _.toNumber('3.2');
2689
+ * // => 3.2
2690
+ */
2691
+ function toNumber$1(value) {
2692
+ if (typeof value == 'number') {
2693
+ return value;
2694
+ }
2695
+ if (isSymbol$1(value)) {
2696
+ return NAN$1;
2697
+ }
2698
+ if (isObject$1(value)) {
2699
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
2700
+ value = isObject$1(other) ? (other + '') : other;
2701
+ }
2702
+ if (typeof value != 'string') {
2703
+ return value === 0 ? value : +value;
2704
+ }
2705
+ value = value.replace(reTrim$1, '');
2706
+ var isBinary = reIsBinary$1.test(value);
2707
+ return (isBinary || reIsOctal$1.test(value))
2708
+ ? freeParseInt$1(value.slice(2), isBinary ? 2 : 8)
2709
+ : (reIsBadHex$1.test(value) ? NAN$1 : +value);
2710
+ }
2711
+
2712
+ var lodash_debounce = debounce$1;
2713
+
2714
+ /**
2715
+ * lodash (Custom Build) <https://lodash.com/>
2716
+ * Build: `lodash modularize exports="npm" -o ./`
2717
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
2718
+ * Released under MIT license <https://lodash.com/license>
2719
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2720
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2721
+ */
2722
+
2723
+ /** Used as the `TypeError` message for "Functions" methods. */
2724
+ var FUNC_ERROR_TEXT$2 = 'Expected a function';
2725
+
2726
+ /** Used to stand-in for `undefined` hash values. */
2727
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
2728
+
2729
+ /** `Object#toString` result references. */
2730
+ var funcTag = '[object Function]',
2731
+ genTag = '[object GeneratorFunction]';
2732
+
2733
+ /**
2734
+ * Used to match `RegExp`
2735
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
2736
+ */
2737
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
2738
+
2739
+ /** Used to detect host constructors (Safari). */
2740
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
2741
+
2742
+ /** Detect free variable `global` from Node.js. */
2743
+ var freeGlobal$2 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2744
+
2745
+ /** Detect free variable `self`. */
2746
+ var freeSelf$2 = typeof self == 'object' && self && self.Object === Object && self;
2747
+
2748
+ /** Used as a reference to the global object. */
2749
+ var root$2 = freeGlobal$2 || freeSelf$2 || Function('return this')();
2750
+
2751
+ /**
2752
+ * Gets the value at `key` of `object`.
2753
+ *
2754
+ * @private
2755
+ * @param {Object} [object] The object to query.
2756
+ * @param {string} key The key of the property to get.
2757
+ * @returns {*} Returns the property value.
2758
+ */
2759
+ function getValue(object, key) {
2760
+ return object == null ? undefined : object[key];
2761
+ }
2762
+
2763
+ /**
2764
+ * Checks if `value` is a host object in IE < 9.
2765
+ *
2766
+ * @private
2767
+ * @param {*} value The value to check.
2768
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
2769
+ */
2770
+ function isHostObject(value) {
2771
+ // Many host objects are `Object` objects that can coerce to strings
2772
+ // despite having improperly defined `toString` methods.
2773
+ var result = false;
2774
+ if (value != null && typeof value.toString != 'function') {
2775
+ try {
2776
+ result = !!(value + '');
2777
+ } catch (e) {}
2778
+ }
2779
+ return result;
2780
+ }
2781
+
2782
+ /** Used for built-in method references. */
2783
+ var arrayProto = Array.prototype,
2784
+ funcProto = Function.prototype,
2785
+ objectProto$2 = Object.prototype;
2786
+
2787
+ /** Used to detect overreaching core-js shims. */
2788
+ var coreJsData = root$2['__core-js_shared__'];
2789
+
2790
+ /** Used to detect methods masquerading as native. */
2791
+ var maskSrcKey = (function() {
2792
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
2793
+ return uid ? ('Symbol(src)_1.' + uid) : '';
2794
+ }());
2795
+
2796
+ /** Used to resolve the decompiled source of functions. */
2797
+ var funcToString = funcProto.toString;
2798
+
2799
+ /** Used to check objects for own properties. */
2800
+ var hasOwnProperty = objectProto$2.hasOwnProperty;
2801
+
2802
+ /**
2803
+ * Used to resolve the
2804
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
2805
+ * of values.
2806
+ */
2807
+ var objectToString$2 = objectProto$2.toString;
2808
+
2809
+ /** Used to detect if a method is native. */
2810
+ var reIsNative = RegExp('^' +
2811
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
2812
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
2813
+ );
2814
+
2815
+ /** Built-in value references. */
2816
+ var splice = arrayProto.splice;
2817
+
2818
+ /* Built-in method references that are verified to be native. */
2819
+ var Map = getNative(root$2, 'Map'),
2820
+ nativeCreate = getNative(Object, 'create');
2821
+
2822
+ /**
2823
+ * Creates a hash object.
2824
+ *
2825
+ * @private
2826
+ * @constructor
2827
+ * @param {Array} [entries] The key-value pairs to cache.
2828
+ */
2829
+ function Hash(entries) {
2830
+ var index = -1,
2831
+ length = entries ? entries.length : 0;
2832
+
2833
+ this.clear();
2834
+ while (++index < length) {
2835
+ var entry = entries[index];
2836
+ this.set(entry[0], entry[1]);
2837
+ }
2838
+ }
2839
+
2840
+ /**
2841
+ * Removes all key-value entries from the hash.
2842
+ *
2843
+ * @private
2844
+ * @name clear
2845
+ * @memberOf Hash
2846
+ */
2847
+ function hashClear() {
2848
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
2849
+ }
2850
+
2851
+ /**
2852
+ * Removes `key` and its value from the hash.
2853
+ *
2854
+ * @private
2855
+ * @name delete
2856
+ * @memberOf Hash
2857
+ * @param {Object} hash The hash to modify.
2858
+ * @param {string} key The key of the value to remove.
2859
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2860
+ */
2861
+ function hashDelete(key) {
2862
+ return this.has(key) && delete this.__data__[key];
2863
+ }
2864
+
2865
+ /**
2866
+ * Gets the hash value for `key`.
2867
+ *
2868
+ * @private
2869
+ * @name get
2870
+ * @memberOf Hash
2871
+ * @param {string} key The key of the value to get.
2872
+ * @returns {*} Returns the entry value.
2873
+ */
2874
+ function hashGet(key) {
2875
+ var data = this.__data__;
2876
+ if (nativeCreate) {
2877
+ var result = data[key];
2878
+ return result === HASH_UNDEFINED ? undefined : result;
2879
+ }
2880
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
2881
+ }
2882
+
2883
+ /**
2884
+ * Checks if a hash value for `key` exists.
2885
+ *
2886
+ * @private
2887
+ * @name has
2888
+ * @memberOf Hash
2889
+ * @param {string} key The key of the entry to check.
2890
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2891
+ */
2892
+ function hashHas(key) {
2893
+ var data = this.__data__;
2894
+ return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
2895
+ }
2896
+
2897
+ /**
2898
+ * Sets the hash `key` to `value`.
2899
+ *
2900
+ * @private
2901
+ * @name set
2902
+ * @memberOf Hash
2903
+ * @param {string} key The key of the value to set.
2904
+ * @param {*} value The value to set.
2905
+ * @returns {Object} Returns the hash instance.
2906
+ */
2907
+ function hashSet(key, value) {
2908
+ var data = this.__data__;
2909
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
2910
+ return this;
2911
+ }
2912
+
2913
+ // Add methods to `Hash`.
2914
+ Hash.prototype.clear = hashClear;
2915
+ Hash.prototype['delete'] = hashDelete;
2916
+ Hash.prototype.get = hashGet;
2917
+ Hash.prototype.has = hashHas;
2918
+ Hash.prototype.set = hashSet;
2919
+
2920
+ /**
2921
+ * Creates an list cache object.
2922
+ *
2923
+ * @private
2924
+ * @constructor
2925
+ * @param {Array} [entries] The key-value pairs to cache.
2926
+ */
2927
+ function ListCache(entries) {
2928
+ var index = -1,
2929
+ length = entries ? entries.length : 0;
2930
+
2931
+ this.clear();
2932
+ while (++index < length) {
2933
+ var entry = entries[index];
2934
+ this.set(entry[0], entry[1]);
2935
+ }
2936
+ }
2937
+
2938
+ /**
2939
+ * Removes all key-value entries from the list cache.
2940
+ *
2941
+ * @private
2942
+ * @name clear
2943
+ * @memberOf ListCache
2944
+ */
2945
+ function listCacheClear() {
2946
+ this.__data__ = [];
2947
+ }
2948
+
2949
+ /**
2950
+ * Removes `key` and its value from the list cache.
2951
+ *
2952
+ * @private
2953
+ * @name delete
2954
+ * @memberOf ListCache
2955
+ * @param {string} key The key of the value to remove.
2956
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2957
+ */
2958
+ function listCacheDelete(key) {
2959
+ var data = this.__data__,
2960
+ index = assocIndexOf(data, key);
2961
+
2962
+ if (index < 0) {
2963
+ return false;
2964
+ }
2965
+ var lastIndex = data.length - 1;
2966
+ if (index == lastIndex) {
2967
+ data.pop();
2968
+ } else {
2969
+ splice.call(data, index, 1);
2970
+ }
2971
+ return true;
2972
+ }
2973
+
2974
+ /**
2975
+ * Gets the list cache value for `key`.
2976
+ *
2977
+ * @private
2978
+ * @name get
2979
+ * @memberOf ListCache
2980
+ * @param {string} key The key of the value to get.
2981
+ * @returns {*} Returns the entry value.
2982
+ */
2983
+ function listCacheGet(key) {
2984
+ var data = this.__data__,
2985
+ index = assocIndexOf(data, key);
2986
+
2987
+ return index < 0 ? undefined : data[index][1];
2988
+ }
2989
+
2990
+ /**
2991
+ * Checks if a list cache value for `key` exists.
2992
+ *
2993
+ * @private
2994
+ * @name has
2995
+ * @memberOf ListCache
2996
+ * @param {string} key The key of the entry to check.
2997
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2998
+ */
2999
+ function listCacheHas(key) {
3000
+ return assocIndexOf(this.__data__, key) > -1;
3001
+ }
3002
+
3003
+ /**
3004
+ * Sets the list cache `key` to `value`.
3005
+ *
3006
+ * @private
3007
+ * @name set
3008
+ * @memberOf ListCache
3009
+ * @param {string} key The key of the value to set.
3010
+ * @param {*} value The value to set.
3011
+ * @returns {Object} Returns the list cache instance.
3012
+ */
3013
+ function listCacheSet(key, value) {
3014
+ var data = this.__data__,
3015
+ index = assocIndexOf(data, key);
3016
+
3017
+ if (index < 0) {
3018
+ data.push([key, value]);
3019
+ } else {
3020
+ data[index][1] = value;
3021
+ }
3022
+ return this;
3023
+ }
3024
+
3025
+ // Add methods to `ListCache`.
3026
+ ListCache.prototype.clear = listCacheClear;
3027
+ ListCache.prototype['delete'] = listCacheDelete;
3028
+ ListCache.prototype.get = listCacheGet;
3029
+ ListCache.prototype.has = listCacheHas;
3030
+ ListCache.prototype.set = listCacheSet;
3031
+
3032
+ /**
3033
+ * Creates a map cache object to store key-value pairs.
3034
+ *
3035
+ * @private
3036
+ * @constructor
3037
+ * @param {Array} [entries] The key-value pairs to cache.
3038
+ */
3039
+ function MapCache(entries) {
3040
+ var index = -1,
3041
+ length = entries ? entries.length : 0;
3042
+
3043
+ this.clear();
3044
+ while (++index < length) {
3045
+ var entry = entries[index];
3046
+ this.set(entry[0], entry[1]);
3047
+ }
3048
+ }
3049
+
3050
+ /**
3051
+ * Removes all key-value entries from the map.
3052
+ *
3053
+ * @private
3054
+ * @name clear
3055
+ * @memberOf MapCache
3056
+ */
3057
+ function mapCacheClear() {
3058
+ this.__data__ = {
3059
+ 'hash': new Hash,
3060
+ 'map': new (Map || ListCache),
3061
+ 'string': new Hash
3062
+ };
3063
+ }
3064
+
3065
+ /**
3066
+ * Removes `key` and its value from the map.
3067
+ *
3068
+ * @private
3069
+ * @name delete
3070
+ * @memberOf MapCache
3071
+ * @param {string} key The key of the value to remove.
3072
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
3073
+ */
3074
+ function mapCacheDelete(key) {
3075
+ return getMapData(this, key)['delete'](key);
3076
+ }
3077
+
3078
+ /**
3079
+ * Gets the map value for `key`.
3080
+ *
3081
+ * @private
3082
+ * @name get
3083
+ * @memberOf MapCache
3084
+ * @param {string} key The key of the value to get.
3085
+ * @returns {*} Returns the entry value.
3086
+ */
3087
+ function mapCacheGet(key) {
3088
+ return getMapData(this, key).get(key);
3089
+ }
3090
+
3091
+ /**
3092
+ * Checks if a map value for `key` exists.
3093
+ *
3094
+ * @private
3095
+ * @name has
3096
+ * @memberOf MapCache
3097
+ * @param {string} key The key of the entry to check.
3098
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
3099
+ */
3100
+ function mapCacheHas(key) {
3101
+ return getMapData(this, key).has(key);
3102
+ }
3103
+
3104
+ /**
3105
+ * Sets the map `key` to `value`.
3106
+ *
3107
+ * @private
3108
+ * @name set
3109
+ * @memberOf MapCache
3110
+ * @param {string} key The key of the value to set.
3111
+ * @param {*} value The value to set.
3112
+ * @returns {Object} Returns the map cache instance.
3113
+ */
3114
+ function mapCacheSet(key, value) {
3115
+ getMapData(this, key).set(key, value);
3116
+ return this;
3117
+ }
3118
+
3119
+ // Add methods to `MapCache`.
3120
+ MapCache.prototype.clear = mapCacheClear;
3121
+ MapCache.prototype['delete'] = mapCacheDelete;
3122
+ MapCache.prototype.get = mapCacheGet;
3123
+ MapCache.prototype.has = mapCacheHas;
3124
+ MapCache.prototype.set = mapCacheSet;
3125
+
3126
+ /**
3127
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
3128
+ *
3129
+ * @private
3130
+ * @param {Array} array The array to inspect.
3131
+ * @param {*} key The key to search for.
3132
+ * @returns {number} Returns the index of the matched value, else `-1`.
3133
+ */
3134
+ function assocIndexOf(array, key) {
3135
+ var length = array.length;
3136
+ while (length--) {
3137
+ if (eq(array[length][0], key)) {
3138
+ return length;
3139
+ }
3140
+ }
3141
+ return -1;
3142
+ }
3143
+
3144
+ /**
3145
+ * The base implementation of `_.isNative` without bad shim checks.
3146
+ *
3147
+ * @private
3148
+ * @param {*} value The value to check.
3149
+ * @returns {boolean} Returns `true` if `value` is a native function,
3150
+ * else `false`.
3151
+ */
3152
+ function baseIsNative(value) {
3153
+ if (!isObject$2(value) || isMasked(value)) {
3154
+ return false;
3155
+ }
3156
+ var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
3157
+ return pattern.test(toSource(value));
3158
+ }
3159
+
3160
+ /**
3161
+ * Gets the data for `map`.
3162
+ *
3163
+ * @private
3164
+ * @param {Object} map The map to query.
3165
+ * @param {string} key The reference key.
3166
+ * @returns {*} Returns the map data.
3167
+ */
3168
+ function getMapData(map, key) {
3169
+ var data = map.__data__;
3170
+ return isKeyable(key)
3171
+ ? data[typeof key == 'string' ? 'string' : 'hash']
3172
+ : data.map;
3173
+ }
3174
+
3175
+ /**
3176
+ * Gets the native function at `key` of `object`.
3177
+ *
3178
+ * @private
3179
+ * @param {Object} object The object to query.
3180
+ * @param {string} key The key of the method to get.
3181
+ * @returns {*} Returns the function if it's native, else `undefined`.
3182
+ */
3183
+ function getNative(object, key) {
3184
+ var value = getValue(object, key);
3185
+ return baseIsNative(value) ? value : undefined;
3186
+ }
3187
+
3188
+ /**
3189
+ * Checks if `value` is suitable for use as unique object key.
3190
+ *
3191
+ * @private
3192
+ * @param {*} value The value to check.
3193
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
3194
+ */
3195
+ function isKeyable(value) {
3196
+ var type = typeof value;
3197
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
3198
+ ? (value !== '__proto__')
3199
+ : (value === null);
3200
+ }
3201
+
3202
+ /**
3203
+ * Checks if `func` has its source masked.
3204
+ *
3205
+ * @private
3206
+ * @param {Function} func The function to check.
3207
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
3208
+ */
3209
+ function isMasked(func) {
3210
+ return !!maskSrcKey && (maskSrcKey in func);
3211
+ }
3212
+
3213
+ /**
3214
+ * Converts `func` to its source code.
3215
+ *
3216
+ * @private
3217
+ * @param {Function} func The function to process.
3218
+ * @returns {string} Returns the source code.
3219
+ */
3220
+ function toSource(func) {
3221
+ if (func != null) {
3222
+ try {
3223
+ return funcToString.call(func);
3224
+ } catch (e) {}
3225
+ try {
3226
+ return (func + '');
3227
+ } catch (e) {}
3228
+ }
3229
+ return '';
3230
+ }
3231
+
3232
+ /**
3233
+ * Creates a function that memoizes the result of `func`. If `resolver` is
3234
+ * provided, it determines the cache key for storing the result based on the
3235
+ * arguments provided to the memoized function. By default, the first argument
3236
+ * provided to the memoized function is used as the map cache key. The `func`
3237
+ * is invoked with the `this` binding of the memoized function.
3238
+ *
3239
+ * **Note:** The cache is exposed as the `cache` property on the memoized
3240
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
3241
+ * constructor with one whose instances implement the
3242
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
3243
+ * method interface of `delete`, `get`, `has`, and `set`.
3244
+ *
3245
+ * @static
3246
+ * @memberOf _
3247
+ * @since 0.1.0
3248
+ * @category Function
3249
+ * @param {Function} func The function to have its output memoized.
3250
+ * @param {Function} [resolver] The function to resolve the cache key.
3251
+ * @returns {Function} Returns the new memoized function.
3252
+ * @example
3253
+ *
3254
+ * var object = { 'a': 1, 'b': 2 };
3255
+ * var other = { 'c': 3, 'd': 4 };
3256
+ *
3257
+ * var values = _.memoize(_.values);
3258
+ * values(object);
3259
+ * // => [1, 2]
3260
+ *
3261
+ * values(other);
3262
+ * // => [3, 4]
3263
+ *
3264
+ * object.a = 2;
3265
+ * values(object);
3266
+ * // => [1, 2]
3267
+ *
3268
+ * // Modify the result cache.
3269
+ * values.cache.set(object, ['a', 'b']);
3270
+ * values(object);
3271
+ * // => ['a', 'b']
3272
+ *
3273
+ * // Replace `_.memoize.Cache`.
3274
+ * _.memoize.Cache = WeakMap;
3275
+ */
3276
+ function memoize(func, resolver) {
3277
+ if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
3278
+ throw new TypeError(FUNC_ERROR_TEXT$2);
3279
+ }
3280
+ var memoized = function() {
3281
+ var args = arguments,
3282
+ key = resolver ? resolver.apply(this, args) : args[0],
3283
+ cache = memoized.cache;
3284
+
3285
+ if (cache.has(key)) {
3286
+ return cache.get(key);
3287
+ }
3288
+ var result = func.apply(this, args);
3289
+ memoized.cache = cache.set(key, result);
3290
+ return result;
3291
+ };
3292
+ memoized.cache = new (memoize.Cache || MapCache);
3293
+ return memoized;
3294
+ }
3295
+
3296
+ // Assign cache to `_.memoize`.
3297
+ memoize.Cache = MapCache;
3298
+
3299
+ /**
3300
+ * Performs a
3301
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3302
+ * comparison between two values to determine if they are equivalent.
3303
+ *
3304
+ * @static
3305
+ * @memberOf _
3306
+ * @since 4.0.0
3307
+ * @category Lang
3308
+ * @param {*} value The value to compare.
3309
+ * @param {*} other The other value to compare.
3310
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
3311
+ * @example
3312
+ *
3313
+ * var object = { 'a': 1 };
3314
+ * var other = { 'a': 1 };
3315
+ *
3316
+ * _.eq(object, object);
3317
+ * // => true
3318
+ *
3319
+ * _.eq(object, other);
3320
+ * // => false
3321
+ *
3322
+ * _.eq('a', 'a');
3323
+ * // => true
3324
+ *
3325
+ * _.eq('a', Object('a'));
3326
+ * // => false
3327
+ *
3328
+ * _.eq(NaN, NaN);
3329
+ * // => true
3330
+ */
3331
+ function eq(value, other) {
3332
+ return value === other || (value !== value && other !== other);
3333
+ }
3334
+
3335
+ /**
3336
+ * Checks if `value` is classified as a `Function` object.
3337
+ *
3338
+ * @static
3339
+ * @memberOf _
3340
+ * @since 0.1.0
3341
+ * @category Lang
3342
+ * @param {*} value The value to check.
3343
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
3344
+ * @example
3345
+ *
3346
+ * _.isFunction(_);
3347
+ * // => true
3348
+ *
3349
+ * _.isFunction(/abc/);
3350
+ * // => false
3351
+ */
3352
+ function isFunction(value) {
3353
+ // The use of `Object#toString` avoids issues with the `typeof` operator
3354
+ // in Safari 8-9 which returns 'object' for typed array and other constructors.
3355
+ var tag = isObject$2(value) ? objectToString$2.call(value) : '';
3356
+ return tag == funcTag || tag == genTag;
3357
+ }
3358
+
3359
+ /**
3360
+ * Checks if `value` is the
3361
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
3362
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
3363
+ *
3364
+ * @static
3365
+ * @memberOf _
3366
+ * @since 0.1.0
3367
+ * @category Lang
3368
+ * @param {*} value The value to check.
3369
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
3370
+ * @example
3371
+ *
3372
+ * _.isObject({});
3373
+ * // => true
3374
+ *
3375
+ * _.isObject([1, 2, 3]);
3376
+ * // => true
3377
+ *
3378
+ * _.isObject(_.noop);
3379
+ * // => true
3380
+ *
3381
+ * _.isObject(null);
3382
+ * // => false
3383
+ */
3384
+ function isObject$2(value) {
3385
+ var type = typeof value;
3386
+ return !!value && (type == 'object' || type == 'function');
3387
+ }
3388
+
3389
+ var lodash_memoize = memoize;
3390
+
3391
+ var resizeObservers = [];
3392
+
3393
+ var hasActiveObservations = function () {
3394
+ return resizeObservers.some(function (ro) { return ro.activeTargets.length > 0; });
3395
+ };
3396
+
3397
+ var hasSkippedObservations = function () {
3398
+ return resizeObservers.some(function (ro) { return ro.skippedTargets.length > 0; });
3399
+ };
3400
+
3401
+ var msg = 'ResizeObserver loop completed with undelivered notifications.';
3402
+ var deliverResizeLoopError = function () {
3403
+ var event;
3404
+ if (typeof ErrorEvent === 'function') {
3405
+ event = new ErrorEvent('error', {
3406
+ message: msg
3407
+ });
3408
+ }
3409
+ else {
3410
+ event = document.createEvent('Event');
3411
+ event.initEvent('error', false, false);
3412
+ event.message = msg;
3413
+ }
3414
+ window.dispatchEvent(event);
3415
+ };
3416
+
3417
+ var ResizeObserverBoxOptions;
3418
+ (function (ResizeObserverBoxOptions) {
3419
+ ResizeObserverBoxOptions["BORDER_BOX"] = "border-box";
3420
+ ResizeObserverBoxOptions["CONTENT_BOX"] = "content-box";
3421
+ ResizeObserverBoxOptions["DEVICE_PIXEL_CONTENT_BOX"] = "device-pixel-content-box";
3422
+ })(ResizeObserverBoxOptions || (ResizeObserverBoxOptions = {}));
3423
+
3424
+ var freeze = function (obj) { return Object.freeze(obj); };
3425
+
3426
+ var ResizeObserverSize = (function () {
3427
+ function ResizeObserverSize(inlineSize, blockSize) {
3428
+ this.inlineSize = inlineSize;
3429
+ this.blockSize = blockSize;
3430
+ freeze(this);
3431
+ }
3432
+ return ResizeObserverSize;
3433
+ }());
3434
+
3435
+ var DOMRectReadOnly = (function () {
3436
+ function DOMRectReadOnly(x, y, width, height) {
3437
+ this.x = x;
3438
+ this.y = y;
3439
+ this.width = width;
3440
+ this.height = height;
3441
+ this.top = this.y;
3442
+ this.left = this.x;
3443
+ this.bottom = this.top + this.height;
3444
+ this.right = this.left + this.width;
3445
+ return freeze(this);
3446
+ }
3447
+ DOMRectReadOnly.prototype.toJSON = function () {
3448
+ var _a = this, x = _a.x, y = _a.y, top = _a.top, right = _a.right, bottom = _a.bottom, left = _a.left, width = _a.width, height = _a.height;
3449
+ return { x: x, y: y, top: top, right: right, bottom: bottom, left: left, width: width, height: height };
3450
+ };
3451
+ DOMRectReadOnly.fromRect = function (rectangle) {
3452
+ return new DOMRectReadOnly(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
3453
+ };
3454
+ return DOMRectReadOnly;
3455
+ }());
3456
+
3457
+ var isSVG = function (target) { return target instanceof SVGElement && 'getBBox' in target; };
3458
+ var isHidden = function (target) {
3459
+ if (isSVG(target)) {
3460
+ var _a = target.getBBox(), width = _a.width, height = _a.height;
3461
+ return !width && !height;
3462
+ }
3463
+ var _b = target, offsetWidth = _b.offsetWidth, offsetHeight = _b.offsetHeight;
3464
+ return !(offsetWidth || offsetHeight || target.getClientRects().length);
3465
+ };
3466
+ var isElement = function (obj) {
3467
+ var _a, _b;
3468
+ if (obj instanceof Element) {
3469
+ return true;
3470
+ }
3471
+ var scope = (_b = (_a = obj) === null || _a === void 0 ? void 0 : _a.ownerDocument) === null || _b === void 0 ? void 0 : _b.defaultView;
3472
+ return !!(scope && obj instanceof scope.Element);
3473
+ };
3474
+ var isReplacedElement = function (target) {
3475
+ switch (target.tagName) {
3476
+ case 'INPUT':
3477
+ if (target.type !== 'image') {
3478
+ break;
3479
+ }
3480
+ case 'VIDEO':
3481
+ case 'AUDIO':
3482
+ case 'EMBED':
3483
+ case 'OBJECT':
3484
+ case 'CANVAS':
3485
+ case 'IFRAME':
3486
+ case 'IMG':
3487
+ return true;
3488
+ }
3489
+ return false;
3490
+ };
3491
+
3492
+ var global$1 = typeof window !== 'undefined' ? window : {};
3493
+
3494
+ var cache = new WeakMap();
3495
+ var scrollRegexp = /auto|scroll/;
3496
+ var verticalRegexp = /^tb|vertical/;
3497
+ var IE = (/msie|trident/i).test(global$1.navigator && global$1.navigator.userAgent);
3498
+ var parseDimension = function (pixel) { return parseFloat(pixel || '0'); };
3499
+ var size = function (inlineSize, blockSize, switchSizes) {
3500
+ if (inlineSize === void 0) { inlineSize = 0; }
3501
+ if (blockSize === void 0) { blockSize = 0; }
3502
+ if (switchSizes === void 0) { switchSizes = false; }
3503
+ return new ResizeObserverSize((switchSizes ? blockSize : inlineSize) || 0, (switchSizes ? inlineSize : blockSize) || 0);
3504
+ };
3505
+ var zeroBoxes = freeze({
3506
+ devicePixelContentBoxSize: size(),
3507
+ borderBoxSize: size(),
3508
+ contentBoxSize: size(),
3509
+ contentRect: new DOMRectReadOnly(0, 0, 0, 0)
3510
+ });
3511
+ var calculateBoxSizes = function (target, forceRecalculation) {
3512
+ if (forceRecalculation === void 0) { forceRecalculation = false; }
3513
+ if (cache.has(target) && !forceRecalculation) {
3514
+ return cache.get(target);
3515
+ }
3516
+ if (isHidden(target)) {
3517
+ cache.set(target, zeroBoxes);
3518
+ return zeroBoxes;
3519
+ }
3520
+ var cs = getComputedStyle(target);
3521
+ var svg = isSVG(target) && target.ownerSVGElement && target.getBBox();
3522
+ var removePadding = !IE && cs.boxSizing === 'border-box';
3523
+ var switchSizes = verticalRegexp.test(cs.writingMode || '');
3524
+ var canScrollVertically = !svg && scrollRegexp.test(cs.overflowY || '');
3525
+ var canScrollHorizontally = !svg && scrollRegexp.test(cs.overflowX || '');
3526
+ var paddingTop = svg ? 0 : parseDimension(cs.paddingTop);
3527
+ var paddingRight = svg ? 0 : parseDimension(cs.paddingRight);
3528
+ var paddingBottom = svg ? 0 : parseDimension(cs.paddingBottom);
3529
+ var paddingLeft = svg ? 0 : parseDimension(cs.paddingLeft);
3530
+ var borderTop = svg ? 0 : parseDimension(cs.borderTopWidth);
3531
+ var borderRight = svg ? 0 : parseDimension(cs.borderRightWidth);
3532
+ var borderBottom = svg ? 0 : parseDimension(cs.borderBottomWidth);
3533
+ var borderLeft = svg ? 0 : parseDimension(cs.borderLeftWidth);
3534
+ var horizontalPadding = paddingLeft + paddingRight;
3535
+ var verticalPadding = paddingTop + paddingBottom;
3536
+ var horizontalBorderArea = borderLeft + borderRight;
3537
+ var verticalBorderArea = borderTop + borderBottom;
3538
+ var horizontalScrollbarThickness = !canScrollHorizontally ? 0 : target.offsetHeight - verticalBorderArea - target.clientHeight;
3539
+ var verticalScrollbarThickness = !canScrollVertically ? 0 : target.offsetWidth - horizontalBorderArea - target.clientWidth;
3540
+ var widthReduction = removePadding ? horizontalPadding + horizontalBorderArea : 0;
3541
+ var heightReduction = removePadding ? verticalPadding + verticalBorderArea : 0;
3542
+ var contentWidth = svg ? svg.width : parseDimension(cs.width) - widthReduction - verticalScrollbarThickness;
3543
+ var contentHeight = svg ? svg.height : parseDimension(cs.height) - heightReduction - horizontalScrollbarThickness;
3544
+ var borderBoxWidth = contentWidth + horizontalPadding + verticalScrollbarThickness + horizontalBorderArea;
3545
+ var borderBoxHeight = contentHeight + verticalPadding + horizontalScrollbarThickness + verticalBorderArea;
3546
+ var boxes = freeze({
3547
+ devicePixelContentBoxSize: size(Math.round(contentWidth * devicePixelRatio), Math.round(contentHeight * devicePixelRatio), switchSizes),
3548
+ borderBoxSize: size(borderBoxWidth, borderBoxHeight, switchSizes),
3549
+ contentBoxSize: size(contentWidth, contentHeight, switchSizes),
3550
+ contentRect: new DOMRectReadOnly(paddingLeft, paddingTop, contentWidth, contentHeight)
3551
+ });
3552
+ cache.set(target, boxes);
3553
+ return boxes;
3554
+ };
3555
+ var calculateBoxSize = function (target, observedBox, forceRecalculation) {
3556
+ var _a = calculateBoxSizes(target, forceRecalculation), borderBoxSize = _a.borderBoxSize, contentBoxSize = _a.contentBoxSize, devicePixelContentBoxSize = _a.devicePixelContentBoxSize;
3557
+ switch (observedBox) {
3558
+ case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:
3559
+ return devicePixelContentBoxSize;
3560
+ case ResizeObserverBoxOptions.BORDER_BOX:
3561
+ return borderBoxSize;
3562
+ default:
3563
+ return contentBoxSize;
3564
+ }
3565
+ };
3566
+
3567
+ var ResizeObserverEntry = (function () {
3568
+ function ResizeObserverEntry(target) {
3569
+ var boxes = calculateBoxSizes(target);
3570
+ this.target = target;
3571
+ this.contentRect = boxes.contentRect;
3572
+ this.borderBoxSize = freeze([boxes.borderBoxSize]);
3573
+ this.contentBoxSize = freeze([boxes.contentBoxSize]);
3574
+ this.devicePixelContentBoxSize = freeze([boxes.devicePixelContentBoxSize]);
3575
+ }
3576
+ return ResizeObserverEntry;
3577
+ }());
3578
+
3579
+ var calculateDepthForNode = function (node) {
3580
+ if (isHidden(node)) {
3581
+ return Infinity;
3582
+ }
3583
+ var depth = 0;
3584
+ var parent = node.parentNode;
3585
+ while (parent) {
3586
+ depth += 1;
3587
+ parent = parent.parentNode;
3588
+ }
3589
+ return depth;
3590
+ };
3591
+
3592
+ var broadcastActiveObservations = function () {
3593
+ var shallowestDepth = Infinity;
3594
+ var callbacks = [];
3595
+ resizeObservers.forEach(function processObserver(ro) {
3596
+ if (ro.activeTargets.length === 0) {
3597
+ return;
3598
+ }
3599
+ var entries = [];
3600
+ ro.activeTargets.forEach(function processTarget(ot) {
3601
+ var entry = new ResizeObserverEntry(ot.target);
3602
+ var targetDepth = calculateDepthForNode(ot.target);
3603
+ entries.push(entry);
3604
+ ot.lastReportedSize = calculateBoxSize(ot.target, ot.observedBox);
3605
+ if (targetDepth < shallowestDepth) {
3606
+ shallowestDepth = targetDepth;
3607
+ }
3608
+ });
3609
+ callbacks.push(function resizeObserverCallback() {
3610
+ ro.callback.call(ro.observer, entries, ro.observer);
3611
+ });
3612
+ ro.activeTargets.splice(0, ro.activeTargets.length);
3613
+ });
3614
+ for (var _i = 0, callbacks_1 = callbacks; _i < callbacks_1.length; _i++) {
3615
+ var callback = callbacks_1[_i];
3616
+ callback();
3617
+ }
3618
+ return shallowestDepth;
3619
+ };
3620
+
3621
+ var gatherActiveObservationsAtDepth = function (depth) {
3622
+ resizeObservers.forEach(function processObserver(ro) {
3623
+ ro.activeTargets.splice(0, ro.activeTargets.length);
3624
+ ro.skippedTargets.splice(0, ro.skippedTargets.length);
3625
+ ro.observationTargets.forEach(function processTarget(ot) {
3626
+ if (ot.isActive()) {
3627
+ if (calculateDepthForNode(ot.target) > depth) {
3628
+ ro.activeTargets.push(ot);
3629
+ }
3630
+ else {
3631
+ ro.skippedTargets.push(ot);
3632
+ }
3633
+ }
3634
+ });
3635
+ });
3636
+ };
3637
+
3638
+ var process = function () {
3639
+ var depth = 0;
3640
+ gatherActiveObservationsAtDepth(depth);
3641
+ while (hasActiveObservations()) {
3642
+ depth = broadcastActiveObservations();
3643
+ gatherActiveObservationsAtDepth(depth);
3644
+ }
3645
+ if (hasSkippedObservations()) {
3646
+ deliverResizeLoopError();
3647
+ }
3648
+ return depth > 0;
3649
+ };
3650
+
3651
+ var trigger;
3652
+ var callbacks = [];
3653
+ var notify = function () { return callbacks.splice(0).forEach(function (cb) { return cb(); }); };
3654
+ var queueMicroTask = function (callback) {
3655
+ if (!trigger) {
3656
+ var toggle_1 = 0;
3657
+ var el_1 = document.createTextNode('');
3658
+ var config = { characterData: true };
3659
+ new MutationObserver(function () { return notify(); }).observe(el_1, config);
3660
+ trigger = function () { el_1.textContent = "" + (toggle_1 ? toggle_1-- : toggle_1++); };
3661
+ }
3662
+ callbacks.push(callback);
3663
+ trigger();
3664
+ };
3665
+
3666
+ var queueResizeObserver = function (cb) {
3667
+ queueMicroTask(function ResizeObserver() {
3668
+ requestAnimationFrame(cb);
3669
+ });
3670
+ };
3671
+
3672
+ var watching = 0;
3673
+ var isWatching = function () { return !!watching; };
3674
+ var CATCH_PERIOD = 250;
3675
+ var observerConfig = { attributes: true, characterData: true, childList: true, subtree: true };
3676
+ var events = [
3677
+ 'resize',
3678
+ 'load',
3679
+ 'transitionend',
3680
+ 'animationend',
3681
+ 'animationstart',
3682
+ 'animationiteration',
3683
+ 'keyup',
3684
+ 'keydown',
3685
+ 'mouseup',
3686
+ 'mousedown',
3687
+ 'mouseover',
3688
+ 'mouseout',
3689
+ 'blur',
3690
+ 'focus'
3691
+ ];
3692
+ var time = function (timeout) {
3693
+ if (timeout === void 0) { timeout = 0; }
3694
+ return Date.now() + timeout;
3695
+ };
3696
+ var scheduled = false;
3697
+ var Scheduler = (function () {
3698
+ function Scheduler() {
3699
+ var _this = this;
3700
+ this.stopped = true;
3701
+ this.listener = function () { return _this.schedule(); };
3702
+ }
3703
+ Scheduler.prototype.run = function (timeout) {
3704
+ var _this = this;
3705
+ if (timeout === void 0) { timeout = CATCH_PERIOD; }
3706
+ if (scheduled) {
3707
+ return;
3708
+ }
3709
+ scheduled = true;
3710
+ var until = time(timeout);
3711
+ queueResizeObserver(function () {
3712
+ var elementsHaveResized = false;
3713
+ try {
3714
+ elementsHaveResized = process();
3715
+ }
3716
+ finally {
3717
+ scheduled = false;
3718
+ timeout = until - time();
3719
+ if (!isWatching()) {
3720
+ return;
3721
+ }
3722
+ if (elementsHaveResized) {
3723
+ _this.run(1000);
3724
+ }
3725
+ else if (timeout > 0) {
3726
+ _this.run(timeout);
3727
+ }
3728
+ else {
3729
+ _this.start();
3730
+ }
3731
+ }
3732
+ });
3733
+ };
3734
+ Scheduler.prototype.schedule = function () {
3735
+ this.stop();
3736
+ this.run();
3737
+ };
3738
+ Scheduler.prototype.observe = function () {
3739
+ var _this = this;
3740
+ var cb = function () { return _this.observer && _this.observer.observe(document.body, observerConfig); };
3741
+ document.body ? cb() : global$1.addEventListener('DOMContentLoaded', cb);
3742
+ };
3743
+ Scheduler.prototype.start = function () {
3744
+ var _this = this;
3745
+ if (this.stopped) {
3746
+ this.stopped = false;
3747
+ this.observer = new MutationObserver(this.listener);
3748
+ this.observe();
3749
+ events.forEach(function (name) { return global$1.addEventListener(name, _this.listener, true); });
3750
+ }
3751
+ };
3752
+ Scheduler.prototype.stop = function () {
3753
+ var _this = this;
3754
+ if (!this.stopped) {
3755
+ this.observer && this.observer.disconnect();
3756
+ events.forEach(function (name) { return global$1.removeEventListener(name, _this.listener, true); });
3757
+ this.stopped = true;
3758
+ }
3759
+ };
3760
+ return Scheduler;
3761
+ }());
3762
+ var scheduler = new Scheduler();
3763
+ var updateCount = function (n) {
3764
+ !watching && n > 0 && scheduler.start();
3765
+ watching += n;
3766
+ !watching && scheduler.stop();
3767
+ };
3768
+
3769
+ var skipNotifyOnElement = function (target) {
3770
+ return !isSVG(target)
3771
+ && !isReplacedElement(target)
3772
+ && getComputedStyle(target).display === 'inline';
3773
+ };
3774
+ var ResizeObservation = (function () {
3775
+ function ResizeObservation(target, observedBox) {
3776
+ this.target = target;
3777
+ this.observedBox = observedBox || ResizeObserverBoxOptions.CONTENT_BOX;
3778
+ this.lastReportedSize = {
3779
+ inlineSize: 0,
3780
+ blockSize: 0
3781
+ };
3782
+ }
3783
+ ResizeObservation.prototype.isActive = function () {
3784
+ var size = calculateBoxSize(this.target, this.observedBox, true);
3785
+ if (skipNotifyOnElement(this.target)) {
3786
+ this.lastReportedSize = size;
3787
+ }
3788
+ if (this.lastReportedSize.inlineSize !== size.inlineSize
3789
+ || this.lastReportedSize.blockSize !== size.blockSize) {
3790
+ return true;
3791
+ }
3792
+ return false;
3793
+ };
3794
+ return ResizeObservation;
3795
+ }());
3796
+
3797
+ var ResizeObserverDetail = (function () {
3798
+ function ResizeObserverDetail(resizeObserver, callback) {
3799
+ this.activeTargets = [];
3800
+ this.skippedTargets = [];
3801
+ this.observationTargets = [];
3802
+ this.observer = resizeObserver;
3803
+ this.callback = callback;
3804
+ }
3805
+ return ResizeObserverDetail;
3806
+ }());
3807
+
3808
+ var observerMap = new WeakMap();
3809
+ var getObservationIndex = function (observationTargets, target) {
3810
+ for (var i = 0; i < observationTargets.length; i += 1) {
3811
+ if (observationTargets[i].target === target) {
3812
+ return i;
3813
+ }
3814
+ }
3815
+ return -1;
3816
+ };
3817
+ var ResizeObserverController = (function () {
3818
+ function ResizeObserverController() {
3819
+ }
3820
+ ResizeObserverController.connect = function (resizeObserver, callback) {
3821
+ var detail = new ResizeObserverDetail(resizeObserver, callback);
3822
+ observerMap.set(resizeObserver, detail);
3823
+ };
3824
+ ResizeObserverController.observe = function (resizeObserver, target, options) {
3825
+ var detail = observerMap.get(resizeObserver);
3826
+ var firstObservation = detail.observationTargets.length === 0;
3827
+ if (getObservationIndex(detail.observationTargets, target) < 0) {
3828
+ firstObservation && resizeObservers.push(detail);
3829
+ detail.observationTargets.push(new ResizeObservation(target, options && options.box));
3830
+ updateCount(1);
3831
+ scheduler.schedule();
3832
+ }
3833
+ };
3834
+ ResizeObserverController.unobserve = function (resizeObserver, target) {
3835
+ var detail = observerMap.get(resizeObserver);
3836
+ var index = getObservationIndex(detail.observationTargets, target);
3837
+ var lastObservation = detail.observationTargets.length === 1;
3838
+ if (index >= 0) {
3839
+ lastObservation && resizeObservers.splice(resizeObservers.indexOf(detail), 1);
3840
+ detail.observationTargets.splice(index, 1);
3841
+ updateCount(-1);
3842
+ }
3843
+ };
3844
+ ResizeObserverController.disconnect = function (resizeObserver) {
3845
+ var _this = this;
3846
+ var detail = observerMap.get(resizeObserver);
3847
+ detail.observationTargets.slice().forEach(function (ot) { return _this.unobserve(resizeObserver, ot.target); });
3848
+ detail.activeTargets.splice(0, detail.activeTargets.length);
3849
+ };
3850
+ return ResizeObserverController;
3851
+ }());
3852
+
3853
+ var ResizeObserver = (function () {
3854
+ function ResizeObserver(callback) {
3855
+ if (arguments.length === 0) {
3856
+ throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
3857
+ }
3858
+ if (typeof callback !== 'function') {
3859
+ throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
3860
+ }
3861
+ ResizeObserverController.connect(this, callback);
3862
+ }
3863
+ ResizeObserver.prototype.observe = function (target, options) {
3864
+ if (arguments.length === 0) {
3865
+ throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
3866
+ }
3867
+ if (!isElement(target)) {
3868
+ throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
3869
+ }
3870
+ ResizeObserverController.observe(this, target, options);
3871
+ };
3872
+ ResizeObserver.prototype.unobserve = function (target) {
3873
+ if (arguments.length === 0) {
3874
+ throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
3875
+ }
3876
+ if (!isElement(target)) {
3877
+ throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
3878
+ }
3879
+ ResizeObserverController.unobserve(this, target);
3880
+ };
3881
+ ResizeObserver.prototype.disconnect = function () {
3882
+ ResizeObserverController.disconnect(this);
3883
+ };
3884
+ ResizeObserver.toString = function () {
3885
+ return 'function ResizeObserver () { [polyfill code] }';
3886
+ };
3887
+ return ResizeObserver;
3888
+ }());
3889
+
3890
+ // Helper function to retrieve options from element attributes
3891
+ var getOptions = function getOptions(obj) {
3892
+ var options = Array.prototype.reduce.call(obj, function (acc, attribute) {
3893
+ var option = attribute.name.match(/data-asp_simplebar-(.+)/);
3894
+
3895
+ if (option) {
3896
+ var key = option[1].replace(/\W+(.)/g, function (x, chr) {
3897
+ return chr.toUpperCase();
3898
+ });
3899
+
3900
+ switch (attribute.value) {
3901
+ case 'true':
3902
+ acc[key] = true;
3903
+ break;
3904
+
3905
+ case 'false':
3906
+ acc[key] = false;
3907
+ break;
3908
+
3909
+ case undefined:
3910
+ acc[key] = true;
3911
+ break;
3912
+
3913
+ default:
3914
+ acc[key] = attribute.value;
3915
+ }
3916
+ }
3917
+
3918
+ return acc;
3919
+ }, {});
3920
+ return options;
3921
+ };
3922
+ function getElementWindow(element) {
3923
+ if (!element || !element.ownerDocument || !element.ownerDocument.defaultView) {
3924
+ return window;
3925
+ }
3926
+
3927
+ return element.ownerDocument.defaultView;
3928
+ }
3929
+ function getElementDocument(element) {
3930
+ if (!element || !element.ownerDocument) {
3931
+ return document;
3932
+ }
3933
+
3934
+ return element.ownerDocument;
3935
+ }
3936
+
3937
+ var cachedScrollbarWidth = null;
3938
+ var cachedDevicePixelRatio = null;
3939
+ window.addEventListener('resize', function () {
3940
+ if (cachedDevicePixelRatio !== window.devicePixelRatio) {
3941
+ cachedDevicePixelRatio = window.devicePixelRatio;
3942
+ cachedScrollbarWidth = null;
3943
+ }
3944
+ });
3945
+ function scrollbarWidth(el) {
3946
+ if (cachedScrollbarWidth === null) {
3947
+ var document = getElementDocument(el);
3948
+
3949
+ if (typeof document === 'undefined') {
3950
+ cachedScrollbarWidth = 0;
3951
+ return cachedScrollbarWidth;
3952
+ }
3953
+
3954
+ var body = document.body;
3955
+ var box = document.createElement('div');
3956
+ box.classList.add('asp_simplebar-hide-scrollbar');
3957
+ body.appendChild(box);
3958
+ var width = box.getBoundingClientRect().right;
3959
+ body.removeChild(box);
3960
+ cachedScrollbarWidth = width;
3961
+ }
3962
+
3963
+ return cachedScrollbarWidth;
3964
+ }
3965
+
3966
+ var asp_SimpleBar =
3967
+ /*#__PURE__*/
3968
+ function () {
3969
+ function asp_SimpleBar(element, options) {
3970
+ var _this = this;
3971
+
3972
+ this.onScroll = function () {
3973
+ var elWindow = getElementWindow(_this.el);
3974
+
3975
+ if (!_this.scrollXTicking) {
3976
+ elWindow.requestAnimationFrame(_this.scrollX);
3977
+ _this.scrollXTicking = true;
3978
+ }
3979
+
3980
+ if (!_this.scrollYTicking) {
3981
+ elWindow.requestAnimationFrame(_this.scrollY);
3982
+ _this.scrollYTicking = true;
3983
+ }
3984
+ };
3985
+
3986
+ this.scrollX = function () {
3987
+ if (_this.axis.x.isOverflowing) {
3988
+ _this.showScrollbar('x');
3989
+
3990
+ _this.positionScrollbar('x');
3991
+ }
3992
+
3993
+ _this.scrollXTicking = false;
3994
+ };
3995
+
3996
+ this.scrollY = function () {
3997
+ if (_this.axis.y.isOverflowing) {
3998
+ _this.showScrollbar('y');
3999
+
4000
+ _this.positionScrollbar('y');
4001
+ }
4002
+
4003
+ _this.scrollYTicking = false;
4004
+ };
4005
+
4006
+ this.onMouseEnter = function () {
4007
+ _this.showScrollbar('x');
4008
+
4009
+ _this.showScrollbar('y');
4010
+ };
4011
+
4012
+ this.onMouseMove = function (e) {
4013
+ _this.mouseX = e.clientX;
4014
+ _this.mouseY = e.clientY;
4015
+
4016
+ if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
4017
+ _this.onMouseMoveForAxis('x');
4018
+ }
4019
+
4020
+ if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
4021
+ _this.onMouseMoveForAxis('y');
4022
+ }
4023
+ };
4024
+
4025
+ this.onMouseLeave = function () {
4026
+ _this.onMouseMove.cancel();
4027
+
4028
+ if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
4029
+ _this.onMouseLeaveForAxis('x');
4030
+ }
4031
+
4032
+ if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
4033
+ _this.onMouseLeaveForAxis('y');
4034
+ }
4035
+
4036
+ _this.mouseX = -1;
4037
+ _this.mouseY = -1;
4038
+ };
4039
+
4040
+ this.onWindowResize = function () {
4041
+ // Recalculate scrollbarWidth in case it's a zoom
4042
+ _this.scrollbarWidth = _this.getScrollbarWidth();
4043
+
4044
+ _this.hideNativeScrollbar();
4045
+ };
4046
+
4047
+ this.hideScrollbars = function () {
4048
+ _this.axis.x.track.rect = _this.axis.x.track.el.getBoundingClientRect();
4049
+ _this.axis.y.track.rect = _this.axis.y.track.el.getBoundingClientRect();
4050
+
4051
+ if (!_this.isWithinBounds(_this.axis.y.track.rect)) {
4052
+ _this.axis.y.scrollbar.el.classList.remove(_this.classNames.visible);
4053
+
4054
+ _this.axis.y.isVisible = false;
4055
+ }
4056
+
4057
+ if (!_this.isWithinBounds(_this.axis.x.track.rect)) {
4058
+ _this.axis.x.scrollbar.el.classList.remove(_this.classNames.visible);
4059
+
4060
+ _this.axis.x.isVisible = false;
4061
+ }
4062
+ };
4063
+
4064
+ this.onPointerEvent = function (e) {
4065
+ var isWithinTrackXBounds, isWithinTrackYBounds;
4066
+ _this.axis.x.track.rect = _this.axis.x.track.el.getBoundingClientRect();
4067
+ _this.axis.y.track.rect = _this.axis.y.track.el.getBoundingClientRect();
4068
+
4069
+ if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
4070
+ isWithinTrackXBounds = _this.isWithinBounds(_this.axis.x.track.rect);
4071
+ }
4072
+
4073
+ if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
4074
+ isWithinTrackYBounds = _this.isWithinBounds(_this.axis.y.track.rect);
4075
+ } // If any pointer event is called on the scrollbar
4076
+
4077
+
4078
+ if (isWithinTrackXBounds || isWithinTrackYBounds) {
4079
+ // Preventing the event's default action stops text being
4080
+ // selectable during the drag.
4081
+ e.preventDefault(); // Prevent event leaking
4082
+
4083
+ e.stopPropagation();
4084
+
4085
+ if (e.type === 'mousedown') {
4086
+ if (isWithinTrackXBounds) {
4087
+ _this.axis.x.scrollbar.rect = _this.axis.x.scrollbar.el.getBoundingClientRect();
4088
+
4089
+ if (_this.isWithinBounds(_this.axis.x.scrollbar.rect)) {
4090
+ _this.onDragStart(e, 'x');
4091
+ } else {
4092
+ _this.onTrackClick(e, 'x');
4093
+ }
4094
+ }
4095
+
4096
+ if (isWithinTrackYBounds) {
4097
+ _this.axis.y.scrollbar.rect = _this.axis.y.scrollbar.el.getBoundingClientRect();
4098
+
4099
+ if (_this.isWithinBounds(_this.axis.y.scrollbar.rect)) {
4100
+ _this.onDragStart(e, 'y');
4101
+ } else {
4102
+ _this.onTrackClick(e, 'y');
4103
+ }
4104
+ }
4105
+ }
4106
+ }
4107
+ };
4108
+
4109
+ this.drag = function (e) {
4110
+ var eventOffset;
4111
+ var track = _this.axis[_this.draggedAxis].track;
4112
+ var trackSize = track.rect[_this.axis[_this.draggedAxis].sizeAttr];
4113
+ var scrollbar = _this.axis[_this.draggedAxis].scrollbar;
4114
+ var contentSize = _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollSizeAttr];
4115
+ var hostSize = parseInt(_this.elStyles[_this.axis[_this.draggedAxis].sizeAttr], 10);
4116
+ e.preventDefault();
4117
+ e.stopPropagation();
4118
+
4119
+ if (_this.draggedAxis === 'y') {
4120
+ eventOffset = e.pageY;
4121
+ } else {
4122
+ eventOffset = e.pageX;
4123
+ } // Calculate how far the user's mouse is from the top/left of the scrollbar (minus the dragOffset).
4124
+
4125
+
4126
+ var dragPos = eventOffset - track.rect[_this.axis[_this.draggedAxis].offsetAttr] - _this.axis[_this.draggedAxis].dragOffset; // Convert the mouse position into a percentage of the scrollbar height/width.
4127
+
4128
+ var dragPerc = dragPos / (trackSize - scrollbar.size); // Scroll the content by the same percentage.
4129
+
4130
+ var scrollPos = dragPerc * (contentSize - hostSize); // Fix browsers inconsistency on RTL
4131
+
4132
+ if (_this.draggedAxis === 'x') {
4133
+ scrollPos = _this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? scrollPos - (trackSize + scrollbar.size) : scrollPos;
4134
+ scrollPos = _this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollPos : scrollPos;
4135
+ }
4136
+
4137
+ _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollOffsetAttr] = scrollPos;
4138
+ };
4139
+
4140
+ this.onEndDrag = function (e) {
4141
+ var elDocument = getElementDocument(_this.el);
4142
+ var elWindow = getElementWindow(_this.el);
4143
+ e.preventDefault();
4144
+ e.stopPropagation();
4145
+
4146
+ _this.el.classList.remove(_this.classNames.dragging);
4147
+
4148
+ elDocument.removeEventListener('mousemove', _this.drag, true);
4149
+ elDocument.removeEventListener('mouseup', _this.onEndDrag, true);
4150
+ _this.removePreventClickId = elWindow.setTimeout(function () {
4151
+ // Remove these asynchronously so we still suppress click events
4152
+ // generated simultaneously with mouseup.
4153
+ elDocument.removeEventListener('click', _this.preventClick, true);
4154
+ elDocument.removeEventListener('dblclick', _this.preventClick, true);
4155
+ _this.removePreventClickId = null;
4156
+ });
4157
+ };
4158
+
4159
+ this.preventClick = function (e) {
4160
+ e.preventDefault();
4161
+ e.stopPropagation();
4162
+ };
4163
+
4164
+ this.el = element;
4165
+ this.minScrollbarWidth = 20;
4166
+ this.options = Object.assign({}, asp_SimpleBar.defaultOptions, {}, options);
4167
+ this.classNames = Object.assign({}, asp_SimpleBar.defaultOptions.classNames, {}, this.options.classNames);
4168
+ this.axis = {
4169
+ x: {
4170
+ scrollOffsetAttr: 'scrollLeft',
4171
+ sizeAttr: 'width',
4172
+ scrollSizeAttr: 'scrollWidth',
4173
+ offsetSizeAttr: 'offsetWidth',
4174
+ offsetAttr: 'left',
4175
+ overflowAttr: 'overflowX',
4176
+ dragOffset: 0,
4177
+ isOverflowing: true,
4178
+ isVisible: false,
4179
+ forceVisible: false,
4180
+ track: {},
4181
+ scrollbar: {}
4182
+ },
4183
+ y: {
4184
+ scrollOffsetAttr: 'scrollTop',
4185
+ sizeAttr: 'height',
4186
+ scrollSizeAttr: 'scrollHeight',
4187
+ offsetSizeAttr: 'offsetHeight',
4188
+ offsetAttr: 'top',
4189
+ overflowAttr: 'overflowY',
4190
+ dragOffset: 0,
4191
+ isOverflowing: true,
4192
+ isVisible: false,
4193
+ forceVisible: false,
4194
+ track: {},
4195
+ scrollbar: {}
4196
+ }
4197
+ };
4198
+ this.removePreventClickId = null; // Don't re-instantiate over an existing one
4199
+
4200
+ if (asp_SimpleBar.instances.has(this.el)) {
4201
+ return;
4202
+ }
4203
+
4204
+ this.recalculate = lodash_throttle(this.recalculate.bind(this), 64);
4205
+ this.onMouseMove = lodash_throttle(this.onMouseMove.bind(this), 64);
4206
+ this.hideScrollbars = lodash_debounce(this.hideScrollbars.bind(this), this.options.timeout);
4207
+ this.onWindowResize = lodash_debounce(this.onWindowResize.bind(this), 64, {
4208
+ leading: true
4209
+ });
4210
+ asp_SimpleBar.getRtlHelpers = lodash_memoize(asp_SimpleBar.getRtlHelpers);
4211
+ this.init();
4212
+ }
4213
+ /**
4214
+ * Static properties
4215
+ */
4216
+
4217
+ /**
4218
+ * Helper to fix browsers inconsistency on RTL:
4219
+ * - Firefox inverts the scrollbar initial position
4220
+ * - IE11 inverts both scrollbar position and scrolling offset
4221
+ * Directly inspired by @KingSora's OverlayScrollbars https://github.com/KingSora/OverlayScrollbars/blob/master/js/OverlayScrollbars.js#L1634
4222
+ */
4223
+
4224
+
4225
+ asp_SimpleBar.getRtlHelpers = function getRtlHelpers() {
4226
+ var dummyDiv = document.createElement('div');
4227
+ dummyDiv.innerHTML = '<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';
4228
+ var scrollbarDummyEl = dummyDiv.firstElementChild;
4229
+ document.body.appendChild(scrollbarDummyEl);
4230
+ var dummyContainerChild = scrollbarDummyEl.firstElementChild;
4231
+ scrollbarDummyEl.scrollLeft = 0;
4232
+ var dummyContainerOffset = asp_SimpleBar.getOffset(scrollbarDummyEl);
4233
+ var dummyContainerChildOffset = asp_SimpleBar.getOffset(dummyContainerChild);
4234
+ scrollbarDummyEl.scrollLeft = 999;
4235
+ var dummyContainerScrollOffsetAfterScroll = asp_SimpleBar.getOffset(dummyContainerChild);
4236
+ return {
4237
+ // determines if the scrolling is responding with negative values
4238
+ isRtlScrollingInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left && dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left !== 0,
4239
+ // determines if the origin scrollbar position is inverted or not (positioned on left or right)
4240
+ isRtlScrollbarInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left
4241
+ };
4242
+ };
4243
+
4244
+ asp_SimpleBar.getOffset = function getOffset(el) {
4245
+ var rect = el.getBoundingClientRect();
4246
+ var elDocument = getElementDocument(el);
4247
+ var elWindow = getElementWindow(el);
4248
+ return {
4249
+ top: rect.top + (elWindow.pageYOffset || elDocument.documentElement.scrollTop),
4250
+ left: rect.left + (elWindow.pageXOffset || elDocument.documentElement.scrollLeft)
4251
+ };
4252
+ };
4253
+
4254
+ var _proto = asp_SimpleBar.prototype;
4255
+
4256
+ _proto.init = function init() {
4257
+ // Save a reference to the instance, so we know this DOM node has already been instancied
4258
+ asp_SimpleBar.instances.set(this.el, this);
4259
+ this.initDOM();
4260
+ this.scrollbarWidth = this.getScrollbarWidth();
4261
+ this.recalculate();
4262
+ this.initListeners();
4263
+ };
4264
+
4265
+ _proto.initDOM = function initDOM() {
4266
+ var _this2 = this;
4267
+
4268
+ // make sure this element doesn't have the elements yet
4269
+ if (Array.prototype.filter.call(this.el.children, function (child) {
4270
+ return child.classList.contains(_this2.classNames.wrapper);
4271
+ }).length) {
4272
+ // assume that element has his DOM already initiated
4273
+ this.wrapperEl = this.el.querySelector("." + this.classNames.wrapper);
4274
+ this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector("." + this.classNames.contentWrapper);
4275
+ this.contentEl = this.options.contentNode || this.el.querySelector("." + this.classNames.contentEl);
4276
+ this.offsetEl = this.el.querySelector("." + this.classNames.offset);
4277
+ this.maskEl = this.el.querySelector("." + this.classNames.mask);
4278
+ this.placeholderEl = this.findChild(this.wrapperEl, "." + this.classNames.placeholder);
4279
+ this.heightAutoObserverWrapperEl = this.el.querySelector("." + this.classNames.heightAutoObserverWrapperEl);
4280
+ this.heightAutoObserverEl = this.el.querySelector("." + this.classNames.heightAutoObserverEl);
4281
+ this.axis.x.track.el = this.findChild(this.el, "." + this.classNames.track + "." + this.classNames.horizontal);
4282
+ this.axis.y.track.el = this.findChild(this.el, "." + this.classNames.track + "." + this.classNames.vertical);
4283
+ } else {
4284
+ // Prepare DOM
4285
+ this.wrapperEl = document.createElement('div');
4286
+ this.contentWrapperEl = document.createElement('div');
4287
+ this.offsetEl = document.createElement('div');
4288
+ this.maskEl = document.createElement('div');
4289
+ this.contentEl = document.createElement('div');
4290
+ this.placeholderEl = document.createElement('div');
4291
+ this.heightAutoObserverWrapperEl = document.createElement('div');
4292
+ this.heightAutoObserverEl = document.createElement('div');
4293
+ this.wrapperEl.classList.add(this.classNames.wrapper);
4294
+ this.contentWrapperEl.classList.add(this.classNames.contentWrapper);
4295
+ this.offsetEl.classList.add(this.classNames.offset);
4296
+ this.maskEl.classList.add(this.classNames.mask);
4297
+ this.contentEl.classList.add(this.classNames.contentEl);
4298
+ this.placeholderEl.classList.add(this.classNames.placeholder);
4299
+ this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl);
4300
+ this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);
4301
+
4302
+ while (this.el.firstChild) {
4303
+ this.contentEl.appendChild(this.el.firstChild);
4304
+ }
4305
+
4306
+ this.contentWrapperEl.appendChild(this.contentEl);
4307
+ this.offsetEl.appendChild(this.contentWrapperEl);
4308
+ this.maskEl.appendChild(this.offsetEl);
4309
+ this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);
4310
+ this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);
4311
+ this.wrapperEl.appendChild(this.maskEl);
4312
+ this.wrapperEl.appendChild(this.placeholderEl);
4313
+ this.el.appendChild(this.wrapperEl);
4314
+ }
4315
+
4316
+ if (!this.axis.x.track.el || !this.axis.y.track.el) {
4317
+ var track = document.createElement('div');
4318
+ var scrollbar = document.createElement('div');
4319
+ track.classList.add(this.classNames.track);
4320
+ scrollbar.classList.add(this.classNames.scrollbar);
4321
+ track.appendChild(scrollbar);
4322
+ this.axis.x.track.el = track.cloneNode(true);
4323
+ this.axis.x.track.el.classList.add(this.classNames.horizontal);
4324
+ this.axis.y.track.el = track.cloneNode(true);
4325
+ this.axis.y.track.el.classList.add(this.classNames.vertical);
4326
+ this.el.appendChild(this.axis.x.track.el);
4327
+ this.el.appendChild(this.axis.y.track.el);
4328
+ }
4329
+
4330
+ this.axis.x.scrollbar.el = this.axis.x.track.el.querySelector("." + this.classNames.scrollbar);
4331
+ this.axis.y.scrollbar.el = this.axis.y.track.el.querySelector("." + this.classNames.scrollbar);
4332
+
4333
+ if (!this.options.autoHide) {
4334
+ this.axis.x.scrollbar.el.classList.add(this.classNames.visible);
4335
+ this.axis.y.scrollbar.el.classList.add(this.classNames.visible);
4336
+ }
4337
+
4338
+ this.el.setAttribute('data-asp_simplebar', 'init');
4339
+ };
4340
+
4341
+ _proto.initListeners = function initListeners() {
4342
+ var _this3 = this;
4343
+
4344
+ var elWindow = getElementWindow(this.el); // Event listeners
4345
+
4346
+ if (this.options.autoHide) {
4347
+ this.el.addEventListener('mouseenter', this.onMouseEnter);
4348
+ }
4349
+
4350
+ ['mousedown', 'click', 'dblclick'].forEach(function (e) {
4351
+ _this3.el.addEventListener(e, _this3.onPointerEvent, true);
4352
+ });
4353
+ ['touchstart', 'touchend', 'touchmove'].forEach(function (e) {
4354
+ _this3.el.addEventListener(e, _this3.onPointerEvent, {
4355
+ capture: true,
4356
+ passive: true
4357
+ });
4358
+ });
4359
+ this.el.addEventListener('mousemove', this.onMouseMove);
4360
+ this.el.addEventListener('mouseleave', this.onMouseLeave);
4361
+ this.contentWrapperEl.addEventListener('scroll', this.onScroll); // Browser zoom triggers a window resize
4362
+
4363
+ elWindow.addEventListener('resize', this.onWindowResize); // Hack for https://github.com/WICG/ResizeObserver/issues/38
4364
+
4365
+ var resizeObserverStarted = false;
4366
+ var resizeObserver = elWindow.ResizeObserver || ResizeObserver;
4367
+ this.resizeObserver = new resizeObserver(function () {
4368
+ if (!resizeObserverStarted) return;
4369
+
4370
+ _this3.recalculate();
4371
+ });
4372
+ this.resizeObserver.observe(this.el);
4373
+ this.resizeObserver.observe(this.contentEl);
4374
+ elWindow.requestAnimationFrame(function () {
4375
+ resizeObserverStarted = true;
4376
+ }); // This is required to detect horizontal scroll. Vertical scroll only needs the resizeObserver.
4377
+
4378
+ this.mutationObserver = new elWindow.MutationObserver(this.recalculate);
4379
+ this.mutationObserver.observe(this.contentEl, {
4380
+ childList: true,
4381
+ subtree: true,
4382
+ characterData: true
4383
+ });
4384
+ };
4385
+
4386
+ _proto.recalculate = function recalculate() {
4387
+ var elWindow = getElementWindow(this.el);
4388
+ this.elStyles = elWindow.getComputedStyle(this.el);
4389
+ this.isRtl = this.elStyles.direction === 'rtl';
4390
+ var isHeightAuto = this.heightAutoObserverEl.offsetHeight <= 1;
4391
+ var isWidthAuto = this.heightAutoObserverEl.offsetWidth <= 1;
4392
+ var contentElOffsetWidth = this.contentEl.offsetWidth;
4393
+ var contentWrapperElOffsetWidth = this.contentWrapperEl.offsetWidth;
4394
+ var elOverflowX = this.elStyles.overflowX;
4395
+ var elOverflowY = this.elStyles.overflowY;
4396
+ this.contentEl.style.padding = this.elStyles.paddingTop + " " + this.elStyles.paddingRight + " " + this.elStyles.paddingBottom + " " + this.elStyles.paddingLeft;
4397
+ this.wrapperEl.style.margin = "-" + this.elStyles.paddingTop + " -" + this.elStyles.paddingRight + " -" + this.elStyles.paddingBottom + " -" + this.elStyles.paddingLeft;
4398
+ var contentElScrollHeight = this.contentEl.scrollHeight;
4399
+ var contentElScrollWidth = this.contentEl.scrollWidth;
4400
+ this.contentWrapperEl.style.height = isHeightAuto ? 'auto' : '100%'; // Determine placeholder size
4401
+
4402
+ this.placeholderEl.style.width = isWidthAuto ? contentElOffsetWidth + "px" : 'auto';
4403
+ this.placeholderEl.style.height = contentElScrollHeight + "px";
4404
+ var contentWrapperElOffsetHeight = this.contentWrapperEl.offsetHeight;
4405
+ this.axis.x.isOverflowing = contentElScrollWidth > contentElOffsetWidth;
4406
+ this.axis.y.isOverflowing = contentElScrollHeight > contentWrapperElOffsetHeight; // Set isOverflowing to false if user explicitely set hidden overflow
4407
+
4408
+ this.axis.x.isOverflowing = elOverflowX === 'hidden' ? false : this.axis.x.isOverflowing;
4409
+ this.axis.y.isOverflowing = elOverflowY === 'hidden' ? false : this.axis.y.isOverflowing;
4410
+ this.axis.x.forceVisible = this.options.forceVisible === 'x' || this.options.forceVisible === true;
4411
+ this.axis.y.forceVisible = this.options.forceVisible === 'y' || this.options.forceVisible === true;
4412
+ this.hideNativeScrollbar(); // Set isOverflowing to false if scrollbar is not necessary (content is shorter than offset)
4413
+
4414
+ var offsetForXScrollbar = this.axis.x.isOverflowing ? this.scrollbarWidth : 0;
4415
+ var offsetForYScrollbar = this.axis.y.isOverflowing ? this.scrollbarWidth : 0;
4416
+ this.axis.x.isOverflowing = this.axis.x.isOverflowing && contentElScrollWidth > contentWrapperElOffsetWidth - offsetForYScrollbar;
4417
+ this.axis.y.isOverflowing = this.axis.y.isOverflowing && contentElScrollHeight > contentWrapperElOffsetHeight - offsetForXScrollbar;
4418
+ this.axis.x.scrollbar.size = this.getScrollbarSize('x');
4419
+ this.axis.y.scrollbar.size = this.getScrollbarSize('y');
4420
+ this.axis.x.scrollbar.el.style.width = this.axis.x.scrollbar.size + "px";
4421
+ this.axis.y.scrollbar.el.style.height = this.axis.y.scrollbar.size + "px";
4422
+ this.positionScrollbar('x');
4423
+ this.positionScrollbar('y');
4424
+ this.toggleTrackVisibility('x');
4425
+ this.toggleTrackVisibility('y');
4426
+ }
4427
+ /**
4428
+ * Calculate scrollbar size
4429
+ */
4430
+ ;
4431
+
4432
+ _proto.getScrollbarSize = function getScrollbarSize(axis) {
4433
+ if (axis === void 0) {
4434
+ axis = 'y';
4435
+ }
4436
+
4437
+ if (!this.axis[axis].isOverflowing) {
4438
+ return 0;
4439
+ }
4440
+
4441
+ var contentSize = this.contentEl[this.axis[axis].scrollSizeAttr];
4442
+ var trackSize = this.axis[axis].track.el[this.axis[axis].offsetSizeAttr];
4443
+ var scrollbarSize;
4444
+ var scrollbarRatio = trackSize / contentSize; // Calculate new height/position of drag handle.
4445
+
4446
+ scrollbarSize = Math.max(~~(scrollbarRatio * trackSize), this.options.scrollbarMinSize);
4447
+
4448
+ if (this.options.scrollbarMaxSize) {
4449
+ scrollbarSize = Math.min(scrollbarSize, this.options.scrollbarMaxSize);
4450
+ }
4451
+
4452
+ return scrollbarSize;
4453
+ };
4454
+
4455
+ _proto.positionScrollbar = function positionScrollbar(axis) {
4456
+ if (axis === void 0) {
4457
+ axis = 'y';
4458
+ }
4459
+
4460
+ if (!this.axis[axis].isOverflowing) {
4461
+ return;
4462
+ }
4463
+
4464
+ var contentSize = this.contentWrapperEl[this.axis[axis].scrollSizeAttr];
4465
+ var trackSize = this.axis[axis].track.el[this.axis[axis].offsetSizeAttr];
4466
+ var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
4467
+ var scrollbar = this.axis[axis].scrollbar;
4468
+ var scrollOffset = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
4469
+ scrollOffset = axis === 'x' && this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollOffset : scrollOffset;
4470
+ var scrollPourcent = scrollOffset / (contentSize - hostSize);
4471
+ var handleOffset = ~~((trackSize - scrollbar.size) * scrollPourcent);
4472
+ handleOffset = axis === 'x' && this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? handleOffset + (trackSize - scrollbar.size) : handleOffset;
4473
+ scrollbar.el.style.transform = axis === 'x' ? "translate3d(" + handleOffset + "px, 0, 0)" : "translate3d(0, " + handleOffset + "px, 0)";
4474
+ };
4475
+
4476
+ _proto.toggleTrackVisibility = function toggleTrackVisibility(axis) {
4477
+ if (axis === void 0) {
4478
+ axis = 'y';
4479
+ }
4480
+
4481
+ var track = this.axis[axis].track.el;
4482
+ var scrollbar = this.axis[axis].scrollbar.el;
4483
+
4484
+ if (this.axis[axis].isOverflowing || this.axis[axis].forceVisible) {
4485
+ track.style.visibility = 'visible';
4486
+ this.contentWrapperEl.style[this.axis[axis].overflowAttr] = 'scroll';
4487
+ } else {
4488
+ track.style.visibility = 'hidden';
4489
+ this.contentWrapperEl.style[this.axis[axis].overflowAttr] = 'hidden';
4490
+ } // Even if forceVisible is enabled, scrollbar itself should be hidden
4491
+
4492
+
4493
+ if (this.axis[axis].isOverflowing) {
4494
+ scrollbar.style.display = 'block';
4495
+ } else {
4496
+ scrollbar.style.display = 'none';
4497
+ }
4498
+ };
4499
+
4500
+ _proto.hideNativeScrollbar = function hideNativeScrollbar() {
4501
+ this.offsetEl.style[this.isRtl ? 'left' : 'right'] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? "-" + this.scrollbarWidth + "px" : 0;
4502
+ this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? "-" + this.scrollbarWidth + "px" : 0;
4503
+ }
4504
+ /**
4505
+ * On scroll event handling
4506
+ */
4507
+ ;
4508
+
4509
+ _proto.onMouseMoveForAxis = function onMouseMoveForAxis(axis) {
4510
+ if (axis === void 0) {
4511
+ axis = 'y';
4512
+ }
4513
+
4514
+ this.axis[axis].track.rect = this.axis[axis].track.el.getBoundingClientRect();
4515
+ this.axis[axis].scrollbar.rect = this.axis[axis].scrollbar.el.getBoundingClientRect();
4516
+ var isWithinScrollbarBoundsX = this.isWithinBounds(this.axis[axis].scrollbar.rect);
4517
+
4518
+ if (isWithinScrollbarBoundsX) {
4519
+ this.axis[axis].scrollbar.el.classList.add(this.classNames.hover);
4520
+ } else {
4521
+ this.axis[axis].scrollbar.el.classList.remove(this.classNames.hover);
4522
+ }
4523
+
4524
+ if (this.isWithinBounds(this.axis[axis].track.rect)) {
4525
+ this.showScrollbar(axis);
4526
+ this.axis[axis].track.el.classList.add(this.classNames.hover);
4527
+ } else {
4528
+ this.axis[axis].track.el.classList.remove(this.classNames.hover);
4529
+ }
4530
+ };
4531
+
4532
+ _proto.onMouseLeaveForAxis = function onMouseLeaveForAxis(axis) {
4533
+ if (axis === void 0) {
4534
+ axis = 'y';
4535
+ }
4536
+
4537
+ this.axis[axis].track.el.classList.remove(this.classNames.hover);
4538
+ this.axis[axis].scrollbar.el.classList.remove(this.classNames.hover);
4539
+ };
4540
+
4541
+ /**
4542
+ * Show scrollbar
4543
+ */
4544
+ _proto.showScrollbar = function showScrollbar(axis) {
4545
+ if (axis === void 0) {
4546
+ axis = 'y';
4547
+ }
4548
+
4549
+ var scrollbar = this.axis[axis].scrollbar.el;
4550
+
4551
+ if (!this.axis[axis].isVisible) {
4552
+ scrollbar.classList.add(this.classNames.visible);
4553
+ this.axis[axis].isVisible = true;
4554
+ }
4555
+
4556
+ if (this.options.autoHide) {
4557
+ this.hideScrollbars();
4558
+ }
4559
+ }
4560
+ /**
4561
+ * Hide Scrollbar
4562
+ */
4563
+ ;
4564
+
4565
+ /**
4566
+ * on scrollbar handle drag movement starts
4567
+ */
4568
+ _proto.onDragStart = function onDragStart(e, axis) {
4569
+ if (axis === void 0) {
4570
+ axis = 'y';
4571
+ }
4572
+
4573
+ var elDocument = getElementDocument(this.el);
4574
+ var elWindow = getElementWindow(this.el);
4575
+ var scrollbar = this.axis[axis].scrollbar; // Measure how far the user's mouse is from the top of the scrollbar drag handle.
4576
+
4577
+ var eventOffset = axis === 'y' ? e.pageY : e.pageX;
4578
+ this.axis[axis].dragOffset = eventOffset - scrollbar.rect[this.axis[axis].offsetAttr];
4579
+ this.draggedAxis = axis;
4580
+ this.el.classList.add(this.classNames.dragging);
4581
+ elDocument.addEventListener('mousemove', this.drag, true);
4582
+ elDocument.addEventListener('mouseup', this.onEndDrag, true);
4583
+
4584
+ if (this.removePreventClickId === null) {
4585
+ elDocument.addEventListener('click', this.preventClick, true);
4586
+ elDocument.addEventListener('dblclick', this.preventClick, true);
4587
+ } else {
4588
+ elWindow.clearTimeout(this.removePreventClickId);
4589
+ this.removePreventClickId = null;
4590
+ }
4591
+ }
4592
+ /**
4593
+ * Drag scrollbar handle
4594
+ */
4595
+ ;
4596
+
4597
+ _proto.onTrackClick = function onTrackClick(e, axis) {
4598
+ var _this4 = this;
4599
+
4600
+ if (axis === void 0) {
4601
+ axis = 'y';
4602
+ }
4603
+
4604
+ if (!this.options.clickOnTrack) return;
4605
+ var elWindow = getElementWindow(this.el);
4606
+ this.axis[axis].scrollbar.rect = this.axis[axis].scrollbar.el.getBoundingClientRect();
4607
+ var scrollbar = this.axis[axis].scrollbar;
4608
+ var scrollbarOffset = scrollbar.rect[this.axis[axis].offsetAttr];
4609
+ var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
4610
+ var scrolled = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
4611
+ var t = axis === 'y' ? this.mouseY - scrollbarOffset : this.mouseX - scrollbarOffset;
4612
+ var dir = t < 0 ? -1 : 1;
4613
+ var scrollSize = dir === -1 ? scrolled - hostSize : scrolled + hostSize;
4614
+
4615
+ var scrollTo = function scrollTo() {
4616
+ if (dir === -1) {
4617
+ if (scrolled > scrollSize) {
4618
+ var _this4$contentWrapper;
4619
+
4620
+ scrolled -= _this4.options.clickOnTrackSpeed;
4621
+
4622
+ _this4.contentWrapperEl.scrollTo((_this4$contentWrapper = {}, _this4$contentWrapper[_this4.axis[axis].offsetAttr] = scrolled, _this4$contentWrapper));
4623
+
4624
+ elWindow.requestAnimationFrame(scrollTo);
4625
+ }
4626
+ } else {
4627
+ if (scrolled < scrollSize) {
4628
+ var _this4$contentWrapper2;
4629
+
4630
+ scrolled += _this4.options.clickOnTrackSpeed;
4631
+
4632
+ _this4.contentWrapperEl.scrollTo((_this4$contentWrapper2 = {}, _this4$contentWrapper2[_this4.axis[axis].offsetAttr] = scrolled, _this4$contentWrapper2));
4633
+
4634
+ elWindow.requestAnimationFrame(scrollTo);
4635
+ }
4636
+ }
4637
+ };
4638
+
4639
+ scrollTo();
4640
+ }
4641
+ /**
4642
+ * Getter for content element
4643
+ */
4644
+ ;
4645
+
4646
+ _proto.getContentElement = function getContentElement() {
4647
+ return this.contentEl;
4648
+ }
4649
+ /**
4650
+ * Getter for original scrolling element
4651
+ */
4652
+ ;
4653
+
4654
+ _proto.getScrollElement = function getScrollElement() {
4655
+ return this.contentWrapperEl;
4656
+ };
4657
+
4658
+ _proto.getScrollbarWidth = function getScrollbarWidth() {
4659
+ // Try/catch for FF 56 throwing on undefined computedStyles
4660
+ try {
4661
+ // Detect browsers supporting CSS scrollbar styling and do not calculate
4662
+ if (getComputedStyle(this.contentWrapperEl, '::-webkit-scrollbar').display === 'none' || 'scrollbarWidth' in document.documentElement.style || '-ms-overflow-style' in document.documentElement.style) {
4663
+ return 0;
4664
+ } else {
4665
+ return scrollbarWidth(this.el);
4666
+ }
4667
+ } catch (e) {
4668
+ return scrollbarWidth(this.el);
4669
+ }
4670
+ };
4671
+
4672
+ _proto.removeListeners = function removeListeners() {
4673
+ var _this5 = this;
4674
+
4675
+ var elWindow = getElementWindow(this.el); // Event listeners
4676
+
4677
+ if (this.options.autoHide) {
4678
+ this.el.removeEventListener('mouseenter', this.onMouseEnter);
4679
+ }
4680
+
4681
+ ['mousedown', 'click', 'dblclick'].forEach(function (e) {
4682
+ _this5.el.removeEventListener(e, _this5.onPointerEvent, true);
4683
+ });
4684
+ ['touchstart', 'touchend', 'touchmove'].forEach(function (e) {
4685
+ _this5.el.removeEventListener(e, _this5.onPointerEvent, {
4686
+ capture: true,
4687
+ passive: true
4688
+ });
4689
+ });
4690
+ this.el.removeEventListener('mousemove', this.onMouseMove);
4691
+ this.el.removeEventListener('mouseleave', this.onMouseLeave);
4692
+
4693
+ if (this.contentWrapperEl) {
4694
+ this.contentWrapperEl.removeEventListener('scroll', this.onScroll);
4695
+ }
4696
+
4697
+ elWindow.removeEventListener('resize', this.onWindowResize);
4698
+
4699
+ if (this.mutationObserver) {
4700
+ this.mutationObserver.disconnect();
4701
+ }
4702
+
4703
+ if (this.resizeObserver) {
4704
+ this.resizeObserver.disconnect();
4705
+ } // Cancel all debounced functions
4706
+
4707
+
4708
+ this.recalculate.cancel();
4709
+ this.onMouseMove.cancel();
4710
+ this.hideScrollbars.cancel();
4711
+ this.onWindowResize.cancel();
4712
+ }
4713
+ /**
4714
+ * UnMount mutation observer and delete asp_SimpleBar instance from DOM element
4715
+ */
4716
+ ;
4717
+
4718
+ _proto.unMount = function unMount() {
4719
+ this.removeListeners();
4720
+ asp_SimpleBar.instances.delete(this.el);
4721
+ }
4722
+ /**
4723
+ * Check if mouse is within bounds
4724
+ */
4725
+ ;
4726
+
4727
+ _proto.isWithinBounds = function isWithinBounds(bbox) {
4728
+ return this.mouseX >= bbox.left && this.mouseX <= bbox.left + bbox.width && this.mouseY >= bbox.top && this.mouseY <= bbox.top + bbox.height;
4729
+ }
4730
+ /**
4731
+ * Find element children matches query
4732
+ */
4733
+ ;
4734
+
4735
+ _proto.findChild = function findChild(el, query) {
4736
+ var matches = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;
4737
+ return Array.prototype.filter.call(el.children, function (child) {
4738
+ return matches.call(child, query);
4739
+ })[0];
4740
+ };
4741
+
4742
+ return asp_SimpleBar;
4743
+ }();
4744
+
4745
+ asp_SimpleBar.defaultOptions = {
4746
+ autoHide: true,
4747
+ forceVisible: false,
4748
+ clickOnTrack: true,
4749
+ clickOnTrackSpeed: 40,
4750
+ classNames: {
4751
+ contentEl: 'asp_simplebar-content',
4752
+ contentWrapper: 'asp_simplebar-content-wrapper',
4753
+ offset: 'asp_simplebar-offset',
4754
+ mask: 'asp_simplebar-mask',
4755
+ wrapper: 'asp_simplebar-wrapper',
4756
+ placeholder: 'asp_simplebar-placeholder',
4757
+ scrollbar: 'asp_simplebar-scrollbar',
4758
+ track: 'asp_simplebar-track',
4759
+ heightAutoObserverWrapperEl: 'asp_simplebar-height-auto-observer-wrapper',
4760
+ heightAutoObserverEl: 'asp_simplebar-height-auto-observer',
4761
+ visible: 'asp_simplebar-visible',
4762
+ horizontal: 'asp_simplebar-horizontal',
4763
+ vertical: 'asp_simplebar-vertical',
4764
+ hover: 'asp_simplebar-hover',
4765
+ dragging: 'asp_simplebar-dragging'
4766
+ },
4767
+ scrollbarMinSize: 25,
4768
+ scrollbarMaxSize: 0,
4769
+ timeout: 1000
4770
+ };
4771
+ asp_SimpleBar.instances = new WeakMap();
4772
+
4773
+ asp_SimpleBar.initDOMLoadedElements = function () {
4774
+ document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
4775
+ window.removeEventListener('load', this.initDOMLoadedElements);
4776
+ Array.prototype.forEach.call(document.querySelectorAll('[data-asp_simplebar]'), function (el) {
4777
+ if (el.getAttribute('data-asp_simplebar') !== 'init' && !asp_SimpleBar.instances.has(el)) new asp_SimpleBar(el, getOptions(el.attributes));
4778
+ });
4779
+ };
4780
+
4781
+ asp_SimpleBar.removeObserver = function () {
4782
+ this.globalObserver.disconnect();
4783
+ };
4784
+
4785
+ asp_SimpleBar.initHtmlApi = function () {
4786
+ this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this); // MutationObserver is IE11+
4787
+
4788
+ if (typeof MutationObserver !== 'undefined') {
4789
+ // Mutation observer to observe dynamically added elements
4790
+ this.globalObserver = new MutationObserver(asp_SimpleBar.handleMutations);
4791
+ this.globalObserver.observe(document, {
4792
+ childList: true,
4793
+ subtree: true
4794
+ });
4795
+ } // Taken from jQuery `ready` function
4796
+ // Instantiate elements already present on the page
4797
+
4798
+
4799
+ if (document.readyState === 'complete' || document.readyState !== 'loading' && !document.documentElement.doScroll) {
4800
+ // Handle it asynchronously to allow scripts the opportunity to delay init
4801
+ window.setTimeout(this.initDOMLoadedElements);
4802
+ } else {
4803
+ document.addEventListener('DOMContentLoaded', this.initDOMLoadedElements);
4804
+ window.addEventListener('load', this.initDOMLoadedElements);
4805
+ }
4806
+ };
4807
+
4808
+ asp_SimpleBar.handleMutations = function (mutations) {
4809
+ mutations.forEach(function (mutation) {
4810
+ Array.prototype.forEach.call(mutation.addedNodes, function (addedNode) {
4811
+ if (addedNode.nodeType === 1) {
4812
+ if (addedNode.hasAttribute('data-asp_simplebar')) {
4813
+ !asp_SimpleBar.instances.has(addedNode) && document.documentElement.contains(addedNode) && new asp_SimpleBar(addedNode, getOptions(addedNode.attributes));
4814
+ } else {
4815
+ Array.prototype.forEach.call(addedNode.querySelectorAll('[data-asp_simplebar]'), function (el) {
4816
+ if (el.getAttribute('data-asp_simplebar') !== 'init' && !asp_SimpleBar.instances.has(el) && document.documentElement.contains(el)) new asp_SimpleBar(el, getOptions(el.attributes));
4817
+ });
4818
+ }
4819
+ }
4820
+ });
4821
+ Array.prototype.forEach.call(mutation.removedNodes, function (removedNode) {
4822
+ if (removedNode.nodeType === 1) {
4823
+ if (removedNode.getAttribute('data-asp_simplebar') === 'init') {
4824
+ asp_SimpleBar.instances.has(removedNode) && !document.documentElement.contains(removedNode) && asp_SimpleBar.instances.get(removedNode).unMount();
4825
+ } else {
4826
+ Array.prototype.forEach.call(removedNode.querySelectorAll('[data-asp_simplebar="init"]'), function (el) {
4827
+ asp_SimpleBar.instances.has(el) && !document.documentElement.contains(el) && asp_SimpleBar.instances.get(el).unMount();
4828
+ });
4829
+ }
4830
+ }
4831
+ });
4832
+ });
4833
+ };
4834
+
4835
+ asp_SimpleBar.getOptions = getOptions;
4836
+ /**
4837
+ * HTML API
4838
+ * Called only in a browser env.
4839
+ */
4840
+
4841
+ asp_SimpleBar.initHtmlApi();
4842
+
4843
+ return asp_SimpleBar;
4844
+
4845
+ }));
4846
+ })(asljQuery, asljQuery, window);(function(jQuery, $, window){
4847
+ // INIT CODE
4848
+ // Use the window to make sure it is in the main scope, I do not trust IE
4849
+ window.ASL = typeof window.ASL !== 'undefined' ? window.ASL : {};
4850
+
4851
+ window.ASL.getScope = function() {
4852
+ /**
4853
+ * Explanation:
4854
+ * If the sript is scoped, the first argument is always passed in a localized jQuery
4855
+ * variable, while the actual parameter can be aspjQuery or jQuery (or anything) as well.
4856
+ */
4857
+ if (typeof jQuery !== "undefined") {
4858
+ // Is there more than one jQuery? Let's try to find the one where ajax search pro is added
4859
+ if ( typeof jQuery.fn.ajaxsearchlite == 'undefined' ) {
4860
+ // Let's try noconflicting through all the versions
4861
+ var temp = jQuery;
4862
+ var original = jQuery;
4863
+ for (var i = 0; i < 10; i++) {
4864
+ if (typeof temp.fn.ajaxsearchlite == 'undefined') {
4865
+ temp = jQuery.noConflict(true);
4866
+ console.log('ASL: executed one noconflict');
4867
+ } else {
4868
+ // Restore the globals to the initial, original one
4869
+ if ( temp.fn.jquery != original.fn.jquery ) {
4870
+ window.jQuery = window.$ = original;
4871
+ }
4872
+ return temp;
4873
+ }
4874
+ }
4875
+ } else {
4876
+ return jQuery;
4877
+ }
4878
+ }
4879
+
4880
+ // The code should never reach this point, but sometimes magic happens (unloaded or undefined jQuery??)
4881
+ // .. I am almost positive at this point this is going to fail anyways, but worth a try.
4882
+ if (typeof window[ASL.js_scope] !== "undefined")
4883
+ return window[ASL.js_scope];
4884
+ else
4885
+ return false;
4886
+ };
4887
+
4888
+ window.ASL.instances = {
4889
+ instances: [],
4890
+ get: function(id, instance) {
4891
+ this.clean();
4892
+ if ( typeof id === 'undefined' || id == 0) {
4893
+ return this.instances;
4894
+ } else {
4895
+ if ( typeof instance === 'undefined' ) {
4896
+ let ret = [];
4897
+ for ( let i=0; i<this.instances.length; i++ ) {
4898
+ if ( this.instances[i].o.id == id ) {
4899
+ ret.push(this.instances[i]);
4900
+ }
4901
+ }
4902
+ return ret.length > 0 ? ret : false;
4903
+ } else {
4904
+ for ( let i=0; i<this.instances.length; i++ ) {
4905
+ if ( this.instances[i].o.id == id && this.instances[i].o.iid == instance ) {
4906
+ return this.instances[i];
4907
+ }
4908
+ }
4909
+ }
4910
+ }
4911
+ return false;
4912
+ },
4913
+ set: function(obj) {
4914
+ if ( !this.exist(obj.o.id, obj.o.iid) ) {
4915
+ this.instances.push(obj);
4916
+ return true;
4917
+ } else {
4918
+ return false;
4919
+ }
4920
+ },
4921
+ exist: function(id, instance) {
4922
+ this.clean();
4923
+ for ( let i=0; i<this.instances.length; i++ ) {
4924
+ if ( this.instances[i].o.id == id ) {
4925
+ if (typeof instance === 'undefined') {
4926
+ return true;
4927
+ } else if (this.instances[i].o.iid == instance) {
4928
+ return true;
4929
+ }
4930
+ }
4931
+ }
4932
+ return false;
4933
+ },
4934
+ clean: function() {
4935
+ let unset = [], _this = this;
4936
+ this.instances.forEach(function(v, k){
4937
+ if ( typeof jQuery !== 'undefined' ) {
4938
+ if (jQuery('.asl_m_' + v.o.rid).length == 0) {
4939
+ unset.push(k);
4940
+ }
4941
+ }
4942
+ });
4943
+ unset.forEach(function(k){
4944
+ if ( typeof _this.instances[k] !== 'undefined' ) {
4945
+ _this.instances[k].destroy();
4946
+ _this.instances.splice(k, 1);
4947
+ }
4948
+ });
4949
+ },
4950
+ destroy: function(id, instance) {
4951
+ let i = this.get(id, instance);
4952
+ if ( i !== false ) {
4953
+ if ( Array.isArray(i) ) {
4954
+ i.forEach(function (s) {
4955
+ s.destroy();
4956
+ });
4957
+ this.instances = [];
4958
+ } else {
4959
+ let u = 0;
4960
+ this.instances.forEach(function(v, k){
4961
+ if ( v.o.id == id && v.o.iid == instance) {
4962
+ u = k;
4963
+ }
4964
+ });
4965
+ i.destroy();
4966
+ this.instances.splice(u, 1);
4967
+ }
4968
+ }
4969
+ }
4970
+ };
4971
+
4972
+ window.ASL.initialized = false;
4973
+
4974
+ // Call this function if you need to initialize an instance that is printed after an AJAX call
4975
+ // Calling without an argument initializes all instances found.
4976
+ window.ASL.initialize = function(id) {
4977
+ function b64_utf8_decode(utftext) {
4978
+ var string = "";
4979
+ var i = 0;
4980
+ var c = c1 = c2 = 0;
4981
+
4982
+ while ( i < utftext.length ) {
4983
+
4984
+ c = utftext.charCodeAt(i);
4985
+
4986
+ if (c < 128) {
4987
+ string += String.fromCharCode(c);
4988
+ i++;
4989
+ }
4990
+ else if((c > 191) && (c < 224)) {
4991
+ c2 = utftext.charCodeAt(i+1);
4992
+ string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
4993
+ i += 2;
4994
+ }
4995
+ else {
4996
+ c2 = utftext.charCodeAt(i+1);
4997
+ c3 = utftext.charCodeAt(i+2);
4998
+ string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
4999
+ i += 3;
5000
+ }
5001
+
5002
+ }
5003
+
5004
+ return string;
5005
+ }
5006
+
5007
+ function b64_decode(input) {
5008
+ var output = "";
5009
+ var chr1, chr2, chr3;
5010
+ var enc1, enc2, enc3, enc4;
5011
+ var i = 0;
5012
+ var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
5013
+
5014
+ input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
5015
+
5016
+ while (i < input.length) {
5017
+
5018
+ enc1 = _keyStr.indexOf(input.charAt(i++));
5019
+ enc2 = _keyStr.indexOf(input.charAt(i++));
5020
+ enc3 = _keyStr.indexOf(input.charAt(i++));
5021
+ enc4 = _keyStr.indexOf(input.charAt(i++));
5022
+
5023
+ chr1 = (enc1 << 2) | (enc2 >> 4);
5024
+ chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
5025
+ chr3 = ((enc3 & 3) << 6) | enc4;
5026
+
5027
+ output = output + String.fromCharCode(chr1);
5028
+
5029
+ if (enc3 != 64) {
5030
+ output = output + String.fromCharCode(chr2);
5031
+ }
5032
+ if (enc4 != 64) {
5033
+ output = output + String.fromCharCode(chr3);
5034
+ }
5035
+
5036
+ }
5037
+ output = b64_utf8_decode(output);
5038
+ return output;
5039
+ }
5040
+
5041
+ // window.ASL
5042
+ var _this = this;
5043
+
5044
+ // Some weird ajax loader problem prevention
5045
+ if ( typeof _this.getScope == 'undefined' || typeof _this.version == 'undefined' )
5046
+ return false;
5047
+
5048
+ // Yeah I could use $ or jQuery as the scope variable, but I like to avoid magical errors..
5049
+ var scope = _this.getScope();
5050
+ var selector = ".asl_init_data";
5051
+
5052
+ if ((typeof ASL_INSTANCES != "undefined") && Object.keys(ASL_INSTANCES).length > 0) {
5053
+ scope.each(ASL_INSTANCES, function(k, v){
5054
+ if ( typeof v == "undefined" ) return false;
5055
+ // Return if it is already initialized
5056
+ if ( scope("#ajaxsearchlite" + k).hasClass("hasASL") )
5057
+ return false;
5058
+ else
5059
+ scope("#ajaxsearchlite" + k).addClass("hasASL");
5060
+
5061
+ return scope("#ajaxsearchlite" + k).ajaxsearchlite(v);
5062
+ });
5063
+ } else {
5064
+ if (typeof id !== 'undefined')
5065
+ selector = "div[id*=asl_init_id_" + id + "]";
5066
+
5067
+ /**
5068
+ * Getting around inline script declarations with this solution.
5069
+ * So these new, invisible divs contains a JSON object with the parameters.
5070
+ * Parse all of them and do the declaration.
5071
+ */
5072
+ scope(selector).each(function (index, value) {
5073
+ var rid = scope(this).attr('id').match(/^asl_init_id_(.*)/)[1];
5074
+
5075
+ var jsonData = scope(this).data("asldata");
5076
+ if (typeof jsonData === "undefined") return false;
5077
+
5078
+ jsonData = b64_decode(jsonData);
5079
+ if (typeof jsonData === "undefined" || jsonData == "") return false;
5080
+
5081
+ var args = JSON.parse(jsonData);
5082
+ scope("#ajaxsearchlite" + rid).addClass('hasASL');
5083
+
5084
+ return scope("#ajaxsearchlite" + rid).ajaxsearchlite(args);
5085
+ });
5086
+ }
5087
+
5088
+ if ( _this.highlight.enabled ) {
5089
+ var data = localStorage.getItem('asl_phrase_highlight');
5090
+ localStorage.removeItem('asl_phrase_highlight');
5091
+ if ( data != null ) {
5092
+ data = JSON.parse(data);
5093
+ scope.each(_this.highlight.data, function(i, o){
5094
+ var selector = o.selector != '' && scope(o.selector).length > 0 ? o.selector : 'article';
5095
+ selector = scope(selector).length > 0 ? selector : 'body';
5096
+ scope(selector).highlight(data.phrase, { element: 'span', className: 'asl_single_highlighted', wordsOnly: o.whole, excludeParents : '.asl_w, .asl-try' });
5097
+ if ( o.scroll && scope('.asl_single_highlighted').length > 0 ) {
5098
+ var stop = scope('.asl_single_highlighted').offset().top - 120;
5099
+ if (scope("#wpadminbar").length > 0)
5100
+ stop -= scope("#wpadminbar").height();
5101
+ stop = stop + o.scroll_offset;
5102
+ stop = stop < 0 ? 0 : stop;
5103
+ scope('html').animate({
5104
+ "scrollTop": stop
5105
+ }, {
5106
+ duration: 500
5107
+ });
5108
+ }
5109
+ return false;
5110
+ });
5111
+ }
5112
+ }
5113
+ _this.initialized = true;
5114
+ };
5115
+
5116
+ window.ASL.fixClones = function() {
5117
+ var _this = this;
5118
+ _this.fix_duplicates = _this.fix_duplicates || 0;
5119
+ if ( _this.fix_duplicates == 0 )
5120
+ return false;
5121
+
5122
+ if ( typeof _this.getScope == 'undefined' )
5123
+ return false;
5124
+ var scope = _this.getScope();
5125
+
5126
+ var inst = {};
5127
+ var selector = ".asl_init_data";
5128
+
5129
+ scope(selector).each(function(){
5130
+ var rid = scope(this).attr('id').match(/^asl_init_id_(.*)/)[1];
5131
+ if ( typeof inst[rid] == 'undefined' ) {
5132
+ inst[rid] = {
5133
+ 'rid' : rid,
5134
+ 'id' : rid,
5135
+ 'count': 1
5136
+ };
5137
+ } else {
5138
+ inst[rid].count++;
5139
+ }
5140
+ });
5141
+
5142
+ scope.each(inst, function(k, v){
5143
+ // Same instance, but more copies
5144
+ if ( v.count > 1 ) {
5145
+ scope('.asl_m_' + v.rid).each(function(kk, vv){
5146
+ if ( kk == 0 ) return true;
5147
+ var parent = scope(this).parent();
5148
+ var n_rid = v.id;
5149
+ while ( scope('#ajaxsearchlite' + n_rid).length != 0 ) {
5150
+ n_rid++;
5151
+ }
5152
+ // Main box
5153
+ scope(this).attr('id', 'ajaxsearchlite' + n_rid);
5154
+ scope(this).removeClass('asl_m_' + v.rid).addClass('asl_m_' + n_rid);
5155
+ scope(this).removeClass('hasASL');
5156
+ // Results box
5157
+ // Check if the cloning did make a copy before init, if not, make a results box
5158
+ if ( scope('.asl_r_'+v.rid, this).length == 0 ) {
5159
+ scope('.asl_r_'+v.rid).clone().appendTo(scope(this));
5160
+ }
5161
+ scope('.asl_r_'+v.rid, this).attr('id', 'ajaxsearchliteres'+n_rid);
5162
+ scope('.asl_r_'+v.rid, this).attr('data-id', n_rid);
5163
+ scope('.asl_r_'+v.rid, this).removeClass('asl_r_'+v.rid).addClass('asl_r_'+n_rid);
5164
+ if ( typeof(ASL.resHTML) != 'undefined' ) {
5165
+ scope('#ajaxsearchliteres'+n_rid).html(ASL.resHTML);
5166
+ }
5167
+ // Settings box
5168
+ // Check if the cloning did make a copy before init, if not, make a settings box
5169
+ if ( scope('.asl_s_'+v.rid, this).length == 0 && scope('.asl_s_'+v.rid).length != 0 ) {
5170
+ scope('.asl_s_'+v.rid).clone().appendTo(scope(this));
5171
+ }
5172
+ if ( scope('.asl_sb_'+v.rid, this).length == 0 && scope('.asl_sb_'+v.rid).length != 0 ) {
5173
+ scope('.asl_sb_'+v.rid).clone().appendTo(scope(this));
5174
+ }
5175
+ scope('.asl_s_'+v.rid, this).attr('id', 'ajaxsearchlitesettings'+n_rid);
5176
+ if ( typeof(ASL.setHTML) != 'undefined' ) {
5177
+ scope('#ajaxsearchlitesettings'+n_rid).html(ASL.setHTML);
5178
+ }
5179
+ scope('.asl_sb_'+v.rid, parent).attr('id', 'ajaxsearchlitebsettings'+n_rid);
5180
+ if ( typeof(ASL.setHTML) != 'undefined' ) {
5181
+ scope('#ajaxsearchlitebsettings'+n_rid).html(ASL.setHTML);
5182
+ }
5183
+ // Other data
5184
+ if ( scope('.asl_hidden_data', parent).length > 0 )
5185
+ scope('.asl_hidden_data', parent).attr('id', 'asl_hidden_data_'+n_rid);
5186
+ if ( scope('.asl_init_data', parent).length > 0 )
5187
+ scope('.asl_init_data', parent).attr('id', 'asl_init_id_'+n_rid);
5188
+
5189
+ _this.initialize(n_rid);
5190
+ });
5191
+ }
5192
+ });
5193
+ };
5194
+
5195
+ window.ASL.ready = function() {
5196
+ var _this = this;
5197
+ var scope = _this.getScope();
5198
+ var t = null;
5199
+
5200
+ if ( scope === false ) {
5201
+ return false;
5202
+ }
5203
+
5204
+ scope(function(){
5205
+
5206
+ /**
5207
+ * If the inline var ASL = ... is moved to an external file and defered, the other object properties may not exist
5208
+ * yes, and the initialize() method will fail.
5209
+ * This method will try to get the timing right.
5210
+ */
5211
+ var interval, tries = 0;
5212
+ interval = setInterval(function(){
5213
+ ++tries;
5214
+ if ( tries > 20 || _this.initialized ) {
5215
+ clearInterval(interval);
5216
+ return false;
5217
+ }
5218
+
5219
+ _this.initialize();
5220
+
5221
+ clearInterval(interval);
5222
+ }, 200);
5223
+
5224
+ _this.initialize();
5225
+
5226
+ setTimeout(function(){
5227
+ _this.fixClones();
5228
+ }, 2500);
5229
+ });
5230
+
5231
+ // DOM tree modification detection to re-initialize automatically if enabled
5232
+ if (typeof(ASL.detect_ajax) != "undefined" && ASL.detect_ajax == 1) {
5233
+ scope("body").bind("DOMSubtreeModified", function() {
5234
+ clearTimeout(t);
5235
+ t = setTimeout(function(){
5236
+ _this.initialize();
5237
+ }, 500);
5238
+ });
5239
+ }
5240
+
5241
+ var tt;
5242
+ scope(window).on('resize', function(){
5243
+ clearTimeout(tt);
5244
+ tt = setTimeout(function(){
5245
+ _this.fixClones();
5246
+ }, 2000);
5247
+ });
5248
+
5249
+ var ttt;
5250
+ // Known slide-out and other type of menus to initialize on click
5251
+ var triggerSelectors = '#menu-item-search, .fa-search, .fa, .fas';
5252
+ // Avada theme
5253
+ triggerSelectors = triggerSelectors + ', .fusion-flyout-menu-toggle, .fusion-main-menu-search-open';
5254
+ // Be theme
5255
+ triggerSelectors = triggerSelectors + ', #search_button';
5256
+ // The 7 theme
5257
+ triggerSelectors = triggerSelectors + ', .mini-search.popup-search';
5258
+ // Flatsome theme
5259
+ triggerSelectors = triggerSelectors + ', .icon-search';
5260
+ // Enfold theme
5261
+ triggerSelectors = triggerSelectors + ', .menu-item-search-dropdown';
5262
+ // Uncode theme
5263
+ triggerSelectors = triggerSelectors + ', .mobile-menu-button';
5264
+ // Newspaper theme
5265
+ triggerSelectors = triggerSelectors + ', .td-icon-search, .tdb-search-icon';
5266
+ // Bridge theme
5267
+ triggerSelectors = triggerSelectors + ', .side_menu_button, .search_button';
5268
+ // Jupiter theme
5269
+ triggerSelectors = triggerSelectors + ', .raven-search-form-toggle';
5270
+ // Elementor trigger lightbox & other elementor stuff
5271
+ triggerSelectors = triggerSelectors + ', [data-elementor-open-lightbox], .elementor-button-link, .elementor-button';
5272
+
5273
+ // Attach this to the document ready, as it may not attach if this is loaded early
5274
+ scope(function(){
5275
+ scope('body').on('click touchend', triggerSelectors, function(){
5276
+ clearTimeout(ttt);
5277
+ ttt = setTimeout(function(){
5278
+ _this.initialize();
5279
+ }, 500);
5280
+ });
5281
+ });
5282
+ };
5283
+
5284
+ window.ASL.loadScriptStack = function(stack) {
5285
+ if ( stack.length > 0 ) {
5286
+ var scriptTag = document.createElement('script');
5287
+ scriptTag.src = stack.splice(0, 1);
5288
+ if ( stack.length == 0 ) {
5289
+ scriptTag.onload = function () {
5290
+ if (typeof jQuery.fn.ajaxsearchlite !== 'undefined') {
5291
+ console.log('ASL: Initializing via onload..');
5292
+ window.ASL.ready();
5293
+ }
5294
+ }
5295
+ } else {
5296
+ scriptTag.onload = function () {
5297
+ window.ASL.loadScriptStack(stack);
5298
+ }
5299
+ }
5300
+ console.log('ASL adding:', scriptTag.src);
5301
+ document.body.appendChild(scriptTag);
5302
+ }
5303
+ }
5304
+
5305
+ window.ASL.init = function() {
5306
+ // jQuery deferred and other loading issues protection
5307
+ if ( typeof jQuery === 'undefined' || typeof jQuery.fn.ajaxsearchlite === 'undefined' ) {
5308
+ console.log('ASL: jQuery script is probably deferred or delayed loading, trying to resolve');
5309
+
5310
+ var asl_interval;
5311
+ /**
5312
+ * The script can reload itself, and get to this point of execution again. We want to keep the number of tries
5313
+ * memorized, otherwise it may result in an endless loop.
5314
+ * @type {number}
5315
+ */
5316
+ window.asl_interval_tries = typeof window.asl_interval_tries !== 'undefined' ? window.asl_interval_tries : 0;
5317
+ asl_interval = setInterval(function(){
5318
+ ++window.asl_interval_tries;
5319
+
5320
+ if ( window.asl_interval_tries > 5 ) {
5321
+ console.log('ASL: faliure, init tried', asl_interval_tries, 'times');
5322
+ clearInterval(asl_interval);
5323
+
5324
+ // This should execute once, even if the script is loaded again.
5325
+ if ( typeof jQuery !== 'undefined' && typeof ASL.min_script_src !== 'undefined' && ASL.min_script_src !== null ) {
5326
+ console.log('ASL: jQuery exists, adding ASL script dynamically & trying to load.')
5327
+ ASL.loadScriptStack(ASL.min_script_src);
5328
+ ASL.min_script_src = null; // prevent duplicate loading
5329
+ }
5330
+ return false;
5331
+ } else {
5332
+ if ( typeof jQuery !== 'undefined' && typeof jQuery.fn.ajaxsearchlite !== 'undefined' ) {
5333
+ window.ASL.ready();
5334
+ console.log('ASL: success at try: ', window.asl_interval_tries);
5335
+ clearInterval(asl_interval);
5336
+ return false;
5337
+ }
5338
+ }
5339
+ }, 250);
5340
+ } else {
5341
+ // Call the ready method
5342
+ window.ASL.ready();
5343
+ }
5344
+ };
5345
+
5346
+ if ( typeof window.ASL.version == 'undefined' ) {
5347
+ var asl_init_interval, asl_init_interval_tries = 0;
5348
+ console.log('ASL: global not defined, trying to wait..');
5349
+ asl_init_interval = setInterval(function(){
5350
+ ++asl_init_interval_tries;
5351
+ if ( typeof window.ASL.version != 'undefined' || asl_init_interval_tries > 10 ) {
5352
+ if ( asl_init_interval_tries > 10 ) {
5353
+ console.log('ASL: global found at try ', asl_init_interval_tries);
5354
+ } else {
5355
+ console.log('ASL: global not found, initializing anyways at try ', asl_init_interval_tries);
5356
+ }
5357
+ window.ASL.init();
5358
+ clearInterval(asl_init_interval);
5359
+ return true;
5360
+ }
5361
+ }, 100);
5362
+ } else {
5363
+ window.ASL.init();
5364
+ }
5365
+ })(asljQuery, asljQuery, window);
js/legacy/min/jquery.ajaxsearchlite.min.js ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "undefined"!=typeof jQuery&&(jQuery.extend({highlight:function(a,c,b,d,e){e=""==e?".exhghttt":e;if(3===a.nodeType){if(c=a.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(c))return b=document.createElement(b||"span"),b.className=d||"highlight",d=/\.|,|\s/.test(c[0].charAt(0))?c.index+1:c.index,a=a.splitText(d),a.splitText(c[1].length),d=a.cloneNode(!0),b.appendChild(d),a.parentNode.replaceChild(b,a),1}else if(1===a.nodeType&&a.childNodes&&!/(script|style)/i.test(a.tagName)&&0< !jQuery(a).closest(e).length&&
2
+ (a.tagName!==b.toUpperCase()||a.className!==d))for(var f=0;f<a.childNodes.length;f++)f+=jQuery.highlight(a.childNodes[f],c,b,d,e);return 0}}),jQuery.fn.unhighlight=function(a){var c={className:"highlight",element:"span"};jQuery.extend(c,a);return this.find(c.element+"."+c.className).each(function(){var b=this.parentNode;b.replaceChild(this.firstChild,this);b.normalize()}).end()},jQuery.fn.highlight=function(a,c){var b={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};
3
+ jQuery.extend(b,c);a.constructor===String&&(a=[a]);a=jQuery.grep(a,function(e,f){return""!=e});a=jQuery.map(a,function(e,f){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")});if(0==a.length)return this;c=b.caseSensitive?"":"i";a="("+a.join("|")+")";b.wordsOnly&&(a="(?:,|^|\\s)"+a+"(?:,|$|\\s)");var d=new RegExp(a,c);return this.each(function(){jQuery.highlight(this,d,b.element,b.className,b.excludeParents)})});
4
+ /*
5
+ Ajax Search Lite 4.6 js */
6
+ "undefined"!=typeof jQuery&&function(b){function v(){return"undefined"!=typeof wp&&"undefined"!=typeof wp.hooks&&"undefined"!=typeof wp.hooks.applyFilters?wp.hooks.applyFilters.apply(null,arguments):"undefined"!=typeof arguments[1]?arguments[1]:!1}function w(){var a=b(window).width();return 640>=a?"phone":1024>=a?"tablet":"desktop"}function m(){try{return document.createEvent("TouchEvent"),!0}catch(a){return!1}}function u(a,c){var e=a.find(":input").get();if(1===arguments.length)return c={},b.each(e,
7
+ function(){!this.name||this.disabled||!(this.checked||/select|textarea/i.test(this.nodeName)||/text/i.test(this.type))||b(this).hasClass("asl_datepicker_field")||b(this).hasClass("asl_datepicker")||(void 0==c[this.name]&&(c[this.name]=[]),c[this.name].push(b(this).val()))}),JSON.stringify(c);"object"!=typeof c&&(c=JSON.parse(c));b.each(e,function(){if(this.name&&c[this.name]){var d=c[this.name],f=b(this);"[object Array]"!==Object.prototype.toString.call(d)&&(d=[d]);if("checkbox"==this.type||"radio"==
8
+ this.type){for(var k=f.val(),g=!1,l=0;l<d.length;l++)if(d[l]==k){g=!0;break}f.attr("checked",g)}else f.val(d[0])}});return a}function n(a){return encodeURIComponent(a).replace(/%20/g,"+")}function r(a,c,e,d){var f=b("<form />",{action:a,method:c,style:"display: none;"});"undefined"!==typeof e&&null!==e&&b.each(e,function(k,g){b("<input />",{type:"hidden",name:k,value:g}).appendTo(f)});"undefined"!=typeof d&&"new"==d&&f.attr("target","_blank");f.appendTo("body").trigger("submit")}function x(a){b('<a href="'+
9
+ a+'" target="_blank">').get(0).click()}function t(){return"undefined"!=typeof window.navigator&&"undefined"!=typeof window.navigator.userAgent?null!=window.navigator.userAgent.match(/(iPod|iPhone|iPad)/):!1}var h;"function"!==typeof Object.create&&(Object.create=function(a){function c(){}c.prototype=a;return new c});b.plugin=function(a,c){b.fn[a]=function(e){return this.each(function(){b.data(this,a)||b.data(this,a,Object.create(c).init(e,this))})}};b.plugin("ajaxsearchlite",{init:function(a,c){this.elem=
10
+ c;this.$elem=b(c);this.searching=!1;this.o=b.extend({blocking:!1},a);this.n={};this.n.search=b(this.elem);this.n.container=this.n.search.closest(".asl_w_container");this.o.id=this.n.search.data("id");this.o.iid=this.n.search.data("instance");this.o.rid=this.o.id;this.n.probox=b(".probox",this.n.search);this.n.proinput=b(".proinput",this.n.search);this.n.text=b(".proinput input.orig",this.n.search);this.n.textAutocomplete=b(".proinput input.autocomplete",this.n.search);this.n.loading=b(".proinput .loading",
11
+ this.n.search);this.n.proloading=b(".proloading",this.n.search);this.n.proclose=b(".proclose",this.n.search);this.n.promagnifier=b(".promagnifier",this.n.search);this.n.prosettings=b(".prosettings",this.n.search);this.n.searchsettings=b(".asl_s",this.n.container);this.n.resultsDiv=b(".asl_r",this.n.container);this.fixClonedSelf();this.n.searchsettings=this.n.searchsettings.clone();b("body").append(this.n.searchsettings);this.n.searchsettings.get(0).id=this.n.searchsettings.get(0).id.replace("__original__",
12
+ "");this.n.resultsDiv=this.n.resultsDiv.clone();"hover"==this.o.resultsposition?b("body").append(this.n.resultsDiv):0<this.n.resultsAppend.length&&this.n.resultsAppend.append(this.n.resultsDiv);this.n.resultsDiv.get(0).id=this.n.resultsDiv.get(0).id.replace("__original__","");this.n.hiddenContainer=b("#asl_hidden_data");this.n.aslItemOverlay=b(".asl_item_overlay",this.n.hiddenContainer);this.resizeTimeout=null;this.n.showmore=b(".showmore",this.n.resultsDiv);this.n.items=b(".item",this.n.resultsDiv);
13
+ this.n.results=b(".results",this.n.resultsDiv);this.n.resdrg=b(".resdrg",this.n.resultsDiv);this.postAuto=this.post=null;this.n.textAutocomplete.val("");this.scroll={};this.savedContainerTop=this.savedScrollTop=0;this.is_scroll="undefined"!=typeof asp_SimpleBar;"undefined"!=typeof ASL.scrollbar&&0==ASL.scrollbar&&(this.is_scroll=!1);this.settScroll=null;this.n.resultsAppend=b("#wpdreams_asl_results_"+this.o.id);this.o.redirectOnClick="ajax_search"!=this.o.trigger.click&&"nothing"!=this.o.trigger.click;
14
+ this.o.redirectOnEnter="ajax_search"!=this.o.trigger.return&&"nothing"!=this.o.trigger.return;this.lastSuccesfulSearch="";this.lastSearchData={};this.triggerPrevState=!1;"undefined"==typeof ASL.resHTML&&(ASL.resHTML=this.n.resultsDiv.html());"undefined"==typeof ASL.setHTML&&(ASL.setHTML=this.n.searchsettings.html());b("fieldset",this.n.searchsettings).each(function(){b(".asl_option:not(.hiddend)",this).last().addClass("asl-o-last")});1==ASL.js_retain_popstate&&this.initPrevState();this.monitorTouchMove();
15
+ 0<window.navigator.userAgent.indexOf("MSIE ")&&this.n.search.addClass("asl_msie");this.initSettingsAnimations();this.initResultsAnimations();this.initEvents();this.initAutop();this.initEtc();return this},initPrevState:function(){var a=this;null==h&&(h=localStorage.getItem("asl-"+p.encode(location.href)),null!=h&&(h=JSON.parse(h),h.settings=p.decode(h.settings)));null!=h&&"undefined"!=typeof h.id&&h.id==a.o.id&&(""!=h.phrase&&(a.triggerPrevState=!0,a.n.text.val(h.phrase)),u(b("form",a.n.searchsettings))!=
16
+ h.settings&&(a.triggerPrevState=!0,u(b("form",a.n.searchsettings),h.settings)));localStorage.removeItem("asl-"+p.encode(location.href));a.n.resultsDiv.on("click",".results .item",function(c){c=a.n.text.val();if(""!=c||a.settingsChanged)c={id:a.o.id,phrase:c,settings:p.encode(u(b("form",a.n.searchsettings)))},localStorage.setItem("asl-"+p.encode(location.href),JSON.stringify(c))})},monitorTouchMove:function(){var a=this,c=b("body");a.dragging=!1;c.on("touchmove",function(){a.dragging=!0});c.on("touchstart",
17
+ function(){a.dragging=!1})},gaPageview:function(a){var c=this.gaGetTrackingID();if("undefined"==typeof ASL.analytics||"pageview"!=ASL.analytics.method)return!1;if(""!=ASL.analytics.string){var e="function"==typeof __gaTracker?__gaTracker:"function"==typeof ga?ga:!1,d="function"==typeof gtag?gtag:!1;window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var f=this.o.homeurl.replace(window.location.origin,
18
+ "");!1!==d?!1!==c&&d("config",c,{page_path:f+ASL.analytics.string.replace("{asl_term}",a)}):!1!==e&&(!1!==c&&e("create",c,"auto"),e("send","pageview",{page:f+ASL.analytics.string.replace("{asl_term}",a),title:"Ajax Search"}))}},gaEvent:function(a,c){var e=this.gaGetTrackingID();if("undefined"==typeof ASL.analytics||"event"!=ASL.analytics.method)return!1;var d="function"==typeof gtag?gtag:!1,f="function"==typeof __gaTracker?__gaTracker:"function"==typeof ga?ga:!1;if(!1===d&&!1===f)return!1;if("undefined"!=
19
+ typeof ASL.analytics.event[a]&&1==ASL.analytics.event[a].active){var k={search_id:this.o.id,search_name:this.o.name,phrase:this.n.text.val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},g={event_category:ASL.analytics.event[a].category,event_label:ASL.analytics.event[a].label,value:ASL.analytics.event[a].value};c=b.extend(k,c);b.each(c,function(l,q){q=String(q).replace(/[\s\n\r]+/g," ").trim();b.each(g,function(y,z){g[y]=z.replace(new RegExp("{"+l+"}","gmi"),q)})});
20
+ !1===d?(!1!==e&&f("create",e,"auto"),f("send","event",g.event_category,ASL.analytics.event[a].action,g.event_label,g.value)):(!1!==e&&(g.send_to=e),d("event",ASL.analytics.event[a].action,g))}},gaGetTrackingID:function(){if("undefined"==typeof ASL.analytics)return!1;if("undefined"!=typeof ASL.analytics.tracking_id&&""!=ASL.analytics.tracking_id)return ASL.analytics.tracking_id;if(!1!==("function"==typeof gtag?gtag:!1)&&"undefined"!=typeof ga&&"undefined"!=typeof ga.getAll){var a=!1;ga.getAll().forEach(function(c){a=
21
+ c.get("trackingId")});return a}return!1},createVerticalScroll:function(){this.is_scroll&&"undefined"===typeof this.scroll.recalculate&&(this.scroll=new asp_SimpleBar(this.n.results.get(0),{direction:b("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}))},initEvents:function(){var a=this;if(m()&&t())a.n.text.on("touchstart",function(){a.savedScrollTop=b(window).scrollTop();a.savedContainerTop=a.n.search.offset().top});a.n.text.on("click",function(d){b(this).trigger("focus");a.gaEvent("focus")});a.n.text.on("focus input",
22
+ function(d){a.searching||(""!=b(this).val()?a.n.proclose.css("display","block"):a.n.proclose.css({display:"none"}))});b(a.n.text.parent()).on("submit",function(d){d.preventDefault();m()?a.o.redirectOnEnter?(d=jQuery.Event("keyup"),d.keyCode=d.which=13,a.n.text.trigger(d)):"ajax_search"==a.o.trigger.return&&(a.search(),document.activeElement.blur()):"ajax_search"==a.o.trigger.return&&a.search()});a.n.resultsDiv.css({opacity:0});b(document).on("click touchend",function(){a.hideSettings();0!=a.opened&&
23
+ 1==a.o.closeOnDocClick&&a.hideResults()});a.n.proclose.on("click touchend",function(){a.n.text.val("");a.n.textAutocomplete.val("");a.hideResults();a.n.text.trigger("focus")});b(a.elem).on("click touchend",function(d){d.stopImmediatePropagation()});a.n.resultsDiv.on("click touchend",function(d){d.stopImmediatePropagation()});a.n.searchsettings.on("click touchend",function(d){d.stopImmediatePropagation()});a.n.prosettings.on("click",function(){0==a.n.prosettings.data("opened")?a.showSettings():a.hideSettings()});
24
+ if(0<a.n.search.parents().filter(function(){return"fixed"==b(this).css("position")}).length||"fixed"==a.n.search.css("position"))"absolute"==a.n.resultsDiv.css("position")&&a.n.resultsDiv.css("position","fixed"),a.n.resultsDiv.css("z-index",99999999999),a.o.blocking||a.n.searchsettings.css("position","fixed");if(m())b(window).on("orientationchange",function(){a.orientationChange();setTimeout(function(){a.orientationChange()},800)});else{var c;b(window).on("resize",function(){clearTimeout(c);c=setTimeout(function(){a.resize()},
25
+ 100)})}var e;b(window).on("scroll",function(){clearTimeout(e);e=setTimeout(function(){a.scrolling(!1)},400)});t()&&m()&&16>parseInt(a.n.text.css("font-size"))&&(a.n.text.data("fontSize",a.n.text.css("font-size")).css("font-size","16px"),a.n.textAutocomplete.css("font-size","16px"),b("<style>#ajaxsearchlite"+a.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}</style>").appendTo("head"));a.initNavigationEvent();a.initMagnifierEvent();a.initAutocompleteEvent();a.initFacetEvents()},
26
+ initAutop:function(){if(null!=h&&this.triggerPrevState)return this.search(),h=null,!1},initEtc:function(){var a=this,c=null;b("div.asl_option",a.n.searchsettings).on("mouseup touchend",function(e){e.preventDefault();e.stopImmediatePropagation();if(a.dragging)return!1;b('input[type="checkbox"]',this).prop("checked",!b('input[type="checkbox"]',this).prop("checked"));clearTimeout(c);var d=this;c=setTimeout(function(){b('input[type="checkbox"]',d).trigger("asl_chbx_change")},50)});b("div.asl_option label",
27
+ a.n.searchsettings).on("click",function(e){e.preventDefault()});a.n.resultsDiv.on("click",".results .item",function(){a.gaEvent("result_click",{result_title:b(this).find("a.asl_res_url").text(),result_url:b(this).find("a.asl_res_url").attr("href")});1==a.o.singleHighlight&&(localStorage.removeItem("asl_phrase_highlight"),""!=a.n.text.val().replace(/"|'/g,"")&&localStorage.setItem("asl_phrase_highlight",JSON.stringify({phrase:a.n.text.val().replace(/"|'/g,""),id:a.o.id})))});if(m()&&""!=a.o.mobile.menu_selector)b(a.o.mobile.menu_selector).on("touchend",
28
+ function(){var e=this;setTimeout(function(){var d=b(e).find("input.orig");d=0==d.length?b(e).next().find("input.orig"):d;d=0==d.length?b(e).parent().find("input.orig"):d;d=0==d.length?a.n.text:d;a.n.search.is(":visible")&&d.get(0).focus()},300)})},initNavigationEvent:function(){var a=this;b(a.n.resultsDiv).on("mouseenter",".item",function(){b(".item",a.n.resultsDiv).removeClass("hovered");b(this).addClass("hovered")});b(a.n.resultsDiv).on("mouseleave",".item",function(){b(".item",a.n.resultsDiv).removeClass("hovered")});
29
+ b(document).on("keydown",function(c){if(window.event)var e=window.event.keyCode;else c&&(e=c.which);if(0<b(".item",a.n.resultsDiv).length&&"none"!=a.n.resultsDiv.css("display")){if(40==e||38==e){40==e&&(a.n.text.blur(),0==b(".item.hovered",a.n.resultsDiv).length?b(".item",a.n.resultsDiv).first().addClass("hovered"):b(".item.hovered",a.n.resultsDiv).removeClass("hovered").next(".item").addClass("hovered"));38==e&&(a.n.text.blur(),0==b(".item.hovered",a.n.resultsDiv).length?b(".item",a.n.resultsDiv).last().addClass("hovered"):
30
+ b(".item.hovered",a.n.resultsDiv).removeClass("hovered").prev(".item").addClass("hovered"));c.stopPropagation();c.preventDefault();var d=a.is_scroll?b(a.scroll.getScrollElement()):a.n.results,f=a.n.resultsDiv.find(".resdrg .item.hovered");0==f.length&&(f=a.n.resultsDiv.children().first());d.animate({scrollTop:f.offset().top-d.offset().top+d.scrollTop()},{duration:120})}13==e&&0<b(".item.hovered",a.n.resultsDiv).length&&(c.stopPropagation(),c.preventDefault(),b(".item.hovered a.asl_res_url",a.n.resultsDiv).get(0).click())}})},
31
+ initMagnifierEvent:function(){var a=this,c,e,d=!1;a.n.text.on("keyup",function(f){window.event?(a.keycode=window.event.keyCode,a.ktype=window.event.type):f&&(a.keycode=f.which,a.ktype=f.type);if(13==a.keycode){clearTimeout(e);e=setTimeout(function(){d=!1},300);if(d)return!1;d=!0}f=b(this).hasClass("orig");if(a.n.text.val().length>=a.o.charcount&&f&&"keyup"==a.ktype&&13==a.keycode){a.gaEvent("return");if(1==a.o.redirectOnEnter)"first_result"!=a.o.trigger.return?a.doRedirectToResults(a.ktype):a.search();
32
+ else{if("nothing"==a.o.trigger.return)return!1;b("form",a.n.searchsettings).serialize()+a.n.text.val().trim()==a.lastSuccesfulSearch&&a.resultsOpened||a.search()}clearTimeout(c)}});a.n.promagnifier.add(a.n.text).on("click input",function(f){window.event?(a.keycode=window.event.keyCode,a.ktype=window.event.type):f&&(a.keycode=f.which,a.ktype=f.type);f=b(this).hasClass("orig");if(a.n.text.val().length<a.o.charcount)a.n.proloading.css("display","none"),a.hideResults(),null!=a.post&&a.post.abort(),clearTimeout(c);
33
+ else if(a.n.text.val().length>=a.o.charcount&&!f&&1==a.o.redirectOnClick&&"click"==a.ktype&&"first_result"!=a.o.trigger.click)a.doRedirectToResults(a.ktype),clearTimeout(c);else if(!(37<=a.keycode&&40>=a.keycode||112<=a.keycode&&123>=a.keycode))if(f&&"click"==a.ktype||32==a.keycode)b("form",a.n.searchsettings).serialize()+a.n.text.val().trim()==a.lastSuccesfulSearch&&(a.n.proclose.css("display","block"),a.resultsOpened||a.showResults());else if(!b(this).hasClass("orig")||"click"!=a.ktype){f||"click"!=
34
+ a.ktype||a.gaEvent("magnifier");if("click"==a.ktype&&"ajax_search"!=a.o.trigger.click&&"first_result"!=a.o.trigger.click)return!1;0==a.o.trigger.type&&"input"==a.ktype||f&&"input"==a.ktype&&"nothing"==a.o.trigger.return||!f&&"click"==a.ktype&&"nothing"==a.o.trigger.click||(null!=a.post&&a.post.abort(),clearTimeout(c),a.hideLoader(),c=setTimeout(function(){if(b("form",a.n.searchsettings).serialize()+a.n.text.val().trim()!=a.lastSuccesfulSearch)a.search();else{a.n.proclose.css("display","block");if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),
35
+ !1;a.resultsOpened||a.showResults()}},250))}})},initFacetEvents:function(){var a=this,c=null;1==a.o.trigger.facet&&(b("input[type!=checkbox], select",a.n.searchsettings).on("change slidechange",function(){a.n.text.val().length<a.o.charcount||(null!=a.post&&a.post.abort(),clearTimeout(c),c=setTimeout(function(){a.search()},50))}),b("input[type=checkbox]",a.n.searchsettings).on("asl_chbx_change",function(){a.n.text.val().length<a.o.charcount||(null!=a.post&&a.post.abort(),a.gaEvent("facet_change",{option_label:b(this).closest("fieldset").find("legend").text(),
36
+ option_value:b(this).closest(".asl_option").find(".asl_option_label").text()+(b(this).prop("checked")?"(checked)":"(unchecked)")}),clearTimeout(c),c=setTimeout(function(){a.search()},50))}))},isRedirectToFirstResult:function(){return 0<b(".asl_res_url",this.n.resultsDiv).length&&(1==this.o.redirectOnClick&&"click"==this.ktype&&"first_result"==this.o.trigger.click||1==this.o.redirectOnEnter&&("input"==this.ktype||"keyup"==this.ktype)&&13==this.keycode&&"first_result"==this.o.trigger.return)?!0:!1},
37
+ doRedirectToFirstResult:function(){"same"==("click"==this.ktype?this.o.trigger.click_location:this.o.trigger.return_location)?location.href=b(b(".asl_res_url",this.n.resultsDiv).get(0)).attr("href"):x(b(b(".asl_res_url",this.n.resultsDiv).get(0)).attr("href"));this.hideLoader();this.hideResults();return!1},doRedirectToResults:function(a){var c="click"==this.ktype?this.o.trigger.click:this.o.trigger.return;a="click"==a?this.o.trigger.click_location:this.o.trigger.return_location;c="results_page"==
38
+ c?"?s="+n(this.n.text.val()):"woo_results_page"==c?"?post_type=product&s="+n(this.n.text.val()):this.o.trigger.redirect_url.replace("{phrase}",n(this.n.text.val()));1<this.o.homeurl.indexOf("?")&&0===c.indexOf("?")&&(c=c.replace("?","&"));this.o.overridewpdefault?"post"==this.o.override_method?r(this.o.homeurl+c,"post",{asl_active:1,p_asl_data:b("form",this.n.searchsettings).serialize()},a):(c=this.o.homeurl+c+"&asl_active=1&p_asid="+this.o.id+"&p_asl_data=1&"+b("form",this.n.searchsettings).serialize(),
39
+ "same"==a?location.href=c:x(c)):r(this.o.homeurl+c,"post",{np_asl_data:b("form",this.n.searchsettings).serialize()},a);this.n.proloading.css("display","none");this.hideLoader();this.hideResults();null!=this.post&&this.post.abort()},destroy:function(){this.n.searchsettings.remove();this.n.resultsDiv.remove();this.n.search.remove();this.n.container.remove()},searchfor:function(a){b(".proinput input",this).val(a).trigger("keyup")},initAutocompleteEvent:function(){var a=this;if(1==a.o.autocomplete.enabled&&
40
+ !m())a.n.text.on("keyup",function(c){window.event?(a.keycode=window.event.keyCode,a.ktype=window.event.type):c&&(a.keycode=c.which,a.ktype=c.type);var e=39;b("body").hasClass("rtl")&&(e=37);a.keycode==e&&""!=a.n.textAutocomplete.val()?(c.preventDefault(),a.n.text.val(a.n.textAutocomplete.val()),null!=a.post&&a.post.abort(),a.search()):(null!=a.postAuto&&a.postAuto.abort(),a.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var a=this,c=a.n.text.val();if(""==a.n.text.val())a.n.textAutocomplete.val("");
41
+ else{var e=a.n.textAutocomplete.val();if(""==e||0!=e.indexOf(c))a.n.textAutocomplete.val(""),b.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:c,hl:a.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(d){0<d[1].length&&(response=d[1][0][0].replace(/(<([^>]+)>)/ig,""),response=b("<textarea />").html(response).text(),response=response.substr(c.length),a.n.textAutocomplete.val(c+response))}})}},search:function(){var a=this;if(!(a.n.text.val().length<
42
+ a.o.charcount)){a.searching=!0;a.n.proloading.css({display:"block"});a.n.proclose.css({display:"none"});var c={action:"ajaxsearchlite_search",aslp:a.n.text.val(),asid:a.o.id,options:b("form",a.n.searchsettings).serialize()};c=v("asl_search_data",c);if(JSON.stringify(c)===JSON.stringify(a.lastSearchData))return a.resultsOpened||a.showResults(),a.hideLoader(),a.isRedirectToFirstResult()&&a.doRedirectToFirstResult(),!1;a.gaEvent("search_start");a.post=b.post(ASL.ajaxurl,c,function(e){e=e.replace(/^\s*[\r\n]/gm,
43
+ "");e=e.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1];e=v("asl_search_html",e);a.n.resdrg.html("");a.n.resdrg.html(e);b(".asl_keyword",a.n.resdrg).on("click",function(){a.n.text.val(b(this).html());b("input.orig",a.n.search).val(b(this).html()).trigger("keydown");b("form",a.n.search).trigger("submit","ajax");a.search()});a.n.items=b(".item",a.n.resultsDiv);a.gaEvent("search_end",{results_count:a.n.items.length});a.gaPageview(a.n.text.val());if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),
44
+ !1;a.hideLoader();a.showResults();a.scrollToResults();a.lastSuccesfulSearch=b("form",a.n.searchsettings).serialize()+a.n.text.val().trim();a.lastSearchData=c;0==a.n.items.length?null!=a.n.showmore&&a.n.showmore.css("display","none"):null!=a.n.showmore&&(a.n.showmore.css("display","block"),b("a",a.n.showmore).off(),b("a",a.n.showmore).on("click",function(d){d=a.o.trigger.click;n(a.n.text.val());d="results_page"==d?"?s="+n(a.n.text.val()):"woo_results_page"==d?"?post_type=product&s="+n(a.n.text.val()):
45
+ a.o.trigger.redirect_url.replace("{phrase}",n(a.n.text.val()));a.o.overridewpdefault?"post"==a.o.override_method?r(a.o.homeurl+d,"post",{asl_active:1,p_asl_data:b("form",a.n.searchsettings).serialize()}):location.href=a.o.homeurl+d+"&asl_active=1&p_asid="+a.o.id+"&p_asl_data=1&"+b("form",a.n.searchsettings).serialize():r(a.o.homeurl+d,"post",{np_asl_data:b("form",a.n.searchsettings).serialize()})}))},"text").fail(function(e,d,f){e.aborted||"abort"==d||(a.n.resdrg.html(""),a.n.resdrg.html('<div class="asl_nores">The request failed. Please check your connection! Status: '+
46
+ e.status+"</div>"),a.n.items=b(".item",a.n.resultsDiv),a.hideLoader(),a.showResults(),a.scrollToResults())})}},showLoader:function(){this.n.proloading.css({display:"block"})},hideLoader:function(){this.n.proloading.css({display:"none"});this.n.results.css("display","")},showResultsBox:function(){this.n.resultsDiv.css({display:"block",height:"auto"});this.n.items.addClass(this.animationOpacity);this.fixResultsPosition(!0);this.n.resultsDiv.css(this.resAnim.showCSS);this.n.resultsDiv.removeClass(this.resAnim.hideClass).addClass(this.resAnim.showClass)},
47
+ showResults:function(){var a=this;a.createVerticalScroll();a.showVerticalResults();a.hideLoader();a.n.proclose.css({display:"block"});null!=a.n.showmore&&(0<a.n.items.length?a.n.showmore.css({display:"block"}):a.n.showmore.css({display:"none"}));a.is_scroll&&"undefined"!==typeof a.scroll.recalculate&&setTimeout(function(){a.scroll.recalculate()},500);a.resultsOpened=!0},hideResults:function(){var a=this;if(!a.resultsOpened)return!1;a.n.resultsDiv.removeClass(a.resAnim.showClass).addClass(a.resAnim.hideClass);
48
+ setTimeout(function(){a.n.resultsDiv.css(a.resAnim.hideCSS)},a.resAnim.duration);a.n.proclose.css({display:"none"});null!=a.n.showmore&&a.n.showmore.css({display:"none"});m()&&document.activeElement.blur();a.resultsOpened=!1},scrollToResults:function(){$this=this;if(this.o.scrollToResults.enabled&&!this.$elem.parent().hasClass("asl_preview_data")){var a="hover"==$this.o.resultsposition?$this.n.probox.offset().top-20:$this.n.resultsDiv.offset().top-20;0<b("#wpadminbar").length&&(a-=b("#wpadminbar").height());
49
+ a=0>a?0:a;b("body, html").animate({scrollTop:a},{duration:500})}},createGroup:function(a){return"<div class='group'>"+a+"</div>"},showVerticalResults:function(){this.showResultsBox();if(0<this.n.items.length){var a=this.n.items.length<this.o.itemscount?this.n.items.length:this.o.itemscount;b(".group",this.n.resultsDiv);if(this.n.items.length<=this.o.itemscount)this.n.results.css({height:"auto"});else{this.n.results.css({height:30});this.resize();var c=0,e=0,d=0,f=0;this.n.items.each(function(){e+=
50
+ b(this).outerHeight(!0);b(this).outerHeight(!0)>f&&(f=b(this).outerHeight(!0));c++});d=f*a;d>e&&(d=e);c=1>c?1:c;e=e/c*a;this.n.results.css({height:d})}this.resize();this.n.items.last().addClass("asl_last_item");1==this.o.highlight&&(a=1==this.o.highlightwholewords?!0:!1,b("div.item",this.n.resultsDiv).highlight(this.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:a}))}this.resize();0==this.n.items.length&&this.n.results.css({height:"auto"});this.n.results.css({overflowY:"auto"});
51
+ (this.is_scroll?b(this.scroll.getScrollElement()):this.n.results).scrollTop(0);this.fixResultsPosition(!0);this.searching=!1},initSettingsAnimations:function(){this.settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};this.n.searchsettings.css({"-webkit-animation-duration":this.settAnim.duration+"ms","animation-duration":this.settAnim.duration+
52
+ "ms"})},initResultsAnimations:function(){this.resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};this.n.resultsDiv.css({"-webkit-animation-duration":"300ms","animation-duration":"300ms"})},showSettings:function(){var a=this;a.n.searchsettings.css(a.settAnim.showCSS);a.n.searchsettings.removeClass(a.settAnim.hideClass).addClass(a.settAnim.showClass);
53
+ null==a.settScroll&&a.is_scroll&&(a.settScroll=[],b(".asl_sett_scroll",a.n.searchsettings).each(function(c,e){var d=this;setTimeout(function(){a.settScroll[c]=new asp_SimpleBar(b(d).get(0),{direction:b("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0})},20)}));a.n.prosettings.data("opened",1);a.fixSettingsPosition(!0)},hideSettings:function(){var a=this;a.n.searchsettings.removeClass(a.settAnim.showClass).addClass(a.settAnim.hideClass);setTimeout(function(){a.n.searchsettings.css(a.settAnim.hideCSS)},
54
+ a.settAnim.duration);a.n.prosettings.data("opened",0)},fixClonedSelf:function(){let a=this.o.iid,c=this.o.rid;for(;!ASL.instances.set(this)&&!(++this.o.iid,50<this.o.iid););a!=this.o.iid&&(this.o.rid=this.o.id+"_"+this.o.iid,this.n.search.get(0).id="ajaxsearchlite"+this.o.rid,this.n.search.removeClass("asl_m_"+c).addClass("asl_m_"+this.o.rid),this.n.searchsettings.get(0).id=this.n.searchsettings.get(0).id.replace("settings"+c,"settings"+this.o.rid),this.n.searchsettings.hasClass("asl_s_"+c)?this.n.searchsettings.removeClass("asl_s_"+
55
+ c).addClass("asl_s_"+this.o.rid).data("instance",this.o.iid):this.n.searchsettings.removeClass("asl_sb_"+c).addClass("asl_sb_"+this.o.rid).data("instance",this.o.iid),this.n.resultsDiv.get(0).id=this.n.resultsDiv.get(0).id.replace("prores"+c,"prores"+this.o.rid),this.n.resultsDiv.removeClass("asl_r_"+c).addClass("asl_r_"+this.o.rid).data("instance",this.o.iid),this.n.container.find(".asl_init_data").data("instance",this.o.iid),this.n.container.find(".asl_init_data").get(0).id=this.n.container.find(".asl_init_data").get(0).id.replace("asl_init_id_"+
56
+ c,"asl_init_id_"+this.o.rid),this.n.prosettings.data("opened",0))},cleanUp:function(){0<b(".searchsettings",this.n.search).length&&(b("body>#ajaxsearchlitesettings"+this.o.rid).remove(),b("body>#ajaxsearchliteres"+this.o.rid).remove())},orientationChange:function(){this.fixSettingsPosition();this.fixResultsPosition();this.fixTryThisPosition()},resize:function(){this.fixSettingsPosition();this.fixResultsPosition();this.fixTryThisPosition()},scrolling:function(a){this.fixSettingsPosition(a);this.fixResultsPosition(a)},
57
+ fixTryThisPosition:function(){},fixResultsPosition:function(a){a="undefined"==typeof a?!1:a;var c=this.n.resultsDiv.css("position");if("fixed"==c||"absolute"==c){var e=0;"static"!=b("body").css("position")&&(e=b("body").offset().top);if(1==a||"visible"==this.n.resultsDiv.css("visibility")){var d=a=0,f=this.n.search.offset();"fixed"==c&&(e=0,a=b(document).scrollTop(),d=b(document).scrollLeft(),m()&&t()&&this.n.text.is(":focus")&&(a=this.savedScrollTop,f.top=this.savedContainerTop));"undefined"!=typeof f&&
58
+ (c="phone"==w()?this.o.results.width_phone:"tablet"==w()?this.o.results.width_tablet:this.o.results.width,"auto"==c&&(c=240>this.n.search.outerWidth()?240:this.n.search.outerWidth()),this.n.resultsDiv.css({width:isNaN(c)?c:c+"px",top:f.top+this.n.search.outerHeight(!0)-e-a,left:f.left-d}))}}},fixSettingsPosition:function(a){a="undefined"==typeof a?!1:a;var c=0;"static"!=b("body").css("position")&&(c=b("body").offset().top);if((1==a||0!=this.n.prosettings.data("opened"))&&1!=this.o.blocking){this.fixSettingsWidth();
59
+ a="none"!=this.n.prosettings.css("display")?this.n.prosettings:this.n.promagnifier;var e=a.offset(),d=0,f=0;"fixed"==this.n.searchsettings.css("position")&&(d=b(window).scrollTop(),f=b(window).scrollLeft(),m()&&t()&&this.n.text.is(":focus")&&(e.top=this.savedContainerTop,d=this.savedScrollTop));"left"==this.o.settingsimagepos?this.n.searchsettings.css({display:"block",top:e.top+a.height()-2-c-d,left:e.left-f}):this.n.searchsettings.css({display:"block",top:e.top+a.height()-2-c-d,left:e.left+a.width()-
60
+ this.n.searchsettings.width()-f})}},fixSettingsWidth:function(){}});var p={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var c="",e=0;for(a=p._utf8_encode(a);e<a.length;){var d=a.charCodeAt(e++);var f=a.charCodeAt(e++);var k=a.charCodeAt(e++);var g=d>>2;d=(d&3)<<4|f>>4;var l=(f&15)<<2|k>>6;var q=k&63;isNaN(f)?l=q=64:isNaN(k)&&(q=64);c=c+this._keyStr.charAt(g)+this._keyStr.charAt(d)+this._keyStr.charAt(l)+this._keyStr.charAt(q)}return c},decode:function(a){var c=
61
+ "",e=0;for(a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");e<a.length;){var d=this._keyStr.indexOf(a.charAt(e++));var f=this._keyStr.indexOf(a.charAt(e++));var k=this._keyStr.indexOf(a.charAt(e++));var g=this._keyStr.indexOf(a.charAt(e++));d=d<<2|f>>4;f=(f&15)<<4|k>>2;var l=(k&3)<<6|g;c+=String.fromCharCode(d);64!=k&&(c+=String.fromCharCode(f));64!=g&&(c+=String.fromCharCode(l))}return c=p._utf8_decode(c)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var c="",e=0;e<a.length;e++){var d=a.charCodeAt(e);
62
+ 128>d?c+=String.fromCharCode(d):(127<d&&2048>d?c+=String.fromCharCode(d>>6|192):(c+=String.fromCharCode(d>>12|224),c+=String.fromCharCode(d>>6&63|128)),c+=String.fromCharCode(d&63|128))}return c},_utf8_decode:function(a){var c="",e=0;for(c1=c2=0;e<a.length;){var d=a.charCodeAt(e);128>d?(c+=String.fromCharCode(d),e++):191<d&&224>d?(c2=a.charCodeAt(e+1),c+=String.fromCharCode((d&31)<<6|c2&63),e+=2):(c2=a.charCodeAt(e+1),c3=a.charCodeAt(e+2),c+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),e+=3)}return c}}}(jQuery);
63
+ (function(J,A){"object"===typeof exports&&"undefined"!==typeof module?module.exports=A(require("core-js/modules/es.array.for-each"),require("core-js/modules/web.dom-collections.for-each"),require("core-js/modules/es.array.filter"),require("core-js/modules/es.array.iterator"),require("core-js/modules/es.object.assign"),require("core-js/modules/es.object.to-string"),require("core-js/modules/es.parse-int"),require("core-js/modules/es.string.iterator"),require("core-js/modules/es.weak-map"),require("core-js/modules/web.dom-collections.iterator"),
64
+ require("core-js/modules/es.array.reduce"),require("core-js/modules/es.function.name"),require("core-js/modules/es.regexp.exec"),require("core-js/modules/es.string.match"),require("core-js/modules/es.string.replace")):"function"===typeof define&&define.amd?define("core-js/modules/es.array.for-each core-js/modules/web.dom-collections.for-each core-js/modules/es.array.filter core-js/modules/es.array.iterator core-js/modules/es.object.assign core-js/modules/es.object.to-string core-js/modules/es.parse-int core-js/modules/es.string.iterator core-js/modules/es.weak-map core-js/modules/web.dom-collections.iterator core-js/modules/es.array.reduce core-js/modules/es.function.name core-js/modules/es.regexp.exec core-js/modules/es.string.match core-js/modules/es.string.replace".split(" "),
65
+ A):(J=J||self,J.asp_SimpleBar=A())})(this,function(){function J(a,c,b){function e(g){var t=m,w=p;m=p=void 0;r=g;return u=a.apply(w,t)}function d(g){var t=g-n;g-=r;return void 0===n||t>=c||0>t||y&&g>=C}function f(){var g=W.Date.now();if(d(g))return h(g);var t=setTimeout;var w=g-r;g=c-(g-n);w=y?Ja(g,C-w):g;l=t(f,w)}function h(g){l=void 0;if(D&&m)return e(g);m=p=void 0;return u}function k(){var g=W.Date.now(),t=d(g);m=arguments;p=this;n=g;if(t){if(void 0===l)return r=g=n,l=setTimeout(f,c),z?e(g):u;if(y)return l=
66
+ setTimeout(f,c),e(n)}void 0===l&&(l=setTimeout(f,c));return u}var m,p,u,l,n,r=0,z=!1,y=!1,D=!0;if("function"!=typeof a)throw new TypeError("Expected a function");c=ha(c)||0;if(A(b)){z=!!b.leading;var C=(y="maxWait"in b)?Ka(ha(b.maxWait)||0,c):C;D="trailing"in b?!!b.trailing:D}k.cancel=function(){void 0!==l&&clearTimeout(l);r=0;m=n=p=l=void 0};k.flush=function(){return void 0===l?u:h(W.Date.now())};return k}function A(a){var c=typeof a;return!!a&&("object"==c||"function"==c)}function ha(a){if("number"==
67
+ typeof a)return a;var c=a;if("symbol"==typeof c||c&&"object"==typeof c&&"[object Symbol]"==La.call(c))return ia;A(a)&&(a="function"==typeof a.valueOf?a.valueOf():a,a=A(a)?a+"":a);if("string"!=typeof a)return 0===a?a:+a;a=a.replace(Ma,"");return(c=Na.test(a))||Oa.test(a)?Pa(a.slice(2),c?2:8):Qa.test(a)?ia:+a}function X(a){var c=typeof a;return!!a&&("object"==c||"function"==c)}function ja(a){if("number"==typeof a)return a;var c=a;if("symbol"==typeof c||c&&"object"==typeof c&&"[object Symbol]"==Ra.call(c))return ka;
68
+ X(a)&&(a="function"==typeof a.valueOf?a.valueOf():a,a=X(a)?a+"":a);if("string"!=typeof a)return 0===a?a:+a;a=a.replace(Sa,"");return(c=Ta.test(a))||Ua.test(a)?Va(a.slice(2),c?2:8):Wa.test(a)?ka:+a}function E(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],e[1])}}function H(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],e[1])}}function F(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],e[1])}}function O(a,c){for(var b=
69
+ a.length;b--;){var e=a[b][0];if(e===c||e!==e&&c!==c)return b}return-1}function P(a,c){a=a.__data__;var b=typeof c;return("string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==c:null===c)?a["string"==typeof c?"string":"hash"]:a.map}function la(a,c){a=null==a?void 0:a[c];if(!ma(a)||na&&na in a)var b=!1;else{b:if(null!=a){try{b=oa.call(a);break b}catch(e){}b=a+""}else b="";c=ma(a)?Xa.call(a):"";if(!(c="[object Function]"==c||"[object GeneratorFunction]"==c)&&(c=!1,null!=a&&"function"!=typeof a.toString))try{c=
70
+ !!(a+"")}catch(e){}b=(c?Ya:Za).test(b)}return b?a:void 0}function Y(a,c){if("function"!=typeof a||c&&"function"!=typeof c)throw new TypeError("Expected a function");var b=function(){var e=arguments,d=c?c.apply(this,e):e[0],f=b.cache;if(f.has(d))return f.get(d);e=a.apply(this,e);b.cache=f.set(d,e);return e};b.cache=new (Y.Cache||F);return b}function ma(a){var c=typeof a;return!!a&&("object"==c||"function"==c)}function B(a){return a&&a.ownerDocument&&a.ownerDocument.defaultView?a.ownerDocument.defaultView:
71
+ window}function Q(a){return a&&a.ownerDocument?a.ownerDocument:document}function pa(a){if(null===K){var c=Q(a);if("undefined"===typeof c)return K=0;a=c.body;c=c.createElement("div");c.classList.add("asp_simplebar-hide-scrollbar");a.appendChild(c);var b=c.getBoundingClientRect().right;a.removeChild(c);K=b}return K}var v="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},ia=0/0,Ma=/^\s+|\s+$/g,Qa=/^[-+]0x[0-9a-f]+$/i,
72
+ Na=/^0b[01]+$/i,Oa=/^0o[0-7]+$/i,Pa=parseInt,$a="object"==typeof self&&self&&self.Object===Object&&self,W="object"==typeof v&&v&&v.Object===Object&&v||$a||Function("return this")(),La=Object.prototype.toString,Ka=Math.max,Ja=Math.min,qa=function(a,c,b){var e=!0,d=!0;if("function"!=typeof a)throw new TypeError("Expected a function");A(b)&&(e="leading"in b?!!b.leading:e,d="trailing"in b?!!b.trailing:d);return J(a,c,{leading:e,maxWait:c,trailing:d})},ka=0/0,Sa=/^\s+|\s+$/g,Wa=/^[-+]0x[0-9a-f]+$/i,Ta=
73
+ /^0b[01]+$/i,Ua=/^0o[0-7]+$/i,Va=parseInt,ab="object"==typeof self&&self&&self.Object===Object&&self,Z="object"==typeof v&&v&&v.Object===Object&&v||ab||Function("return this")(),Ra=Object.prototype.toString,bb=Math.max,cb=Math.min,ra=function(a,c,b){function e(g){var t=m,w=p;m=p=void 0;r=g;return u=a.apply(w,t)}function d(g){var t=g-n;g-=r;return void 0===n||t>=c||0>t||y&&g>=C}function f(){var g=Z.Date.now();if(d(g))return h(g);var t=setTimeout;var w=g-r;g=c-(g-n);w=y?cb(g,C-w):g;l=t(f,w)}function h(g){l=
74
+ void 0;if(D&&m)return e(g);m=p=void 0;return u}function k(){var g=Z.Date.now(),t=d(g);m=arguments;p=this;n=g;if(t){if(void 0===l)return r=g=n,l=setTimeout(f,c),z?e(g):u;if(y)return l=setTimeout(f,c),e(n)}void 0===l&&(l=setTimeout(f,c));return u}var m,p,u,l,n,r=0,z=!1,y=!1,D=!0;if("function"!=typeof a)throw new TypeError("Expected a function");c=ja(c)||0;if(X(b)){z=!!b.leading;var C=(y="maxWait"in b)?bb(ja(b.maxWait)||0,c):C;D="trailing"in b?!!b.trailing:D}k.cancel=function(){void 0!==l&&clearTimeout(l);
75
+ r=0;m=n=p=l=void 0};k.flush=function(){return void 0===l?u:h(Z.Date.now())};return k},Za=/^\[object .+?Constructor\]$/,db="object"==typeof self&&self&&self.Object===Object&&self,sa="object"==typeof v&&v&&v.Object===Object&&v||db||Function("return this")(),eb=Array.prototype,fb=Function.prototype,ta=Object.prototype,aa=sa["__core-js_shared__"],na=function(){var a=/[^.]+$/.exec(aa&&aa.keys&&aa.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),oa=fb.toString,ba=ta.hasOwnProperty,Xa=ta.toString,Ya=
76
+ RegExp("^"+oa.call(ba).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gb=eb.splice,hb=la(sa,"Map"),L=la(Object,"create");E.prototype.clear=function(){this.__data__=L?L(null):{}};E.prototype["delete"]=function(a){return this.has(a)&&delete this.__data__[a]};E.prototype.get=function(a){var c=this.__data__;return L?(a=c[a],"__lodash_hash_undefined__"===a?void 0:a):ba.call(c,a)?c[a]:void 0};E.prototype.has=function(a){var c=this.__data__;
77
+ return L?void 0!==c[a]:ba.call(c,a)};E.prototype.set=function(a,c){this.__data__[a]=L&&void 0===c?"__lodash_hash_undefined__":c;return this};H.prototype.clear=function(){this.__data__=[]};H.prototype["delete"]=function(a){var c=this.__data__;a=O(c,a);if(0>a)return!1;a==c.length-1?c.pop():gb.call(c,a,1);return!0};H.prototype.get=function(a){var c=this.__data__;a=O(c,a);return 0>a?void 0:c[a][1]};H.prototype.has=function(a){return-1<O(this.__data__,a)};H.prototype.set=function(a,c){var b=this.__data__,
78
+ e=O(b,a);0>e?b.push([a,c]):b[e][1]=c;return this};F.prototype.clear=function(){this.__data__={hash:new E,map:new (hb||H),string:new E}};F.prototype["delete"]=function(a){return P(this,a)["delete"](a)};F.prototype.get=function(a){return P(this,a).get(a)};F.prototype.has=function(a){return P(this,a).has(a)};F.prototype.set=function(a,c){P(this,a).set(a,c);return this};Y.Cache=F;var G=[],ib=function(){return G.some(function(a){return 0<a.activeTargets.length})},jb=function(){return G.some(function(a){return 0<
79
+ a.skippedTargets.length})},M;(function(a){a.BORDER_BOX="border-box";a.CONTENT_BOX="content-box";a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(M||(M={}));var kb=function(){return function(a,c){this.inlineSize=a;this.blockSize=c;Object.freeze(this)}}(),ua=function(){function a(c,b,e,d){this.x=c;this.y=b;this.width=e;this.height=d;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Object.freeze(this)}a.prototype.toJSON=function(){return{x:this.x,
80
+ y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}};a.fromRect=function(c){return new a(c.x,c.y,c.width,c.height)};return a}(),ca=function(a){return a instanceof SVGElement&&"getBBox"in a},va=function(a){if(ca(a)){a=a.getBBox();var c=a.height;return!a.width&&!c}c=a.offsetHeight;return!(a.offsetWidth||c||a.getClientRects().length)},wa=function(a){var c;if(a instanceof Element)return!0;var b=null===(c=null===a||void 0===a?void 0:a.ownerDocument)||
81
+ void 0===c?void 0:c.defaultView;return!!(b&&a instanceof b.Element)},N="undefined"!==typeof window?window:{},R=new WeakMap,xa=/auto|scroll/,lb=/^tb|vertical/,mb=/msie|trident/i.test(N.navigator&&N.navigator.userAgent),x=function(a){return parseFloat(a||"0")},I=function(a,c,b){void 0===a&&(a=0);void 0===c&&(c=0);void 0===b&&(b=!1);return new kb((b?c:a)||0,(b?a:c)||0)},ya=Object.freeze({devicePixelContentBoxSize:I(),borderBoxSize:I(),contentBoxSize:I(),contentRect:new ua(0,0,0,0)}),za=function(a,c){void 0===
82
+ c&&(c=!1);if(R.has(a)&&!c)return R.get(a);if(va(a))return R.set(a,ya),ya;var b=getComputedStyle(a),e=ca(a)&&a.ownerSVGElement&&a.getBBox(),d=!mb&&"border-box"===b.boxSizing;c=lb.test(b.writingMode||"");var f=!e&&xa.test(b.overflowY||""),h=!e&&xa.test(b.overflowX||""),k=e?0:x(b.paddingTop),m=e?0:x(b.paddingRight),p=e?0:x(b.paddingBottom),u=e?0:x(b.paddingLeft),l=e?0:x(b.borderTopWidth),n=e?0:x(b.borderRightWidth),r=e?0:x(b.borderBottomWidth),z=e?0:x(b.borderLeftWidth);m=u+m;p=k+p;n=z+n;l+=r;h=h?a.offsetHeight-
83
+ l-a.clientHeight:0;f=f?a.offsetWidth-n-a.clientWidth:0;r=d?m+n:0;z=d?p+l:0;d=e?e.width:x(b.width)-r-f;b=e?e.height:x(b.height)-z-h;e=d+m+f+n;m=b+p+h+l;c=Object.freeze({devicePixelContentBoxSize:I(Math.round(d*devicePixelRatio),Math.round(b*devicePixelRatio),c),borderBoxSize:I(e,m,c),contentBoxSize:I(d,b,c),contentRect:new ua(u,k,d,b)});R.set(a,c);return c},Aa=function(a,c,b){var e=za(a,b);a=e.borderBoxSize;b=e.contentBoxSize;e=e.devicePixelContentBoxSize;switch(c){case M.DEVICE_PIXEL_CONTENT_BOX:return e;
84
+ case M.BORDER_BOX:return a;default:return b}},nb=function(){return function(a){var c=za(a);this.target=a;this.contentRect=c.contentRect;this.borderBoxSize=Object.freeze([c.borderBoxSize]);this.contentBoxSize=Object.freeze([c.contentBoxSize]);this.devicePixelContentBoxSize=Object.freeze([c.devicePixelContentBoxSize])}}(),Ba=function(a){if(va(a))return Infinity;var c=0;for(a=a.parentNode;a;)c+=1,a=a.parentNode;return c},ob=function(){var a=Infinity,c=[];G.forEach(function(e){if(0!==e.activeTargets.length){var d=
85
+ [];e.activeTargets.forEach(function(f){var h=new nb(f.target),k=Ba(f.target);d.push(h);f.lastReportedSize=Aa(f.target,f.observedBox);k<a&&(a=k)});c.push(function(){e.callback.call(e.observer,d,e.observer)});e.activeTargets.splice(0,e.activeTargets.length)}});for(var b=0;b<c.length;b++)(0,c[b])();return a},Ca=function(a){G.forEach(function(c){c.activeTargets.splice(0,c.activeTargets.length);c.skippedTargets.splice(0,c.skippedTargets.length);c.observationTargets.forEach(function(b){b.isActive()&&(Ba(b.target)>
86
+ a?c.activeTargets.push(b):c.skippedTargets.push(b))})})},da,Da=[],pb=function(){return Da.splice(0).forEach(function(a){return a()})},qb=function(a){if(!da){var c=0,b=document.createTextNode("");(new MutationObserver(function(){return pb()})).observe(b,{characterData:!0});da=function(){b.textContent=""+(c?c--:c++)}}Da.push(a);da()},rb=function(a){qb(function(){requestAnimationFrame(a)})},S=0,sb={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ea="resize load transitionend animationend animationstart animationiteration keyup keydown mouseup mousedown mouseover mouseout blur focus".split(" "),
87
+ Fa=function(a){void 0===a&&(a=0);return Date.now()+a},ea=!1,fa=new (function(){function a(){var c=this;this.stopped=!0;this.listener=function(){return c.schedule()}}a.prototype.run=function(c){var b=this;void 0===c&&(c=250);if(!ea){ea=!0;var e=Fa(c);rb(function(){var d=!1;try{var f=0;for(Ca(f);ib();)f=ob(),Ca(f);if(jb()){if("function"===typeof ErrorEvent)var h=new ErrorEvent("error",{message:"ResizeObserver loop completed with undelivered notifications."});else h=document.createEvent("Event"),h.initEvent("error",
88
+ !1,!1),h.message="ResizeObserver loop completed with undelivered notifications.";window.dispatchEvent(h)}d=0<f}finally{ea=!1;c=e-Fa();if(!S)return;d?b.run(1E3):0<c?b.run(c):b.start()}})}};a.prototype.schedule=function(){this.stop();this.run()};a.prototype.observe=function(){var c=this,b=function(){return c.observer&&c.observer.observe(document.body,sb)};document.body?b():N.addEventListener("DOMContentLoaded",b)};a.prototype.start=function(){var c=this;this.stopped&&(this.stopped=!1,this.observer=
89
+ new MutationObserver(this.listener),this.observe(),Ea.forEach(function(b){return N.addEventListener(b,c.listener,!0)}))};a.prototype.stop=function(){var c=this;this.stopped||(this.observer&&this.observer.disconnect(),Ea.forEach(function(b){return N.removeEventListener(b,c.listener,!0)}),this.stopped=!0)};return a}()),Ga=function(a){!S&&0<a&&fa.start();S+=a;!S&&fa.stop()},tb=function(){function a(c,b){this.target=c;this.observedBox=b||M.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}
90
+ a.prototype.isActive=function(){var c=Aa(this.target,this.observedBox,!0),b=this.target,e;if(e=!ca(b)){a:{switch(b.tagName){case "INPUT":if("image"!==b.type)break;case "VIDEO":case "AUDIO":case "EMBED":case "OBJECT":case "CANVAS":case "IFRAME":case "IMG":e=!0;break a}e=!1}e=!e}e&&"inline"===getComputedStyle(b).display&&(this.lastReportedSize=c);return this.lastReportedSize.inlineSize!==c.inlineSize||this.lastReportedSize.blockSize!==c.blockSize?!0:!1};return a}(),ub=function(){return function(a,c){this.activeTargets=
91
+ [];this.skippedTargets=[];this.observationTargets=[];this.observer=a;this.callback=c}}(),T=new WeakMap,Ha=function(a,c){for(var b=0;b<a.length;b+=1)if(a[b].target===c)return b;return-1},U=function(){function a(){}a.connect=function(c,b){b=new ub(c,b);T.set(c,b)};a.observe=function(c,b,e){c=T.get(c);var d=0===c.observationTargets.length;0>Ha(c.observationTargets,b)&&(d&&G.push(c),c.observationTargets.push(new tb(b,e&&e.box)),Ga(1),fa.schedule())};a.unobserve=function(c,b){c=T.get(c);b=Ha(c.observationTargets,
92
+ b);var e=1===c.observationTargets.length;0<=b&&(e&&G.splice(G.indexOf(c),1),c.observationTargets.splice(b,1),Ga(-1))};a.disconnect=function(c){var b=this,e=T.get(c);e.observationTargets.slice().forEach(function(d){return b.unobserve(c,d.target)});e.activeTargets.splice(0,e.activeTargets.length)};return a}(),vb=function(){function a(c){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof c)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
93
+ U.connect(this,c)}a.prototype.observe=function(c,b){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wa(c))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");U.observe(this,c,b)};a.prototype.unobserve=function(c){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
94
+ if(!wa(c))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");U.unobserve(this,c)};a.prototype.disconnect=function(){U.disconnect(this)};a.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return a}(),V=function(a){return Array.prototype.reduce.call(a,function(c,b){var e=b.name.match(/data-asp_simplebar-(.+)/);if(e)switch(e=e[1].replace(/\W+(.)/g,function(d,f){return f.toUpperCase()}),b.value){case "true":c[e]=!0;
95
+ break;case "false":c[e]=!1;break;case void 0:c[e]=!0;break;default:c[e]=b.value}return c},{})},K=null,Ia=null;window.addEventListener("resize",function(){Ia!==window.devicePixelRatio&&(Ia=window.devicePixelRatio,K=null)});var q=function(){function a(b,e){var d=this;this.onScroll=function(){var f=B(d.el);d.scrollXTicking||(f.requestAnimationFrame(d.scrollX),d.scrollXTicking=!0);d.scrollYTicking||(f.requestAnimationFrame(d.scrollY),d.scrollYTicking=!0)};this.scrollX=function(){d.axis.x.isOverflowing&&
96
+ (d.showScrollbar("x"),d.positionScrollbar("x"));d.scrollXTicking=!1};this.scrollY=function(){d.axis.y.isOverflowing&&(d.showScrollbar("y"),d.positionScrollbar("y"));d.scrollYTicking=!1};this.onMouseEnter=function(){d.showScrollbar("x");d.showScrollbar("y")};this.onMouseMove=function(f){d.mouseX=f.clientX;d.mouseY=f.clientY;if(d.axis.x.isOverflowing||d.axis.x.forceVisible)d.onMouseMoveForAxis("x");if(d.axis.y.isOverflowing||d.axis.y.forceVisible)d.onMouseMoveForAxis("y")};this.onMouseLeave=function(){d.onMouseMove.cancel();
97
+ if(d.axis.x.isOverflowing||d.axis.x.forceVisible)d.onMouseLeaveForAxis("x");if(d.axis.y.isOverflowing||d.axis.y.forceVisible)d.onMouseLeaveForAxis("y");d.mouseX=-1;d.mouseY=-1};this.onWindowResize=function(){d.scrollbarWidth=d.getScrollbarWidth();d.hideNativeScrollbar()};this.hideScrollbars=function(){d.axis.x.track.rect=d.axis.x.track.el.getBoundingClientRect();d.axis.y.track.rect=d.axis.y.track.el.getBoundingClientRect();d.isWithinBounds(d.axis.y.track.rect)||(d.axis.y.scrollbar.el.classList.remove(d.classNames.visible),
98
+ d.axis.y.isVisible=!1);d.isWithinBounds(d.axis.x.track.rect)||(d.axis.x.scrollbar.el.classList.remove(d.classNames.visible),d.axis.x.isVisible=!1)};this.onPointerEvent=function(f){d.axis.x.track.rect=d.axis.x.track.el.getBoundingClientRect();d.axis.y.track.rect=d.axis.y.track.el.getBoundingClientRect();if(d.axis.x.isOverflowing||d.axis.x.forceVisible)var h=d.isWithinBounds(d.axis.x.track.rect);if(d.axis.y.isOverflowing||d.axis.y.forceVisible)var k=d.isWithinBounds(d.axis.y.track.rect);if(h||k)if(f.preventDefault(),
99
+ f.stopPropagation(),"mousedown"===f.type){if(h)if(d.axis.x.scrollbar.rect=d.axis.x.scrollbar.el.getBoundingClientRect(),d.isWithinBounds(d.axis.x.scrollbar.rect))d.onDragStart(f,"x");else d.onTrackClick(f,"x");if(k)if(d.axis.y.scrollbar.rect=d.axis.y.scrollbar.el.getBoundingClientRect(),d.isWithinBounds(d.axis.y.scrollbar.rect))d.onDragStart(f,"y");else d.onTrackClick(f,"y")}};this.drag=function(f){var h=d.axis[d.draggedAxis].track,k=h.rect[d.axis[d.draggedAxis].sizeAttr],m=d.axis[d.draggedAxis].scrollbar,
100
+ p=d.contentWrapperEl[d.axis[d.draggedAxis].scrollSizeAttr],u=parseInt(d.elStyles[d.axis[d.draggedAxis].sizeAttr],10);f.preventDefault();f.stopPropagation();f=(("y"===d.draggedAxis?f.pageY:f.pageX)-h.rect[d.axis[d.draggedAxis].offsetAttr]-d.axis[d.draggedAxis].dragOffset)/(k-m.size)*(p-u);"x"===d.draggedAxis&&(f=d.isRtl&&a.getRtlHelpers().isRtlScrollbarInverted?f-(k+m.size):f,f=d.isRtl&&a.getRtlHelpers().isRtlScrollingInverted?-f:f);d.contentWrapperEl[d.axis[d.draggedAxis].scrollOffsetAttr]=f};this.onEndDrag=
101
+ function(f){var h=Q(d.el),k=B(d.el);f.preventDefault();f.stopPropagation();d.el.classList.remove(d.classNames.dragging);h.removeEventListener("mousemove",d.drag,!0);h.removeEventListener("mouseup",d.onEndDrag,!0);d.removePreventClickId=k.setTimeout(function(){h.removeEventListener("click",d.preventClick,!0);h.removeEventListener("dblclick",d.preventClick,!0);d.removePreventClickId=null})};this.preventClick=function(f){f.preventDefault();f.stopPropagation()};this.el=b;this.minScrollbarWidth=20;this.options=
102
+ Object.assign({},a.defaultOptions,{},e);this.classNames=Object.assign({},a.defaultOptions.classNames,{},this.options.classNames);this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",
103
+ dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}};this.removePreventClickId=null;a.instances.has(this.el)||(this.recalculate=qa(this.recalculate.bind(this),64),this.onMouseMove=qa(this.onMouseMove.bind(this),64),this.hideScrollbars=ra(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=ra(this.onWindowResize.bind(this),64,{leading:!0}),a.getRtlHelpers=Y(a.getRtlHelpers),this.init())}a.getRtlHelpers=function(){var b=document.createElement("div");
104
+ b.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var e=b.firstElementChild;document.body.appendChild(e);var d=e.firstElementChild;e.scrollLeft=0;b=a.getOffset(e);var f=a.getOffset(d);e.scrollLeft=999;e=a.getOffset(d);return{isRtlScrollingInverted:b.left!==f.left&&0!==f.left-e.left,isRtlScrollbarInverted:b.left!==f.left}};a.getOffset=function(b){var e=b.getBoundingClientRect(),d=Q(b);b=B(b);return{top:e.top+(b.pageYOffset||d.documentElement.scrollTop),
105
+ left:e.left+(b.pageXOffset||d.documentElement.scrollLeft)}};var c=a.prototype;c.init=function(){a.instances.set(this.el,this);this.initDOM();this.scrollbarWidth=this.getScrollbarWidth();this.recalculate();this.initListeners()};c.initDOM=function(){var b=this;if(Array.prototype.filter.call(this.el.children,function(f){return f.classList.contains(b.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+
106
+ this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),
107
+ this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{this.wrapperEl=document.createElement("div");this.contentWrapperEl=document.createElement("div");this.offsetEl=document.createElement("div");this.maskEl=document.createElement("div");this.contentEl=document.createElement("div");this.placeholderEl=document.createElement("div");this.heightAutoObserverWrapperEl=
108
+ document.createElement("div");this.heightAutoObserverEl=document.createElement("div");this.wrapperEl.classList.add(this.classNames.wrapper);this.contentWrapperEl.classList.add(this.classNames.contentWrapper);this.offsetEl.classList.add(this.classNames.offset);this.maskEl.classList.add(this.classNames.mask);this.contentEl.classList.add(this.classNames.contentEl);this.placeholderEl.classList.add(this.classNames.placeholder);this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl);
109
+ for(this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);this.maskEl.appendChild(this.offsetEl);this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);this.wrapperEl.appendChild(this.maskEl);this.wrapperEl.appendChild(this.placeholderEl);
110
+ this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),d=document.createElement("div");e.classList.add(this.classNames.track);d.classList.add(this.classNames.scrollbar);e.appendChild(d);this.axis.x.track.el=e.cloneNode(!0);this.axis.x.track.el.classList.add(this.classNames.horizontal);this.axis.y.track.el=e.cloneNode(!0);this.axis.y.track.el.classList.add(this.classNames.vertical);this.el.appendChild(this.axis.x.track.el);this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=
111
+ this.axis.x.track.el.querySelector("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar);this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible));this.el.setAttribute("data-asp_simplebar","init")};c.initListeners=function(){var b=this,e=B(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);["mousedown",
112
+ "click","dblclick"].forEach(function(f){b.el.addEventListener(f,b.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(f){b.el.addEventListener(f,b.onPointerEvent,{capture:!0,passive:!0})});this.el.addEventListener("mousemove",this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);e.addEventListener("resize",this.onWindowResize);var d=!1;this.resizeObserver=new (e.ResizeObserver||vb)(function(){d&&
113
+ b.recalculate()});this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl);e.requestAnimationFrame(function(){d=!0});this.mutationObserver=new e.MutationObserver(this.recalculate);this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})};c.recalculate=function(){this.elStyles=B(this.el).getComputedStyle(this.el);this.isRtl="rtl"===this.elStyles.direction;var b=1>=this.heightAutoObserverEl.offsetHeight,e=1>=this.heightAutoObserverEl.offsetWidth,
114
+ d=this.contentEl.offsetWidth,f=this.contentWrapperEl.offsetWidth,h=this.elStyles.overflowX,k=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var m=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=
115
+ b?"auto":"100%";this.placeholderEl.style.width=e?d+"px":"auto";this.placeholderEl.style.height=m+"px";b=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=p>d;this.axis.y.isOverflowing=m>b;this.axis.x.isOverflowing="hidden"===h?!1:this.axis.x.isOverflowing;this.axis.y.isOverflowing="hidden"===k?!1:this.axis.y.isOverflowing;this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible;this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible;
116
+ this.hideNativeScrollbar();d=this.axis.x.isOverflowing?this.scrollbarWidth:0;h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>f-h;this.axis.y.isOverflowing=this.axis.y.isOverflowing&&m>b-d;this.axis.x.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");
117
+ this.positionScrollbar("y");this.toggleTrackVisibility("x");this.toggleTrackVisibility("y")};c.getScrollbarSize=function(b){void 0===b&&(b="y");if(!this.axis[b].isOverflowing)return 0;var e=this.axis[b].track.el[this.axis[b].offsetSizeAttr];b=Math.max(~~(e/this.contentEl[this.axis[b].scrollSizeAttr]*e),this.options.scrollbarMinSize);this.options.scrollbarMaxSize&&(b=Math.min(b,this.options.scrollbarMaxSize));return b};c.positionScrollbar=function(b){void 0===b&&(b="y");if(this.axis[b].isOverflowing){var e=
118
+ this.contentWrapperEl[this.axis[b].scrollSizeAttr],d=this.axis[b].track.el[this.axis[b].offsetSizeAttr],f=parseInt(this.elStyles[this.axis[b].sizeAttr],10),h=this.axis[b].scrollbar,k=this.contentWrapperEl[this.axis[b].scrollOffsetAttr];k="x"===b&&this.isRtl&&a.getRtlHelpers().isRtlScrollingInverted?-k:k;e=~~(k/(e-f)*(d-h.size));e="x"===b&&this.isRtl&&a.getRtlHelpers().isRtlScrollbarInverted?e+(d-h.size):e;h.el.style.transform="x"===b?"translate3d("+e+"px, 0, 0)":"translate3d(0, "+e+"px, 0)"}};c.toggleTrackVisibility=
119
+ function(b){void 0===b&&(b="y");var e=this.axis[b].track.el,d=this.axis[b].scrollbar.el;this.axis[b].isOverflowing||this.axis[b].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[b].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[b].overflowAttr]="hidden");d.style.display=this.axis[b].isOverflowing?"block":"none"};c.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?
120
+ "-"+this.scrollbarWidth+"px":0;this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0};c.onMouseMoveForAxis=function(b){void 0===b&&(b="y");this.axis[b].track.rect=this.axis[b].track.el.getBoundingClientRect();this.axis[b].scrollbar.rect=this.axis[b].scrollbar.el.getBoundingClientRect();this.isWithinBounds(this.axis[b].scrollbar.rect)?this.axis[b].scrollbar.el.classList.add(this.classNames.hover):this.axis[b].scrollbar.el.classList.remove(this.classNames.hover);
121
+ this.isWithinBounds(this.axis[b].track.rect)?(this.showScrollbar(b),this.axis[b].track.el.classList.add(this.classNames.hover)):this.axis[b].track.el.classList.remove(this.classNames.hover)};c.onMouseLeaveForAxis=function(b){void 0===b&&(b="y");this.axis[b].track.el.classList.remove(this.classNames.hover);this.axis[b].scrollbar.el.classList.remove(this.classNames.hover)};c.showScrollbar=function(b){void 0===b&&(b="y");var e=this.axis[b].scrollbar.el;this.axis[b].isVisible||(e.classList.add(this.classNames.visible),
122
+ this.axis[b].isVisible=!0);this.options.autoHide&&this.hideScrollbars()};c.onDragStart=function(b,e){void 0===e&&(e="y");var d=Q(this.el),f=B(this.el);this.axis[e].dragOffset=("y"===e?b.pageY:b.pageX)-this.axis[e].scrollbar.rect[this.axis[e].offsetAttr];this.draggedAxis=e;this.el.classList.add(this.classNames.dragging);d.addEventListener("mousemove",this.drag,!0);d.addEventListener("mouseup",this.onEndDrag,!0);null===this.removePreventClickId?(d.addEventListener("click",this.preventClick,!0),d.addEventListener("dblclick",
123
+ this.preventClick,!0)):(f.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)};c.onTrackClick=function(b,e){var d=this;void 0===e&&(e="y");if(this.options.clickOnTrack){var f=B(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();b=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr];var h=parseInt(this.elStyles[this.axis[e].sizeAttr],10),k=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],m=0>("y"===e?this.mouseY-b:this.mouseX-b)?-1:1,p=-1===
124
+ m?k-h:k+h;(function l(){if(-1===m){if(k>p){var n;k-=d.options.clickOnTrackSpeed;d.contentWrapperEl.scrollTo((n={},n[d.axis[e].offsetAttr]=k,n));f.requestAnimationFrame(l)}}else if(k<p){var r;k+=d.options.clickOnTrackSpeed;d.contentWrapperEl.scrollTo((r={},r[d.axis[e].offsetAttr]=k,r));f.requestAnimationFrame(l)}})()}};c.getContentElement=function(){return this.contentEl};c.getScrollElement=function(){return this.contentWrapperEl};c.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,
125
+ "::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:pa(this.el)}catch(b){return pa(this.el)}};c.removeListeners=function(){var b=this,e=B(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(d){b.el.removeEventListener(d,b.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(d){b.el.removeEventListener(d,
126
+ b.onPointerEvent,{capture:!0,passive:!0})});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll);e.removeEventListener("resize",this.onWindowResize);this.mutationObserver&&this.mutationObserver.disconnect();this.resizeObserver&&this.resizeObserver.disconnect();this.recalculate.cancel();this.onMouseMove.cancel();this.hideScrollbars.cancel();this.onWindowResize.cancel()};
127
+ c.unMount=function(){this.removeListeners();a.instances.delete(this.el)};c.isWithinBounds=function(b){return this.mouseX>=b.left&&this.mouseX<=b.left+b.width&&this.mouseY>=b.top&&this.mouseY<=b.top+b.height};c.findChild=function(b,e){var d=b.matches||b.webkitMatchesSelector||b.mozMatchesSelector||b.msMatchesSelector;return Array.prototype.filter.call(b.children,function(f){return d.call(f,e)})[0]};return a}();q.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"asp_simplebar-content",
128
+ contentWrapper:"asp_simplebar-content-wrapper",offset:"asp_simplebar-offset",mask:"asp_simplebar-mask",wrapper:"asp_simplebar-wrapper",placeholder:"asp_simplebar-placeholder",scrollbar:"asp_simplebar-scrollbar",track:"asp_simplebar-track",heightAutoObserverWrapperEl:"asp_simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"asp_simplebar-height-auto-observer",visible:"asp_simplebar-visible",horizontal:"asp_simplebar-horizontal",vertical:"asp_simplebar-vertical",hover:"asp_simplebar-hover",
129
+ dragging:"asp_simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1E3};q.instances=new WeakMap;q.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll("[data-asp_simplebar]"),function(a){"init"===a.getAttribute("data-asp_simplebar")||q.instances.has(a)||new q(a,V(a.attributes))})};q.removeObserver=function(){this.globalObserver.disconnect()};
130
+ q.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);"undefined"!==typeof MutationObserver&&(this.globalObserver=new MutationObserver(q.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0}));"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",
131
+ this.initDOMLoadedElements))};q.handleMutations=function(a){a.forEach(function(c){Array.prototype.forEach.call(c.addedNodes,function(b){1===b.nodeType&&(b.hasAttribute("data-asp_simplebar")?!q.instances.has(b)&&document.documentElement.contains(b)&&new q(b,V(b.attributes)):Array.prototype.forEach.call(b.querySelectorAll("[data-asp_simplebar]"),function(e){"init"!==e.getAttribute("data-asp_simplebar")&&!q.instances.has(e)&&document.documentElement.contains(e)&&new q(e,V(e.attributes))}))});Array.prototype.forEach.call(c.removedNodes,
132
+ function(b){1===b.nodeType&&("init"===b.getAttribute("data-asp_simplebar")?q.instances.has(b)&&!document.documentElement.contains(b)&&q.instances.get(b).unMount():Array.prototype.forEach.call(b.querySelectorAll('[data-asp_simplebar="init"]'),function(e){q.instances.has(e)&&!document.documentElement.contains(e)&&q.instances.get(e).unMount()}))})})};q.getOptions=V;q.initHtmlApi();return q});
133
+ window.ASL="undefined"!==typeof window.ASL?window.ASL:{};window.ASL.getScope=function(){if("undefined"!==typeof jQuery)if("undefined"==typeof jQuery.fn.ajaxsearchlite)for(var b=jQuery,a=jQuery,f=0;10>f;f++)if("undefined"==typeof b.fn.ajaxsearchlite)b=jQuery.noConflict(!0),console.log("ASL: executed one noconflict");else return b.fn.jquery!=a.fn.jquery&&(window.jQuery=window.$=a),b;else return jQuery;return"undefined"!==typeof window[ASL.js_scope]?window[ASL.js_scope]:!1};
134
+ window.ASL.instances={instances:[],get:function(b,a){this.clean();if("undefined"===typeof b||0==b)return this.instances;if("undefined"===typeof a){a=[];for(var f=0;f<this.instances.length;f++)this.instances[f].o.id==b&&a.push(this.instances[f]);return 0<a.length?a:!1}for(f=0;f<this.instances.length;f++)if(this.instances[f].o.id==b&&this.instances[f].o.iid==a)return this.instances[f];return!1},set:function(b){if(this.exist(b.o.id,b.o.iid))return!1;this.instances.push(b);return!0},exist:function(b,
135
+ a){this.clean();for(let f=0;f<this.instances.length;f++)if(this.instances[f].o.id==b&&("undefined"===typeof a||this.instances[f].o.iid==a))return!0;return!1},clean:function(){let b=[],a=this;this.instances.forEach(function(f,g){"undefined"!==typeof jQuery&&0==jQuery(".asl_m_"+f.o.rid).length&&b.push(g)});b.forEach(function(f){"undefined"!==typeof a.instances[f]&&(a.instances[f].destroy(),a.instances.splice(f,1))})},destroy:function(b,a){let f=this.get(b,a);if(!1!==f)if(Array.isArray(f))f.forEach(function(g){g.destroy()}),
136
+ this.instances=[];else{let g=0;this.instances.forEach(function(c,d){c.o.id==b&&c.o.iid==a&&(g=d)});f.destroy();this.instances.splice(g,1)}}};window.ASL.initialized=!1;
137
+ window.ASL.initialize=function(b){if("undefined"==typeof this.getScope||"undefined"==typeof this.version)return!1;var a=this.getScope(),f=".asl_init_data";"undefined"!=typeof ASL_INSTANCES&&0<Object.keys(ASL_INSTANCES).length?a.each(ASL_INSTANCES,function(c,d){if("undefined"==typeof d||a("#ajaxsearchlite"+c).hasClass("hasASL"))return!1;a("#ajaxsearchlite"+c).addClass("hasASL");return a("#ajaxsearchlite"+c).ajaxsearchlite(d)}):("undefined"!==typeof b&&(f="div[id*=asl_init_id_"+b+"]"),a(f).each(function(c,
138
+ d){c=a(this).attr("id").match(/^asl_init_id_(.*)/)[1];var e=a(this).data("asldata");if("undefined"===typeof e)return!1;d="";var h=0;for(e=e.replace(/[^A-Za-z0-9\+\/=]/g,"");h<e.length;){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(h++));var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(h++));var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(h++));var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(h++));
139
+ m=m<<2|l>>4;l=(l&15)<<4|k>>2;var p=(k&3)<<6|n;d+=String.fromCharCode(m);64!=k&&(d+=String.fromCharCode(l));64!=n&&(d+=String.fromCharCode(p))}h="";for(c1=c2=e=0;e<d.length;)k=d.charCodeAt(e),128>k?(h+=String.fromCharCode(k),e++):191<k&&224>k?(c2=d.charCodeAt(e+1),h+=String.fromCharCode((k&31)<<6|c2&63),e+=2):(c2=d.charCodeAt(e+1),c3=d.charCodeAt(e+2),h+=String.fromCharCode((k&15)<<12|(c2&63)<<6|c3&63),e+=3);e=h;if("undefined"===typeof e||""==e)return!1;d=JSON.parse(e);a("#ajaxsearchlite"+c).addClass("hasASL");
140
+ return a("#ajaxsearchlite"+c).ajaxsearchlite(d)}));if(this.highlight.enabled){var g=localStorage.getItem("asl_phrase_highlight");localStorage.removeItem("asl_phrase_highlight");null!=g&&(g=JSON.parse(g),a.each(this.highlight.data,function(c,d){c=""!=d.selector&&0<a(d.selector).length?d.selector:"article";c=0<a(c).length?c:"body";a(c).highlight(g.phrase,{element:"span",className:"asl_single_highlighted",wordsOnly:d.whole,excludeParents:".asl_w, .asl-try"});d.scroll&&0<a(".asl_single_highlighted").length&&
141
+ (c=a(".asl_single_highlighted").offset().top-120,0<a("#wpadminbar").length&&(c-=a("#wpadminbar").height()),c+=d.scroll_offset,c=0>c?0:c,a("html").animate({scrollTop:c},{duration:500}));return!1}))}this.initialized=!0};
142
+ window.ASL.fixClones=function(){var b=this;b.fix_duplicates=b.fix_duplicates||0;if(0==b.fix_duplicates||"undefined"==typeof b.getScope)return!1;var a=b.getScope(),f={};a(".asl_init_data").each(function(){var g=a(this).attr("id").match(/^asl_init_id_(.*)/)[1];"undefined"==typeof f[g]?f[g]={rid:g,id:g,count:1}:f[g].count++});a.each(f,function(g,c){1<c.count&&a(".asl_m_"+c.rid).each(function(d,e){if(0==d)return!0;d=a(this).parent();for(e=c.id;0!=a("#ajaxsearchlite"+e).length;)e++;a(this).attr("id","ajaxsearchlite"+
143
+ e);a(this).removeClass("asl_m_"+c.rid).addClass("asl_m_"+e);a(this).removeClass("hasASL");0==a(".asl_r_"+c.rid,this).length&&a(".asl_r_"+c.rid).clone().appendTo(a(this));a(".asl_r_"+c.rid,this).attr("id","ajaxsearchliteres"+e);a(".asl_r_"+c.rid,this).attr("data-id",e);a(".asl_r_"+c.rid,this).removeClass("asl_r_"+c.rid).addClass("asl_r_"+e);"undefined"!=typeof ASL.resHTML&&a("#ajaxsearchliteres"+e).html(ASL.resHTML);0==a(".asl_s_"+c.rid,this).length&&0!=a(".asl_s_"+c.rid).length&&a(".asl_s_"+c.rid).clone().appendTo(a(this));
144
+ 0==a(".asl_sb_"+c.rid,this).length&&0!=a(".asl_sb_"+c.rid).length&&a(".asl_sb_"+c.rid).clone().appendTo(a(this));a(".asl_s_"+c.rid,this).attr("id","ajaxsearchlitesettings"+e);"undefined"!=typeof ASL.setHTML&&a("#ajaxsearchlitesettings"+e).html(ASL.setHTML);a(".asl_sb_"+c.rid,d).attr("id","ajaxsearchlitebsettings"+e);"undefined"!=typeof ASL.setHTML&&a("#ajaxsearchlitebsettings"+e).html(ASL.setHTML);0<a(".asl_hidden_data",d).length&&a(".asl_hidden_data",d).attr("id","asl_hidden_data_"+e);0<a(".asl_init_data",
145
+ d).length&&a(".asl_init_data",d).attr("id","asl_init_id_"+e);b.initialize(e)})})};
146
+ window.ASL.ready=function(){var b=this,a=b.getScope(),f=null;if(!1===a)return!1;a(function(){var e=0;var h=setInterval(function(){++e;if(20<e||b.initialized)return clearInterval(h),!1;b.initialize();clearInterval(h)},200);b.initialize();setTimeout(function(){b.fixClones()},2500)});"undefined"!=typeof ASL.detect_ajax&&1==ASL.detect_ajax&&a("body").bind("DOMSubtreeModified",function(){clearTimeout(f);f=setTimeout(function(){b.initialize()},500)});var g;a(window).on("resize",function(){clearTimeout(g);
147
+ g=setTimeout(function(){b.fixClones()},2E3)});var c,d="#menu-item-search, .fa-search, .fa, .fas";d+=", .fusion-flyout-menu-toggle, .fusion-main-menu-search-open";d+=", #search_button";d+=", .mini-search.popup-search";d+=", .icon-search";d+=", .menu-item-search-dropdown";d+=", .mobile-menu-button";d+=", .td-icon-search, .tdb-search-icon";d+=", .side_menu_button, .search_button";d+=", .raven-search-form-toggle";d+=", [data-elementor-open-lightbox], .elementor-button-link, .elementor-button";a(function(){a("body").on("click touchend",
148
+ d,function(){clearTimeout(c);c=setTimeout(function(){b.initialize()},500)})})};window.ASL.loadScriptStack=function(b){if(0<b.length){var a=document.createElement("script");a.src=b.splice(0,1);a.onload=0==b.length?function(){"undefined"!==typeof jQuery.fn.ajaxsearchlite&&(console.log("ASL: Initializing via onload.."),window.ASL.ready())}:function(){window.ASL.loadScriptStack(b)};console.log("ASL adding:",a.src);document.body.appendChild(a)}};
149
+ window.ASL.init=function(){if("undefined"===typeof jQuery||"undefined"===typeof jQuery.fn.ajaxsearchlite){console.log("ASL: jQuery script is probably deferred or delayed loading, trying to resolve");window.asl_interval_tries="undefined"!==typeof window.asl_interval_tries?window.asl_interval_tries:0;var b=setInterval(function(){++window.asl_interval_tries;if(5<window.asl_interval_tries)return console.log("ASL: faliure, init tried",asl_interval_tries,"times"),clearInterval(b),"undefined"!==typeof jQuery&&
150
+ "undefined"!==typeof ASL.min_script_src&&null!==ASL.min_script_src&&(console.log("ASL: jQuery exists, adding ASL script dynamically & trying to load."),ASL.loadScriptStack(ASL.min_script_src),ASL.min_script_src=null),!1;if("undefined"!==typeof jQuery&&"undefined"!==typeof jQuery.fn.ajaxsearchlite)return window.ASL.ready(),console.log("ASL: success at try: ",window.asl_interval_tries),clearInterval(b),!1},250)}else window.ASL.ready()};
151
+ if("undefined"==typeof window.ASL.version){var asl_init_interval,asl_init_interval_tries=0;console.log("ASL: global not defined, trying to wait..");asl_init_interval=setInterval(function(){++asl_init_interval_tries;if("undefined"!=typeof window.ASL.version||10<asl_init_interval_tries)return 10<asl_init_interval_tries?console.log("ASL: global found at try ",asl_init_interval_tries):console.log("ASL: global not found, initializing anyways at try ",asl_init_interval_tries),window.ASL.init(),clearInterval(asl_init_interval),
152
+ !0},100)}else window.ASL.init();
js/{nomin-scoped → legacy/nomin-scoped}/asl_wrapper.js RENAMED
@@ -1,4 +1,4 @@
1
- (function(jQuery, $, window){
2
  // INIT CODE
3
  // Use the window to make sure it is in the main scope, I do not trust IE
4
  window.ASL = typeof window.ASL !== 'undefined' ? window.ASL : {};
@@ -40,6 +40,90 @@ window.ASL.getScope = function() {
40
  return false;
41
  };
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  window.ASL.initialized = false;
44
 
45
  // Call this function if you need to initialize an instance that is printed after an AJAX call
@@ -286,7 +370,6 @@ window.ASL.ready = function() {
286
  clearInterval(interval);
287
  return false;
288
  }
289
- console.log('tries', tries);
290
 
291
  _this.initialize();
292
 
@@ -433,5 +516,5 @@ if ( typeof window.ASL.version == 'undefined' ) {
433
  }, 100);
434
  } else {
435
  window.ASL.init();
436
- }
437
  })(asljQuery, asljQuery, window);
1
+ (function(jQuery, $, window){
2
  // INIT CODE
3
  // Use the window to make sure it is in the main scope, I do not trust IE
4
  window.ASL = typeof window.ASL !== 'undefined' ? window.ASL : {};
40
  return false;
41
  };
42
 
43
+ window.ASL.instances = {
44
+ instances: [],
45
+ get: function(id, instance) {
46
+ this.clean();
47
+ if ( typeof id === 'undefined' || id == 0) {
48
+ return this.instances;
49
+ } else {
50
+ if ( typeof instance === 'undefined' ) {
51
+ let ret = [];
52
+ for ( let i=0; i<this.instances.length; i++ ) {
53
+ if ( this.instances[i].o.id == id ) {
54
+ ret.push(this.instances[i]);
55
+ }
56
+ }
57
+ return ret.length > 0 ? ret : false;
58
+ } else {
59
+ for ( let i=0; i<this.instances.length; i++ ) {
60
+ if ( this.instances[i].o.id == id && this.instances[i].o.iid == instance ) {
61
+ return this.instances[i];
62
+ }
63
+ }
64
+ }
65
+ }
66
+ return false;
67
+ },
68
+ set: function(obj) {
69
+ if ( !this.exist(obj.o.id, obj.o.iid) ) {
70
+ this.instances.push(obj);
71
+ return true;
72
+ } else {
73
+ return false;
74
+ }
75
+ },
76
+ exist: function(id, instance) {
77
+ this.clean();
78
+ for ( let i=0; i<this.instances.length; i++ ) {
79
+ if ( this.instances[i].o.id == id ) {
80
+ if (typeof instance === 'undefined') {
81
+ return true;
82
+ } else if (this.instances[i].o.iid == instance) {
83
+ return true;
84
+ }
85
+ }
86
+ }
87
+ return false;
88
+ },
89
+ clean: function() {
90
+ let unset = [], _this = this;
91
+ this.instances.forEach(function(v, k){
92
+ if ( typeof jQuery !== 'undefined' ) {
93
+ if (jQuery('.asl_m_' + v.o.rid).length == 0) {
94
+ unset.push(k);
95
+ }
96
+ }
97
+ });
98
+ unset.forEach(function(k){
99
+ if ( typeof _this.instances[k] !== 'undefined' ) {
100
+ _this.instances[k].destroy();
101
+ _this.instances.splice(k, 1);
102
+ }
103
+ });
104
+ },
105
+ destroy: function(id, instance) {
106
+ let i = this.get(id, instance);
107
+ if ( i !== false ) {
108
+ if ( Array.isArray(i) ) {
109
+ i.forEach(function (s) {
110
+ s.destroy();
111
+ });
112
+ this.instances = [];
113
+ } else {
114
+ let u = 0;
115
+ this.instances.forEach(function(v, k){
116
+ if ( v.o.id == id && v.o.iid == instance) {
117
+ u = k;
118
+ }
119
+ });
120
+ i.destroy();
121
+ this.instances.splice(u, 1);
122
+ }
123
+ }
124
+ }
125
+ };
126
+
127
  window.ASL.initialized = false;
128
 
129
  // Call this function if you need to initialize an instance that is printed after an AJAX call
370
  clearInterval(interval);
371
  return false;
372
  }
 
373
 
374
  _this.initialize();
375
 
516
  }, 100);
517
  } else {
518
  window.ASL.init();
519
+ }
520
  })(asljQuery, asljQuery, window);
js/{nomin-scoped → legacy/nomin-scoped}/asljquery.js RENAMED
File without changes
js/{nomin → legacy/nomin-scoped}/jquery.ajaxsearchlite.js RENAMED
@@ -1,3 +1,4 @@
 
1
  /*! Ajax Search Lite 4.6 js */
2
  ;if ( typeof jQuery != 'undefined' ) {(function ($) {
3
  var prevState;
@@ -14,21 +15,40 @@
14
  $this.o = $.extend({
15
  'blocking': false
16
  }, options);
17
- $this.n = new Object();
18
- $this.n.container = $(this.elem);
19
- $this.o.rid = $this.n.container.attr('id').match(/^ajaxsearchlite(.*)/)[1];
20
- $this.o.id = $this.n.container.attr('id').match(/^ajaxsearchlite(.*)/)[1];
21
- $this.n.probox = $('.probox', $this.n.container);
22
- $this.n.proinput = $('.proinput', $this.n.container);
23
- $this.n.text = $('.proinput input.orig', $this.n.container);
24
- $this.n.textAutocomplete = $('.proinput input.autocomplete', $this.n.container);
25
- $this.n.loading = $('.proinput .loading', $this.n.container);
26
- $this.n.proloading = $('.proloading', $this.n.container);
27
- $this.n.proclose = $('.proclose', $this.n.container);
28
- $this.n.promagnifier = $('.promagnifier', $this.n.container);
29
- $this.n.prosettings = $('.prosettings', $this.n.container);
30
- $this.n.searchsettings = $('#ajaxsearchlitesettings' + $this.o.rid);
31
- $this.n.resultsDiv = $('#ajaxsearchliteres' + $this.o.rid);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  $this.n.hiddenContainer = $('#asl_hidden_data');
33
  $this.n.aslItemOverlay = $('.asl_item_overlay', $this.n.hiddenContainer);
34
 
@@ -39,69 +59,31 @@
39
  $this.n.results = $('.results', $this.n.resultsDiv);
40
  $this.n.resdrg = $('.resdrg', $this.n.resultsDiv);
41
 
42
- // Isotopic Layout variables
43
- $this.il = {
44
- columns: 3,
45
- itemsPerPage: 6
46
- };
47
-
48
  $this.post = null;
49
  $this.postAuto = null;
50
- $this.cleanUp();
51
  $this.n.textAutocomplete.val('');
52
- $this.o.resultitemheight = parseInt($this.o.resultitemheight);
53
  $this.scroll = {};
54
  $this.savedScrollTop = 0; // Save the window scroll on IOS devices
55
  $this.savedContainerTop = 0;
56
- $this.is_scroll = typeof asl_SimpleBar != "undefined";
57
  // Force noscroll on minified version
58
  if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
59
  $this.is_scroll = false;
60
  $this.settScroll = null;
61
  $this.n.resultsAppend = $('#wpdreams_asl_results_' + $this.o.id);
62
- $this.currentPage = 1;
63
- $this.isotopic = null;
 
64
 
65
  $this.lastSuccesfulSearch = ''; // Holding the last phrase that returned results
66
  $this.lastSearchData = {}; // Store the last search information
67
  $this.triggerPrevState = false;
68
 
69
- $this.animation = "bounceIn";
70
- switch ($this.o.resultstype) {
71
- case "vertical":
72
- $this.animation = $this.o.vresultanimation;
73
- break;
74
- default:
75
- $this.animation = $this.o.hresultanimation;
76
- }
77
 
78
- $this.filterFns = {
79
- number: function () {
80
- var $parent = $(this).parent();
81
- while (!$parent.hasClass('isotopic')) {
82
- $parent = $parent.parent();
83
- }
84
- var number = $(this).attr('data-itemnum');
85
- //var currentPage = parseInt($('nav>ul li.asl_active span', $parent).html(), 10);
86
- var currentPage = $this.currentPage;
87
- //var itemsPerPage = parseInt($parent.data("itemsperpage"));
88
- var itemsPerPage = $this.il.itemsPerPage;
89
-
90
- return (
91
- (parseInt(number, 10) < itemsPerPage * currentPage) &&
92
- (parseInt(number, 10) >= itemsPerPage * (currentPage - 1))
93
- );
94
- }
95
- };
96
 
97
- $this.disableMobileScroll = false;
98
- $this.n.searchsettings.detach().appendTo("body");
99
 
100
- if ($this.o.resultsposition == 'hover') {
101
- $this.n.resultsDiv.detach().appendTo("body");
102
- } else if ($this.n.resultsAppend.length > 0) {
103
- $this.n.resultsDiv.detach().appendTo($this.n.resultsAppend);
104
- }
105
 
106
  // Memorize settins and results original HTML codes
107
  if ( typeof(ASL.resHTML) == 'undefined' )
@@ -120,7 +102,7 @@
120
  $this.monitorTouchMove();
121
 
122
  if (detectOldIE())
123
- $this.n.container.addClass('asl_msie');
124
 
125
  // Calculates the settings animation attributes
126
  $this.initSettingsAnimations();
@@ -312,7 +294,7 @@
312
  createVerticalScroll: function () {
313
  var $this = this;
314
  if ( $this.is_scroll && typeof $this.scroll.recalculate === 'undefined' ) {
315
- $this.scroll = new asl_SimpleBar($this.n.results.get(0), {
316
  direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
317
  autoHide: true
318
  });
@@ -329,7 +311,7 @@
329
  */
330
  $this.n.text.on('touchstart', function () {
331
  $this.savedScrollTop = $(window).scrollTop();
332
- $this.savedContainerTop = $this.n.container.offset().top;
333
  });
334
  }
335
 
@@ -353,16 +335,16 @@
353
  $($this.n.text.parent()).on('submit', function (e) {
354
  e.preventDefault();
355
  if ( isMobile() ) {
356
- if ( $this.o.redirect_on_enter ) {
357
  var _e = jQuery.Event("keyup");
358
  _e.keyCode = _e.which = 13;
359
  $this.n.text.trigger(_e);
360
- } else if ( $this.o.redirectEnterTo == 'ajax_search' ) {
361
  $this.search();
362
  document.activeElement.blur();
363
  }
364
  } else {
365
- if ( $this.o.redirectEnterTo == 'ajax_search' )
366
  $this.search();
367
  }
368
  });
@@ -399,12 +381,12 @@
399
  }
400
  });
401
 
402
- var fixedp = $this.n.container.parents().filter(
403
  function() {
404
  return $(this).css('position') == 'fixed';
405
  }
406
  );
407
- if ( fixedp.length > 0 || $this.n.container.css('position') == 'fixed' ) {
408
  if ( $this.n.resultsDiv.css('position') == 'absolute' )
409
  $this.n.resultsDiv.css('position', 'fixed');
410
  $this.n.resultsDiv.css('z-index',99999999999);
@@ -516,7 +498,7 @@
516
  $input = $input.length == 0 ? $(_this).next().find('input.orig') : $input;
517
  $input = $input.length == 0 ? $(_this).parent().find('input.orig') : $input;
518
  $input = $input.length == 0 ? $this.n.text : $input;
519
- if ( $this.n.container.is(':visible') ) {
520
  $input.get(0).focus();
521
  }
522
  }, 300);
@@ -623,14 +605,14 @@
623
  var isInput = $(this).hasClass("orig");
624
  if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
625
  $this.gaEvent('return');
626
- if ( $this.o.redirect_on_enter == 1 ) {
627
- if ($this.o.redirectEnterTo != 'first_result') {
628
  $this.doRedirectToResults($this.ktype);
629
  } else {
630
  $this.search();
631
  }
632
  } else {
633
- if ( $this.o.redirectEnterTo == 'nothing' )
634
  return false;
635
  if (
636
  ($('form', $this.n.searchsettings).serialize() + $this.n.text.val().trim()) != $this.lastSuccesfulSearch ||
@@ -665,7 +647,7 @@
665
  // If redirection is set to the results page, or custom URL
666
  if (
667
  $this.n.text.val().length >= $this.o.charcount &&
668
- (!isInput && $this.o.redirectonclick == 1 && $this.ktype == 'click' && $this.o.redirectClickTo != 'first_result' )
669
  ) {
670
  $this.doRedirectToResults($this.ktype);
671
  clearTimeout(t);
@@ -692,13 +674,19 @@
692
  $this.gaEvent('magnifier');
693
  }
694
 
695
- if ($this.o.trigger_on_click == 0 && $this.ktype == 'click') return;
696
- if ($this.o.triggerontype == 0 && $this.ktype == 'input') return;
 
 
 
 
 
 
697
 
698
  // Is the nothing is choosen
699
  if (
700
- (isInput && $this.ktype == 'input' && $this.o.redirectEnterTo == 'nothing') ||
701
- (!isInput && $this.ktype == 'click' && $this.o.redirectClickTo == 'nothing')
702
  )
703
  return;
704
 
@@ -727,7 +715,7 @@
727
  var $this = this;
728
  var t = null;
729
 
730
- if ($this.o.trigger_on_facet_change == 1) {
731
  $('input[type!=checkbox], select', $this.n.searchsettings).on('change slidechange', function(){
732
  if ($this.n.text.val().length < $this.o.charcount) return;
733
  if ($this.post != null) $this.post.abort();
@@ -756,8 +744,8 @@
756
  if (
757
  $('.asl_res_url', $this.n.resultsDiv).length > 0 &&
758
  (
759
- ($this.o.redirectonclick == 1 && $this.ktype == 'click' && $this.o.redirectClickTo == 'first_result' ) ||
760
- ($this.o.redirect_on_enter == 1 && ($this.ktype == 'input' || $this.ktype == 'keyup') && $this.keycode == 13 && $this.o.redirectEnterTo == 'first_result' )
761
  )
762
  ) {
763
  return true;
@@ -770,9 +758,9 @@
770
  var _loc;
771
 
772
  if ( $this.ktype == 'click' ) {
773
- _loc = $this.o.redirectClickLoc;
774
  } else {
775
- _loc = $this.o.redirectEnterLoc;
776
  }
777
 
778
  if ( _loc == 'same' )
@@ -788,15 +776,15 @@
788
  doRedirectToResults: function( ktype ) {
789
  var $this = this;
790
 
791
- var source = $this.ktype == 'click' ? $this.o.redirectClickTo : $this.o.redirectEnterTo;
792
- var _loc = ktype == 'click' ? $this.o.redirectClickLoc : $this.o.redirectEnterLoc;
793
 
794
  if ( source == 'results_page' ) {
795
  var url = '?s=' + asl_nice_phrase($this.n.text.val());
796
  } else if ( source == 'woo_results_page' ) {
797
  var url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
798
  } else {
799
- var url = $this.o.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
800
  }
801
 
802
  // Is this an URL like xy.com/?x=y
@@ -830,10 +818,15 @@
830
  },
831
 
832
  destroy: function () {
833
- return this.each(function () {
834
  var $this = $.extend({}, this, methods);
835
  $(window).unbind($this);
836
- })
 
 
 
 
 
837
  },
838
  searchfor: function (phrase) {
839
  $(".proinput input", this).val(phrase).trigger("keyup");
@@ -955,8 +948,8 @@
955
 
956
  $(".asl_keyword", $this.n.resdrg).on('click', function () {
957
  $this.n.text.val($(this).html());
958
- $('input.orig', $this.n.container).val($(this).html()).trigger('keydown');
959
- $('form', $this.n.container).trigger('submit', 'ajax');
960
  $this.search();
961
  });
962
 
@@ -987,7 +980,7 @@
987
 
988
  $('a', $this.n.showmore).off();
989
  $('a', $this.n.showmore).on('click', function(e){
990
- var source = $this.o.redirectClickTo;
991
  var url = '?s=' + asl_nice_phrase($this.n.text.val());
992
 
993
  if ( source == 'results_page' ) {
@@ -995,7 +988,7 @@
995
  } else if ( source == 'woo_results_page' ) {
996
  url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
997
  } else {
998
- url = $this.o.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
999
  }
1000
 
1001
  if ( $this.o.overridewpdefault ) {
@@ -1064,15 +1057,7 @@
1064
 
1065
  // Create the scrollbars if needed
1066
  $this.createVerticalScroll();
1067
-
1068
- switch ($this.o.resultstype) {
1069
- case 'vertical':
1070
- $this.showVerticalResults();
1071
- break;
1072
- default:
1073
- $this.showHorizontalResults();
1074
- break;
1075
- }
1076
 
1077
  $this.hideLoader();
1078
 
@@ -1128,20 +1113,21 @@
1128
 
1129
  scrollToResults: function( ) {
1130
  $this = this;
1131
- if (this.o.scrollToResults!=1) return;
1132
- if (this.$elem.parent().hasClass("asl_preview_data")) return;
1133
- if ($this.o.resultsposition == "hover")
1134
- var stop = $this.n.probox.offset().top - 20;
1135
- else
1136
- var stop = $this.n.resultsDiv.offset().top - 20;
1137
- if ($("#wpadminbar").length > 0)
1138
- stop -= $("#wpadminbar").height();
1139
- stop = stop < 0 ? 0 : stop;
1140
- $('body, html').animate({
1141
- "scrollTop": stop
1142
- }, {
1143
- duration: 500
1144
- });
 
1145
  },
1146
 
1147
  createGroup: function (r) {
@@ -1225,33 +1211,10 @@
1225
  var $container = $this.is_scroll ? $($this.scroll.getScrollElement()) : $this.n.results;
1226
  $container.scrollTop(0);
1227
 
1228
- $this.addAnimation();
1229
  $this.fixResultsPosition(true);
1230
  $this.searching = false;
1231
  },
1232
 
1233
- addAnimation: function () {
1234
- var $this = this;
1235
- var i = 0;
1236
- var j = 1;
1237
- $this.n.items.each(function () {
1238
- var x = this;
1239
- setTimeout(function () {
1240
- $(x).addClass($this.animation);
1241
- }, i);
1242
- i = i + 60;
1243
- j++;
1244
- });
1245
- },
1246
-
1247
- removeAnimation: function () {
1248
- var $this = this;
1249
- $this.n.items.each(function () {
1250
- var x = this;
1251
- $(x).removeClass($this.animation);
1252
- });
1253
- },
1254
-
1255
  initSettingsAnimations: function() {
1256
  var $this = this;
1257
  var animDur = 300;
@@ -1318,7 +1281,7 @@
1318
  var _this = this;
1319
  // Small delay to fix a rendering issue
1320
  setTimeout(function(){
1321
- $this.settScroll[i] = new asl_SimpleBar($(_this).get(0), {
1322
  direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
1323
  autoHide: true
1324
  });
@@ -1340,10 +1303,44 @@
1340
  $this.n.prosettings.data('opened', 0);
1341
  },
1342
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1343
  cleanUp: function () {
1344
  var $this = this;
1345
 
1346
- if ($('.searchsettings', $this.n.container).length > 0) {
1347
  $('body>#ajaxsearchlitesettings' + $this.o.rid).remove();
1348
  $('body>#ajaxsearchliteres' + $this.o.rid).remove();
1349
  }
@@ -1389,7 +1386,7 @@
1389
  if (ignoreVisibility == true || $this.n.resultsDiv.css('visibility') == 'visible') {
1390
  var _roffset_top = 0;
1391
  var _roffset_left = 0;
1392
- var _rposition = $this.n.container.offset();
1393
 
1394
  if ( rpos == 'fixed' ) {
1395
  bodyTop = 0;
@@ -1402,10 +1399,22 @@
1402
  }
1403
 
1404
  if ( typeof _rposition != 'undefined' ) {
1405
- var rwidth = $this.n.container.outerWidth() < 240 ? 240 : $this.n.container.outerWidth();
1406
- $this.n.resultsDiv.outerWidth(rwidth);
 
 
 
 
 
 
 
 
 
 
 
1407
  $this.n.resultsDiv.css({
1408
- top: _rposition.top + $this.n.container.outerHeight(true) + 10 - bodyTop - _roffset_top,
 
1409
  left: _rposition.left - _roffset_left
1410
  });
1411
  }
@@ -1468,6 +1477,17 @@
1468
  }
1469
  }
1470
 
 
 
 
 
 
 
 
 
 
 
 
1471
  /* Mobile detection - Touch desktop device safe! */
1472
  function isMobile() {
1473
  try{ document.createEvent("TouchEvent"); return true; }
@@ -1760,4 +1780,5 @@
1760
  }
1761
 
1762
  }
1763
- })(jQuery);}
 
1
+ (function(jQuery, $, window){
2
  /*! Ajax Search Lite 4.6 js */
3
  ;if ( typeof jQuery != 'undefined' ) {(function ($) {
4
  var prevState;
15
  $this.o = $.extend({
16
  'blocking': false
17
  }, options);
18
+ $this.n = {};
19
+ $this.n.search = $(this.elem);
20
+ $this.n.container = $this.n.search.closest('.asl_w_container');
21
+ $this.o.id = $this.n.search.data('id');
22
+ $this.o.iid = $this.n.search.data('instance');
23
+ $this.o.rid = $this.o.id;
24
+ $this.n.probox = $('.probox', $this.n.search);
25
+ $this.n.proinput = $('.proinput', $this.n.search);
26
+ $this.n.text = $('.proinput input.orig', $this.n.search);
27
+ $this.n.textAutocomplete = $('.proinput input.autocomplete', $this.n.search);
28
+ $this.n.loading = $('.proinput .loading', $this.n.search);
29
+ $this.n.proloading = $('.proloading', $this.n.search);
30
+ $this.n.proclose = $('.proclose', $this.n.search);
31
+ $this.n.promagnifier = $('.promagnifier', $this.n.search);
32
+ $this.n.prosettings = $('.prosettings', $this.n.search);
33
+
34
+ $this.n.searchsettings = $('.asl_s', $this.n.container);
35
+ $this.n.resultsDiv = $('.asl_r', $this.n.container);
36
+
37
+ // Fix any potential clones and adjust the variables
38
+ $this.fixClonedSelf();
39
+
40
+ $this.n.searchsettings = $this.n.searchsettings.clone();
41
+ $('body').append($this.n.searchsettings);
42
+ $this.n.searchsettings.get(0).id = $this.n.searchsettings.get(0).id.replace('__original__', '');
43
+
44
+ $this.n.resultsDiv = $this.n.resultsDiv.clone();
45
+ if ($this.o.resultsposition == 'hover') {
46
+ $('body').append($this.n.resultsDiv);
47
+ } else if ($this.n.resultsAppend.length > 0) {
48
+ $this.n.resultsAppend.append($this.n.resultsDiv);
49
+ }
50
+ $this.n.resultsDiv.get(0).id = $this.n.resultsDiv.get(0).id.replace('__original__', '');
51
+
52
  $this.n.hiddenContainer = $('#asl_hidden_data');
53
  $this.n.aslItemOverlay = $('.asl_item_overlay', $this.n.hiddenContainer);
54
 
59
  $this.n.results = $('.results', $this.n.resultsDiv);
60
  $this.n.resdrg = $('.resdrg', $this.n.resultsDiv);
61
 
 
 
 
 
 
 
62
  $this.post = null;
63
  $this.postAuto = null;
64
+
65
  $this.n.textAutocomplete.val('');
 
66
  $this.scroll = {};
67
  $this.savedScrollTop = 0; // Save the window scroll on IOS devices
68
  $this.savedContainerTop = 0;
69
+ $this.is_scroll = typeof asp_SimpleBar != "undefined";
70
  // Force noscroll on minified version
71
  if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
72
  $this.is_scroll = false;
73
  $this.settScroll = null;
74
  $this.n.resultsAppend = $('#wpdreams_asl_results_' + $this.o.id);
75
+
76
+ $this.o.redirectOnClick = $this.o.trigger.click != 'ajax_search' && $this.o.trigger.click != 'nothing';
77
+ $this.o.redirectOnEnter = $this.o.trigger.return != 'ajax_search' && $this.o.trigger.return != 'nothing';
78
 
79
  $this.lastSuccesfulSearch = ''; // Holding the last phrase that returned results
80
  $this.lastSearchData = {}; // Store the last search information
81
  $this.triggerPrevState = false;
82
 
 
 
 
 
 
 
 
 
83
 
84
+ //$this.n.searchsettings.detach().appendTo("body");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
 
 
86
 
 
 
 
 
 
87
 
88
  // Memorize settins and results original HTML codes
89
  if ( typeof(ASL.resHTML) == 'undefined' )
102
  $this.monitorTouchMove();
103
 
104
  if (detectOldIE())
105
+ $this.n.search.addClass('asl_msie');
106
 
107
  // Calculates the settings animation attributes
108
  $this.initSettingsAnimations();
294
  createVerticalScroll: function () {
295
  var $this = this;
296
  if ( $this.is_scroll && typeof $this.scroll.recalculate === 'undefined' ) {
297
+ $this.scroll = new asp_SimpleBar($this.n.results.get(0), {
298
  direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
299
  autoHide: true
300
  });
311
  */
312
  $this.n.text.on('touchstart', function () {
313
  $this.savedScrollTop = $(window).scrollTop();
314
+ $this.savedContainerTop = $this.n.search.offset().top;
315
  });
316
  }
317
 
335
  $($this.n.text.parent()).on('submit', function (e) {
336
  e.preventDefault();
337
  if ( isMobile() ) {
338
+ if ( $this.o.redirectOnEnter ) {
339
  var _e = jQuery.Event("keyup");
340
  _e.keyCode = _e.which = 13;
341
  $this.n.text.trigger(_e);
342
+ } else if ( $this.o.trigger.return == 'ajax_search' ) {
343
  $this.search();
344
  document.activeElement.blur();
345
  }
346
  } else {
347
+ if ( $this.o.trigger.return == 'ajax_search' )
348
  $this.search();
349
  }
350
  });
381
  }
382
  });
383
 
384
+ var fixedp = $this.n.search.parents().filter(
385
  function() {
386
  return $(this).css('position') == 'fixed';
387
  }
388
  );
389
+ if ( fixedp.length > 0 || $this.n.search.css('position') == 'fixed' ) {
390
  if ( $this.n.resultsDiv.css('position') == 'absolute' )
391
  $this.n.resultsDiv.css('position', 'fixed');
392
  $this.n.resultsDiv.css('z-index',99999999999);
498
  $input = $input.length == 0 ? $(_this).next().find('input.orig') : $input;
499
  $input = $input.length == 0 ? $(_this).parent().find('input.orig') : $input;
500
  $input = $input.length == 0 ? $this.n.text : $input;
501
+ if ( $this.n.search.is(':visible') ) {
502
  $input.get(0).focus();
503
  }
504
  }, 300);
605
  var isInput = $(this).hasClass("orig");
606
  if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
607
  $this.gaEvent('return');
608
+ if ( $this.o.redirectOnEnter == 1 ) {
609
+ if ($this.o.trigger.return != 'first_result') {
610
  $this.doRedirectToResults($this.ktype);
611
  } else {
612
  $this.search();
613
  }
614
  } else {
615
+ if ( $this.o.trigger.return == 'nothing' )
616
  return false;
617
  if (
618
  ($('form', $this.n.searchsettings).serialize() + $this.n.text.val().trim()) != $this.lastSuccesfulSearch ||
647
  // If redirection is set to the results page, or custom URL
648
  if (
649
  $this.n.text.val().length >= $this.o.charcount &&
650
+ (!isInput && $this.o.redirectOnClick == 1 && $this.ktype == 'click' && $this.o.trigger.click != 'first_result' )
651
  ) {
652
  $this.doRedirectToResults($this.ktype);
653
  clearTimeout(t);
674
  $this.gaEvent('magnifier');
675
  }
676
 
677
+ if (
678
+ $this.ktype == 'click' &&
679
+ !( $this.o.trigger.click == 'ajax_search' || $this.o.trigger.click == 'first_result' )
680
+ ) {
681
+ return false;
682
+ }
683
+
684
+ if ($this.o.trigger.type == 0 && $this.ktype == 'input') return;
685
 
686
  // Is the nothing is choosen
687
  if (
688
+ (isInput && $this.ktype == 'input' && $this.o.trigger.return == 'nothing') ||
689
+ (!isInput && $this.ktype == 'click' && $this.o.trigger.click == 'nothing')
690
  )
691
  return;
692
 
715
  var $this = this;
716
  var t = null;
717
 
718
+ if ($this.o.trigger.facet == 1) {
719
  $('input[type!=checkbox], select', $this.n.searchsettings).on('change slidechange', function(){
720
  if ($this.n.text.val().length < $this.o.charcount) return;
721
  if ($this.post != null) $this.post.abort();
744
  if (
745
  $('.asl_res_url', $this.n.resultsDiv).length > 0 &&
746
  (
747
+ ($this.o.redirectOnClick == 1 && $this.ktype == 'click' && $this.o.trigger.click == 'first_result' ) ||
748
+ ($this.o.redirectOnEnter == 1 && ($this.ktype == 'input' || $this.ktype == 'keyup') && $this.keycode == 13 && $this.o.trigger.return == 'first_result' )
749
  )
750
  ) {
751
  return true;
758
  var _loc;
759
 
760
  if ( $this.ktype == 'click' ) {
761
+ _loc = $this.o.trigger.click_location;
762
  } else {
763
+ _loc = $this.o.trigger.return_location;
764
  }
765
 
766
  if ( _loc == 'same' )
776
  doRedirectToResults: function( ktype ) {
777
  var $this = this;
778
 
779
+ var source = $this.ktype == 'click' ? $this.o.trigger.click : $this.o.trigger.return;
780
+ var _loc = ktype == 'click' ? $this.o.trigger.click_location : $this.o.trigger.return_location;
781
 
782
  if ( source == 'results_page' ) {
783
  var url = '?s=' + asl_nice_phrase($this.n.text.val());
784
  } else if ( source == 'woo_results_page' ) {
785
  var url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
786
  } else {
787
+ var url = $this.o.trigger.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
788
  }
789
 
790
  // Is this an URL like xy.com/?x=y
818
  },
819
 
820
  destroy: function () {
821
+ /*return this.each(function () {
822
  var $this = $.extend({}, this, methods);
823
  $(window).unbind($this);
824
+ });*/
825
+ var $this = this;
826
+ $this.n.searchsettings.remove();
827
+ $this.n.resultsDiv.remove();
828
+ $this.n.search.remove();
829
+ $this.n.container.remove();
830
  },
831
  searchfor: function (phrase) {
832
  $(".proinput input", this).val(phrase).trigger("keyup");
948
 
949
  $(".asl_keyword", $this.n.resdrg).on('click', function () {
950
  $this.n.text.val($(this).html());
951
+ $('input.orig', $this.n.search).val($(this).html()).trigger('keydown');
952
+ $('form', $this.n.search).trigger('submit', 'ajax');
953
  $this.search();
954
  });
955
 
980
 
981
  $('a', $this.n.showmore).off();
982
  $('a', $this.n.showmore).on('click', function(e){
983
+ var source = $this.o.trigger.click;
984
  var url = '?s=' + asl_nice_phrase($this.n.text.val());
985
 
986
  if ( source == 'results_page' ) {
988
  } else if ( source == 'woo_results_page' ) {
989
  url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
990
  } else {
991
+ url = $this.o.trigger.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
992
  }
993
 
994
  if ( $this.o.overridewpdefault ) {
1057
 
1058
  // Create the scrollbars if needed
1059
  $this.createVerticalScroll();
1060
+ $this.showVerticalResults();
 
 
 
 
 
 
 
 
1061
 
1062
  $this.hideLoader();
1063
 
1113
 
1114
  scrollToResults: function( ) {
1115
  $this = this;
1116
+ if ( this.o.scrollToResults.enabled ) {
1117
+ if (this.$elem.parent().hasClass("asl_preview_data")) return;
1118
+ if ($this.o.resultsposition == "hover")
1119
+ var stop = $this.n.probox.offset().top - 20;
1120
+ else
1121
+ var stop = $this.n.resultsDiv.offset().top - 20;
1122
+ if ($("#wpadminbar").length > 0)
1123
+ stop -= $("#wpadminbar").height();
1124
+ stop = stop < 0 ? 0 : stop;
1125
+ $('body, html').animate({
1126
+ "scrollTop": stop
1127
+ }, {
1128
+ duration: 500
1129
+ });
1130
+ }
1131
  },
1132
 
1133
  createGroup: function (r) {
1211
  var $container = $this.is_scroll ? $($this.scroll.getScrollElement()) : $this.n.results;
1212
  $container.scrollTop(0);
1213
 
 
1214
  $this.fixResultsPosition(true);
1215
  $this.searching = false;
1216
  },
1217
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1218
  initSettingsAnimations: function() {
1219
  var $this = this;
1220
  var animDur = 300;
1281
  var _this = this;
1282
  // Small delay to fix a rendering issue
1283
  setTimeout(function(){
1284
+ $this.settScroll[i] = new asp_SimpleBar($(_this).get(0), {
1285
  direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
1286
  autoHide: true
1287
  });
1303
  $this.n.prosettings.data('opened', 0);
1304
  },
1305
 
1306
+ fixClonedSelf: function() {
1307
+ let $this = this,
1308
+ oldInstanceId = $this.o.iid,
1309
+ oldRID = $this.o.rid;
1310
+ while ( !ASL.instances.set($this) ) {
1311
+ ++$this.o.iid;
1312
+ if ($this.o.iid > 50) {
1313
+ break;
1314
+ }
1315
+ }
1316
+ // oof, this was cloned
1317
+ if ( oldInstanceId != $this.o.iid ) {
1318
+ $this.o.rid = $this.o.id + '_' + $this.o.iid;
1319
+ $this.n.search.get(0).id = "ajaxsearchlite" + $this.o.rid;
1320
+ $this.n.search.removeClass('asl_m_' + oldRID).addClass('asl_m_' + $this.o.rid);
1321
+ $this.n.searchsettings.get(0).id = $this.n.searchsettings.get(0).id.replace('settings'+ oldRID, 'settings' + $this.o.rid);
1322
+ if ( $this.n.searchsettings.hasClass('asl_s_' + oldRID) ) {
1323
+ $this.n.searchsettings.removeClass('asl_s_' + oldRID)
1324
+ .addClass('asl_s_' + $this.o.rid).data('instance', $this.o.iid);
1325
+ } else {
1326
+ $this.n.searchsettings.removeClass('asl_sb_' + oldRID)
1327
+ .addClass('asl_sb_' + $this.o.rid).data('instance', $this.o.iid);
1328
+ }
1329
+ $this.n.resultsDiv.get(0).id = $this.n.resultsDiv.get(0).id.replace('prores'+ oldRID, 'prores' + $this.o.rid);
1330
+ $this.n.resultsDiv.removeClass('asl_r_' + oldRID)
1331
+ .addClass('asl_r_' + $this.o.rid).data('instance', $this.o.iid);
1332
+ $this.n.container.find('.asl_init_data').data('instance', $this.o.iid);
1333
+ $this.n.container.find('.asl_init_data').get(0).id =
1334
+ $this.n.container.find('.asl_init_data').get(0).id.replace('asl_init_id_'+ oldRID, 'asl_init_id_' + $this.o.rid);
1335
+
1336
+ $this.n.prosettings.data('opened', 0);
1337
+ }
1338
+ },
1339
+
1340
  cleanUp: function () {
1341
  var $this = this;
1342
 
1343
+ if ($('.searchsettings', $this.n.search).length > 0) {
1344
  $('body>#ajaxsearchlitesettings' + $this.o.rid).remove();
1345
  $('body>#ajaxsearchliteres' + $this.o.rid).remove();
1346
  }
1386
  if (ignoreVisibility == true || $this.n.resultsDiv.css('visibility') == 'visible') {
1387
  var _roffset_top = 0;
1388
  var _roffset_left = 0;
1389
+ var _rposition = $this.n.search.offset();
1390
 
1391
  if ( rpos == 'fixed' ) {
1392
  bodyTop = 0;
1399
  }
1400
 
1401
  if ( typeof _rposition != 'undefined' ) {
1402
+ var vwidth;
1403
+ if ( deviceType() == 'phone' ) {
1404
+ vwidth = $this.o.results.width_phone;
1405
+ } else if ( deviceType() == 'tablet' ) {
1406
+ vwidth = $this.o.results.width_tablet;
1407
+ } else {
1408
+ vwidth = $this.o.results.width;
1409
+ }
1410
+ if ( vwidth == 'auto') {
1411
+ vwidth = $this.n.search.outerWidth() < 240 ? 240 : $this.n.search.outerWidth();
1412
+ }
1413
+ //$this.n.resultsDiv.css('width', !isNaN(vwidth) ? vwidth + 'px' : vwidth);
1414
+ //$this.n.resultsDiv.outerWidth(rwidth);
1415
  $this.n.resultsDiv.css({
1416
+ width: (!isNaN(vwidth) ? vwidth + 'px' : vwidth),
1417
+ top: _rposition.top + $this.n.search.outerHeight(true) - bodyTop - _roffset_top,
1418
  left: _rposition.left - _roffset_left
1419
  });
1420
  }
1477
  }
1478
  }
1479
 
1480
+ function deviceType() {
1481
+ var w = $(window).width();
1482
+ if ( w <= 640 ) {
1483
+ return 'phone';
1484
+ } else if ( w <= 1024 ) {
1485
+ return 'tablet';
1486
+ } else {
1487
+ return 'desktop';
1488
+ }
1489
+ }
1490
+
1491
  /* Mobile detection - Touch desktop device safe! */
1492
  function isMobile() {
1493
  try{ document.createEvent("TouchEvent"); return true; }
1780
  }
1781
 
1782
  }
1783
+ })(jQuery);}
1784
+ })(asljQuery, asljQuery, window);
js/{nomin-scoped → legacy/nomin-scoped}/jquery.highlight.js RENAMED
@@ -1,4 +1,4 @@
1
- (function(jQuery, $, window){
2
  /*
3
  * jQuery Highlight plugin
4
  *
@@ -88,5 +88,5 @@
88
  jQuery.highlight(this, re, settings.element, settings.className, settings.excludeParents);
89
  });
90
  };
91
- }
92
  })(asljQuery, asljQuery, window);
1
+ (function(jQuery, $, window){
2
  /*
3
  * jQuery Highlight plugin
4
  *
88
  jQuery.highlight(this, re, settings.element, settings.className, settings.excludeParents);
89
  });
90
  };
91
+ }
92
  })(asljQuery, asljQuery, window);
js/{nomin-scoped → legacy/nomin-scoped}/simplebar.js RENAMED
@@ -1,8 +1,8 @@
1
- (function(jQuery, $, window){
2
  /**
3
- * asl_SimpleBar.js - v5.3.5
4
  * Scrollbars, simpler.
5
- * https://grsmto.github.io/asl_simplebar/
6
  *
7
  * Made by Adrien Denat from a fork by Jonathan Nicol
8
  * Under MIT License
@@ -11,7 +11,7 @@
11
  (function (global, factory) {
12
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('core-js/modules/es.array.for-each'), require('core-js/modules/web.dom-collections.for-each'), require('core-js/modules/es.array.filter'), require('core-js/modules/es.array.iterator'), require('core-js/modules/es.object.assign'), require('core-js/modules/es.object.to-string'), require('core-js/modules/es.parse-int'), require('core-js/modules/es.string.iterator'), require('core-js/modules/es.weak-map'), require('core-js/modules/web.dom-collections.iterator'), require('core-js/modules/es.array.reduce'), require('core-js/modules/es.function.name'), require('core-js/modules/es.regexp.exec'), require('core-js/modules/es.string.match'), require('core-js/modules/es.string.replace')) :
13
  typeof define === 'function' && define.amd ? define(['core-js/modules/es.array.for-each', 'core-js/modules/web.dom-collections.for-each', 'core-js/modules/es.array.filter', 'core-js/modules/es.array.iterator', 'core-js/modules/es.object.assign', 'core-js/modules/es.object.to-string', 'core-js/modules/es.parse-int', 'core-js/modules/es.string.iterator', 'core-js/modules/es.weak-map', 'core-js/modules/web.dom-collections.iterator', 'core-js/modules/es.array.reduce', 'core-js/modules/es.function.name', 'core-js/modules/es.regexp.exec', 'core-js/modules/es.string.match', 'core-js/modules/es.string.replace'], factory) :
14
- (global = global || self, global.asl_SimpleBar = factory());
15
  }(this, function () { 'use strict';
16
 
17
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -2013,7 +2013,7 @@
2013
  // Helper function to retrieve options from element attributes
2014
  var getOptions = function getOptions(obj) {
2015
  var options = Array.prototype.reduce.call(obj, function (acc, attribute) {
2016
- var option = attribute.name.match(/data-asl_simplebar-(.+)/);
2017
 
2018
  if (option) {
2019
  var key = option[1].replace(/\W+(.)/g, function (x, chr) {
@@ -2076,7 +2076,7 @@
2076
 
2077
  var body = document.body;
2078
  var box = document.createElement('div');
2079
- box.classList.add('asl_simplebar-hide-scrollbar');
2080
  body.appendChild(box);
2081
  var width = box.getBoundingClientRect().right;
2082
  body.removeChild(box);
@@ -2086,10 +2086,10 @@
2086
  return cachedScrollbarWidth;
2087
  }
2088
 
2089
- var asl_SimpleBar =
2090
  /*#__PURE__*/
2091
  function () {
2092
- function asl_SimpleBar(element, options) {
2093
  var _this = this;
2094
 
2095
  this.onScroll = function () {
@@ -2253,8 +2253,8 @@
2253
  var scrollPos = dragPerc * (contentSize - hostSize); // Fix browsers inconsistency on RTL
2254
 
2255
  if (_this.draggedAxis === 'x') {
2256
- scrollPos = _this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? scrollPos - (trackSize + scrollbar.size) : scrollPos;
2257
- scrollPos = _this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollPos : scrollPos;
2258
  }
2259
 
2260
  _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollOffsetAttr] = scrollPos;
@@ -2286,8 +2286,8 @@
2286
 
2287
  this.el = element;
2288
  this.minScrollbarWidth = 20;
2289
- this.options = Object.assign({}, asl_SimpleBar.defaultOptions, {}, options);
2290
- this.classNames = Object.assign({}, asl_SimpleBar.defaultOptions.classNames, {}, this.options.classNames);
2291
  this.axis = {
2292
  x: {
2293
  scrollOffsetAttr: 'scrollLeft',
@@ -2320,7 +2320,7 @@
2320
  };
2321
  this.removePreventClickId = null; // Don't re-instantiate over an existing one
2322
 
2323
- if (asl_SimpleBar.instances.has(this.el)) {
2324
  return;
2325
  }
2326
 
@@ -2330,7 +2330,7 @@
2330
  this.onWindowResize = lodash_debounce(this.onWindowResize.bind(this), 64, {
2331
  leading: true
2332
  });
2333
- asl_SimpleBar.getRtlHelpers = lodash_memoize(asl_SimpleBar.getRtlHelpers);
2334
  this.init();
2335
  }
2336
  /**
@@ -2345,17 +2345,17 @@
2345
  */
2346
 
2347
 
2348
- asl_SimpleBar.getRtlHelpers = function getRtlHelpers() {
2349
  var dummyDiv = document.createElement('div');
2350
  dummyDiv.innerHTML = '<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';
2351
  var scrollbarDummyEl = dummyDiv.firstElementChild;
2352
  document.body.appendChild(scrollbarDummyEl);
2353
  var dummyContainerChild = scrollbarDummyEl.firstElementChild;
2354
  scrollbarDummyEl.scrollLeft = 0;
2355
- var dummyContainerOffset = asl_SimpleBar.getOffset(scrollbarDummyEl);
2356
- var dummyContainerChildOffset = asl_SimpleBar.getOffset(dummyContainerChild);
2357
  scrollbarDummyEl.scrollLeft = 999;
2358
- var dummyContainerScrollOffsetAfterScroll = asl_SimpleBar.getOffset(dummyContainerChild);
2359
  return {
2360
  // determines if the scrolling is responding with negative values
2361
  isRtlScrollingInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left && dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left !== 0,
@@ -2364,7 +2364,7 @@
2364
  };
2365
  };
2366
 
2367
- asl_SimpleBar.getOffset = function getOffset(el) {
2368
  var rect = el.getBoundingClientRect();
2369
  var elDocument = getElementDocument(el);
2370
  var elWindow = getElementWindow(el);
@@ -2374,11 +2374,11 @@
2374
  };
2375
  };
2376
 
2377
- var _proto = asl_SimpleBar.prototype;
2378
 
2379
  _proto.init = function init() {
2380
  // Save a reference to the instance, so we know this DOM node has already been instancied
2381
- asl_SimpleBar.instances.set(this.el, this);
2382
  this.initDOM();
2383
  this.scrollbarWidth = this.getScrollbarWidth();
2384
  this.recalculate();
@@ -2458,7 +2458,7 @@
2458
  this.axis.y.scrollbar.el.classList.add(this.classNames.visible);
2459
  }
2460
 
2461
- this.el.setAttribute('data-asl_simplebar', 'init');
2462
  };
2463
 
2464
  _proto.initListeners = function initListeners() {
@@ -2589,10 +2589,10 @@
2589
  var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
2590
  var scrollbar = this.axis[axis].scrollbar;
2591
  var scrollOffset = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
2592
- scrollOffset = axis === 'x' && this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollOffset : scrollOffset;
2593
  var scrollPourcent = scrollOffset / (contentSize - hostSize);
2594
  var handleOffset = ~~((trackSize - scrollbar.size) * scrollPourcent);
2595
- handleOffset = axis === 'x' && this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? handleOffset + (trackSize - scrollbar.size) : handleOffset;
2596
  scrollbar.el.style.transform = axis === 'x' ? "translate3d(" + handleOffset + "px, 0, 0)" : "translate3d(0, " + handleOffset + "px, 0)";
2597
  };
2598
 
@@ -2834,13 +2834,13 @@
2834
  this.onWindowResize.cancel();
2835
  }
2836
  /**
2837
- * UnMount mutation observer and delete asl_SimpleBar instance from DOM element
2838
  */
2839
  ;
2840
 
2841
  _proto.unMount = function unMount() {
2842
  this.removeListeners();
2843
- asl_SimpleBar.instances.delete(this.el);
2844
  }
2845
  /**
2846
  * Check if mouse is within bounds
@@ -2862,55 +2862,55 @@
2862
  })[0];
2863
  };
2864
 
2865
- return asl_SimpleBar;
2866
  }();
2867
 
2868
- asl_SimpleBar.defaultOptions = {
2869
  autoHide: true,
2870
  forceVisible: false,
2871
  clickOnTrack: true,
2872
  clickOnTrackSpeed: 40,
2873
  classNames: {
2874
- contentEl: 'asl_simplebar-content',
2875
- contentWrapper: 'asl_simplebar-content-wrapper',
2876
- offset: 'asl_simplebar-offset',
2877
- mask: 'asl_simplebar-mask',
2878
- wrapper: 'asl_simplebar-wrapper',
2879
- placeholder: 'asl_simplebar-placeholder',
2880
- scrollbar: 'asl_simplebar-scrollbar',
2881
- track: 'asl_simplebar-track',
2882
- heightAutoObserverWrapperEl: 'asl_simplebar-height-auto-observer-wrapper',
2883
- heightAutoObserverEl: 'asl_simplebar-height-auto-observer',
2884
- visible: 'asl_simplebar-visible',
2885
- horizontal: 'asl_simplebar-horizontal',
2886
- vertical: 'asl_simplebar-vertical',
2887
- hover: 'asl_simplebar-hover',
2888
- dragging: 'asl_simplebar-dragging'
2889
  },
2890
  scrollbarMinSize: 25,
2891
  scrollbarMaxSize: 0,
2892
  timeout: 1000
2893
  };
2894
- asl_SimpleBar.instances = new WeakMap();
2895
 
2896
- asl_SimpleBar.initDOMLoadedElements = function () {
2897
  document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
2898
  window.removeEventListener('load', this.initDOMLoadedElements);
2899
- Array.prototype.forEach.call(document.querySelectorAll('[data-asl_simplebar]'), function (el) {
2900
- if (el.getAttribute('data-asl_simplebar') !== 'init' && !asl_SimpleBar.instances.has(el)) new asl_SimpleBar(el, getOptions(el.attributes));
2901
  });
2902
  };
2903
 
2904
- asl_SimpleBar.removeObserver = function () {
2905
  this.globalObserver.disconnect();
2906
  };
2907
 
2908
- asl_SimpleBar.initHtmlApi = function () {
2909
  this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this); // MutationObserver is IE11+
2910
 
2911
  if (typeof MutationObserver !== 'undefined') {
2912
  // Mutation observer to observe dynamically added elements
2913
- this.globalObserver = new MutationObserver(asl_SimpleBar.handleMutations);
2914
  this.globalObserver.observe(document, {
2915
  childList: true,
2916
  subtree: true
@@ -2928,26 +2928,26 @@
2928
  }
2929
  };
2930
 
2931
- asl_SimpleBar.handleMutations = function (mutations) {
2932
  mutations.forEach(function (mutation) {
2933
  Array.prototype.forEach.call(mutation.addedNodes, function (addedNode) {
2934
  if (addedNode.nodeType === 1) {
2935
- if (addedNode.hasAttribute('data-asl_simplebar')) {
2936
- !asl_SimpleBar.instances.has(addedNode) && document.documentElement.contains(addedNode) && new asl_SimpleBar(addedNode, getOptions(addedNode.attributes));
2937
  } else {
2938
- Array.prototype.forEach.call(addedNode.querySelectorAll('[data-asl_simplebar]'), function (el) {
2939
- if (el.getAttribute('data-asl_simplebar') !== 'init' && !asl_SimpleBar.instances.has(el) && document.documentElement.contains(el)) new asl_SimpleBar(el, getOptions(el.attributes));
2940
  });
2941
  }
2942
  }
2943
  });
2944
  Array.prototype.forEach.call(mutation.removedNodes, function (removedNode) {
2945
  if (removedNode.nodeType === 1) {
2946
- if (removedNode.getAttribute('data-asl_simplebar') === 'init') {
2947
- asl_SimpleBar.instances.has(removedNode) && !document.documentElement.contains(removedNode) && asl_SimpleBar.instances.get(removedNode).unMount();
2948
  } else {
2949
- Array.prototype.forEach.call(removedNode.querySelectorAll('[data-asl_simplebar="init"]'), function (el) {
2950
- asl_SimpleBar.instances.has(el) && !document.documentElement.contains(el) && asl_SimpleBar.instances.get(el).unMount();
2951
  });
2952
  }
2953
  }
@@ -2955,15 +2955,15 @@
2955
  });
2956
  };
2957
 
2958
- asl_SimpleBar.getOptions = getOptions;
2959
  /**
2960
  * HTML API
2961
  * Called only in a browser env.
2962
  */
2963
 
2964
- asl_SimpleBar.initHtmlApi();
2965
 
2966
- return asl_SimpleBar;
2967
 
2968
- }));
2969
  })(asljQuery, asljQuery, window);
1
+ (function(jQuery, $, window){
2
  /**
3
+ * asp_SimpleBar.js - v5.3.5
4
  * Scrollbars, simpler.
5
+ * https://grsmto.github.io/asp_simplebar/
6
  *
7
  * Made by Adrien Denat from a fork by Jonathan Nicol
8
  * Under MIT License
11
  (function (global, factory) {
12
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('core-js/modules/es.array.for-each'), require('core-js/modules/web.dom-collections.for-each'), require('core-js/modules/es.array.filter'), require('core-js/modules/es.array.iterator'), require('core-js/modules/es.object.assign'), require('core-js/modules/es.object.to-string'), require('core-js/modules/es.parse-int'), require('core-js/modules/es.string.iterator'), require('core-js/modules/es.weak-map'), require('core-js/modules/web.dom-collections.iterator'), require('core-js/modules/es.array.reduce'), require('core-js/modules/es.function.name'), require('core-js/modules/es.regexp.exec'), require('core-js/modules/es.string.match'), require('core-js/modules/es.string.replace')) :
13
  typeof define === 'function' && define.amd ? define(['core-js/modules/es.array.for-each', 'core-js/modules/web.dom-collections.for-each', 'core-js/modules/es.array.filter', 'core-js/modules/es.array.iterator', 'core-js/modules/es.object.assign', 'core-js/modules/es.object.to-string', 'core-js/modules/es.parse-int', 'core-js/modules/es.string.iterator', 'core-js/modules/es.weak-map', 'core-js/modules/web.dom-collections.iterator', 'core-js/modules/es.array.reduce', 'core-js/modules/es.function.name', 'core-js/modules/es.regexp.exec', 'core-js/modules/es.string.match', 'core-js/modules/es.string.replace'], factory) :
14
+ (global = global || self, global.asp_SimpleBar = factory());
15
  }(this, function () { 'use strict';
16
 
17
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2013
  // Helper function to retrieve options from element attributes
2014
  var getOptions = function getOptions(obj) {
2015
  var options = Array.prototype.reduce.call(obj, function (acc, attribute) {
2016
+ var option = attribute.name.match(/data-asp_simplebar-(.+)/);
2017
 
2018
  if (option) {
2019
  var key = option[1].replace(/\W+(.)/g, function (x, chr) {
2076
 
2077
  var body = document.body;
2078
  var box = document.createElement('div');
2079
+ box.classList.add('asp_simplebar-hide-scrollbar');
2080
  body.appendChild(box);
2081
  var width = box.getBoundingClientRect().right;
2082
  body.removeChild(box);
2086
  return cachedScrollbarWidth;
2087
  }
2088
 
2089
+ var asp_SimpleBar =
2090
  /*#__PURE__*/
2091
  function () {
2092
+ function asp_SimpleBar(element, options) {
2093
  var _this = this;
2094
 
2095
  this.onScroll = function () {
2253
  var scrollPos = dragPerc * (contentSize - hostSize); // Fix browsers inconsistency on RTL
2254
 
2255
  if (_this.draggedAxis === 'x') {
2256
+ scrollPos = _this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? scrollPos - (trackSize + scrollbar.size) : scrollPos;
2257
+ scrollPos = _this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollPos : scrollPos;
2258
  }
2259
 
2260
  _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollOffsetAttr] = scrollPos;
2286
 
2287
  this.el = element;
2288
  this.minScrollbarWidth = 20;
2289
+ this.options = Object.assign({}, asp_SimpleBar.defaultOptions, {}, options);
2290
+ this.classNames = Object.assign({}, asp_SimpleBar.defaultOptions.classNames, {}, this.options.classNames);
2291
  this.axis = {
2292
  x: {
2293
  scrollOffsetAttr: 'scrollLeft',
2320
  };
2321
  this.removePreventClickId = null; // Don't re-instantiate over an existing one
2322
 
2323
+ if (asp_SimpleBar.instances.has(this.el)) {
2324
  return;
2325
  }
2326
 
2330
  this.onWindowResize = lodash_debounce(this.onWindowResize.bind(this), 64, {
2331
  leading: true
2332
  });
2333
+ asp_SimpleBar.getRtlHelpers = lodash_memoize(asp_SimpleBar.getRtlHelpers);
2334
  this.init();
2335
  }
2336
  /**
2345
  */
2346
 
2347
 
2348
+ asp_SimpleBar.getRtlHelpers = function getRtlHelpers() {
2349
  var dummyDiv = document.createElement('div');
2350
  dummyDiv.innerHTML = '<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';
2351
  var scrollbarDummyEl = dummyDiv.firstElementChild;
2352
  document.body.appendChild(scrollbarDummyEl);
2353
  var dummyContainerChild = scrollbarDummyEl.firstElementChild;
2354
  scrollbarDummyEl.scrollLeft = 0;
2355
+ var dummyContainerOffset = asp_SimpleBar.getOffset(scrollbarDummyEl);
2356
+ var dummyContainerChildOffset = asp_SimpleBar.getOffset(dummyContainerChild);
2357
  scrollbarDummyEl.scrollLeft = 999;
2358
+ var dummyContainerScrollOffsetAfterScroll = asp_SimpleBar.getOffset(dummyContainerChild);
2359
  return {
2360
  // determines if the scrolling is responding with negative values
2361
  isRtlScrollingInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left && dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left !== 0,
2364
  };
2365
  };
2366
 
2367
+ asp_SimpleBar.getOffset = function getOffset(el) {
2368
  var rect = el.getBoundingClientRect();
2369
  var elDocument = getElementDocument(el);
2370
  var elWindow = getElementWindow(el);
2374
  };
2375
  };
2376
 
2377
+ var _proto = asp_SimpleBar.prototype;
2378
 
2379
  _proto.init = function init() {
2380
  // Save a reference to the instance, so we know this DOM node has already been instancied
2381
+ asp_SimpleBar.instances.set(this.el, this);
2382
  this.initDOM();
2383
  this.scrollbarWidth = this.getScrollbarWidth();
2384
  this.recalculate();
2458
  this.axis.y.scrollbar.el.classList.add(this.classNames.visible);
2459
  }
2460
 
2461
+ this.el.setAttribute('data-asp_simplebar', 'init');
2462
  };
2463
 
2464
  _proto.initListeners = function initListeners() {
2589
  var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
2590
  var scrollbar = this.axis[axis].scrollbar;
2591
  var scrollOffset = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
2592
+ scrollOffset = axis === 'x' && this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollOffset : scrollOffset;
2593
  var scrollPourcent = scrollOffset / (contentSize - hostSize);
2594
  var handleOffset = ~~((trackSize - scrollbar.size) * scrollPourcent);
2595
+ handleOffset = axis === 'x' && this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? handleOffset + (trackSize - scrollbar.size) : handleOffset;
2596
  scrollbar.el.style.transform = axis === 'x' ? "translate3d(" + handleOffset + "px, 0, 0)" : "translate3d(0, " + handleOffset + "px, 0)";
2597
  };
2598
 
2834
  this.onWindowResize.cancel();
2835
  }
2836
  /**
2837
+ * UnMount mutation observer and delete asp_SimpleBar instance from DOM element
2838
  */
2839
  ;
2840
 
2841
  _proto.unMount = function unMount() {
2842
  this.removeListeners();
2843
+ asp_SimpleBar.instances.delete(this.el);
2844
  }
2845
  /**
2846
  * Check if mouse is within bounds
2862
  })[0];
2863
  };
2864
 
2865
+ return asp_SimpleBar;
2866
  }();
2867
 
2868
+ asp_SimpleBar.defaultOptions = {
2869
  autoHide: true,
2870
  forceVisible: false,
2871
  clickOnTrack: true,
2872
  clickOnTrackSpeed: 40,
2873
  classNames: {
2874
+ contentEl: 'asp_simplebar-content',
2875
+ contentWrapper: 'asp_simplebar-content-wrapper',
2876
+ offset: 'asp_simplebar-offset',
2877
+ mask: 'asp_simplebar-mask',
2878
+ wrapper: 'asp_simplebar-wrapper',
2879
+ placeholder: 'asp_simplebar-placeholder',
2880
+ scrollbar: 'asp_simplebar-scrollbar',
2881
+ track: 'asp_simplebar-track',
2882
+ heightAutoObserverWrapperEl: 'asp_simplebar-height-auto-observer-wrapper',
2883
+ heightAutoObserverEl: 'asp_simplebar-height-auto-observer',
2884
+ visible: 'asp_simplebar-visible',
2885
+ horizontal: 'asp_simplebar-horizontal',
2886
+ vertical: 'asp_simplebar-vertical',
2887
+ hover: 'asp_simplebar-hover',
2888
+ dragging: 'asp_simplebar-dragging'
2889
  },
2890
  scrollbarMinSize: 25,
2891
  scrollbarMaxSize: 0,
2892
  timeout: 1000
2893
  };
2894
+ asp_SimpleBar.instances = new WeakMap();
2895
 
2896
+ asp_SimpleBar.initDOMLoadedElements = function () {
2897
  document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
2898
  window.removeEventListener('load', this.initDOMLoadedElements);
2899
+ Array.prototype.forEach.call(document.querySelectorAll('[data-asp_simplebar]'), function (el) {
2900
+ if (el.getAttribute('data-asp_simplebar') !== 'init' && !asp_SimpleBar.instances.has(el)) new asp_SimpleBar(el, getOptions(el.attributes));
2901
  });
2902
  };
2903
 
2904
+ asp_SimpleBar.removeObserver = function () {
2905
  this.globalObserver.disconnect();
2906
  };
2907
 
2908
+ asp_SimpleBar.initHtmlApi = function () {
2909
  this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this); // MutationObserver is IE11+
2910
 
2911
  if (typeof MutationObserver !== 'undefined') {
2912
  // Mutation observer to observe dynamically added elements
2913
+ this.globalObserver = new MutationObserver(asp_SimpleBar.handleMutations);
2914
  this.globalObserver.observe(document, {
2915
  childList: true,
2916
  subtree: true
2928
  }
2929
  };
2930
 
2931
+ asp_SimpleBar.handleMutations = function (mutations) {
2932
  mutations.forEach(function (mutation) {
2933
  Array.prototype.forEach.call(mutation.addedNodes, function (addedNode) {
2934
  if (addedNode.nodeType === 1) {
2935
+ if (addedNode.hasAttribute('data-asp_simplebar')) {
2936
+ !asp_SimpleBar.instances.has(addedNode) && document.documentElement.contains(addedNode) && new asp_SimpleBar(addedNode, getOptions(addedNode.attributes));
2937
  } else {
2938
+ Array.prototype.forEach.call(addedNode.querySelectorAll('[data-asp_simplebar]'), function (el) {
2939
+ if (el.getAttribute('data-asp_simplebar') !== 'init' && !asp_SimpleBar.instances.has(el) && document.documentElement.contains(el)) new asp_SimpleBar(el, getOptions(el.attributes));
2940
  });
2941
  }
2942
  }
2943
  });
2944
  Array.prototype.forEach.call(mutation.removedNodes, function (removedNode) {
2945
  if (removedNode.nodeType === 1) {
2946
+ if (removedNode.getAttribute('data-asp_simplebar') === 'init') {
2947
+ asp_SimpleBar.instances.has(removedNode) && !document.documentElement.contains(removedNode) && asp_SimpleBar.instances.get(removedNode).unMount();
2948
  } else {
2949
+ Array.prototype.forEach.call(removedNode.querySelectorAll('[data-asp_simplebar="init"]'), function (el) {
2950
+ asp_SimpleBar.instances.has(el) && !document.documentElement.contains(el) && asp_SimpleBar.instances.get(el).unMount();
2951
  });
2952
  }
2953
  }
2955
  });
2956
  };
2957
 
2958
+ asp_SimpleBar.getOptions = getOptions;
2959
  /**
2960
  * HTML API
2961
  * Called only in a browser env.
2962
  */
2963
 
2964
+ asp_SimpleBar.initHtmlApi();
2965
 
2966
+ return asp_SimpleBar;
2967
 
2968
+ }));
2969
  })(asljQuery, asljQuery, window);
js/{nomin → legacy/nomin}/asl_wrapper.js RENAMED
@@ -39,6 +39,90 @@ window.ASL.getScope = function() {
39
  return false;
40
  };
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  window.ASL.initialized = false;
43
 
44
  // Call this function if you need to initialize an instance that is printed after an AJAX call
@@ -285,7 +369,6 @@ window.ASL.ready = function() {
285
  clearInterval(interval);
286
  return false;
287
  }
288
- console.log('tries', tries);
289
 
290
  _this.initialize();
291
 
39
  return false;
40
  };
41
 
42
+ window.ASL.instances = {
43
+ instances: [],
44
+ get: function(id, instance) {
45
+ this.clean();
46
+ if ( typeof id === 'undefined' || id == 0) {
47
+ return this.instances;
48
+ } else {
49
+ if ( typeof instance === 'undefined' ) {
50
+ let ret = [];
51
+ for ( let i=0; i<this.instances.length; i++ ) {
52
+ if ( this.instances[i].o.id == id ) {
53
+ ret.push(this.instances[i]);
54
+ }
55
+ }
56
+ return ret.length > 0 ? ret : false;
57
+ } else {
58
+ for ( let i=0; i<this.instances.length; i++ ) {
59
+ if ( this.instances[i].o.id == id && this.instances[i].o.iid == instance ) {
60
+ return this.instances[i];
61
+ }
62
+ }
63
+ }
64
+ }
65
+ return false;
66
+ },
67
+ set: function(obj) {
68
+ if ( !this.exist(obj.o.id, obj.o.iid) ) {
69
+ this.instances.push(obj);
70
+ return true;
71
+ } else {
72
+ return false;
73
+ }
74
+ },
75
+ exist: function(id, instance) {
76
+ this.clean();
77
+ for ( let i=0; i<this.instances.length; i++ ) {
78
+ if ( this.instances[i].o.id == id ) {
79
+ if (typeof instance === 'undefined') {
80
+ return true;
81
+ } else if (this.instances[i].o.iid == instance) {
82
+ return true;
83
+ }
84
+ }
85
+ }
86
+ return false;
87
+ },
88
+ clean: function() {
89
+ let unset = [], _this = this;
90
+ this.instances.forEach(function(v, k){
91
+ if ( typeof jQuery !== 'undefined' ) {
92
+ if (jQuery('.asl_m_' + v.o.rid).length == 0) {
93
+ unset.push(k);
94
+ }
95
+ }
96
+ });
97
+ unset.forEach(function(k){
98
+ if ( typeof _this.instances[k] !== 'undefined' ) {
99
+ _this.instances[k].destroy();
100
+ _this.instances.splice(k, 1);
101
+ }
102
+ });
103
+ },
104
+ destroy: function(id, instance) {
105
+ let i = this.get(id, instance);
106
+ if ( i !== false ) {
107
+ if ( Array.isArray(i) ) {
108
+ i.forEach(function (s) {
109
+ s.destroy();
110
+ });
111
+ this.instances = [];
112
+ } else {
113
+ let u = 0;
114
+ this.instances.forEach(function(v, k){
115
+ if ( v.o.id == id && v.o.iid == instance) {
116
+ u = k;
117
+ }
118
+ });
119
+ i.destroy();
120
+ this.instances.splice(u, 1);
121
+ }
122
+ }
123
+ }
124
+ };
125
+
126
  window.ASL.initialized = false;
127
 
128
  // Call this function if you need to initialize an instance that is printed after an AJAX call
369
  clearInterval(interval);
370
  return false;
371
  }
 
372
 
373
  _this.initialize();
374
 
js/{nomin-scoped → legacy/nomin}/jquery.ajaxsearchlite.js RENAMED
@@ -1,4 +1,3 @@
1
- (function(jQuery, $, window){
2
  /*! Ajax Search Lite 4.6 js */
3
  ;if ( typeof jQuery != 'undefined' ) {(function ($) {
4
  var prevState;
@@ -15,21 +14,40 @@
15
  $this.o = $.extend({
16
  'blocking': false
17
  }, options);
18
- $this.n = new Object();
19
- $this.n.container = $(this.elem);
20
- $this.o.rid = $this.n.container.attr('id').match(/^ajaxsearchlite(.*)/)[1];
21
- $this.o.id = $this.n.container.attr('id').match(/^ajaxsearchlite(.*)/)[1];
22
- $this.n.probox = $('.probox', $this.n.container);
23
- $this.n.proinput = $('.proinput', $this.n.container);
24
- $this.n.text = $('.proinput input.orig', $this.n.container);
25
- $this.n.textAutocomplete = $('.proinput input.autocomplete', $this.n.container);
26
- $this.n.loading = $('.proinput .loading', $this.n.container);
27
- $this.n.proloading = $('.proloading', $this.n.container);
28
- $this.n.proclose = $('.proclose', $this.n.container);
29
- $this.n.promagnifier = $('.promagnifier', $this.n.container);
30
- $this.n.prosettings = $('.prosettings', $this.n.container);
31
- $this.n.searchsettings = $('#ajaxsearchlitesettings' + $this.o.rid);
32
- $this.n.resultsDiv = $('#ajaxsearchliteres' + $this.o.rid);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  $this.n.hiddenContainer = $('#asl_hidden_data');
34
  $this.n.aslItemOverlay = $('.asl_item_overlay', $this.n.hiddenContainer);
35
 
@@ -40,69 +58,31 @@
40
  $this.n.results = $('.results', $this.n.resultsDiv);
41
  $this.n.resdrg = $('.resdrg', $this.n.resultsDiv);
42
 
43
- // Isotopic Layout variables
44
- $this.il = {
45
- columns: 3,
46
- itemsPerPage: 6
47
- };
48
-
49
  $this.post = null;
50
  $this.postAuto = null;
51
- $this.cleanUp();
52
  $this.n.textAutocomplete.val('');
53
- $this.o.resultitemheight = parseInt($this.o.resultitemheight);
54
  $this.scroll = {};
55
  $this.savedScrollTop = 0; // Save the window scroll on IOS devices
56
  $this.savedContainerTop = 0;
57
- $this.is_scroll = typeof asl_SimpleBar != "undefined";
58
  // Force noscroll on minified version
59
  if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
60
  $this.is_scroll = false;
61
  $this.settScroll = null;
62
  $this.n.resultsAppend = $('#wpdreams_asl_results_' + $this.o.id);
63
- $this.currentPage = 1;
64
- $this.isotopic = null;
 
65
 
66
  $this.lastSuccesfulSearch = ''; // Holding the last phrase that returned results
67
  $this.lastSearchData = {}; // Store the last search information
68
  $this.triggerPrevState = false;
69
 
70
- $this.animation = "bounceIn";
71
- switch ($this.o.resultstype) {
72
- case "vertical":
73
- $this.animation = $this.o.vresultanimation;
74
- break;
75
- default:
76
- $this.animation = $this.o.hresultanimation;
77
- }
78
 
79
- $this.filterFns = {
80
- number: function () {
81
- var $parent = $(this).parent();
82
- while (!$parent.hasClass('isotopic')) {
83
- $parent = $parent.parent();
84
- }
85
- var number = $(this).attr('data-itemnum');
86
- //var currentPage = parseInt($('nav>ul li.asl_active span', $parent).html(), 10);
87
- var currentPage = $this.currentPage;
88
- //var itemsPerPage = parseInt($parent.data("itemsperpage"));
89
- var itemsPerPage = $this.il.itemsPerPage;
90
-
91
- return (
92
- (parseInt(number, 10) < itemsPerPage * currentPage) &&
93
- (parseInt(number, 10) >= itemsPerPage * (currentPage - 1))
94
- );
95
- }
96
- };
97
 
98
- $this.disableMobileScroll = false;
99
- $this.n.searchsettings.detach().appendTo("body");
100
 
101
- if ($this.o.resultsposition == 'hover') {
102
- $this.n.resultsDiv.detach().appendTo("body");
103
- } else if ($this.n.resultsAppend.length > 0) {
104
- $this.n.resultsDiv.detach().appendTo($this.n.resultsAppend);
105
- }
106
 
107
  // Memorize settins and results original HTML codes
108
  if ( typeof(ASL.resHTML) == 'undefined' )
@@ -121,7 +101,7 @@
121
  $this.monitorTouchMove();
122
 
123
  if (detectOldIE())
124
- $this.n.container.addClass('asl_msie');
125
 
126
  // Calculates the settings animation attributes
127
  $this.initSettingsAnimations();
@@ -313,7 +293,7 @@
313
  createVerticalScroll: function () {
314
  var $this = this;
315
  if ( $this.is_scroll && typeof $this.scroll.recalculate === 'undefined' ) {
316
- $this.scroll = new asl_SimpleBar($this.n.results.get(0), {
317
  direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
318
  autoHide: true
319
  });
@@ -330,7 +310,7 @@
330
  */
331
  $this.n.text.on('touchstart', function () {
332
  $this.savedScrollTop = $(window).scrollTop();
333
- $this.savedContainerTop = $this.n.container.offset().top;
334
  });
335
  }
336
 
@@ -354,16 +334,16 @@
354
  $($this.n.text.parent()).on('submit', function (e) {
355
  e.preventDefault();
356
  if ( isMobile() ) {
357
- if ( $this.o.redirect_on_enter ) {
358
  var _e = jQuery.Event("keyup");
359
  _e.keyCode = _e.which = 13;
360
  $this.n.text.trigger(_e);
361
- } else if ( $this.o.redirectEnterTo == 'ajax_search' ) {
362
  $this.search();
363
  document.activeElement.blur();
364
  }
365
  } else {
366
- if ( $this.o.redirectEnterTo == 'ajax_search' )
367
  $this.search();
368
  }
369
  });
@@ -400,12 +380,12 @@
400
  }
401
  });
402
 
403
- var fixedp = $this.n.container.parents().filter(
404
  function() {
405
  return $(this).css('position') == 'fixed';
406
  }
407
  );
408
- if ( fixedp.length > 0 || $this.n.container.css('position') == 'fixed' ) {
409
  if ( $this.n.resultsDiv.css('position') == 'absolute' )
410
  $this.n.resultsDiv.css('position', 'fixed');
411
  $this.n.resultsDiv.css('z-index',99999999999);
@@ -517,7 +497,7 @@
517
  $input = $input.length == 0 ? $(_this).next().find('input.orig') : $input;
518
  $input = $input.length == 0 ? $(_this).parent().find('input.orig') : $input;
519
  $input = $input.length == 0 ? $this.n.text : $input;
520
- if ( $this.n.container.is(':visible') ) {
521
  $input.get(0).focus();
522
  }
523
  }, 300);
@@ -624,14 +604,14 @@
624
  var isInput = $(this).hasClass("orig");
625
  if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
626
  $this.gaEvent('return');
627
- if ( $this.o.redirect_on_enter == 1 ) {
628
- if ($this.o.redirectEnterTo != 'first_result') {
629
  $this.doRedirectToResults($this.ktype);
630
  } else {
631
  $this.search();
632
  }
633
  } else {
634
- if ( $this.o.redirectEnterTo == 'nothing' )
635
  return false;
636
  if (
637
  ($('form', $this.n.searchsettings).serialize() + $this.n.text.val().trim()) != $this.lastSuccesfulSearch ||
@@ -666,7 +646,7 @@
666
  // If redirection is set to the results page, or custom URL
667
  if (
668
  $this.n.text.val().length >= $this.o.charcount &&
669
- (!isInput && $this.o.redirectonclick == 1 && $this.ktype == 'click' && $this.o.redirectClickTo != 'first_result' )
670
  ) {
671
  $this.doRedirectToResults($this.ktype);
672
  clearTimeout(t);
@@ -693,13 +673,19 @@
693
  $this.gaEvent('magnifier');
694
  }
695
 
696
- if ($this.o.trigger_on_click == 0 && $this.ktype == 'click') return;
697
- if ($this.o.triggerontype == 0 && $this.ktype == 'input') return;
 
 
 
 
 
 
698
 
699
  // Is the nothing is choosen
700
  if (
701
- (isInput && $this.ktype == 'input' && $this.o.redirectEnterTo == 'nothing') ||
702
- (!isInput && $this.ktype == 'click' && $this.o.redirectClickTo == 'nothing')
703
  )
704
  return;
705
 
@@ -728,7 +714,7 @@
728
  var $this = this;
729
  var t = null;
730
 
731
- if ($this.o.trigger_on_facet_change == 1) {
732
  $('input[type!=checkbox], select', $this.n.searchsettings).on('change slidechange', function(){
733
  if ($this.n.text.val().length < $this.o.charcount) return;
734
  if ($this.post != null) $this.post.abort();
@@ -757,8 +743,8 @@
757
  if (
758
  $('.asl_res_url', $this.n.resultsDiv).length > 0 &&
759
  (
760
- ($this.o.redirectonclick == 1 && $this.ktype == 'click' && $this.o.redirectClickTo == 'first_result' ) ||
761
- ($this.o.redirect_on_enter == 1 && ($this.ktype == 'input' || $this.ktype == 'keyup') && $this.keycode == 13 && $this.o.redirectEnterTo == 'first_result' )
762
  )
763
  ) {
764
  return true;
@@ -771,9 +757,9 @@
771
  var _loc;
772
 
773
  if ( $this.ktype == 'click' ) {
774
- _loc = $this.o.redirectClickLoc;
775
  } else {
776
- _loc = $this.o.redirectEnterLoc;
777
  }
778
 
779
  if ( _loc == 'same' )
@@ -789,15 +775,15 @@
789
  doRedirectToResults: function( ktype ) {
790
  var $this = this;
791
 
792
- var source = $this.ktype == 'click' ? $this.o.redirectClickTo : $this.o.redirectEnterTo;
793
- var _loc = ktype == 'click' ? $this.o.redirectClickLoc : $this.o.redirectEnterLoc;
794
 
795
  if ( source == 'results_page' ) {
796
  var url = '?s=' + asl_nice_phrase($this.n.text.val());
797
  } else if ( source == 'woo_results_page' ) {
798
  var url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
799
  } else {
800
- var url = $this.o.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
801
  }
802
 
803
  // Is this an URL like xy.com/?x=y
@@ -831,10 +817,15 @@
831
  },
832
 
833
  destroy: function () {
834
- return this.each(function () {
835
  var $this = $.extend({}, this, methods);
836
  $(window).unbind($this);
837
- })
 
 
 
 
 
838
  },
839
  searchfor: function (phrase) {
840
  $(".proinput input", this).val(phrase).trigger("keyup");
@@ -956,8 +947,8 @@
956
 
957
  $(".asl_keyword", $this.n.resdrg).on('click', function () {
958
  $this.n.text.val($(this).html());
959
- $('input.orig', $this.n.container).val($(this).html()).trigger('keydown');
960
- $('form', $this.n.container).trigger('submit', 'ajax');
961
  $this.search();
962
  });
963
 
@@ -988,7 +979,7 @@
988
 
989
  $('a', $this.n.showmore).off();
990
  $('a', $this.n.showmore).on('click', function(e){
991
- var source = $this.o.redirectClickTo;
992
  var url = '?s=' + asl_nice_phrase($this.n.text.val());
993
 
994
  if ( source == 'results_page' ) {
@@ -996,7 +987,7 @@
996
  } else if ( source == 'woo_results_page' ) {
997
  url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
998
  } else {
999
- url = $this.o.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
1000
  }
1001
 
1002
  if ( $this.o.overridewpdefault ) {
@@ -1065,15 +1056,7 @@
1065
 
1066
  // Create the scrollbars if needed
1067
  $this.createVerticalScroll();
1068
-
1069
- switch ($this.o.resultstype) {
1070
- case 'vertical':
1071
- $this.showVerticalResults();
1072
- break;
1073
- default:
1074
- $this.showHorizontalResults();
1075
- break;
1076
- }
1077
 
1078
  $this.hideLoader();
1079
 
@@ -1129,20 +1112,21 @@
1129
 
1130
  scrollToResults: function( ) {
1131
  $this = this;
1132
- if (this.o.scrollToResults!=1) return;
1133
- if (this.$elem.parent().hasClass("asl_preview_data")) return;
1134
- if ($this.o.resultsposition == "hover")
1135
- var stop = $this.n.probox.offset().top - 20;
1136
- else
1137
- var stop = $this.n.resultsDiv.offset().top - 20;
1138
- if ($("#wpadminbar").length > 0)
1139
- stop -= $("#wpadminbar").height();
1140
- stop = stop < 0 ? 0 : stop;
1141
- $('body, html').animate({
1142
- "scrollTop": stop
1143
- }, {
1144
- duration: 500
1145
- });
 
1146
  },
1147
 
1148
  createGroup: function (r) {
@@ -1226,33 +1210,10 @@
1226
  var $container = $this.is_scroll ? $($this.scroll.getScrollElement()) : $this.n.results;
1227
  $container.scrollTop(0);
1228
 
1229
- $this.addAnimation();
1230
  $this.fixResultsPosition(true);
1231
  $this.searching = false;
1232
  },
1233
 
1234
- addAnimation: function () {
1235
- var $this = this;
1236
- var i = 0;
1237
- var j = 1;
1238
- $this.n.items.each(function () {
1239
- var x = this;
1240
- setTimeout(function () {
1241
- $(x).addClass($this.animation);
1242
- }, i);
1243
- i = i + 60;
1244
- j++;
1245
- });
1246
- },
1247
-
1248
- removeAnimation: function () {
1249
- var $this = this;
1250
- $this.n.items.each(function () {
1251
- var x = this;
1252
- $(x).removeClass($this.animation);
1253
- });
1254
- },
1255
-
1256
  initSettingsAnimations: function() {
1257
  var $this = this;
1258
  var animDur = 300;
@@ -1319,7 +1280,7 @@
1319
  var _this = this;
1320
  // Small delay to fix a rendering issue
1321
  setTimeout(function(){
1322
- $this.settScroll[i] = new asl_SimpleBar($(_this).get(0), {
1323
  direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
1324
  autoHide: true
1325
  });
@@ -1341,10 +1302,44 @@
1341
  $this.n.prosettings.data('opened', 0);
1342
  },
1343
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1344
  cleanUp: function () {
1345
  var $this = this;
1346
 
1347
- if ($('.searchsettings', $this.n.container).length > 0) {
1348
  $('body>#ajaxsearchlitesettings' + $this.o.rid).remove();
1349
  $('body>#ajaxsearchliteres' + $this.o.rid).remove();
1350
  }
@@ -1390,7 +1385,7 @@
1390
  if (ignoreVisibility == true || $this.n.resultsDiv.css('visibility') == 'visible') {
1391
  var _roffset_top = 0;
1392
  var _roffset_left = 0;
1393
- var _rposition = $this.n.container.offset();
1394
 
1395
  if ( rpos == 'fixed' ) {
1396
  bodyTop = 0;
@@ -1403,10 +1398,22 @@
1403
  }
1404
 
1405
  if ( typeof _rposition != 'undefined' ) {
1406
- var rwidth = $this.n.container.outerWidth() < 240 ? 240 : $this.n.container.outerWidth();
1407
- $this.n.resultsDiv.outerWidth(rwidth);
 
 
 
 
 
 
 
 
 
 
 
1408
  $this.n.resultsDiv.css({
1409
- top: _rposition.top + $this.n.container.outerHeight(true) + 10 - bodyTop - _roffset_top,
 
1410
  left: _rposition.left - _roffset_left
1411
  });
1412
  }
@@ -1469,6 +1476,17 @@
1469
  }
1470
  }
1471
 
 
 
 
 
 
 
 
 
 
 
 
1472
  /* Mobile detection - Touch desktop device safe! */
1473
  function isMobile() {
1474
  try{ document.createEvent("TouchEvent"); return true; }
@@ -1761,5 +1779,4 @@
1761
  }
1762
 
1763
  }
1764
- })(jQuery);}
1765
- })(asljQuery, asljQuery, window);
 
1
  /*! Ajax Search Lite 4.6 js */
2
  ;if ( typeof jQuery != 'undefined' ) {(function ($) {
3
  var prevState;
14
  $this.o = $.extend({
15
  'blocking': false
16
  }, options);
17
+ $this.n = {};
18
+ $this.n.search = $(this.elem);
19
+ $this.n.container = $this.n.search.closest('.asl_w_container');
20
+ $this.o.id = $this.n.search.data('id');
21
+ $this.o.iid = $this.n.search.data('instance');
22
+ $this.o.rid = $this.o.id;
23
+ $this.n.probox = $('.probox', $this.n.search);
24
+ $this.n.proinput = $('.proinput', $this.n.search);
25
+ $this.n.text = $('.proinput input.orig', $this.n.search);
26
+ $this.n.textAutocomplete = $('.proinput input.autocomplete', $this.n.search);
27
+ $this.n.loading = $('.proinput .loading', $this.n.search);
28
+ $this.n.proloading = $('.proloading', $this.n.search);
29
+ $this.n.proclose = $('.proclose', $this.n.search);
30
+ $this.n.promagnifier = $('.promagnifier', $this.n.search);
31
+ $this.n.prosettings = $('.prosettings', $this.n.search);
32
+
33
+ $this.n.searchsettings = $('.asl_s', $this.n.container);
34
+ $this.n.resultsDiv = $('.asl_r', $this.n.container);
35
+
36
+ // Fix any potential clones and adjust the variables
37
+ $this.fixClonedSelf();
38
+
39
+ $this.n.searchsettings = $this.n.searchsettings.clone();
40
+ $('body').append($this.n.searchsettings);
41
+ $this.n.searchsettings.get(0).id = $this.n.searchsettings.get(0).id.replace('__original__', '');
42
+
43
+ $this.n.resultsDiv = $this.n.resultsDiv.clone();
44
+ if ($this.o.resultsposition == 'hover') {
45
+ $('body').append($this.n.resultsDiv);
46
+ } else if ($this.n.resultsAppend.length > 0) {
47
+ $this.n.resultsAppend.append($this.n.resultsDiv);
48
+ }
49
+ $this.n.resultsDiv.get(0).id = $this.n.resultsDiv.get(0).id.replace('__original__', '');
50
+
51
  $this.n.hiddenContainer = $('#asl_hidden_data');
52
  $this.n.aslItemOverlay = $('.asl_item_overlay', $this.n.hiddenContainer);
53
 
58
  $this.n.results = $('.results', $this.n.resultsDiv);
59
  $this.n.resdrg = $('.resdrg', $this.n.resultsDiv);
60
 
 
 
 
 
 
 
61
  $this.post = null;
62
  $this.postAuto = null;
63
+
64
  $this.n.textAutocomplete.val('');
 
65
  $this.scroll = {};
66
  $this.savedScrollTop = 0; // Save the window scroll on IOS devices
67
  $this.savedContainerTop = 0;
68
+ $this.is_scroll = typeof asp_SimpleBar != "undefined";
69
  // Force noscroll on minified version
70
  if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
71
  $this.is_scroll = false;
72
  $this.settScroll = null;
73
  $this.n.resultsAppend = $('#wpdreams_asl_results_' + $this.o.id);
74
+
75
+ $this.o.redirectOnClick = $this.o.trigger.click != 'ajax_search' && $this.o.trigger.click != 'nothing';
76
+ $this.o.redirectOnEnter = $this.o.trigger.return != 'ajax_search' && $this.o.trigger.return != 'nothing';
77
 
78
  $this.lastSuccesfulSearch = ''; // Holding the last phrase that returned results
79
  $this.lastSearchData = {}; // Store the last search information
80
  $this.triggerPrevState = false;
81
 
 
 
 
 
 
 
 
 
82
 
83
+ //$this.n.searchsettings.detach().appendTo("body");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
 
 
85
 
 
 
 
 
 
86
 
87
  // Memorize settins and results original HTML codes
88
  if ( typeof(ASL.resHTML) == 'undefined' )
101
  $this.monitorTouchMove();
102
 
103
  if (detectOldIE())
104
+ $this.n.search.addClass('asl_msie');
105
 
106
  // Calculates the settings animation attributes
107
  $this.initSettingsAnimations();
293
  createVerticalScroll: function () {
294
  var $this = this;
295
  if ( $this.is_scroll && typeof $this.scroll.recalculate === 'undefined' ) {
296
+ $this.scroll = new asp_SimpleBar($this.n.results.get(0), {
297
  direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
298
  autoHide: true
299
  });
310
  */
311
  $this.n.text.on('touchstart', function () {
312
  $this.savedScrollTop = $(window).scrollTop();
313
+ $this.savedContainerTop = $this.n.search.offset().top;
314
  });
315
  }
316
 
334
  $($this.n.text.parent()).on('submit', function (e) {
335
  e.preventDefault();
336
  if ( isMobile() ) {
337
+ if ( $this.o.redirectOnEnter ) {
338
  var _e = jQuery.Event("keyup");
339
  _e.keyCode = _e.which = 13;
340
  $this.n.text.trigger(_e);
341
+ } else if ( $this.o.trigger.return == 'ajax_search' ) {
342
  $this.search();
343
  document.activeElement.blur();
344
  }
345
  } else {
346
+ if ( $this.o.trigger.return == 'ajax_search' )
347
  $this.search();
348
  }
349
  });
380
  }
381
  });
382
 
383
+ var fixedp = $this.n.search.parents().filter(
384
  function() {
385
  return $(this).css('position') == 'fixed';
386
  }
387
  );
388
+ if ( fixedp.length > 0 || $this.n.search.css('position') == 'fixed' ) {
389
  if ( $this.n.resultsDiv.css('position') == 'absolute' )
390
  $this.n.resultsDiv.css('position', 'fixed');
391
  $this.n.resultsDiv.css('z-index',99999999999);
497
  $input = $input.length == 0 ? $(_this).next().find('input.orig') : $input;
498
  $input = $input.length == 0 ? $(_this).parent().find('input.orig') : $input;
499
  $input = $input.length == 0 ? $this.n.text : $input;
500
+ if ( $this.n.search.is(':visible') ) {
501
  $input.get(0).focus();
502
  }
503
  }, 300);
604
  var isInput = $(this).hasClass("orig");
605
  if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
606
  $this.gaEvent('return');
607
+ if ( $this.o.redirectOnEnter == 1 ) {
608
+ if ($this.o.trigger.return != 'first_result') {
609
  $this.doRedirectToResults($this.ktype);
610
  } else {
611
  $this.search();
612
  }
613
  } else {
614
+ if ( $this.o.trigger.return == 'nothing' )
615
  return false;
616
  if (
617
  ($('form', $this.n.searchsettings).serialize() + $this.n.text.val().trim()) != $this.lastSuccesfulSearch ||
646
  // If redirection is set to the results page, or custom URL
647
  if (
648
  $this.n.text.val().length >= $this.o.charcount &&
649
+ (!isInput && $this.o.redirectOnClick == 1 && $this.ktype == 'click' && $this.o.trigger.click != 'first_result' )
650
  ) {
651
  $this.doRedirectToResults($this.ktype);
652
  clearTimeout(t);
673
  $this.gaEvent('magnifier');
674
  }
675
 
676
+ if (
677
+ $this.ktype == 'click' &&
678
+ !( $this.o.trigger.click == 'ajax_search' || $this.o.trigger.click == 'first_result' )
679
+ ) {
680
+ return false;
681
+ }
682
+
683
+ if ($this.o.trigger.type == 0 && $this.ktype == 'input') return;
684
 
685
  // Is the nothing is choosen
686
  if (
687
+ (isInput && $this.ktype == 'input' && $this.o.trigger.return == 'nothing') ||
688
+ (!isInput && $this.ktype == 'click' && $this.o.trigger.click == 'nothing')
689
  )
690
  return;
691
 
714
  var $this = this;
715
  var t = null;
716
 
717
+ if ($this.o.trigger.facet == 1) {
718
  $('input[type!=checkbox], select', $this.n.searchsettings).on('change slidechange', function(){
719
  if ($this.n.text.val().length < $this.o.charcount) return;
720
  if ($this.post != null) $this.post.abort();
743
  if (
744
  $('.asl_res_url', $this.n.resultsDiv).length > 0 &&
745
  (
746
+ ($this.o.redirectOnClick == 1 && $this.ktype == 'click' && $this.o.trigger.click == 'first_result' ) ||
747
+ ($this.o.redirectOnEnter == 1 && ($this.ktype == 'input' || $this.ktype == 'keyup') && $this.keycode == 13 && $this.o.trigger.return == 'first_result' )
748
  )
749
  ) {
750
  return true;
757
  var _loc;
758
 
759
  if ( $this.ktype == 'click' ) {
760
+ _loc = $this.o.trigger.click_location;
761
  } else {
762
+ _loc = $this.o.trigger.return_location;
763
  }
764
 
765
  if ( _loc == 'same' )
775
  doRedirectToResults: function( ktype ) {
776
  var $this = this;
777
 
778
+ var source = $this.ktype == 'click' ? $this.o.trigger.click : $this.o.trigger.return;
779
+ var _loc = ktype == 'click' ? $this.o.trigger.click_location : $this.o.trigger.return_location;
780
 
781
  if ( source == 'results_page' ) {
782
  var url = '?s=' + asl_nice_phrase($this.n.text.val());
783
  } else if ( source == 'woo_results_page' ) {
784
  var url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
785
  } else {
786
+ var url = $this.o.trigger.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
787
  }
788
 
789
  // Is this an URL like xy.com/?x=y
817
  },
818
 
819
  destroy: function () {
820
+ /*return this.each(function () {
821
  var $this = $.extend({}, this, methods);
822
  $(window).unbind($this);
823
+ });*/
824
+ var $this = this;
825
+ $this.n.searchsettings.remove();
826
+ $this.n.resultsDiv.remove();
827
+ $this.n.search.remove();
828
+ $this.n.container.remove();
829
  },
830
  searchfor: function (phrase) {
831
  $(".proinput input", this).val(phrase).trigger("keyup");
947
 
948
  $(".asl_keyword", $this.n.resdrg).on('click', function () {
949
  $this.n.text.val($(this).html());
950
+ $('input.orig', $this.n.search).val($(this).html()).trigger('keydown');
951
+ $('form', $this.n.search).trigger('submit', 'ajax');
952
  $this.search();
953
  });
954
 
979
 
980
  $('a', $this.n.showmore).off();
981
  $('a', $this.n.showmore).on('click', function(e){
982
+ var source = $this.o.trigger.click;
983
  var url = '?s=' + asl_nice_phrase($this.n.text.val());
984
 
985
  if ( source == 'results_page' ) {
987
  } else if ( source == 'woo_results_page' ) {
988
  url = '?post_type=product&s=' + asl_nice_phrase($this.n.text.val());
989
  } else {
990
+ url = $this.o.trigger.redirect_url.replace('{phrase}', asl_nice_phrase($this.n.text.val()));
991
  }
992
 
993
  if ( $this.o.overridewpdefault ) {
1056
 
1057
  // Create the scrollbars if needed
1058
  $this.createVerticalScroll();
1059
+ $this.showVerticalResults();
 
 
 
 
 
 
 
 
1060
 
1061
  $this.hideLoader();
1062
 
1112
 
1113
  scrollToResults: function( ) {
1114
  $this = this;
1115
+ if ( this.o.scrollToResults.enabled ) {
1116
+ if (this.$elem.parent().hasClass("asl_preview_data")) return;
1117
+ if ($this.o.resultsposition == "hover")
1118
+ var stop = $this.n.probox.offset().top - 20;
1119
+ else
1120
+ var stop = $this.n.resultsDiv.offset().top - 20;
1121
+ if ($("#wpadminbar").length > 0)
1122
+ stop -= $("#wpadminbar").height();
1123
+ stop = stop < 0 ? 0 : stop;
1124
+ $('body, html').animate({
1125
+ "scrollTop": stop
1126
+ }, {
1127
+ duration: 500
1128
+ });
1129
+ }
1130
  },
1131
 
1132
  createGroup: function (r) {
1210
  var $container = $this.is_scroll ? $($this.scroll.getScrollElement()) : $this.n.results;
1211
  $container.scrollTop(0);
1212
 
 
1213
  $this.fixResultsPosition(true);
1214
  $this.searching = false;
1215
  },
1216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1217
  initSettingsAnimations: function() {
1218
  var $this = this;
1219
  var animDur = 300;
1280
  var _this = this;
1281
  // Small delay to fix a rendering issue
1282
  setTimeout(function(){
1283
+ $this.settScroll[i] = new asp_SimpleBar($(_this).get(0), {
1284
  direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
1285
  autoHide: true
1286
  });
1302
  $this.n.prosettings.data('opened', 0);
1303
  },
1304
 
1305
+ fixClonedSelf: function() {
1306
+ let $this = this,
1307
+ oldInstanceId = $this.o.iid,
1308
+ oldRID = $this.o.rid;
1309
+ while ( !ASL.instances.set($this) ) {
1310
+ ++$this.o.iid;
1311
+ if ($this.o.iid > 50) {
1312
+ break;
1313
+ }
1314
+ }
1315
+ // oof, this was cloned
1316
+ if ( oldInstanceId != $this.o.iid ) {
1317
+ $this.o.rid = $this.o.id + '_' + $this.o.iid;
1318
+ $this.n.search.get(0).id = "ajaxsearchlite" + $this.o.rid;
1319
+ $this.n.search.removeClass('asl_m_' + oldRID).addClass('asl_m_' + $this.o.rid);
1320
+ $this.n.searchsettings.get(0).id = $this.n.searchsettings.get(0).id.replace('settings'+ oldRID, 'settings' + $this.o.rid);
1321
+ if ( $this.n.searchsettings.hasClass('asl_s_' + oldRID) ) {
1322
+ $this.n.searchsettings.removeClass('asl_s_' + oldRID)
1323
+ .addClass('asl_s_' + $this.o.rid).data('instance', $this.o.iid);
1324
+ } else {
1325
+ $this.n.searchsettings.removeClass('asl_sb_' + oldRID)
1326
+ .addClass('asl_sb_' + $this.o.rid).data('instance', $this.o.iid);
1327
+ }
1328
+ $this.n.resultsDiv.get(0).id = $this.n.resultsDiv.get(0).id.replace('prores'+ oldRID, 'prores' + $this.o.rid);
1329
+ $this.n.resultsDiv.removeClass('asl_r_' + oldRID)
1330
+ .addClass('asl_r_' + $this.o.rid).data('instance', $this.o.iid);
1331
+ $this.n.container.find('.asl_init_data').data('instance', $this.o.iid);
1332
+ $this.n.container.find('.asl_init_data').get(0).id =
1333
+ $this.n.container.find('.asl_init_data').get(0).id.replace('asl_init_id_'+ oldRID, 'asl_init_id_' + $this.o.rid);
1334
+
1335
+ $this.n.prosettings.data('opened', 0);
1336
+ }
1337
+ },
1338
+
1339
  cleanUp: function () {
1340
  var $this = this;
1341
 
1342
+ if ($('.searchsettings', $this.n.search).length > 0) {
1343
  $('body>#ajaxsearchlitesettings' + $this.o.rid).remove();
1344
  $('body>#ajaxsearchliteres' + $this.o.rid).remove();
1345
  }
1385
  if (ignoreVisibility == true || $this.n.resultsDiv.css('visibility') == 'visible') {
1386
  var _roffset_top = 0;
1387
  var _roffset_left = 0;
1388
+ var _rposition = $this.n.search.offset();
1389
 
1390
  if ( rpos == 'fixed' ) {
1391
  bodyTop = 0;
1398
  }
1399
 
1400
  if ( typeof _rposition != 'undefined' ) {
1401
+ var vwidth;
1402
+ if ( deviceType() == 'phone' ) {
1403
+ vwidth = $this.o.results.width_phone;
1404
+ } else if ( deviceType() == 'tablet' ) {
1405
+ vwidth = $this.o.results.width_tablet;
1406
+ } else {
1407
+ vwidth = $this.o.results.width;
1408
+ }
1409
+ if ( vwidth == 'auto') {
1410
+ vwidth = $this.n.search.outerWidth() < 240 ? 240 : $this.n.search.outerWidth();
1411
+ }
1412
+ //$this.n.resultsDiv.css('width', !isNaN(vwidth) ? vwidth + 'px' : vwidth);
1413
+ //$this.n.resultsDiv.outerWidth(rwidth);
1414
  $this.n.resultsDiv.css({
1415
+ width: (!isNaN(vwidth) ? vwidth + 'px' : vwidth),
1416
+ top: _rposition.top + $this.n.search.outerHeight(true) - bodyTop - _roffset_top,
1417
  left: _rposition.left - _roffset_left
1418
  });
1419
  }
1476
  }
1477
  }
1478
 
1479
+ function deviceType() {
1480
+ var w = $(window).width();
1481
+ if ( w <= 640 ) {
1482
+ return 'phone';
1483
+ } else if ( w <= 1024 ) {
1484
+ return 'tablet';
1485
+ } else {
1486
+ return 'desktop';
1487
+ }
1488
+ }
1489
+
1490
  /* Mobile detection - Touch desktop device safe! */
1491
  function isMobile() {
1492
  try{ document.createEvent("TouchEvent"); return true; }
1779
  }
1780
 
1781
  }
1782
+ })(jQuery);}
 
js/{nomin → legacy/nomin}/jquery.highlight.js RENAMED
File without changes
js/{nomin → legacy/nomin}/simplebar.js RENAMED
@@ -1,7 +1,7 @@
1
  /**
2
- * asl_SimpleBar.js - v5.3.5
3
  * Scrollbars, simpler.
4
- * https://grsmto.github.io/asl_simplebar/
5
  *
6
  * Made by Adrien Denat from a fork by Jonathan Nicol
7
  * Under MIT License
@@ -10,7 +10,7 @@
10
  (function (global, factory) {
11
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('core-js/modules/es.array.for-each'), require('core-js/modules/web.dom-collections.for-each'), require('core-js/modules/es.array.filter'), require('core-js/modules/es.array.iterator'), require('core-js/modules/es.object.assign'), require('core-js/modules/es.object.to-string'), require('core-js/modules/es.parse-int'), require('core-js/modules/es.string.iterator'), require('core-js/modules/es.weak-map'), require('core-js/modules/web.dom-collections.iterator'), require('core-js/modules/es.array.reduce'), require('core-js/modules/es.function.name'), require('core-js/modules/es.regexp.exec'), require('core-js/modules/es.string.match'), require('core-js/modules/es.string.replace')) :
12
  typeof define === 'function' && define.amd ? define(['core-js/modules/es.array.for-each', 'core-js/modules/web.dom-collections.for-each', 'core-js/modules/es.array.filter', 'core-js/modules/es.array.iterator', 'core-js/modules/es.object.assign', 'core-js/modules/es.object.to-string', 'core-js/modules/es.parse-int', 'core-js/modules/es.string.iterator', 'core-js/modules/es.weak-map', 'core-js/modules/web.dom-collections.iterator', 'core-js/modules/es.array.reduce', 'core-js/modules/es.function.name', 'core-js/modules/es.regexp.exec', 'core-js/modules/es.string.match', 'core-js/modules/es.string.replace'], factory) :
13
- (global = global || self, global.asl_SimpleBar = factory());
14
  }(this, function () { 'use strict';
15
 
16
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -2012,7 +2012,7 @@
2012
  // Helper function to retrieve options from element attributes
2013
  var getOptions = function getOptions(obj) {
2014
  var options = Array.prototype.reduce.call(obj, function (acc, attribute) {
2015
- var option = attribute.name.match(/data-asl_simplebar-(.+)/);
2016
 
2017
  if (option) {
2018
  var key = option[1].replace(/\W+(.)/g, function (x, chr) {
@@ -2075,7 +2075,7 @@
2075
 
2076
  var body = document.body;
2077
  var box = document.createElement('div');
2078
- box.classList.add('asl_simplebar-hide-scrollbar');
2079
  body.appendChild(box);
2080
  var width = box.getBoundingClientRect().right;
2081
  body.removeChild(box);
@@ -2085,10 +2085,10 @@
2085
  return cachedScrollbarWidth;
2086
  }
2087
 
2088
- var asl_SimpleBar =
2089
  /*#__PURE__*/
2090
  function () {
2091
- function asl_SimpleBar(element, options) {
2092
  var _this = this;
2093
 
2094
  this.onScroll = function () {
@@ -2252,8 +2252,8 @@
2252
  var scrollPos = dragPerc * (contentSize - hostSize); // Fix browsers inconsistency on RTL
2253
 
2254
  if (_this.draggedAxis === 'x') {
2255
- scrollPos = _this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? scrollPos - (trackSize + scrollbar.size) : scrollPos;
2256
- scrollPos = _this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollPos : scrollPos;
2257
  }
2258
 
2259
  _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollOffsetAttr] = scrollPos;
@@ -2285,8 +2285,8 @@
2285
 
2286
  this.el = element;
2287
  this.minScrollbarWidth = 20;
2288
- this.options = Object.assign({}, asl_SimpleBar.defaultOptions, {}, options);
2289
- this.classNames = Object.assign({}, asl_SimpleBar.defaultOptions.classNames, {}, this.options.classNames);
2290
  this.axis = {
2291
  x: {
2292
  scrollOffsetAttr: 'scrollLeft',
@@ -2319,7 +2319,7 @@
2319
  };
2320
  this.removePreventClickId = null; // Don't re-instantiate over an existing one
2321
 
2322
- if (asl_SimpleBar.instances.has(this.el)) {
2323
  return;
2324
  }
2325
 
@@ -2329,7 +2329,7 @@
2329
  this.onWindowResize = lodash_debounce(this.onWindowResize.bind(this), 64, {
2330
  leading: true
2331
  });
2332
- asl_SimpleBar.getRtlHelpers = lodash_memoize(asl_SimpleBar.getRtlHelpers);
2333
  this.init();
2334
  }
2335
  /**
@@ -2344,17 +2344,17 @@
2344
  */
2345
 
2346
 
2347
- asl_SimpleBar.getRtlHelpers = function getRtlHelpers() {
2348
  var dummyDiv = document.createElement('div');
2349
  dummyDiv.innerHTML = '<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';
2350
  var scrollbarDummyEl = dummyDiv.firstElementChild;
2351
  document.body.appendChild(scrollbarDummyEl);
2352
  var dummyContainerChild = scrollbarDummyEl.firstElementChild;
2353
  scrollbarDummyEl.scrollLeft = 0;
2354
- var dummyContainerOffset = asl_SimpleBar.getOffset(scrollbarDummyEl);
2355
- var dummyContainerChildOffset = asl_SimpleBar.getOffset(dummyContainerChild);
2356
  scrollbarDummyEl.scrollLeft = 999;
2357
- var dummyContainerScrollOffsetAfterScroll = asl_SimpleBar.getOffset(dummyContainerChild);
2358
  return {
2359
  // determines if the scrolling is responding with negative values
2360
  isRtlScrollingInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left && dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left !== 0,
@@ -2363,7 +2363,7 @@
2363
  };
2364
  };
2365
 
2366
- asl_SimpleBar.getOffset = function getOffset(el) {
2367
  var rect = el.getBoundingClientRect();
2368
  var elDocument = getElementDocument(el);
2369
  var elWindow = getElementWindow(el);
@@ -2373,11 +2373,11 @@
2373
  };
2374
  };
2375
 
2376
- var _proto = asl_SimpleBar.prototype;
2377
 
2378
  _proto.init = function init() {
2379
  // Save a reference to the instance, so we know this DOM node has already been instancied
2380
- asl_SimpleBar.instances.set(this.el, this);
2381
  this.initDOM();
2382
  this.scrollbarWidth = this.getScrollbarWidth();
2383
  this.recalculate();
@@ -2457,7 +2457,7 @@
2457
  this.axis.y.scrollbar.el.classList.add(this.classNames.visible);
2458
  }
2459
 
2460
- this.el.setAttribute('data-asl_simplebar', 'init');
2461
  };
2462
 
2463
  _proto.initListeners = function initListeners() {
@@ -2588,10 +2588,10 @@
2588
  var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
2589
  var scrollbar = this.axis[axis].scrollbar;
2590
  var scrollOffset = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
2591
- scrollOffset = axis === 'x' && this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollOffset : scrollOffset;
2592
  var scrollPourcent = scrollOffset / (contentSize - hostSize);
2593
  var handleOffset = ~~((trackSize - scrollbar.size) * scrollPourcent);
2594
- handleOffset = axis === 'x' && this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? handleOffset + (trackSize - scrollbar.size) : handleOffset;
2595
  scrollbar.el.style.transform = axis === 'x' ? "translate3d(" + handleOffset + "px, 0, 0)" : "translate3d(0, " + handleOffset + "px, 0)";
2596
  };
2597
 
@@ -2833,13 +2833,13 @@
2833
  this.onWindowResize.cancel();
2834
  }
2835
  /**
2836
- * UnMount mutation observer and delete asl_SimpleBar instance from DOM element
2837
  */
2838
  ;
2839
 
2840
  _proto.unMount = function unMount() {
2841
  this.removeListeners();
2842
- asl_SimpleBar.instances.delete(this.el);
2843
  }
2844
  /**
2845
  * Check if mouse is within bounds
@@ -2861,55 +2861,55 @@
2861
  })[0];
2862
  };
2863
 
2864
- return asl_SimpleBar;
2865
  }();
2866
 
2867
- asl_SimpleBar.defaultOptions = {
2868
  autoHide: true,
2869
  forceVisible: false,
2870
  clickOnTrack: true,
2871
  clickOnTrackSpeed: 40,
2872
  classNames: {
2873
- contentEl: 'asl_simplebar-content',
2874
- contentWrapper: 'asl_simplebar-content-wrapper',
2875
- offset: 'asl_simplebar-offset',
2876
- mask: 'asl_simplebar-mask',
2877
- wrapper: 'asl_simplebar-wrapper',
2878
- placeholder: 'asl_simplebar-placeholder',
2879
- scrollbar: 'asl_simplebar-scrollbar',
2880
- track: 'asl_simplebar-track',
2881
- heightAutoObserverWrapperEl: 'asl_simplebar-height-auto-observer-wrapper',
2882
- heightAutoObserverEl: 'asl_simplebar-height-auto-observer',
2883
- visible: 'asl_simplebar-visible',
2884
- horizontal: 'asl_simplebar-horizontal',
2885
- vertical: 'asl_simplebar-vertical',
2886
- hover: 'asl_simplebar-hover',
2887
- dragging: 'asl_simplebar-dragging'
2888
  },
2889
  scrollbarMinSize: 25,
2890
  scrollbarMaxSize: 0,
2891
  timeout: 1000
2892
  };
2893
- asl_SimpleBar.instances = new WeakMap();
2894
 
2895
- asl_SimpleBar.initDOMLoadedElements = function () {
2896
  document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
2897
  window.removeEventListener('load', this.initDOMLoadedElements);
2898
- Array.prototype.forEach.call(document.querySelectorAll('[data-asl_simplebar]'), function (el) {
2899
- if (el.getAttribute('data-asl_simplebar') !== 'init' && !asl_SimpleBar.instances.has(el)) new asl_SimpleBar(el, getOptions(el.attributes));
2900
  });
2901
  };
2902
 
2903
- asl_SimpleBar.removeObserver = function () {
2904
  this.globalObserver.disconnect();
2905
  };
2906
 
2907
- asl_SimpleBar.initHtmlApi = function () {
2908
  this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this); // MutationObserver is IE11+
2909
 
2910
  if (typeof MutationObserver !== 'undefined') {
2911
  // Mutation observer to observe dynamically added elements
2912
- this.globalObserver = new MutationObserver(asl_SimpleBar.handleMutations);
2913
  this.globalObserver.observe(document, {
2914
  childList: true,
2915
  subtree: true
@@ -2927,26 +2927,26 @@
2927
  }
2928
  };
2929
 
2930
- asl_SimpleBar.handleMutations = function (mutations) {
2931
  mutations.forEach(function (mutation) {
2932
  Array.prototype.forEach.call(mutation.addedNodes, function (addedNode) {
2933
  if (addedNode.nodeType === 1) {
2934
- if (addedNode.hasAttribute('data-asl_simplebar')) {
2935
- !asl_SimpleBar.instances.has(addedNode) && document.documentElement.contains(addedNode) && new asl_SimpleBar(addedNode, getOptions(addedNode.attributes));
2936
  } else {
2937
- Array.prototype.forEach.call(addedNode.querySelectorAll('[data-asl_simplebar]'), function (el) {
2938
- if (el.getAttribute('data-asl_simplebar') !== 'init' && !asl_SimpleBar.instances.has(el) && document.documentElement.contains(el)) new asl_SimpleBar(el, getOptions(el.attributes));
2939
  });
2940
  }
2941
  }
2942
  });
2943
  Array.prototype.forEach.call(mutation.removedNodes, function (removedNode) {
2944
  if (removedNode.nodeType === 1) {
2945
- if (removedNode.getAttribute('data-asl_simplebar') === 'init') {
2946
- asl_SimpleBar.instances.has(removedNode) && !document.documentElement.contains(removedNode) && asl_SimpleBar.instances.get(removedNode).unMount();
2947
  } else {
2948
- Array.prototype.forEach.call(removedNode.querySelectorAll('[data-asl_simplebar="init"]'), function (el) {
2949
- asl_SimpleBar.instances.has(el) && !document.documentElement.contains(el) && asl_SimpleBar.instances.get(el).unMount();
2950
  });
2951
  }
2952
  }
@@ -2954,14 +2954,14 @@
2954
  });
2955
  };
2956
 
2957
- asl_SimpleBar.getOptions = getOptions;
2958
  /**
2959
  * HTML API
2960
  * Called only in a browser env.
2961
  */
2962
 
2963
- asl_SimpleBar.initHtmlApi();
2964
 
2965
- return asl_SimpleBar;
2966
 
2967
  }));
1
  /**
2
+ * asp_SimpleBar.js - v5.3.5
3
  * Scrollbars, simpler.
4
+ * https://grsmto.github.io/asp_simplebar/
5
  *
6
  * Made by Adrien Denat from a fork by Jonathan Nicol
7
  * Under MIT License
10
  (function (global, factory) {
11
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('core-js/modules/es.array.for-each'), require('core-js/modules/web.dom-collections.for-each'), require('core-js/modules/es.array.filter'), require('core-js/modules/es.array.iterator'), require('core-js/modules/es.object.assign'), require('core-js/modules/es.object.to-string'), require('core-js/modules/es.parse-int'), require('core-js/modules/es.string.iterator'), require('core-js/modules/es.weak-map'), require('core-js/modules/web.dom-collections.iterator'), require('core-js/modules/es.array.reduce'), require('core-js/modules/es.function.name'), require('core-js/modules/es.regexp.exec'), require('core-js/modules/es.string.match'), require('core-js/modules/es.string.replace')) :
12
  typeof define === 'function' && define.amd ? define(['core-js/modules/es.array.for-each', 'core-js/modules/web.dom-collections.for-each', 'core-js/modules/es.array.filter', 'core-js/modules/es.array.iterator', 'core-js/modules/es.object.assign', 'core-js/modules/es.object.to-string', 'core-js/modules/es.parse-int', 'core-js/modules/es.string.iterator', 'core-js/modules/es.weak-map', 'core-js/modules/web.dom-collections.iterator', 'core-js/modules/es.array.reduce', 'core-js/modules/es.function.name', 'core-js/modules/es.regexp.exec', 'core-js/modules/es.string.match', 'core-js/modules/es.string.replace'], factory) :
13
+ (global = global || self, global.asp_SimpleBar = factory());
14
  }(this, function () { 'use strict';
15
 
16
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2012
  // Helper function to retrieve options from element attributes
2013
  var getOptions = function getOptions(obj) {
2014
  var options = Array.prototype.reduce.call(obj, function (acc, attribute) {
2015
+ var option = attribute.name.match(/data-asp_simplebar-(.+)/);
2016
 
2017
  if (option) {
2018
  var key = option[1].replace(/\W+(.)/g, function (x, chr) {
2075
 
2076
  var body = document.body;
2077
  var box = document.createElement('div');
2078
+ box.classList.add('asp_simplebar-hide-scrollbar');
2079
  body.appendChild(box);
2080
  var width = box.getBoundingClientRect().right;
2081
  body.removeChild(box);
2085
  return cachedScrollbarWidth;
2086
  }
2087
 
2088
+ var asp_SimpleBar =
2089
  /*#__PURE__*/
2090
  function () {
2091
+ function asp_SimpleBar(element, options) {
2092
  var _this = this;
2093
 
2094
  this.onScroll = function () {
2252
  var scrollPos = dragPerc * (contentSize - hostSize); // Fix browsers inconsistency on RTL
2253
 
2254
  if (_this.draggedAxis === 'x') {
2255
+ scrollPos = _this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? scrollPos - (trackSize + scrollbar.size) : scrollPos;
2256
+ scrollPos = _this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollPos : scrollPos;
2257
  }
2258
 
2259
  _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollOffsetAttr] = scrollPos;
2285
 
2286
  this.el = element;
2287
  this.minScrollbarWidth = 20;
2288
+ this.options = Object.assign({}, asp_SimpleBar.defaultOptions, {}, options);
2289
+ this.classNames = Object.assign({}, asp_SimpleBar.defaultOptions.classNames, {}, this.options.classNames);
2290
  this.axis = {
2291
  x: {
2292
  scrollOffsetAttr: 'scrollLeft',
2319
  };
2320
  this.removePreventClickId = null; // Don't re-instantiate over an existing one
2321
 
2322
+ if (asp_SimpleBar.instances.has(this.el)) {
2323
  return;
2324
  }
2325
 
2329
  this.onWindowResize = lodash_debounce(this.onWindowResize.bind(this), 64, {
2330
  leading: true
2331
  });
2332
+ asp_SimpleBar.getRtlHelpers = lodash_memoize(asp_SimpleBar.getRtlHelpers);
2333
  this.init();
2334
  }
2335
  /**
2344
  */
2345
 
2346
 
2347
+ asp_SimpleBar.getRtlHelpers = function getRtlHelpers() {
2348
  var dummyDiv = document.createElement('div');
2349
  dummyDiv.innerHTML = '<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';
2350
  var scrollbarDummyEl = dummyDiv.firstElementChild;
2351
  document.body.appendChild(scrollbarDummyEl);
2352
  var dummyContainerChild = scrollbarDummyEl.firstElementChild;
2353
  scrollbarDummyEl.scrollLeft = 0;
2354
+ var dummyContainerOffset = asp_SimpleBar.getOffset(scrollbarDummyEl);
2355
+ var dummyContainerChildOffset = asp_SimpleBar.getOffset(dummyContainerChild);
2356
  scrollbarDummyEl.scrollLeft = 999;
2357
+ var dummyContainerScrollOffsetAfterScroll = asp_SimpleBar.getOffset(dummyContainerChild);
2358
  return {
2359
  // determines if the scrolling is responding with negative values
2360
  isRtlScrollingInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left && dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left !== 0,
2363
  };
2364
  };
2365
 
2366
+ asp_SimpleBar.getOffset = function getOffset(el) {
2367
  var rect = el.getBoundingClientRect();
2368
  var elDocument = getElementDocument(el);
2369
  var elWindow = getElementWindow(el);
2373
  };
2374
  };
2375
 
2376
+ var _proto = asp_SimpleBar.prototype;
2377
 
2378
  _proto.init = function init() {
2379
  // Save a reference to the instance, so we know this DOM node has already been instancied
2380
+ asp_SimpleBar.instances.set(this.el, this);
2381
  this.initDOM();
2382
  this.scrollbarWidth = this.getScrollbarWidth();
2383
  this.recalculate();
2457
  this.axis.y.scrollbar.el.classList.add(this.classNames.visible);
2458
  }
2459
 
2460
+ this.el.setAttribute('data-asp_simplebar', 'init');
2461
  };
2462
 
2463
  _proto.initListeners = function initListeners() {
2588
  var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
2589
  var scrollbar = this.axis[axis].scrollbar;
2590
  var scrollOffset = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
2591
+ scrollOffset = axis === 'x' && this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollOffset : scrollOffset;
2592
  var scrollPourcent = scrollOffset / (contentSize - hostSize);
2593
  var handleOffset = ~~((trackSize - scrollbar.size) * scrollPourcent);
2594
+ handleOffset = axis === 'x' && this.isRtl && asp_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? handleOffset + (trackSize - scrollbar.size) : handleOffset;
2595
  scrollbar.el.style.transform = axis === 'x' ? "translate3d(" + handleOffset + "px, 0, 0)" : "translate3d(0, " + handleOffset + "px, 0)";
2596
  };
2597
 
2833
  this.onWindowResize.cancel();
2834
  }
2835
  /**
2836
+ * UnMount mutation observer and delete asp_SimpleBar instance from DOM element
2837
  */
2838
  ;
2839
 
2840
  _proto.unMount = function unMount() {
2841
  this.removeListeners();
2842
+ asp_SimpleBar.instances.delete(this.el);
2843
  }
2844
  /**
2845
  * Check if mouse is within bounds
2861
  })[0];
2862
  };
2863
 
2864
+ return asp_SimpleBar;
2865
  }();
2866
 
2867
+ asp_SimpleBar.defaultOptions = {
2868
  autoHide: true,
2869
  forceVisible: false,
2870
  clickOnTrack: true,
2871
  clickOnTrackSpeed: 40,
2872
  classNames: {
2873
+ contentEl: 'asp_simplebar-content',
2874
+ contentWrapper: 'asp_simplebar-content-wrapper',
2875
+ offset: 'asp_simplebar-offset',
2876
+ mask: 'asp_simplebar-mask',
2877
+ wrapper: 'asp_simplebar-wrapper',
2878
+ placeholder: 'asp_simplebar-placeholder',
2879
+ scrollbar: 'asp_simplebar-scrollbar',
2880
+ track: 'asp_simplebar-track',
2881
+ heightAutoObserverWrapperEl: 'asp_simplebar-height-auto-observer-wrapper',
2882
+ heightAutoObserverEl: 'asp_simplebar-height-auto-observer',
2883
+ visible: 'asp_simplebar-visible',
2884
+ horizontal: 'asp_simplebar-horizontal',
2885
+ vertical: 'asp_simplebar-vertical',
2886
+ hover: 'asp_simplebar-hover',
2887
+ dragging: 'asp_simplebar-dragging'
2888
  },
2889
  scrollbarMinSize: 25,
2890
  scrollbarMaxSize: 0,
2891
  timeout: 1000
2892
  };
2893
+ asp_SimpleBar.instances = new WeakMap();
2894
 
2895
+ asp_SimpleBar.initDOMLoadedElements = function () {
2896
  document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
2897
  window.removeEventListener('load', this.initDOMLoadedElements);
2898
+ Array.prototype.forEach.call(document.querySelectorAll('[data-asp_simplebar]'), function (el) {
2899
+ if (el.getAttribute('data-asp_simplebar') !== 'init' && !asp_SimpleBar.instances.has(el)) new asp_SimpleBar(el, getOptions(el.attributes));
2900
  });
2901
  };
2902
 
2903
+ asp_SimpleBar.removeObserver = function () {
2904
  this.globalObserver.disconnect();
2905
  };
2906
 
2907
+ asp_SimpleBar.initHtmlApi = function () {
2908
  this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this); // MutationObserver is IE11+
2909
 
2910
  if (typeof MutationObserver !== 'undefined') {
2911
  // Mutation observer to observe dynamically added elements
2912
+ this.globalObserver = new MutationObserver(asp_SimpleBar.handleMutations);
2913
  this.globalObserver.observe(document, {
2914
  childList: true,
2915
  subtree: true
2927
  }
2928
  };
2929
 
2930
+ asp_SimpleBar.handleMutations = function (mutations) {
2931
  mutations.forEach(function (mutation) {
2932
  Array.prototype.forEach.call(mutation.addedNodes, function (addedNode) {
2933
  if (addedNode.nodeType === 1) {
2934
+ if (addedNode.hasAttribute('data-asp_simplebar')) {
2935
+ !asp_SimpleBar.instances.has(addedNode) && document.documentElement.contains(addedNode) && new asp_SimpleBar(addedNode, getOptions(addedNode.attributes));
2936
  } else {
2937
+ Array.prototype.forEach.call(addedNode.querySelectorAll('[data-asp_simplebar]'), function (el) {
2938
+ if (el.getAttribute('data-asp_simplebar') !== 'init' && !asp_SimpleBar.instances.has(el) && document.documentElement.contains(el)) new asp_SimpleBar(el, getOptions(el.attributes));
2939
  });
2940
  }
2941
  }
2942
  });
2943
  Array.prototype.forEach.call(mutation.removedNodes, function (removedNode) {
2944
  if (removedNode.nodeType === 1) {
2945
+ if (removedNode.getAttribute('data-asp_simplebar') === 'init') {
2946
+ asp_SimpleBar.instances.has(removedNode) && !document.documentElement.contains(removedNode) && asp_SimpleBar.instances.get(removedNode).unMount();
2947
  } else {
2948
+ Array.prototype.forEach.call(removedNode.querySelectorAll('[data-asp_simplebar="init"]'), function (el) {
2949
+ asp_SimpleBar.instances.has(el) && !document.documentElement.contains(el) && asp_SimpleBar.instances.get(el).unMount();
2950
  });
2951
  }
2952
  }
2954
  });
2955
  };
2956
 
2957
+ asp_SimpleBar.getOptions = getOptions;
2958
  /**
2959
  * HTML API
2960
  * Called only in a browser env.
2961
  */
2962
 
2963
+ asp_SimpleBar.initHtmlApi();
2964
 
2965
+ return asp_SimpleBar;
2966
 
2967
  }));
js/min-scoped/jquery.ajaxsearchlite.min.js DELETED
@@ -1,4 +0,0 @@
1
- /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
- !function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){var c=[],l=c.slice,ki=c.concat,ni=c.push,di=c.indexOf,ct={},hf=ct.toString,nt=ct.hasOwnProperty,r={},gi="1.11.1",i=function(n,t){return new i.fn.init(n,t)},cf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,lf=/^-ms-/,af=/-([\da-z])/gi,vf=function(n,t){return t.toUpperCase()};i.fn=i.prototype={jquery:gi,constructor:i,selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:l.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ni,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(gi+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!i.isArray(n)&&n-parseFloat(n)>=0},isEmptyObject:function(n){for(var t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!nt.call(n,"constructor")&&!nt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(r.ownLast)for(t in n)return nt.call(n,t);for(t in n);return void 0===t||nt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ct[hf.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(lf,"ms-").replace(af,vf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ti(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(cf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ti(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ni.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(di)return di.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ti(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return ki.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=l.call(arguments,2),r=function(){return n.apply(t||this,u.concat(l.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ct["[object "+t+"]"]=t.toLowerCase()});function ti(n){var t=n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}var tt=function(n){var it,u,t,ht,oi,et,wt,si,ct,y,rt,p,e,l,a,o,g,lt,ot,f="sizzle"+-new Date,s=n.document,v=0,ki=0,hi=ni(),ci=ni(),li=ni(),bt=function(n,t){return n===t&&(rt=!0),0},ut="undefined",ai=1<<31,di={}.hasOwnProperty,w=[],gi=w.pop,nr=w.push,b=w.push,vi=w.slice,nt=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",yi=ft.replace("w","w#"),pi="\\["+i+"*("+ft+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+yi+"))|)"+i+"*\\]",dt=":("+ft+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+pi+")*)|.*)\\)|)",at=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),tr=new RegExp("^"+i+"*,"+i+"*"),ir=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),rr=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),ur=new RegExp(dt),fr=new RegExp("^"+yi+"$"),vt={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+pi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,st=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{b.apply(w=vi.call(s.childNodes),s.childNodes);w[s.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){nr.apply(n,vi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}function r(n,t,i,r){var w,h,c,v,k,y,d,l,nt,g;if((t?t.ownerDocument||t:s)!==e&&p(t),t=t||e,i=i||[],!n||"string"!=typeof n)return i;if(1!==(v=t.nodeType)&&9!==v)return[];if(a&&!r){if(w=sr.exec(n))if(c=w[1]){if(9===v){if(h=t.getElementById(c),!h||!h.parentNode)return i;if(h.id===c)return i.push(h),i}else if(t.ownerDocument&&(h=t.ownerDocument.getElementById(c))&&ot(t,h)&&h.id===c)return i.push(h),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((c=w[3])&&u.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i}if(u.qsa&&(!o||!o.test(n))){if(l=d=f,nt=t,g=9===v&&n,1===v&&"object"!==t.nodeName.toLowerCase()){for(y=et(n),(d=t.getAttribute("id"))?l=d.replace(hr,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",k=y.length;k--;)y[k]=l+yt(y[k]);nt=gt.test(n)&&ii(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,i,r)}function ni(){var i=[];function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}return n}function h(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||ai)-(~n.sourceIndex||ai);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function tt(n){return h(function(t){return t=+t,h(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!==ut&&n}u=r.support={};oi=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};p=r.setDocument=function(n){var v,r=n?n.ownerDocument||n:s,h=r.defaultView;return r!==e&&9===r.nodeType&&r.documentElement?(e=r,l=r.documentElement,a=!oi(r),h&&h!==h.top&&(h.addEventListener?h.addEventListener("unload",function(){p()},!1):h.attachEvent&&h.attachEvent("onunload",function(){p()})),u.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=c(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=st.test(r.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),u.getById=c(function(n){return l.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&a){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&a)return t.getElementsByClassName(n)},g=[],o=[],(u.qsa=st.test(r.querySelectorAll))&&(c(function(n){n.innerHTML="<select msallowclip=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowclip^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+kt+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(u.matchesSelector=st.test(lt=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&c(function(n){u.disconnectedMatch=lt.call(n,"div");lt.call(n,"[s!='']:x");g.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),v=st.test(l.compareDocumentPosition),ot=v||st.test(l.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===s&&ot(s,n)?-1:t===r||t.ownerDocument===s&&ot(s,t)?1:y?nt.call(y,n)-nt.call(y,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,h=t.parentNode,f=[n],e=[t];if(!o||!h)return n===r?-1:t===r?1:o?-1:h?1:y?nt.call(y,n)-nt.call(y,t):0;if(o===h)return wi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===s?-1:e[u]===s?1:0},r):e};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(rr,"='$1']"),!(!u.matchesSelector||!a||g&&g.test(t)||o&&o.test(t)))try{var i=lt.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,e,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),ot(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],r=f&&di.call(t.attrHandle,i.toLowerCase())?f(n,i,!a):void 0;return void 0!==r?r:u.attributes||!a?n.getAttribute(i):(r=n.getAttributeNode(i))&&r.specified?r.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(rt=!u.detectDuplicates,y=!u.sortStable&&n.slice(0),n.sort(bt),rt){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return y=null,n};ht=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ht(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=ht(r);return i};t=r.selectors={cacheLength:50,createPseudo:h,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[3]||n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&ur.test(t)&&(i=et(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[f]?u(i):u.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?h(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=nt.call(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:h(function(n){var i=[],r=[],t=wt(n.replace(at,"$1"));return t[f]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return r(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||ht(t)).indexOf(n)>-1}}),lang:h(function(n){return fr.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=a?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===l},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[0>i?i+t:i]}),even:tt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=cr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=lr(it);function bi(){}bi.prototype=t.filters=t.pseudos;t.setFilters=new bi;et=r.tokenize=function(n,i){var e,f,s,o,u,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=tr.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=ir.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),u=u.slice(e.length));for(o in t.filter)(f=vt[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):ci(n,h).slice(0)};function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[v,e];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===v&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var u=0,f=t.length;f>u;u++)r(n,t[u],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:pt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ei(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return nt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ct)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>i;i++)if(u=t.relative[n[i].type])e=[ri(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;o>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),o>r&&ei(n=n.slice(r)),o>r&&yt(n))}e.push(u)}return ui(e)}function vr(n,i){var u=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,a="0",g=o&&[],p=[],nt=ct,tt=o||f&&t.find.TAG("*",l),it=v+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(ct=s!==e&&s);a!==rt&&null!=(y=tt[a]);a++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(v=it)}u&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=a,u&&a!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)while(a--)g[a]||p[a]||(p[a]=gi.call(c));p=pt(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(v=it,ct=nt),g};return u?h(o):o}return wt=r.compile=function(n,t){var r,u=[],e=[],i=li[n+" "];if(!i){for(t||(t=et(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=li(n,vr(e,u));i.selector=n}return i},si=r.select=function(n,i,r,f){var s,e,o,l,v,c="function"==typeof n&&n,h=!f&&et(n=c.selector||n);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&a&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[l=o.type])break;if((v=t.find[l])&&(f=v(o.matches[0].replace(k,d),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&yt(e),!n)return b.apply(r,f),r;break}}}return(c||wt(n,h))(f,i,!a,r,gt.test(n)&&ii(i.parentNode)||i),r},u.sortStable=f.split("").sort(bt).join("")===f,u.detectDuplicates=!!rt,p(),u.sortDetached=c(function(n){return 1&n.compareDocumentPosition(e.createElement("div"))}),c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r}(n);i.find=tt;i.expr=tt.selectors;i.expr[":"]=i.expr.pseudos;i.unique=tt.uniqueSort;i.text=tt.getText;i.isXMLDoc=tt.isXML;i.contains=tt.contains;var nr=i.expr.match.needsContext,tr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,yf=/^.[^:#\[\.,]*$/;function ii(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(yf.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ii(this,n||[],!1))},not:function(n){return this.pushStack(ii(this,n||[],!0))},is:function(n){return!!ii(this,"string"==typeof n&&nr.test(n)?i(n):n||[],!1).length}});var ft,u=n.document,pf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,wf=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:pf.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||ft).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),tr.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(f=u.getElementById(r[2]),f&&f.parentNode){if(f.id!==r[2])return ft.find(n);this.length=1;this[0]=f}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof ft.ready?ft.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};wf.prototype=i.fn;ft=i(u);var bf=/^(?:parents|prev(?:Until|All))/,kf={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var f=[],u=n[t];u&&9!==u.nodeType&&(void 0===r||1!==u.nodeType||!i(u).is(r));)1===u.nodeType&&f.push(u),u=u[t];return f},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=nr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});function ir(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ir(n,"nextSibling")},prev:function(n){return ir(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(kf[n]||(f=i.unique(f)),bf.test(n)&&(f=f.reverse())),this.pushStack(f)}});var h=/\S+/g,rr={};function df(n){var t=rr[n]={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}i.Callbacks=function(n){n="string"==typeof n?rr[n]||df(n):i.extend({},n);var o,u,h,f,e,c,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});var lt;i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!u.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(lt.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready")))}}});function ur(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",a,!1),n.removeEventListener("load",a,!1)):(u.detachEvent("onreadystatechange",a),n.detachEvent("onload",a))}function a(){(u.addEventListener||"load"===event.type||"complete"===u.readyState)&&(ur(),i.ready())}i.ready.promise=function(t){if(!lt)if(lt=i.Deferred(),"complete"===u.readyState)setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",a,!1),n.addEventListener("load",a,!1);else{u.attachEvent("onreadystatechange",a);n.attachEvent("onload",a);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(n){return setTimeout(f,50)}ur();i.ready()}}()}return lt.promise(t)};var s="undefined";for(var gf in i(r))break;r.ownLast="0"!==gf;r.inlineBlockNeedsLayout=!1;i(function(){var f,t,n,i;n=u.getElementsByTagName("body")[0];n&&n.style&&(t=u.createElement("div"),i=u.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==s&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(i))}),function(){var n=u.createElement("div");if(null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}}n=null}();i.acceptData=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t};var ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/([A-Z])/g;function fr(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(te,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ne.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function ri(n){for(var t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function er(n,t,r,u){if(i.acceptData(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),("object"==typeof t||"function"==typeof t)&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function or(n,t,u){if(i.acceptData(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!ri(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,ri(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=null)}}}i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ri(n)},data:function(n,t,i){return er(n,t,i)},removeData:function(n,t){return or(n,t)},_data:function(n,t,i){return er(n,t,i,!0)},_removeData:function(n,t){return or(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),fr(r,u,e[u])));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?fr(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}});var at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,p=["Top","Right","Bottom","Left"],et=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},w=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},ui=/^(?:checkbox|radio)$/i;!function(){var t=u.createElement("input"),n=u.createElement("div"),i=u.createDocumentFragment();if(n.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",r.leadingWhitespace=3===n.firstChild.nodeType,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,i.appendChild(n),n.innerHTML="<input type='radio' checked='checked' name='t'/>",r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!0,n.attachEvent&&(n.attachEvent("onclick",function(){r.noCloneEvent=!1}),n.cloneNode(!0).click()),null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(f){r.deleteExpando=!1}}}(),function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t+"Bubbles"]=i in n)||(f.setAttribute(i,"t"),r[t+"Bubbles"]=f.attributes[i].expando===!1);f=null}();var fi=/^(?:input|select|textarea)$/i,ie=/^key/,re=/^(?:mouse|pointer|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;function vt(){return!0}function it(){return!1}function cr(){try{return u.activeElement}catch(n){}}i.event={global:{},add:function(n,t,r,u,f){var w,y,b,p,o,c,l,a,e,k,d,v=i._data(n);if(v){for(r.handler&&(p=r,r=p.handler,f=p.selector),r.guid||(r.guid=i.guid++),(y=v.events)||(y=v.events={}),(c=v.handle)||(c=v.handle=function(n){if(typeof i!==s&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(c.elem,arguments)},c.elem=n),t=(t||"").match(h)||[""],b=t.length;b--;)w=hr.exec(t[b])||[],e=d=w[1],k=(w[2]||"").split(".").sort(),e&&(o=i.event.special[e]||{},e=(f?o.delegateType:o.bindType)||e,o=i.event.special[e]||{},l=i.extend({type:e,origType:d,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:k.join(".")},p),(a=y[e])||(a=y[e]=[],a.delegateCount=0,o.setup&&o.setup.call(n,u,k,c)!==!1||(n.addEventListener?n.addEventListener(e,c,!1):n.attachEvent&&n.attachEvent("on"+e,c))),o.add&&(o.add.call(n,l),l.handler.guid||(l.handler.guid=r.guid)),f?a.splice(a.delegateCount++,0,l):a.push(l),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,s,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(s=hr.exec(t[p])||[],e=k=s[1],w=(s[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],s=s[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||s&&!s.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=nt.call(t,"type")?t.type:t,v=nt.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!sr.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,sr.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&i.acceptData(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&i.acceptData(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,f,t,r,o,s=[],h=l.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var f,e,u,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],o=0;s>o;o++)e=t[o],f=e.selector+" ",void 0===u[f]&&(u[f]=e.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(e);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=re.test(r)?this.mouseHooks:ie.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===cr()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===s&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?vt:it):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=vt;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=vt;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=vt;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?r.form:void 0;t&&!i._data(t,"submitBubbles")&&(i.event.add(t,"submit._submit",function(n){n._submit_bubble=!0}),i._data(t,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.changeBubbles||(i.event.special.change={setup:function(){return fi.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;fi.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!fi.test(this.nodeName)}});r.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,r,u,f){var o,e;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=it;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});function lr(n){var i=ar.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}var ar="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ue=/ jQuery\d+="(?:null|\d+)"/g,vr=new RegExp("<(?:"+ar+")[\\s/>]","i"),ei=/^\s+/,yr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,pr=/<([\w:]+)/,wr=/<tbody/i,fe=/<|&#?\w+;/,ee=/<(?:script|style|link)/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,br=/^$|\/(?:java|ecma)script/i,se=/^true\/(.*)/,he=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,o={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},ce=lr(u),oi=ce.appendChild(u.createElement("div"));o.optgroup=o.option;o.tbody=o.tfoot=o.colgroup=o.caption=o.thead;o.th=o.td;function f(n,t){var e,u,o=0,r=typeof n.getElementsByTagName!==s?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!==s?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[o]);o++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function le(n){ui.test(n.type)&&(n.defaultChecked=n.checked)}function kr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function dr(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function gr(n){var t=se.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function si(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function nu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function ae(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(dr(t).text=n.text,gr(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&ui.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:("input"===u||"textarea"===u)&&(t.defaultValue=n.defaultValue)}}i.extend({clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!vr.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(oi.innerHTML=n.outerHTML,oi.removeChild(s=oi.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&ae(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)nu(c,e[o]);else nu(n,s);return e=f(s,"script"),e.length>0&&si(e,!l&&f(n,"script")),e=h=c=null,s},buildFragment:function(n,t,u,e){for(var c,s,b,h,p,w,a,k=n.length,v=lr(t),l=[],y=0;k>y;y++)if(s=n[y],s||0===s)if("object"===i.type(s))i.merge(l,s.nodeType?[s]:s);else if(fe.test(s)){for(h=h||v.appendChild(t.createElement("div")),p=(pr.exec(s)||["",""])[1].toLowerCase(),a=o[p]||o._default,h.innerHTML=a[1]+s.replace(yr,"<$1><\/$2>")+a[2],c=a[0];c--;)h=h.lastChild;if(!r.leadingWhitespace&&ei.test(s)&&l.push(t.createTextNode(ei.exec(s)[0])),!r.tbody)for(s="table"!==p||wr.test(s)?"<table>"!==a[1]||wr.test(s)?0:h:h.firstChild,c=s&&s.childNodes.length;c--;)i.nodeName(w=s.childNodes[c],"tbody")&&!w.childNodes.length&&s.removeChild(w);for(i.merge(l,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=v.lastChild}else l.push(t.createTextNode(s));for(h&&v.removeChild(h),r.appendChecked||i.grep(f(l,"input"),le),y=0;s=l[y++];)if((!e||-1===i.inArray(s,e))&&(b=i.contains(s.ownerDocument,s),h=f(v.appendChild(s),"script"),b&&si(h),u))for(c=0;s=h[c++];)br.test(s.type||"")&&u.push(s);return h=null,v},cleanData:function(n,t){for(var u,e,f,o,a=0,h=i.expando,l=i.cache,v=r.deleteExpando,y=i.event.special;null!=(u=n[a]);a++)if((t||i.acceptData(u))&&(f=u[h],o=f&&l[f])){if(o.events)for(e in o.events)y[e]?i.event.remove(u,e):i.removeEvent(u,e,o.handle);l[f]&&(delete l[f],v?delete u[h]:typeof u.removeAttribute!==s?u.removeAttribute(h):u[h]=null,c.push(f))}}});i.fn.extend({text:function(n){return w(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=kr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=kr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,u=0;null!=(r=e[u]);u++)t||1!==r.nodeType||i.cleanData(f(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&si(f(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return w(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(ue,""):void 0;if(!("string"!=typeof n||ee.test(n)||!r.htmlSerialize&&vr.test(n)||!r.leadingWhitespace&&ei.test(n)||o[(pr.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(yr,"<$1><\/$2>");try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(s){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(f(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=ki.apply([],n);var h,u,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||l>1&&"string"==typeof a&&!r.checkClone&&oe.test(a))return this.each(function(i){var r=p.eq(i);y&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(f(s,"script"),dr),c=o.length;l>e;e++)u=s,e!==w&&(u=i.clone(u,!0,!0),c&&i.merge(o,f(u,"script"))),t.call(this[e],u,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,gr),e=0;c>e;e++)u=o[e],br.test(u.type||"")&&!i._data(u,"globalEval")&&i.contains(v,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval((u.text||u.textContent||u.innerHTML||"").replace(he,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ni.apply(f,u.get());return this.pushStack(f)}});var ot,tu={};function iu(t,r){var f,u=i(r.createElement(t)).appendTo(r.body),e=n.getDefaultComputedStyle&&(f=n.getDefaultComputedStyle(u[0]))?f.display:i.css(u[0],"display");return u.detach(),e}function yt(n){var r=u,t=tu[n];return t||(t=iu(n,r),"none"!==t&&t||(ot=(ot||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ot[0].contentWindow||ot[0].contentDocument).document,r.write(),r.close(),t=iu(n,r),ot.detach()),tu[n]=t),t}!function(){var n;r.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,r;return i=u.getElementsByTagName("body")[0],i&&i.style?(t=u.createElement("div"),r=u.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),typeof t.style.zoom!==s&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(u.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(r),n):void 0}}();var ru=/^margin/,pt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),b,k,ve=/^(top|right|bottom|left)$/;n.getComputedStyle?(b=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)},k=function(n,t,r){var e,o,s,u,f=n.style;return r=r||b(n),u=r?r.getPropertyValue(t)||r[t]:void 0,r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),pt.test(u)&&ru.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0===u?u:u+""}):u.documentElement.currentStyle&&(b=function(n){return n.currentStyle},k=function(n,t,i){var o,f,e,r,u=n.style;return i=i||b(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!ve.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});function uu(n,t){return{get:function(){var i=n();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var f,t,l,o,s,e,h;if(f=u.createElement("div"),f.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",l=f.getElementsByTagName("a")[0],t=l&&l.style){t.cssText="float:left;opacity:.5";r.opacity="0.5"===t.opacity;r.cssFloat=!!t.cssFloat;f.style.backgroundClip="content-box";f.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===f.style.backgroundClip;r.boxSizing=""===t.boxSizing||""===t.MozBoxSizing||""===t.WebkitBoxSizing;i.extend(r,{reliableHiddenOffsets:function(){return null==e&&c(),e},boxSizingReliable:function(){return null==s&&c(),s},pixelPosition:function(){return null==o&&c(),o},reliableMarginRight:function(){return null==h&&c(),h}});function c(){var i,r,f,t;r=u.getElementsByTagName("body")[0];r&&r.style&&(i=u.createElement("div"),f=u.createElement("div"),f.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(f).appendChild(i),i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=s=!1,h=!0,n.getComputedStyle&&(o="1%"!==(n.getComputedStyle(i,null)||{}).top,s="4px"===(n.getComputedStyle(i,null)||{width:"4px"}).width,t=i.appendChild(u.createElement("div")),t.style.cssText=i.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",i.style.width="1px",h=!parseFloat((n.getComputedStyle(t,null)||{}).marginRight)),i.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",t=i.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===t[0].offsetHeight,e&&(t[0].style.display="",t[1].style.display="none",e=0===t[0].offsetHeight),r.removeChild(f))}}}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var hi=/alpha\([^)]*\)/i,ye=/opacity\s*=\s*([^)]*)/,pe=/^(none|table(?!-c[ea]).+)/,we=new RegExp("^("+at+")(.*)$","i"),be=new RegExp("^([+-])=("+at+")","i"),ke={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:"0",fontWeight:"400"},eu=["Webkit","O","Moz","ms"];function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&et(r)&&(e[u]=i._data(r,"olddisplay",yt(r.nodeName)))):(o=et(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=we.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=b(n),s=r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=k(n,t,e),(0>f||null==f)&&(f=n.style[t]),pt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+cu(n,t,u||(s?"border":"content"),o,e)+"px"}i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=k(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,h,e,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=ou(c,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===u)return e&&"get"in e&&void 0!==(o=e.get(n,!1,f))?o:c[t];if(h=typeof u,"string"===h&&(o=be.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),h="number"),null!=u&&u===u&&("number"!==h||i.cssNumber[s]||(u+="px"),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(c[t]="inherit"),!(e&&"set"in e&&void 0===(u=e.set(n,u,f)))))try{c[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=ou(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=k(n,t,u)),"normal"===f&&t in fu&&(f=fu[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return pe.test(i.css(n,"display"))&&0===n.offsetWidth?i.swap(n,ke,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,u,f){var e=f&&b(n);return hu(n,u,f?cu(n,t,f,r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return ye.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(hi,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=hi.test(f)?f.replace(hi,e):f+" "+e)}});i.cssHooks.marginRight=uu(r.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},k,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=b(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){et(this)?i(this).show():i(this).hide()})}});function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var r,t=e.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=e.prototype.init;i.fx.step={};var rt,wt,de=/^(?:toggle|show|hide)$/,au=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),ge=/queueHooks$/,bt=[no],st={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=au.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&au.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};function vu(){return setTimeout(function(){rt=void 0}),rt=i.now()}function kt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function yu(n,t,i){for(var u,f=(st[t]||[]).concat(st["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function no(n,t,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&et(n),e=i._data(n,"fxshow");u.queue||(s=i._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--;i.queue(n,"fx").length||s.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=i.css(n,"display"),b="none"===h?i._data(n,"olddisplay")||yt(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==yt(n.nodeName)?o.zoom=1:o.display="inline-block"));u.overflow&&(o.overflow="hidden",r.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0];o.overflowX=u.overflow[1];o.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],de.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?yt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=yu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function to(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function pu(n,t,r){var h,e,o=0,l=bt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=rt||vu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:rt||vu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(to(s,u.opts.specialEasing);l>o;o++)if(h=bt[o].call(u,n,s,u.opts))return h;return i.map(s,yu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}i.Animation=i.extend(pu,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],st[r]=st[r]||[],st[r].unshift(t)},prefilter:function(n,t){t?bt.unshift(n):bt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=pu(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&ge.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(kt(t,!0),n,i,u)}});i.each({slideDown:kt("show"),slideUp:kt("hide"),slideToggle:kt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(rt=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();rt=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){wt||(wt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(wt);wt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var n,t,f,i,e;t=u.createElement("div");t.setAttribute("className","t");t.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];f=u.createElement("select");e=f.appendChild(u.createElement("option"));n=t.getElementsByTagName("input")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value}();var io=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(io,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==u||(r.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ut,wu,v=i.expr.attrHandle,ci=/^(?:checked|selected)$/i,d=r.getSetAttribute,dt=r.input;i.fn.extend({attr:function(n,t){return w(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===s?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?wu:ut)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?dt&&d||!ci.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(d?r:u)},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}}});wu={set:function(n,t,r){return t===!1?i.removeAttr(n,r):dt&&d||!ci.test(r)?n.setAttribute(!d&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=v[t]||i.find.attr;v[t]=dt&&d||!ci.test(t)?function(n,t,i){var u,f;return i||(f=v[t],v[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,v[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});dt&&d||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ut&&ut.set(n,t,r)}});d||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},v.id=v.name=v.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},i.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});var ro=/^(?:input|select|textarea|button|object)$/i,uo=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ro.test(n.nodeName)||uo.test(n.nodeName)&&n.href?0:-1}}}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");var li=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(li," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(li," "):"")){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(h)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===s||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(li," ").indexOf(i)>=0)return!0;return!1}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var ai=i.now(),vi=/\?/,fo=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(fo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var g,y,eo=/#.*$/,bu=/([?&])_=[^&]*/,oo=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,so=/^(?:GET|HEAD)$/,ho=/^\/\//,ku=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,du={},yi={},gu="*/".concat("*");try{y=location.href}catch(ns){y=u.createElement("a");y.href="";y=y.href}g=ku.exec(y.toLowerCase())||[];function nf(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function tf(n,t,r,u){var f={},o=n===yi;function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}return e(t.dataTypes[0])||!f["*"]&&e("*")}function pi(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function co(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function lo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:y,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(g[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":gu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:nf(du),ajaxTransport:nf(yi),ajax:function(n,t){"object"==typeof n&&(t=n,n=void 0);t=t||{};var s,c,f,b,k,l,a,v,r=i.ajaxSetup({},t),o=r.context||r,d=r.context&&(o.nodeType||o.jquery)?i(o):i.event,nt=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!v)for(v={};t=oo.exec(b);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return a&&a.abort(t),w(0,t),this}};if(nt.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||y)+"").replace(eo,"").replace(ho,g[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(h)||[""],null==r.crossDomain&&(s=ku.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===g[1]&&s[2]===g[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(g[3]||("http:"===g[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),tf(du,r,t,u),2===e)return u;l=r.global;l&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!so.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(vi.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=bu.test(f)?f.replace(bu,"$1_="+ai++):f+(vi.test(f)?"&":"?")+"_="+ai++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+gu+"; q=0.01":""):r.accepts["*"]);for(c in r.headers)u.setRequestHeader(c,r.headers[c]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();ut="abort";for(c in{success:1,error:1,complete:1})u[c](r[c]);if(a=tf(yi,r,t,u)){u.readyState=1;l&&d.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(k=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;a.send(it,w)}catch(ft){if(!(2>e))throw ft;w(-1,ft)}}else w(-1,"No Transport");function w(n,t,s,h){var v,it,g,y,w,c=t;2!==e&&(e=2,k&&clearTimeout(k),a=void 0,b=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(y=co(r,u,s)),y=lo(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=y.state,it=y.data,g=y.error,v=!g)):(g=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?nt.resolveWith(o,[it,c,u]):nt.rejectWith(o,[u,c,g]),u.statusCode(p),p=void 0,l&&d.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:g]),tt.fireWith(o,[u,c]),l&&(d.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!r.reliableHiddenOffsets()&&"none"===(n.style&&n.style.display||i.css(n,"display"))};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var ao=/%20/g,vo=/\[\]$/,rf=/\r?\n/g,yo=/^(?:submit|button|image|reset|file)$/i,po=/^(?:input|select|textarea|keygen)/i;function wi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||vo.test(n)?u(n,i):wi(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)wi(n+"["+f+"]",t[f],r,u)}i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)wi(r,n[r],t,f);return u.join("&").replace(ao,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&po.test(this.nodeName)&&!yo.test(n)&&(this.checked||!ui.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(rf,"\r\n")}}):{name:t.name,value:r.replace(rf,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&uf()||bo()}:uf;var wo=0,gt={},ht=i.ajaxSettings.xhr();n.ActiveXObject&&i(n).on("unload",function(){for(var n in gt)gt[n](void 0,!0)});r.cors=!!ht&&"withCredentials"in ht;ht=r.ajax=!!ht;ht&&i.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var t;return{send:function(r,u){var e,f=n.xhr(),o=++wo;if(f.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(e in n.xhrFields)f[e]=n.xhrFields[e];n.mimeType&&f.overrideMimeType&&f.overrideMimeType(n.mimeType);n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(e in r)void 0!==r[e]&&f.setRequestHeader(e,r[e]+"");f.send(n.hasContent&&n.data||null);t=function(r,e){var s,c,h;if(t&&(e||4===f.readyState))if(delete gt[o],t=void 0,f.onreadystatechange=i.noop,e)4!==f.readyState&&f.abort();else{h={};s=f.status;"string"==typeof f.responseText&&(h.text=f.responseText);try{c=f.statusText}catch(l){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=h.text?200:404}h&&u(s,c,h,f.getAllResponseHeaders())};n.async?4===f.readyState?setTimeout(t):f.onreadystatechange=gt[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}});function uf(){try{return new n.XMLHttpRequest}catch(t){}}function bo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var ff=[],bi=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=ff.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(bi.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&bi.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(bi,"$1"+f):t.jsonp!==!1&&(t.url+=(vi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,ff.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")});i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=tr.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))};var ef=i.fn.load;i.fn.load=function(n,t,r){if("string"!=typeof n&&ef)return ef.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=i.trim(n.slice(e,n.length)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),f.length>0&&i.ajax({url:n,type:s,dataType:"html",data:t}).done(function(n){o=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,o||[n.responseText,t,n])}),this};i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length};var of=n.document.documentElement;function sf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}};i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?(typeof r.getBoundingClientRect!==s&&(u=r.getBoundingClientRect()),f=sf(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||of;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||of})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return w(this,function(n,u,f){var e=sf(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}});i.each(["top","left"],function(n,t){i.cssHooks[t]=uu(r.pixelPosition,function(n,r){if(r)return(r=k(n,t),pt.test(r)?i(n).position()[t]+"px":r)})});i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return w(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;"function"==typeof define&&define.amd&&define("asljQuery",[],function(){return i});var ko=n.jQuery,go=n.$;return i.noConflict=function(t){return n.$===i&&(n.$=go),t&&n.jQuery===i&&(n.asljQuery=ko),i},typeof t===s&&(n.asljQuery=n.$=i),i}),function(n){typeof n!="undefined"&&(n.extend({highlight:function(t,i,r,u,f){if(f=f==""?".exhghttt":f,t.nodeType===3){var c=t.data.normalize("NFD").replace(/[\u0300-\u036f]/g,""),e=c.match(i);if(e){var h=document.createElement(r||"span");if(h.className=u||"highlight",/\.|,|\s/.test(e[0].charAt(0)))var l=e.index+1;else var l=e.index;var o=t.splitText(l);o.splitText(e[1].length);var a=o.cloneNode(!0);return h.appendChild(a),o.parentNode.replaceChild(h,o),1}}else if(t.nodeType===1&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&!n(t).closest(f).length>0&&!(t.tagName===r.toUpperCase()&&t.className===u))for(var s=0;s<t.childNodes.length;s++)s+=n.highlight(t.childNodes[s],i,r,u,f);return 0}}),n.fn.unhighlight=function(t){var i={className:"highlight",element:"span"};return n.extend(i,t),this.find(i.element+"."+i.className).each(function(){var n=this.parentNode;n.replaceChild(this.firstChild,this);n.normalize()}).end()},n.fn.highlight=function(t,i){var r={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};if(n.extend(r,i),t.constructor===String&&(t=[t]),t=n.grep(t,function(n){return n!=""}),t=n.map(t,function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}),t.length==0)return this;var f=r.caseSensitive?"":"i",u="("+t.join("|")+")";r.wordsOnly&&(u="(?:,|^|\\s)"+u+"(?:,|$|\\s)");var e=new RegExp(u,f);return this.each(function(){n.highlight(this,e,r.element,r.className,r.excludeParents)})})}(asljQuery,asljQuery,window),function(n,t,i){(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t(require("core-js/modules/es.array.for-each"),require("core-js/modules/web.dom-collections.for-each"),require("core-js/modules/es.array.filter"),require("core-js/modules/es.array.iterator"),require("core-js/modules/es.object.assign"),require("core-js/modules/es.object.to-string"),require("core-js/modules/es.parse-int"),require("core-js/modules/es.string.iterator"),require("core-js/modules/es.weak-map"),require("core-js/modules/web.dom-collections.iterator"),require("core-js/modules/es.array.reduce"),require("core-js/modules/es.function.name"),require("core-js/modules/es.regexp.exec"),require("core-js/modules/es.string.match"),require("core-js/modules/es.string.replace")):typeof define=="function"&&define.amd?define(["core-js/modules/es.array.for-each","core-js/modules/web.dom-collections.for-each","core-js/modules/es.array.filter","core-js/modules/es.array.iterator","core-js/modules/es.object.assign","core-js/modules/es.object.to-string","core-js/modules/es.parse-int","core-js/modules/es.string.iterator","core-js/modules/es.weak-map","core-js/modules/web.dom-collections.iterator","core-js/modules/es.array.reduce","core-js/modules/es.function.name","core-js/modules/es.regexp.exec","core-js/modules/es.string.match","core-js/modules/es.string.replace"],t):(n=n||self,n.asl_SimpleBar=t())})(this,function(){"use strict";var t=typeof globalThis!="undefined"?globalThis:typeof i!="undefined"?i:typeof global!="undefined"?global:typeof self!="undefined"?self:{},vt="Expected a function",yt=0/0,ir="[object Symbol]",rr=/^\s+|\s+$/g,ur=/^[-+]0x[0-9a-f]+$/i,fr=/^0b[01]+$/i,er=/^0o[0-7]+$/i,or=parseInt,sr=typeof t=="object"&&t&&t.Object===Object&&t,hr=typeof self=="object"&&self&&self.Object===Object&&self,cr=sr||hr||Function("return this")(),lr=Object.prototype,ar=lr.toString,vr=Math.max,yr=Math.min,rt=function(){return cr.Date.now()};function pr(n,t,i){var f,o,c,e,r,u,s=0,w=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(vt);t=pt(t)||0;p(i)&&(w=!!i.leading,h="maxWait"in i,c=h?vr(pt(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function d(n){return s=n,r=setTimeout(l,t),w?v(n):e}function g(n){var r=n-u,f=n-s,i=t-r;return h?yr(i,c-f):i}function b(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=rt();if(b(n))return k(n);r=setTimeout(l,g(n))}function k(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function nt(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function tt(){return r===undefined?e:k(rt())}function y(){var n=rt(),i=b(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return d(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=nt,y.flush=tt,y}function wr(n,t,i){var r=!0,u=!0;if(typeof n!="function")throw new TypeError(vt);return p(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),pr(n,t,{leading:r,maxWait:t,trailing:u})}function p(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function br(n){return!!n&&typeof n=="object"}function kr(n){return typeof n=="symbol"||br(n)&&ar.call(n)==ir}function pt(n){if(typeof n=="number")return n;if(kr(n))return yt;if(p(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=p(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(rr,"");var i=fr.test(n);return i||er.test(n)?or(n.slice(2),i?2:8):ur.test(n)?yt:+n}var wt=wr,dr="Expected a function",bt=0/0,gr="[object Symbol]",nu=/^\s+|\s+$/g,tu=/^[-+]0x[0-9a-f]+$/i,iu=/^0b[01]+$/i,ru=/^0o[0-7]+$/i,uu=parseInt,fu=typeof t=="object"&&t&&t.Object===Object&&t,eu=typeof self=="object"&&self&&self.Object===Object&&self,ou=fu||eu||Function("return this")(),su=Object.prototype,hu=su.toString,cu=Math.max,lu=Math.min,ut=function(){return ou.Date.now()};function au(n,t,i){var f,o,c,e,r,u,s=0,p=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(dr);t=kt(t)||0;ft(i)&&(p=!!i.leading,h="maxWait"in i,c=h?cu(kt(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function k(n){return s=n,r=setTimeout(l,t),p?v(n):e}function d(n){var r=n-u,f=n-s,i=t-r;return h?lu(i,c-f):i}function w(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=ut();if(w(n))return b(n);r=setTimeout(l,d(n))}function b(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function g(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function nt(){return r===undefined?e:b(ut())}function y(){var n=ut(),i=w(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return k(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=g,y.flush=nt,y}function ft(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function vu(n){return!!n&&typeof n=="object"}function yu(n){return typeof n=="symbol"||vu(n)&&hu.call(n)==gr}function kt(n){if(typeof n=="number")return n;if(yu(n))return bt;if(ft(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=ft(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(nu,"");var i=iu.test(n);return i||ru.test(n)?uu(n.slice(2),i?2:8):tu.test(n)?bt:+n}var dt=au,pu="Expected a function",gt="__lodash_hash_undefined__",wu="[object Function]",bu="[object GeneratorFunction]",ku=/^\[object .+?Constructor\]$/,du=typeof t=="object"&&t&&t.Object===Object&&t,gu=typeof self=="object"&&self&&self.Object===Object&&self,ni=du||gu||Function("return this")();function nf(n,t){return n==null?undefined:n[t]}function tf(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch(i){}return t}var rf=Array.prototype,uf=Function.prototype,ti=Object.prototype,et=ni["__core-js_shared__"],ii=function(){var n=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),ri=uf.toString,ot=ti.hasOwnProperty,ff=ti.toString,ef=RegExp("^"+ri.call(ot).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),of=rf.splice,sf=ui(ni,"Map"),a=ui(Object,"create");function f(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function hf(){this.__data__=a?a(null):{}}function cf(n){return this.has(n)&&delete this.__data__[n]}function lf(n){var t=this.__data__;if(a){var i=t[n];return i===gt?undefined:i}return ot.call(t,n)?t[n]:undefined}function af(n){var t=this.__data__;return a?t[n]!==undefined:ot.call(t,n)}function vf(n,t){var i=this.__data__;return i[n]=a&&t===undefined?gt:t,this}f.prototype.clear=hf;f.prototype["delete"]=cf;f.prototype.get=lf;f.prototype.has=af;f.prototype.set=vf;function h(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function yf(){this.__data__=[]}function pf(n){var t=this.__data__,i=w(t,n);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():of.call(t,i,1),!0}function wf(n){var t=this.__data__,i=w(t,n);return i<0?undefined:t[i][1]}function bf(n){return w(this.__data__,n)>-1}function kf(n,t){var i=this.__data__,r=w(i,n);return r<0?i.push([n,t]):i[r][1]=t,this}h.prototype.clear=yf;h.prototype["delete"]=pf;h.prototype.get=wf;h.prototype.has=bf;h.prototype.set=kf;function e(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function df(){this.__data__={hash:new f,map:new(sf||h),string:new f}}function gf(n){return b(this,n)["delete"](n)}function ne(n){return b(this,n).get(n)}function te(n){return b(this,n).has(n)}function ie(n,t){return b(this,n).set(n,t),this}e.prototype.clear=df;e.prototype["delete"]=gf;e.prototype.get=ne;e.prototype.has=te;e.prototype.set=ie;function w(n,t){for(var i=n.length;i--;)if(oe(n[i][0],t))return i;return-1}function re(n){if(!fi(n)||fe(n))return!1;var t=se(n)||tf(n)?ef:ku;return t.test(ee(n))}function b(n,t){var i=n.__data__;return ue(t)?i[typeof t=="string"?"string":"hash"]:i.map}function ui(n,t){var i=nf(n,t);return re(i)?i:undefined}function ue(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function fe(n){return!!ii&&ii in n}function ee(n){if(n!=null){try{return ri.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function st(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new TypeError(pu);var i=function(){var r=arguments,u=t?t.apply(this,r):r[0],f=i.cache;if(f.has(u))return f.get(u);var e=n.apply(this,r);return i.cache=f.set(u,e),e};return i.cache=new(st.Cache||e),i}st.Cache=e;function oe(n,t){return n===t||n!==n&&t!==t}function se(n){var t=fi(n)?ff.call(n):"";return t==wu||t==bu}function fi(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}var he=st,o=[],ce=function(){return o.some(function(n){return n.activeTargets.length>0})},le=function(){return o.some(function(n){return n.skippedTargets.length>0})},ei="ResizeObserver loop completed with undelivered notifications.",ae=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:ei}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=ei);i.dispatchEvent(n)},v;(function(n){n.BORDER_BOX="border-box";n.CONTENT_BOX="content-box";n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(v||(v={}));var s=function(n){return Object.freeze(n)},ve=function(){function n(n,t){this.inlineSize=n;this.blockSize=t;s(this)}return n}(),oi=function(){function n(n,t,i,r){return this.x=n,this.y=t,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,s(this)}return n.prototype.toJSON=function(){var n=this,t=n.x,i=n.y,r=n.top,u=n.right,f=n.bottom,e=n.left,o=n.width,s=n.height;return{x:t,y:i,top:r,right:u,bottom:f,left:e,width:o,height:s}},n.fromRect=function(t){return new n(t.x,t.y,t.width,t.height)},n}(),ht=function(n){return n instanceof SVGElement&&"getBBox"in n},si=function(n){if(ht(n)){var t=n.getBBox(),r=t.width,u=t.height;return!r&&!u}var i=n,f=i.offsetWidth,e=i.offsetHeight;return!(f||e||n.getClientRects().length)},hi=function(n){var t,i;if(n instanceof Element)return!0;var r=(i=(t=n)===null||t===void 0?void 0:t.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(r&&n instanceof r.Element)},ye=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},y=typeof i!="undefined"?i:{},k=new WeakMap,ci=/auto|scroll/,pe=/^tb|vertical/,we=/msie|trident/i.test(y.navigator&&y.navigator.userAgent),r=function(n){return parseFloat(n||"0")},c=function(n,t,i){return n===void 0&&(n=0),t===void 0&&(t=0),i===void 0&&(i=!1),new ve((i?t:n)||0,(i?n:t)||0)},li=s({devicePixelContentBoxSize:c(),borderBoxSize:c(),contentBoxSize:c(),contentRect:new oi(0,0,0,0)}),ai=function(n,t){if(t===void 0&&(t=!1),k.has(n)&&!t)return k.get(n);if(si(n))return k.set(n,li),li;var i=getComputedStyle(n),u=ht(n)&&n.ownerSVGElement&&n.getBBox(),a=!we&&i.boxSizing==="border-box",o=pe.test(i.writingMode||""),nt=!u&&ci.test(i.overflowY||""),tt=!u&&ci.test(i.overflowX||""),v=u?0:r(i.paddingTop),it=u?0:r(i.paddingRight),rt=u?0:r(i.paddingBottom),y=u?0:r(i.paddingLeft),ut=u?0:r(i.borderTopWidth),ft=u?0:r(i.borderRightWidth),et=u?0:r(i.borderBottomWidth),ot=u?0:r(i.borderLeftWidth),p=y+it,w=v+rt,h=ot+ft,l=ut+et,b=tt?n.offsetHeight-l-n.clientHeight:0,d=nt?n.offsetWidth-h-n.clientWidth:0,st=a?p+h:0,ct=a?w+l:0,f=u?u.width:r(i.width)-st-d,e=u?u.height:r(i.height)-ct-b,lt=f+p+d+h,at=e+w+b+l,g=s({devicePixelContentBoxSize:c(Math.round(f*devicePixelRatio),Math.round(e*devicePixelRatio),o),borderBoxSize:c(lt,at,o),contentBoxSize:c(f,e,o),contentRect:new oi(y,v,f,e)});return k.set(n,g),g},vi=function(n,t,i){var r=ai(n,i),u=r.borderBoxSize,f=r.contentBoxSize,e=r.devicePixelContentBoxSize;switch(t){case v.DEVICE_PIXEL_CONTENT_BOX:return e;case v.BORDER_BOX:return u;default:return f}},be=function(){function n(n){var t=ai(n);this.target=n;this.contentRect=t.contentRect;this.borderBoxSize=s([t.borderBoxSize]);this.contentBoxSize=s([t.contentBoxSize]);this.devicePixelContentBoxSize=s([t.devicePixelContentBoxSize])}return n}(),yi=function(n){if(si(n))return Infinity;for(var i=0,t=n.parentNode;t;)i+=1,t=t.parentNode;return i},ke=function(){var n=Infinity,i=[];o.forEach(function(t){if(t.activeTargets.length!==0){var r=[];t.activeTargets.forEach(function(t){var u=new be(t.target),i=yi(t.target);r.push(u);t.lastReportedSize=vi(t.target,t.observedBox);i<n&&(n=i)});i.push(function(){t.callback.call(t.observer,r,t.observer)});t.activeTargets.splice(0,t.activeTargets.length)}});for(var t=0,r=i;t<r.length;t++){var u=r[t];u()}return n},pi=function(n){o.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length);t.skippedTargets.splice(0,t.skippedTargets.length);t.observationTargets.forEach(function(i){i.isActive()&&(yi(i.target)>n?t.activeTargets.push(i):t.skippedTargets.push(i))})})},de=function(){var n=0;for(pi(n);ce();)n=ke(),pi(n);return le()&&ae(),n>0},ct,wi=[],ge=function(){return wi.splice(0).forEach(function(n){return n()})},no=function(n){if(!ct){var t=0,i=document.createTextNode("");new MutationObserver(function(){return ge()}).observe(i,{characterData:!0});ct=function(){i.textContent=""+(t?t--:t++)}}wi.push(n);ct()},to=function(n){no(function(){requestAnimationFrame(n)})},d=0,io=function(){return!!d},ro=250,uo={attributes:!0,characterData:!0,childList:!0,subtree:!0},bi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ki=function(n){return n===void 0&&(n=0),Date.now()+n},lt=!1,fo=function(){function n(){var n=this;this.stopped=!0;this.listener=function(){return n.schedule()}}return n.prototype.run=function(n){var t=this;if(n===void 0&&(n=ro),!lt){lt=!0;var i=ki(n);to(function(){var r=!1;try{r=de()}finally{if(lt=!1,n=i-ki(),!io())return;r?t.run(1e3):n>0?t.run(n):t.start()}})}},n.prototype.schedule=function(){this.stop();this.run()},n.prototype.observe=function(){var n=this,t=function(){return n.observer&&n.observer.observe(document.body,uo)};document.body?t():y.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),bi.forEach(function(t){return y.addEventListener(t,n.listener,!0)}))},n.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),bi.forEach(function(t){return y.removeEventListener(t,n.listener,!0)}),this.stopped=!0)},n}(),at=new fo,di=function(n){!d&&n>0&&at.start();d+=n;d||at.stop()},eo=function(n){return!ht(n)&&!ye(n)&&getComputedStyle(n).display==="inline"},oo=function(){function n(n,t){this.target=n;this.observedBox=t||v.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var n=vi(this.target,this.observedBox,!0);return(eo(this.target)&&(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize)?!0:!1},n}(),so=function(){function n(n,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=n;this.callback=t}return n}(),g=new WeakMap,gi=function(n,t){for(var i=0;i<n.length;i+=1)if(n[i].target===t)return i;return-1},nt=function(){function n(){}return n.connect=function(n,t){var i=new so(n,t);g.set(n,i)},n.observe=function(n,t,i){var r=g.get(n),u=r.observationTargets.length===0;gi(r.observationTargets,t)<0&&(u&&o.push(r),r.observationTargets.push(new oo(t,i&&i.box)),di(1),at.schedule())},n.unobserve=function(n,t){var i=g.get(n),r=gi(i.observationTargets,t),u=i.observationTargets.length===1;r>=0&&(u&&o.splice(o.indexOf(i),1),i.observationTargets.splice(r,1),di(-1))},n.disconnect=function(n){var i=this,t=g.get(n);t.observationTargets.slice().forEach(function(t){return i.unobserve(n,t.target)});t.activeTargets.splice(0,t.activeTargets.length)},n}(),ho=function(){function n(n){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof n!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");nt.connect(this,n)}return n.prototype.observe=function(n,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!hi(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");nt.observe(this,n,t)},n.prototype.unobserve=function(n){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!hi(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");nt.unobserve(this,n)},n.prototype.disconnect=function(){nt.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}(),tt=function(n){return Array.prototype.reduce.call(n,function(n,t){var r=t.name.match(/data-asl_simplebar-(.+)/);if(r){var i=r[1].replace(/\W+(.)/g,function(n,t){return t.toUpperCase()});switch(t.value){case"true":n[i]=!0;break;case"false":n[i]=!1;break;case undefined:n[i]=!0;break;default:n[i]=t.value}}return n},{})};function u(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?i:n.ownerDocument.defaultView}function it(n){return!n||!n.ownerDocument?document:n.ownerDocument}var l=null,nr=null;i.addEventListener("resize",function(){nr!==i.devicePixelRatio&&(nr=i.devicePixelRatio,l=null)});function tr(n){if(l===null){var i=it(n);if(typeof i=="undefined")return l=0;var r=i.body,t=i.createElement("div");t.classList.add("asl_simplebar-hide-scrollbar");r.appendChild(t);var u=t.getBoundingClientRect().right;r.removeChild(t);l=u}return l}var n=function(){function t(n,i){var r=this;(this.onScroll=function(){var n=u(r.el);r.scrollXTicking||(n.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0);r.scrollYTicking||(n.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x"));r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y"));r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x");r.showScrollbar("y")},this.onMouseMove=function(n){if(r.mouseX=n.clientX,r.mouseY=n.clientY,r.axis.x.isOverflowing||r.axis.x.forceVisible)r.onMouseMoveForAxis("x");if(r.axis.y.isOverflowing||r.axis.y.forceVisible)r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){if(r.onMouseMove.cancel(),r.axis.x.isOverflowing||r.axis.x.forceVisible)r.onMouseLeaveForAxis("x");if(r.axis.y.isOverflowing||r.axis.y.forceVisible)r.onMouseLeaveForAxis("y");r.mouseX=-1;r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth();r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect();r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect();r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1);r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(n){var t,i;if(r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(i=r.isWithinBounds(r.axis.y.track.rect)),(t||i)&&(n.preventDefault(),n.stopPropagation(),n.type==="mousedown")){if(t)if(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect))r.onDragStart(n,"x");else r.onTrackClick(n,"x");if(i)if(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect))r.onDragStart(n,"y");else r.onTrackClick(n,"y")}},this.drag=function(n){var u,f=r.axis[r.draggedAxis].track,e=f.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar,s=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],h=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);n.preventDefault();n.stopPropagation();u=r.draggedAxis==="y"?n.pageY:n.pageX;var c=u-f.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset,l=c/(e-o.size),i=l*(s-h);r.draggedAxis==="x"&&(i=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i-(e+o.size):i,i=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-i:i);r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=i},this.onEndDrag=function(n){var t=it(r.el),i=u(r.el);n.preventDefault();n.stopPropagation();r.el.classList.remove(r.classNames.dragging);t.removeEventListener("mousemove",r.drag,!0);t.removeEventListener("mouseup",r.onEndDrag,!0);r.removePreventClickId=i.setTimeout(function(){t.removeEventListener("click",r.preventClick,!0);t.removeEventListener("dblclick",r.preventClick,!0);r.removePreventClickId=null})},this.preventClick=function(n){n.preventDefault();n.stopPropagation()},this.el=n,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},i),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el))||(this.recalculate=wt(this.recalculate.bind(this),64),this.onMouseMove=wt(this.onMouseMove.bind(this),64),this.hideScrollbars=dt(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=dt(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=he(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var r=document.createElement("div");r.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"><\/div><\/div>';var n=r.firstElementChild;document.body.appendChild(n);var u=n.firstElementChild;n.scrollLeft=0;var f=t.getOffset(n),i=t.getOffset(u);n.scrollLeft=999;var e=t.getOffset(u);return{isRtlScrollingInverted:f.left!==i.left&&i.left-e.left!=0,isRtlScrollbarInverted:f.left!==i.left}};t.getOffset=function(n){var t=n.getBoundingClientRect(),i=it(n),r=u(n);return{top:t.top+(r.pageYOffset||i.documentElement.scrollTop),left:t.left+(r.pageXOffset||i.documentElement.scrollLeft)}};var n=t.prototype;return n.init=function(){t.instances.set(this.el,this);this.initDOM();this.scrollbarWidth=this.getScrollbarWidth();this.recalculate();this.initListeners()},n.initDOM=function(){var i=this;if(Array.prototype.filter.call(this.el.children,function(n){return n.classList.contains(i.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);this.maskEl.appendChild(this.offsetEl);this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);this.wrapperEl.appendChild(this.maskEl);this.wrapperEl.appendChild(this.placeholderEl);this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var n=document.createElement("div"),t=document.createElement("div");n.classList.add(this.classNames.track);t.classList.add(this.classNames.scrollbar);n.appendChild(t);this.axis.x.track.el=n.cloneNode(!0);this.axis.x.track.el.classList.add(this.classNames.horizontal);this.axis.y.track.el=n.cloneNode(!0);this.axis.y.track.el.classList.add(this.classNames.vertical);this.el.appendChild(this.axis.x.track.el);this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar);this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible));this.el.setAttribute("data-asl_simplebar","init")},n.initListeners=function(){var n=this,t=u(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.addEventListener("mousemove",this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);t.addEventListener("resize",this.onWindowResize);var i=!1,r=t.ResizeObserver||ho;this.resizeObserver=new r(function(){i&&n.recalculate()});this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl);t.requestAnimationFrame(function(){i=!0});this.mutationObserver=new t.MutationObserver(this.recalculate);this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},n.recalculate=function(){var f=u(this.el);this.elStyles=f.getComputedStyle(this.el);this.isRtl=this.elStyles.direction==="rtl";var e=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1,t=this.contentEl.offsetWidth,s=this.contentWrapperEl.offsetWidth,h=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var n=this.contentEl.scrollHeight,i=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%";this.placeholderEl.style.width=o?t+"px":"auto";this.placeholderEl.style.height=n+"px";var r=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=i>t;this.axis.y.isOverflowing=n>r;this.axis.x.isOverflowing=h==="hidden"?!1:this.axis.x.isOverflowing;this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing;this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0;this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0;this.hideNativeScrollbar();var l=this.axis.x.isOverflowing?this.scrollbarWidth:0,a=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&i>s-a;this.axis.y.isOverflowing=this.axis.y.isOverflowing&&n>r-l;this.axis.x.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");this.positionScrollbar("y");this.toggleTrackVisibility("x");this.toggleTrackVisibility("y")},n.getScrollbarSize=function(n){if(n===void 0&&(n="y"),!this.axis[n].isOverflowing)return 0;var r=this.contentEl[this.axis[n].scrollSizeAttr],i=this.axis[n].track.el[this.axis[n].offsetSizeAttr],t,u=i/r;return t=Math.max(~~(u*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},n.positionScrollbar=function(n){if(n===void 0&&(n="y"),this.axis[n].isOverflowing){var e=this.contentWrapperEl[this.axis[n].scrollSizeAttr],f=this.axis[n].track.el[this.axis[n].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[n].sizeAttr],10),u=this.axis[n].scrollbar,r=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];r=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-r:r;var s=r/(e-o),i=~~((f-u.size)*s);i=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i+(f-u.size):i;u.el.style.transform=n==="x"?"translate3d("+i+"px, 0, 0)":"translate3d(0, "+i+"px, 0)"}},n.toggleTrackVisibility=function(n){n===void 0&&(n="y");var t=this.axis[n].track.el,i=this.axis[n].scrollbar.el;this.axis[n].isOverflowing||this.axis[n].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[n].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[n].overflowAttr]="hidden");i.style.display=this.axis[n].isOverflowing?"block":"none"},n.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0;this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},n.onMouseMoveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.rect=this.axis[n].track.el.getBoundingClientRect();this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var t=this.isWithinBounds(this.axis[n].scrollbar.rect);t?this.axis[n].scrollbar.el.classList.add(this.classNames.hover):this.axis[n].scrollbar.el.classList.remove(this.classNames.hover);this.isWithinBounds(this.axis[n].track.rect)?(this.showScrollbar(n),this.axis[n].track.el.classList.add(this.classNames.hover)):this.axis[n].track.el.classList.remove(this.classNames.hover)},n.onMouseLeaveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.el.classList.remove(this.classNames.hover);this.axis[n].scrollbar.el.classList.remove(this.classNames.hover)},n.showScrollbar=function(n){n===void 0&&(n="y");var t=this.axis[n].scrollbar.el;this.axis[n].isVisible||(t.classList.add(this.classNames.visible),this.axis[n].isVisible=!0);this.options.autoHide&&this.hideScrollbars()},n.onDragStart=function(n,t){t===void 0&&(t="y");var i=it(this.el),r=u(this.el),f=this.axis[t].scrollbar,e=t==="y"?n.pageY:n.pageX;this.axis[t].dragOffset=e-f.rect[this.axis[t].offsetAttr];this.draggedAxis=t;this.el.classList.add(this.classNames.dragging);i.addEventListener("mousemove",this.drag,!0);i.addEventListener("mouseup",this.onEndDrag,!0);this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.onTrackClick=function(n,t){var r=this;if(t===void 0&&(t="y"),this.options.clickOnTrack){var e=u(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var l=this.axis[t].scrollbar,o=l.rect[this.axis[t].offsetAttr],s=parseInt(this.elStyles[this.axis[t].sizeAttr],10),i=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],a=t==="y"?this.mouseY-o:this.mouseX-o,h=a<0?-1:1,c=h===-1?i-s:i+s,f=function f(){if(h===-1){if(i>c){var n;i-=r.options.clickOnTrackSpeed;r.contentWrapperEl.scrollTo((n={},n[r.axis[t].offsetAttr]=i,n));e.requestAnimationFrame(f)}}else if(i<c){var u;i+=r.options.clickOnTrackSpeed;r.contentWrapperEl.scrollTo((u={},u[r.axis[t].offsetAttr]=i,u));e.requestAnimationFrame(f)}};f()}},n.getContentElement=function(){return this.contentEl},n.getScrollElement=function(){return this.contentWrapperEl},n.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:tr(this.el)}catch(n){return tr(this.el)}},n.removeListeners=function(){var n=this,t=u(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll);t.removeEventListener("resize",this.onWindowResize);this.mutationObserver&&this.mutationObserver.disconnect();this.resizeObserver&&this.resizeObserver.disconnect();this.recalculate.cancel();this.onMouseMove.cancel();this.hideScrollbars.cancel();this.onWindowResize.cancel()},n.unMount=function(){this.removeListeners();t.instances.delete(this.el)},n.isWithinBounds=function(n){return this.mouseX>=n.left&&this.mouseX<=n.left+n.width&&this.mouseY>=n.top&&this.mouseY<=n.top+n.height},n.findChild=function(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;return Array.prototype.filter.call(n.children,function(n){return i.call(n,t)})[0]},t}();return n.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"asl_simplebar-content",contentWrapper:"asl_simplebar-content-wrapper",offset:"asl_simplebar-offset",mask:"asl_simplebar-mask",wrapper:"asl_simplebar-wrapper",placeholder:"asl_simplebar-placeholder",scrollbar:"asl_simplebar-scrollbar",track:"asl_simplebar-track",heightAutoObserverWrapperEl:"asl_simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"asl_simplebar-height-auto-observer",visible:"asl_simplebar-visible",horizontal:"asl_simplebar-horizontal",vertical:"asl_simplebar-vertical",hover:"asl_simplebar-hover",dragging:"asl_simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},n.instances=new WeakMap,n.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);i.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll("[data-asl_simplebar]"),function(t){t.getAttribute("data-asl_simplebar")==="init"||n.instances.has(t)||new n(t,tt(t.attributes))})},n.removeObserver=function(){this.globalObserver.disconnect()},n.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);typeof MutationObserver!="undefined"&&(this.globalObserver=new MutationObserver(n.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0}));document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)?(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),i.addEventListener("load",this.initDOMLoadedElements)):i.setTimeout(this.initDOMLoadedElements)},n.handleMutations=function(t){t.forEach(function(t){Array.prototype.forEach.call(t.addedNodes,function(t){t.nodeType===1&&(t.hasAttribute("data-asl_simplebar")?!n.instances.has(t)&&document.documentElement.contains(t)&&new n(t,tt(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-asl_simplebar]"),function(t){t.getAttribute("data-asl_simplebar")!=="init"&&!n.instances.has(t)&&document.documentElement.contains(t)&&new n(t,tt(t.attributes))}))});Array.prototype.forEach.call(t.removedNodes,function(t){t.nodeType===1&&(t.getAttribute("data-asl_simplebar")==="init"?n.instances.has(t)&&!document.documentElement.contains(t)&&n.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-asl_simplebar="init"]'),function(t){n.instances.has(t)&&!document.documentElement.contains(t)&&n.instances.get(t).unMount()}))})})},n.getOptions=tt,n.initHtmlApi(),n})}(asljQuery,asljQuery,window),function(n,t,i){
3
- /*! Ajax Search Lite 4.6 js */
4
- typeof n!="undefined"&&function(t){var r,y=!0,c={init:function(n,i){var r=this;this.elem=i;this.$elem=t(i);r.searching=!1;r.o=t.extend({blocking:!1},n);r.n={};r.n.container=t(this.elem);r.o.rid=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.o.id=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.n.probox=t(".probox",r.n.container);r.n.proinput=t(".proinput",r.n.container);r.n.text=t(".proinput input.orig",r.n.container);r.n.textAutocomplete=t(".proinput input.autocomplete",r.n.container);r.n.loading=t(".proinput .loading",r.n.container);r.n.proloading=t(".proloading",r.n.container);r.n.proclose=t(".proclose",r.n.container);r.n.promagnifier=t(".promagnifier",r.n.container);r.n.prosettings=t(".prosettings",r.n.container);r.n.searchsettings=t("#ajaxsearchlitesettings"+r.o.rid);r.n.resultsDiv=t("#ajaxsearchliteres"+r.o.rid);r.n.hiddenContainer=t("#asl_hidden_data");r.n.aslItemOverlay=t(".asl_item_overlay",r.n.hiddenContainer);r.resizeTimeout=null;r.n.showmore=t(".showmore",r.n.resultsDiv);r.n.items=t(".item",r.n.resultsDiv);r.n.results=t(".results",r.n.resultsDiv);r.n.resdrg=t(".resdrg",r.n.resultsDiv);r.il={columns:3,itemsPerPage:6};r.post=null;r.postAuto=null;r.cleanUp();r.n.textAutocomplete.val("");r.o.resultitemheight=parseInt(r.o.resultitemheight);r.scroll={};r.savedScrollTop=0;r.savedContainerTop=0;r.is_scroll=typeof asl_SimpleBar!="undefined";typeof ASL.scrollbar!="undefined"&&ASL.scrollbar==0&&(r.is_scroll=!1);r.settScroll=null;r.n.resultsAppend=t("#wpdreams_asl_results_"+r.o.id);r.currentPage=1;r.isotopic=null;r.lastSuccesfulSearch="";r.lastSearchData={};r.triggerPrevState=!1;r.animation="bounceIn";switch(r.o.resultstype){case"vertical":r.animation=r.o.vresultanimation;break;default:r.animation=r.o.hresultanimation}return r.filterFns={number:function(){for(var n=t(this).parent();!n.hasClass("isotopic");)n=n.parent();var i=t(this).attr("data-itemnum"),u=r.currentPage,f=r.il.itemsPerPage;return parseInt(i,10)<f*u&&parseInt(i,10)>=f*(u-1)}},r.disableMobileScroll=!1,r.n.searchsettings.detach().appendTo("body"),r.o.resultsposition=="hover"?r.n.resultsDiv.detach().appendTo("body"):r.n.resultsAppend.length>0&&r.n.resultsDiv.detach().appendTo(r.n.resultsAppend),typeof ASL.resHTML=="undefined"&&(ASL.resHTML=r.n.resultsDiv.html()),typeof ASL.setHTML=="undefined"&&(ASL.setHTML=r.n.searchsettings.html()),t("fieldset",r.n.searchsettings).each(function(){t(".asl_option:not(.hiddend)",this).last().addClass("asl-o-last")}),ASL.js_retain_popstate==1&&r.initPrevState(),r.monitorTouchMove(),p()&&r.n.container.addClass("asl_msie"),r.initSettingsAnimations(),r.initResultsAnimations(),r.initEvents(),r.initAutop(),r.initEtc(),this},initPrevState:function(){var n=this;y&&r==null&&(r=localStorage.getItem("asl-"+e.encode(location.href)),r!=null&&(r=JSON.parse(r),r.settings=e.decode(r.settings)));r!=null&&typeof r.id!="undefined"&&r.id==n.o.id&&(r.phrase!=""&&(n.triggerPrevState=!0,n.n.text.val(r.phrase)),h(t("form",n.n.searchsettings))!=r.settings&&(n.triggerPrevState=!0,h(t("form",n.n.searchsettings),r.settings)));localStorage.removeItem("asl-"+e.encode(location.href));n.n.resultsDiv.on("click",".results .item",function(){var i=n.n.text.val();if(i!=""||n.settingsChanged){var r={id:n.o.id,phrase:i,settings:e.encode(h(t("form",n.n.searchsettings)))};localStorage.setItem("asl-"+e.encode(location.href),JSON.stringify(r))}})},monitorTouchMove:function(){var n=this,i=t("body");n.dragging=!1;i.on("touchmove",function(){n.dragging=!0});i.on("touchstart",function(){n.dragging=!1})},gaPageview:function(n){var u=this,t=u.gaGetTrackingID();if(typeof ASL.analytics=="undefined"||ASL.analytics.method!="pageview")return!1;if(ASL.analytics.string!=""){var r=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1,f=typeof gtag=="function"?gtag:!1;i.location.origin||(i.location.origin=i.location.protocol+"//"+i.location.hostname+(i.location.port?":"+i.location.port:""));var e=u.o.homeurl.replace(i.location.origin,"");f!==!1?t!==!1&&f("config",t,{page_path:e+ASL.analytics.string.replace("{asl_term}",n)}):r!==!1&&(t!==!1&&r("create",t,"auto"),r("send","pageview",{page:e+ASL.analytics.string.replace("{asl_term}",n),title:"Ajax Search"}))}},gaEvent:function(n,i){var u=this,f=u.gaGetTrackingID();if(typeof ASL.analytics=="undefined"||ASL.analytics.method!="event")return!1;var e=typeof gtag=="function"?gtag:!1,o=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1;if(e===!1&&o===!1)return!1;if(typeof ASL.analytics.event[n]!="undefined"&&ASL.analytics.event[n].active==1&&typeof"gtag"!="undefined"){var s={search_id:u.o.id,search_name:u.o.name,phrase:u.n.text.val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},r={event_category:ASL.analytics.event[n].category,event_label:ASL.analytics.event[n].label,value:ASL.analytics.event[n].value};i=t.extend(s,i);t.each(i,function(n,i){i=String(i).replace(/[\s\n\r]+/g," ").trim();t.each(r,function(t,u){var f=new RegExp("{"+n+"}","gmi");r[t]=u.replace(f,i)})});e===!1?(f!==!1&&o("create",f,"auto"),o("send","event",r.event_category,ASL.analytics.event[n].action,r.event_label,r.value)):(f!==!1&&(r.send_to=f),e("event",ASL.analytics.event[n].action,r))}},gaGetTrackingID:function(){var r=this,n=!1;if(typeof ASL.analytics=="undefined")return n;if(typeof ASL.analytics.tracking_id!="undefined"&&ASL.analytics.tracking_id!="")return ASL.analytics.tracking_id;var i=typeof gtag=="function"?gtag:!1;if(i!==!1&&typeof ga!="undefined"&&typeof ga.getAll!="undefined"){var t=!1;return ga.getAll().forEach(function(n){t=n.get("trackingId")}),t}return n},createVerticalScroll:function(){var n=this;n.is_scroll&&typeof n.scroll.recalculate=="undefined"&&(n.scroll=new asl_SimpleBar(n.n.results.get(0),{direction:t("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}))},initEvents:function(){var r=this;if(u()&&s())r.n.text.on("touchstart",function(){r.savedScrollTop=t(i).scrollTop();r.savedContainerTop=r.n.container.offset().top});r.n.text.on("click",function(){t(this).trigger("focus");r.gaEvent("focus")});r.n.text.on("focus input",function(){r.searching||(t(this).val()!=""?r.n.proclose.css("display","block"):r.n.proclose.css({display:"none"}))});t(r.n.text.parent()).on("submit",function(t){if(t.preventDefault(),u())if(r.o.redirect_on_enter){var i=n.Event("keyup");i.keyCode=i.which=13;r.n.text.trigger(i)}else r.o.redirectEnterTo=="ajax_search"&&(r.search(),document.activeElement.blur());else r.o.redirectEnterTo=="ajax_search"&&r.search()});r.n.resultsDiv.css({opacity:0});t(document).on("click touchend",function(){(r.hideSettings(),r.opened!=!1&&r.o.closeOnDocClick==1)&&r.hideResults()});r.n.proclose.on("click touchend",function(){r.n.text.val("");r.n.textAutocomplete.val("");r.hideResults();r.n.text.trigger("focus")});t(r.elem).on("click touchend",function(n){n.stopImmediatePropagation()});r.n.resultsDiv.on("click touchend",function(n){n.stopImmediatePropagation()});r.n.searchsettings.on("click touchend",function(n){n.stopImmediatePropagation()});r.n.prosettings.on("click",function(){r.n.prosettings.data("opened")==0?r.showSettings():r.hideSettings()});var o=r.n.container.parents().filter(function(){return t(this).css("position")=="fixed"});if((o.length>0||r.n.container.css("position")=="fixed")&&(r.n.resultsDiv.css("position")=="absolute"&&r.n.resultsDiv.css("position","fixed"),r.n.resultsDiv.css("z-index",99999999999),r.o.blocking||r.n.searchsettings.css("position","fixed")),u())t(i).on("orientationchange",function(){r.orientationChange();setTimeout(function(){r.orientationChange()},800)});else{var f;t(i).on("resize",function(){clearTimeout(f);f=setTimeout(function(){r.resize()},100)})}var e;t(i).on("scroll",function(){clearTimeout(e);e=setTimeout(function(){r.scrolling(!1)},400)});s()&&u()&&parseInt(r.n.text.css("font-size"))<16&&(r.n.text.data("fontSize",r.n.text.css("font-size")).css("font-size","16px"),r.n.textAutocomplete.css("font-size","16px"),t("<style>#ajaxsearchlite"+r.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}<\/style>").appendTo("head"));r.initNavigationEvent();r.initMagnifierEvent();r.initAutocompleteEvent();r.initFacetEvents()},initAutop:function(){var n=this;if(r!=null&&n.triggerPrevState)return n.search(),r=null,!1},initEtc:function(){var n=this,i=null;t("div.asl_option",n.n.searchsettings).on("mouseup touchend",function(r){if(r.preventDefault(),r.stopImmediatePropagation(),n.dragging)return!1;t('input[type="checkbox"]',this).prop("checked",!t('input[type="checkbox"]',this).prop("checked"));clearTimeout(i);var u=this;i=setTimeout(function(){t('input[type="checkbox"]',u).trigger("asl_chbx_change")},50)});t("div.asl_option label",n.n.searchsettings).on("click",function(n){n.preventDefault()});n.n.resultsDiv.on("click",".results .item",function(){n.gaEvent("result_click",{result_title:t(this).find("a.asl_res_url").text(),result_url:t(this).find("a.asl_res_url").attr("href")});n.o.singleHighlight==1&&(localStorage.removeItem("asl_phrase_highlight"),a(n.n.text.val())!=""&&localStorage.setItem("asl_phrase_highlight",JSON.stringify({phrase:a(n.n.text.val()),id:n.o.id})))});if(u()&&n.o.mobile.menu_selector!="")t(n.o.mobile.menu_selector).on("touchend",function(){var i=this;setTimeout(function(){var r=t(i).find("input.orig");r=r.length==0?t(i).next().find("input.orig"):r;r=r.length==0?t(i).parent().find("input.orig"):r;r=r.length==0?n.n.text:r;n.n.container.is(":visible")&&r.get(0).focus()},300)})},initNavigationEvent:function(){var n=this;t(n.n.resultsDiv).on("mouseenter",".item",function(){t(".item",n.n.resultsDiv).removeClass("hovered");t(this).addClass("hovered")});t(n.n.resultsDiv).on("mouseleave",".item",function(){t(".item",n.n.resultsDiv).removeClass("hovered")});t(document).on("keydown",function(r){if(i.event)var u=i.event.keyCode,o=i.event.type;else if(r)var u=r.which,o=r.type;if(t(".item",n.n.resultsDiv).length>0&&n.n.resultsDiv.css("display")!="none"){if(u==40||u==38){u==40&&(n.n.text.blur(),t(".item.hovered",n.n.resultsDiv).length==0?t(".item",n.n.resultsDiv).first().addClass("hovered"):t(".item.hovered",n.n.resultsDiv).removeClass("hovered").next(".item").addClass("hovered"));u==38&&(n.n.text.blur(),t(".item.hovered",n.n.resultsDiv).length==0?t(".item",n.n.resultsDiv).last().addClass("hovered"):t(".item.hovered",n.n.resultsDiv).removeClass("hovered").prev(".item").addClass("hovered"));r.stopPropagation();r.preventDefault();var f=n.is_scroll?t(n.scroll.getScrollElement()):n.n.results,e=n.n.resultsDiv.find(".resdrg .item.hovered");e.length==0&&(e=n.n.resultsDiv.children().first());f.animate({scrollTop:e.offset().top-f.offset().top+f.scrollTop()},{duration:120})}u==13&&t(".item.hovered",n.n.resultsDiv).length>0&&(r.stopPropagation(),r.preventDefault(),t(".item.hovered a.asl_res_url",n.n.resultsDiv).get(0).click())}})},initMagnifierEvent:function(){var n=this,r,f,u=!1;n.n.text.on("keyup",function(e){if(i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):e&&(n.keycode=e.which,n.ktype=e.type),n.keycode==13){if(clearTimeout(f),f=setTimeout(function(){u=!1},300),u)return!1;u=!0}var o=t(this).hasClass("orig");if(n.n.text.val().length>=n.o.charcount&&o&&n.ktype=="keyup"&&n.keycode==13){if(n.gaEvent("return"),n.o.redirect_on_enter==1)n.o.redirectEnterTo!="first_result"?n.doRedirectToResults(n.ktype):n.search();else{if(n.o.redirectEnterTo=="nothing")return!1;t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()==n.lastSuccesfulSearch&&n.resultsOpened||n.search()}clearTimeout(r)}});n.n.promagnifier.add(n.n.text).on("click input",function(u){i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):u&&(n.keycode=u.which,n.ktype=u.type);var f=t(this).hasClass("orig");if(n.n.text.val().length<n.o.charcount){n.n.proloading.css("display","none");n.hideResults();n.post!=null&&n.post.abort();clearTimeout(r);return}if(n.n.text.val().length>=n.o.charcount&&!f&&n.o.redirectonclick==1&&n.ktype=="click"&&n.o.redirectClickTo!="first_result"){n.doRedirectToResults(n.ktype);clearTimeout(r);return}if((!(n.keycode>=37)||!(n.keycode<=40))&&(!(n.keycode>=112)||!(n.keycode<=123))){if(f&&n.ktype=="click"||n.keycode==32){t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()==n.lastSuccesfulSearch&&(n.n.proclose.css("display","block"),n.resultsOpened||n.showResults());return}t(this).hasClass("orig")&&n.ktype=="click"||(f||n.ktype!="click"||n.gaEvent("magnifier"),n.o.trigger_on_click!=0||n.ktype!="click")&&(n.o.triggerontype!=0||n.ktype!="input")&&(!f||n.ktype!="input"||n.o.redirectEnterTo!="nothing")&&(f||n.ktype!="click"||n.o.redirectClickTo!="nothing")&&(n.post!=null&&n.post.abort(),clearTimeout(r),n.hideLoader(),r=setTimeout(function(){if(t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()!=n.lastSuccesfulSearch)n.search();else{if(n.n.proclose.css("display","block"),n.isRedirectToFirstResult())return n.doRedirectToFirstResult(),!1;n.resultsOpened||n.showResults()}},250))}})},initFacetEvents:function(){var n=this,i=null;if(n.o.trigger_on_facet_change==1){t("input[type!=checkbox], select",n.n.searchsettings).on("change slidechange",function(){n.n.text.val().length<n.o.charcount||(n.post!=null&&n.post.abort(),clearTimeout(i),i=setTimeout(function(){n.search()},50))});t("input[type=checkbox]",n.n.searchsettings).on("asl_chbx_change",function(){n.n.text.val().length<n.o.charcount||(n.post!=null&&n.post.abort(),n.gaEvent("facet_change",{option_label:t(this).closest("fieldset").find("legend").text(),option_value:t(this).closest(".asl_option").find(".asl_option_label").text()+(t(this).prop("checked")?"(checked)":"(unchecked)")}),clearTimeout(i),i=setTimeout(function(){n.search()},50))})}},isRedirectToFirstResult:function(){var n=this;return t(".asl_res_url",n.n.resultsDiv).length>0&&(n.o.redirectonclick==1&&n.ktype=="click"&&n.o.redirectClickTo=="first_result"||n.o.redirect_on_enter==1&&(n.ktype=="input"||n.ktype=="keyup")&&n.keycode==13&&n.o.redirectEnterTo=="first_result")?!0:!1},doRedirectToFirstResult:function(){var n=this,i;return i=n.ktype=="click"?n.o.redirectClickLoc:n.o.redirectEnterLoc,i=="same"?location.href=t(t(".asl_res_url",n.n.resultsDiv).get(0)).attr("href"):v(t(t(".asl_res_url",n.n.resultsDiv).get(0)).attr("href")),n.hideLoader(),n.hideResults(),!1},doRedirectToResults:function(n){var i=this,e=i.ktype=="click"?i.o.redirectClickTo:i.o.redirectEnterTo,u=n=="click"?i.o.redirectClickLoc:i.o.redirectEnterLoc;if(e=="results_page")var r="?s="+f(i.n.text.val());else if(e=="woo_results_page")var r="?post_type=product&s="+f(i.n.text.val());else var r=i.o.redirect_url.replace("{phrase}",f(i.n.text.val()));if(i.o.homeurl.indexOf("?")>1&&r.indexOf("?")===0&&(r=r.replace("?","&")),i.o.overridewpdefault)if(i.o.override_method=="post")o(i.o.homeurl+r,"post",{asl_active:1,p_asl_data:t("form",i.n.searchsettings).serialize()},u);else{var s=i.o.homeurl+r+"&asl_active=1&p_asid="+i.o.id+"&p_asl_data=1&"+t("form",i.n.searchsettings).serialize();u=="same"?location.href=s:v(s)}else o(i.o.homeurl+r,"post",{np_asl_data:t("form",i.n.searchsettings).serialize()},u);i.n.proloading.css("display","none");i.hideLoader();i.hideResults();i.post!=null&&i.post.abort()},destroy:function(){return this.each(function(){var n=t.extend({},this,c);t(i).unbind(n)})},searchfor:function(n){t(".proinput input",this).val(n).trigger("keyup")},initAutocompleteEvent:function(){var n=this;if(n.o.autocomplete.enabled==1&&!u())n.n.text.on("keyup",function(r){i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):r&&(n.keycode=r.which,n.ktype=r.type);var u=39;t("body").hasClass("rtl")&&(u=37);n.keycode==u&&n.n.textAutocomplete.val()!=""?(r.preventDefault(),n.n.text.val(n.n.textAutocomplete.val()),n.post!=null&&n.post.abort(),n.search()):(n.postAuto!=null&&n.postAuto.abort(),n.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var n=this,i=n.n.text.val();if(n.n.text.val()==""){n.n.textAutocomplete.val("");return}var r=n.n.textAutocomplete.val();(r==""||r.indexOf(i)!=0)&&(n.n.textAutocomplete.val(""),t.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:i,hl:n.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(r){r[1].length>0&&(response=r[1][0][0].replace(/(<([^>]+)>)/ig,""),response=t("<textarea />").html(response).text(),response=response.substr(i.length),n.n.textAutocomplete.val(i+response))}}))},search:function(){var n=this;if((!n.searching||!0)&&!(n.n.text.val().length<n.o.charcount)){n.searching=!0;n.n.proloading.css({display:"block"});n.n.proclose.css({display:"none"});var i={action:"ajaxsearchlite_search",aslp:n.n.text.val(),asid:n.o.id,options:t("form",n.n.searchsettings).serialize()};if(i=l("asl_search_data",i),JSON.stringify(i)===JSON.stringify(n.lastSearchData))return(n.resultsOpened||n.showResults(),n.hideLoader(),n.isRedirectToFirstResult())?(n.doRedirectToFirstResult(),!1):!1;n.gaEvent("search_start");n.post=t.post(ASL.ajaxurl,i,function(r){r=r.replace(/^\s*[\r\n]/gm,"");r=r.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1];r=l("asl_search_html",r);n.n.resdrg.html("");n.n.resdrg.html(r);t(".asl_keyword",n.n.resdrg).on("click",function(){n.n.text.val(t(this).html());t("input.orig",n.n.container).val(t(this).html()).trigger("keydown");t("form",n.n.container).trigger("submit","ajax");n.search()});if(n.n.items=t(".item",n.n.resultsDiv),n.gaEvent("search_end",{results_count:n.n.items.length}),n.gaPageview(n.n.text.val()),n.isRedirectToFirstResult())return n.doRedirectToFirstResult(),!1;if(n.hideLoader(),n.showResults(),n.scrollToResults(),n.lastSuccesfulSearch=t("form",n.n.searchsettings).serialize()+n.n.text.val().trim(),n.lastSearchData=i,n.n.items.length==0)n.n.showmore!=null&&n.n.showmore.css("display","none");else if(n.n.showmore!=null){n.n.showmore.css("display","block");t("a",n.n.showmore).off();t("a",n.n.showmore).on("click",function(){var r=n.o.redirectClickTo,i="?s="+f(n.n.text.val());i=r=="results_page"?"?s="+f(n.n.text.val()):r=="woo_results_page"?"?post_type=product&s="+f(n.n.text.val()):n.o.redirect_url.replace("{phrase}",f(n.n.text.val()));n.o.overridewpdefault?n.o.override_method=="post"?o(n.o.homeurl+i,"post",{asl_active:1,p_asl_data:t("form",n.n.searchsettings).serialize()}):location.href=n.o.homeurl+i+"&asl_active=1&p_asid="+n.o.id+"&p_asl_data=1&"+t("form",n.n.searchsettings).serialize():o(n.o.homeurl+i,"post",{np_asl_data:t("form",n.n.searchsettings).serialize()})})}},"text").fail(function(i,r){i.aborted||r=="abort"||(n.n.resdrg.html(""),n.n.resdrg.html('<div class="asl_nores">The request failed. Please check your connection! Status: '+i.status+"<\/div>"),n.n.items=t(".item",n.n.resultsDiv),n.hideLoader(),n.showResults(),n.scrollToResults())})}},showLoader:function(){var n=this;n.n.proloading.css({display:"block"})},hideLoader:function(){var n=this;n.n.proloading.css({display:"none"});n.n.results.css("display","")},showResultsBox:function(){var n=this;n.n.resultsDiv.css({display:"block",height:"auto"});n.n.items.addClass(n.animationOpacity);n.fixResultsPosition(!0);n.n.resultsDiv.css(n.resAnim.showCSS);n.n.resultsDiv.removeClass(n.resAnim.hideClass).addClass(n.resAnim.showClass)},showResults:function(){var n=this;n.createVerticalScroll();switch(n.o.resultstype){case"vertical":n.showVerticalResults();break;default:n.showHorizontalResults()}n.hideLoader();n.n.proclose.css({display:"block"});n.n.showmore!=null&&(n.n.items.length>0?n.n.showmore.css({display:"block"}):n.n.showmore.css({display:"none"}));n.is_scroll&&typeof n.scroll.recalculate!="undefined"&&setTimeout(function(){n.scroll.recalculate()},500);n.resultsOpened=!0},hideResults:function(){var n=this;if(!n.resultsOpened)return!1;n.n.resultsDiv.removeClass(n.resAnim.showClass).addClass(n.resAnim.hideClass);setTimeout(function(){n.n.resultsDiv.css(n.resAnim.hideCSS)},n.resAnim.duration);n.n.proclose.css({display:"none"});n.n.showmore!=null&&n.n.showmore.css({display:"none"});u()&&document.activeElement.blur();n.resultsOpened=!1},scrollToResults:function(){if(($this=this,this.o.scrollToResults==1)&&!this.$elem.parent().hasClass("asl_preview_data")){if($this.o.resultsposition=="hover")var n=$this.n.probox.offset().top-20;else var n=$this.n.resultsDiv.offset().top-20;t("#wpadminbar").length>0&&(n-=t("#wpadminbar").height());n=n<0?0:n;t("body, html").animate({scrollTop:n},{duration:500})}},createGroup:function(n){return"<div class='group'>"+n+"<\/div>"},showVerticalResults:function(){var n=this;if(n.showResultsBox(),n.n.items.length>0){var e=n.n.items.length<n.o.itemscount?n.n.items.length:n.o.itemscount,h=t(".group",n.n.resultsDiv);if(n.n.items.length<=n.o.itemscount)n.n.results.css({height:"auto"});else{n.n.results.css({height:30});n.resize();var i=0,r=0,u=0,f=0;n.n.items.each(function(){r+=t(this).outerHeight(!0);t(this).outerHeight(!0)>f&&(f=t(this).outerHeight(!0));i++});u=f*e;u>r&&(u=r);i=i<1?1:i;r=r/i*e;n.n.results.css({height:u})}if(n.resize(),n.n.items.last().addClass("asl_last_item"),n.o.highlight==1){var o=n.o.highlightwholewords==1?!0:!1;t("div.item",n.n.resultsDiv).highlight(n.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:o})}}n.resize();n.n.items.length==0&&n.n.results.css({height:"auto"});n.n.results.css({overflowY:"auto"});var s=n.is_scroll?t(n.scroll.getScrollElement()):n.n.results;s.scrollTop(0);n.addAnimation();n.fixResultsPosition(!0);n.searching=!1},addAnimation:function(){var i=this,n=0,r=1;i.n.items.each(function(){var u=this;setTimeout(function(){t(u).addClass(i.animation)},n);n=n+60;r++})},removeAnimation:function(){var n=this;n.n.items.each(function(){var i=this;t(i).removeClass(n.animation)})},initSettingsAnimations:function(){var n=this,t=300;n.settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":t+"ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:t};n.n.searchsettings.css({"-webkit-animation-duration":n.settAnim.duration+"ms","animation-duration":n.settAnim.duration+"ms"})},initResultsAnimations:function(){var t=this,n=300;t.resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":n+"ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:n};t.n.resultsDiv.css({"-webkit-animation-duration":n+"ms","animation-duration":n+"ms"})},showSettings:function(){var n=this;n.n.searchsettings.css(n.settAnim.showCSS);n.n.searchsettings.removeClass(n.settAnim.hideClass).addClass(n.settAnim.showClass);n.settScroll==null&&n.is_scroll&&(n.settScroll=[],t(".asl_sett_scroll",n.n.searchsettings).each(function(i){var r=this;setTimeout(function(){n.settScroll[i]=new asl_SimpleBar(t(r).get(0),{direction:t("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0})},20)}));n.n.prosettings.data("opened",1);n.fixSettingsPosition(!0)},hideSettings:function(){var n=this;n.n.searchsettings.removeClass(n.settAnim.showClass).addClass(n.settAnim.hideClass);setTimeout(function(){n.n.searchsettings.css(n.settAnim.hideCSS)},n.settAnim.duration);n.n.prosettings.data("opened",0)},cleanUp:function(){var n=this;t(".searchsettings",n.n.container).length>0&&(t("body>#ajaxsearchlitesettings"+n.o.rid).remove(),t("body>#ajaxsearchliteres"+n.o.rid).remove())},orientationChange:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},resize:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},scrolling:function(n){var t=this;t.fixSettingsPosition(n);t.fixResultsPosition(n)},fixTryThisPosition:function(){},fixResultsPosition:function(n){n=typeof n=="undefined"?!1:n;var i=this,f=i.n.resultsDiv.css("position");if(f=="fixed"||f=="absolute"){var e=0;if(t("body").css("position")!="static"&&(e=t("body").offset().top),n==!0||i.n.resultsDiv.css("visibility")=="visible"){var o=0,h=0,r=i.n.container.offset();if(f=="fixed"&&(e=0,o=t(document).scrollTop(),h=t(document).scrollLeft(),u()&&s()&&i.n.text.is(":focus")&&(o=i.savedScrollTop,r.top=i.savedContainerTop)),typeof r!="undefined"){var c=i.n.container.outerWidth()<240?240:i.n.container.outerWidth();i.n.resultsDiv.outerWidth(c);i.n.resultsDiv.css({top:r.top+i.n.container.outerHeight(!0)+10-e-o,left:r.left-h})}}}},fixSettingsPosition:function(n){n=typeof n=="undefined"?!1:n;var r=this,h=0;if(t("body").css("position")!="static"&&(h=t("body").offset().top),(n==!0||r.n.prosettings.data("opened")!=0)&&r.o.blocking!=!0){if(r.fixSettingsWidth(),r.n.prosettings.css("display")!="none")var e=r.n.prosettings;else var e=r.n.promagnifier;var f=e.offset(),o=0,c=0;r.n.searchsettings.css("position")=="fixed"&&(o=t(i).scrollTop(),c=t(i).scrollLeft(),u()&&s()&&r.n.text.is(":focus")&&(f.top=r.savedContainerTop,o=r.savedScrollTop));r.o.settingsimagepos=="left"?r.n.searchsettings.css({display:"block",top:f.top+e.height()-2-h-o,left:f.left-c}):r.n.searchsettings.css({display:"block",top:f.top+e.height()-2-h-o,left:f.left+e.width()-r.n.searchsettings.width()-c})}},fixSettingsWidth:function(){}};function l(){return typeof wp!="undefined"&&typeof wp.hooks!="undefined"&&typeof wp.hooks.applyFilters!="undefined"?wp.hooks.applyFilters.apply(null,arguments):typeof arguments[1]!="undefined"?arguments[1]:!1}function u(){try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}}function h(n,i){var r=n.find(":input").get();return arguments.length===1?(i={},t.each(r,function(){!this.name||this.disabled||!(this.checked||/select|textarea/i.test(this.nodeName)||/text/i.test(this.type))||t(this).hasClass("asl_datepicker_field")||t(this).hasClass("asl_datepicker")||(i[this.name]==undefined&&(i[this.name]=[]),i[this.name].push(t(this).val()))}),JSON.stringify(i)):(typeof i!="object"&&(i=JSON.parse(i)),t.each(r,function(){if(this.name&&i[this.name]){var n=i[this.name],r=t(this);if(Object.prototype.toString.call(n)!=="[object Array]"&&(n=[n]),this.type=="checkbox"||this.type=="radio"){for(var e=r.val(),f=!1,u=0;u<n.length;u++)if(n[u]==e){f=!0;break}r.attr("checked",f)}else r.val(n[0])}}),n)}function f(n){return encodeURIComponent(n).replace(/\%20/g,"+")}function a(n){return n.replace(/"|'/g,"")}function o(n,i,r,u){"use strict";var f;f=t("<form />",{action:n,method:i,style:"display: none;"});typeof r!="undefined"&&r!==null&&t.each(r,function(n,i){t("<input />",{type:"hidden",name:n,value:i}).appendTo(f)});typeof u!="undefined"&&u=="new"&&f.attr("target","_blank");f.appendTo("body").trigger("submit")}function v(n){t('<a href="'+n+'" target="_blank">').get(0).click()}function s(){return typeof i.navigator!="undefined"&&typeof i.navigator.userAgent!="undefined"?i.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1}function p(){var n=i.navigator.userAgent,t=n.indexOf("MSIE ");return t>0?!0:!1}typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});t.plugin=function(n,i){t.fn[n]=function(r){return this.each(function(){t.data(this,n)||t.data(this,n,Object.create(i).init(r,this))})}};t.plugin("ajaxsearchlite",c);var e={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var f="",o,t,i,h,c,s,r,u=0;for(n=e._utf8_encode(n);u<n.length;)o=n.charCodeAt(u++),t=n.charCodeAt(u++),i=n.charCodeAt(u++),h=o>>2,c=(o&3)<<4|t>>4,s=(t&15)<<2|i>>6,r=i&63,isNaN(t)?s=r=64:isNaN(i)&&(r=64),f=f+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(s)+this._keyStr.charAt(r);return f},decode:function(n){var t="",o,s,h,c,u,r,f,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)c=this._keyStr.indexOf(n.charAt(i++)),u=this._keyStr.indexOf(n.charAt(i++)),r=this._keyStr.indexOf(n.charAt(i++)),f=this._keyStr.indexOf(n.charAt(i++)),o=c<<2|u>>4,s=(u&15)<<4|r>>2,h=(r&3)<<6|f,t=t+String.fromCharCode(o),r!=64&&(t=t+String.fromCharCode(s)),f!=64&&(t=t+String.fromCharCode(h));return e._utf8_decode(t)},_utf8_encode:function(n){n=n.replace(/\r\n/g,"\n");for(var i="",r=0;r<n.length;r++){var t=n.charCodeAt(r);t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128))}return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}}}(n)}(asljQuery,asljQuery,window),function(n,t,i){if(i.ASL=typeof i.ASL!="undefined"?i.ASL:{},i.ASL.getScope=function(){if(typeof n!="undefined")if(typeof n.fn.ajaxsearchlite=="undefined")for(var t=n,r=n,u=0;u<10;u++)if(typeof t.fn.ajaxsearchlite=="undefined")t=n.noConflict(!0),console.log("ASL: executed one noconflict");else return t.fn.jquery!=r.fn.jquery&&(i.jQuery=i.$=r),t;else return n;return typeof i[ASL.js_scope]!="undefined"?i[ASL.js_scope]:!1},i.ASL.initialized=!1,i.ASL.initialize=function(n){function f(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}function e(n){var t="",s,h,c,l,e,r,o,i=0,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)l=u.indexOf(n.charAt(i++)),e=u.indexOf(n.charAt(i++)),r=u.indexOf(n.charAt(i++)),o=u.indexOf(n.charAt(i++)),s=l<<2|e>>4,h=(e&15)<<4|r>>2,c=(r&3)<<6|o,t=t+String.fromCharCode(s),r!=64&&(t=t+String.fromCharCode(h)),o!=64&&(t=t+String.fromCharCode(c));return f(t)}var i=this;if(typeof i.getScope=="undefined"||typeof i.version=="undefined")return!1;var t=i.getScope(),u=".asl_init_data";if(typeof ASL_INSTANCES!="undefined"&&Object.keys(ASL_INSTANCES).length>0?t.each(ASL_INSTANCES,function(n,i){return typeof i=="undefined"?!1:t("#ajaxsearchlite"+n).hasClass("hasASL")?!1:(t("#ajaxsearchlite"+n).addClass("hasASL"),t("#ajaxsearchlite"+n).ajaxsearchlite(i))}):(typeof n!="undefined"&&(u="div[id*=asl_init_id_"+n+"]"),t(u).each(function(){var i=t(this).attr("id").match(/^asl_init_id_(.*)/)[1],n=t(this).data("asldata");if(typeof n=="undefined"||(n=e(n),typeof n=="undefined"||n==""))return!1;var r=JSON.parse(n);return t("#ajaxsearchlite"+i).addClass("hasASL"),t("#ajaxsearchlite"+i).ajaxsearchlite(r)})),i.highlight.enabled){var r=localStorage.getItem("asl_phrase_highlight");localStorage.removeItem("asl_phrase_highlight");r!=null&&(r=JSON.parse(r),t.each(i.highlight.data,function(n,i){var f=i.selector!=""&&t(i.selector).length>0?i.selector:"article";if(f=t(f).length>0?f:"body",t(f).highlight(r.phrase,{element:"span",className:"asl_single_highlighted",wordsOnly:i.whole,excludeParents:".asl_w, .asl-try"}),i.scroll&&t(".asl_single_highlighted").length>0){var u=t(".asl_single_highlighted").offset().top-120;t("#wpadminbar").length>0&&(u-=t("#wpadminbar").height());u=u+i.scroll_offset;u=u<0?0:u;t("html").animate({scrollTop:u},{duration:500})}return!1}))}i.initialized=!0},i.ASL.fixClones=function(){var t=this;if((t.fix_duplicates=t.fix_duplicates||0,t.fix_duplicates==0)||typeof t.getScope=="undefined")return!1;var n=t.getScope(),i={};n(".asl_init_data").each(function(){var t=n(this).attr("id").match(/^asl_init_id_(.*)/)[1];typeof i[t]=="undefined"?i[t]={rid:t,id:t,count:1}:i[t].count++});n.each(i,function(i,r){r.count>1&&n(".asl_m_"+r.rid).each(function(i){if(i==0)return!0;for(var f=n(this).parent(),u=r.id;n("#ajaxsearchlite"+u).length!=0;)u++;n(this).attr("id","ajaxsearchlite"+u);n(this).removeClass("asl_m_"+r.rid).addClass("asl_m_"+u);n(this).removeClass("hasASL");n(".asl_r_"+r.rid,this).length==0&&n(".asl_r_"+r.rid).clone().appendTo(n(this));n(".asl_r_"+r.rid,this).attr("id","ajaxsearchliteres"+u);n(".asl_r_"+r.rid,this).attr("data-id",u);n(".asl_r_"+r.rid,this).removeClass("asl_r_"+r.rid).addClass("asl_r_"+u);typeof ASL.resHTML!="undefined"&&n("#ajaxsearchliteres"+u).html(ASL.resHTML);n(".asl_s_"+r.rid,this).length==0&&n(".asl_s_"+r.rid).length!=0&&n(".asl_s_"+r.rid).clone().appendTo(n(this));n(".asl_sb_"+r.rid,this).length==0&&n(".asl_sb_"+r.rid).length!=0&&n(".asl_sb_"+r.rid).clone().appendTo(n(this));n(".asl_s_"+r.rid,this).attr("id","ajaxsearchlitesettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitesettings"+u).html(ASL.setHTML);n(".asl_sb_"+r.rid,f).attr("id","ajaxsearchlitebsettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitebsettings"+u).html(ASL.setHTML);n(".asl_hidden_data",f).length>0&&n(".asl_hidden_data",f).attr("id","asl_hidden_data_"+u);n(".asl_init_data",f).length>0&&n(".asl_init_data",f).attr("id","asl_init_id_"+u);t.initialize(u)})})},i.ASL.ready=function(){var t=this,r=t.getScope(),u=null;if(r===!1)return!1;r(function(){var n,i=0;n=setInterval(function(){if(++i,i>20||t.initialized)return clearInterval(n),!1;console.log("tries",i);t.initialize();clearInterval(n)},200);t.initialize();setTimeout(function(){t.fixClones()},2500)});typeof ASL.detect_ajax!="undefined"&&ASL.detect_ajax==1&&r("body").bind("DOMSubtreeModified",function(){clearTimeout(u);u=setTimeout(function(){t.initialize()},500)});var f;r(i).on("resize",function(){clearTimeout(f);f=setTimeout(function(){t.fixClones()},2e3)});var e,n="#menu-item-search, .fa-search, .fa, .fas";n=n+", .fusion-flyout-menu-toggle, .fusion-main-menu-search-open";n=n+", #search_button";n=n+", .mini-search.popup-search";n=n+", .icon-search";n=n+", .menu-item-search-dropdown";n=n+", .mobile-menu-button";n=n+", .td-icon-search, .tdb-search-icon";n=n+", .side_menu_button, .search_button";n=n+", .raven-search-form-toggle";n=n+", [data-elementor-open-lightbox], .elementor-button-link, .elementor-button";r(function(){r("body").on("click touchend",n,function(){clearTimeout(e);e=setTimeout(function(){t.initialize()},500)})})},i.ASL.loadScriptStack=function(t){if(t.length>0){var r=document.createElement("script");r.src=t.splice(0,1);r.onload=t.length==0?function(){typeof n.fn.ajaxsearchlite!="undefined"&&(console.log("ASL: Initializing via onload.."),i.ASL.ready())}:function(){i.ASL.loadScriptStack(t)};console.log("ASL adding:",r.src);document.body.appendChild(r)}},i.ASL.init=function(){if(typeof n=="undefined"||typeof n.fn.ajaxsearchlite=="undefined"){console.log("ASL: jQuery script is probably deferred or delayed loading, trying to resolve");var t;i.asl_interval_tries=typeof i.asl_interval_tries!="undefined"?i.asl_interval_tries:0;t=setInterval(function(){return(++i.asl_interval_tries,i.asl_interval_tries>5)?(console.log("ASL: faliure, init tried",asl_interval_tries,"times"),clearInterval(t),typeof n!="undefined"&&typeof ASL.min_script_src!="undefined"&&ASL.min_script_src!==null&&(console.log("ASL: jQuery exists, adding ASL script dynamically & trying to load."),ASL.loadScriptStack(ASL.min_script_src),ASL.min_script_src=null),!1):typeof n!="undefined"&&typeof n.fn.ajaxsearchlite!="undefined"?(i.ASL.ready(),console.log("ASL: success at try: ",i.asl_interval_tries),clearInterval(t),!1):void 0},250)}else i.ASL.ready()},typeof i.ASL.version=="undefined"){var u,r=0;console.log("ASL: global not defined, trying to wait..");u=setInterval(function(){return++r,typeof i.ASL.version!="undefined"||r>10?(r>10?console.log("ASL: global found at try ",r):console.log("ASL: global not found, initializing anyways at try ",r),i.ASL.init(),clearInterval(u),!0):void 0},100)}else i.ASL.init()}(asljQuery,asljQuery,window);
 
 
 
 
js/min/external/simplebar.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(J,A){"object"===typeof exports&&"undefined"!==typeof module?module.exports=A(require("core-js/modules/es.array.for-each"),require("core-js/modules/web.dom-collections.for-each"),require("core-js/modules/es.array.filter"),require("core-js/modules/es.array.iterator"),require("core-js/modules/es.object.assign"),require("core-js/modules/es.object.to-string"),require("core-js/modules/es.parse-int"),require("core-js/modules/es.string.iterator"),require("core-js/modules/es.weak-map"),require("core-js/modules/web.dom-collections.iterator"),
2
+ require("core-js/modules/es.array.reduce"),require("core-js/modules/es.function.name"),require("core-js/modules/es.regexp.exec"),require("core-js/modules/es.string.match"),require("core-js/modules/es.string.replace")):"function"===typeof define&&define.amd?define("core-js/modules/es.array.for-each core-js/modules/web.dom-collections.for-each core-js/modules/es.array.filter core-js/modules/es.array.iterator core-js/modules/es.object.assign core-js/modules/es.object.to-string core-js/modules/es.parse-int core-js/modules/es.string.iterator core-js/modules/es.weak-map core-js/modules/web.dom-collections.iterator core-js/modules/es.array.reduce core-js/modules/es.function.name core-js/modules/es.regexp.exec core-js/modules/es.string.match core-js/modules/es.string.replace".split(" "),
3
+ A):(J=J||self,J.asp_SimpleBar=A())})(this,function(){function J(a,c,b){function e(g){var t=m,w=p;m=p=void 0;r=g;return u=a.apply(w,t)}function d(g){var t=g-n;g-=r;return void 0===n||t>=c||0>t||y&&g>=C}function f(){var g=W.Date.now();if(d(g))return h(g);var t=setTimeout;var w=g-r;g=c-(g-n);w=y?Ja(g,C-w):g;l=t(f,w)}function h(g){l=void 0;if(D&&m)return e(g);m=p=void 0;return u}function k(){var g=W.Date.now(),t=d(g);m=arguments;p=this;n=g;if(t){if(void 0===l)return r=g=n,l=setTimeout(f,c),z?e(g):u;if(y)return l=
4
+ setTimeout(f,c),e(n)}void 0===l&&(l=setTimeout(f,c));return u}var m,p,u,l,n,r=0,z=!1,y=!1,D=!0;if("function"!=typeof a)throw new TypeError("Expected a function");c=ha(c)||0;if(A(b)){z=!!b.leading;var C=(y="maxWait"in b)?Ka(ha(b.maxWait)||0,c):C;D="trailing"in b?!!b.trailing:D}k.cancel=function(){void 0!==l&&clearTimeout(l);r=0;m=n=p=l=void 0};k.flush=function(){return void 0===l?u:h(W.Date.now())};return k}function A(a){var c=typeof a;return!!a&&("object"==c||"function"==c)}function ha(a){if("number"==
5
+ typeof a)return a;var c=a;if("symbol"==typeof c||c&&"object"==typeof c&&"[object Symbol]"==La.call(c))return ia;A(a)&&(a="function"==typeof a.valueOf?a.valueOf():a,a=A(a)?a+"":a);if("string"!=typeof a)return 0===a?a:+a;a=a.replace(Ma,"");return(c=Na.test(a))||Oa.test(a)?Pa(a.slice(2),c?2:8):Qa.test(a)?ia:+a}function X(a){var c=typeof a;return!!a&&("object"==c||"function"==c)}function ja(a){if("number"==typeof a)return a;var c=a;if("symbol"==typeof c||c&&"object"==typeof c&&"[object Symbol]"==Ra.call(c))return ka;
6
+ X(a)&&(a="function"==typeof a.valueOf?a.valueOf():a,a=X(a)?a+"":a);if("string"!=typeof a)return 0===a?a:+a;a=a.replace(Sa,"");return(c=Ta.test(a))||Ua.test(a)?Va(a.slice(2),c?2:8):Wa.test(a)?ka:+a}function E(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],e[1])}}function H(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],e[1])}}function F(a){var c=-1,b=a?a.length:0;for(this.clear();++c<b;){var e=a[c];this.set(e[0],e[1])}}function O(a,c){for(var b=
7
+ a.length;b--;){var e=a[b][0];if(e===c||e!==e&&c!==c)return b}return-1}function P(a,c){a=a.__data__;var b=typeof c;return("string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==c:null===c)?a["string"==typeof c?"string":"hash"]:a.map}function la(a,c){a=null==a?void 0:a[c];if(!ma(a)||na&&na in a)var b=!1;else{b:if(null!=a){try{b=oa.call(a);break b}catch(e){}b=a+""}else b="";c=ma(a)?Xa.call(a):"";if(!(c="[object Function]"==c||"[object GeneratorFunction]"==c)&&(c=!1,null!=a&&"function"!=typeof a.toString))try{c=
8
+ !!(a+"")}catch(e){}b=(c?Ya:Za).test(b)}return b?a:void 0}function Y(a,c){if("function"!=typeof a||c&&"function"!=typeof c)throw new TypeError("Expected a function");var b=function(){var e=arguments,d=c?c.apply(this,e):e[0],f=b.cache;if(f.has(d))return f.get(d);e=a.apply(this,e);b.cache=f.set(d,e);return e};b.cache=new (Y.Cache||F);return b}function ma(a){var c=typeof a;return!!a&&("object"==c||"function"==c)}function B(a){return a&&a.ownerDocument&&a.ownerDocument.defaultView?a.ownerDocument.defaultView:
9
+ window}function Q(a){return a&&a.ownerDocument?a.ownerDocument:document}function pa(a){if(null===K){var c=Q(a);if("undefined"===typeof c)return K=0;a=c.body;c=c.createElement("div");c.classList.add("asp_simplebar-hide-scrollbar");a.appendChild(c);var b=c.getBoundingClientRect().right;a.removeChild(c);K=b}return K}var v="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},ia=0/0,Ma=/^\s+|\s+$/g,Qa=/^[-+]0x[0-9a-f]+$/i,
10
+ Na=/^0b[01]+$/i,Oa=/^0o[0-7]+$/i,Pa=parseInt,$a="object"==typeof self&&self&&self.Object===Object&&self,W="object"==typeof v&&v&&v.Object===Object&&v||$a||Function("return this")(),La=Object.prototype.toString,Ka=Math.max,Ja=Math.min,qa=function(a,c,b){var e=!0,d=!0;if("function"!=typeof a)throw new TypeError("Expected a function");A(b)&&(e="leading"in b?!!b.leading:e,d="trailing"in b?!!b.trailing:d);return J(a,c,{leading:e,maxWait:c,trailing:d})},ka=0/0,Sa=/^\s+|\s+$/g,Wa=/^[-+]0x[0-9a-f]+$/i,Ta=
11
+ /^0b[01]+$/i,Ua=/^0o[0-7]+$/i,Va=parseInt,ab="object"==typeof self&&self&&self.Object===Object&&self,Z="object"==typeof v&&v&&v.Object===Object&&v||ab||Function("return this")(),Ra=Object.prototype.toString,bb=Math.max,cb=Math.min,ra=function(a,c,b){function e(g){var t=m,w=p;m=p=void 0;r=g;return u=a.apply(w,t)}function d(g){var t=g-n;g-=r;return void 0===n||t>=c||0>t||y&&g>=C}function f(){var g=Z.Date.now();if(d(g))return h(g);var t=setTimeout;var w=g-r;g=c-(g-n);w=y?cb(g,C-w):g;l=t(f,w)}function h(g){l=
12
+ void 0;if(D&&m)return e(g);m=p=void 0;return u}function k(){var g=Z.Date.now(),t=d(g);m=arguments;p=this;n=g;if(t){if(void 0===l)return r=g=n,l=setTimeout(f,c),z?e(g):u;if(y)return l=setTimeout(f,c),e(n)}void 0===l&&(l=setTimeout(f,c));return u}var m,p,u,l,n,r=0,z=!1,y=!1,D=!0;if("function"!=typeof a)throw new TypeError("Expected a function");c=ja(c)||0;if(X(b)){z=!!b.leading;var C=(y="maxWait"in b)?bb(ja(b.maxWait)||0,c):C;D="trailing"in b?!!b.trailing:D}k.cancel=function(){void 0!==l&&clearTimeout(l);
13
+ r=0;m=n=p=l=void 0};k.flush=function(){return void 0===l?u:h(Z.Date.now())};return k},Za=/^\[object .+?Constructor\]$/,db="object"==typeof self&&self&&self.Object===Object&&self,sa="object"==typeof v&&v&&v.Object===Object&&v||db||Function("return this")(),eb=Array.prototype,fb=Function.prototype,ta=Object.prototype,aa=sa["__core-js_shared__"],na=function(){var a=/[^.]+$/.exec(aa&&aa.keys&&aa.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),oa=fb.toString,ba=ta.hasOwnProperty,Xa=ta.toString,Ya=
14
+ RegExp("^"+oa.call(ba).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gb=eb.splice,hb=la(sa,"Map"),L=la(Object,"create");E.prototype.clear=function(){this.__data__=L?L(null):{}};E.prototype["delete"]=function(a){return this.has(a)&&delete this.__data__[a]};E.prototype.get=function(a){var c=this.__data__;return L?(a=c[a],"__lodash_hash_undefined__"===a?void 0:a):ba.call(c,a)?c[a]:void 0};E.prototype.has=function(a){var c=this.__data__;
15
+ return L?void 0!==c[a]:ba.call(c,a)};E.prototype.set=function(a,c){this.__data__[a]=L&&void 0===c?"__lodash_hash_undefined__":c;return this};H.prototype.clear=function(){this.__data__=[]};H.prototype["delete"]=function(a){var c=this.__data__;a=O(c,a);if(0>a)return!1;a==c.length-1?c.pop():gb.call(c,a,1);return!0};H.prototype.get=function(a){var c=this.__data__;a=O(c,a);return 0>a?void 0:c[a][1]};H.prototype.has=function(a){return-1<O(this.__data__,a)};H.prototype.set=function(a,c){var b=this.__data__,
16
+ e=O(b,a);0>e?b.push([a,c]):b[e][1]=c;return this};F.prototype.clear=function(){this.__data__={hash:new E,map:new (hb||H),string:new E}};F.prototype["delete"]=function(a){return P(this,a)["delete"](a)};F.prototype.get=function(a){return P(this,a).get(a)};F.prototype.has=function(a){return P(this,a).has(a)};F.prototype.set=function(a,c){P(this,a).set(a,c);return this};Y.Cache=F;var G=[],ib=function(){return G.some(function(a){return 0<a.activeTargets.length})},jb=function(){return G.some(function(a){return 0<
17
+ a.skippedTargets.length})},M;(function(a){a.BORDER_BOX="border-box";a.CONTENT_BOX="content-box";a.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(M||(M={}));var kb=function(){return function(a,c){this.inlineSize=a;this.blockSize=c;Object.freeze(this)}}(),ua=function(){function a(c,b,e,d){this.x=c;this.y=b;this.width=e;this.height=d;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Object.freeze(this)}a.prototype.toJSON=function(){return{x:this.x,
18
+ y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}};a.fromRect=function(c){return new a(c.x,c.y,c.width,c.height)};return a}(),ca=function(a){return a instanceof SVGElement&&"getBBox"in a},va=function(a){if(ca(a)){a=a.getBBox();var c=a.height;return!a.width&&!c}c=a.offsetHeight;return!(a.offsetWidth||c||a.getClientRects().length)},wa=function(a){var c;if(a instanceof Element)return!0;var b=null===(c=null===a||void 0===a?void 0:a.ownerDocument)||
19
+ void 0===c?void 0:c.defaultView;return!!(b&&a instanceof b.Element)},N="undefined"!==typeof window?window:{},R=new WeakMap,xa=/auto|scroll/,lb=/^tb|vertical/,mb=/msie|trident/i.test(N.navigator&&N.navigator.userAgent),x=function(a){return parseFloat(a||"0")},I=function(a,c,b){void 0===a&&(a=0);void 0===c&&(c=0);void 0===b&&(b=!1);return new kb((b?c:a)||0,(b?a:c)||0)},ya=Object.freeze({devicePixelContentBoxSize:I(),borderBoxSize:I(),contentBoxSize:I(),contentRect:new ua(0,0,0,0)}),za=function(a,c){void 0===
20
+ c&&(c=!1);if(R.has(a)&&!c)return R.get(a);if(va(a))return R.set(a,ya),ya;var b=getComputedStyle(a),e=ca(a)&&a.ownerSVGElement&&a.getBBox(),d=!mb&&"border-box"===b.boxSizing;c=lb.test(b.writingMode||"");var f=!e&&xa.test(b.overflowY||""),h=!e&&xa.test(b.overflowX||""),k=e?0:x(b.paddingTop),m=e?0:x(b.paddingRight),p=e?0:x(b.paddingBottom),u=e?0:x(b.paddingLeft),l=e?0:x(b.borderTopWidth),n=e?0:x(b.borderRightWidth),r=e?0:x(b.borderBottomWidth),z=e?0:x(b.borderLeftWidth);m=u+m;p=k+p;n=z+n;l+=r;h=h?a.offsetHeight-
21
+ l-a.clientHeight:0;f=f?a.offsetWidth-n-a.clientWidth:0;r=d?m+n:0;z=d?p+l:0;d=e?e.width:x(b.width)-r-f;b=e?e.height:x(b.height)-z-h;e=d+m+f+n;m=b+p+h+l;c=Object.freeze({devicePixelContentBoxSize:I(Math.round(d*devicePixelRatio),Math.round(b*devicePixelRatio),c),borderBoxSize:I(e,m,c),contentBoxSize:I(d,b,c),contentRect:new ua(u,k,d,b)});R.set(a,c);return c},Aa=function(a,c,b){var e=za(a,b);a=e.borderBoxSize;b=e.contentBoxSize;e=e.devicePixelContentBoxSize;switch(c){case M.DEVICE_PIXEL_CONTENT_BOX:return e;
22
+ case M.BORDER_BOX:return a;default:return b}},nb=function(){return function(a){var c=za(a);this.target=a;this.contentRect=c.contentRect;this.borderBoxSize=Object.freeze([c.borderBoxSize]);this.contentBoxSize=Object.freeze([c.contentBoxSize]);this.devicePixelContentBoxSize=Object.freeze([c.devicePixelContentBoxSize])}}(),Ba=function(a){if(va(a))return Infinity;var c=0;for(a=a.parentNode;a;)c+=1,a=a.parentNode;return c},ob=function(){var a=Infinity,c=[];G.forEach(function(e){if(0!==e.activeTargets.length){var d=
23
+ [];e.activeTargets.forEach(function(f){var h=new nb(f.target),k=Ba(f.target);d.push(h);f.lastReportedSize=Aa(f.target,f.observedBox);k<a&&(a=k)});c.push(function(){e.callback.call(e.observer,d,e.observer)});e.activeTargets.splice(0,e.activeTargets.length)}});for(var b=0;b<c.length;b++)(0,c[b])();return a},Ca=function(a){G.forEach(function(c){c.activeTargets.splice(0,c.activeTargets.length);c.skippedTargets.splice(0,c.skippedTargets.length);c.observationTargets.forEach(function(b){b.isActive()&&(Ba(b.target)>
24
+ a?c.activeTargets.push(b):c.skippedTargets.push(b))})})},da,Da=[],pb=function(){return Da.splice(0).forEach(function(a){return a()})},qb=function(a){if(!da){var c=0,b=document.createTextNode("");(new MutationObserver(function(){return pb()})).observe(b,{characterData:!0});da=function(){b.textContent=""+(c?c--:c++)}}Da.push(a);da()},rb=function(a){qb(function(){requestAnimationFrame(a)})},S=0,sb={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ea="resize load transitionend animationend animationstart animationiteration keyup keydown mouseup mousedown mouseover mouseout blur focus".split(" "),
25
+ Fa=function(a){void 0===a&&(a=0);return Date.now()+a},ea=!1,fa=new (function(){function a(){var c=this;this.stopped=!0;this.listener=function(){return c.schedule()}}a.prototype.run=function(c){var b=this;void 0===c&&(c=250);if(!ea){ea=!0;var e=Fa(c);rb(function(){var d=!1;try{var f=0;for(Ca(f);ib();)f=ob(),Ca(f);if(jb()){if("function"===typeof ErrorEvent)var h=new ErrorEvent("error",{message:"ResizeObserver loop completed with undelivered notifications."});else h=document.createEvent("Event"),h.initEvent("error",
26
+ !1,!1),h.message="ResizeObserver loop completed with undelivered notifications.";window.dispatchEvent(h)}d=0<f}finally{ea=!1;c=e-Fa();if(!S)return;d?b.run(1E3):0<c?b.run(c):b.start()}})}};a.prototype.schedule=function(){this.stop();this.run()};a.prototype.observe=function(){var c=this,b=function(){return c.observer&&c.observer.observe(document.body,sb)};document.body?b():N.addEventListener("DOMContentLoaded",b)};a.prototype.start=function(){var c=this;this.stopped&&(this.stopped=!1,this.observer=
27
+ new MutationObserver(this.listener),this.observe(),Ea.forEach(function(b){return N.addEventListener(b,c.listener,!0)}))};a.prototype.stop=function(){var c=this;this.stopped||(this.observer&&this.observer.disconnect(),Ea.forEach(function(b){return N.removeEventListener(b,c.listener,!0)}),this.stopped=!0)};return a}()),Ga=function(a){!S&&0<a&&fa.start();S+=a;!S&&fa.stop()},tb=function(){function a(c,b){this.target=c;this.observedBox=b||M.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}
28
+ a.prototype.isActive=function(){var c=Aa(this.target,this.observedBox,!0),b=this.target,e;if(e=!ca(b)){a:{switch(b.tagName){case "INPUT":if("image"!==b.type)break;case "VIDEO":case "AUDIO":case "EMBED":case "OBJECT":case "CANVAS":case "IFRAME":case "IMG":e=!0;break a}e=!1}e=!e}e&&"inline"===getComputedStyle(b).display&&(this.lastReportedSize=c);return this.lastReportedSize.inlineSize!==c.inlineSize||this.lastReportedSize.blockSize!==c.blockSize?!0:!1};return a}(),ub=function(){return function(a,c){this.activeTargets=
29
+ [];this.skippedTargets=[];this.observationTargets=[];this.observer=a;this.callback=c}}(),T=new WeakMap,Ha=function(a,c){for(var b=0;b<a.length;b+=1)if(a[b].target===c)return b;return-1},U=function(){function a(){}a.connect=function(c,b){b=new ub(c,b);T.set(c,b)};a.observe=function(c,b,e){c=T.get(c);var d=0===c.observationTargets.length;0>Ha(c.observationTargets,b)&&(d&&G.push(c),c.observationTargets.push(new tb(b,e&&e.box)),Ga(1),fa.schedule())};a.unobserve=function(c,b){c=T.get(c);b=Ha(c.observationTargets,
30
+ b);var e=1===c.observationTargets.length;0<=b&&(e&&G.splice(G.indexOf(c),1),c.observationTargets.splice(b,1),Ga(-1))};a.disconnect=function(c){var b=this,e=T.get(c);e.observationTargets.slice().forEach(function(d){return b.unobserve(c,d.target)});e.activeTargets.splice(0,e.activeTargets.length)};return a}(),vb=function(){function a(c){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof c)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
31
+ U.connect(this,c)}a.prototype.observe=function(c,b){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wa(c))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");U.observe(this,c,b)};a.prototype.unobserve=function(c){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
32
+ if(!wa(c))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");U.unobserve(this,c)};a.prototype.disconnect=function(){U.disconnect(this)};a.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return a}(),V=function(a){return Array.prototype.reduce.call(a,function(c,b){var e=b.name.match(/data-asp_simplebar-(.+)/);if(e)switch(e=e[1].replace(/\W+(.)/g,function(d,f){return f.toUpperCase()}),b.value){case "true":c[e]=!0;
33
+ break;case "false":c[e]=!1;break;case void 0:c[e]=!0;break;default:c[e]=b.value}return c},{})},K=null,Ia=null;window.addEventListener("resize",function(){Ia!==window.devicePixelRatio&&(Ia=window.devicePixelRatio,K=null)});var q=function(){function a(b,e){var d=this;this.onScroll=function(){var f=B(d.el);d.scrollXTicking||(f.requestAnimationFrame(d.scrollX),d.scrollXTicking=!0);d.scrollYTicking||(f.requestAnimationFrame(d.scrollY),d.scrollYTicking=!0)};this.scrollX=function(){d.axis.x.isOverflowing&&
34
+ (d.showScrollbar("x"),d.positionScrollbar("x"));d.scrollXTicking=!1};this.scrollY=function(){d.axis.y.isOverflowing&&(d.showScrollbar("y"),d.positionScrollbar("y"));d.scrollYTicking=!1};this.onMouseEnter=function(){d.showScrollbar("x");d.showScrollbar("y")};this.onMouseMove=function(f){d.mouseX=f.clientX;d.mouseY=f.clientY;if(d.axis.x.isOverflowing||d.axis.x.forceVisible)d.onMouseMoveForAxis("x");if(d.axis.y.isOverflowing||d.axis.y.forceVisible)d.onMouseMoveForAxis("y")};this.onMouseLeave=function(){d.onMouseMove.cancel();
35
+ if(d.axis.x.isOverflowing||d.axis.x.forceVisible)d.onMouseLeaveForAxis("x");if(d.axis.y.isOverflowing||d.axis.y.forceVisible)d.onMouseLeaveForAxis("y");d.mouseX=-1;d.mouseY=-1};this.onWindowResize=function(){d.scrollbarWidth=d.getScrollbarWidth();d.hideNativeScrollbar()};this.hideScrollbars=function(){d.axis.x.track.rect=d.axis.x.track.el.getBoundingClientRect();d.axis.y.track.rect=d.axis.y.track.el.getBoundingClientRect();d.isWithinBounds(d.axis.y.track.rect)||(d.axis.y.scrollbar.el.classList.remove(d.classNames.visible),
36
+ d.axis.y.isVisible=!1);d.isWithinBounds(d.axis.x.track.rect)||(d.axis.x.scrollbar.el.classList.remove(d.classNames.visible),d.axis.x.isVisible=!1)};this.onPointerEvent=function(f){d.axis.x.track.rect=d.axis.x.track.el.getBoundingClientRect();d.axis.y.track.rect=d.axis.y.track.el.getBoundingClientRect();if(d.axis.x.isOverflowing||d.axis.x.forceVisible)var h=d.isWithinBounds(d.axis.x.track.rect);if(d.axis.y.isOverflowing||d.axis.y.forceVisible)var k=d.isWithinBounds(d.axis.y.track.rect);if(h||k)if(f.preventDefault(),
37
+ f.stopPropagation(),"mousedown"===f.type){if(h)if(d.axis.x.scrollbar.rect=d.axis.x.scrollbar.el.getBoundingClientRect(),d.isWithinBounds(d.axis.x.scrollbar.rect))d.onDragStart(f,"x");else d.onTrackClick(f,"x");if(k)if(d.axis.y.scrollbar.rect=d.axis.y.scrollbar.el.getBoundingClientRect(),d.isWithinBounds(d.axis.y.scrollbar.rect))d.onDragStart(f,"y");else d.onTrackClick(f,"y")}};this.drag=function(f){var h=d.axis[d.draggedAxis].track,k=h.rect[d.axis[d.draggedAxis].sizeAttr],m=d.axis[d.draggedAxis].scrollbar,
38
+ p=d.contentWrapperEl[d.axis[d.draggedAxis].scrollSizeAttr],u=parseInt(d.elStyles[d.axis[d.draggedAxis].sizeAttr],10);f.preventDefault();f.stopPropagation();f=(("y"===d.draggedAxis?f.pageY:f.pageX)-h.rect[d.axis[d.draggedAxis].offsetAttr]-d.axis[d.draggedAxis].dragOffset)/(k-m.size)*(p-u);"x"===d.draggedAxis&&(f=d.isRtl&&a.getRtlHelpers().isRtlScrollbarInverted?f-(k+m.size):f,f=d.isRtl&&a.getRtlHelpers().isRtlScrollingInverted?-f:f);d.contentWrapperEl[d.axis[d.draggedAxis].scrollOffsetAttr]=f};this.onEndDrag=
39
+ function(f){var h=Q(d.el),k=B(d.el);f.preventDefault();f.stopPropagation();d.el.classList.remove(d.classNames.dragging);h.removeEventListener("mousemove",d.drag,!0);h.removeEventListener("mouseup",d.onEndDrag,!0);d.removePreventClickId=k.setTimeout(function(){h.removeEventListener("click",d.preventClick,!0);h.removeEventListener("dblclick",d.preventClick,!0);d.removePreventClickId=null})};this.preventClick=function(f){f.preventDefault();f.stopPropagation()};this.el=b;this.minScrollbarWidth=20;this.options=
40
+ Object.assign({},a.defaultOptions,{},e);this.classNames=Object.assign({},a.defaultOptions.classNames,{},this.options.classNames);this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",
41
+ dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}};this.removePreventClickId=null;a.instances.has(this.el)||(this.recalculate=qa(this.recalculate.bind(this),64),this.onMouseMove=qa(this.onMouseMove.bind(this),64),this.hideScrollbars=ra(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=ra(this.onWindowResize.bind(this),64,{leading:!0}),a.getRtlHelpers=Y(a.getRtlHelpers),this.init())}a.getRtlHelpers=function(){var b=document.createElement("div");
42
+ b.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var e=b.firstElementChild;document.body.appendChild(e);var d=e.firstElementChild;e.scrollLeft=0;b=a.getOffset(e);var f=a.getOffset(d);e.scrollLeft=999;e=a.getOffset(d);return{isRtlScrollingInverted:b.left!==f.left&&0!==f.left-e.left,isRtlScrollbarInverted:b.left!==f.left}};a.getOffset=function(b){var e=b.getBoundingClientRect(),d=Q(b);b=B(b);return{top:e.top+(b.pageYOffset||d.documentElement.scrollTop),
43
+ left:e.left+(b.pageXOffset||d.documentElement.scrollLeft)}};var c=a.prototype;c.init=function(){a.instances.set(this.el,this);this.initDOM();this.scrollbarWidth=this.getScrollbarWidth();this.recalculate();this.initListeners()};c.initDOM=function(){var b=this;if(Array.prototype.filter.call(this.el.children,function(f){return f.classList.contains(b.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+
44
+ this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),
45
+ this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{this.wrapperEl=document.createElement("div");this.contentWrapperEl=document.createElement("div");this.offsetEl=document.createElement("div");this.maskEl=document.createElement("div");this.contentEl=document.createElement("div");this.placeholderEl=document.createElement("div");this.heightAutoObserverWrapperEl=
46
+ document.createElement("div");this.heightAutoObserverEl=document.createElement("div");this.wrapperEl.classList.add(this.classNames.wrapper);this.contentWrapperEl.classList.add(this.classNames.contentWrapper);this.offsetEl.classList.add(this.classNames.offset);this.maskEl.classList.add(this.classNames.mask);this.contentEl.classList.add(this.classNames.contentEl);this.placeholderEl.classList.add(this.classNames.placeholder);this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl);
47
+ for(this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);this.maskEl.appendChild(this.offsetEl);this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);this.wrapperEl.appendChild(this.maskEl);this.wrapperEl.appendChild(this.placeholderEl);
48
+ this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),d=document.createElement("div");e.classList.add(this.classNames.track);d.classList.add(this.classNames.scrollbar);e.appendChild(d);this.axis.x.track.el=e.cloneNode(!0);this.axis.x.track.el.classList.add(this.classNames.horizontal);this.axis.y.track.el=e.cloneNode(!0);this.axis.y.track.el.classList.add(this.classNames.vertical);this.el.appendChild(this.axis.x.track.el);this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=
49
+ this.axis.x.track.el.querySelector("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar);this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible));this.el.setAttribute("data-asp_simplebar","init")};c.initListeners=function(){var b=this,e=B(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);["mousedown",
50
+ "click","dblclick"].forEach(function(f){b.el.addEventListener(f,b.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(f){b.el.addEventListener(f,b.onPointerEvent,{capture:!0,passive:!0})});this.el.addEventListener("mousemove",this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);e.addEventListener("resize",this.onWindowResize);var d=!1;this.resizeObserver=new (e.ResizeObserver||vb)(function(){d&&
51
+ b.recalculate()});this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl);e.requestAnimationFrame(function(){d=!0});this.mutationObserver=new e.MutationObserver(this.recalculate);this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})};c.recalculate=function(){this.elStyles=B(this.el).getComputedStyle(this.el);this.isRtl="rtl"===this.elStyles.direction;var b=1>=this.heightAutoObserverEl.offsetHeight,e=1>=this.heightAutoObserverEl.offsetWidth,
52
+ d=this.contentEl.offsetWidth,f=this.contentWrapperEl.offsetWidth,h=this.elStyles.overflowX,k=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var m=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=
53
+ b?"auto":"100%";this.placeholderEl.style.width=e?d+"px":"auto";this.placeholderEl.style.height=m+"px";b=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=p>d;this.axis.y.isOverflowing=m>b;this.axis.x.isOverflowing="hidden"===h?!1:this.axis.x.isOverflowing;this.axis.y.isOverflowing="hidden"===k?!1:this.axis.y.isOverflowing;this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible;this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible;
54
+ this.hideNativeScrollbar();d=this.axis.x.isOverflowing?this.scrollbarWidth:0;h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>f-h;this.axis.y.isOverflowing=this.axis.y.isOverflowing&&m>b-d;this.axis.x.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");
55
+ this.positionScrollbar("y");this.toggleTrackVisibility("x");this.toggleTrackVisibility("y")};c.getScrollbarSize=function(b){void 0===b&&(b="y");if(!this.axis[b].isOverflowing)return 0;var e=this.axis[b].track.el[this.axis[b].offsetSizeAttr];b=Math.max(~~(e/this.contentEl[this.axis[b].scrollSizeAttr]*e),this.options.scrollbarMinSize);this.options.scrollbarMaxSize&&(b=Math.min(b,this.options.scrollbarMaxSize));return b};c.positionScrollbar=function(b){void 0===b&&(b="y");if(this.axis[b].isOverflowing){var e=
56
+ this.contentWrapperEl[this.axis[b].scrollSizeAttr],d=this.axis[b].track.el[this.axis[b].offsetSizeAttr],f=parseInt(this.elStyles[this.axis[b].sizeAttr],10),h=this.axis[b].scrollbar,k=this.contentWrapperEl[this.axis[b].scrollOffsetAttr];k="x"===b&&this.isRtl&&a.getRtlHelpers().isRtlScrollingInverted?-k:k;e=~~(k/(e-f)*(d-h.size));e="x"===b&&this.isRtl&&a.getRtlHelpers().isRtlScrollbarInverted?e+(d-h.size):e;h.el.style.transform="x"===b?"translate3d("+e+"px, 0, 0)":"translate3d(0, "+e+"px, 0)"}};c.toggleTrackVisibility=
57
+ function(b){void 0===b&&(b="y");var e=this.axis[b].track.el,d=this.axis[b].scrollbar.el;this.axis[b].isOverflowing||this.axis[b].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[b].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[b].overflowAttr]="hidden");d.style.display=this.axis[b].isOverflowing?"block":"none"};c.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?
58
+ "-"+this.scrollbarWidth+"px":0;this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0};c.onMouseMoveForAxis=function(b){void 0===b&&(b="y");this.axis[b].track.rect=this.axis[b].track.el.getBoundingClientRect();this.axis[b].scrollbar.rect=this.axis[b].scrollbar.el.getBoundingClientRect();this.isWithinBounds(this.axis[b].scrollbar.rect)?this.axis[b].scrollbar.el.classList.add(this.classNames.hover):this.axis[b].scrollbar.el.classList.remove(this.classNames.hover);
59
+ this.isWithinBounds(this.axis[b].track.rect)?(this.showScrollbar(b),this.axis[b].track.el.classList.add(this.classNames.hover)):this.axis[b].track.el.classList.remove(this.classNames.hover)};c.onMouseLeaveForAxis=function(b){void 0===b&&(b="y");this.axis[b].track.el.classList.remove(this.classNames.hover);this.axis[b].scrollbar.el.classList.remove(this.classNames.hover)};c.showScrollbar=function(b){void 0===b&&(b="y");var e=this.axis[b].scrollbar.el;this.axis[b].isVisible||(e.classList.add(this.classNames.visible),
60
+ this.axis[b].isVisible=!0);this.options.autoHide&&this.hideScrollbars()};c.onDragStart=function(b,e){void 0===e&&(e="y");var d=Q(this.el),f=B(this.el);this.axis[e].dragOffset=("y"===e?b.pageY:b.pageX)-this.axis[e].scrollbar.rect[this.axis[e].offsetAttr];this.draggedAxis=e;this.el.classList.add(this.classNames.dragging);d.addEventListener("mousemove",this.drag,!0);d.addEventListener("mouseup",this.onEndDrag,!0);null===this.removePreventClickId?(d.addEventListener("click",this.preventClick,!0),d.addEventListener("dblclick",
61
+ this.preventClick,!0)):(f.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)};c.onTrackClick=function(b,e){var d=this;void 0===e&&(e="y");if(this.options.clickOnTrack){var f=B(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();b=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr];var h=parseInt(this.elStyles[this.axis[e].sizeAttr],10),k=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],m=0>("y"===e?this.mouseY-b:this.mouseX-b)?-1:1,p=-1===
62
+ m?k-h:k+h;(function l(){if(-1===m){if(k>p){var n;k-=d.options.clickOnTrackSpeed;d.contentWrapperEl.scrollTo((n={},n[d.axis[e].offsetAttr]=k,n));f.requestAnimationFrame(l)}}else if(k<p){var r;k+=d.options.clickOnTrackSpeed;d.contentWrapperEl.scrollTo((r={},r[d.axis[e].offsetAttr]=k,r));f.requestAnimationFrame(l)}})()}};c.getContentElement=function(){return this.contentEl};c.getScrollElement=function(){return this.contentWrapperEl};c.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,
63
+ "::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:pa(this.el)}catch(b){return pa(this.el)}};c.removeListeners=function(){var b=this,e=B(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(d){b.el.removeEventListener(d,b.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(d){b.el.removeEventListener(d,
64
+ b.onPointerEvent,{capture:!0,passive:!0})});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll);e.removeEventListener("resize",this.onWindowResize);this.mutationObserver&&this.mutationObserver.disconnect();this.resizeObserver&&this.resizeObserver.disconnect();this.recalculate.cancel();this.onMouseMove.cancel();this.hideScrollbars.cancel();this.onWindowResize.cancel()};
65
+ c.unMount=function(){this.removeListeners();a.instances.delete(this.el)};c.isWithinBounds=function(b){return this.mouseX>=b.left&&this.mouseX<=b.left+b.width&&this.mouseY>=b.top&&this.mouseY<=b.top+b.height};c.findChild=function(b,e){var d=b.matches||b.webkitMatchesSelector||b.mozMatchesSelector||b.msMatchesSelector;return Array.prototype.filter.call(b.children,function(f){return d.call(f,e)})[0]};return a}();q.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"asp_simplebar-content",
66
+ contentWrapper:"asp_simplebar-content-wrapper",offset:"asp_simplebar-offset",mask:"asp_simplebar-mask",wrapper:"asp_simplebar-wrapper",placeholder:"asp_simplebar-placeholder",scrollbar:"asp_simplebar-scrollbar",track:"asp_simplebar-track",heightAutoObserverWrapperEl:"asp_simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"asp_simplebar-height-auto-observer",visible:"asp_simplebar-visible",horizontal:"asp_simplebar-horizontal",vertical:"asp_simplebar-vertical",hover:"asp_simplebar-hover",
67
+ dragging:"asp_simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1E3};q.instances=new WeakMap;q.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll("[data-asp_simplebar]"),function(a){"init"===a.getAttribute("data-asp_simplebar")||q.instances.has(a)||new q(a,V(a.attributes))})};q.removeObserver=function(){this.globalObserver.disconnect()};
68
+ q.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);"undefined"!==typeof MutationObserver&&(this.globalObserver=new MutationObserver(q.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0}));"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",
69
+ this.initDOMLoadedElements))};q.handleMutations=function(a){a.forEach(function(c){Array.prototype.forEach.call(c.addedNodes,function(b){1===b.nodeType&&(b.hasAttribute("data-asp_simplebar")?!q.instances.has(b)&&document.documentElement.contains(b)&&new q(b,V(b.attributes)):Array.prototype.forEach.call(b.querySelectorAll("[data-asp_simplebar]"),function(e){"init"!==e.getAttribute("data-asp_simplebar")&&!q.instances.has(e)&&document.documentElement.contains(e)&&new q(e,V(e.attributes))}))});Array.prototype.forEach.call(c.removedNodes,
70
+ function(b){1===b.nodeType&&("init"===b.getAttribute("data-asp_simplebar")?q.instances.has(b)&&!document.documentElement.contains(b)&&q.instances.get(b).unMount():Array.prototype.forEach.call(b.querySelectorAll('[data-asp_simplebar="init"]'),function(e){q.instances.has(e)&&!document.documentElement.contains(e)&&q.instances.get(e).unMount()}))})})};q.getOptions=V;q.initHtmlApi();return q});
js/min/jquery.ajaxsearchlite.min.js DELETED
@@ -1,3 +0,0 @@
1
- typeof jQuery!="undefined"&&(jQuery.extend({highlight:function(n,t,i,r,u){if(u=u==""?".exhghttt":u,n.nodeType===3){var h=n.data.normalize("NFD").replace(/[\u0300-\u036f]/g,""),f=h.match(t);if(f){var s=document.createElement(i||"span");if(s.className=r||"highlight",/\.|,|\s/.test(f[0].charAt(0)))var c=f.index+1;else var c=f.index;var e=n.splitText(c);e.splitText(f[1].length);var l=e.cloneNode(!0);return s.appendChild(l),e.parentNode.replaceChild(s,e),1}}else if(n.nodeType===1&&n.childNodes&&!/(script|style)/i.test(n.tagName)&&!jQuery(n).closest(u).length>0&&!(n.tagName===i.toUpperCase()&&n.className===r))for(var o=0;o<n.childNodes.length;o++)o+=jQuery.highlight(n.childNodes[o],t,i,r,u);return 0}}),jQuery.fn.unhighlight=function(n){var t={className:"highlight",element:"span"};return jQuery.extend(t,n),this.find(t.element+"."+t.className).each(function(){var n=this.parentNode;n.replaceChild(this.firstChild,this);n.normalize()}).end()},jQuery.fn.highlight=function(n,t){var i={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};if(jQuery.extend(i,t),n.constructor===String&&(n=[n]),n=jQuery.grep(n,function(n){return n!=""}),n=jQuery.map(n,function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}),n.length==0)return this;var u=i.caseSensitive?"":"i",r="("+n.join("|")+")";i.wordsOnly&&(r="(?:,|^|\\s)"+r+"(?:,|$|\\s)");var f=new RegExp(r,u);return this.each(function(){jQuery.highlight(this,f,i.element,i.className,i.excludeParents)})}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t(require("core-js/modules/es.array.for-each"),require("core-js/modules/web.dom-collections.for-each"),require("core-js/modules/es.array.filter"),require("core-js/modules/es.array.iterator"),require("core-js/modules/es.object.assign"),require("core-js/modules/es.object.to-string"),require("core-js/modules/es.parse-int"),require("core-js/modules/es.string.iterator"),require("core-js/modules/es.weak-map"),require("core-js/modules/web.dom-collections.iterator"),require("core-js/modules/es.array.reduce"),require("core-js/modules/es.function.name"),require("core-js/modules/es.regexp.exec"),require("core-js/modules/es.string.match"),require("core-js/modules/es.string.replace")):typeof define=="function"&&define.amd?define(["core-js/modules/es.array.for-each","core-js/modules/web.dom-collections.for-each","core-js/modules/es.array.filter","core-js/modules/es.array.iterator","core-js/modules/es.object.assign","core-js/modules/es.object.to-string","core-js/modules/es.parse-int","core-js/modules/es.string.iterator","core-js/modules/es.weak-map","core-js/modules/web.dom-collections.iterator","core-js/modules/es.array.reduce","core-js/modules/es.function.name","core-js/modules/es.regexp.exec","core-js/modules/es.string.match","core-js/modules/es.string.replace"],t):(n=n||self,n.asl_SimpleBar=t())}(this,function(){"use strict";var t=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},at="Expected a function",vt=0/0,tr="[object Symbol]",ir=/^\s+|\s+$/g,rr=/^[-+]0x[0-9a-f]+$/i,ur=/^0b[01]+$/i,fr=/^0o[0-7]+$/i,er=parseInt,or=typeof t=="object"&&t&&t.Object===Object&&t,sr=typeof self=="object"&&self&&self.Object===Object&&self,hr=or||sr||Function("return this")(),cr=Object.prototype,lr=cr.toString,ar=Math.max,vr=Math.min,it=function(){return hr.Date.now()};function yr(n,t,i){var f,o,c,e,r,u,s=0,w=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(at);t=yt(t)||0;y(i)&&(w=!!i.leading,h="maxWait"in i,c=h?ar(yt(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function d(n){return s=n,r=setTimeout(l,t),w?v(n):e}function g(n){var r=n-u,f=n-s,i=t-r;return h?vr(i,c-f):i}function b(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=it();if(b(n))return k(n);r=setTimeout(l,g(n))}function k(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function nt(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function tt(){return r===undefined?e:k(it())}function p(){var n=it(),i=b(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return d(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return p.cancel=nt,p.flush=tt,p}function pr(n,t,i){var r=!0,u=!0;if(typeof n!="function")throw new TypeError(at);return y(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),yr(n,t,{leading:r,maxWait:t,trailing:u})}function y(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function wr(n){return!!n&&typeof n=="object"}function br(n){return typeof n=="symbol"||wr(n)&&lr.call(n)==tr}function yt(n){if(typeof n=="number")return n;if(br(n))return vt;if(y(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=y(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(ir,"");var i=ur.test(n);return i||fr.test(n)?er(n.slice(2),i?2:8):rr.test(n)?vt:+n}var pt=pr,kr="Expected a function",wt=0/0,dr="[object Symbol]",gr=/^\s+|\s+$/g,nu=/^[-+]0x[0-9a-f]+$/i,tu=/^0b[01]+$/i,iu=/^0o[0-7]+$/i,ru=parseInt,uu=typeof t=="object"&&t&&t.Object===Object&&t,fu=typeof self=="object"&&self&&self.Object===Object&&self,eu=uu||fu||Function("return this")(),ou=Object.prototype,su=ou.toString,hu=Math.max,cu=Math.min,rt=function(){return eu.Date.now()};function lu(n,t,i){var f,o,c,e,r,u,s=0,p=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(kr);t=bt(t)||0;ut(i)&&(p=!!i.leading,h="maxWait"in i,c=h?hu(bt(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function k(n){return s=n,r=setTimeout(l,t),p?v(n):e}function d(n){var r=n-u,f=n-s,i=t-r;return h?cu(i,c-f):i}function w(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=rt();if(w(n))return b(n);r=setTimeout(l,d(n))}function b(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function g(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function nt(){return r===undefined?e:b(rt())}function y(){var n=rt(),i=w(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return k(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=g,y.flush=nt,y}function ut(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function au(n){return!!n&&typeof n=="object"}function vu(n){return typeof n=="symbol"||au(n)&&su.call(n)==dr}function bt(n){if(typeof n=="number")return n;if(vu(n))return wt;if(ut(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=ut(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(gr,"");var i=tu.test(n);return i||iu.test(n)?ru(n.slice(2),i?2:8):nu.test(n)?wt:+n}var kt=lu,yu="Expected a function",dt="__lodash_hash_undefined__",pu="[object Function]",wu="[object GeneratorFunction]",bu=/^\[object .+?Constructor\]$/,ku=typeof t=="object"&&t&&t.Object===Object&&t,du=typeof self=="object"&&self&&self.Object===Object&&self,gt=ku||du||Function("return this")();function gu(n,t){return n==null?undefined:n[t]}function nf(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch(i){}return t}var tf=Array.prototype,rf=Function.prototype,ni=Object.prototype,ft=gt["__core-js_shared__"],ti=function(){var n=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),ii=rf.toString,et=ni.hasOwnProperty,uf=ni.toString,ff=RegExp("^"+ii.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ef=tf.splice,of=ri(gt,"Map"),l=ri(Object,"create");function u(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function sf(){this.__data__=l?l(null):{}}function hf(n){return this.has(n)&&delete this.__data__[n]}function cf(n){var t=this.__data__;if(l){var i=t[n];return i===dt?undefined:i}return et.call(t,n)?t[n]:undefined}function lf(n){var t=this.__data__;return l?t[n]!==undefined:et.call(t,n)}function af(n,t){var i=this.__data__;return i[n]=l&&t===undefined?dt:t,this}u.prototype.clear=sf;u.prototype["delete"]=hf;u.prototype.get=cf;u.prototype.has=lf;u.prototype.set=af;function s(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function vf(){this.__data__=[]}function yf(n){var t=this.__data__,i=p(t,n);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():ef.call(t,i,1),!0}function pf(n){var t=this.__data__,i=p(t,n);return i<0?undefined:t[i][1]}function wf(n){return p(this.__data__,n)>-1}function bf(n,t){var i=this.__data__,r=p(i,n);return r<0?i.push([n,t]):i[r][1]=t,this}s.prototype.clear=vf;s.prototype["delete"]=yf;s.prototype.get=pf;s.prototype.has=wf;s.prototype.set=bf;function f(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function kf(){this.__data__={hash:new u,map:new(of||s),string:new u}}function df(n){return w(this,n)["delete"](n)}function gf(n){return w(this,n).get(n)}function ne(n){return w(this,n).has(n)}function te(n,t){return w(this,n).set(n,t),this}f.prototype.clear=kf;f.prototype["delete"]=df;f.prototype.get=gf;f.prototype.has=ne;f.prototype.set=te;function p(n,t){for(var i=n.length;i--;)if(ee(n[i][0],t))return i;return-1}function ie(n){if(!ui(n)||ue(n))return!1;var t=oe(n)||nf(n)?ff:bu;return t.test(fe(n))}function w(n,t){var i=n.__data__;return re(t)?i[typeof t=="string"?"string":"hash"]:i.map}function ri(n,t){var i=gu(n,t);return ie(i)?i:undefined}function re(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function ue(n){return!!ti&&ti in n}function fe(n){if(n!=null){try{return ii.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function ot(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new TypeError(yu);var i=function(){var r=arguments,u=t?t.apply(this,r):r[0],f=i.cache;if(f.has(u))return f.get(u);var e=n.apply(this,r);return i.cache=f.set(u,e),e};return i.cache=new(ot.Cache||f),i}ot.Cache=f;function ee(n,t){return n===t||n!==n&&t!==t}function oe(n){var t=ui(n)?uf.call(n):"";return t==pu||t==wu}function ui(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}var se=ot,e=[],he=function(){return e.some(function(n){return n.activeTargets.length>0})},ce=function(){return e.some(function(n){return n.skippedTargets.length>0})},fi="ResizeObserver loop completed with undelivered notifications.",le=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:fi}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=fi);window.dispatchEvent(n)},a;(function(n){n.BORDER_BOX="border-box";n.CONTENT_BOX="content-box";n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(a||(a={}));var o=function(n){return Object.freeze(n)},ae=function(){function n(n,t){this.inlineSize=n;this.blockSize=t;o(this)}return n}(),ei=function(){function n(n,t,i,r){return this.x=n,this.y=t,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,o(this)}return n.prototype.toJSON=function(){var n=this,t=n.x,i=n.y,r=n.top,u=n.right,f=n.bottom,e=n.left,o=n.width,s=n.height;return{x:t,y:i,top:r,right:u,bottom:f,left:e,width:o,height:s}},n.fromRect=function(t){return new n(t.x,t.y,t.width,t.height)},n}(),st=function(n){return n instanceof SVGElement&&"getBBox"in n},oi=function(n){if(st(n)){var t=n.getBBox(),r=t.width,u=t.height;return!r&&!u}var i=n,f=i.offsetWidth,e=i.offsetHeight;return!(f||e||n.getClientRects().length)},si=function(n){var t,i;if(n instanceof Element)return!0;var r=(i=(t=n)===null||t===void 0?void 0:t.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(r&&n instanceof r.Element)},ve=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},v=typeof window!="undefined"?window:{},b=new WeakMap,hi=/auto|scroll/,ye=/^tb|vertical/,pe=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),i=function(n){return parseFloat(n||"0")},h=function(n,t,i){return n===void 0&&(n=0),t===void 0&&(t=0),i===void 0&&(i=!1),new ae((i?t:n)||0,(i?n:t)||0)},ci=o({devicePixelContentBoxSize:h(),borderBoxSize:h(),contentBoxSize:h(),contentRect:new ei(0,0,0,0)}),li=function(n,t){if(t===void 0&&(t=!1),b.has(n)&&!t)return b.get(n);if(oi(n))return b.set(n,ci),ci;var r=getComputedStyle(n),u=st(n)&&n.ownerSVGElement&&n.getBBox(),a=!pe&&r.boxSizing==="border-box",s=ye.test(r.writingMode||""),nt=!u&&hi.test(r.overflowY||""),tt=!u&&hi.test(r.overflowX||""),v=u?0:i(r.paddingTop),it=u?0:i(r.paddingRight),rt=u?0:i(r.paddingBottom),y=u?0:i(r.paddingLeft),ut=u?0:i(r.borderTopWidth),ft=u?0:i(r.borderRightWidth),et=u?0:i(r.borderBottomWidth),ot=u?0:i(r.borderLeftWidth),p=y+it,w=v+rt,c=ot+ft,l=ut+et,k=tt?n.offsetHeight-l-n.clientHeight:0,d=nt?n.offsetWidth-c-n.clientWidth:0,ht=a?p+c:0,ct=a?w+l:0,f=u?u.width:i(r.width)-ht-d,e=u?u.height:i(r.height)-ct-k,lt=f+p+d+c,at=e+w+k+l,g=o({devicePixelContentBoxSize:h(Math.round(f*devicePixelRatio),Math.round(e*devicePixelRatio),s),borderBoxSize:h(lt,at,s),contentBoxSize:h(f,e,s),contentRect:new ei(y,v,f,e)});return b.set(n,g),g},ai=function(n,t,i){var r=li(n,i),u=r.borderBoxSize,f=r.contentBoxSize,e=r.devicePixelContentBoxSize;switch(t){case a.DEVICE_PIXEL_CONTENT_BOX:return e;case a.BORDER_BOX:return u;default:return f}},we=function(){function n(n){var t=li(n);this.target=n;this.contentRect=t.contentRect;this.borderBoxSize=o([t.borderBoxSize]);this.contentBoxSize=o([t.contentBoxSize]);this.devicePixelContentBoxSize=o([t.devicePixelContentBoxSize])}return n}(),vi=function(n){if(oi(n))return Infinity;for(var i=0,t=n.parentNode;t;)i+=1,t=t.parentNode;return i},be=function(){var n=Infinity,i=[];e.forEach(function(t){if(t.activeTargets.length!==0){var r=[];t.activeTargets.forEach(function(t){var u=new we(t.target),i=vi(t.target);r.push(u);t.lastReportedSize=ai(t.target,t.observedBox);i<n&&(n=i)});i.push(function(){t.callback.call(t.observer,r,t.observer)});t.activeTargets.splice(0,t.activeTargets.length)}});for(var t=0,r=i;t<r.length;t++){var u=r[t];u()}return n},yi=function(n){e.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length);t.skippedTargets.splice(0,t.skippedTargets.length);t.observationTargets.forEach(function(i){i.isActive()&&(vi(i.target)>n?t.activeTargets.push(i):t.skippedTargets.push(i))})})},ke=function(){var n=0;for(yi(n);he();)n=be(),yi(n);return ce()&&le(),n>0},ht,pi=[],de=function(){return pi.splice(0).forEach(function(n){return n()})},ge=function(n){if(!ht){var t=0,i=document.createTextNode("");new MutationObserver(function(){return de()}).observe(i,{characterData:!0});ht=function(){i.textContent=""+(t?t--:t++)}}pi.push(n);ht()},no=function(n){ge(function(){requestAnimationFrame(n)})},k=0,to=function(){return!!k},io=250,ro={attributes:!0,characterData:!0,childList:!0,subtree:!0},wi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],bi=function(n){return n===void 0&&(n=0),Date.now()+n},ct=!1,uo=function(){function n(){var n=this;this.stopped=!0;this.listener=function(){return n.schedule()}}return n.prototype.run=function(n){var t=this;if(n===void 0&&(n=io),!ct){ct=!0;var i=bi(n);no(function(){var r=!1;try{r=ke()}finally{if(ct=!1,n=i-bi(),!to())return;r?t.run(1e3):n>0?t.run(n):t.start()}})}},n.prototype.schedule=function(){this.stop();this.run()},n.prototype.observe=function(){var n=this,t=function(){return n.observer&&n.observer.observe(document.body,ro)};document.body?t():v.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var n=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),wi.forEach(function(t){return v.addEventListener(t,n.listener,!0)}))},n.prototype.stop=function(){var n=this;this.stopped||(this.observer&&this.observer.disconnect(),wi.forEach(function(t){return v.removeEventListener(t,n.listener,!0)}),this.stopped=!0)},n}(),lt=new uo,ki=function(n){!k&&n>0&&lt.start();k+=n;k||lt.stop()},fo=function(n){return!st(n)&&!ve(n)&&getComputedStyle(n).display==="inline"},eo=function(){function n(n,t){this.target=n;this.observedBox=t||a.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var n=ai(this.target,this.observedBox,!0);return(fo(this.target)&&(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize)?!0:!1},n}(),oo=function(){function n(n,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=n;this.callback=t}return n}(),d=new WeakMap,di=function(n,t){for(var i=0;i<n.length;i+=1)if(n[i].target===t)return i;return-1},g=function(){function n(){}return n.connect=function(n,t){var i=new oo(n,t);d.set(n,i)},n.observe=function(n,t,i){var r=d.get(n),u=r.observationTargets.length===0;di(r.observationTargets,t)<0&&(u&&e.push(r),r.observationTargets.push(new eo(t,i&&i.box)),ki(1),lt.schedule())},n.unobserve=function(n,t){var i=d.get(n),r=di(i.observationTargets,t),u=i.observationTargets.length===1;r>=0&&(u&&e.splice(e.indexOf(i),1),i.observationTargets.splice(r,1),ki(-1))},n.disconnect=function(n){var i=this,t=d.get(n);t.observationTargets.slice().forEach(function(t){return i.unobserve(n,t.target)});t.activeTargets.splice(0,t.activeTargets.length)},n}(),so=function(){function n(n){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof n!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");g.connect(this,n)}return n.prototype.observe=function(n,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!si(n))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");g.observe(this,n,t)},n.prototype.unobserve=function(n){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!si(n))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");g.unobserve(this,n)},n.prototype.disconnect=function(){g.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}(),nt=function(n){return Array.prototype.reduce.call(n,function(n,t){var r=t.name.match(/data-asl_simplebar-(.+)/);if(r){var i=r[1].replace(/\W+(.)/g,function(n,t){return t.toUpperCase()});switch(t.value){case"true":n[i]=!0;break;case"false":n[i]=!1;break;case undefined:n[i]=!0;break;default:n[i]=t.value}}return n},{})};function r(n){return!n||!n.ownerDocument||!n.ownerDocument.defaultView?window:n.ownerDocument.defaultView}function tt(n){return!n||!n.ownerDocument?document:n.ownerDocument}var c=null,gi=null;window.addEventListener("resize",function(){gi!==window.devicePixelRatio&&(gi=window.devicePixelRatio,c=null)});function nr(n){if(c===null){var i=tt(n);if(typeof i=="undefined")return c=0;var r=i.body,t=i.createElement("div");t.classList.add("asl_simplebar-hide-scrollbar");r.appendChild(t);var u=t.getBoundingClientRect().right;r.removeChild(t);c=u}return c}var n=function(){function t(n,i){var u=this;(this.onScroll=function(){var n=r(u.el);u.scrollXTicking||(n.requestAnimationFrame(u.scrollX),u.scrollXTicking=!0);u.scrollYTicking||(n.requestAnimationFrame(u.scrollY),u.scrollYTicking=!0)},this.scrollX=function(){u.axis.x.isOverflowing&&(u.showScrollbar("x"),u.positionScrollbar("x"));u.scrollXTicking=!1},this.scrollY=function(){u.axis.y.isOverflowing&&(u.showScrollbar("y"),u.positionScrollbar("y"));u.scrollYTicking=!1},this.onMouseEnter=function(){u.showScrollbar("x");u.showScrollbar("y")},this.onMouseMove=function(n){if(u.mouseX=n.clientX,u.mouseY=n.clientY,u.axis.x.isOverflowing||u.axis.x.forceVisible)u.onMouseMoveForAxis("x");if(u.axis.y.isOverflowing||u.axis.y.forceVisible)u.onMouseMoveForAxis("y")},this.onMouseLeave=function(){if(u.onMouseMove.cancel(),u.axis.x.isOverflowing||u.axis.x.forceVisible)u.onMouseLeaveForAxis("x");if(u.axis.y.isOverflowing||u.axis.y.forceVisible)u.onMouseLeaveForAxis("y");u.mouseX=-1;u.mouseY=-1},this.onWindowResize=function(){u.scrollbarWidth=u.getScrollbarWidth();u.hideNativeScrollbar()},this.hideScrollbars=function(){u.axis.x.track.rect=u.axis.x.track.el.getBoundingClientRect();u.axis.y.track.rect=u.axis.y.track.el.getBoundingClientRect();u.isWithinBounds(u.axis.y.track.rect)||(u.axis.y.scrollbar.el.classList.remove(u.classNames.visible),u.axis.y.isVisible=!1);u.isWithinBounds(u.axis.x.track.rect)||(u.axis.x.scrollbar.el.classList.remove(u.classNames.visible),u.axis.x.isVisible=!1)},this.onPointerEvent=function(n){var t,i;if(u.axis.x.track.rect=u.axis.x.track.el.getBoundingClientRect(),u.axis.y.track.rect=u.axis.y.track.el.getBoundingClientRect(),(u.axis.x.isOverflowing||u.axis.x.forceVisible)&&(t=u.isWithinBounds(u.axis.x.track.rect)),(u.axis.y.isOverflowing||u.axis.y.forceVisible)&&(i=u.isWithinBounds(u.axis.y.track.rect)),(t||i)&&(n.preventDefault(),n.stopPropagation(),n.type==="mousedown")){if(t)if(u.axis.x.scrollbar.rect=u.axis.x.scrollbar.el.getBoundingClientRect(),u.isWithinBounds(u.axis.x.scrollbar.rect))u.onDragStart(n,"x");else u.onTrackClick(n,"x");if(i)if(u.axis.y.scrollbar.rect=u.axis.y.scrollbar.el.getBoundingClientRect(),u.isWithinBounds(u.axis.y.scrollbar.rect))u.onDragStart(n,"y");else u.onTrackClick(n,"y")}},this.drag=function(n){var r,f=u.axis[u.draggedAxis].track,e=f.rect[u.axis[u.draggedAxis].sizeAttr],o=u.axis[u.draggedAxis].scrollbar,s=u.contentWrapperEl[u.axis[u.draggedAxis].scrollSizeAttr],h=parseInt(u.elStyles[u.axis[u.draggedAxis].sizeAttr],10);n.preventDefault();n.stopPropagation();r=u.draggedAxis==="y"?n.pageY:n.pageX;var c=r-f.rect[u.axis[u.draggedAxis].offsetAttr]-u.axis[u.draggedAxis].dragOffset,l=c/(e-o.size),i=l*(s-h);u.draggedAxis==="x"&&(i=u.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i-(e+o.size):i,i=u.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-i:i);u.contentWrapperEl[u.axis[u.draggedAxis].scrollOffsetAttr]=i},this.onEndDrag=function(n){var t=tt(u.el),i=r(u.el);n.preventDefault();n.stopPropagation();u.el.classList.remove(u.classNames.dragging);t.removeEventListener("mousemove",u.drag,!0);t.removeEventListener("mouseup",u.onEndDrag,!0);u.removePreventClickId=i.setTimeout(function(){t.removeEventListener("click",u.preventClick,!0);t.removeEventListener("dblclick",u.preventClick,!0);u.removePreventClickId=null})},this.preventClick=function(n){n.preventDefault();n.stopPropagation()},this.el=n,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},i),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el))||(this.recalculate=pt(this.recalculate.bind(this),64),this.onMouseMove=pt(this.onMouseMove.bind(this),64),this.hideScrollbars=kt(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=kt(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=se(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var r=document.createElement("div");r.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"><\/div><\/div>';var n=r.firstElementChild;document.body.appendChild(n);var u=n.firstElementChild;n.scrollLeft=0;var f=t.getOffset(n),i=t.getOffset(u);n.scrollLeft=999;var e=t.getOffset(u);return{isRtlScrollingInverted:f.left!==i.left&&i.left-e.left!=0,isRtlScrollbarInverted:f.left!==i.left}};t.getOffset=function(n){var t=n.getBoundingClientRect(),i=tt(n),u=r(n);return{top:t.top+(u.pageYOffset||i.documentElement.scrollTop),left:t.left+(u.pageXOffset||i.documentElement.scrollLeft)}};var n=t.prototype;return n.init=function(){t.instances.set(this.el,this);this.initDOM();this.scrollbarWidth=this.getScrollbarWidth();this.recalculate();this.initListeners()},n.initDOM=function(){var i=this;if(Array.prototype.filter.call(this.el.children,function(n){return n.classList.contains(i.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);this.maskEl.appendChild(this.offsetEl);this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);this.wrapperEl.appendChild(this.maskEl);this.wrapperEl.appendChild(this.placeholderEl);this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var n=document.createElement("div"),t=document.createElement("div");n.classList.add(this.classNames.track);t.classList.add(this.classNames.scrollbar);n.appendChild(t);this.axis.x.track.el=n.cloneNode(!0);this.axis.x.track.el.classList.add(this.classNames.horizontal);this.axis.y.track.el=n.cloneNode(!0);this.axis.y.track.el.classList.add(this.classNames.vertical);this.el.appendChild(this.axis.x.track.el);this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar);this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible));this.el.setAttribute("data-asl_simplebar","init")},n.initListeners=function(){var n=this,t=r(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.addEventListener("mousemove",this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);t.addEventListener("resize",this.onWindowResize);var i=!1,u=t.ResizeObserver||so;this.resizeObserver=new u(function(){i&&n.recalculate()});this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl);t.requestAnimationFrame(function(){i=!0});this.mutationObserver=new t.MutationObserver(this.recalculate);this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},n.recalculate=function(){var f=r(this.el);this.elStyles=f.getComputedStyle(this.el);this.isRtl=this.elStyles.direction==="rtl";var e=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1,t=this.contentEl.offsetWidth,s=this.contentWrapperEl.offsetWidth,h=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var n=this.contentEl.scrollHeight,i=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%";this.placeholderEl.style.width=o?t+"px":"auto";this.placeholderEl.style.height=n+"px";var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=i>t;this.axis.y.isOverflowing=n>u;this.axis.x.isOverflowing=h==="hidden"?!1:this.axis.x.isOverflowing;this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing;this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0;this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0;this.hideNativeScrollbar();var l=this.axis.x.isOverflowing?this.scrollbarWidth:0,a=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&i>s-a;this.axis.y.isOverflowing=this.axis.y.isOverflowing&&n>u-l;this.axis.x.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");this.positionScrollbar("y");this.toggleTrackVisibility("x");this.toggleTrackVisibility("y")},n.getScrollbarSize=function(n){if(n===void 0&&(n="y"),!this.axis[n].isOverflowing)return 0;var r=this.contentEl[this.axis[n].scrollSizeAttr],i=this.axis[n].track.el[this.axis[n].offsetSizeAttr],t,u=i/r;return t=Math.max(~~(u*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},n.positionScrollbar=function(n){if(n===void 0&&(n="y"),this.axis[n].isOverflowing){var e=this.contentWrapperEl[this.axis[n].scrollSizeAttr],f=this.axis[n].track.el[this.axis[n].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[n].sizeAttr],10),u=this.axis[n].scrollbar,r=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];r=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-r:r;var s=r/(e-o),i=~~((f-u.size)*s);i=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i+(f-u.size):i;u.el.style.transform=n==="x"?"translate3d("+i+"px, 0, 0)":"translate3d(0, "+i+"px, 0)"}},n.toggleTrackVisibility=function(n){n===void 0&&(n="y");var t=this.axis[n].track.el,i=this.axis[n].scrollbar.el;this.axis[n].isOverflowing||this.axis[n].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[n].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[n].overflowAttr]="hidden");i.style.display=this.axis[n].isOverflowing?"block":"none"},n.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0;this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},n.onMouseMoveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.rect=this.axis[n].track.el.getBoundingClientRect();this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var t=this.isWithinBounds(this.axis[n].scrollbar.rect);t?this.axis[n].scrollbar.el.classList.add(this.classNames.hover):this.axis[n].scrollbar.el.classList.remove(this.classNames.hover);this.isWithinBounds(this.axis[n].track.rect)?(this.showScrollbar(n),this.axis[n].track.el.classList.add(this.classNames.hover)):this.axis[n].track.el.classList.remove(this.classNames.hover)},n.onMouseLeaveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.el.classList.remove(this.classNames.hover);this.axis[n].scrollbar.el.classList.remove(this.classNames.hover)},n.showScrollbar=function(n){n===void 0&&(n="y");var t=this.axis[n].scrollbar.el;this.axis[n].isVisible||(t.classList.add(this.classNames.visible),this.axis[n].isVisible=!0);this.options.autoHide&&this.hideScrollbars()},n.onDragStart=function(n,t){t===void 0&&(t="y");var i=tt(this.el),u=r(this.el),f=this.axis[t].scrollbar,e=t==="y"?n.pageY:n.pageX;this.axis[t].dragOffset=e-f.rect[this.axis[t].offsetAttr];this.draggedAxis=t;this.el.classList.add(this.classNames.dragging);i.addEventListener("mousemove",this.drag,!0);i.addEventListener("mouseup",this.onEndDrag,!0);this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.onTrackClick=function(n,t){var u=this;if(t===void 0&&(t="y"),this.options.clickOnTrack){var e=r(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var l=this.axis[t].scrollbar,o=l.rect[this.axis[t].offsetAttr],s=parseInt(this.elStyles[this.axis[t].sizeAttr],10),i=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],a=t==="y"?this.mouseY-o:this.mouseX-o,h=a<0?-1:1,c=h===-1?i-s:i+s,f=function f(){if(h===-1){if(i>c){var n;i-=u.options.clickOnTrackSpeed;u.contentWrapperEl.scrollTo((n={},n[u.axis[t].offsetAttr]=i,n));e.requestAnimationFrame(f)}}else if(i<c){var r;i+=u.options.clickOnTrackSpeed;u.contentWrapperEl.scrollTo((r={},r[u.axis[t].offsetAttr]=i,r));e.requestAnimationFrame(f)}};f()}},n.getContentElement=function(){return this.contentEl},n.getScrollElement=function(){return this.contentWrapperEl},n.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:nr(this.el)}catch(n){return nr(this.el)}},n.removeListeners=function(){var n=this,t=r(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll);t.removeEventListener("resize",this.onWindowResize);this.mutationObserver&&this.mutationObserver.disconnect();this.resizeObserver&&this.resizeObserver.disconnect();this.recalculate.cancel();this.onMouseMove.cancel();this.hideScrollbars.cancel();this.onWindowResize.cancel()},n.unMount=function(){this.removeListeners();t.instances.delete(this.el)},n.isWithinBounds=function(n){return this.mouseX>=n.left&&this.mouseX<=n.left+n.width&&this.mouseY>=n.top&&this.mouseY<=n.top+n.height},n.findChild=function(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;return Array.prototype.filter.call(n.children,function(n){return i.call(n,t)})[0]},t}();return n.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"asl_simplebar-content",contentWrapper:"asl_simplebar-content-wrapper",offset:"asl_simplebar-offset",mask:"asl_simplebar-mask",wrapper:"asl_simplebar-wrapper",placeholder:"asl_simplebar-placeholder",scrollbar:"asl_simplebar-scrollbar",track:"asl_simplebar-track",heightAutoObserverWrapperEl:"asl_simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"asl_simplebar-height-auto-observer",visible:"asl_simplebar-visible",horizontal:"asl_simplebar-horizontal",vertical:"asl_simplebar-vertical",hover:"asl_simplebar-hover",dragging:"asl_simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},n.instances=new WeakMap,n.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll("[data-asl_simplebar]"),function(t){t.getAttribute("data-asl_simplebar")==="init"||n.instances.has(t)||new n(t,nt(t.attributes))})},n.removeObserver=function(){this.globalObserver.disconnect()},n.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);typeof MutationObserver!="undefined"&&(this.globalObserver=new MutationObserver(n.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0}));document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)?(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements)):window.setTimeout(this.initDOMLoadedElements)},n.handleMutations=function(t){t.forEach(function(t){Array.prototype.forEach.call(t.addedNodes,function(t){t.nodeType===1&&(t.hasAttribute("data-asl_simplebar")?!n.instances.has(t)&&document.documentElement.contains(t)&&new n(t,nt(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-asl_simplebar]"),function(t){t.getAttribute("data-asl_simplebar")!=="init"&&!n.instances.has(t)&&document.documentElement.contains(t)&&new n(t,nt(t.attributes))}))});Array.prototype.forEach.call(t.removedNodes,function(t){t.nodeType===1&&(t.getAttribute("data-asl_simplebar")==="init"?n.instances.has(t)&&!document.documentElement.contains(t)&&n.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-asl_simplebar="init"]'),function(t){n.instances.has(t)&&!document.documentElement.contains(t)&&n.instances.get(t).unMount()}))})})},n.getOptions=nt,n.initHtmlApi(),n});
2
- /*! Ajax Search Lite 4.6 js */
3
- if(typeof jQuery!="undefined"&&function(n){var t,a=!0,s={init:function(t,i){var r=this;this.elem=i;this.$elem=n(i);r.searching=!1;r.o=n.extend({blocking:!1},t);r.n={};r.n.container=n(this.elem);r.o.rid=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.o.id=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.n.probox=n(".probox",r.n.container);r.n.proinput=n(".proinput",r.n.container);r.n.text=n(".proinput input.orig",r.n.container);r.n.textAutocomplete=n(".proinput input.autocomplete",r.n.container);r.n.loading=n(".proinput .loading",r.n.container);r.n.proloading=n(".proloading",r.n.container);r.n.proclose=n(".proclose",r.n.container);r.n.promagnifier=n(".promagnifier",r.n.container);r.n.prosettings=n(".prosettings",r.n.container);r.n.searchsettings=n("#ajaxsearchlitesettings"+r.o.rid);r.n.resultsDiv=n("#ajaxsearchliteres"+r.o.rid);r.n.hiddenContainer=n("#asl_hidden_data");r.n.aslItemOverlay=n(".asl_item_overlay",r.n.hiddenContainer);r.resizeTimeout=null;r.n.showmore=n(".showmore",r.n.resultsDiv);r.n.items=n(".item",r.n.resultsDiv);r.n.results=n(".results",r.n.resultsDiv);r.n.resdrg=n(".resdrg",r.n.resultsDiv);r.il={columns:3,itemsPerPage:6};r.post=null;r.postAuto=null;r.cleanUp();r.n.textAutocomplete.val("");r.o.resultitemheight=parseInt(r.o.resultitemheight);r.scroll={};r.savedScrollTop=0;r.savedContainerTop=0;r.is_scroll=typeof asl_SimpleBar!="undefined";typeof ASL.scrollbar!="undefined"&&ASL.scrollbar==0&&(r.is_scroll=!1);r.settScroll=null;r.n.resultsAppend=n("#wpdreams_asl_results_"+r.o.id);r.currentPage=1;r.isotopic=null;r.lastSuccesfulSearch="";r.lastSearchData={};r.triggerPrevState=!1;r.animation="bounceIn";switch(r.o.resultstype){case"vertical":r.animation=r.o.vresultanimation;break;default:r.animation=r.o.hresultanimation}return r.filterFns={number:function(){for(var t=n(this).parent();!t.hasClass("isotopic");)t=t.parent();var i=n(this).attr("data-itemnum"),u=r.currentPage,f=r.il.itemsPerPage;return parseInt(i,10)<f*u&&parseInt(i,10)>=f*(u-1)}},r.disableMobileScroll=!1,r.n.searchsettings.detach().appendTo("body"),r.o.resultsposition=="hover"?r.n.resultsDiv.detach().appendTo("body"):r.n.resultsAppend.length>0&&r.n.resultsDiv.detach().appendTo(r.n.resultsAppend),typeof ASL.resHTML=="undefined"&&(ASL.resHTML=r.n.resultsDiv.html()),typeof ASL.setHTML=="undefined"&&(ASL.setHTML=r.n.searchsettings.html()),n("fieldset",r.n.searchsettings).each(function(){n(".asl_option:not(.hiddend)",this).last().addClass("asl-o-last")}),ASL.js_retain_popstate==1&&r.initPrevState(),r.monitorTouchMove(),v()&&r.n.container.addClass("asl_msie"),r.initSettingsAnimations(),r.initResultsAnimations(),r.initEvents(),r.initAutop(),r.initEtc(),this},initPrevState:function(){var i=this;a&&t==null&&(t=localStorage.getItem("asl-"+u.encode(location.href)),t!=null&&(t=JSON.parse(t),t.settings=u.decode(t.settings)));t!=null&&typeof t.id!="undefined"&&t.id==i.o.id&&(t.phrase!=""&&(i.triggerPrevState=!0,i.n.text.val(t.phrase)),o(n("form",i.n.searchsettings))!=t.settings&&(i.triggerPrevState=!0,o(n("form",i.n.searchsettings),t.settings)));localStorage.removeItem("asl-"+u.encode(location.href));i.n.resultsDiv.on("click",".results .item",function(){var t=i.n.text.val();if(t!=""||i.settingsChanged){var r={id:i.o.id,phrase:t,settings:u.encode(o(n("form",i.n.searchsettings)))};localStorage.setItem("asl-"+u.encode(location.href),JSON.stringify(r))}})},monitorTouchMove:function(){var t=this,i=n("body");t.dragging=!1;i.on("touchmove",function(){t.dragging=!0});i.on("touchstart",function(){t.dragging=!1})},gaPageview:function(n){var r=this,t=r.gaGetTrackingID();if(typeof ASL.analytics=="undefined"||ASL.analytics.method!="pageview")return!1;if(ASL.analytics.string!=""){var i=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1,u=typeof gtag=="function"?gtag:!1;window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var f=r.o.homeurl.replace(window.location.origin,"");u!==!1?t!==!1&&u("config",t,{page_path:f+ASL.analytics.string.replace("{asl_term}",n)}):i!==!1&&(t!==!1&&i("create",t,"auto"),i("send","pageview",{page:f+ASL.analytics.string.replace("{asl_term}",n),title:"Ajax Search"}))}},gaEvent:function(t,i){var u=this,f=u.gaGetTrackingID();if(typeof ASL.analytics=="undefined"||ASL.analytics.method!="event")return!1;var e=typeof gtag=="function"?gtag:!1,o=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1;if(e===!1&&o===!1)return!1;if(typeof ASL.analytics.event[t]!="undefined"&&ASL.analytics.event[t].active==1&&typeof"gtag"!="undefined"){var s={search_id:u.o.id,search_name:u.o.name,phrase:u.n.text.val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},r={event_category:ASL.analytics.event[t].category,event_label:ASL.analytics.event[t].label,value:ASL.analytics.event[t].value};i=n.extend(s,i);n.each(i,function(t,i){i=String(i).replace(/[\s\n\r]+/g," ").trim();n.each(r,function(n,u){var f=new RegExp("{"+t+"}","gmi");r[n]=u.replace(f,i)})});e===!1?(f!==!1&&o("create",f,"auto"),o("send","event",r.event_category,ASL.analytics.event[t].action,r.event_label,r.value)):(f!==!1&&(r.send_to=f),e("event",ASL.analytics.event[t].action,r))}},gaGetTrackingID:function(){var r=this,n=!1;if(typeof ASL.analytics=="undefined")return n;if(typeof ASL.analytics.tracking_id!="undefined"&&ASL.analytics.tracking_id!="")return ASL.analytics.tracking_id;var i=typeof gtag=="function"?gtag:!1;if(i!==!1&&typeof ga!="undefined"&&typeof ga.getAll!="undefined"){var t=!1;return ga.getAll().forEach(function(n){t=n.get("trackingId")}),t}return n},createVerticalScroll:function(){var t=this;t.is_scroll&&typeof t.scroll.recalculate=="undefined"&&(t.scroll=new asl_SimpleBar(t.n.results.get(0),{direction:n("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}))},initEvents:function(){var t=this;if(i()&&e())t.n.text.on("touchstart",function(){t.savedScrollTop=n(window).scrollTop();t.savedContainerTop=t.n.container.offset().top});t.n.text.on("click",function(){n(this).trigger("focus");t.gaEvent("focus")});t.n.text.on("focus input",function(){t.searching||(n(this).val()!=""?t.n.proclose.css("display","block"):t.n.proclose.css({display:"none"}))});n(t.n.text.parent()).on("submit",function(n){if(n.preventDefault(),i())if(t.o.redirect_on_enter){var r=jQuery.Event("keyup");r.keyCode=r.which=13;t.n.text.trigger(r)}else t.o.redirectEnterTo=="ajax_search"&&(t.search(),document.activeElement.blur());else t.o.redirectEnterTo=="ajax_search"&&t.search()});t.n.resultsDiv.css({opacity:0});n(document).on("click touchend",function(){(t.hideSettings(),t.opened!=!1&&t.o.closeOnDocClick==1)&&t.hideResults()});t.n.proclose.on("click touchend",function(){t.n.text.val("");t.n.textAutocomplete.val("");t.hideResults();t.n.text.trigger("focus")});n(t.elem).on("click touchend",function(n){n.stopImmediatePropagation()});t.n.resultsDiv.on("click touchend",function(n){n.stopImmediatePropagation()});t.n.searchsettings.on("click touchend",function(n){n.stopImmediatePropagation()});t.n.prosettings.on("click",function(){t.n.prosettings.data("opened")==0?t.showSettings():t.hideSettings()});var f=t.n.container.parents().filter(function(){return n(this).css("position")=="fixed"});if((f.length>0||t.n.container.css("position")=="fixed")&&(t.n.resultsDiv.css("position")=="absolute"&&t.n.resultsDiv.css("position","fixed"),t.n.resultsDiv.css("z-index",99999999999),t.o.blocking||t.n.searchsettings.css("position","fixed")),i())n(window).on("orientationchange",function(){t.orientationChange();setTimeout(function(){t.orientationChange()},800)});else{var r;n(window).on("resize",function(){clearTimeout(r);r=setTimeout(function(){t.resize()},100)})}var u;n(window).on("scroll",function(){clearTimeout(u);u=setTimeout(function(){t.scrolling(!1)},400)});e()&&i()&&parseInt(t.n.text.css("font-size"))<16&&(t.n.text.data("fontSize",t.n.text.css("font-size")).css("font-size","16px"),t.n.textAutocomplete.css("font-size","16px"),n("<style>#ajaxsearchlite"+t.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}<\/style>").appendTo("head"));t.initNavigationEvent();t.initMagnifierEvent();t.initAutocompleteEvent();t.initFacetEvents()},initAutop:function(){var n=this;if(t!=null&&n.triggerPrevState)return n.search(),t=null,!1},initEtc:function(){var t=this,r=null;n("div.asl_option",t.n.searchsettings).on("mouseup touchend",function(i){if(i.preventDefault(),i.stopImmediatePropagation(),t.dragging)return!1;n('input[type="checkbox"]',this).prop("checked",!n('input[type="checkbox"]',this).prop("checked"));clearTimeout(r);var u=this;r=setTimeout(function(){n('input[type="checkbox"]',u).trigger("asl_chbx_change")},50)});n("div.asl_option label",t.n.searchsettings).on("click",function(n){n.preventDefault()});t.n.resultsDiv.on("click",".results .item",function(){t.gaEvent("result_click",{result_title:n(this).find("a.asl_res_url").text(),result_url:n(this).find("a.asl_res_url").attr("href")});t.o.singleHighlight==1&&(localStorage.removeItem("asl_phrase_highlight"),c(t.n.text.val())!=""&&localStorage.setItem("asl_phrase_highlight",JSON.stringify({phrase:c(t.n.text.val()),id:t.o.id})))});if(i()&&t.o.mobile.menu_selector!="")n(t.o.mobile.menu_selector).on("touchend",function(){var i=this;setTimeout(function(){var r=n(i).find("input.orig");r=r.length==0?n(i).next().find("input.orig"):r;r=r.length==0?n(i).parent().find("input.orig"):r;r=r.length==0?t.n.text:r;t.n.container.is(":visible")&&r.get(0).focus()},300)})},initNavigationEvent:function(){var t=this;n(t.n.resultsDiv).on("mouseenter",".item",function(){n(".item",t.n.resultsDiv).removeClass("hovered");n(this).addClass("hovered")});n(t.n.resultsDiv).on("mouseleave",".item",function(){n(".item",t.n.resultsDiv).removeClass("hovered")});n(document).on("keydown",function(i){if(window.event)var r=window.event.keyCode,e=window.event.type;else if(i)var r=i.which,e=i.type;if(n(".item",t.n.resultsDiv).length>0&&t.n.resultsDiv.css("display")!="none"){if(r==40||r==38){r==40&&(t.n.text.blur(),n(".item.hovered",t.n.resultsDiv).length==0?n(".item",t.n.resultsDiv).first().addClass("hovered"):n(".item.hovered",t.n.resultsDiv).removeClass("hovered").next(".item").addClass("hovered"));r==38&&(t.n.text.blur(),n(".item.hovered",t.n.resultsDiv).length==0?n(".item",t.n.resultsDiv).last().addClass("hovered"):n(".item.hovered",t.n.resultsDiv).removeClass("hovered").prev(".item").addClass("hovered"));i.stopPropagation();i.preventDefault();var u=t.is_scroll?n(t.scroll.getScrollElement()):t.n.results,f=t.n.resultsDiv.find(".resdrg .item.hovered");f.length==0&&(f=t.n.resultsDiv.children().first());u.animate({scrollTop:f.offset().top-u.offset().top+u.scrollTop()},{duration:120})}r==13&&n(".item.hovered",t.n.resultsDiv).length>0&&(i.stopPropagation(),i.preventDefault(),n(".item.hovered a.asl_res_url",t.n.resultsDiv).get(0).click())}})},initMagnifierEvent:function(){var t=this,i,u,r=!1;t.n.text.on("keyup",function(f){if(window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):f&&(t.keycode=f.which,t.ktype=f.type),t.keycode==13){if(clearTimeout(u),u=setTimeout(function(){r=!1},300),r)return!1;r=!0}var e=n(this).hasClass("orig");if(t.n.text.val().length>=t.o.charcount&&e&&t.ktype=="keyup"&&t.keycode==13){if(t.gaEvent("return"),t.o.redirect_on_enter==1)t.o.redirectEnterTo!="first_result"?t.doRedirectToResults(t.ktype):t.search();else{if(t.o.redirectEnterTo=="nothing")return!1;n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&t.resultsOpened||t.search()}clearTimeout(i)}});t.n.promagnifier.add(t.n.text).on("click input",function(r){window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):r&&(t.keycode=r.which,t.ktype=r.type);var u=n(this).hasClass("orig");if(t.n.text.val().length<t.o.charcount){t.n.proloading.css("display","none");t.hideResults();t.post!=null&&t.post.abort();clearTimeout(i);return}if(t.n.text.val().length>=t.o.charcount&&!u&&t.o.redirectonclick==1&&t.ktype=="click"&&t.o.redirectClickTo!="first_result"){t.doRedirectToResults(t.ktype);clearTimeout(i);return}if((!(t.keycode>=37)||!(t.keycode<=40))&&(!(t.keycode>=112)||!(t.keycode<=123))){if(u&&t.ktype=="click"||t.keycode==32){n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&(t.n.proclose.css("display","block"),t.resultsOpened||t.showResults());return}n(this).hasClass("orig")&&t.ktype=="click"||(u||t.ktype!="click"||t.gaEvent("magnifier"),t.o.trigger_on_click!=0||t.ktype!="click")&&(t.o.triggerontype!=0||t.ktype!="input")&&(!u||t.ktype!="input"||t.o.redirectEnterTo!="nothing")&&(u||t.ktype!="click"||t.o.redirectClickTo!="nothing")&&(t.post!=null&&t.post.abort(),clearTimeout(i),t.hideLoader(),i=setTimeout(function(){if(n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()!=t.lastSuccesfulSearch)t.search();else{if(t.n.proclose.css("display","block"),t.isRedirectToFirstResult())return t.doRedirectToFirstResult(),!1;t.resultsOpened||t.showResults()}},250))}})},initFacetEvents:function(){var t=this,i=null;if(t.o.trigger_on_facet_change==1){n("input[type!=checkbox], select",t.n.searchsettings).on("change slidechange",function(){t.n.text.val().length<t.o.charcount||(t.post!=null&&t.post.abort(),clearTimeout(i),i=setTimeout(function(){t.search()},50))});n("input[type=checkbox]",t.n.searchsettings).on("asl_chbx_change",function(){t.n.text.val().length<t.o.charcount||(t.post!=null&&t.post.abort(),t.gaEvent("facet_change",{option_label:n(this).closest("fieldset").find("legend").text(),option_value:n(this).closest(".asl_option").find(".asl_option_label").text()+(n(this).prop("checked")?"(checked)":"(unchecked)")}),clearTimeout(i),i=setTimeout(function(){t.search()},50))})}},isRedirectToFirstResult:function(){var t=this;return n(".asl_res_url",t.n.resultsDiv).length>0&&(t.o.redirectonclick==1&&t.ktype=="click"&&t.o.redirectClickTo=="first_result"||t.o.redirect_on_enter==1&&(t.ktype=="input"||t.ktype=="keyup")&&t.keycode==13&&t.o.redirectEnterTo=="first_result")?!0:!1},doRedirectToFirstResult:function(){var t=this,i;return i=t.ktype=="click"?t.o.redirectClickLoc:t.o.redirectEnterLoc,i=="same"?location.href=n(n(".asl_res_url",t.n.resultsDiv).get(0)).attr("href"):l(n(n(".asl_res_url",t.n.resultsDiv).get(0)).attr("href")),t.hideLoader(),t.hideResults(),!1},doRedirectToResults:function(t){var i=this,o=i.ktype=="click"?i.o.redirectClickTo:i.o.redirectEnterTo,e=t=="click"?i.o.redirectClickLoc:i.o.redirectEnterLoc;if(o=="results_page")var u="?s="+r(i.n.text.val());else if(o=="woo_results_page")var u="?post_type=product&s="+r(i.n.text.val());else var u=i.o.redirect_url.replace("{phrase}",r(i.n.text.val()));if(i.o.homeurl.indexOf("?")>1&&u.indexOf("?")===0&&(u=u.replace("?","&")),i.o.overridewpdefault)if(i.o.override_method=="post")f(i.o.homeurl+u,"post",{asl_active:1,p_asl_data:n("form",i.n.searchsettings).serialize()},e);else{var s=i.o.homeurl+u+"&asl_active=1&p_asid="+i.o.id+"&p_asl_data=1&"+n("form",i.n.searchsettings).serialize();e=="same"?location.href=s:l(s)}else f(i.o.homeurl+u,"post",{np_asl_data:n("form",i.n.searchsettings).serialize()},e);i.n.proloading.css("display","none");i.hideLoader();i.hideResults();i.post!=null&&i.post.abort()},destroy:function(){return this.each(function(){var t=n.extend({},this,s);n(window).unbind(t)})},searchfor:function(t){n(".proinput input",this).val(t).trigger("keyup")},initAutocompleteEvent:function(){var t=this;if(t.o.autocomplete.enabled==1&&!i())t.n.text.on("keyup",function(i){window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):i&&(t.keycode=i.which,t.ktype=i.type);var r=39;n("body").hasClass("rtl")&&(r=37);t.keycode==r&&t.n.textAutocomplete.val()!=""?(i.preventDefault(),t.n.text.val(t.n.textAutocomplete.val()),t.post!=null&&t.post.abort(),t.search()):(t.postAuto!=null&&t.postAuto.abort(),t.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var t=this,i=t.n.text.val();if(t.n.text.val()==""){t.n.textAutocomplete.val("");return}var r=t.n.textAutocomplete.val();(r==""||r.indexOf(i)!=0)&&(t.n.textAutocomplete.val(""),n.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:i,hl:t.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(r){r[1].length>0&&(response=r[1][0][0].replace(/(<([^>]+)>)/ig,""),response=n("<textarea />").html(response).text(),response=response.substr(i.length),t.n.textAutocomplete.val(i+response))}}))},search:function(){var t=this;if((!t.searching||!0)&&!(t.n.text.val().length<t.o.charcount)){t.searching=!0;t.n.proloading.css({display:"block"});t.n.proclose.css({display:"none"});var i={action:"ajaxsearchlite_search",aslp:t.n.text.val(),asid:t.o.id,options:n("form",t.n.searchsettings).serialize()};if(i=h("asl_search_data",i),JSON.stringify(i)===JSON.stringify(t.lastSearchData))return(t.resultsOpened||t.showResults(),t.hideLoader(),t.isRedirectToFirstResult())?(t.doRedirectToFirstResult(),!1):!1;t.gaEvent("search_start");t.post=n.post(ASL.ajaxurl,i,function(u){u=u.replace(/^\s*[\r\n]/gm,"");u=u.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1];u=h("asl_search_html",u);t.n.resdrg.html("");t.n.resdrg.html(u);n(".asl_keyword",t.n.resdrg).on("click",function(){t.n.text.val(n(this).html());n("input.orig",t.n.container).val(n(this).html()).trigger("keydown");n("form",t.n.container).trigger("submit","ajax");t.search()});if(t.n.items=n(".item",t.n.resultsDiv),t.gaEvent("search_end",{results_count:t.n.items.length}),t.gaPageview(t.n.text.val()),t.isRedirectToFirstResult())return t.doRedirectToFirstResult(),!1;if(t.hideLoader(),t.showResults(),t.scrollToResults(),t.lastSuccesfulSearch=n("form",t.n.searchsettings).serialize()+t.n.text.val().trim(),t.lastSearchData=i,t.n.items.length==0)t.n.showmore!=null&&t.n.showmore.css("display","none");else if(t.n.showmore!=null){t.n.showmore.css("display","block");n("a",t.n.showmore).off();n("a",t.n.showmore).on("click",function(){var u=t.o.redirectClickTo,i="?s="+r(t.n.text.val());i=u=="results_page"?"?s="+r(t.n.text.val()):u=="woo_results_page"?"?post_type=product&s="+r(t.n.text.val()):t.o.redirect_url.replace("{phrase}",r(t.n.text.val()));t.o.overridewpdefault?t.o.override_method=="post"?f(t.o.homeurl+i,"post",{asl_active:1,p_asl_data:n("form",t.n.searchsettings).serialize()}):location.href=t.o.homeurl+i+"&asl_active=1&p_asid="+t.o.id+"&p_asl_data=1&"+n("form",t.n.searchsettings).serialize():f(t.o.homeurl+i,"post",{np_asl_data:n("form",t.n.searchsettings).serialize()})})}},"text").fail(function(i,r){i.aborted||r=="abort"||(t.n.resdrg.html(""),t.n.resdrg.html('<div class="asl_nores">The request failed. Please check your connection! Status: '+i.status+"<\/div>"),t.n.items=n(".item",t.n.resultsDiv),t.hideLoader(),t.showResults(),t.scrollToResults())})}},showLoader:function(){var n=this;n.n.proloading.css({display:"block"})},hideLoader:function(){var n=this;n.n.proloading.css({display:"none"});n.n.results.css("display","")},showResultsBox:function(){var n=this;n.n.resultsDiv.css({display:"block",height:"auto"});n.n.items.addClass(n.animationOpacity);n.fixResultsPosition(!0);n.n.resultsDiv.css(n.resAnim.showCSS);n.n.resultsDiv.removeClass(n.resAnim.hideClass).addClass(n.resAnim.showClass)},showResults:function(){var n=this;n.createVerticalScroll();switch(n.o.resultstype){case"vertical":n.showVerticalResults();break;default:n.showHorizontalResults()}n.hideLoader();n.n.proclose.css({display:"block"});n.n.showmore!=null&&(n.n.items.length>0?n.n.showmore.css({display:"block"}):n.n.showmore.css({display:"none"}));n.is_scroll&&typeof n.scroll.recalculate!="undefined"&&setTimeout(function(){n.scroll.recalculate()},500);n.resultsOpened=!0},hideResults:function(){var n=this;if(!n.resultsOpened)return!1;n.n.resultsDiv.removeClass(n.resAnim.showClass).addClass(n.resAnim.hideClass);setTimeout(function(){n.n.resultsDiv.css(n.resAnim.hideCSS)},n.resAnim.duration);n.n.proclose.css({display:"none"});n.n.showmore!=null&&n.n.showmore.css({display:"none"});i()&&document.activeElement.blur();n.resultsOpened=!1},scrollToResults:function(){if(($this=this,this.o.scrollToResults==1)&&!this.$elem.parent().hasClass("asl_preview_data")){if($this.o.resultsposition=="hover")var t=$this.n.probox.offset().top-20;else var t=$this.n.resultsDiv.offset().top-20;n("#wpadminbar").length>0&&(t-=n("#wpadminbar").height());t=t<0?0:t;n("body, html").animate({scrollTop:t},{duration:500})}},createGroup:function(n){return"<div class='group'>"+n+"<\/div>"},showVerticalResults:function(){var t=this;if(t.showResultsBox(),t.n.items.length>0){var e=t.n.items.length<t.o.itemscount?t.n.items.length:t.o.itemscount,h=n(".group",t.n.resultsDiv);if(t.n.items.length<=t.o.itemscount)t.n.results.css({height:"auto"});else{t.n.results.css({height:30});t.resize();var i=0,r=0,u=0,f=0;t.n.items.each(function(){r+=n(this).outerHeight(!0);n(this).outerHeight(!0)>f&&(f=n(this).outerHeight(!0));i++});u=f*e;u>r&&(u=r);i=i<1?1:i;r=r/i*e;t.n.results.css({height:u})}if(t.resize(),t.n.items.last().addClass("asl_last_item"),t.o.highlight==1){var o=t.o.highlightwholewords==1?!0:!1;n("div.item",t.n.resultsDiv).highlight(t.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:o})}}t.resize();t.n.items.length==0&&t.n.results.css({height:"auto"});t.n.results.css({overflowY:"auto"});var s=t.is_scroll?n(t.scroll.getScrollElement()):t.n.results;s.scrollTop(0);t.addAnimation();t.fixResultsPosition(!0);t.searching=!1},addAnimation:function(){var i=this,t=0,r=1;i.n.items.each(function(){var u=this;setTimeout(function(){n(u).addClass(i.animation)},t);t=t+60;r++})},removeAnimation:function(){var t=this;t.n.items.each(function(){var i=this;n(i).removeClass(t.animation)})},initSettingsAnimations:function(){var n=this,t=300;n.settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":t+"ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:t};n.n.searchsettings.css({"-webkit-animation-duration":n.settAnim.duration+"ms","animation-duration":n.settAnim.duration+"ms"})},initResultsAnimations:function(){var t=this,n=300;t.resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":n+"ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:n};t.n.resultsDiv.css({"-webkit-animation-duration":n+"ms","animation-duration":n+"ms"})},showSettings:function(){var t=this;t.n.searchsettings.css(t.settAnim.showCSS);t.n.searchsettings.removeClass(t.settAnim.hideClass).addClass(t.settAnim.showClass);t.settScroll==null&&t.is_scroll&&(t.settScroll=[],n(".asl_sett_scroll",t.n.searchsettings).each(function(i){var r=this;setTimeout(function(){t.settScroll[i]=new asl_SimpleBar(n(r).get(0),{direction:n("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0})},20)}));t.n.prosettings.data("opened",1);t.fixSettingsPosition(!0)},hideSettings:function(){var n=this;n.n.searchsettings.removeClass(n.settAnim.showClass).addClass(n.settAnim.hideClass);setTimeout(function(){n.n.searchsettings.css(n.settAnim.hideCSS)},n.settAnim.duration);n.n.prosettings.data("opened",0)},cleanUp:function(){var t=this;n(".searchsettings",t.n.container).length>0&&(n("body>#ajaxsearchlitesettings"+t.o.rid).remove(),n("body>#ajaxsearchliteres"+t.o.rid).remove())},orientationChange:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},resize:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},scrolling:function(n){var t=this;t.fixSettingsPosition(n);t.fixResultsPosition(n)},fixTryThisPosition:function(){},fixResultsPosition:function(t){t=typeof t=="undefined"?!1:t;var r=this,f=r.n.resultsDiv.css("position");if(f=="fixed"||f=="absolute"){var o=0;if(n("body").css("position")!="static"&&(o=n("body").offset().top),t==!0||r.n.resultsDiv.css("visibility")=="visible"){var s=0,h=0,u=r.n.container.offset();if(f=="fixed"&&(o=0,s=n(document).scrollTop(),h=n(document).scrollLeft(),i()&&e()&&r.n.text.is(":focus")&&(s=r.savedScrollTop,u.top=r.savedContainerTop)),typeof u!="undefined"){var c=r.n.container.outerWidth()<240?240:r.n.container.outerWidth();r.n.resultsDiv.outerWidth(c);r.n.resultsDiv.css({top:u.top+r.n.container.outerHeight(!0)+10-o-s,left:u.left-h})}}}},fixSettingsPosition:function(t){t=typeof t=="undefined"?!1:t;var r=this,s=0;if(n("body").css("position")!="static"&&(s=n("body").offset().top),(t==!0||r.n.prosettings.data("opened")!=0)&&r.o.blocking!=!0){if(r.fixSettingsWidth(),r.n.prosettings.css("display")!="none")var f=r.n.prosettings;else var f=r.n.promagnifier;var u=f.offset(),o=0,h=0;r.n.searchsettings.css("position")=="fixed"&&(o=n(window).scrollTop(),h=n(window).scrollLeft(),i()&&e()&&r.n.text.is(":focus")&&(u.top=r.savedContainerTop,o=r.savedScrollTop));r.o.settingsimagepos=="left"?r.n.searchsettings.css({display:"block",top:u.top+f.height()-2-s-o,left:u.left-h}):r.n.searchsettings.css({display:"block",top:u.top+f.height()-2-s-o,left:u.left+f.width()-r.n.searchsettings.width()-h})}},fixSettingsWidth:function(){}};function h(){return typeof wp!="undefined"&&typeof wp.hooks!="undefined"&&typeof wp.hooks.applyFilters!="undefined"?wp.hooks.applyFilters.apply(null,arguments):typeof arguments[1]!="undefined"?arguments[1]:!1}function i(){try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}}function o(t,i){var r=t.find(":input").get();return arguments.length===1?(i={},n.each(r,function(){!this.name||this.disabled||!(this.checked||/select|textarea/i.test(this.nodeName)||/text/i.test(this.type))||n(this).hasClass("asl_datepicker_field")||n(this).hasClass("asl_datepicker")||(i[this.name]==undefined&&(i[this.name]=[]),i[this.name].push(n(this).val()))}),JSON.stringify(i)):(typeof i!="object"&&(i=JSON.parse(i)),n.each(r,function(){if(this.name&&i[this.name]){var t=i[this.name],r=n(this);if(Object.prototype.toString.call(t)!=="[object Array]"&&(t=[t]),this.type=="checkbox"||this.type=="radio"){for(var e=r.val(),f=!1,u=0;u<t.length;u++)if(t[u]==e){f=!0;break}r.attr("checked",f)}else r.val(t[0])}}),t)}function r(n){return encodeURIComponent(n).replace(/\%20/g,"+")}function c(n){return n.replace(/"|'/g,"")}function f(t,i,r,u){"use strict";var f;f=n("<form />",{action:t,method:i,style:"display: none;"});typeof r!="undefined"&&r!==null&&n.each(r,function(t,i){n("<input />",{type:"hidden",name:t,value:i}).appendTo(f)});typeof u!="undefined"&&u=="new"&&f.attr("target","_blank");f.appendTo("body").trigger("submit")}function l(t){n('<a href="'+t+'" target="_blank">').get(0).click()}function e(){return typeof navigator!="undefined"&&typeof window.navigator.userAgent!="undefined"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1}function v(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");return t>0?!0:!1}typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});n.plugin=function(t,i){n.fn[t]=function(r){return this.each(function(){n.data(this,t)||n.data(this,t,Object.create(i).init(r,this))})}};n.plugin("ajaxsearchlite",s);var u={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var e="",o,t,i,h,c,s,r,f=0;for(n=u._utf8_encode(n);f<n.length;)o=n.charCodeAt(f++),t=n.charCodeAt(f++),i=n.charCodeAt(f++),h=o>>2,c=(o&3)<<4|t>>4,s=(t&15)<<2|i>>6,r=i&63,isNaN(t)?s=r=64:isNaN(i)&&(r=64),e=e+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(s)+this._keyStr.charAt(r);return e},decode:function(n){var t="",o,s,h,c,f,r,e,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)c=this._keyStr.indexOf(n.charAt(i++)),f=this._keyStr.indexOf(n.charAt(i++)),r=this._keyStr.indexOf(n.charAt(i++)),e=this._keyStr.indexOf(n.charAt(i++)),o=c<<2|f>>4,s=(f&15)<<4|r>>2,h=(r&3)<<6|e,t=t+String.fromCharCode(o),r!=64&&(t=t+String.fromCharCode(s)),e!=64&&(t=t+String.fromCharCode(h));return u._utf8_decode(t)},_utf8_encode:function(n){n=n.replace(/\r\n/g,"\n");for(var i="",r=0;r<n.length;r++){var t=n.charCodeAt(r);t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128))}return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}}}(jQuery),window.ASL=typeof ASL!="undefined"?window.ASL:{},window.ASL.getScope=function(){if(typeof jQuery!="undefined")if(typeof jQuery.fn.ajaxsearchlite=="undefined")for(var n=jQuery,t=jQuery,i=0;i<10;i++)if(typeof n.fn.ajaxsearchlite=="undefined")n=jQuery.noConflict(!0),console.log("ASL: executed one noconflict");else return n.fn.jquery!=t.fn.jquery&&(window.jQuery=window.$=t),n;else return jQuery;return typeof window[ASL.js_scope]!="undefined"?window[ASL.js_scope]:!1},window.ASL.initialized=!1,window.ASL.initialize=function(n){function f(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}function e(n){var t="",s,h,c,l,e,r,o,i=0,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)l=u.indexOf(n.charAt(i++)),e=u.indexOf(n.charAt(i++)),r=u.indexOf(n.charAt(i++)),o=u.indexOf(n.charAt(i++)),s=l<<2|e>>4,h=(e&15)<<4|r>>2,c=(r&3)<<6|o,t=t+String.fromCharCode(s),r!=64&&(t=t+String.fromCharCode(h)),o!=64&&(t=t+String.fromCharCode(c));return f(t)}var i=this;if(typeof i.getScope=="undefined"||typeof i.version=="undefined")return!1;var t=i.getScope(),u=".asl_init_data";if(typeof ASL_INSTANCES!="undefined"&&Object.keys(ASL_INSTANCES).length>0?t.each(ASL_INSTANCES,function(n,i){return typeof i=="undefined"?!1:t("#ajaxsearchlite"+n).hasClass("hasASL")?!1:(t("#ajaxsearchlite"+n).addClass("hasASL"),t("#ajaxsearchlite"+n).ajaxsearchlite(i))}):(typeof n!="undefined"&&(u="div[id*=asl_init_id_"+n+"]"),t(u).each(function(){var i=t(this).attr("id").match(/^asl_init_id_(.*)/)[1],n=t(this).data("asldata");if(typeof n=="undefined"||(n=e(n),typeof n=="undefined"||n==""))return!1;var r=JSON.parse(n);return t("#ajaxsearchlite"+i).addClass("hasASL"),t("#ajaxsearchlite"+i).ajaxsearchlite(r)})),i.highlight.enabled){var r=localStorage.getItem("asl_phrase_highlight");localStorage.removeItem("asl_phrase_highlight");r!=null&&(r=JSON.parse(r),t.each(i.highlight.data,function(n,i){var f=i.selector!=""&&t(i.selector).length>0?i.selector:"article";if(f=t(f).length>0?f:"body",t(f).highlight(r.phrase,{element:"span",className:"asl_single_highlighted",wordsOnly:i.whole,excludeParents:".asl_w, .asl-try"}),i.scroll&&t(".asl_single_highlighted").length>0){var u=t(".asl_single_highlighted").offset().top-120;t("#wpadminbar").length>0&&(u-=t("#wpadminbar").height());u=u+i.scroll_offset;u=u<0?0:u;t("html").animate({scrollTop:u},{duration:500})}return!1}))}i.initialized=!0},window.ASL.fixClones=function(){var t=this;if((t.fix_duplicates=t.fix_duplicates||0,t.fix_duplicates==0)||typeof t.getScope=="undefined")return!1;var n=t.getScope(),i={};n(".asl_init_data").each(function(){var t=n(this).attr("id").match(/^asl_init_id_(.*)/)[1];typeof i[t]=="undefined"?i[t]={rid:t,id:t,count:1}:i[t].count++});n.each(i,function(i,r){r.count>1&&n(".asl_m_"+r.rid).each(function(i){if(i==0)return!0;for(var f=n(this).parent(),u=r.id;n("#ajaxsearchlite"+u).length!=0;)u++;n(this).attr("id","ajaxsearchlite"+u);n(this).removeClass("asl_m_"+r.rid).addClass("asl_m_"+u);n(this).removeClass("hasASL");n(".asl_r_"+r.rid,this).length==0&&n(".asl_r_"+r.rid).clone().appendTo(n(this));n(".asl_r_"+r.rid,this).attr("id","ajaxsearchliteres"+u);n(".asl_r_"+r.rid,this).attr("data-id",u);n(".asl_r_"+r.rid,this).removeClass("asl_r_"+r.rid).addClass("asl_r_"+u);typeof ASL.resHTML!="undefined"&&n("#ajaxsearchliteres"+u).html(ASL.resHTML);n(".asl_s_"+r.rid,this).length==0&&n(".asl_s_"+r.rid).length!=0&&n(".asl_s_"+r.rid).clone().appendTo(n(this));n(".asl_sb_"+r.rid,this).length==0&&n(".asl_sb_"+r.rid).length!=0&&n(".asl_sb_"+r.rid).clone().appendTo(n(this));n(".asl_s_"+r.rid,this).attr("id","ajaxsearchlitesettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitesettings"+u).html(ASL.setHTML);n(".asl_sb_"+r.rid,f).attr("id","ajaxsearchlitebsettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitebsettings"+u).html(ASL.setHTML);n(".asl_hidden_data",f).length>0&&n(".asl_hidden_data",f).attr("id","asl_hidden_data_"+u);n(".asl_init_data",f).length>0&&n(".asl_init_data",f).attr("id","asl_init_id_"+u);t.initialize(u)})})},window.ASL.ready=function(){var t=this,i=t.getScope(),r=null;if(i===!1)return!1;i(function(){var n,i=0;n=setInterval(function(){if(++i,i>20||t.initialized)return clearInterval(n),!1;console.log("tries",i);t.initialize();clearInterval(n)},200);t.initialize();setTimeout(function(){t.fixClones()},2500)});typeof ASL.detect_ajax!="undefined"&&ASL.detect_ajax==1&&i("body").bind("DOMSubtreeModified",function(){clearTimeout(r);r=setTimeout(function(){t.initialize()},500)});var u;i(window).on("resize",function(){clearTimeout(u);u=setTimeout(function(){t.fixClones()},2e3)});var f,n="#menu-item-search, .fa-search, .fa, .fas";n=n+", .fusion-flyout-menu-toggle, .fusion-main-menu-search-open";n=n+", #search_button";n=n+", .mini-search.popup-search";n=n+", .icon-search";n=n+", .menu-item-search-dropdown";n=n+", .mobile-menu-button";n=n+", .td-icon-search, .tdb-search-icon";n=n+", .side_menu_button, .search_button";n=n+", .raven-search-form-toggle";n=n+", [data-elementor-open-lightbox], .elementor-button-link, .elementor-button";i(function(){i("body").on("click touchend",n,function(){clearTimeout(f);f=setTimeout(function(){t.initialize()},500)})})},window.ASL.loadScriptStack=function(n){if(n.length>0){var t=document.createElement("script");t.src=n.splice(0,1);t.onload=n.length==0?function(){typeof jQuery.fn.ajaxsearchlite!="undefined"&&(console.log("ASL: Initializing via onload.."),window.ASL.ready())}:function(){window.ASL.loadScriptStack(n)};console.log("ASL adding:",t.src);document.body.appendChild(t)}},window.ASL.init=function(){if(typeof jQuery=="undefined"||typeof jQuery.fn.ajaxsearchlite=="undefined"){console.log("ASL: jQuery script is probably deferred or delayed loading, trying to resolve");var n;window.asl_interval_tries=typeof asl_interval_tries!="undefined"?window.asl_interval_tries:0;n=setInterval(function(){return(++window.asl_interval_tries,window.asl_interval_tries>5)?(console.log("ASL: faliure, init tried",asl_interval_tries,"times"),clearInterval(n),typeof jQuery!="undefined"&&typeof ASL.min_script_src!="undefined"&&ASL.min_script_src!==null&&(console.log("ASL: jQuery exists, adding ASL script dynamically & trying to load."),ASL.loadScriptStack(ASL.min_script_src),ASL.min_script_src=null),!1):typeof jQuery!="undefined"&&typeof jQuery.fn.ajaxsearchlite!="undefined"?(window.ASL.ready(),console.log("ASL: success at try: ",window.asl_interval_tries),clearInterval(n),!1):void 0},250)}else window.ASL.ready()},typeof window.ASL.version=="undefined"){var asl_init_interval,asl_init_interval_tries=0;console.log("ASL: global not defined, trying to wait..");asl_init_interval=setInterval(function(){return++asl_init_interval_tries,typeof window.ASL.version!="undefined"||asl_init_interval_tries>10?(asl_init_interval_tries>10?console.log("ASL: global found at try ",asl_init_interval_tries):console.log("ASL: global not found, initializing anyways at try ",asl_init_interval_tries),window.ASL.init(),clearInterval(asl_init_interval),!0):void 0},100)}else window.ASL.init();
 
 
 
js/min/plugin/merged/asl-prereq-and-wrapper.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};if("undefined"!=typeof WPD.dom&&1<WPD.dom.version)return!1;WPD.dom=function(){if("undefined"==typeof WPD.dom.fn||"undefined"==typeof WPD.dom.fn.a)WPD.dom.fn={a:[],is_wpd_dom:!0,length:0,get:function(a){return"undefined"==typeof a?this.a.slice():"undefined"!=typeof this.a[a]?this.a[a]:null},_:function(a){return"<"===a.charAt(0)?WPD.dom._fn.createElementsFromHTML(a):Array.prototype.slice.call(document.querySelectorAll(a))},$:function(a,
2
+ b){let c=this.copy(this,!0);c.a="undefined"!=typeof b?null!==b?b.find(a).get():[]:"string"==typeof a?c._(a):null!==a?[a]:[];c.length=c.a.length;return c},extend:function(){for(let a=1;a<arguments.length;a++)for(let b in arguments[a])arguments[a].hasOwnProperty(b)&&(arguments[0][b]=arguments[a][b]);return arguments[0]},copy:function(a,b){let c,d,e;if("object"!=typeof a||null===a)return a;c=new a.constructor;for(d in a)a.hasOwnProperty(d)&&(e=typeof a[d],c[d]=b&&"object"===e&&null!==a[d]?this.copy(a[d]):
3
+ a[d]);return c},parent:function(a){let b=this.get(0),c=this.copy(this,!0);c.a=[];null!=b&&(b=b.parentElement,"undefined"!=typeof a?b.matches(a)&&(c.a=[b]):c.a=null==b?[]:[b]);return c},first:function(){let a=this.copy(this,!0);a.a="undefined"!=typeof a.a[0]?[a.a[0]]:[];a.length=a.a.length;return a},last:function(){let a=this.copy(this,!0);a.a=0<a.a.length?[a.a[a.a.length-1]]:[];a.length=a.a.length;return a},prev:function(a){let b=this.copy(this,!0);if("undefined"==typeof a)b.a="undefined"!=typeof b.a[0]&&
4
+ null!=b.a[0].previousElementSibling?[b.a[0].previousElementSibling]:[];else if("undefined"!=typeof b.a[0]){let c=b.a[0].previousElementSibling;for(b.a=[];null!=c;){if(c.matches(a)){b.a=[c];break}c=c.previousElementSibling}}b.length=b.a.length;return b},next:function(a){let b=this.copy(this,!0);if("undefined"==typeof a)b.a="undefined"!=typeof b.a[0]&&null!=b.a[0].nextElementSibling?[b.a[0].nextElementSibling]:[];else if("undefined"!=typeof b.a[0]){let c=b.a[0].nextElementSibling;for(b.a=[];null!=c;){if(c.matches(a)){b.a=
5
+ [c];break}c=c.nextElementSibling}}b.length=b.a.length;return b},closest:function(a){let b=this.get(0),c=this.copy(this,!0);c.a=[];if("string"===typeof a){if(null!==b&&"undefined"!=typeof b.matches&&""!==a){if(!b.matches(a))for(;(b=b.parentElement)&&!b.matches(a););c.a=null==b?[]:[b]}}else if(null!==b&&"undefined"!=typeof b.matches&&"undefined"!=typeof a.matches){if(b!==a)for(;(b=b.parentElement)&&b!==a;);c.a=null==b?[]:[b]}c.length=c.a.length;return c},add:function(a){if("undefined"!==typeof a)if("undefined"!==
6
+ typeof a.nodeType)-1==this.a.indexOf(a)&&this.a.push(a);else if("undefined"!==typeof a.a){let b=this;a.a.forEach(function(c){-1==b.a.indexOf(c)&&b.a.push(c)})}return this},find:function(a){let b=this.copy(this,!0);b.a=[];this.forEach(function(c){null!==c&&"undefined"!=typeof c.querySelectorAll&&(b.a=b.a.concat(Array.prototype.slice.call(c.querySelectorAll(a))))});b.length=b.a.length;return b},forEach:function(a){this.a.forEach(function(b,c,d){a.apply(b,[b,c,d])});return this},each:function(a){return this.forEach(a)},
7
+ hasClass:function(a){let b=this.get(0);return null!=b?b.classList.contains(a):!1},addClass:function(a){let b=a;"string"==typeof a&&(b=a.split(" "));b=b.filter(function(c){return""!==c.trim()});0<b.length&&this.forEach(function(c){c.classList.add.apply(c.classList,b)});return this},removeClass:function(a){if("undefined"!=typeof a){let b=a;"string"==typeof a&&(b=a.split(" "));b=b.filter(function(c){return""!==c.trim()});0<b.length&&this.forEach(function(c){c.classList.remove.apply(c.classList,b)})}else this.forEach(function(b){0<
8
+ b.classList.length&&b.classList.remove.apply(b.classList,b.classList)});return this},is:function(a){let b=this.get(0);return null!=b?b.matches(a):!1},val:function(a){let b=this.get(0);if(null!=b)if(1==arguments.length)if("select-multiple"==b.type){a="string"===typeof a?a.split(","):a;for(let c=0,d=b.options.length,e;c<d;c++)e=b.options[c],e.selected=-1!=a.indexOf(e.value)}else b.value=a;else return"select-multiple"==b.type?Array.prototype.map.call(b.selectedOptions,function(c){return c.value}):b.value;
9
+ return this},isVisible:function(){let a=this.get(0),b=!0,c;for(;null!==a;){c=window.getComputedStyle(a);if("none"==c.display||"hidden"==c.visibility||0==c.opacity){b=!1;break}a=a.parentElement}return b},attr:function(a,b){let c,d=arguments,e=this;this.forEach(function(f){2==d.length?(f.setAttribute(a,b),c=e):"object"===typeof a?Object.keys(a).forEach(function(g){f.setAttribute(g,a[g])}):c=f.getAttribute(a)});return c},removeAttr:function(a){this.forEach(function(b){b.removeAttribute(a)});return this},
10
+ prop:function(a,b){let c,d=arguments;this.forEach(function(e){2==d.length?e[a]=b:c="undefined"!=typeof e[a]?e[a]:null});return 2==d.length?this:c},data:function(a,b){let c=this.get(0),d=a.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});return null!=c?2==arguments.length?(c.dataset[d]=b,this):"undefined"==typeof c.dataset[d]?"":c.dataset[d]:""},html:function(a){let b=this.get(0);return null!=b?1==arguments.length?(b.innerHTML=a,this):b.innerHTML:""},text:function(a){let b=this.get(0);return null!=
11
+ b?1==arguments.length?(b.textContent=a,this):b.textContent:""},css:function(a,b){let c=this.get(),d;for(let e=0;e<c.length;e++)if(d=c[e],1==arguments.length)if("object"==typeof a)Object.keys(a).forEach(function(f){d.style[f]=a[f]});else return window.getComputedStyle(d)[a];else d.style[a]=b;return this},position:function(){let a=this.get(0);return null!=a?{top:a.offsetTop,left:a.offsetLeft}:{top:0,left:0}},offset:function(){let a=this.get(0);return null!=a?WPD.dom._fn.hasFixedParent(a)?a.getBoundingClientRect():
12
+ WPD.dom._fn.absolutePosition(a):{top:0,left:0}},outerWidth:function(a){a=a||!1;let b=this.get(0);if(null!=b)return a?parseInt(b.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(b.offsetWidth)},outerHeight:function(a){return a?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height"))},width:function(){return this.outerWidth()},height:function(){return this.outerHeight()},on:function(){let a=arguments,
13
+ b=function(e,f){let g;if("mouseenter"==f.type||"mouseleave"==f.type||"hover"==f.type){var h=document.elementFromPoint(f.clientX,f.clientY);if(!h.matches(e[1]))for(;(h=h.parentElement)&&!h.matches(e[1]););null!=h&&(g=WPD.dom(h))}else g=WPD.dom(f.target).closest(e[1]);if(null!=g&&0<g.closest(this).length){h=[];h.push(f);if("undefined"!=typeof e[4])for(f=4;f<e.length;f++)h.push(e[f]);e[2].apply(g.get(0),h)}},c=function(e,f){let g=[];g.push(f);if("undefined"!=typeof e[3])for(f=3;f<e.length;f++)g.push(e[f]);
14
+ e[1].apply(this,g)},d=a[0].split(" ");for(let e=0;e<d.length;e++){let f=d[e];"string"==typeof a[1]?this.forEach(function(g){if(!WPD.dom._fn.hasEventListener(g,f,a[2])){let h=b.bind(g,a);g.addEventListener(f,h,a[3]);g._wpd_el="undefined"==typeof g._wpd_el?[]:g._wpd_el;g._wpd_el.push({type:f,selector:a[1],func:h,trigger:a[2],args:a[3]})}}):this.forEach(function(g){if(!WPD.dom._fn.hasEventListener(g,f,a[1])){let h=c.bind(g,a);g.addEventListener(f,h,a[2]);g._wpd_el="undefined"==typeof g._wpd_el?[]:g._wpd_el;
15
+ g._wpd_el.push({type:f,func:h,trigger:a[1],args:a[2]})}})}return this},off:function(a,b){this.forEach(function(c){if("undefined"!=typeof c._wpd_el&&0<c._wpd_el.length)if("undefined"===typeof a){let d;for(;d=c._wpd_el.pop();)c.removeEventListener(d.type,d.func,d.args);c._wpd_el=[]}else a.split(" ").forEach(function(d){if("undefined"==typeof b){let e;for(;e=c._wpd_el.pop();)c.removeEventListener(d,e.func,e.args);c._wpd_el=[]}else{let e=[];c._wpd_el.forEach(function(f){f.type==d&&f.trigger==b?c.removeEventListener(d,
16
+ f.func,f.args):e.push(f)});c._wpd_el=e}})});return this},offForced:function(){let a=this;this.forEach(function(b,c){let d=b.cloneNode(!0);b.parentNode.replaceChild(d,b);a.a[c]=d});return this},trigger:function(a,b,c,d){c=c||!1;d=d||!1;this.forEach(function(e){var f=!1;d&&"undefined"!=typeof jQuery&&"undefined"!=typeof jQuery._data&&"undefined"!=typeof jQuery._data(e,"events")&&"undefined"!=typeof jQuery._data(e,"events")[a]&&(jQuery(e).trigger(a,b),f=!0);!f&&c&&(f=new Event(a),f.detail=b,e.dispatchEvent(f));
17
+ if("undefined"!=typeof e._wpd_el)e._wpd_el.forEach(function(g){if(g.type==a){let h=new Event(a);g.trigger.apply(e,[h].concat(b))}});else{let g=!1,h=e;for(;;){h=h.parentElement;if(null==h)break;"undefined"!=typeof h._wpd_el&&h._wpd_el.forEach(function(k){if("undefined"!==typeof k.selector){var m=WPD.dom(h).find(k.selector);0<m.length&&0<=m.get().indexOf(e)&&k.type==a&&(m=new Event(a),k.trigger.apply(e,[m].concat(b)),g=!0)}});if(g)break}}});return this},clone:function(){let a=this.get(0);null!=a?(this.a=
18
+ [a.cloneNode(!0)],this.length=this.a.length):this.a=[];this.length=this.a.length;return this},remove:function(a){if("undefined"!=typeof a)return a.parentElement.removeChild(a);this.forEach(function(b){if(null!=b.parentElement)return b.parentElement.removeChild(b)});this.a=[];this.length=this.a.length;return null},detach:function(){let a=this,b=[];this.forEach(function(c){c=a.remove(c);null!=c&&b.push(c)});this.a=b;this.length=this.a.length;return this},prepend:function(a){"string"==typeof a&&(a=WPD.dom._fn.createElementsFromHTML(a));
19
+ a=Array.isArray(a)?a:[a];this.forEach(function(b){a.forEach(function(c){"undefined"!=typeof c.is_wpd_dom?c.forEach(function(d){b.insertBefore(d,b.children[0])}):b.insertBefore(c,b.children[0])})});return this},append:function(a){"string"==typeof a&&(a=WPD.dom._fn.createElementsFromHTML(a));a=Array.isArray(a)?a:[a];this.forEach(function(b){a.forEach(function(c){null!=c&&("undefined"!=typeof c.is_wpd_dom?c.forEach(function(d){b.appendChild(d)}):b.appendChild(c.cloneNode(!0)))})});return this},uuidv4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
20
+ function(a){let b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}},WPD.dom._fn={bodyTransformY:function(){if("undefined"!==typeof WebKitCSSMatrix){var a=window.getComputedStyle(document.body);if("undefined"!=typeof a.transform&&(a=new WebKitCSSMatrix(a.transform),"undefined"!=a.m42))return a.m42}return 0},hasFixedParent:function(a){if(0!=WPD.dom._fn.bodyTransformY())return!1;do if("fixed"==window.getComputedStyle(a).position)return!0;while(a=a.parentElement);return!1},hasEventListener:function(a,
21
+ b,c){if("undefined"==typeof a._wpd_el)return!1;for(let d=0;d<a._wpd_el.length;d++)if(a._wpd_el[d].trigger==c&&a._wpd_el[d].type==b)return!0;return!1},allDescendants:function(a){let b=[],c=this;Array.isArray(a)||(a=[a]);a.forEach(function(d){for(let e=0;e<d.childNodes.length;e++){let f=d.childNodes[e];b.push(f);b=b.concat(c.allDescendants(f))}});return b},createElementsFromHTML:function(a){let b=document.createElement("template");b.innerHTML=a.replace(/(\r\n|\n|\r)/gm,"");return Array.prototype.slice.call(b.content.childNodes)},
22
+ absolutePosition:function(a){if(!a.getClientRects().length)return{top:0,left:0};let b=a.getBoundingClientRect();a=a.ownerDocument.defaultView;return{top:b.top+a.pageYOffset,left:b.left+a.pageXOffset}},plugin:function(a,b){WPD.dom.fn[a]=function(c){return"undefined"!=typeof c&&b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):this.each(function(d){d["wpd_dom_"+a]=Object.create(b).init(c,d)})}}},WPD.dom.version=1;return 1<=arguments.length?WPD.dom.fn.$.apply(WPD.dom.fn,arguments):WPD.dom.fn};
23
+ WPD.dom();document.dispatchEvent(new Event("wpd-dom-core-loaded"))})();
24
+ (function(){WPD.dom.fn._animate={easing:{linear:function(a){return a},easeInOutQuad:function(a){return.5>a?2*a*a:1-Math.pow(-2*a+2,2)/2},easeOutQuad:function(a){return 1-(1-a)*(1-a)}}};WPD.dom.fn.animate=function(a,b,c){let d=this;b=b||200;c=c||"linear";this.forEach(function(e){let f,g=0,h,k={},m={},n,p,q;n=d.prop("_wpd_dom_animations");n=null==n?[]:n;!1===a?n.forEach(function(l){clearInterval(l)}):(q="undefined"!=typeof d._animate.easing[c]?d._animate.easing[c]:d._animate.easing.easeInOutQuad,Object.keys(a).forEach(function(l){-1<
25
+ l.indexOf("scroll")?k[l]=e[l]:k[l]=parseInt(window.getComputedStyle(e)[l]);m[l]=a[l]-k[l]}),f=b/1E3*60,p=setInterval(function(){g++;g>f?clearInterval(p):(h=q(g/f),Object.keys(m).forEach(function(l){-1<l.indexOf("scroll")?e[l]=k[l]+m[l]*h:e.style[l]=k[l]+m[l]*h+"px"}))},1E3/60),n.push(p),d.prop("_wpd_dom_animations",n))});return this};document.dispatchEvent(new Event("wpd-dom-animate-loaded"))})();
26
+ (function(){let a=WPD.dom;WPD.dom.fn.unhighlight=function(b){let c={className:"highlight",element:"span"};a.extend(c,b);return this.find(c.element+"."+c.className).each(function(){let d=this.parentNode;d.replaceChild(this.firstChild,this);d.normalize()})};WPD.dom.fn.highlight=function(b,c){function d(g,h,k,m,n){n=""==n?".exhghttt":n;if(3===g.nodeType){if(h=g.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(h))return k=document.createElement(k||"span"),k.className=m||"highlight",m=/\.|,|\s/.test(h[0].charAt(0))?
27
+ h.index+1:h.index,g=g.splitText(m),g.splitText(h[1].length),m=g.cloneNode(!0),k.appendChild(m),g.parentNode.replaceChild(k,g),1}else if(1===g.nodeType&&g.childNodes&&!/(script|style)/i.test(g.tagName)&&0< !a(g).closest(n).length&&(g.tagName!==k.toUpperCase()||g.className!==m))for(let p=0;p<g.childNodes.length;p++)p+=d(g.childNodes[p],h,k,m,n);return 0}let e={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};a.fn.extend(e,c);b.constructor===String&&(b=[b]);b=b.filter(function(g){return""!=
28
+ g});b.forEach(function(g,h,k){k[h].replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")});if(0==b.length)return this;c=e.caseSensitive?"":"i";b="("+b.join("|")+")";e.wordsOnly&&(b="(?:,|^|\\s)"+b+"(?:,|$|\\s)");let f=new RegExp(b,c);return this.each(function(g){d(g,f,e.element,e.className,e.excludeParents)})}})();
29
+ (function(){WPD.dom.fn.serialize=function(){let a=this.get(0);if(a&&"FORM"===a.nodeName){var b,c,d=[];for(b=a.elements.length-1;0<=b;--b)if(""!==a.elements[b].name)switch(a.elements[b].nodeName){case "INPUT":switch(a.elements[b].type){case "text":case "hidden":case "password":case "button":case "reset":case "submit":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case "checkbox":case "radio":a.elements[b].checked&&d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value))}break;
30
+ case "TEXTAREA":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case "SELECT":switch(a.elements[b].type){case "select-one":d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].value));break;case "select-multiple":for(c=a.elements[b].options.length-1;0<=c;--c)a.elements[b].options[c].selected&&d.push(a.elements[b].name+"="+encodeURIComponent(a.elements[b].options[c].value))}break;case "BUTTON":switch(a.elements[b].type){case "reset":case "submit":case "button":d.push(a.elements[b].name+
31
+ "="+encodeURIComponent(a.elements[b].value))}}return d.join("&")}};WPD.dom.fn.serializeForAjax=function(a,b){let c=[],d;for(d in a)if(a.hasOwnProperty(d)){let e=b?b+"["+d+"]":d,f=a[d];c.push(null!==f&&"object"===typeof f?WPD.dom.fn.serializeForAjax(f,e):encodeURIComponent(e)+"="+encodeURIComponent(f))}return c.join("&")};document.dispatchEvent(new Event("wpd-dom-serialize-loaded"))})();
32
+ (function(){WPD.dom.fn.inViewPort=function(a,b){var c=this.get(0);let d;if(null==c)return!1;a="undefined"==typeof a?0:a;b="undefined"==typeof b?window:"string"==typeof b?document.querySelector(b):b;var e=c.getBoundingClientRect();c=e.top;let f=e.bottom,g=e.left,h=e.right;null==b&&(b=window);b===window?(e=window.innerWidth||0,d=window.innerHeight||0):(e=b.clientWidth,d=b.clientHeight,b=b.getBoundingClientRect(),c-=b.top,f-=b.top,g-=b.left,h-=b.left);a=~~Math.round(parseFloat(a));return 0>=h||g>=e?
33
+ !1:0<a?c>=a&&f<d-a:(0<f&&c<=d-a)|(0>=c&&f>a)};document.dispatchEvent(new Event("wpd-dom-viewport-loaded"))})();
34
+ (function(){WPD.dom.fn.ajax=function(a){a=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},a);if("cors"!=a.cors){var b="ajax_cb_"+this.uuidv4().replaceAll("-","");WPD.dom.fn[b]=function(){a.success.apply(this,arguments);delete WPD.dom.fn[a.data.fn]};a.data.callback="WPD.dom.fn."+b;a.data.fn=b;b=document.createElement("script");b.type="text/javascript";b.src=a.url+"?"+this.serializeForAjax(a.data);
35
+ b.onload=function(){this.remove()};document.body.appendChild(b)}else return b=new XMLHttpRequest,b.onreadystatechange=function(){null!=a.success&&4==this.readyState&&200==this.status&&a.success(this.responseText);null!=a.fail&&4==this.readyState&&400<=this.status&&a.fail(this)},b.open(a.method.toUpperCase(),a.url,!0),b.setRequestHeader("Content-type",a.contentType),b.setRequestHeader("Accept",a.accept),b.send(this.serializeForAjax(a.data)),b};document.dispatchEvent(new Event("wpd-dom-xhttp-loaded"))})();
36
+ window.WPD=window.WPD||{};
37
+ window.WPD.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){let b="";let c,d,e,f,g,h=0;for(a=this._utf8_encode(a);h<a.length;){var k=a.charCodeAt(h++);c=a.charCodeAt(h++);d=a.charCodeAt(h++);e=k>>2;k=(k&3)<<4|c>>4;f=(c&15)<<2|d>>6;g=d&63;isNaN(c)?f=g=64:isNaN(d)&&(g=64);b=b+this._keyStr.charAt(e)+this._keyStr.charAt(k)+this._keyStr.charAt(f)+this._keyStr.charAt(g)}return b},decode:function(a){let b="";let c,d,e,f=0;for(a=a.replace(/[^A-Za-z0-9\+\/=]/g,
38
+ "");f<a.length;){var g=this._keyStr.indexOf(a.charAt(f++));var h=this._keyStr.indexOf(a.charAt(f++));d=this._keyStr.indexOf(a.charAt(f++));e=this._keyStr.indexOf(a.charAt(f++));g=g<<2|h>>4;h=(h&15)<<4|d>>2;c=(d&3)<<6|e;b+=String.fromCharCode(g);64!=d&&(b+=String.fromCharCode(h));64!=e&&(b+=String.fromCharCode(c))}return b=this._utf8_decode(b)},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");let b="";for(let c=0;c<a.length;c++){let d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):(127<d&&2048>
39
+ d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){let b="",c=0,d,e,f;for(;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(e=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|e&63),c+=2):(e=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),c+=3);return b}};
40
+ (function(){window.WPD=window.WPD||{};WPD.Hooks=WPD.Hooks||{};let a=WPD.Hooks;a.filters=a.filters||{};a.addFilter=function(b,c,d,e){a.filters[b]=a.filters[b]||[];a.filters[b].push({priority:"undefined"===typeof d?10:d,scope:"undefined"===typeof e?null:e,callback:c})};a.removeFilter=function(b,c){"undefined"!=typeof a.filters[b]&&("undefined"==typeof c?a.filters[b]=[]:a.filters[b].forEach(function(d,e){d.callback===c&&a.filters[b].splice(e,1)}))};a.applyFilters=function(b){let c=[],d=Array.prototype.slice.call(arguments),
41
+ e=arguments[1];"undefined"!==typeof a.filters[b]&&0<a.filters[b].length&&(a.filters[b].forEach(function(f){c[f.priority]=c[f.priority]||[];c[f.priority].push({scope:f.scope,callback:f.callback})}),d.splice(0,2),c.forEach(function(f){f.forEach(function(g){e=g.callback.apply(g.scope,[e].concat(d))})}));return e}})();window.WPD=window.WPD||{};
42
+ window.WPD.intervalUntilExecute=function(a,b,c,d){let e,f=0,g="function"===typeof b?b():b;c="undefined"==typeof c?100:c;d="undefined"==typeof d?50:d;if(!1===g)e=setInterval(function(){g="function"===typeof b?b():b;f++;if(f>d)return clearInterval(e),!1;if(!1!==g)return clearInterval(e),a(g)},c);else return a(g)};
43
+ window._ASL_load=function(){let a=WPD.dom;window.ASL.instances={instances:[],get:function(b,c){this.clean();if("undefined"===typeof b||0==b)return this.instances;if("undefined"===typeof c){c=[];for(var d=0;d<this.instances.length;d++)this.instances[d].o.id==b&&c.push(this.instances[d]);return 0<c.length?c:!1}for(d=0;d<this.instances.length;d++)if(this.instances[d].o.id==b&&this.instances[d].o.iid==c)return this.instances[d];return!1},set:function(b){if(this.exist(b.o.id,b.o.iid))return!1;this.instances.push(b);
44
+ return!0},exist:function(b,c){this.clean();for(let d=0;d<this.instances.length;d++)if(this.instances[d].o.id==b&&("undefined"===typeof c||this.instances[d].o.iid==c))return!0;return!1},clean:function(){let b=[],c=this;this.instances.forEach(function(d,e){0==a(".asl_m_"+d.o.rid).length&&b.push(e)});b.forEach(function(d){"undefined"!==typeof c.instances[d]&&(c.instances[d].destroy(),c.instances.splice(d,1))})},destroy:function(b,c){let d=this.get(b,c);if(!1!==d)if(Array.isArray(d))d.forEach(function(e){e.destroy()}),
45
+ this.instances=[];else{let e=0;this.instances.forEach(function(f,g){f.o.id==b&&f.o.iid==c&&(e=g)});d.destroy();this.instances.splice(e,1)}}};window.ASL.initialized=!1;window.ASL.initializeById=function(b,c){let d=".asl_init_data";c="undefined"==typeof c?!1:c;"undefined"!==typeof b&&"object"!=typeof b&&(d="div[id*=asl_init_id_"+b+"]");let e=0;a(d).forEach(function(f){let g=a(f).closest(".asl_w_container").find(".asl_m");if(0==g.length||"undefined"!=typeof g.get(0).hasAsl)return++e,!0;if(!c&&!g.inViewPort(-100))return!0;
46
+ f=a(f).data("asldata");if("undefined"===typeof f)return!0;f=WPD.Base64.decode(f);if("undefined"===typeof f||""==f)return!0;f=JSON.parse(f);g.get(0).hasAsl=!0;++e;return g.ajaxsearchlite(f)});a(d).length==e&&(document.removeEventListener("scroll",ASL.initializeById),document.removeEventListener("resize",ASL.initializeById))};window.ASL.initialize=function(b){if("undefined"==typeof this.version)return!1;ASL.script_async_load?(document.addEventListener("scroll",ASL.initializeById,{passive:!0}),document.addEventListener("resize",
47
+ ASL.initializeById,{passive:!0}),ASL.initializeById(b)):ASL.initializeById(b,!0);if(this.highlight.enabled){let c=localStorage.getItem("asl_phrase_highlight");localStorage.removeItem("asl_phrase_highlight");null!=c&&(c=JSON.parse(c),this.highlight.data.forEach(function(d){var e=""!=d.selector&&0<a(d.selector).length?d.selector:"article";e=0<a(e).length?e:"body";a(e).highlight(c.phrase,{element:"span",className:"asl_single_highlighted",wordsOnly:d.whole,excludeParents:".asl_w, .asl-try"});e=a(".asl_single_highlighted");
48
+ if(d.scroll&&0<e.length){e=e.offset().top-120;let f=a("#wpadminbar");0<f.length&&(e-=f.height());e+=d.scroll_offset;e=0>e?0:e;a("html").animate({scrollTop:e},500)}return!1}))}this.initialized=!0};window.ASL.ready=function(){let b=this,c=a("body"),d,e,f;ASL.script_async_load&&b.initialize();a(document).on("DOMContentLoaded",function(){b.initialize()});if("undefined"!=typeof ASL.detect_ajax&&1==ASL.detect_ajax){let g=new MutationObserver(function(){clearTimeout(d);d=setTimeout(function(){b.initialize()},
49
+ 500)});function h(){let k=document.querySelector("body");k?g.observe(k,{subtree:!0,childList:!0}):window.setTimeout(h,500)}h()}a(window).on("resize",function(){clearTimeout(e);e=setTimeout(function(){b.initializeById()},200)});c.on("click touchend","#menu-item-search, .fa-search, .fa, .fas, .fusion-flyout-menu-toggle, .fusion-main-menu-search-open, #search_button, .mini-search.popup-search, .icon-search, .menu-item-search-dropdown, .mobile-menu-button, .td-icon-search, .tdb-search-icon, .side_menu_button, .search_button, .raven-search-form-toggle, [data-elementor-open-lightbox], .elementor-button-link, .elementor-button, i[class*=-search], a[class*=-search]",
50
+ function(){clearTimeout(f);f=setTimeout(function(){b.initializeById({},!0)},300)});if("undefined"!=typeof jQuery)jQuery(document).on("elementor/popup/show",function(){setTimeout(function(){b.initializeById({},!0)},10)})};window.ASL.loadScriptStack=function(b){let c;0<b.length&&(c=document.createElement("script"),c.src=b.shift().src,c.onload=function(){0<b.length?window.ASL.loadScriptStack(b):window.ASL.ready()},document.body.appendChild(c))};window.ASL.init=function(){ASL.script_async_load?window.ASL.loadScriptStack(ASL.additional_scripts):
51
+ "undefined"!==typeof WPD.ajaxsearchlite&&window.ASL.ready()};window.ASL.css_async&&"undefined"==typeof window.ASL.css_loaded||window.WPD.intervalUntilExecute(window.ASL.init,function(){return"undefined"!=typeof window.ASL.version&&"undefined"!=a.fn.ajaxsearchlite})};(function(){"undefined"!=typeof WPD&&"undefined"!=typeof WPD.dom?window._ASL_load():document.addEventListener("wpd-dom-core-loaded",window._ASL_load)})();
js/min/plugin/merged/asl.js ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};if("undefined"!=typeof WPD.dom&&1<WPD.dom.version)return!1;WPD.dom=function(){if("undefined"==typeof WPD.dom.fn||"undefined"==typeof WPD.dom.fn.a)WPD.dom.fn={a:[],is_wpd_dom:!0,length:0,get:function(c){return"undefined"==typeof c?this.a.slice():"undefined"!=typeof this.a[c]?this.a[c]:null},_:function(c){return"<"===c.charAt(0)?WPD.dom._fn.createElementsFromHTML(c):Array.prototype.slice.call(document.querySelectorAll(c))},$:function(c,
2
+ a){let b=this.copy(this,!0);b.a="undefined"!=typeof a?null!==a?a.find(c).get():[]:"string"==typeof c?b._(c):null!==c?[c]:[];b.length=b.a.length;return b},extend:function(){for(let c=1;c<arguments.length;c++)for(let a in arguments[c])arguments[c].hasOwnProperty(a)&&(arguments[0][a]=arguments[c][a]);return arguments[0]},copy:function(c,a){let b,d,e;if("object"!=typeof c||null===c)return c;b=new c.constructor;for(d in c)c.hasOwnProperty(d)&&(e=typeof c[d],b[d]=a&&"object"===e&&null!==c[d]?this.copy(c[d]):
3
+ c[d]);return b},parent:function(c){let a=this.get(0),b=this.copy(this,!0);b.a=[];null!=a&&(a=a.parentElement,"undefined"!=typeof c?a.matches(c)&&(b.a=[a]):b.a=null==a?[]:[a]);return b},first:function(){let c=this.copy(this,!0);c.a="undefined"!=typeof c.a[0]?[c.a[0]]:[];c.length=c.a.length;return c},last:function(){let c=this.copy(this,!0);c.a=0<c.a.length?[c.a[c.a.length-1]]:[];c.length=c.a.length;return c},prev:function(c){let a=this.copy(this,!0);if("undefined"==typeof c)a.a="undefined"!=typeof a.a[0]&&
4
+ null!=a.a[0].previousElementSibling?[a.a[0].previousElementSibling]:[];else if("undefined"!=typeof a.a[0]){let b=a.a[0].previousElementSibling;for(a.a=[];null!=b;){if(b.matches(c)){a.a=[b];break}b=b.previousElementSibling}}a.length=a.a.length;return a},next:function(c){let a=this.copy(this,!0);if("undefined"==typeof c)a.a="undefined"!=typeof a.a[0]&&null!=a.a[0].nextElementSibling?[a.a[0].nextElementSibling]:[];else if("undefined"!=typeof a.a[0]){let b=a.a[0].nextElementSibling;for(a.a=[];null!=b;){if(b.matches(c)){a.a=
5
+ [b];break}b=b.nextElementSibling}}a.length=a.a.length;return a},closest:function(c){let a=this.get(0),b=this.copy(this,!0);b.a=[];if("string"===typeof c){if(null!==a&&"undefined"!=typeof a.matches&&""!==c){if(!a.matches(c))for(;(a=a.parentElement)&&!a.matches(c););b.a=null==a?[]:[a]}}else if(null!==a&&"undefined"!=typeof a.matches&&"undefined"!=typeof c.matches){if(a!==c)for(;(a=a.parentElement)&&a!==c;);b.a=null==a?[]:[a]}b.length=b.a.length;return b},add:function(c){if("undefined"!==typeof c)if("undefined"!==
6
+ typeof c.nodeType)-1==this.a.indexOf(c)&&this.a.push(c);else if("undefined"!==typeof c.a){let a=this;c.a.forEach(function(b){-1==a.a.indexOf(b)&&a.a.push(b)})}return this},find:function(c){let a=this.copy(this,!0);a.a=[];this.forEach(function(b){null!==b&&"undefined"!=typeof b.querySelectorAll&&(a.a=a.a.concat(Array.prototype.slice.call(b.querySelectorAll(c))))});a.length=a.a.length;return a},forEach:function(c){this.a.forEach(function(a,b,d){c.apply(a,[a,b,d])});return this},each:function(c){return this.forEach(c)},
7
+ hasClass:function(c){let a=this.get(0);return null!=a?a.classList.contains(c):!1},addClass:function(c){let a=c;"string"==typeof c&&(a=c.split(" "));a=a.filter(function(b){return""!==b.trim()});0<a.length&&this.forEach(function(b){b.classList.add.apply(b.classList,a)});return this},removeClass:function(c){if("undefined"!=typeof c){let a=c;"string"==typeof c&&(a=c.split(" "));a=a.filter(function(b){return""!==b.trim()});0<a.length&&this.forEach(function(b){b.classList.remove.apply(b.classList,a)})}else this.forEach(function(a){0<
8
+ a.classList.length&&a.classList.remove.apply(a.classList,a.classList)});return this},is:function(c){let a=this.get(0);return null!=a?a.matches(c):!1},val:function(c){let a=this.get(0);if(null!=a)if(1==arguments.length)if("select-multiple"==a.type){c="string"===typeof c?c.split(","):c;for(let b=0,d=a.options.length,e;b<d;b++)e=a.options[b],e.selected=-1!=c.indexOf(e.value)}else a.value=c;else return"select-multiple"==a.type?Array.prototype.map.call(a.selectedOptions,function(b){return b.value}):a.value;
9
+ return this},isVisible:function(){let c=this.get(0),a=!0,b;for(;null!==c;){b=window.getComputedStyle(c);if("none"==b.display||"hidden"==b.visibility||0==b.opacity){a=!1;break}c=c.parentElement}return a},attr:function(c,a){let b,d=arguments,e=this;this.forEach(function(f){2==d.length?(f.setAttribute(c,a),b=e):"object"===typeof c?Object.keys(c).forEach(function(g){f.setAttribute(g,c[g])}):b=f.getAttribute(c)});return b},removeAttr:function(c){this.forEach(function(a){a.removeAttribute(c)});return this},
10
+ prop:function(c,a){let b,d=arguments;this.forEach(function(e){2==d.length?e[c]=a:b="undefined"!=typeof e[c]?e[c]:null});return 2==d.length?this:b},data:function(c,a){let b=this.get(0),d=c.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});return null!=b?2==arguments.length?(b.dataset[d]=a,this):"undefined"==typeof b.dataset[d]?"":b.dataset[d]:""},html:function(c){let a=this.get(0);return null!=a?1==arguments.length?(a.innerHTML=c,this):a.innerHTML:""},text:function(c){let a=this.get(0);return null!=
11
+ a?1==arguments.length?(a.textContent=c,this):a.textContent:""},css:function(c,a){let b=this.get(),d;for(let e=0;e<b.length;e++)if(d=b[e],1==arguments.length)if("object"==typeof c)Object.keys(c).forEach(function(f){d.style[f]=c[f]});else return window.getComputedStyle(d)[c];else d.style[c]=a;return this},position:function(){let c=this.get(0);return null!=c?{top:c.offsetTop,left:c.offsetLeft}:{top:0,left:0}},offset:function(){let c=this.get(0);return null!=c?WPD.dom._fn.hasFixedParent(c)?c.getBoundingClientRect():
12
+ WPD.dom._fn.absolutePosition(c):{top:0,left:0}},outerWidth:function(c){c=c||!1;let a=this.get(0);if(null!=a)return c?parseInt(a.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(a.offsetWidth)},outerHeight:function(c){return c?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height"))},width:function(){return this.outerWidth()},height:function(){return this.outerHeight()},on:function(){let c=arguments,
13
+ a=function(e,f){let g;if("mouseenter"==f.type||"mouseleave"==f.type||"hover"==f.type){var h=document.elementFromPoint(f.clientX,f.clientY);if(!h.matches(e[1]))for(;(h=h.parentElement)&&!h.matches(e[1]););null!=h&&(g=WPD.dom(h))}else g=WPD.dom(f.target).closest(e[1]);if(null!=g&&0<g.closest(this).length){h=[];h.push(f);if("undefined"!=typeof e[4])for(f=4;f<e.length;f++)h.push(e[f]);e[2].apply(g.get(0),h)}},b=function(e,f){let g=[];g.push(f);if("undefined"!=typeof e[3])for(f=3;f<e.length;f++)g.push(e[f]);
14
+ e[1].apply(this,g)},d=c[0].split(" ");for(let e=0;e<d.length;e++){let f=d[e];"string"==typeof c[1]?this.forEach(function(g){if(!WPD.dom._fn.hasEventListener(g,f,c[2])){let h=a.bind(g,c);g.addEventListener(f,h,c[3]);g._wpd_el="undefined"==typeof g._wpd_el?[]:g._wpd_el;g._wpd_el.push({type:f,selector:c[1],func:h,trigger:c[2],args:c[3]})}}):this.forEach(function(g){if(!WPD.dom._fn.hasEventListener(g,f,c[1])){let h=b.bind(g,c);g.addEventListener(f,h,c[2]);g._wpd_el="undefined"==typeof g._wpd_el?[]:g._wpd_el;
15
+ g._wpd_el.push({type:f,func:h,trigger:c[1],args:c[2]})}})}return this},off:function(c,a){this.forEach(function(b){if("undefined"!=typeof b._wpd_el&&0<b._wpd_el.length)if("undefined"===typeof c){let d;for(;d=b._wpd_el.pop();)b.removeEventListener(d.type,d.func,d.args);b._wpd_el=[]}else c.split(" ").forEach(function(d){if("undefined"==typeof a){let e;for(;e=b._wpd_el.pop();)b.removeEventListener(d,e.func,e.args);b._wpd_el=[]}else{let e=[];b._wpd_el.forEach(function(f){f.type==d&&f.trigger==a?b.removeEventListener(d,
16
+ f.func,f.args):e.push(f)});b._wpd_el=e}})});return this},offForced:function(){let c=this;this.forEach(function(a,b){let d=a.cloneNode(!0);a.parentNode.replaceChild(d,a);c.a[b]=d});return this},trigger:function(c,a,b,d){b=b||!1;d=d||!1;this.forEach(function(e){var f=!1;d&&"undefined"!=typeof jQuery&&"undefined"!=typeof jQuery._data&&"undefined"!=typeof jQuery._data(e,"events")&&"undefined"!=typeof jQuery._data(e,"events")[c]&&(jQuery(e).trigger(c,a),f=!0);!f&&b&&(f=new Event(c),f.detail=a,e.dispatchEvent(f));
17
+ if("undefined"!=typeof e._wpd_el)e._wpd_el.forEach(function(g){if(g.type==c){let h=new Event(c);g.trigger.apply(e,[h].concat(a))}});else{let g=!1,h=e;for(;;){h=h.parentElement;if(null==h)break;"undefined"!=typeof h._wpd_el&&h._wpd_el.forEach(function(k){if("undefined"!==typeof k.selector){var l=WPD.dom(h).find(k.selector);0<l.length&&0<=l.get().indexOf(e)&&k.type==c&&(l=new Event(c),k.trigger.apply(e,[l].concat(a)),g=!0)}});if(g)break}}});return this},clone:function(){let c=this.get(0);null!=c?(this.a=
18
+ [c.cloneNode(!0)],this.length=this.a.length):this.a=[];this.length=this.a.length;return this},remove:function(c){if("undefined"!=typeof c)return c.parentElement.removeChild(c);this.forEach(function(a){if(null!=a.parentElement)return a.parentElement.removeChild(a)});this.a=[];this.length=this.a.length;return null},detach:function(){let c=this,a=[];this.forEach(function(b){b=c.remove(b);null!=b&&a.push(b)});this.a=a;this.length=this.a.length;return this},prepend:function(c){"string"==typeof c&&(c=WPD.dom._fn.createElementsFromHTML(c));
19
+ c=Array.isArray(c)?c:[c];this.forEach(function(a){c.forEach(function(b){"undefined"!=typeof b.is_wpd_dom?b.forEach(function(d){a.insertBefore(d,a.children[0])}):a.insertBefore(b,a.children[0])})});return this},append:function(c){"string"==typeof c&&(c=WPD.dom._fn.createElementsFromHTML(c));c=Array.isArray(c)?c:[c];this.forEach(function(a){c.forEach(function(b){null!=b&&("undefined"!=typeof b.is_wpd_dom?b.forEach(function(d){a.appendChild(d)}):a.appendChild(b.cloneNode(!0)))})});return this},uuidv4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
20
+ function(c){let a=16*Math.random()|0;return("x"==c?a:a&3|8).toString(16)})}},WPD.dom._fn={bodyTransformY:function(){if("undefined"!==typeof WebKitCSSMatrix){var c=window.getComputedStyle(document.body);if("undefined"!=typeof c.transform&&(c=new WebKitCSSMatrix(c.transform),"undefined"!=c.m42))return c.m42}return 0},hasFixedParent:function(c){if(0!=WPD.dom._fn.bodyTransformY())return!1;do if("fixed"==window.getComputedStyle(c).position)return!0;while(c=c.parentElement);return!1},hasEventListener:function(c,
21
+ a,b){if("undefined"==typeof c._wpd_el)return!1;for(let d=0;d<c._wpd_el.length;d++)if(c._wpd_el[d].trigger==b&&c._wpd_el[d].type==a)return!0;return!1},allDescendants:function(c){let a=[],b=this;Array.isArray(c)||(c=[c]);c.forEach(function(d){for(let e=0;e<d.childNodes.length;e++){let f=d.childNodes[e];a.push(f);a=a.concat(b.allDescendants(f))}});return a},createElementsFromHTML:function(c){let a=document.createElement("template");a.innerHTML=c.replace(/(\r\n|\n|\r)/gm,"");return Array.prototype.slice.call(a.content.childNodes)},
22
+ absolutePosition:function(c){if(!c.getClientRects().length)return{top:0,left:0};let a=c.getBoundingClientRect();c=c.ownerDocument.defaultView;return{top:a.top+c.pageYOffset,left:a.left+c.pageXOffset}},plugin:function(c,a){WPD.dom.fn[c]=function(b){return"undefined"!=typeof b&&a[b]?a[b].apply(this,Array.prototype.slice.call(arguments,1)):this.each(function(d){d["wpd_dom_"+c]=Object.create(a).init(b,d)})}}},WPD.dom.version=1;return 1<=arguments.length?WPD.dom.fn.$.apply(WPD.dom.fn,arguments):WPD.dom.fn};
23
+ WPD.dom();document.dispatchEvent(new Event("wpd-dom-core-loaded"))})();
24
+ (function(){WPD.dom.fn._animate={easing:{linear:function(c){return c},easeInOutQuad:function(c){return.5>c?2*c*c:1-Math.pow(-2*c+2,2)/2},easeOutQuad:function(c){return 1-(1-c)*(1-c)}}};WPD.dom.fn.animate=function(c,a,b){let d=this;a=a||200;b=b||"linear";this.forEach(function(e){let f,g=0,h,k={},l={},m,p,q;m=d.prop("_wpd_dom_animations");m=null==m?[]:m;!1===c?m.forEach(function(n){clearInterval(n)}):(q="undefined"!=typeof d._animate.easing[b]?d._animate.easing[b]:d._animate.easing.easeInOutQuad,Object.keys(c).forEach(function(n){-1<
25
+ n.indexOf("scroll")?k[n]=e[n]:k[n]=parseInt(window.getComputedStyle(e)[n]);l[n]=c[n]-k[n]}),f=a/1E3*60,p=setInterval(function(){g++;g>f?clearInterval(p):(h=q(g/f),Object.keys(l).forEach(function(n){-1<n.indexOf("scroll")?e[n]=k[n]+l[n]*h:e.style[n]=k[n]+l[n]*h+"px"}))},1E3/60),m.push(p),d.prop("_wpd_dom_animations",m))});return this};document.dispatchEvent(new Event("wpd-dom-animate-loaded"))})();
26
+ (function(){let c=WPD.dom;WPD.dom.fn.unhighlight=function(a){let b={className:"highlight",element:"span"};c.extend(b,a);return this.find(b.element+"."+b.className).each(function(){let d=this.parentNode;d.replaceChild(this.firstChild,this);d.normalize()})};WPD.dom.fn.highlight=function(a,b){function d(g,h,k,l,m){m=""==m?".exhghttt":m;if(3===g.nodeType){if(h=g.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(h))return k=document.createElement(k||"span"),k.className=l||"highlight",l=/\.|,|\s/.test(h[0].charAt(0))?
27
+ h.index+1:h.index,g=g.splitText(l),g.splitText(h[1].length),l=g.cloneNode(!0),k.appendChild(l),g.parentNode.replaceChild(k,g),1}else if(1===g.nodeType&&g.childNodes&&!/(script|style)/i.test(g.tagName)&&0< !c(g).closest(m).length&&(g.tagName!==k.toUpperCase()||g.className!==l))for(let p=0;p<g.childNodes.length;p++)p+=d(g.childNodes[p],h,k,l,m);return 0}let e={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};c.fn.extend(e,b);a.constructor===String&&(a=[a]);a=a.filter(function(g){return""!=
28
+ g});a.forEach(function(g,h,k){k[h].replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")});if(0==a.length)return this;b=e.caseSensitive?"":"i";a="("+a.join("|")+")";e.wordsOnly&&(a="(?:,|^|\\s)"+a+"(?:,|$|\\s)");let f=new RegExp(a,b);return this.each(function(g){d(g,f,e.element,e.className,e.excludeParents)})}})();
29
+ (function(){WPD.dom.fn.serialize=function(){let c=this.get(0);if(c&&"FORM"===c.nodeName){var a,b,d=[];for(a=c.elements.length-1;0<=a;--a)if(""!==c.elements[a].name)switch(c.elements[a].nodeName){case "INPUT":switch(c.elements[a].type){case "text":case "hidden":case "password":case "button":case "reset":case "submit":d.push(c.elements[a].name+"="+encodeURIComponent(c.elements[a].value));break;case "checkbox":case "radio":c.elements[a].checked&&d.push(c.elements[a].name+"="+encodeURIComponent(c.elements[a].value))}break;
30
+ case "TEXTAREA":d.push(c.elements[a].name+"="+encodeURIComponent(c.elements[a].value));break;case "SELECT":switch(c.elements[a].type){case "select-one":d.push(c.elements[a].name+"="+encodeURIComponent(c.elements[a].value));break;case "select-multiple":for(b=c.elements[a].options.length-1;0<=b;--b)c.elements[a].options[b].selected&&d.push(c.elements[a].name+"="+encodeURIComponent(c.elements[a].options[b].value))}break;case "BUTTON":switch(c.elements[a].type){case "reset":case "submit":case "button":d.push(c.elements[a].name+
31
+ "="+encodeURIComponent(c.elements[a].value))}}return d.join("&")}};WPD.dom.fn.serializeForAjax=function(c,a){let b=[],d;for(d in c)if(c.hasOwnProperty(d)){let e=a?a+"["+d+"]":d,f=c[d];b.push(null!==f&&"object"===typeof f?WPD.dom.fn.serializeForAjax(f,e):encodeURIComponent(e)+"="+encodeURIComponent(f))}return b.join("&")};document.dispatchEvent(new Event("wpd-dom-serialize-loaded"))})();
32
+ (function(){WPD.dom.fn.inViewPort=function(c,a){var b=this.get(0);let d;if(null==b)return!1;c="undefined"==typeof c?0:c;a="undefined"==typeof a?window:"string"==typeof a?document.querySelector(a):a;var e=b.getBoundingClientRect();b=e.top;let f=e.bottom,g=e.left,h=e.right;null==a&&(a=window);a===window?(e=window.innerWidth||0,d=window.innerHeight||0):(e=a.clientWidth,d=a.clientHeight,a=a.getBoundingClientRect(),b-=a.top,f-=a.top,g-=a.left,h-=a.left);c=~~Math.round(parseFloat(c));return 0>=h||g>=e?
33
+ !1:0<c?b>=c&&f<d-c:(0<f&&b<=d-c)|(0>=b&&f>c)};document.dispatchEvent(new Event("wpd-dom-viewport-loaded"))})();
34
+ (function(){WPD.dom.fn.ajax=function(c){c=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},c);if("cors"!=c.cors){var a="ajax_cb_"+this.uuidv4().replaceAll("-","");WPD.dom.fn[a]=function(){c.success.apply(this,arguments);delete WPD.dom.fn[c.data.fn]};c.data.callback="WPD.dom.fn."+a;c.data.fn=a;a=document.createElement("script");a.type="text/javascript";a.src=c.url+"?"+this.serializeForAjax(c.data);
35
+ a.onload=function(){this.remove()};document.body.appendChild(a)}else return a=new XMLHttpRequest,a.onreadystatechange=function(){null!=c.success&&4==this.readyState&&200==this.status&&c.success(this.responseText);null!=c.fail&&4==this.readyState&&400<=this.status&&c.fail(this)},a.open(c.method.toUpperCase(),c.url,!0),a.setRequestHeader("Content-type",c.contentType),a.setRequestHeader("Accept",c.accept),a.send(this.serializeForAjax(c.data)),a};document.dispatchEvent(new Event("wpd-dom-xhttp-loaded"))})();
36
+ window.WPD=window.WPD||{};
37
+ window.WPD.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){let a="";let b,d,e,f,g,h=0;for(c=this._utf8_encode(c);h<c.length;){var k=c.charCodeAt(h++);b=c.charCodeAt(h++);d=c.charCodeAt(h++);e=k>>2;k=(k&3)<<4|b>>4;f=(b&15)<<2|d>>6;g=d&63;isNaN(b)?f=g=64:isNaN(d)&&(g=64);a=a+this._keyStr.charAt(e)+this._keyStr.charAt(k)+this._keyStr.charAt(f)+this._keyStr.charAt(g)}return a},decode:function(c){let a="";let b,d,e,f=0;for(c=c.replace(/[^A-Za-z0-9\+\/=]/g,
38
+ "");f<c.length;){var g=this._keyStr.indexOf(c.charAt(f++));var h=this._keyStr.indexOf(c.charAt(f++));d=this._keyStr.indexOf(c.charAt(f++));e=this._keyStr.indexOf(c.charAt(f++));g=g<<2|h>>4;h=(h&15)<<4|d>>2;b=(d&3)<<6|e;a+=String.fromCharCode(g);64!=d&&(a+=String.fromCharCode(h));64!=e&&(a+=String.fromCharCode(b))}return a=this._utf8_decode(a)},_utf8_encode:function(c){c=c.replace(/\r\n/g,"\n");let a="";for(let b=0;b<c.length;b++){let d=c.charCodeAt(b);128>d?a+=String.fromCharCode(d):(127<d&&2048>
39
+ d?a+=String.fromCharCode(d>>6|192):(a+=String.fromCharCode(d>>12|224),a+=String.fromCharCode(d>>6&63|128)),a+=String.fromCharCode(d&63|128))}return a},_utf8_decode:function(c){let a="",b=0,d,e,f;for(;b<c.length;)d=c.charCodeAt(b),128>d?(a+=String.fromCharCode(d),b++):191<d&&224>d?(e=c.charCodeAt(b+1),a+=String.fromCharCode((d&31)<<6|e&63),b+=2):(e=c.charCodeAt(b+1),f=c.charCodeAt(b+2),a+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),b+=3);return a}};
40
+ (function(){window.WPD=window.WPD||{};WPD.Hooks=WPD.Hooks||{};let c=WPD.Hooks;c.filters=c.filters||{};c.addFilter=function(a,b,d,e){c.filters[a]=c.filters[a]||[];c.filters[a].push({priority:"undefined"===typeof d?10:d,scope:"undefined"===typeof e?null:e,callback:b})};c.removeFilter=function(a,b){"undefined"!=typeof c.filters[a]&&("undefined"==typeof b?c.filters[a]=[]:c.filters[a].forEach(function(d,e){d.callback===b&&c.filters[a].splice(e,1)}))};c.applyFilters=function(a){let b=[],d=Array.prototype.slice.call(arguments),
41
+ e=arguments[1];"undefined"!==typeof c.filters[a]&&0<c.filters[a].length&&(c.filters[a].forEach(function(f){b[f.priority]=b[f.priority]||[];b[f.priority].push({scope:f.scope,callback:f.callback})}),d.splice(0,2),b.forEach(function(f){f.forEach(function(g){e=g.callback.apply(g.scope,[e].concat(d))})}));return e}})();window.WPD=window.WPD||{};
42
+ window.WPD.intervalUntilExecute=function(c,a,b,d){let e,f=0,g="function"===typeof a?a():a;b="undefined"==typeof b?100:b;d="undefined"==typeof d?50:d;if(!1===g)e=setInterval(function(){g="function"===typeof a?a():a;f++;if(f>d)return clearInterval(e),!1;if(!1!==g)return clearInterval(e),c(g)},b);else return c(g)};
43
+ (function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};window.WPD.ajaxsearchlite=new function(){this.prevState=null;this.firstIteration=!0;this.helpers={};this.plugin={};this.addons={addons:[],add:function(c){-1==this.addons.indexOf(c)&&(c=this.addons.push(c),this.addons[c-1].init())},remove:function(c){this.addons.filter(function(a){return a.name==c?("undefined"!=typeof a.destroy&&a.destroy(),!1):!0})}}}})();WPD.dom._fn.plugin("ajaxsearchlite",window.WPD.ajaxsearchlite.plugin);
44
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{autocompleteGoogleOnly:function(){let a=this,b=a.n.text.val();if(""==a.n.text.val())a.n.textAutocomplete.val("");else{var d=a.n.textAutocomplete.val();if(""==d||0!=d.indexOf(b)){a.n.textAutocomplete.val("");var e=a.o.autocomplete.lang;["wpml_lang","polylang_lang","qtranslate_lang"].forEach(function(f){0<c('input[name="'+f+'"]',a.n.searchsettings).length&&1<c('input[name="'+f+'"]',a.n.searchsettings).val().length&&(e=c('input[name="'+f+'"]',
45
+ a.n.searchsettings).val())});a.n.text.val().length>=a.o.autocomplete.trigger_charcount&&c.fn.ajax({url:"https://clients1.google.com/complete/search",cors:"no-cors",data:{q:b,hl:e,nolabels:"t",client:"hp",ds:""},success:function(f){0<f[1].length&&(f=f[1][0][0].replace(/(<([^>]+)>)/ig,""),f=c("<textarea />").html(f).text(),f=f.substr(b.length),a.n.textAutocomplete.val(b+f),a.fixAutocompleteScrollLeft())}})}}},fixAutocompleteScrollLeft:function(){this.n.textAutocomplete.get(0).scrollLeft=this.n.text.get(0).scrollLeft}})})(WPD.dom);
46
+ (function(c){let a=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{setFilterStateInput:function(b){let d=this;"undefined"==typeof b&&(b=65);let e=function(){JSON.stringify(d.originalFormData)!=JSON.stringify(a.formData(c("form",d.n.searchsettings)))?d.n.searchsettings.find("input[name=filters_initial]").val(0):d.n.searchsettings.find("input[name=filters_initial]").val(1)};0==b?e():setTimeout(function(){e()},b)}})})(WPD.dom);
47
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{gaPageview:function(a){let b=this.gaGetTrackingID();if("undefined"==typeof ASL.analytics||"pageview"!=ASL.analytics.method)return!1;if(""!=ASL.analytics.string){let d="function"==typeof __gaTracker?__gaTracker:"function"==typeof ga?ga:!1,e="function"==typeof gtag?gtag:!1;window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));let f=this.o.homeurl.replace(window.location.origin,
48
+ "");!1!==e?!1!==b&&e("config",b,{page_path:f+ASL.analytics.string.replace("{asl_term}",a)}):!1!==d&&(!1!==b&&d("create",b,"auto"),d("send","pageview",{page:f+ASL.analytics.string.replace("{asl_term}",a),title:"Ajax Search"}))}},gaEvent:function(a,b){let d=this.gaGetTrackingID();if("undefined"==typeof ASL.analytics||"event"!=ASL.analytics.method)return!1;let e="function"==typeof gtag?gtag:!1,f="function"==typeof window.__gaTracker?window.__gaTracker:"function"==typeof window.ga?window.ga:!1;if(!1===
49
+ e&&!1===f)return!1;if("undefined"!=typeof ASL.analytics.event[a]&&1==ASL.analytics.event[a].active){let g={search_id:this.o.id,search_name:this.o.name,phrase:this.n.text.val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},h={event_category:ASL.analytics.event[a].category,event_label:ASL.analytics.event[a].label,value:ASL.analytics.event[a].value};b=c.fn.extend(g,b);Object.keys(b).forEach(function(k){let l=b[k];l=String(l).replace(/[\s\n\r]+/g," ").trim();Object.keys(h).forEach(function(m){h[m]=
50
+ h[m].replace(new RegExp("{"+k+"}","gmi"),l)})});!1===e?!1!==d?d.forEach(function(k){f("create",k,"auto");f("send","event",h.event_category,ASL.analytics.event[a].action,h.event_label,h.value)}):f("send","event",h.event_category,ASL.analytics.event[a].action,h.event_label,h.value):!1!==d?d.forEach(function(k){h.send_to=k;e("event",ASL.analytics.event[a].action,h)}):e("event",ASL.analytics.event[a].action,h)}},gaGetTrackingID:function(){if("undefined"==typeof ASL.analytics)return!1;if("undefined"!=
51
+ typeof ASL.analytics.tracking_id&&""!=ASL.analytics.tracking_id)return[ASL.analytics.tracking_id];if(!1===("function"==typeof window.gtag?window.gtag:!1)&&"undefined"!=typeof window.ga&&"undefined"!=typeof window.ga.getAll){let a=[];window.ga.getAll().forEach(function(b){a.push(b.get("trackingId"))});return 0<a.length?a:!1}return!1}})})(WPD.dom);
52
+ (function(c){let a=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{liveLoad:function(b,d,e,f){function g(m){m=a.Hooks.applyFilters("asl/live_load/raw_data",m,l);var p=new DOMParser;let q=p.parseFromString(m,"text/html"),n=c(q);l.o.statistics&&l.stat_addKeyword(l.o.id,l.n.text.val());if(""!=m&&0<n.length&&0<n.find(b).length){m=m.replace(/&asl_force_reset_pagination=1/gmi,"");m=m.replace(/%26asl_force_reset_pagination%3D1/gmi,"");m=m.replace(/&#038;asl_force_reset_pagination=1/gmi,
53
+ "");a.isSafari()&&(m=m.replace(/srcset/gmi,"nosrcset"));m=a.Hooks.applyFilters("asl/live_load/html",m,l.o.id,l.o.iid);m=a.wp_hooks_apply_filters("asl/live_load/html",m,l.o.id,l.o.iid);n=c(p.parseFromString(m,"text/html"));p=n.find(b).get(0);p=a.Hooks.applyFilters("asl/live_load/replacement_node",p,l,k.get(0),m);null!=p&&k.get(0).parentNode.replaceChild(p,k.get(0));k=c(b).first();e&&(document.title=q.title,history.pushState({},null,d));c(b).first().find(".woocommerce-ordering").on("change","select.orderby",
54
+ function(){c(this).closest("form").trigger("submit")});if(1==l.o.singleHighlight)c(b).find("a").on("click",function(){localStorage.removeItem("asl_phrase_highlight");""!=a.unqoutePhrase(l.n.text.val())&&localStorage.setItem("asl_phrase_highlight",JSON.stringify({phrase:a.unqoutePhrase(l.n.text.val())}))});a.Hooks.applyFilters("asl/live_load/finished",d,l,b,k.get(0));ASL.initialize();l.lastSuccesfulSearch=c("form",l.n.searchsettings).serialize()+l.n.text.val().trim();l.lastSearchData=m}l.n.s.trigger("asl_search_end",
55
+ [l.o.id,l.o.iid,l.n.text.val(),m],!0,!0);let r,t;null==(t=(r=l).gaEvent)||t.call(r,"search_end",{results_count:"unknown"});let u,v;null==(v=(u=l).gaPageview)||v.call(u,l.n.text.val());l.hideLoader();k.css("opacity",1);l.searching=!1;""!=l.n.text.val()&&l.n.proclose.css({display:"block"})}if("body"==b||"html"==b)return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;""==ASL.pageHTML&&"undefined"===typeof ASL._ajax_page_html&&(ASL._ajax_page_html=!0,c.fn.ajax({url:location.href,
56
+ method:"GET",success:function(m){ASL.pageHTML=m},dataType:"html"}));e="undefined"==typeof e?!0:e;f="undefined"==typeof f?!1:f;let h=".search-content #content #Content div[role=main] main[role=main] div.theme-content div.td-ss-main-content main.l-content #primary".split(" ");"#main"!=b&&h.unshift("#main");if(1>c(b).length&&(h.forEach(function(m){if(0<c(m).length)return b=m,!1}),1>c(b).length))return console.log("Ajax Search Lite: The live search selector does not exist on the page."),!1;b=a.Hooks.applyFilters("asl/live_load/selector",
57
+ b,this);let k=c(b).first(),l=this;l.searchAbort();k.css("opacity",.4);a.Hooks.applyFilters("asl/live_load/start",d,l,b,k.get(0));f||1!=l.n.searchsettings.find("input[name=filters_initial]").val()||""!=l.n.text.val()?(l.searching=!0,l.post=c.fn.ajax({url:d,method:"GET",success:function(m){g(m)},dataType:"html",fail:function(m){k.css("opacity",1);m.aborted||(k.html("This request has failed. Please check your connection."),l.hideLoader(),l.searching=!1,l.n.proclose.css({display:"block"}))}})):window.WPD.intervalUntilExecute(function(){g(ASL.pageHTML)},
58
+ function(){return""!=ASL.pageHTML})},getCurrentLiveURL:function(){var b="asl_ls="+a.nicePhrase(this.n.text.val());let d="&",e=window.location.href;e=-1<e.indexOf("asl_ls=")?e.slice(0,e.indexOf("asl_ls=")):e;e=-1<e.indexOf("asl_ls&")?e.slice(0,e.indexOf("asl_ls&")):e;e=-1<e.indexOf("p_asid=")?e.slice(0,e.indexOf("p_asid=")):e;e=-1<e.indexOf("asl_")?e.slice(0,e.indexOf("asl_")):e;-1===e.indexOf("?")&&(d="?");b=e+d+b+"&asl_active=1&asl_force_reset_pagination=1&p_asid="+this.o.id+"&p_asl_data=1&"+c("form",
59
+ this.n.searchsettings).serialize();return b=b.replace("?&","?")}})})(WPD.dom);(function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{showLoader:function(){this.n.proloading.css({display:"block"})},hideLoader:function(){this.n.proloading.css({display:"none"});this.n.results.css("display","")}})})(WPD.dom);
60
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{fixClonedSelf:function(){let a=this.o.iid,b=this.o.rid;for(;!ASL.instances.set(this)&&!(++this.o.iid,50<this.o.iid););a!=this.o.iid&&(this.o.rid=this.o.id+"_"+this.o.iid,this.n.search.get(0).id="ajaxsearchlite"+this.o.rid,this.n.search.removeClass("asl_m_"+b).addClass("asl_m_"+this.o.rid),this.n.searchsettings.get(0).id=this.n.searchsettings.get(0).id.replace("settings"+b,"settings"+this.o.rid),this.n.searchsettings.hasClass("asl_s_"+b)?this.n.searchsettings.removeClass("asl_s_"+
61
+ b).addClass("asl_s_"+this.o.rid).data("instance",this.o.iid):this.n.searchsettings.removeClass("asl_sb_"+b).addClass("asl_sb_"+this.o.rid).data("instance",this.o.iid),this.n.resultsDiv.get(0).id=this.n.resultsDiv.get(0).id.replace("prores"+b,"prores"+this.o.rid),this.n.resultsDiv.removeClass("asl_r_"+b).addClass("asl_r_"+this.o.rid).data("instance",this.o.iid),this.n.container.find(".asl_init_data").data("instance",this.o.iid),this.n.container.find(".asl_init_data").get(0).id=this.n.container.find(".asl_init_data").get(0).id.replace("asl_init_id_"+
62
+ b,"asl_init_id_"+this.o.rid),this.n.prosettings.data("opened",0))},destroy:function(){let a=this;Object.keys(a.n).forEach(function(b){a.n[b].off()});a.n.searchsettings.remove();a.n.resultsDiv.remove();a.n.trythis.remove();a.n.search.remove();a.n.container.remove();a.documentEventHandlers.forEach(function(b){c(b.node).off(b.event,b.handler)})}})})(WPD.dom);
63
+ (function(c){let a=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{isRedirectToFirstResult:function(){return(0<c(".asl_res_url",this.n.resultsDiv).length||0<c(".asl_es_"+this.o.id+" a").length||this.o.resPage.useAjax&&0<c(this.o.resPage.selector+"a").length)&&(1==this.o.redirectOnClick&&"click"==this.ktype&&"first_result"==this.o.trigger.click||1==this.o.redirectOnEnter&&("input"==this.ktype||"keyup"==this.ktype)&&13==this.keycode&&"first_result"==this.o.trigger.return)},
64
+ doRedirectToFirstResult:function(){let b,d;b="click"==this.ktype?this.o.trigger.click_location:this.o.trigger.return_location;0<c(".asl_res_url",this.n.resultsDiv).length?d=c(c(".asl_res_url",this.n.resultsDiv).get(0)).attr("href"):0<c(".asl_es_"+this.o.id+" a").length?d=c(c(".asl_es_"+this.o.id+" a").get(0)).attr("href"):this.o.resPage.useAjax&&0<c(this.o.resPage.selector+"a").length&&(d=c(c(this.o.resPage.selector+"a").get(0)).attr("href"));""!=d&&("same"==b?location.href=d:a.openInNewTab(d),this.hideLoader(),
65
+ this.hideResults());return!1},doRedirectToResults:function(b){let d;d="click"==b?this.o.trigger.click_location:this.o.trigger.return_location;b=this.getRedirectURL(b);if(this.o.overridewpdefault){if(1==this.o.resPage.useAjax)return this.hideResults(),this.liveLoad(this.o.resPage.selector,b),this.showLoader(),0==this.o.blocking&&this.hideSettings(),!1;"post"==this.o.override_method?a.submitToUrl(b,"post",{asl_active:1,p_asl_data:c("form",this.n.searchsettings).serialize()},d):"same"==d?location.href=
66
+ b:a.openInNewTab(b)}else a.submitToUrl(b,"post",{np_asl_data:c("form",this.n.searchsettings).serialize()},d);this.n.proloading.css("display","none");this.hideLoader();this.hideResults();this.searchAbort()},getRedirectURL:function(b){b="click"==("undefined"!==typeof b?b:"enter")?this.o.trigger.click:this.o.trigger.return;"results_page"==b||"ajax_search"==b?b="?s="+a.nicePhrase(this.n.text.val()):"woo_results_page"==b?b="?post_type=product&s="+a.nicePhrase(this.n.text.val()):(b=this.o.trigger.redirect_url,
67
+ b=b.replace(/{phrase}/g,a.nicePhrase(this.n.text.val())));1<this.o.homeurl.indexOf("?")&&0===b.indexOf("?")&&(b=b.replace("?","&"));if(this.o.overridewpdefault&&"post"!=this.o.override_method){let d="&";-1===this.o.homeurl.indexOf("?")&&-1===b.indexOf("?")&&(d="?");b=b+d+"asl_active=1&p_asl_data=1&"+c("form",this.n.searchsettings).serialize();b=this.o.homeurl+b}else b=this.o.homeurl+b;b=b.replace("https://","https:///");b=b.replace("http://","http:///");b=b.replace(/\/\//g,"/");b=a.Hooks.applyFilters("asl/redirect/url",
68
+ b,this.o.id,this.o.iid);return b=a.wp_hooks_apply_filters("asl/redirect/url",b,this.o.id,this.o.iid)}})})(WPD.dom);
69
+ (function(c){let a=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{showResults:function(){let b=this;b.createVerticalScroll();b.showVerticalResults();b.hideLoader();b.n.proclose.css({display:"block"});null!=b.n.showmore&&(0<b.n.items.length?b.n.showmore.css({display:"block"}):b.n.showmore.css({display:"none"}));"undefined"!=typeof WPD.lazy&&setTimeout(function(){WPD.lazy(".asl_lazy")},100);b.is_scroll&&"undefined"!==typeof b.scroll.recalculate&&setTimeout(function(){b.scroll.recalculate()},
70
+ 500);b.resultsOpened=!0},hideResults:function(b){let d=this;b="undefined"==typeof b?!0:b;if(!d.resultsOpened)return!1;d.n.resultsDiv.removeClass(d.resAnim.showClass).addClass(d.resAnim.hideClass);setTimeout(function(){d.n.resultsDiv.css(d.resAnim.hideCSS)},d.resAnim.duration);d.n.proclose.css({display:"none"});a.isMobile()&&b&&document.activeElement.blur();d.resultsOpened=!1;d.n.s.trigger("asl_results_hide",[d.o.id,d.o.iid],!0,!0)},showResultsBox:function(){this.n.s.trigger("asl_results_show",[this.o.id,
71
+ this.o.iid],!0,!0);this.n.resultsDiv.css({display:"block",height:"auto"});this.n.resultsDiv.css(this.resAnim.showCSS);this.n.resultsDiv.removeClass(this.resAnim.hideClass).addClass(this.resAnim.showClass);this.fixResultsPosition(!0)},scrollToResults:function(){var b=Math.floor(.1*window.innerHeight);if(this.resultsOpened&&1==this.o.scrollToResults.enabled&&!this.n.resultsDiv.inViewPort(b)){b="hover"==this.o.resultsposition?this.n.probox.offset().top-20:this.n.resultsDiv.offset().top-20;b+=this.o.scrollToResults.offset;
72
+ var d=c("#wpadminbar");0<d.length&&(b-=d.height());window.scrollTo({top:0>b?0:b,behavior:"smooth"})}}})})(WPD.dom);
73
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{showVerticalResults:function(){this.showResultsBox();if(0<this.n.items.length){let a=this.n.items.length<this.o.itemscount?this.n.items.length:this.o.itemscount;a=0>=a?9999:a;let b=c(".asl_group_header",this.n.resultsDiv);if(0==this.o.itemscount||this.n.items.length<=this.o.itemscount)this.n.results.css({height:"auto"});else if(1>this.call_num&&this.n.results.css({height:"30px"}),1>this.call_num){let d=0,e=0,f=0,g=0;this.n.items.forEach(function(){e+=
74
+ c(this).outerHeight(!0);c(this).outerHeight(!0)>g&&(g=c(this).outerHeight(!0));d++});f=g*a;f>e&&(f=e);d=1>d?1:d;e=e/d*a;0<b.length&&b.forEach(function(h,k){h=Array.prototype.slice.call(h.parentNode.children).indexOf(h);h-k-Math.floor(h/3)<a&&(f+=c(this).outerHeight(!0))});this.n.results.css({height:f+"px"})}this.n.items.last().addClass("asl_last_item");this.n.results.find(".asl_group_header").prev(".item").addClass("asl_last_item");1==this.o.highlight&&c("div.item",this.n.resultsDiv).highlight(this.n.text.val().split(" "),
75
+ {element:"span",className:"highlighted",wordsOnly:this.o.highlightWholewords})}this.resize();0==this.n.items.length&&this.n.results.css({height:"auto"});this.n.results.css({overflowY:"auto"});(this.is_scroll&&"undefined"!==typeof this.scroll.recalculate?c(this.scroll.getScrollElement()):this.n.results).get(0).scrollTop=0;this.fixResultsPosition(!0);this.searching=!1}})})(WPD.dom);
76
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{createVerticalScroll:function(){let a=this.n.results;0<this.o.itemscount&&this.is_scroll&&"undefined"===typeof this.scroll.recalculate&&(this.scroll=new asp_SimpleBar(this.n.results.get(0),{direction:c("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}),a=a.add(this.scroll.getScrollElement()));a.on("scroll",function(){document.dispatchEvent(new Event("wpd-lazy-trigger"))})}})})(WPD.dom);
77
+ (function(c){let a=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(b){let d=this;"undefined"==typeof b&&(b=50);d.n.text.val().length<d.o.charcount||(d.searchAbort(),clearTimeout(d.timeouts.searchWithCheck),d.timeouts.searchWithCheck=setTimeout(function(){d.search()},b))},search:function(){let b=this;if(!(b.n.text.val().length<b.o.charcount)){b.searching=!0;b.n.proloading.css({display:"block"});
78
+ b.n.proclose.css({display:"none"});var d={action:"ajaxsearchlite_search",aslp:b.n.text.val(),asid:b.o.id,options:c("form",b.n.searchsettings).serialize()};d=a.Hooks.applyFilters("asl/search/data",d);d=a.wp_hooks_apply_filters("asl/search/data",d);if(JSON.stringify(d)===JSON.stringify(b.lastSearchData))return b.resultsOpened||b.showResults(),b.hideLoader(),b.isRedirectToFirstResult()&&b.doRedirectToFirstResult(),!1;var e;null==(e=b.gaEvent)||e.call(b,"search_start");0<c(".asl_es_"+b.o.id).length?b.liveLoad(".asl_es_"+
79
+ b.o.id,b.getCurrentLiveURL(),!1):b.o.resPage.useAjax?b.liveLoad(b.o.resPage.selector,b.getRedirectURL()):b.post=c.fn.ajax({url:ASL.ajaxurl,method:"POST",data:d,success:function(f){f=f.replace(/^\s*[\r\n]/gm,"");f=f.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1];f=a.Hooks.applyFilters("asl/search/html",f);f=a.wp_hooks_apply_filters("asl/search/html",f);b.n.resdrg.html("");b.n.resdrg.html(f);c(".asl_keyword",b.n.resdrg).on("click",function(){b.n.text.val(c(this).html());c("input.orig",b.n.container).val(c(this).html()).trigger("keydown");
80
+ c("form",b.n.container).trigger("submit","ajax");b.search()});b.n.items=c(".item",b.n.resultsDiv);let g;null==(g=b.gaEvent)||g.call(b,"search_end",{results_count:b.n.items.length});let h;null==(h=b.gaPageview)||h.call(b,b.n.text.val());if(b.isRedirectToFirstResult())return b.doRedirectToFirstResult(),!1;b.hideLoader();b.showResults();b.scrollToResults();b.lastSuccesfulSearch=c("form",b.n.searchsettings).serialize()+b.n.text.val().trim();b.lastSearchData=d;0==b.n.items.length?null!=b.n.showmore&&b.n.showmore.css("display",
81
+ "none"):null!=b.n.showmore&&(b.n.showmore.css("display","block"),c("a",b.n.showmore).off(),c("a",b.n.showmore).on("click",function(){var k=b.o.trigger.click_location;k="results_page"==k?"?s="+a.nicePhrase(b.n.text.val()):"woo_results_page"==k?"?post_type=product&s="+a.nicePhrase(b.n.text.val()):b.o.trigger.redirect_url.replace("{phrase}",a.nicePhrase(b.n.text.val()));b.o.overridewpdefault?"post"==b.o.override_method?a.submitToUrl(b.o.homeurl+k,"post",{asl_active:1,p_asl_data:c("form",b.n.searchsettings).serialize()}):
82
+ location.href=b.o.homeurl+k+"&asl_active=1&p_asid="+b.o.id+"&p_asl_data=1&"+c("form",b.n.searchsettings).serialize():a.submitToUrl(b.o.homeurl+k,"post",{np_asl_data:c("form",b.n.searchsettings).serialize()})}))},fail:function(f){f.aborted||(b.n.resdrg.html(""),b.n.resdrg.html('<div class="asl_nores">The request failed. Please check your connection! Status: '+f.status+"</div>"),b.n.items=c(".item",b.n.resultsDiv),b.hideLoader(),b.showResults(),b.scrollToResults())}})}}})})(WPD.dom);
83
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{showSettings:function(){let a=this;a.n.searchsettings.css(a.settAnim.showCSS);a.n.searchsettings.removeClass(a.settAnim.hideClass).addClass(a.settAnim.showClass);null==a.settScroll&&a.is_scroll&&(a.settScroll=[],c(".asl_sett_scroll",a.n.searchsettings).forEach(function(b,d){let e=this;setTimeout(function(){a.settScroll[d]=new asp_SimpleBar(c(e).get(0),{direction:c("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0})},20)}));a.n.prosettings.data("opened",
84
+ 1);a.fixSettingsPosition(!0)},hideSettings:function(){let a=this;a.n.searchsettings.removeClass(a.settAnim.showClass).addClass(a.settAnim.hideClass);setTimeout(function(){a.n.searchsettings.css(a.settAnim.hideCSS)},a.settAnim.duration);a.n.prosettings.data("opened",0)}})})(WPD.dom);
85
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.helpers,{Hooks:window.WPD.Hooks,deviceType:function(){let a=window.innerWidth;return 640>=a?"phone":1024>=a?"tablet":"desktop"},detectIOS:function(){return"undefined"!=typeof window.navigator&&"undefined"!=typeof window.navigator.userAgent?null!=window.navigator.userAgent.match(/(iPod|iPhone|iPad)/):!1},detectIE:function(){var a=window.navigator.userAgent;let b=a.indexOf("MSIE ");a=a.indexOf("Trident/");return 0<b||0<a?!0:!1},isMobile:function(){try{return document.createEvent("TouchEvent"),
86
+ !0}catch(a){return!1}},isTouchDevice:function(){return"ontouchstart"in window},isSafari:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},whichjQuery:function(a){let b=!1;"undefined"!=typeof window.$&&("undefined"===typeof a?b=window.$:"undefined"!=typeof window.$.fn[a]&&(b=window.$));!1===b&&"undefined"!=typeof window.jQuery&&(b=window.jQuery,"undefined"===typeof a?b=window.jQuery:"undefined"!=typeof window.jQuery.fn[a]&&(b=window.jQuery));return b},formData:function(a,
87
+ b){let d=this,e=a.find("input,textarea,select,button").get();if(1===arguments.length)return b={},e.forEach(function(f){f.name&&!f.disabled&&(f.checked||/select|textarea/i.test(f.nodeName)||/text/i.test(f.type)||c(f).hasClass("hasDatepicker")||c(f).hasClass("asl_slider_hidden"))&&(void 0==b[f.name]&&(b[f.name]=[]),c(f).hasClass("hasDatepicker")?b[f.name].push(c(f).parent().find(".asl_datepicker_hidden").val()):b[f.name].push(c(f).val()))}),JSON.stringify(b);"object"!=typeof b&&(b=JSON.parse(b));e.forEach(function(f){if(f.name)if(b[f.name]){let g=
88
+ b[f.name],h=c(f);"[object Array]"!==Object.prototype.toString.call(g)&&(g=[g]);if("checkbox"==f.type||"radio"==f.type){let k=h.val(),l=!1;for(let m=0;m<g.length;m++)if(g[m]==k){l=!0;break}h.prop("checked",l)}else h.val(g[0]),(c(f).hasClass("asl_gochosen")||c(f).hasClass("asl_goselect2"))&&WPD.intervalUntilExecute(function(k){k(f).trigger("change.asl_select2")},function(){return d.whichjQuery("asl_select2")},50,3),c(f).hasClass("hasDatepicker")&&WPD.intervalUntilExecute(function(k){let l=g[0],m=k(h.get(0)).datepicker("option",
89
+ "dateFormat");k(h.get(0)).datepicker("option","dateFormat","yy-mm-dd");k(h.get(0)).datepicker("setDate",l);k(h.get(0)).datepicker("option","dateFormat",m);k(h.get(0)).trigger("selectnochange")},function(){return d.whichjQuery("datepicker")},50,3)}else"checkbox"!=f.type&&"radio"!=f.type||c(f).prop("checked",!1)});return a},submitToUrl:function(a,b,d,e){let f;f=c('<form style="display: none;" />');f.attr("action",a);f.attr("method",b);c("body").append(f);"undefined"!==typeof d&&null!==d&&Object.keys(d).forEach(function(g){let h=
90
+ d[g],k=c('<input type="hidden" />');k.attr("name",g);k.attr("value",h);f.append(k)});"undefined"!=typeof e&&"new"==e&&f.attr("target","_blank");f.get(0).submit()},openInNewTab:function(a){Object.assign(document.createElement("a"),{target:"_blank",href:a}).click()},isScrolledToBottom:function(a,b){return a.scrollHeight-a.scrollTop-c(a).outerHeight()<b},getWidthFromCSSValue:function(a,b){a+="";a=-1<a.indexOf("px")?parseInt(a,10):-1<a.indexOf("%")?"undefined"!=typeof b&&null!=b?Math.floor(parseInt(a,
91
+ 10)/100*b):parseInt(a,10):parseInt(a,10);return 100>a?100:a},nicePhrase:function(a){return encodeURIComponent(a).replace(/%20/g,"+")},unqoutePhrase:function(a){return a.replace(/["']/g,"")},decodeHTMLEntities:function(a){let b=document.createElement("div");a&&"string"===typeof a&&(a=a.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),a=a.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),b.innerHTML=a,a=b.textContent,b.textContent="");return a},isScrolledToRight:function(a){return a.scrollWidth-
92
+ c(a).outerWidth()===a.scrollLeft},isScrolledToLeft:function(a){return 0===a.scrollLeft},wp_hooks_apply_filters:function(){return"undefined"!=typeof wp&&"undefined"!=typeof wp.hooks&&"undefined"!=typeof wp.hooks.applyFilters?wp.hooks.applyFilters.apply(null,arguments):"undefined"!=typeof arguments[1]?arguments[1]:!1}})})(WPD.dom);
93
+ (function(c){let a=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{detectAndFixFixedPositioning:function(){let b=!1,d=this.n.search.get(0);for(;d;)if(d=d.parentElement,null!=d&&"fixed"==window.getComputedStyle(d).position){b=!0;break}b||"fixed"==this.n.search.css("position")?("absolute"==this.n.resultsDiv.css("position")&&this.n.resultsDiv.css("position","fixed"),this.o.blocking||this.n.searchsettings.css("position","fixed")):("fixed"==this.n.resultsDiv.css("position")&&
94
+ this.n.resultsDiv.css("position","absolute"),this.o.blocking||this.n.searchsettings.css("position","absolute"))},fixResultsPosition:function(b){b="undefined"==typeof b?!1:b;var d=this.n.resultsDiv.css("position");if("fixed"==d||"absolute"==d)if(1==b||"visible"==this.n.resultsDiv.css("visibility"))if(b=this.n.search.offset(),"undefined"!=typeof b){let e=0;d="phone"==a.deviceType()?this.o.results.width_phone:"tablet"==a.deviceType()?this.o.results.width_tablet:this.o.results.width;"auto"==d&&(d=240>
95
+ this.n.search.outerWidth()?240:this.n.search.outerWidth());this.n.resultsDiv.css("width",isNaN(d)?d:d+"px");"right"==this.o.resultsSnapTo?e=this.n.resultsDiv.outerWidth()-this.n.search.outerWidth():"center"==this.o.resultsSnapTo&&(e=Math.floor((this.n.resultsDiv.outerWidth()-parseInt(this.n.search.outerWidth()))/2));this.n.resultsDiv.css({top:b.top+this.n.search.outerHeight(!0)-0+"px",left:b.left-e+"px"})}},fixSettingsPosition:function(b){if((1==("undefined"==typeof b?!1:b)||0!=this.n.prosettings.data("opened"))&&
96
+ 1!=this.o.blocking){let e;this.n.searchsettings.css("position");this.fixSettingsWidth();var d="none"!=this.n.prosettings.css("display")?this.n.prosettings:this.n.promagnifier;e=d.offset();b=e.top+d.height()-2+"px";d=("left"==this.o.settingsimagepos?e.left:e.left+d.width()-this.n.searchsettings.width())+"px";this.n.searchsettings.css({display:"block",top:b,left:d})}},fixSettingsWidth:function(){},hideOnInvisibleBox:function(){if(1==this.o.detectVisibility&&!this.n.search.hasClass("hiddend")&&(this.n.search.is(":hidden")||
97
+ !this.n.search.is(":visible"))){let b;null==(b=this.hideSettings)||b.call(this);this.hideResults()}}})})(WPD.dom);
98
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initAutocompleteEvent:function(){let a=this;1==a.o.autocomplete.enabled&&(a.n.text.on("keyup",function(b){a.keycode=b.keyCode||b.which;a.ktype=b.type;let d=39;c("body").hasClass("rtl")&&(d=37);a.keycode==d&&""!=a.n.textAutocomplete.val()?(b.preventDefault(),a.n.text.val(a.n.textAutocomplete.val()),null!=a.post&&a.post.abort(),a.search()):(null!=a.postAuto&&a.postAuto.abort(),a.autocompleteGoogleOnly())}),a.n.text.on("keyup mouseup input blur select",
99
+ function(){a.fixAutocompleteScrollLeft()}))}})})(WPD.dom);
100
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initMagnifierEvents:function(){let a=this;a.n.promagnifier.on("click",function(b){a.n.search.attr("asl-compact");a.keycode=b.keyCode||b.which;a.ktype=b.type;let d;null==(d=a.gaEvent)||d.call(a,"magnifier");if(a.n.text.val().length>=a.o.charcount&&1==a.o.redirectOnClick&&"first_result"!=a.o.trigger.click)return a.doRedirectToResults("click"),clearTimeout(void 0),!1;if("ajax_search"!=a.o.trigger.click&&"first_result"!=a.o.trigger.click)return!1;
101
+ a.searchAbort();clearTimeout(a.timeouts.search);a.n.proloading.css("display","none");a.timeouts.search=setTimeout(function(){c("form",a.n.searchsettings).serialize()+a.n.text.val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader?a.search():a.isRedirectToFirstResult()?a.doRedirectToFirstResult():a.n.proclose.css("display","block")},a.o.trigger.delay)})}})})(WPD.dom);
102
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initFacetEvents:function(){let a=this;c("input[type=checkbox]",a.n.searchsettings).on("asl_chbx_change",function(b){a.ktype=b.type;a.n.searchsettings.find("input[name=filters_changed]").val(1);let d;null==(d=a.gaEvent)||d.call(a,"facet_change",{option_label:c(this).closest("fieldset").find("legend").text(),option_value:c(this).closest(".asl_option").find(".asl_option_label").text()+(c(this).prop("checked")?"(checked)":"(unchecked)")});a.setFilterStateInput(65);
103
+ a.searchWithCheck(80)})}})})(WPD.dom);
104
+ (function(c){let a=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initInputEvents:function(){this._initFocusInput();this.o.trigger.type&&this._initSearchInput();this._initEnterEvent();this._initFormEvent()},_initFocusInput:function(){let b=this;b.n.text.on("click",function(d){d.stopPropagation();d.stopImmediatePropagation();c(this).trigger("focus");let e;null==(e=b.gaEvent)||e.call(b,"focus");if(c("form",b.n.searchsettings).serialize()+b.n.text.val().trim()==b.lastSuccesfulSearch)return b.resultsOpened||
105
+ b.usingLiveLoader||(b._no_animations=!0,b.showResults(),b._no_animations=!1),!1});b.n.text.on("focus input",function(d){b.searching||(""!=c(this).val()?b.n.proclose.css("display","block"):b.n.proclose.css({display:"none"}))})},_initSearchInput:function(){let b=this,d=b.n.text.val();b.n.text.on("input",function(e){b.keycode=e.keyCode||e.which;b.ktype=e.type;if(a.detectIE()){if(d==b.n.text.val())return!1;d=b.n.text.val()}if(b.n.text.val().length<b.o.charcount){b.n.proloading.css("display","none");if(0==
106
+ b.o.blocking){let f;null==(f=b.hideSettings)||f.call(b)}b.hideResults(!1);b.searchAbort();clearTimeout(b.timeouts.search);return!1}b.searchAbort();clearTimeout(b.timeouts.search);b.n.proloading.css("display","none");b.timeouts.search=setTimeout(function(){c("form",b.n.searchsettings).serialize()+b.n.text.val().trim()!=b.lastSuccesfulSearch||!b.resultsOpened&&!b.usingLiveLoader?b.search():b.isRedirectToFirstResult()?b.doRedirectToFirstResult():b.n.proclose.css("display","block")},b.o.trigger.delay)})},
107
+ _initEnterEvent:function(){let b=this,d,e=!1;b.n.text.on("keyup",function(f){b.keycode=f.keyCode||f.which;b.ktype=f.type;if(13==b.keycode){clearTimeout(d);d=setTimeout(function(){e=!1},300);if(e)return!1;e=!0}f=c(this).hasClass("orig");if(b.n.text.val().length>=b.o.charcount&&f&&13==b.keycode){let g;null==(g=b.gaEvent)||g.call(b,"return");1==b.o.redirectOnEnter?"first_result"!=b.o.trigger.return?b.doRedirectToResults(b.ktype):b.search():"ajax_search"==b.o.trigger.return&&(c("form",b.n.searchsettings).serialize()+
108
+ b.n.text.val().trim()!=b.lastSuccesfulSearch||!b.resultsOpened&&!b.usingLiveLoader)&&b.search();clearTimeout(b.timeouts.search)}})},_initFormEvent:function(){let b=this;c(b.n.text.closest("form").get(0)).on("submit",function(d,e){d.preventDefault();a.isMobile()?b.o.redirectOnEnter?(d=new Event("keyup"),d.keyCode=d.which=13,this.n.text.get(0).dispatchEvent(d)):(b.search(),document.activeElement.blur()):"undefined"!=typeof e&&"ajax"==e&&b.search()})}})})(WPD.dom);
109
+ (function(c){let a=window.WPD.ajaxsearchlite,b=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initOtherEvents:function(){let d=this;if(b.isMobile()&&b.detectIOS())d.n.text.on("touchstart",function(){d.savedScrollTop=window.scrollY;d.savedContainerTop=d.n.search.offset().top});d.n.proclose.on(d.clickTouchend,function(f){f.preventDefault();f.stopImmediatePropagation();d.n.text.val("");d.n.textAutocomplete.val("");d.hideResults();d.n.text.trigger("focus");d.n.proloading.css("display",
110
+ "none");d.hideLoader();d.searchAbort();0<c(".asl_es_"+d.o.id).length?(d.showLoader(),d.liveLoad(".asl_es_"+d.o.id,d.getCurrentLiveURL(),!1)):d.o.resPage.useAjax&&(d.showLoader(),d.liveLoad(d.o.resPage.selector,d.getRedirectURL()));d.n.text.get(0).focus()});if(b.isMobile()){var e=function(){d.orientationChange();setTimeout(function(){d.orientationChange()},600)};d.documentEventHandlers.push({node:window,event:"orientationchange",handler:e});c(window).on("orientationchange",e)}else e=function(){d.resize()},
111
+ d.documentEventHandlers.push({node:window,event:"resize",handler:e}),c(window).on("resize",e,{passive:!0});e=function(){d.scrolling(!1)};d.documentEventHandlers.push({node:window,event:"scroll",handler:e});c(window).on("scroll",e,{passive:!0});if(b.isMobile()&&""!=d.o.mobile.menu_selector)c(d.o.mobile.menu_selector).on("touchend",function(){let f=this;setTimeout(function(){let g=c(f).find("input.orig");g=0==g.length?c(f).next().find("input.orig"):g;g=0==g.length?c(f).parent().find("input.orig"):g;
112
+ g=0==g.length?d.n.text:g;d.n.search.is(":visible")&&g.get(0).focus()},300)});b.detectIOS()&&b.isMobile()&&b.isTouchDevice()&&16>parseInt(d.n.text.css("font-size"))&&(d.n.text.data("fontSize",d.n.text.css("font-size")).css("font-size","16px"),d.n.textAutocomplete.css("font-size","16px"),c("body").append("<style>#ajaxsearchlite"+d.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}</style>"))},orientationChange:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();
113
+ this.fixResultsPosition();"isotopic"==this.o.resultstype&&"visible"==this.n.resultsDiv.css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},resize:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();"isotopic"==this.o.resultstype&&"visible"==this.n.resultsDiv.css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},scrolling:function(d){this.detectAndFixFixedPositioning();
114
+ this.hideOnInvisibleBox();this.fixSettingsPosition(d);this.fixResultsPosition(d)},initTryThisEvents:function(){let d=this;d.n.trythis.find("a").on("click touchend",function(e){e.preventDefault();e.stopImmediatePropagation();document.activeElement.blur();d.n.textAutocomplete.val("");d.n.text.val(c(this).html());let f;null==(f=d.gaEvent)||f.call(d,"try_this");setTimeout(function(){d.n.text.trigger("input")},50)})},initPrevState:function(){let d=this;a.firstIteration&&null==a.prevState&&(a.prevState=
115
+ localStorage.getItem("asl-"+WPD.Base64.encode(location.href)),null!=a.prevState&&(a.prevState=JSON.parse(a.prevState),a.prevState.settings=WPD.Base64.decode(a.prevState.settings)));if(null!=a.prevState&&"undefined"!=typeof a.prevState.id&&(a.prevState.trigger&&a.prevState.id==d.o.id&&a.prevState.instance==d.o.iid&&(""!=a.prevState.phrase&&(d.triggerPrevState=!0,d.n.text.val(a.prevState.phrase)),b.formData(c("form",d.n.searchsettings))!=a.prevState.settings&&(d.triggerPrevState=!0,d.settingsChanged=
116
+ !0,b.formData(c("form",d.n.searchsettings),a.prevState.settings)),null!==a.prevState.settingsOriginal&&(d.originalFormData=WPD.Base64.decode(a.prevState.settingsOriginal),d.setFilterStateInput(0))),"block"==d.o.resultsposition)){let f=!0;d.n.search.on("asl_results_show",function(){f&&(f=!1,setTimeout(function(){let g=0<c(a.prevState.scrollTo).length?c(a.prevState.scrollTo).offset().top:d.n.resultsDiv.find(".item").last().offset().top;window.scrollTo({top:g,behavior:"instant"})},500))})}localStorage.removeItem("asl-"+
117
+ WPD.Base64.encode(location.href));let e=function(){var f=d.n.text.val();f={id:d.o.id,trigger:""!=f||d.settingsChanged,instance:d.o.iid,phrase:f,settingsOriginal:"undefined"===typeof d.originalFormData?null:WPD.Base64.encode(d.originalFormData),settings:WPD.Base64.encode(b.formData(c("form",d.n.searchsettings)))};localStorage.setItem("asl-"+WPD.Base64.encode(location.href),JSON.stringify(f))};c(".asl_es_"+d.o.id).on("click","a",e);d.n.resultsDiv.on("click",".results .item",e);d.documentEventHandlers.push({node:document.body,
118
+ event:"asl_memorize_state_"+d.o.id,handler:e});c("body").on("asl_memorize_state_"+d.o.id,e)}})})(WPD.dom);
119
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initResultsEvents:function(){let a=this;a.n.resultsDiv.css({opacity:"0"});let b=function(d){let e=d.keyCode||d.which,f=d.type;if(0==c(d.target).closest(".asl_w").length){if(0==a.o.blocking&&!a.dragging){let g;null==(g=a.hideSettings)||g.call(a)}a.hideOnInvisibleBox();"click"==f&&"touchend"==f&&3==e||0==a.resultsOpened||1!=a.o.closeOnDocClick||a.dragging||(a.hideLoader(),a.searchAbort(),a.hideResults())}};a.documentEventHandlers.push({node:document,
120
+ event:a.clickTouchend,handler:b});c(document).on(a.clickTouchend,b)}})})(WPD.dom);
121
+ (function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initSettingsEvents:function(){let a=this;a.n.searchsettings.on("click",function(){a.settingsChanged=!0});a.n.searchsettings.on(a.clickTouchend,function(b){"undefined"==typeof b.target||c(b.target).hasClass("noUi-handle")||b.stopImmediatePropagation()});a.n.prosettings.on("click",function(){0==a.n.prosettings.data("opened")?a.showSettings():a.hideSettings()});1==a.o.settingsVisible&&a.showSettings(!1);c('.asl_option_cat input[type="checkbox"]',
122
+ a.n.searchsettings).on("asl_chbx_change",function(){a.settingsCheckboxToggle(c(this).closest(".asl_option_cat"))});c(".asl_option_cat",a.n.searchsettings).forEach(function(b){a.settingsCheckboxToggle(c(b),!1)})}})})(WPD.dom);(function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{monitorTouchMove:function(){let a=this;a.dragging=!1;c("body").on("touchmove",function(){a.dragging=!0}).on("touchstart",function(){a.dragging=!1})}})})(WPD.dom);
123
+ (function(c){let a=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{initEtc:function(){let b=this,d=null;b.n.trythis.css({visibility:"visible"});c("div.asl_option",b.n.searchsettings).on(b.mouseupTouchend,function(e){e.preventDefault();e.stopImmediatePropagation();if(b.dragging)return!1;c(this).find('input[type="checkbox"]').prop("checked",!c(this).find('input[type="checkbox"]').prop("checked"));clearTimeout(d);let f=this;d=setTimeout(function(){c(f).find('input[type="checkbox"]').trigger("asl_chbx_change")},
124
+ 50)});c("div.asl_option label",b.n.searchsettings).on("click",function(e){e.preventDefault()});c("fieldset.asl_checkboxes_filter_box",b.n.searchsettings).forEach(function(){let e=!0;c(this).find('.asl_option:not(.asl_option_selectall) input[type="checkbox"]').forEach(function(){if(1==c(this).prop("checked"))return e=!1});e&&c(this).find('.asl_option_selectall input[type="checkbox"]').prop("checked",!1).removeAttr("data-origvalue")});c("fieldset",b.n.searchsettings).forEach(function(){c(this).find(".asl_option:not(.hiddend)").last().addClass("asl-o-last")});
125
+ c('.asl_option_cat input[type="checkbox"], .asl_option_cff input[type="checkbox"]',b.n.searchsettings).on("asl_chbx_change",function(){let e=c(this).data("targetclass");"string"==typeof e&&""!=e&&c("input."+e,b.n.searchsettings).prop("checked",c(this).prop("checked"))});b.n.resultsDiv.on("click",".results .item",function(){let e;null==(e=b.gaEvent)||e.call(b,"result_click",{result_title:c(this).find("a.