// source --> https://easipc.co.uk/wp-content/plugins/cookie-law-info/legacy/public/js/cookie-law-info-public.js?ver=3.4.2 
const CLI_ACCEPT_COOKIE_NAME = (window.CLI_ACCEPT_COOKIE_NAME !== undefined ? window.CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy');
const CLI_PREFERENCE_COOKIE = (window.CLI_PREFERENCE_COOKIE !== undefined ? window.CLI_PREFERENCE_COOKIE : 'CookieLawInfoConsent');
const CLI_ACCEPT_COOKIE_EXPIRE = (window.CLI_ACCEPT_COOKIE_EXPIRE !== undefined ? window.CLI_ACCEPT_COOKIE_EXPIRE : 365);
let CLI_COOKIEBAR_AS_POPUP = (window.CLI_COOKIEBAR_AS_POPUP !== undefined ? window.CLI_COOKIEBAR_AS_POPUP : false);
const CLI_Cookie = {
	set: function (name, value, days) {
		var secure = "";
		if (true === Boolean(Cli_Data.secure_cookies)) {
			secure = ";secure";
		}
		if (days) {
			var date = new Date();
			date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
			var expires = "; expires=" + date.toGMTString();
		} else {
			var expires = "";
		}
		document.cookie = name + "=" + value + secure + expires + "; path=/";
		if (days < 1) {
			let host_name = window.location.hostname;
			document.cookie = name + "=" + value + expires + "; path=/; domain=." + host_name + ";";
			if (host_name.indexOf("www") != 1) {
				var host_name_withoutwww = host_name.replace('www', '');
				document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name_withoutwww + ";";
			}
			host_name = host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".") - 1));
			document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name + ";";
		}
	},
	read: function (name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for (var i = 0; i < ca.length; i++) {
			var c = ca[i];
			while (c.charAt(0) == ' ') {
				c = c.substring(1, c.length);
			}
			if (c.indexOf(nameEQ) === 0) {
				return c.substring(nameEQ.length, c.length);
			}
		}
		return null;
	},
	erase: function (name) {
		this.set(name, "", -10);
	},
	exists: function (name) {
		return (this.read(name) !== null);
	},
	getallcookies: function () {
		var pairs = document.cookie.split(";");
		var cookieslist = {};
		for (var i = 0; i < pairs.length; i++) {
			var pair = pairs[i].split("=");
			cookieslist[(pair[0] + '').trim()] = unescape(pair[1]);
		}
		return cookieslist;
	}
}
var CLI =
{
	bar_config: {},
	showagain_config: {},
	allowedCategories: [],
	js_blocking_enabled: false,
	set: function (args) {
		if (typeof JSON.parse !== "function") {
			console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
			return;
		}
		if (typeof args.settings !== 'object') {
			this.settings = JSON.parse(args.settings);
		} else {
			this.settings = args.settings;
		}
		this.js_blocking_enabled = Boolean(Cli_Data.js_blocking);
		this.settings = args.settings;
		this.bar_elm = jQuery(this.settings.notify_div_id);
		this.showagain_elm = jQuery(this.settings.showagain_div_id);
		this.settingsModal = jQuery('#cliSettingsPopup');

		/* buttons */
		this.main_button = jQuery('.cli-plugin-main-button');
		this.main_link = jQuery('.cli-plugin-main-link');
		this.reject_link = jQuery('.cookie_action_close_header_reject');
		this.delete_link = jQuery(".cookielawinfo-cookie-delete");
		this.settings_button = jQuery('.cli_settings_button');
		this.accept_all_button = jQuery('.wt-cli-accept-all-btn');
		if (this.settings.cookie_bar_as == 'popup') {
			CLI_COOKIEBAR_AS_POPUP = true;
		}
		this.mayBeSetPreferenceCookie();
		this.addStyleAttribute();
		this.configBar();
		this.toggleBar();
		this.attachDelete();
		this.attachEvents();
		this.configButtons();
		this.reviewConsent();
		var cli_hidebar_on_readmore = this.hideBarInReadMoreLink();
		if (Boolean(this.settings.scroll_close) === true && cli_hidebar_on_readmore === false) {
			window.addEventListener("scroll", CLI.closeOnScroll, false);
		}

	},
	hideBarInReadMoreLink: function () {
		if (Boolean(CLI.settings.button_2_hidebar) === true && this.main_link.length > 0 && this.main_link.hasClass('cli-minimize-bar')) {
			this.hideHeader();
			cliBlocker.cookieBar(false);
			this.showagain_elm.slideDown(this.settings.animate_speed_show);
			return true;
		}
		return false;
	},
	attachEvents: function () {
		jQuery(document).on(
			'click',
			'.wt-cli-privacy-btn',
			function (e) {
				e.preventDefault();
				CLI.accept_close();
				CLI.settingsPopUpClose();
			}
		);

		jQuery('.wt-cli-accept-btn').on(
			"click",
			function (e) {
				e.preventDefault();
				CLI.acceptRejectCookies(jQuery(this));
			});
		jQuery('.wt-cli-accept-all-btn').on(
			"click",
			function (e) {
				e.preventDefault();
				CLI.acceptRejectCookies(jQuery(this), 'accept');
			});
		jQuery('.wt-cli-reject-btn').on(
			"click",
			function (e) {
				e.preventDefault();
				CLI.acceptRejectCookies(jQuery(this), 'reject');
			});
		this.settingsPopUp();
		this.settingsTabbedAccordion();
		this.toggleUserPreferenceCheckBox();
		this.hideCookieBarOnClose();
		this.cookieLawInfoRunCallBacks();

	},
	acceptRejectCookies(element, action = 'custom') {
		var open_link = element[0].hasAttribute("href") && element.attr("href") != '#' ? true : false;
		var new_window = false;
		if (action == 'accept') {
			this.enableAllCookies();
			this.accept_close();
			new_window = CLI.settings.button_7_new_win ? true : false;

		} else if (action == 'reject') {
			this.disableAllCookies();
			this.reject_close();
			new_window = Boolean(this.settings.button_3_new_win) ? true : false;
		} else {
			this.accept_close();
			new_window = Boolean(this.settings.button_1_new_win) ? true : false;
		}
		if (open_link) {
			if (new_window) {
				window.open(element.attr("href"), '_blank');
			} else {
				window.location.href = element.attr("href");
			}
		}
	},
	toggleUserPreferenceCheckBox: function () {

		jQuery('.cli-user-preference-checkbox').each(
			function () {

				const categoryCookie = 'cookielawinfo-' + jQuery(this).attr('data-id');
				const categoryCookieValue = CLI_Cookie.read(categoryCookie);
				if (categoryCookieValue == null) {
					if (jQuery(this).is(':checked')) {
						CLI_Cookie.set(categoryCookie, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
					} else {
						CLI_Cookie.set(categoryCookie, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
					}
				} else {
					if (categoryCookieValue == "yes") {
						jQuery(this).prop("checked", true);
					} else {
						jQuery(this).prop("checked", false);
					}

				}

			}
		);
		jQuery('.cli-user-preference-checkbox').on(
			"click",
			function (e) {
				var dataID = jQuery(this).attr('data-id');
				var currentToggleElm = jQuery('.cli-user-preference-checkbox[data-id=' + dataID + ']');
				if (jQuery(this).is(':checked')) {
					CLI_Cookie.set('cookielawinfo-' + dataID, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
					currentToggleElm.prop('checked', true);
				} else {
					CLI_Cookie.set('cookielawinfo-' + dataID, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
					currentToggleElm.prop('checked', false);
				}
				CLI.checkCategories();
				CLI.generateConsent();
			}
		);

	},
	settingsPopUp: function () {
		jQuery(document).on(
			'click',
			'.cli_settings_button',
			function (e) {
				e.preventDefault();
				CLI.settingsModal.addClass("cli-show").css({ 'opacity': 0 }).animate({ 'opacity': 1 });
				CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup");
				jQuery('body').addClass("cli-modal-open");
				jQuery(".cli-settings-overlay").addClass("cli-show");
				jQuery("#cookie-law-info-bar").css({ 'opacity': .1 });
				if (!jQuery('.cli-settings-mobile').is(':visible')) {
					CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click");
				}
			}
		);
		jQuery('#cliModalClose').on(
			"click",
			function (e) {
				CLI.settingsPopUpClose();
			}
		);
		CLI.settingsModal.on(
			"click",
			function (e) {
				if (!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))) {
					CLI.settingsPopUpClose();
				}
			}
		);
		jQuery('.cli_enable_all_btn').on(
			"click",
			function (e) {
				var cli_toggle_btn = jQuery(this);
				var enable_text = cli_toggle_btn.attr('data-enable-text');
				var disable_text = cli_toggle_btn.attr('data-disable-text');
				if (cli_toggle_btn.hasClass('cli-enabled')) {
					CLI.disableAllCookies();
					cli_toggle_btn.html(enable_text);
				} else {
					CLI.enableAllCookies();
					cli_toggle_btn.html(disable_text);

				}
				jQuery(this).toggleClass('cli-enabled');
			}
		);

		this.privacyReadmore();
	},
	settingsTabbedAccordion: function () {
		jQuery(".cli-tab-header").on(
			"click",
			function (e) {
				if (!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox'))) {
					if (jQuery(this).hasClass("cli-tab-active")) {
						jQuery(this).removeClass("cli-tab-active");
						jQuery(this)
							.siblings(".cli-tab-content")
							.slideUp(200);

					} else {
						jQuery(".cli-tab-header").removeClass("cli-tab-active");
						jQuery(this).addClass("cli-tab-active");
						jQuery(".cli-tab-content").slideUp(200);
						jQuery(this)
							.siblings(".cli-tab-content")
							.slideDown(200);
					}
				}
			}
		);
	},
	settingsPopUpClose: function () {
		this.settingsModal.removeClass('cli-show');
		this.settingsModal.addClass('cli-out');
		jQuery('body').removeClass("cli-modal-open");
		jQuery(".cli-settings-overlay").removeClass("cli-show");
		jQuery("#cookie-law-info-bar").css({ 'opacity': 1 });
	},
	privacyReadmore: function () {
		var el = jQuery('.cli-privacy-content .cli-privacy-content-text');
		if (el.length > 0) {
			var clone = el.clone(),
				originalHtml = clone.html(),
				originalHeight = el.outerHeight(),
				Trunc = {
					addReadmore: function (textBlock) {
						if (textBlock.html().length > 250) {
							jQuery('.cli-privacy-readmore').show();
						} else {
							jQuery('.cli-privacy-readmore').hide();
						}
					},
					truncateText: function (textBlock) {
						var strippedText = jQuery('<div />').html(textBlock.html());
						strippedText.find('table').remove();
						textBlock.html(strippedText.html());
						const currentText = textBlock.text();
						if (currentText.trim().length > 250) {
							var newStr = currentText.substring(0, 250);
							textBlock.empty().html(newStr).append('...');
						}
					},
					replaceText: function (textBlock, original) {
						return textBlock.html(original);
					}

				};
			Trunc.addReadmore(el);
			Trunc.truncateText(el);
			jQuery('a.cli-privacy-readmore').on(
				"click",
				function (e) {
					e.preventDefault();
					if (jQuery('.cli-privacy-overview').hasClass('cli-collapsed')) {
						Trunc.truncateText(el);
						jQuery('.cli-privacy-overview').removeClass('cli-collapsed');
						el.css('height', '100%');
					} else {
						jQuery('.cli-privacy-overview').addClass('cli-collapsed');
						Trunc.replaceText(el, originalHtml);
					}

				}
			);
		}

	},
	attachDelete: function () {
		this.delete_link.on(
			"click",
			function (e) {
				CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);
				for (var k in Cli_Data.nn_cookie_ids) {
					CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
				}
				CLI.generateConsent();
				return false;
			}
		);

	},
	configButtons: function () {
		/*[cookie_button] */
		this.main_button.css('color', this.settings.button_1_link_colour);
		if (Boolean(this.settings.button_1_as_button)) {
			this.main_button.css('background-color', this.settings.button_1_button_colour);

			this.main_button.on(
				'mouseenter',
				function () {
					jQuery(this).css('background-color', CLI.settings.button_1_button_hover);
				}
			)
				.on(
					'mouseleave',
					function () {
						jQuery(this).css('background-color', CLI.settings.button_1_button_colour);
					}
				);
		}

		/* [cookie_link] */
		this.main_link.css('color', this.settings.button_2_link_colour);
		if (Boolean(this.settings.button_2_as_button)) {
			this.main_link.css('background-color', this.settings.button_2_button_colour);

			this.main_link.on(
				'mouseenter',
				function () {
					jQuery(this).css('background-color', CLI.settings.button_2_button_hover);
				}
			)
				.on(
					'mouseleave',
					function () {
						jQuery(this).css('background-color', CLI.settings.button_2_button_colour);
					}
				);

		}
		/* [cookie_reject] */
		this.reject_link.css('color', this.settings.button_3_link_colour);
		if (Boolean(this.settings.button_3_as_button)) {

			this.reject_link.css('background-color', this.settings.button_3_button_colour);
			this.reject_link.on(
				'mouseenter',
				function () {
					jQuery(this).css('background-color', CLI.settings.button_3_button_hover);
				}
			)
				.on(
					'mouseleave',
					function () {
						jQuery(this).css('background-color', CLI.settings.button_3_button_colour);
					}
				);
		}
		/* [cookie_settings] */
		this.settings_button.css('color', this.settings.button_4_link_colour);
		if (Boolean(this.settings.button_4_as_button)) {
			this.settings_button.css('background-color', this.settings.button_4_button_colour);
			this.settings_button.on(
				'mouseenter',
				function () {
					jQuery(this).css('background-color', CLI.settings.button_4_button_hover);
				}
			)
				.on(
					'mouseleave',
					function () {
						jQuery(this).css('background-color', CLI.settings.button_4_button_colour);
					}
				);
		}
		/* [cookie_accept_all] */
		this.accept_all_button.css('color', this.settings.button_7_link_colour);
		if (this.settings.button_7_as_button) {
			this.accept_all_button.css('background-color', this.settings.button_7_button_colour);
			this.accept_all_button.on(
				'mouseenter',
				function () {
					jQuery(this).css('background-color', CLI.settings.button_7_button_hover);
				}
			)
				.on(
					'mouseleave',
					function () {
						jQuery(this).css('background-color', CLI.settings.button_7_button_colour);
					}
				);
		}
	},
	toggleBar: function () {
		if (CLI_COOKIEBAR_AS_POPUP) {
			this.barAsPopUp(1);
		}
		if (CLI.settings.cookie_bar_as == 'widget') {
			this.barAsWidget(1);
		}
		if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) {
			this.displayHeader();
		} else {
			this.hideHeader();
		}
		if (Boolean(this.settings.show_once_yn)) {
			setTimeout(
				function () {
					CLI.close_header();
				},
				CLI.settings.show_once
			);
		}
		if (CLI.js_blocking_enabled === false) {
			if (Boolean(Cli_Data.ccpaEnabled) === true) {
				if (Cli_Data.ccpaType === 'ccpa' && Boolean(Cli_Data.ccpaBarEnabled) === false) {
					cliBlocker.cookieBar(false);
				}
			} else {
				jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();
			}
		}

		this.showagain_elm.on(
			"click",
			function (e) {
				e.preventDefault();
				CLI.showagain_elm.slideUp(
					CLI.settings.animate_speed_hide,
					function () {
						CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);
						if (CLI_COOKIEBAR_AS_POPUP) {
							CLI.showPopupOverlay();
						}
					}
				);
			}
		);
	},
	configShowAgain: function () {
		this.showagain_config = {
			'background-color': this.settings.background,
			'color': this.l1hs(this.settings.text),
			'position': 'fixed',
			'font-family': this.settings.font_family
		};
		if (Boolean(this.settings.border_on)) {
			var border_to_hide = 'border-' + this.settings.notify_position_vertical;
			this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border);
			this.showagain_config[border_to_hide] = 'none';
		}
		var cli_win = jQuery(window);
		var cli_winw = cli_win.width();
		var showagain_x_pos = this.settings.showagain_x_position;
		if (cli_winw < 300) {
			showagain_x_pos = 10;
			this.showagain_config.width = cli_winw - 20;
		} else {
			this.showagain_config.width = 'auto';
		}
		var cli_defw = cli_winw > 400 ? 500 : cli_winw - 20;
		if (CLI_COOKIEBAR_AS_POPUP) { /* cookie bar as popup */
			var sa_pos = this.settings.popup_showagain_position;
			var sa_pos_arr = sa_pos.split('-');
			if (sa_pos_arr[1] == 'left') {
				this.showagain_config.left = showagain_x_pos;
			} else if (sa_pos_arr[1] == 'right') {
				this.showagain_config.right = showagain_x_pos;
			}
			if (sa_pos_arr[0] == 'top') {
				this.showagain_config.top = 0;

			} else if (sa_pos_arr[0] == 'bottom') {
				this.showagain_config.bottom = 0;
			}
			this.bar_config['position'] = 'fixed';

		} else if (this.settings.cookie_bar_as == 'widget') {
			this.showagain_config.bottom = 0;
			if (this.settings.widget_position == 'left') {
				this.showagain_config.left = showagain_x_pos;
			} else if (this.settings.widget_position == 'right') {
				this.showagain_config.right = showagain_x_pos;
			}
		} else {
			if (this.settings.notify_position_vertical == "top") {
				this.showagain_config.top = '0';
			} else if (this.settings.notify_position_vertical == "bottom") {
				this.bar_config['position'] = 'fixed';
				this.bar_config['bottom'] = '0';
				this.showagain_config.bottom = '0';
			}
			if (this.settings.notify_position_horizontal == "left") {
				this.showagain_config.left = showagain_x_pos;
			} else if (this.settings.notify_position_horizontal == "right") {
				this.showagain_config.right = showagain_x_pos;
			}
		}
		this.showagain_elm.css(this.showagain_config);
	},
	configBar: function () {
		this.bar_config = {
			'background-color': this.settings.background,
			'color': this.settings.text,
			'font-family': this.settings.font_family
		};
		if (this.settings.notify_position_vertical == "top") {
			this.bar_config['top'] = '0';
			if (Boolean(this.settings.header_fix) === true) {
				this.bar_config['position'] = 'fixed';
			}
		} else {
			this.bar_config['bottom'] = '0';
		}
		this.configShowAgain();
		this.bar_elm.css(this.bar_config).hide();
	},
	l1hs: function (str) {
		if (str.charAt(0) == "#") {
			str = str.substring(1, str.length);
		} else {
			return "#" + str;
		}
		return this.l1hs(str);
	},
	close_header: function () {
		CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
		this.hideHeader();
	},
	accept_close: function () {
		this.hidePopupOverlay();
		this.generateConsent();
		this.cookieLawInfoRunCallBacks();

		CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
		if (Boolean(this.settings.notify_animate_hide)) {
			if (CLI.js_blocking_enabled === true) {
				this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts);
			} else {
				this.bar_elm.slideUp(this.settings.animate_speed_hide);
			}

		} else {
			if (CLI.js_blocking_enabled === true) {
				this.bar_elm.hide(0, cliBlocker.runScripts);

			} else {
				this.bar_elm.hide();
			}
		}
		if (Boolean(this.settings.showagain_tab)) {
			this.showagain_elm.slideDown(this.settings.animate_speed_show);
		}
		if (Boolean(this.settings.accept_close_reload) === true) {
			this.reload_current_page();
		}
		return false;
	},
	reject_close: function () {
		this.hidePopupOverlay();
		this.generateConsent();
		this.cookieLawInfoRunCallBacks();
		for (var k in Cli_Data.nn_cookie_ids) {
			CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
		}
		CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'no', CLI_ACCEPT_COOKIE_EXPIRE);

		if (Boolean(this.settings.notify_animate_hide)) {
			if (CLI.js_blocking_enabled === true) {

				this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts);

			} else {

				this.bar_elm.slideUp(this.settings.animate_speed_hide);
			}

		} else {
			if (CLI.js_blocking_enabled === true) {

				this.bar_elm.hide(cliBlocker.runScripts);

			} else {

				this.bar_elm.hide();

			}

		}
		if (Boolean(this.settings.showagain_tab)) {
			this.showagain_elm.slideDown(this.settings.animate_speed_show);
		}
		if (Boolean(this.settings.reject_close_reload) === true) {
			this.reload_current_page();
		}
		return false;
	},
	reload_current_page: function () {

		window.location.reload(true);
	},
	closeOnScroll: function () {
		if (window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) {
			CLI.accept_close();
			if (Boolean(CLI.settings.scroll_close_reload) === true) {
				window.location.reload();
			}
			window.removeEventListener("scroll", CLI.closeOnScroll, false);
		}
	},
	displayHeader: function () {
		if (Boolean(this.settings.notify_animate_show)) {
			this.bar_elm.slideDown(this.settings.animate_speed_show);
		} else {
			this.bar_elm.show();
		}
		this.showagain_elm.hide();
		if (CLI_COOKIEBAR_AS_POPUP) {
			this.showPopupOverlay();
		}
	},
	hideHeader: function () {
		if (Boolean(this.settings.showagain_tab)) {
			if (Boolean(this.settings.notify_animate_show)) {
				this.showagain_elm.slideDown(this.settings.animate_speed_show);
			} else {
				this.showagain_elm.show();
			}
		} else {
			this.showagain_elm.hide();
		}
		this.bar_elm.slideUp(this.settings.animate_speed_show);
		this.hidePopupOverlay();
	},
	hidePopupOverlay: function () {
		jQuery('body').removeClass("cli-barmodal-open");
		jQuery(".cli-popupbar-overlay").removeClass("cli-show");
	},
	showPopupOverlay: function () {
		if (this.bar_elm.length) {
			if (Boolean(this.settings.popup_overlay)) {
				jQuery('body').addClass("cli-barmodal-open");
				jQuery(".cli-popupbar-overlay").addClass("cli-show");
			}
		}

	},
	barAsWidget: function (a) {
		var cli_elm = this.bar_elm;
		cli_elm.attr('data-cli-type', 'widget');
		var cli_win = jQuery(window);
		var cli_winh = cli_win.height() - 40;
		var cli_winw = cli_win.width();
		var cli_defw = cli_winw > 400 ? 300 : cli_winw - 30;
		cli_elm.css(
			{
				'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'overflow': 'auto', 'position': 'fixed', 'box-sizing': 'border-box'
			}
		);
		if (this.checkifStyleAttributeExist() === false) {
			cli_elm.css({ 'padding': '25px 15px' });
		}
		if (this.settings.widget_position == 'left') {
			cli_elm.css(
				{
					'left': '15px', 'right': 'auto', 'bottom': '15px', 'top': 'auto'
				}
			);
		} else {
			cli_elm.css(
				{
					'left': 'auto', 'right': '15px', 'bottom': '15px', 'top': 'auto'
				}
			);
		}
		if (a) {
			this.setResize();
		}
	},
	barAsPopUp: function (a) {
		if (typeof cookie_law_info_bar_as_popup === 'function') {
			return false;
		}
		var cli_elm = this.bar_elm;
		cli_elm.attr('data-cli-type', 'popup');
		var cli_win = jQuery(window);
		var cli_winh = cli_win.height() - 40;
		var cli_winw = cli_win.width();
		var cli_defw = cli_winw > 700 ? 500 : cli_winw - 20;

		cli_elm.css(
			{
				'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'bottom': '', 'top': '50%', 'left': '50%', 'margin-left': (cli_defw / 2) * -1, 'margin-top': '-100px', 'overflow': 'auto'
			}
		).addClass('cli-bar-popup cli-modal-content');
		if (this.checkifStyleAttributeExist() === false) {
			cli_elm.css({ 'padding': '25px 15px' });
		}
		const cli_h = cli_elm.height();
		cli_elm.css({ 'top': '50%', 'margin-top': ((cli_h / 2) + 30) * -1 });
		setTimeout(
			function () {
				cli_elm.css(
					{
						'bottom': ''
					}
				);
			},
			100
		);
		if (a) {
			this.setResize();
		}
	},
	setResize: function () {
		var resizeTmr = null;
		jQuery(window).resize(
			function () {
				clearTimeout(resizeTmr);
				resizeTmr = setTimeout(
					function () {
						if (CLI_COOKIEBAR_AS_POPUP) {
							CLI.barAsPopUp();
						}
						if (CLI.settings.cookie_bar_as == 'widget') {
							CLI.barAsWidget();
						}
						CLI.configShowAgain();
					},
					500
				);
			}
		);
	},
	enableAllCookies: function () {

		jQuery('.cli-user-preference-checkbox').each(
			function () {
				var cli_chkbox_elm = jQuery(this);
				var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id');
				if (cli_chkbox_data_id != 'checkbox-necessary') {
					cli_chkbox_elm.prop('checked', true);
					CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
				}
			}
		);
	},
	disableAllCookies: function () {
		jQuery('.cli-user-preference-checkbox').each(
			function () {

				var cli_chkbox_elm = jQuery(this);
				var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id');
				const cliCategorySlug = cli_chkbox_data_id.replace('checkbox-', '');
				if (Cli_Data.strictlyEnabled.indexOf(cliCategorySlug) === -1) {
					cli_chkbox_elm.prop('checked', false);
					CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
				}
			}
		);
	},
	hideCookieBarOnClose: function () {
		jQuery(document).on(
			'click',
			'.cli_cookie_close_button',
			function (e) {
				e.preventDefault();
				var elm = jQuery(this);
				if (Cli_Data.ccpaType === 'ccpa') {
					CLI.enableAllCookies();
				}
				CLI.accept_close();
			}
		);
	},
	checkCategories: function () {
		var cliAllowedCategories = [];
		var cli_categories = {};
		jQuery('.cli-user-preference-checkbox').each(
			function () {
				var status = false;
				const cli_chkbox_elm = jQuery(this);
				let cli_chkbox_data_id = cli_chkbox_elm.attr('data-id');
				cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', '');
				const cli_chkbox_data_id_trimmed = cli_chkbox_data_id.replace('-', '_')
				if (jQuery(cli_chkbox_elm).is(':checked')) {
					status = true;
					cliAllowedCategories.push(cli_chkbox_data_id);
				}

				cli_categories[cli_chkbox_data_id_trimmed] = status;
			}
		);
		CLI.allowedCategories = cliAllowedCategories;
	},
	cookieLawInfoRunCallBacks: function () {
		this.checkCategories();
		if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes') {
			if ("function" == typeof CookieLawInfo_Accept_Callback) {
				CookieLawInfo_Accept_Callback();
			}
		}
	},
	generateConsent: function () {
		var preferenceCookie = CLI_Cookie.read(CLI_PREFERENCE_COOKIE);
		let cliConsent = {};
		if (preferenceCookie !== null) {
			cliConsent = window.atob(preferenceCookie);
			cliConsent = JSON.parse(cliConsent);
		}
		cliConsent.ver = Cli_Data.consentVersion;
		jQuery('.cli-user-preference-checkbox').each(
			function () {
				let categoryVal = '';
				let cli_chkbox_data_id = jQuery(this).attr('data-id');
				cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', '');
				if (jQuery(this).is(':checked')) {
					categoryVal = true;
				} else {
					categoryVal = false;
				}
				cliConsent[cli_chkbox_data_id] = categoryVal;
			}
		);
		cliConsent = JSON.stringify(cliConsent);
		cliConsent = window.btoa(cliConsent);
		CLI_Cookie.set(CLI_PREFERENCE_COOKIE, cliConsent, CLI_ACCEPT_COOKIE_EXPIRE);
	},
	addStyleAttribute: function () {
		var bar = this.bar_elm;
		var styleClass = '';
		if (jQuery(bar).find('.cli-bar-container').length > 0) {
			styleClass = jQuery('.cli-bar-container').attr('class');
			styleClass = styleClass.replace('cli-bar-container', '');
			styleClass = styleClass.trim();
			jQuery(bar).attr('data-cli-style', styleClass);
		}
	},
	getParameterByName: function (name, url) {
		if (!url) {
			url = window.location.href;
		}
		name = name.replace(/[\[\]]/g, '\\$&');
		var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
			results = regex.exec(url);
		if (!results) {
			return null;
		}
		if (!results[2]) {
			return '';
		}
		return decodeURIComponent(results[2].replace(/\+/g, ' '));
	},
	CookieLawInfo_Callback: function (enableBar, enableBlocking) {
		enableBar = typeof enableBar !== 'undefined' ? enableBar : true;
		enableBlocking = typeof enableBlocking !== 'undefined' ? enableBlocking : true;
		if (CLI.js_blocking_enabled === true && Boolean(Cli_Data.custom_integration) === true) {
			cliBlocker.cookieBar(enableBar);
			cliBlocker.runScripts(enableBlocking);
		}
	},
	checkifStyleAttributeExist: function () {
		var exist = false;
		var attr = this.bar_elm.attr('data-cli-style');
		if (typeof attr !== typeof undefined && attr !== false) {
			exist = true;
		}
		return exist;
	},
	reviewConsent: function () {
		jQuery(document).on(
			'click',
			'.cli_manage_current_consent,.wt-cli-manage-consent-link',
			function () {
				CLI.displayHeader();
			}
		);
	},
	mayBeSetPreferenceCookie: function () {
		if (CLI.getParameterByName('cli_bypass') === "1") {
			CLI.generateConsent();
		}
	}
}
var cliBlocker =
{
	blockingStatus: true,
	scriptsLoaded: false,
	ccpaEnabled: false,
	ccpaRegionBased: false,
	ccpaApplicable: false,
	ccpaBarEnabled: false,
	cliShowBar: true,
	isBypassEnabled: CLI.getParameterByName('cli_bypass'),
	checkPluginStatus: function (callbackA, callbackB) {
		this.ccpaEnabled = Boolean(Cli_Data.ccpaEnabled);
		this.ccpaRegionBased = Boolean(Cli_Data.ccpaRegionBased);
		this.ccpaBarEnabled = Boolean(Cli_Data.ccpaBarEnabled);

		if (Boolean(Cli_Data.custom_integration) === true) {
			callbackA(false);
		} else {
			if (this.ccpaEnabled === true) {
				this.ccpaApplicable = true;
				if (Cli_Data.ccpaType === 'ccpa') {
					if (this.ccpaBarEnabled !== true) {
						this.cliShowBar = false;
						this.blockingStatus = false;
					}
				}
			} else {
				jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();
			}
			if (cliBlocker.isBypassEnabled === "1") {
				cliBlocker.blockingStatus = false;
			}
			callbackA(this.cliShowBar);
			callbackB(this.blockingStatus);
		}

	},
	cookieBar: function (showbar) {
		showbar = typeof showbar !== 'undefined' ? showbar : true;
		cliBlocker.cliShowBar = showbar;
		if (cliBlocker.cliShowBar === false) {
			CLI.bar_elm.hide();
			CLI.showagain_elm.hide();
			CLI.settingsModal.removeClass('cli-blowup cli-out');
			CLI.hidePopupOverlay();
			jQuery(".cli-settings-overlay").removeClass("cli-show");
		} else {
			if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) {
				CLI.displayHeader();
			} else {
				CLI.hideHeader();
			}
		}
	},
	removeCookieByCategory: function () {

		if (cliBlocker.blockingStatus === true) {
			if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) !== null) {
				var non_necessary_cookies = Cli_Data.non_necessary_cookies;
				for (var key in non_necessary_cookies) {
					const currentCategory = key;
					if (CLI.allowedCategories.indexOf(currentCategory) === -1) {
						var nonNecessaryCookies = non_necessary_cookies[currentCategory];
						for (var i = 0; i < nonNecessaryCookies.length; i++) {
							if (CLI_Cookie.read(nonNecessaryCookies[i]) !== null) {
								CLI_Cookie.erase(nonNecessaryCookies[i]);
							}

						}
					}
				}
			}
		}
	},
	runScripts: function (blocking) {
		blocking = typeof blocking !== 'undefined' ? blocking : true;
		cliBlocker.blockingStatus = blocking;
		var genericFuncs =
		{

			renderByElement: function (callback) {
				cliScriptFuncs.renderScripts();
				callback();
				cliBlocker.scriptsLoaded = true;
			},

		};
		var cliScriptFuncs =
		{
			// trigger DOMContentLoaded
			scriptsDone: function () {
				if (typeof Cli_Data.triggerDomRefresh !== 'undefined') {
					if (Boolean(Cli_Data.triggerDomRefresh) === true) {
						var DOMContentLoadedEvent = document.createEvent('Event')
						DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true)
						window.document.dispatchEvent(DOMContentLoadedEvent);
					}
				}
			},
			seq: function (arr, callback, index) {
				// first call, without an index
				if (typeof index === 'undefined') {
					index = 0
				}

				arr[index](
					function () {
						index++
						if (index === arr.length) {
							callback()
						} else {
							cliScriptFuncs.seq(arr, callback, index)
						}
					}
				)
			},
			/* script runner */
			insertScript: function ($script, callback) {
				var s = '';
				var scriptType = $script.getAttribute('data-cli-script-type');
				var elementPosition = $script.getAttribute('data-cli-element-position');
				var isBlock = $script.getAttribute('data-cli-block');
				var s = document.createElement('script');
				var ccpaOptedOut = cliBlocker.ccpaOptedOut();
				s.type = 'text/plain';
				if ($script.async) {
					s.async = $script.async;
				}
				if ($script.defer) {
					s.defer = $script.defer;
				}
				if ($script.src) {
					s.onload = callback
					s.onerror = callback
					s.src = $script.src
				} else {
					s.textContent = $script.innerText
				}
				var attrs = jQuery($script).prop("attributes");
				for (var ii = 0; ii < attrs.length; ++ii) {
					if (attrs[ii].nodeName !== 'id') {
						s.setAttribute(attrs[ii].nodeName, attrs[ii].value);
					}
				}
				if (cliBlocker.blockingStatus === true) {

					if ((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes' && CLI.allowedCategories.indexOf(scriptType) !== -1)) {
						s.setAttribute('data-cli-consent', 'accepted');
						s.type = 'text/javascript';
					}
					if (cliBlocker.ccpaApplicable === true) {
						if (ccpaOptedOut === true || CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null) {
							s.type = 'text/plain';
						}
					}
				} else {
					s.type = 'text/javascript';
				}

				if ($script.type != s.type) {
					if (elementPosition === 'head') {
						document.head.appendChild(s);
					} else {
						document.body.appendChild(s);
					}
					if (!$script.src) {
						callback()
					}
					$script.parentNode.removeChild($script);

				} else {

					callback();
				}
			},
			renderScripts: function () {
				var $scripts = document.querySelectorAll('script[data-cli-class="cli-blocker-script"]');
				if ($scripts.length > 0) {
					var runList = []
					var typeAttr
					Array.prototype.forEach.call(
						$scripts,
						function ($script) {
							// only run script tags without the type attribute
							// or with a javascript mime attribute value
							typeAttr = $script.getAttribute('type')
							runList.push(
								function (callback) {
									cliScriptFuncs.insertScript($script, callback)
								}
							)
						}
					)
					cliScriptFuncs.seq(runList, cliScriptFuncs.scriptsDone);
				}
			}
		};
		genericFuncs.renderByElement(cliBlocker.removeCookieByCategory);
	},
	ccpaOptedOut: function () {
		var ccpaOptedOut = false;
		var preferenceCookie = CLI_Cookie.read(CLI_PREFERENCE_COOKIE);
		if (preferenceCookie !== null) {
			let cliConsent = window.atob(preferenceCookie);
			cliConsent = JSON.parse(cliConsent);
			if (typeof cliConsent.ccpaOptout !== 'undefined') {
				ccpaOptedOut = cliConsent.ccpaOptout;
			}
		}
		return ccpaOptedOut;
	}
}
jQuery(document).ready(
	function () {
		if (typeof cli_cookiebar_settings != 'undefined') {
			CLI.set(
				{
					settings: cli_cookiebar_settings
				}
			);
			if (CLI.js_blocking_enabled === true) {
				cliBlocker.checkPluginStatus(cliBlocker.cookieBar, cliBlocker.runScripts);
			}
		}
	}
);
// source --> https://easipc.co.uk/wp-content/plugins/elementor/assets/lib/font-awesome/js/v4-shims.min.js?ver=4.0.3 
/*!
 * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 */
(function(){var l,a;l=this,a=function(){"use strict";var l={},a={};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(a=document)}catch(l){}var e=(l.navigator||{}).userAgent,r=void 0===e?"":e,n=l,o=a,u=(n.document,!!o.documentElement&&!!o.head&&"function"==typeof o.addEventListener&&o.createElement,~r.indexOf("MSIE")||r.indexOf("Trident/"),"___FONT_AWESOME___"),t=function(){try{return"production"===process.env.NODE_ENV}catch(l){return!1}}();var f=n||{};f[u]||(f[u]={}),f[u].styles||(f[u].styles={}),f[u].hooks||(f[u].hooks={}),f[u].shims||(f[u].shims=[]);var i=f[u],s=[["glass",null,"glass-martini"],["meetup","fab",null],["star-o","far","star"],["remove",null,"times"],["close",null,"times"],["gear",null,"cog"],["trash-o","far","trash-alt"],["file-o","far","file"],["clock-o","far","clock"],["arrow-circle-o-down","far","arrow-alt-circle-down"],["arrow-circle-o-up","far","arrow-alt-circle-up"],["play-circle-o","far","play-circle"],["repeat",null,"redo"],["rotate-right",null,"redo"],["refresh",null,"sync"],["list-alt","far",null],["dedent",null,"outdent"],["video-camera",null,"video"],["picture-o","far","image"],["photo","far","image"],["image","far","image"],["pencil",null,"pencil-alt"],["map-marker",null,"map-marker-alt"],["pencil-square-o","far","edit"],["share-square-o","far","share-square"],["check-square-o","far","check-square"],["arrows",null,"arrows-alt"],["times-circle-o","far","times-circle"],["check-circle-o","far","check-circle"],["mail-forward",null,"share"],["expand",null,"expand-alt"],["compress",null,"compress-alt"],["eye","far",null],["eye-slash","far",null],["warning",null,"exclamation-triangle"],["calendar",null,"calendar-alt"],["arrows-v",null,"arrows-alt-v"],["arrows-h",null,"arrows-alt-h"],["bar-chart","far","chart-bar"],["bar-chart-o","far","chart-bar"],["twitter-square","fab",null],["facebook-square","fab",null],["gears",null,"cogs"],["thumbs-o-up","far","thumbs-up"],["thumbs-o-down","far","thumbs-down"],["heart-o","far","heart"],["sign-out",null,"sign-out-alt"],["linkedin-square","fab","linkedin"],["thumb-tack",null,"thumbtack"],["external-link",null,"external-link-alt"],["sign-in",null,"sign-in-alt"],["github-square","fab",null],["lemon-o","far","lemon"],["square-o","far","square"],["bookmark-o","far","bookmark"],["twitter","fab",null],["facebook","fab","facebook-f"],["facebook-f","fab","facebook-f"],["github","fab",null],["credit-card","far",null],["feed",null,"rss"],["hdd-o","far","hdd"],["hand-o-right","far","hand-point-right"],["hand-o-left","far","hand-point-left"],["hand-o-up","far","hand-point-up"],["hand-o-down","far","hand-point-down"],["arrows-alt",null,"expand-arrows-alt"],["group",null,"users"],["chain",null,"link"],["scissors",null,"cut"],["files-o","far","copy"],["floppy-o","far","save"],["navicon",null,"bars"],["reorder",null,"bars"],["pinterest","fab",null],["pinterest-square","fab",null],["google-plus-square","fab",null],["google-plus","fab","google-plus-g"],["money","far","money-bill-alt"],["unsorted",null,"sort"],["sort-desc",null,"sort-down"],["sort-asc",null,"sort-up"],["linkedin","fab","linkedin-in"],["rotate-left",null,"undo"],["legal",null,"gavel"],["tachometer",null,"tachometer-alt"],["dashboard",null,"tachometer-alt"],["comment-o","far","comment"],["comments-o","far","comments"],["flash",null,"bolt"],["clipboard","far",null],["paste","far","clipboard"],["lightbulb-o","far","lightbulb"],["exchange",null,"exchange-alt"],["cloud-download",null,"cloud-download-alt"],["cloud-upload",null,"cloud-upload-alt"],["bell-o","far","bell"],["cutlery",null,"utensils"],["file-text-o","far","file-alt"],["building-o","far","building"],["hospital-o","far","hospital"],["tablet",null,"tablet-alt"],["mobile",null,"mobile-alt"],["mobile-phone",null,"mobile-alt"],["circle-o","far","circle"],["mail-reply",null,"reply"],["github-alt","fab",null],["folder-o","far","folder"],["folder-open-o","far","folder-open"],["smile-o","far","smile"],["frown-o","far","frown"],["meh-o","far","meh"],["keyboard-o","far","keyboard"],["flag-o","far","flag"],["mail-reply-all",null,"reply-all"],["star-half-o","far","star-half"],["star-half-empty","far","star-half"],["star-half-full","far","star-half"],["code-fork",null,"code-branch"],["chain-broken",null,"unlink"],["shield",null,"shield-alt"],["calendar-o","far","calendar"],["maxcdn","fab",null],["html5","fab",null],["css3","fab",null],["ticket",null,"ticket-alt"],["minus-square-o","far","minus-square"],["level-up",null,"level-up-alt"],["level-down",null,"level-down-alt"],["pencil-square",null,"pen-square"],["external-link-square",null,"external-link-square-alt"],["compass","far",null],["caret-square-o-down","far","caret-square-down"],["toggle-down","far","caret-square-down"],["caret-square-o-up","far","caret-square-up"],["toggle-up","far","caret-square-up"],["caret-square-o-right","far","caret-square-right"],["toggle-right","far","caret-square-right"],["eur",null,"euro-sign"],["euro",null,"euro-sign"],["gbp",null,"pound-sign"],["usd",null,"dollar-sign"],["dollar",null,"dollar-sign"],["inr",null,"rupee-sign"],["rupee",null,"rupee-sign"],["jpy",null,"yen-sign"],["cny",null,"yen-sign"],["rmb",null,"yen-sign"],["yen",null,"yen-sign"],["rub",null,"ruble-sign"],["ruble",null,"ruble-sign"],["rouble",null,"ruble-sign"],["krw",null,"won-sign"],["won",null,"won-sign"],["btc","fab",null],["bitcoin","fab","btc"],["file-text",null,"file-alt"],["sort-alpha-asc",null,"sort-alpha-down"],["sort-alpha-desc",null,"sort-alpha-down-alt"],["sort-amount-asc",null,"sort-amount-down"],["sort-amount-desc",null,"sort-amount-down-alt"],["sort-numeric-asc",null,"sort-numeric-down"],["sort-numeric-desc",null,"sort-numeric-down-alt"],["youtube-square","fab",null],["youtube","fab",null],["xing","fab",null],["xing-square","fab",null],["youtube-play","fab","youtube"],["dropbox","fab",null],["stack-overflow","fab",null],["instagram","fab",null],["flickr","fab",null],["adn","fab",null],["bitbucket","fab",null],["bitbucket-square","fab","bitbucket"],["tumblr","fab",null],["tumblr-square","fab",null],["long-arrow-down",null,"long-arrow-alt-down"],["long-arrow-up",null,"long-arrow-alt-up"],["long-arrow-left",null,"long-arrow-alt-left"],["long-arrow-right",null,"long-arrow-alt-right"],["apple","fab",null],["windows","fab",null],["android","fab",null],["linux","fab",null],["dribbble","fab",null],["skype","fab",null],["foursquare","fab",null],["trello","fab",null],["gratipay","fab",null],["gittip","fab","gratipay"],["sun-o","far","sun"],["moon-o","far","moon"],["vk","fab",null],["weibo","fab",null],["renren","fab",null],["pagelines","fab",null],["stack-exchange","fab",null],["arrow-circle-o-right","far","arrow-alt-circle-right"],["arrow-circle-o-left","far","arrow-alt-circle-left"],["caret-square-o-left","far","caret-square-left"],["toggle-left","far","caret-square-left"],["dot-circle-o","far","dot-circle"],["vimeo-square","fab",null],["try",null,"lira-sign"],["turkish-lira",null,"lira-sign"],["plus-square-o","far","plus-square"],["slack","fab",null],["wordpress","fab",null],["openid","fab",null],["institution",null,"university"],["bank",null,"university"],["mortar-board",null,"graduation-cap"],["yahoo","fab",null],["google","fab",null],["reddit","fab",null],["reddit-square","fab",null],["stumbleupon-circle","fab",null],["stumbleupon","fab",null],["delicious","fab",null],["digg","fab",null],["pied-piper-pp","fab",null],["pied-piper-alt","fab",null],["drupal","fab",null],["joomla","fab",null],["spoon",null,"utensil-spoon"],["behance","fab",null],["behance-square","fab",null],["steam","fab",null],["steam-square","fab",null],["automobile",null,"car"],["envelope-o","far","envelope"],["spotify","fab",null],["deviantart","fab",null],["soundcloud","fab",null],["file-pdf-o","far","file-pdf"],["file-word-o","far","file-word"],["file-excel-o","far","file-excel"],["file-powerpoint-o","far","file-powerpoint"],["file-image-o","far","file-image"],["file-photo-o","far","file-image"],["file-picture-o","far","file-image"],["file-archive-o","far","file-archive"],["file-zip-o","far","file-archive"],["file-audio-o","far","file-audio"],["file-sound-o","far","file-audio"],["file-video-o","far","file-video"],["file-movie-o","far","file-video"],["file-code-o","far","file-code"],["vine","fab",null],["codepen","fab",null],["jsfiddle","fab",null],["life-ring","far",null],["life-bouy","far","life-ring"],["life-buoy","far","life-ring"],["life-saver","far","life-ring"],["support","far","life-ring"],["circle-o-notch",null,"circle-notch"],["rebel","fab",null],["ra","fab","rebel"],["resistance","fab","rebel"],["empire","fab",null],["ge","fab","empire"],["git-square","fab",null],["git","fab",null],["hacker-news","fab",null],["y-combinator-square","fab","hacker-news"],["yc-square","fab","hacker-news"],["tencent-weibo","fab",null],["qq","fab",null],["weixin","fab",null],["wechat","fab","weixin"],["send",null,"paper-plane"],["paper-plane-o","far","paper-plane"],["send-o","far","paper-plane"],["circle-thin","far","circle"],["header",null,"heading"],["sliders",null,"sliders-h"],["futbol-o","far","futbol"],["soccer-ball-o","far","futbol"],["slideshare","fab",null],["twitch","fab",null],["yelp","fab",null],["newspaper-o","far","newspaper"],["paypal","fab",null],["google-wallet","fab",null],["cc-visa","fab",null],["cc-mastercard","fab",null],["cc-discover","fab",null],["cc-amex","fab",null],["cc-paypal","fab",null],["cc-stripe","fab",null],["bell-slash-o","far","bell-slash"],["trash",null,"trash-alt"],["copyright","far",null],["eyedropper",null,"eye-dropper"],["area-chart",null,"chart-area"],["pie-chart",null,"chart-pie"],["line-chart",null,"chart-line"],["lastfm","fab",null],["lastfm-square","fab",null],["ioxhost","fab",null],["angellist","fab",null],["cc","far","closed-captioning"],["ils",null,"shekel-sign"],["shekel",null,"shekel-sign"],["sheqel",null,"shekel-sign"],["meanpath","fab","font-awesome"],["buysellads","fab",null],["connectdevelop","fab",null],["dashcube","fab",null],["forumbee","fab",null],["leanpub","fab",null],["sellsy","fab",null],["shirtsinbulk","fab",null],["simplybuilt","fab",null],["skyatlas","fab",null],["diamond","far","gem"],["intersex",null,"transgender"],["facebook-official","fab","facebook"],["pinterest-p","fab",null],["whatsapp","fab",null],["hotel",null,"bed"],["viacoin","fab",null],["medium","fab",null],["y-combinator","fab",null],["yc","fab","y-combinator"],["optin-monster","fab",null],["opencart","fab",null],["expeditedssl","fab",null],["battery-4",null,"battery-full"],["battery",null,"battery-full"],["battery-3",null,"battery-three-quarters"],["battery-2",null,"battery-half"],["battery-1",null,"battery-quarter"],["battery-0",null,"battery-empty"],["object-group","far",null],["object-ungroup","far",null],["sticky-note-o","far","sticky-note"],["cc-jcb","fab",null],["cc-diners-club","fab",null],["clone","far",null],["hourglass-o","far","hourglass"],["hourglass-1",null,"hourglass-start"],["hourglass-2",null,"hourglass-half"],["hourglass-3",null,"hourglass-end"],["hand-rock-o","far","hand-rock"],["hand-grab-o","far","hand-rock"],["hand-paper-o","far","hand-paper"],["hand-stop-o","far","hand-paper"],["hand-scissors-o","far","hand-scissors"],["hand-lizard-o","far","hand-lizard"],["hand-spock-o","far","hand-spock"],["hand-pointer-o","far","hand-pointer"],["hand-peace-o","far","hand-peace"],["registered","far",null],["creative-commons","fab",null],["gg","fab",null],["gg-circle","fab",null],["tripadvisor","fab",null],["odnoklassniki","fab",null],["odnoklassniki-square","fab",null],["get-pocket","fab",null],["wikipedia-w","fab",null],["safari","fab",null],["chrome","fab",null],["firefox","fab",null],["opera","fab",null],["internet-explorer","fab",null],["television",null,"tv"],["contao","fab",null],["500px","fab",null],["amazon","fab",null],["calendar-plus-o","far","calendar-plus"],["calendar-minus-o","far","calendar-minus"],["calendar-times-o","far","calendar-times"],["calendar-check-o","far","calendar-check"],["map-o","far","map"],["commenting",null,"comment-dots"],["commenting-o","far","comment-dots"],["houzz","fab",null],["vimeo","fab","vimeo-v"],["black-tie","fab",null],["fonticons","fab",null],["reddit-alien","fab",null],["edge","fab",null],["credit-card-alt",null,"credit-card"],["codiepie","fab",null],["modx","fab",null],["fort-awesome","fab",null],["usb","fab",null],["product-hunt","fab",null],["mixcloud","fab",null],["scribd","fab",null],["pause-circle-o","far","pause-circle"],["stop-circle-o","far","stop-circle"],["bluetooth","fab",null],["bluetooth-b","fab",null],["gitlab","fab",null],["wpbeginner","fab",null],["wpforms","fab",null],["envira","fab",null],["wheelchair-alt","fab","accessible-icon"],["question-circle-o","far","question-circle"],["volume-control-phone",null,"phone-volume"],["asl-interpreting",null,"american-sign-language-interpreting"],["deafness",null,"deaf"],["hard-of-hearing",null,"deaf"],["glide","fab",null],["glide-g","fab",null],["signing",null,"sign-language"],["viadeo","fab",null],["viadeo-square","fab",null],["snapchat","fab",null],["snapchat-ghost","fab",null],["snapchat-square","fab",null],["pied-piper","fab",null],["first-order","fab",null],["yoast","fab",null],["themeisle","fab",null],["google-plus-official","fab","google-plus"],["google-plus-circle","fab","google-plus"],["font-awesome","fab",null],["fa","fab","font-awesome"],["handshake-o","far","handshake"],["envelope-open-o","far","envelope-open"],["linode","fab",null],["address-book-o","far","address-book"],["vcard",null,"address-card"],["address-card-o","far","address-card"],["vcard-o","far","address-card"],["user-circle-o","far","user-circle"],["user-o","far","user"],["id-badge","far",null],["drivers-license",null,"id-card"],["id-card-o","far","id-card"],["drivers-license-o","far","id-card"],["quora","fab",null],["free-code-camp","fab",null],["telegram","fab",null],["thermometer-4",null,"thermometer-full"],["thermometer",null,"thermometer-full"],["thermometer-3",null,"thermometer-three-quarters"],["thermometer-2",null,"thermometer-half"],["thermometer-1",null,"thermometer-quarter"],["thermometer-0",null,"thermometer-empty"],["bathtub",null,"bath"],["s15",null,"bath"],["window-maximize","far",null],["window-restore","far",null],["times-rectangle",null,"window-close"],["window-close-o","far","window-close"],["times-rectangle-o","far","window-close"],["bandcamp","fab",null],["grav","fab",null],["etsy","fab",null],["imdb","fab",null],["ravelry","fab",null],["eercast","fab","sellcast"],["snowflake-o","far","snowflake"],["superpowers","fab",null],["wpexplorer","fab",null],["cab",null,"taxi"]];return function(l){try{l()}catch(l){if(!t)throw l}}(function(){var l;"function"==typeof i.hooks.addShims?i.hooks.addShims(s):(l=i.shims).push.apply(l,s)}),s},"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):l["fontawesome-free-shims"]=a();})();
// source --> https://easipc.co.uk/wp-content/plugins/search-filter-pro/assets-v1/frontend/app.js?ver=53ea2d62de334b9d150f 
/*! For license information please see app.js.LICENSE.txt */ window.searchAndFilter||(window.searchAndFilter={}),window.searchAndFilter.frontend||(window.searchAndFilter.frontend={packages:{core:{hooks:{}},utils:{},components:{},fields:{},registry:{},hooks:{},extensions:{},storybook:{}}}),function(){var e={395:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,l(n)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,n),l.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e,t={};n.r(t),n.d(t,{get:function(){return g},register:function(){return h}});var r={};n.r(r),n.d(r,{useCallback:function(){return eL},useContext:function(){return ek},useDebugValue:function(){return eE},useEffect:function(){return eC},useErrorBoundary:function(){return eP},useId:function(){return eA},useImperativeHandle:function(){return eN},useLayoutEffect:function(){return ew},useMemo:function(){return ex},useReducer:function(){return e$},useRef:function(){return eS},useState:function(){return ey}});var i={};n.r(i),n.d(i,{assignObject:function(){return e2},classNames:function(){return eQ()},cloneArray:function(){return eY},cloneObject:function(){return eX},debounce:function(){return eJ},forEach:function(){return e4},getNumericString:function(){return te},getRealInputType:function(){return to},getUid:function(){return tr},log:function(){return ta},mergeObjects:function(){return e5},mergeRefs:function(){return eZ},onDocumentInteractive:function(){return tl},onInitDocument:function(){return tt}});var l={};n.r(l),n.d(l,{Button:function(){return e3},ButtonGroup:function(){return th},CheckableOptions:function(){return tm},CheckableSkeleton:function(){return tb},DatePickerControl:function(){return td.DatePickerControl},Description:function(){return e7},FocusProvider:function(){return eB},Icon:function(){return ez},InputGroup:function(){return tN},Label:function(){return ej},Popup:function(){return t5},RadioControl:function(){return nt},TextControl:function(){return tw},TextInput:function(){return tS},TextControlContainer:function(){return ty},checkableGetNextState:function(){return tv},useFocusContext:function(){return eW},useFocusDispatch:function(){return e0},useFocusEvent:function(){return eK},usePopup:function(){return tZ}});var o={};n.r(o),n.d(o,{AutocompleteControl:function(){return no},Label:function(){return nf}});var s={};n.r(s),n.d(s,{Component:function(){return V},Fragment:function(){return U},cloneElement:function(){return ei},createContext:function(){return el},createElement:function(){return O},createPortal:function(){return tB},createRef:function(){return F},h:function(){return O},hooks:function(){return r},hydrate:function(){return er},isValidElement:function(){return y},options:function(){return b},render:function(){return en},toChildArray:function(){return j}});var a={};n.r(a),n.d(a,{Button:function(){return nF},Checkbox:function(){return nw},DatePicker:function(){return nU},PerPage:function(){return nB},Radio:function(){return n$},Reset:function(){return nM},Select:function(){return ny},Sort:function(){return nH},Submit:function(){return nV},Text:function(){return nq},__getInputClassName:function(){return nh}});var u={};n.r(u),n.d(u,{Autocomplete:function(){return nK},DatePicker:function(){return nX},LoadMore:function(){return n4},RangeNumber:function(){return n6},RangeRadio:function(){return nz},RangeSelect:function(){return nQ},RangeSlider:function(){return nG},Selection:function(){return nY}});var c={};n.r(c),n.d(c,{generateInputId:function(){return tp},getInstanceId:function(){return tf},useDebounce:function(){return t4},useInstanceId:function(){return tc}});var f={};n.r(f),n.d(f,{getScreenDimensions:function(){return nJ},useScreenDimensions:function(){return re},useSyncExternalStore:function(){return nZ}});var p={};n.r(p),n.d(p,{add:function(){return rt},applyFilters:function(){return ro},doActions:function(){return rl},fields:function(){return rn},get:function(){return ri},queries:function(){return rr}});let d="searchAndFilter",h=(e,t,n,r=!1)=>{let i=window;for(let l of(e.unshift("frontend"),e.unshift(d),e))i[l]||(i[l]={}),i=i[l];if(r&&"object"==typeof i[t])for(let o in n)i[t][o]=n[o];else i[t]=n},g=(e,t)=>{let n=window;for(let r of(e.unshift("frontend"),e.unshift(d),e)){if(!n[r])return;n=n[r]}return n[t]};var v,b,m,y,$,C,w,S,N,x,L,k,E,P={},A=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,I=Array.isArray;function D(e,t){for(var n in t)e[n]=t[n];return e}function T(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function O(e,t,n){var r,i,l,o={};for(l in t)"key"==l?r=t[l]:"ref"==l?i=t[l]:o[l]=t[l];if(arguments.length>2&&(o.children=arguments.length>3?v.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)null==o[l]&&(o[l]=e.defaultProps[l]);return q(e,o,r,i,null)}function q(e,t,n,r,i){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++m:i,__i:-1,__u:0};return null==i&&null!=b.vnode&&b.vnode(l),l}function F(){return{current:null}}function U(e){return e.children}function V(e,t){this.props=e,this.context=t}function R(e,t){if(null==t)return e.__?R(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?R(e):null}function M(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return M(e)}}function H(e){(!e.__d&&(e.__d=!0)&&$.push(e)&&!B.__r++||C!=b.debounceRendering)&&((C=b.debounceRendering)||w)(B)}function B(){for(var e,t,n,r,i,l,o,s=1;$.length;)$.length>s&&$.sort(S),e=$.shift(),s=$.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,l=[],o=[],t.__P&&((n=D({},r)).__v=r.__v+1,b.vnode&&b.vnode(n),X(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,l,null==i?R(r):i,!!(32&r.__u),o),n.__v=r.__v,n.__.__k[n.__i]=n,Z(l,n,o),n.__e!=i&&M(n)));B.__r=0}function W(e,t,n,r,i,l,o,s,a,u,c){var f,p,d,h,g,v,b=r&&r.__k||A,m=t.length;for(a=function e(t,n,r,i,l){var o,s,a,u,c,f=r.length,p=f,d=0;for(t.__k=Array(l),o=0;o<l;o++)null!=(s=n[o])&&"boolean"!=typeof s&&"function"!=typeof s?(u=o+d,(s=t.__k[o]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?q(null,s,null,null,null):I(s)?q(U,{children:s},null,null,null):null==s.constructor&&s.__b>0?q(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,-1!=(c=s.__i=G(s,r,u,p))&&(p--,(a=r[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(l>f?d--:l<f&&d++),"function"!=typeof s.type&&(s.__u|=4)):c!=u&&(c==u-1?d--:c==u+1?d++:(c>u?d--:d++,s.__u|=4))):t.__k[o]=null;if(p)for(o=0;o<f;o++)null==(a=r[o])||2&a.__u||(a.__e==i&&(i=R(a)),ee(a,a));return i}(n,t,b,a,m),f=0;f<m;f++)null!=(d=n.__k[f])&&(p=-1==d.__i?P:b[d.__i]||P,d.__i=f,v=X(e,d,p,i,l,o,s,a,u,c),h=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&J(p.ref,null,d),c.push(d.ref,d.__c||h,d)),null==g&&null!=h&&(g=h),4&d.__u||p.__k===d.__k?a=K(d,a,e):"function"==typeof d.type&&void 0!==v?a=v:h&&(a=h.nextSibling),d.__u&=-7);return n.__e=g,a}function K(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=K(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=R(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(null!=t&&8==t.nodeType);return t}function j(e,t){return t=t||[],null==e||"boolean"==typeof e||(I(e)?e.some(function(e){j(e,t)}):t.push(e)),t}function G(e,t,n,r){var i,l,o=e.key,s=e.type,a=t[n];if(null===a&&null==e.key||a&&o==a.key&&s==a.type&&!(2&a.__u))return n;if(r>(null==a||2&a.__u?0:1))for(i=n-1,l=n+1;i>=0||l<t.length;){if(i>=0){if((a=t[i])&&!(2&a.__u)&&o==a.key&&s==a.type)return i;i--}if(l<t.length){if((a=t[l])&&!(2&a.__u)&&o==a.key&&s==a.type)return l;l++}}return -1}function Q(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||_.test(t)?n:n+"px"}function z(e,t,n,r,i){var l;e:if("style"==t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Q(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Q(e.style,t,n[t])}}else if("o"==t[0]&&"n"==t[1])l=t!=(t=t.replace(N,"$1")),t=t.toLowerCase() in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=n,n?r?n.u=r.u:(n.u=x,e.addEventListener(t,l?k:L,l)):e.removeEventListener(t,l?k:L,l);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(o){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Y(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=x++;else if(t.t<n.u)return;return n(b.event?b.event(t):t)}}}function X(e,t,n,r,i,l,o,s,a,u){var c,f,p,d,h,g,m,y,$,C,w,S,N,x,L,k,E,A=t.type;if(null!=t.constructor)return null;128&n.__u&&(a=!!(32&n.__u),l=[s=t.__e=n.__e]),(c=b.__b)&&c(t);e:if("function"==typeof A)try{if(y=t.props,$="prototype"in A&&A.prototype.render,C=(c=A.contextType)&&r[c.__c],w=c?C?C.props.value:c.__:r,n.__c?m=(f=t.__c=n.__c).__=f.__E:($?t.__c=f=new A(y,w):(t.__c=f=new V(y,w),f.constructor=A,f.render=et),C&&C.sub(f),f.props=y,f.state||(f.state={}),f.context=w,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),$&&null==f.__s&&(f.__s=f.state),$&&null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=D({},f.__s)),D(f.__s,A.getDerivedStateFromProps(y,f.__s))),d=f.props,h=f.state,f.__v=t,p)$&&null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),$&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if($&&null==A.getDerivedStateFromProps&&y!==d&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,w),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,w)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=y,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,w),$&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(d,h,g)})}if(f.context=w,f.props=y,f.__P=e,f.__e=!1,N=b.__r,x=0,$){for(f.state=f.__s,f.__d=!1,N&&N(t),c=f.render(f.props,f.state,f.context),L=0;L<f._sb.length;L++)f.__h.push(f._sb[L]);f._sb=[]}else do f.__d=!1,N&&N(t),c=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++x<25);f.state=f.__s,null!=f.getChildContext&&(r=D(D({},r),f.getChildContext())),$&&!p&&null!=f.getSnapshotBeforeUpdate&&(g=f.getSnapshotBeforeUpdate(d,h)),k=c,null!=c&&c.type===U&&null==c.key&&(k=function e(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:I(t)?t.map(e):D({},t)}(c.props.children)),s=W(e,I(k)?k:[k],t,n,r,i,l,o,s,a,u),f.base=t.__e,t.__u&=-161,f.__h.length&&o.push(f),m&&(f.__E=f.__=null)}catch(_){if(t.__v=null,a||null!=l){if(_.then){for(t.__u|=a?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;l[l.indexOf(s)]=null,t.__e=s}else for(E=l.length;E--;)T(l[E])}else t.__e=n.__e,t.__k=n.__k;b.__e(_,t,n)}else null==l&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=function e(t,n,r,i,l,o,s,a,u){var c,f,p,d,h,g,m,y=r.props,$=n.props,C=n.type;if("svg"==C?l="http://www.w3.org/2000/svg":"math"==C?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=o){for(c=0;c<o.length;c++)if((h=o[c])&&"setAttribute"in h==!!C&&(C?h.localName==C:3==h.nodeType)){t=h,o[c]=null;break}}if(null==t){if(null==C)return document.createTextNode($);t=document.createElementNS(l,C,$.is&&$),a&&(b.__m&&b.__m(n,o),a=!1),o=null}if(null==C)y===$||a&&t.data==$||(t.data=$);else{if(o=o&&v.call(t.childNodes),y=r.props||P,!a&&null!=o)for(y={},c=0;c<t.attributes.length;c++)y[(h=t.attributes[c]).name]=h.value;for(c in y)if(h=y[c],"children"==c);else if("dangerouslySetInnerHTML"==c)p=h;else if(!(c in $)){if("value"==c&&"defaultValue"in $||"checked"==c&&"defaultChecked"in $)continue;z(t,c,null,h,l)}for(c in $)h=$[c],"children"==c?d=h:"dangerouslySetInnerHTML"==c?f=h:"value"==c?g=h:"checked"==c?m=h:a&&"function"!=typeof h||y[c]===h||z(t,c,h,y[c],l);if(f)a||p&&(f.__html==p.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),n.__k=[];else if(p&&(t.innerHTML=""),W("template"==n.type?t.content:t,I(d)?d:[d],n,r,i,"foreignObject"==C?"http://www.w3.org/1999/xhtml":l,o,s,o?o[0]:r.__k&&R(r,0),a,u),null!=o)for(c=o.length;c--;)T(o[c]);a||(c="value","progress"==C&&null==g?t.removeAttribute("value"):null==g||g===t[c]&&("progress"!=C||g)&&("option"!=C||g==y[c])||z(t,c,g,y[c],l),c="checked",null!=m&&m!=t[c]&&z(t,c,m,y[c],l))}return t}(n.__e,t,n,r,i,l,o,a,u);return(c=b.diffed)&&c(t),128&t.__u?void 0:s}function Z(e,t,n){for(var r=0;r<n.length;r++)J(n[r],n[++r],n[++r]);b.__c&&b.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(n){b.__e(n,t.__v)}})}function J(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(i){b.__e(i,n)}}function ee(e,t,n){var r,i;if(b.unmount&&b.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||J(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(l){b.__e(l,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ee(r[i],t,n||"function"!=typeof e.type);n||T(e.__e),e.__c=e.__=e.__e=void 0}function et(e,t,n){return this.constructor(e,n)}function en(e,t,n){var r,i,l,o;t==document&&(t=document.documentElement),b.__&&b.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,l=[],o=[],X(t,e=(!r&&n||t).__k=O(U,null,[e]),i||P,P,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?v.call(t.childNodes):null,l,!r&&n?n:i?i.__e:t.firstChild,r,o),Z(l,e,o)}function er(e,t){en(e,t,er)}function ei(e,t,n){var r,i,l,o,s=D({},e.props);for(l in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)"key"==l?r=t[l]:"ref"==l?i=t[l]:s[l]=null==t[l]&&null!=o?o[l]:t[l];return arguments.length>2&&(s.children=arguments.length>3?v.call(arguments,2):n),q(e.type,s,r||e.key,i||e.ref,null)}function el(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,H(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+E++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}v=A.slice,b={__e:function(e,t,n,r){for(var i,l,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((l=i.constructor)&&null!=l.getDerivedStateFromError&&(i.setState(l.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(s){e=s}throw e}},m=0,y=function(e){return null!=e&&null==e.constructor},V.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=D({},this.state),"function"==typeof e&&(e=e(D({},n),this.props)),e&&D(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),H(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),H(this))},V.prototype.render=U,$=[],w="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S=function(e,t){return e.__v.__b-t.__v.__b},B.__r=0,N=/(PointerCapture)$|Capture$/i,x=0,L=Y(!1),k=Y(!0),E=0;var eo,es,ea,eu,ec=0,ef=[],ep=b,ed=ep.__b,e8=ep.__r,eh=ep.diffed,eg=ep.__c,ev=ep.unmount,eb=ep.__;function em(e,t){ep.__h&&ep.__h(es,e,ec||t),ec=0;var n=es.__H||(es.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ey(e){return ec=1,e$(eF,e)}function e$(e,t,n){var r=em(eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):eF(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=es,!es.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!l||l.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),l&&l.call(this,e,t,n)||o};es.__f=!0;var l=es.shouldComponentUpdate,o=es.componentWillUpdate;es.componentWillUpdate=function(e,t,n){if(this.__e){var r=l;l=void 0,i(e,t,n),l=r}o&&o.call(this,e,t,n)},es.shouldComponentUpdate=i}return r.__N||r.__}function eC(e,t){var n=em(eo++,3);!ep.__s&&eq(n.__H,t)&&(n.__=e,n.u=t,es.__H.__h.push(n))}function ew(e,t){var n=em(eo++,4);!ep.__s&&eq(n.__H,t)&&(n.__=e,n.u=t,es.__h.push(n))}function eS(e){return ec=5,ex(function(){return{current:e}},[])}function eN(e,t,n){ec=6,ew(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function ex(e,t){var n=em(eo++,7);return eq(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function eL(e,t){return ec=8,ex(function(){return e},t)}function ek(e){var t=es.context[e.__c],n=em(eo++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(es)),t.props.value):e.__}function eE(e,t){ep.useDebugValue&&ep.useDebugValue(t?t(e):e)}function eP(e){var t=em(eo++,10),n=ey();return t.__=e,es.componentDidCatch||(es.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function eA(){var e=em(eo++,11);if(!e.__){for(var t=es.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function e_(){for(var e;e=ef.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eT),e.__H.__h.forEach(eO),e.__H.__h=[]}catch(t){e.__H.__h=[],ep.__e(t,e.__v)}}ep.__b=function(e){es=null,ed&&ed(e)},ep.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),eb&&eb(e,t)},ep.__r=function(e){e8&&e8(e),eo=0;var t=(es=e.__c).__H;t&&(ea===es?(t.__h=[],es.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(eT),t.__h.forEach(eO),t.__h=[],eo=0)),ea=es},ep.diffed=function(e){eh&&eh(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ef.push(t)&&eu===ep.requestAnimationFrame||((eu=ep.requestAnimationFrame)||eD)(e_)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),ea=es=null},ep.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eT),e.__h=e.__h.filter(function(e){return!e.__||eO(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ep.__e(n,e.__v)}}),eg&&eg(e,t)},ep.unmount=function(e){ev&&ev(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{eT(e)}catch(n){t=n}}),n.__H=void 0,t&&ep.__e(t,n.__v))};var eI="function"==typeof requestAnimationFrame;function eD(e){var t,n=function(){clearTimeout(r),eI&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);eI&&(t=requestAnimationFrame(n))}function eT(e){var t=es,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),es=t}function eO(e){var t=es;e.__c=e.__(),es=t}function eq(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function eF(e,t){return"function"==typeof t?t(e):t}var eU=0;function e9(e,t,n,r,i,l){t||(t={});var o,s,a=t;if("ref"in a)for(s in a={},t)"ref"==s?o=t[s]:a[s]=t[s];var u={type:e,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--eU,__i:-1,__u:0,__source:i,__self:l};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===a[s]&&(a[s]=o[s]);return b.vnode&&b.vnode(u),u}let eV=el(),eR=el(),eM={id:null},eH=(e,t)=>{switch(t.type){case"SET":return{id:t.id};case"RESET":return{id:null};default:return e}},eB=({children:e})=>{let[t,n]=e$(eH,eM);return e9(eV.Provider,{value:t,children:e9(eR.Provider,{value:n,children:e})})},eW=()=>ek(eV);eW.displayName="useFocusContext";let e0=()=>ek(eR);e0.displayName="useFocusDispatch";let eK=(e,t)=>{let{id:n}=eW(),r=e0();n===t&&(e.current.focus(),r({type:"RESET"}))};eK.displayName="useFocusEvent";let e1=()=>{},ej=({showLabel:e,label:t,id:n,forId:r,onClick:i=e1,isInteractive:l=!0,...o})=>{let s=e0();return"yes"!==e?null:e9("div",{className:"search-filter-label",onClick(){l&&(i&&i(),s({type:"SET",id:r}))},id:n,...o,children:t})};ej.templateVars=["label",["showLabel",{type:"control"}]];let e7=({showDescription:e,description:t})=>e9(U,{children:"yes"===e&&e9("div",{className:"search-filter-description",children:t})});e7.templateVars=["description",["showDescription",{type:"control"}]];var eG=n(395),eQ=n.n(eG);let ez=({icon:e,className:t,isInteractive:n,isDestructive:r,label:i,onClick:l,...o})=>{let s=["search-filter-icon"];n&&s.push("search-filter-icon--interactive"),r&&s.push("search-filter-icon--destructive"),t&&s.push(t);let a=null;return n&&(a=e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),l(e))}),e9("div",{className:eQ()(s),onClick:l,role:n?"button":null,tabIndex:n?"0":null,"aria-label":n?i:null,onKeyDown:a,...o,children:e9("svg",{className:"search-filter-icon__svg",children:e9("use",{xlinkHref:"#sf-svg-"+e})})})},e6=()=>{},e3=({icon:e,className:t,iconPosition:n="left",iconProps:r,disabled:i,label:l,isPressed:o,children:s,isInteractive:a=!0,onClick:u=e6,isSelected:c,value:f,...p})=>e9("button",{className:eQ()(["search-filter-input-button",t,c?"search-filter-input-button--is-selected":""]),onClick:a?u:null,"aria-pressed":o,disabled:i,"data-option-value":f,...p,children:["left"===n&&e&&e9(ez,{icon:e,className:"search-filter-input-button__icon search-filter-input-button__icon--left",...r}),s??l,"right"===n&&e&&e9(ez,{icon:e,className:"search-filter-input-button__icon search-filter-input-button__icon--right",...r})]});e3.templateVars=["label",["isPressed",{type:"control"}]];let eY=e=>{let t=[];for(let n=0;n<e.length;n++)t[n]=e[n];return t},e2=function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let n=1;n<arguments.length;n++){let r=arguments[n];if(null!=r)for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},e4=(e,t)=>{for(let n=0;n<e.length;n++)t(e[n],n)},eX=e=>e2({},e),e5=function(e){let t=[{}].concat(eY(arguments));return e2.apply(null,t)},eZ=e=>t=>{e.forEach(e=>{"function"==typeof e?e(t):null!==e&&(e.current=t)})},eJ=(e,t)=>{let n=null;return function(){clearTimeout(n);let r=arguments,i=this;n=setTimeout(function(){e.apply(i,r)},t)}};function te(e,t,n){return(1===n?e:t).replace(/%d/g,n)}let tt=(e,t="interactive")=>{document.readyState===t?e():document.addEventListener("readystatechange",()=>{document.readyState===t&&e()})},tn=0,tr=()=>++tn,ti=new WeakMap,tl=e=>{if(!ti.has(e)){if("loading"!==document.readyState)e(),ti.set(e,!0);else{let t=n=>{"loading"!==document.readyState&&(ti.has(e)||(e(),ti.set(e,!0)),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)}}};function to(e){return"control"===e.type?e.controlType:e.inputType}let ts=[];window.searchAndFilter.logs=ts;let ta=(e,t="info")=>{ts.push({message:e,type:t}),"error"===t?console.error("Search & Filter: "+e):"warning"===t?console.warn("Search & Filter: "+e):"notice"===t?console.log("Search & Filter: "+e):console.warn("Search & Filter: unknown log type: "+t+" - "+e),window.dispatchEvent(new CustomEvent("search-filter/log",{detail:{message:e,type:t}}))},tu=new WeakMap;function tc(e,t,n=""){return ex(()=>tf(e,t,n),[e])}function tf(e,t,n=""){if(n)return n;let r=function(e){let t=tu.get(e)||0;return tu.set(e,t+1),t}(e);return t?`${t}-${r}`:r}function tp(e,t,n){return`search-filter-input-${to(e)}-${t}-${n}`}tc.displayName="useInstanceId";var td=window.searchAndFilter.frontend.packages.components;let t8=()=>{},th=({value:e=[],options:t,onChange:n=t8,multiple:r=!1,showLabel:i,isInteractive:l=!0,label:o,description:s,showDescription:a,inputClassName:u,labelProps:c,icon:f,iconPosition:p,iconProps:d})=>{let h="search-filter-label-"+tc(td.Label),g="search-filter-input-button-group-"+tc(th);return e9(U,{children:[e9(td.Label,{showLabel:i,label:o,id:h,forId:g,isInteractive:l,...c}),e9(e7,{description:s,showDescription:a}),e9("div",{id:g,role:"group","aria-labelledby":"yes"===i?h:null,"aria-label":"yes"===i?null:o,className:eQ()("search-filter-input-button-group",u),children:t.map((t,i)=>{let{label:o,value:s,countLabel:a,...u}=t,c=!1;return c=0===e.length&&""===s||e.includes(s),e9(e3,{isPressed:r?c:null,isSelected:c,onClick(){(t=>{if(!l)return;let i=eY(e);if(r){let o=i.indexOf(t);-1!==o?i.splice(o,1):i.push(t)}else{let s=i.indexOf(t);i=-1!==s?[]:[t]}n(i)})(s)},icon:f,iconPosition:p,iconProps:d,value:s,...u,children:[o,a?e9("span",{className:"search-filter-input-button__count",children:a}):null]},i)})})]})};th.templateVars=["labelUid",["options",{type:"list"}]];let tg=el({});function tv(e,t){let n=function(e,t){let n=e.indexOf(t);return n===e.length-1?0:n+1}(e,t);return e[n]}let tb=({options:e,showLabel:t,label:n,isInteractive:r=!0,type:i,checkableState:l,onUpdateOption:o,CheckableOptionComponent:s,description:a,showDescription:u,inputClassName:c,labelProps:f,showCount:p})=>{let d=tc(td.Label),h="search-filter-label-"+d,g="search-filter-input-"+i+"-"+tc(tb);return e9(tg.Provider,{value:{checkableState:l,onUpdateOption:o,groupId:d,CheckableOptionComponent:s},children:[e9(td.Label,{showLabel:t,label:n,id:h,forId:g,isInteractive:r,...f}),e9(td.Description,{description:a,showDescription:u}),e9(tm,{id:g,labelId:h,showLabel:t,label:n,type:i,options:e,isInteractive:r,className:c,showCount:p})]})};tb.templateVars=["labelUid"];let tm=({id:e,labelId:t,showLabel:n,label:r,type:i,options:l,isInteractive:o,className:s,showCount:a})=>{let{checkableState:u,onUpdateOption:c,groupId:f,CheckableOptionComponent:p}=ek(tg);return e9("div",{id:e,role:"checkbox"===i?"group":"radiogroup","aria-labelledby":"yes"===n?t:null,"aria-label":"yes"===n?null:r,className:eQ()("search-filter-input-group",s),children:l.map((e,t)=>{let n="false";""===e.value&&0===Object.keys(u).length?n="true":u[e.value]&&(n=u[e.value]);let r={groupId:f,key:e.value,option:e,type:i,onUpdate:c,checkedState:n,isInteractive:o,countLabel:a?e.countLabel:null};return e9(p,{...r,showCount:a},e.value)})})};tm.templateVars=["labelUid",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]];let ty=({className:e,isFocused:t,onClick:n,cRef:r,children:i})=>e9(U,{children:e9("div",{className:eQ()({"search-filter-input-text":!0,"search-filter-input-text--focused":t,[e]:!!e}),onClick:n,ref:r,children:i})}),t$=()=>{},tC={},tw=({className:e,value:t="",icon:n,hasClear:r=!1,placeholder:i,labelProps:l,showLabel:o,label:s,id:a,isInteractive:u=!0,focusStyles:c=!0,children:f,onChange:p=t$,onDomChange:d=t$,onFocus:h=t$,onBlur:g=t$,onClick:v=t$,onClear:b=t$,onEnter:m=t$,inputRef:y,controlRef:$,describedBy:C,onClickIcon:w,inputProps:S=tC,inputClassName:N,iconProps:x=tC,description:L,showDescription:k})=>{let E=eS(null),P=y||E,[A,_]=ey(!1);eC(()=>(P.current&&d("load",P.current),()=>{P.current&&d("unload",P.current)}),[P.current]);let I=tc(tw),D=a??"search-filter-input-text-"+I,T="search-filter-label-"+tc(td.Label);eK(P,D);let O=e0(),q=()=>{O({type:"SET",id:D}),c&&_(!0)};return e9(U,{children:[e9(td.Label,{showLabel:o,label:s,id:T,forId:D,isInteractive:u,...l}),e9(e7,{description:L,showDescription:k}),e9(ty,{isFocused:A,className:eQ()("search-filter-input-text",e),cRef:$,onClick(){u&&q()},children:[n&&e9(ez,{className:"search-filter-input-text__icon",icon:n,onClick(e){u&&(w?w(e):(q(),v(e)))},isInteractive:u&&w,"aria-controls":S.name?S.name:void 0,...x}),e9(tS,{id:D,"aria-labelledby":"yes"===o?T:null,"aria-label":"yes"===o?null:s,className:eQ()("search-filter-input-text__input",N),autoComplete:"off",value:t,onInput(e){p(u?e.target.value:"")},onKeyDown(e){u&&"Enter"===e.key&&m(e)},readOnly:!u,tabIndex:u?null:-1,onFocus(){u&&(c&&_(!0),h())},onBlur(){u&&(c&&_(!1),g())},inputRef:P,onClick(e){u&&v(e)},placeholder:i,"aria-describedby":C?C.id:void 0,...S}),C&&e9("span",{className:"search-filter-input-text__description",id:C.id,children:C.content}),f,r&&""!==t&&e9(ez,{className:"search-filter-input-text__clear-button",icon:"clear",onClick:function(){u&&(q(),b!==t$?b():p(""))},isInteractive:!0,isDestructive:!0,label:"Clear input"})]})]})};tw.templateVars=["placeholder","uid","labelUid"];let tS=e=>{let t=eX(e),n=e.value,r=e.inputRef;return delete t.value,delete t.inputRef,e9("input",{type:"text",value:n,ref:r,...t})};tS.templateVars=["value"];let tN=({children:e})=>e9("div",{className:"search-filter-input-group",children:e}),tx={},tL={isVisible:!1,position:""},tk=(e,t)=>{switch(t.type){case"TOGGLE":{let n=t.name??"popup",r={...tL};e[n]&&(r=e[n]);let i=t?.show??!r.isVisible,l=e5(r,{isVisible:i});return e5(e,{[n]:l})}case"SET_POSITION":{let o=t.name??"popup",s={...tL};e[o]&&(s=e[o]);let a=e5(s,{position:t.position});return e5(e,{[o]:a})}default:return e}},tE=el(),tP=el(),tA=({children:e})=>{let[t,n]=e$(tk,tx),r=eL(e=>t[e]?t[e]:{...tL},[t]);return e9(tE.Provider,{value:{get:r},children:e9(tP.Provider,{value:n,children:e})})},t_=()=>ek(tE),tI=()=>ek(tP);function tD(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function tT(e,t){this.props=e,this.context=t}(tT.prototype=new V).isPureReactComponent=!0,tT.prototype.shouldComponentUpdate=function(e,t){return tD(this.props,e)||tD(this.state,t)};var tO=b.__b;b.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tO&&tO(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var tq=b.__e;b.__e=function(e,t,n,r){if(e.then){for(var i,l=t;l=l.__;)if((i=l.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}tq(e,t,n,r)};var tF=b.unmount;function tU(){this.__u=0,this.o=null,this.__b=null}function t9(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tV(){this.i=null,this.l=null}b.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),tF&&tF(e)},(tU.prototype=new V).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var i=t9(r.__v),l=!1,o=function(){l||(l=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r.o.pop();)e.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},tU.prototype.componentWillUnmount=function(){this.o=[]},tU.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&O(U,null,e.fallback);return i&&(i.__u&=-33),[O(U,null,t.__a?null:e.children),i]};var tR=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function tM(e){return this.getChildContext=function(){return e.context},e.children}function tH(e){var t=this,n=e.h;t.componentWillUnmount=function(){en(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),en(O(tM,{context:t.context},e.__v),t.v)}function tB(e,t){var n=O(tH,{__v:e,h:t});return n.containerInfo=t,n}(tV.prototype=new V).__a=function(e){var t=this,n=t9(t.__v),r=t.l.get(e);return r[0]++,function(i){var l=function(){t.props.revealOrder?(r.push(i),tR(t,e,r)):i()};n?n(l):l()}},tV.prototype.render=function(e){this.i=null,this.l=new Map;var t=j(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},tV.prototype.componentDidUpdate=tV.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){tR(e,n,t)})};var tW="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,t0=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,tK=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,t1=/[A-Z0-9]/g,tj="undefined"!=typeof document;V.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(V.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var t7=b.event;function tG(){}function tQ(){return this.cancelBubble}function tz(){return this.defaultPrevented}b.event=function(e){return t7&&(e=t7(e)),e.persist=tG,e.isPropagationStopped=tQ,e.isDefaultPrevented=tz,e.nativeEvent=e};var t6={enumerable:!1,configurable:!0,get:function(){return this.class}},t3=b.vnode;b.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var l in t){var o=t[l];if(!("value"===l&&"defaultValue"in t&&null==o||tj&&"children"===l&&"noscript"===n||"class"===l||"className"===l)){var s,a=l.toLowerCase();"defaultValue"===l&&"value"in t&&null==t.value?l="value":"download"===l&&!0===o?o="":"translate"===a&&"no"===o?o=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?l="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||(s=t.type,("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(s))?"onfocus"===a?l="onfocusin":"onblur"===a?l="onfocusout":tK.test(l)&&(l=a):a=l="oninput":i&&t0.test(l)?l=l.replace(t1,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===a&&r[l=a]&&(l="oninputCapture"),r[l]=o}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=j(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==n&&null!=r.defaultValue&&(r.value=j(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",t6)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=tW,t3&&t3(e)};var tY=b.__r;b.__r=function(e){tY&&tY(e),e.__c};var t2=b.diffed;b.diffed=function(e){t2&&t2(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};let t4=(e,t=1e3)=>{let n=eS();return eC(()=>{n.current=e},[e]),ex(()=>eJ(()=>{n.current?.()},t),[])},tX=()=>{},t5=({name:e="popup",children:t,containerRef:n,sourceRef:r,id:i,htmlElement:l="div",className:o,elementProps:s,closeOnScroll:a=!1,closeOnClickOutside:u=!0,updateOnScroll:c=!0,matchWidth:f=!1,onClickOutside:p=tX,onShow:d=tX,onHide:h=tX,isAriaModal:g,ariaLabel:v,isDialogRole:b,dialogMessage:m,showDialogMessage:y})=>{let{isVisible:$,position:C}=t_().get(e),w=tI(),S=eL(t=>{w({type:"SET_POSITION",name:e,position:t})},[e,w]),N="search-filter-component-popup",[x,L]=ey({}),[k,E]=ey(!1),P=eS(null);n&&(P=n);let A=eL(()=>{w({type:"TOGGLE",name:e,show:!1}),h()},[e,w,h]),_=eS(null),I=eS(null),D=eL((e="auto")=>{if(!P.current||!r.current)return;let t=e;"auto"===e&&(t=((e,t,n="auto")=>{let r=t.getBoundingClientRect(),i=e.getBoundingClientRect(),l="bottom";if("auto"===n){let o=r.top+r.height+i.height,s=r.top-i.height;o>(window.innerHeight||document.documentElement.clientHeight)&&(l="top",s<0&&(l="bottom"))}else l=n;return l})(P.current,r.current,e));let n=((e,t,n,r=!1)=>{let i=t.getBoundingClientRect(),l=e.getBoundingClientRect(),o=t,s=[],a=document.documentElement,u=document.body,c=window.getComputedStyle(a),f=window.getComputedStyle(u),p="static"!==c.position&&parseFloat(c.marginTop)||0,d="static"!==c.position&&parseFloat(c.marginLeft)||0,h=p+("static"!==f.position&&parseFloat(f.marginTop)||0),g=d+("static"!==f.position&&parseFloat(f.marginLeft)||0);for(;o&&o!==document.body;)"visible"!==getComputedStyle(o).overflow&&s.push(o),o=o.parentElement;let v=i;s.forEach(e=>{let t=e.getBoundingClientRect();v={top:Math.max(i.top,t.top),left:Math.max(i.left,t.left),bottom:Math.min(i.bottom,t.bottom),right:Math.min(i.right,t.right)}});let b=window.scrollX||window.pageXOffset,m=window.scrollY||window.pageYOffset,y=v.left+b-g,$=v.top+m-h,C=(v.right,v.bottom,{});"top"===n?(C.left=y+"px",C.top=$-l.height+"px",C.position="absolute",r&&(C.width=i.width+"px")):(C.left=i.left+b-g+"px",C.top=i.top+i.height+m-h+"px",C.position="absolute",r&&(C.width=i.width+"px"));let w=tJ(t);return C.zIndex=w,C})(P.current,r.current,t,f);_.current=t,S(t),E(!0),L(n)},[r.current,P.current,f]),T=eL(e=>{if($&&e.target.contains(r.current)){if(a)A();else if(!a&&P.current&&r.current){let t="auto";!1===c&&(t=_.current),D(t)}}},[$,a,c,D,r,A]);t4(()=>{D("auto")},1),ew(()=>{if(!P.current||!r.current)return;let e=new ResizeObserver(e=>{window.requestAnimationFrame(()=>{D("auto")})});if(P.current,r.current){e.observe(r.current);let t=r.current.parentNode,n=[window.Node.DOCUMENT_NODE,window.Node.DOCUMENT_TYPE_NODE,window.Node.DOCUMENT_FRAGMENT_NODE];for(;t&&!n.includes(t.nodeType);)e.observe(t),t=t.parentNode}return()=>{if(P.current,r.current){e.unobserve(r.current);let t=r.parentNode;for(;t&&t!==document.body;)e.unobserve(t),t=t.parentNode}}},[P,r]);let O=eS(null);ew(()=>{O.current=window.innerWidth},[]);let q=e=>{I.current&&O.current!==window.innerWidth&&(O.current=window.innerWidth,A())};eC(()=>(I.current=$,$?window.addEventListener("scroll",T,!0):window.removeEventListener("scroll",T,!0),()=>{window.removeEventListener("scroll",T,!0)}),[$,T]),eC(()=>(window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}),[]);let F=e=>{e.detail===r.current&&D("auto")};eC(()=>(window.addEventListener("searchFilterComponentDomUpdate",F),()=>{window.removeEventListener("searchFilterComponentDomUpdate",F)}),[]),ew(()=>{D("auto"),$&&d(r)},[$]),ew(()=>{if(!u)return;let e=e=>{let t=e.target.closest(`.${N}`);!r.current||r.current.contains(e.target)||t||(p(),A())};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r,A,u,p]);let U={"search-filter-base":!0,[N]:!0,[`${N}--position-${C}`]:!0,[`${N}--hidden`]:!$||!k};return o&&(U[o]=!0),tB(e9(l,{...s,style:x,id:i,className:eQ()(U),ref:P,"aria-expanded":$?"true":"false","aria-modal":g?"true":void 0,role:b?"dialog":void 0,"aria-label":v||void 0,children:[t,m&&e9("div",{"aria-live":"polite",className:"search-filter-component-popup__dialog-message"+(y?"":" search-filter-component-popup__dialog-message-hidden"),children:m})]}),document.body)},tZ=(e="popup")=>{let t=t_().get(e),n=tI();return{isVisible:t.isVisible,toggle(t){let r={type:"TOGGLE",name:e};void 0!==t&&(r.show=t),n(r)},position:t.position}},tJ=e=>{let t=1e3;for(;e;){let n=window.getComputedStyle(e),r=parseInt(n.zIndex,10);if(r&&0!==r&&r>=t){t=r+1;break}e=e.parentElement}return t},ne=["false","true"],nt=({type:e,options:t,value:n,onChange:r,showLabel:i,label:l,isInteractive:o,...s})=>{let[a,u]=function(e,t){let[n,r]=ey({});return ew(()=>{e&&e.length>0?r({[e[0]]:"true"}):r({})},[e]),[n,e=>{let r=n[e]??"false",i=tv(ne,r);t("true"===i?[e]:[])}]}(n,r);return e9(tb,{type:"radio",options:t,value:n,onChange:r,checkableState:a,onUpdateOption:u,CheckableOptionComponent:nn,showLabel:i,label:l,isInteractive:o,...s})},nn=({option:e,type:t,onUpdate:n,isInteractive:r=!0,checkedState:i="false",groupId:l,countLabel:o,showCount:s})=>{let{label:a,value:u,options:c,id:f}=e,p=tc(nn),d=tp(t,l,f??p),h="true"===i,g="search-filter-input-"+t,v=c?.length>0,b="";"true"===i&&(b="-checked");let m=`#sf-svg-${t}${b}`;return e9("div",{className:g+(h?" "+g+"--is-active":""),"data-option-value":u,children:[e9("input",{id:d,type:t,readOnly:!r,tabIndex:r?null:-1,className:"search-filter-input-"+t+"__input",onChange(e){e.preventDefault(),n(u)},checked:h,name:`search-filter-input-group-${l}`,"aria-checked":i,value:u}),e9("label",{htmlFor:d,className:"search-filter-input-"+t+"__container",onClick(e){r||e.preventDefault()},children:[e9("span",{className:"search-filter-input-"+t+"__control","aria-hidden":"true",children:e9("svg",{children:e9("use",{xlinkHref:m})})}),e9("span",{className:"search-filter-input-"+t+"__label",children:[a,o?e9("span",{className:"search-filter-input-"+t+"__count",children:o}):null]})]}),v&&e9(tm,{type:t,options:c,isInteractive:r,showCount:s})]})};nn.templateVars=["value","label","uid",["hasChildren",{type:"control"}],"checkedState","activeClass","svgLink",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]];var nr=window.searchAndFilter.frontend.packages.hooks,ni=window.searchAndFilter.frontend.packages.utils;let nl=e=>{let{id:t,icon:n,inputRef:r,controlRef:i,label:l,showLabel:o,hasClear:s,onChange:a,value:u,placeholder:c,readOnly:f,onEnter:p,onClick:d,isInteractive:h,inputProps:g,controlProps:v,isLoading:b,popupVisible:m,inputClassName:y,...$}=e,{className:C,...w}=v,S=ex(()=>({...g,...w}),[g,w]);return e9(td.TextControl,{id:t,icon:n,inputRef:r,controlRef:i,label:l,showLabel:o,hasClear:(!m||!b)&&s,onChange:a,className:eQ()("search-filter-component-autocomplete-control",C,y),value:u,placeholder:c,readOnly:f,onEnter:p,onClick:d,focusStyles:!1,isInteractive:h,inputProps:S,...$,children:b&&m?e9(td.Icon,{icon:"spinner-circle",className:"search-filter-component-autocomplete-control__loading-icon"}):null})},no=e=>e.apiUrl?e9(na,{...e}):e9(ns,{...e}),ns=e=>{let{isLoading:t}=e,n="search-filter-component-combobox-base",r=e9("div",{"aria-live":"polite",role:"status",className:eQ()(`${n}__listbox-option`,`${n}__listbox-option--disabled`),children:e.loadingText??"Looking for suggestions…"});return e9(td.ComboboxBase,{InputComponent:nl,hideSuggestionsOnEmpty:!0,listboxContent:t?r:null,...e})};no.templateVars=["placeholder","uid","labelUid"];let na=e=>{let{apiUrl:t,apiArgs:n,useCache:r}=e,{suggestions:i,isLoading:l}=nu(t,e.value??"",n,r);return e9(ns,{...e,options:i,isLoading:l})},nu=(e,t,n,r=!0)=>{let[i,l]=ey([]),[o,s]=ey(!1),a=(0,nr.useDebounce)(()=>{(()=>{var r;let{fieldId:i,attributes:o}=n,a={method:"GET",headers:{"Content-Type":"application/json"}},u=e,c={};window.searchAndFilterData?.suggestionsNonce&&(c={nonce:window.searchAndFilterData.suggestionsNonce}),(r=i)&&0!==r&&""!==r?u=((e,t)=>{let n=new URL(e),r=new URLSearchParams(n.search);return Object.keys(t).forEach(e=>{r.append(e,t[e])}),n.search=r,n.toString()})(e,{search:t,fieldId:i,...c}):(a.method="POST",a.body=JSON.stringify({search:t,attributes:o,...c})),window.searchAndFilterData?.restNonce&&(a.headers["X-WP-Nonce"]=window.searchAndFilterData.restNonce),fetch(u,a).then(e=>e.json()).then(e=>{var n,r;return n=t,r=e,l(e=>({...e,[n]:r})),s(!1),e}).catch(e=>{s(!1),"AbortError"!==e.name&&(0,ni.log)("Unable to fetch suggestions, message: "+e.message,"error")})})()},400);return ew(()=>{if(""===t||i[t]&&r)return;let e=new AbortController;return s(!0),a(),()=>{e.abort()}},[t]),""===t?{suggestions:[],isLoading:!1}:{suggestions:i[t],isLoading:o}},nc=()=>{},nf=({showLabel:e,label:t,id:n,forId:r,isInteractive:i=!0,isToggle:l=!1,fieldIsOpen:o=!0,onClick:s=nc})=>{let a=(0,td.useFocusDispatch)();if("yes"!==e)return null;let u=l&&i;return e9("div",{className:"search-filter-label",onClick(){i&&(s(),l||a({type:"SET",id:r}))},id:n,tabIndex:u?"0":null,role:l?"button":null,"aria-expanded":l?o:null,"aria-controls":l?r:null,onKeyDown:u?e=>{"Enter"===e.key?s():" "===e.key&&(e.preventDefault(),s())}:null,children:[t,l?e9(td.Icon,{icon:"arrow-down",className:eQ()(["search-filter-label__toggle-icon",o?"search-filter-label__toggle-icon--up":"search-filter-label__toggle-icon--down"])}):null]})};nf.templateVars=["label",["showLabel",{type:"control"}]];var np=el({});let nd=(e,t)=>e[t]??null,n8=e=>({storeKey:t,...n})=>{let r=ek(np),[i,l]=ey(nd(r.getState(),t)),o=()=>{let e=nd(r.getState(),t);e!==i&&l(e)};eC(()=>(r.subscribe(o),o(),()=>{r.unsubscribe(o)}),[]);let s=nd(r.getState(),t);return e9(e,{...s,...n})};n8.displayName="withStoreKey";let nh=e=>eQ()("search-filter-field__input",e),ng=()=>window.innerWidth<768||window.innerHeight<768,nv=[],nb=(e,t,n)=>ex(()=>{if("yes"!==t)return e??nv;let r=e?[...e]:nv;return r.unshift({label:n,value:""}),r},[e,t,n]),nm={},ny=n8(e=>{let{values:t,attributes:n,options:r,onChange:i,onClear:l,listboxClassName:o,isInteractive:s,id:a,closeListboxOnScroll:u=!1,moveListboxOnScroll:c=!1,extensions:f=nm}=e,p=nb(r,n.inputOptionsAddDefault,n.inputOptionsDefaultLabel);return e9(td.ComboboxControl,{value:t,multiple:"yes"===n.multiple,scale:n.inputScale,options:p,pageAmount:5,onChange:i,onClear:l,closeListboxOnScroll:u,moveListboxOnScroll:c,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,showCount:n.showCount,noResultsText:n.inputNoResultsText,listboxClassName:eQ()([o,"search-filter-field__popup",`search-filter-field__popup--id-${a}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),isInteractive:s,description:n.description,showDescription:n.showDescription,...f,inputClassName:nh(f.inputClassName),enableSearch:!ng()})}),n$=n8(e=>{let{values:t,attributes:n,options:r,onChange:i,isInteractive:l,extensions:o={}}=e,s=nb(r,n.inputOptionsAddDefault,n.inputOptionsDefaultLabel);return e9(nt,{value:t,options:s,onChange:i,type:n.inputType,label:n.label,showLabel:n.showLabel,isInteractive:l,description:n.description,showDescription:n.showDescription,showCount:n.showCount,...o,inputClassName:nh(o.inputClassName)})}),nC={},nw=n8(e=>{let{values:t,attributes:n,options:r,onChange:i,isInteractive:l,extensions:o=nC}=e;return e9(td.CheckboxControl,{value:t,options:r,onChange:i,type:n.inputType,label:n.label,showLabel:n.showLabel,isInteractive:l,hierarchical:n.taxonomyHierarchical,description:n.description,showDescription:n.showDescription,showCount:n.showCount,...o,inputClassName:nh(o.inputClassName)})});function nS(e,t){for(var n in t)e[n]=t[n];return e}function nN(e){var t=[];function n(e){for(var n=[],r=0;r<t.length;r++)t[r]===e?e=null:n.push(t[r]);t=n}function r(n,r,i){e=r?n:nS(nS({},e),n);for(var l=t,o=0;o<l.length;o++)l[o](e,i)}return e=e||{},{action:function(t){function n(e){r(e,!1,t)}return function(){for(var r=arguments,i=[e],l=0;l<arguments.length;l++)i.push(r[l]);var o=t.apply(this,i);if(null!=o)return o.then?o.then(n):n(o)}},setState:r,subscribe:function(e){return t.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return e}}}var nx=el({});let nL={setAttributes(e,t,n){if(void 0===e[t])return e;let r=eX(e),i=eX(e[t]);return i.attributes=e5(i.attributes,n),r[t]=i,r},setProps(e,t,n){if(void 0===e[t])return e;let r=eX(e),i=e5(e[t],n);return r[t]=i,r},setProp(e,t,n,r){if(void 0===e[t])return e;let i=eX(e),l=e5(e[t],{[n]:r});return i[t]=l,i},setQuery(e,t,n){let r=eX(e);return r[t]=eX(n),r},removeQuery(e,t){let n=eX(e);return n[t]&&delete n[t],n}},nk=nN({}),nE=(((e,t)=>{"function"==typeof e&&(e=e(t));let n={};for(let r in e)n[r]=t.action(e[r])})(nL,nk),new WeakMap);nE.set(nk,nL);let nP=function(e,t,n){let r=eY(arguments);r.splice(0,2),r.unshift(t.getState());let i=nE.get(t)[e].apply(null,r);t.setState(i,!0)},nA=function(e){let t=eY(arguments);t.splice(1,0,nk),nP.apply(null,t)},n_={},nI=(e,t)=>e[t]??n_,nD=(e,t)=>{let n=ek(nx),r=nI(n.getState(),e),[i,l]=ey(r[t]),o=()=>{let r=nI(n.getState(),e);r[t]!==i&&l(r[t])};return ew(()=>(n.subscribe(o),()=>{n.unsubscribe(o)}),[]),nI(n.getState(),e)[t]??n_},nT=e=>nD(e,"actions"),nO=()=>{},nq=n8(e=>{let{values:t,attributes:n,onChange:r,onClear:i,isInteractive:l,queryStoreKey:o,extensions:s={},icon:a="search"}=e,{submit:u=nO}=nT(o),c=t?t[0]:"";return e9(tw,{value:c,onChange(e){r([e])},onClear:i,icon:"yes"===n.inputShowIcon?a:null,hasClear:!0,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,isInteractive:l,onEnter(){u()},description:n.description,showDescription:n.showDescription,...s,className:nh(s.inputClassName)})}),nF=n8(e=>{let{values:t,attributes:n,options:r,onChange:i,isInteractive:l,type:o,extensions:s={}}=e,a=nb(r,n.inputOptionsAddDefault,n.inputOptionsDefaultLabel);return e9(th,{value:t,options:a,onChange:i,type:o,label:n.label,showLabel:n.showLabel,multiple:"yes"===n.multiple,isInteractive:l,description:n.description,showDescription:n.showDescription,...s,inputClassName:nh(s.inputClassName)})}),nU=n8(e=>{let{values:t,attributes:n,onChange:r,onClear:i,calendarClassName:l,isInteractive:o,id:s,extensions:a={},icon:u="event",hasClear:c=!0,flatpickrOptions:f}=e,p=t[0]?t[0]:"";return e9(td.DatePickerControl,{value:p,onChange(e){r([e])},onClear:i,icon:"yes"===n.inputShowIcon?u:null,hasClear:c,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,dateFormat:"custom"===n.dateDisplayFormat?n.dateDisplayFormatCustom:n.dateDisplayFormat,calendarClassName:eQ()(["search-filter-base",l,"search-filter-field__popup",`search-filter-field__popup--id-${s}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),isInteractive:o,description:n.description,showDescription:n.showDescription,flatpickrOptions:f,...a,inputClassName:nh(a.inputClassName)})}),n9=()=>{},nV=n8(e=>{let{attributes:t,queryStoreKey:n,icon:r,isInteractive:i}=e,{submit:l=n9}=nT(n);return e9(e3,{onClick:l,icon:r,label:t.label,showLabel:t.showLabel,isInteractive:i,className:"search-filter-field__input"})}),nR=()=>{},nM=n8(e=>{let{attributes:t,queryStoreKey:n,icon:r,isInteractive:i}=e,{reset:l=nR}=nT(n);return e9(e3,{onClick:l,icon:r,label:t.label,showLabel:t.showLabel,isInteractive:i,className:"search-filter-field__input"})}),nH=n8(e=>{let{values:t,attributes:n,onChange:r,listboxClassName:i,isInteractive:l,id:o,closeListboxOnScroll:s=!1,moveListboxOnScroll:a=!1,extensions:u={},options:c=[]}=e;return e9(td.ComboboxControl,{value:t,multiple:"yes"===n.multiple,scale:n.inputScale,options:c,pageAmount:5,onChange:r,closeListboxOnScroll:s,moveListboxOnScroll:a,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,showCount:n.showCount,listboxClassName:eQ()([i,"search-filter-field__popup",`search-filter-field__popup--id-${o}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.controlType}`]),isInteractive:l,description:n.description,showDescription:n.showDescription,...u,inputClassName:nh(u.inputClassName),enableSearch:!ng()})}),nB=n8(e=>{let{values:t,attributes:n,onChange:r,setValuesAndLabels:i,listboxClassName:l,isInteractive:o,id:s,closeListboxOnScroll:a=!1,moveListboxOnScroll:u=!1,extensions:c={},options:f}=e;return e9(td.ComboboxControl,{value:t,multiple:"yes"===n.multiple,scale:n.inputScale,options:f,pageAmount:5,onChange:r,closeListboxOnScroll:a,moveListboxOnScroll:u,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,showCount:n.showCount,listboxClassName:eQ()([l,"search-filter-field__popup",`search-filter-field__popup--id-${s}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.controlType}`]),isInteractive:o,description:n.description,showDescription:n.showDescription,...c,inputClassName:nh(c.inputClassName),enableSearch:!ng()})});var nW=window.searchAndFilter.frontend.packages.fields;let n0=()=>{},nK=n8(e=>{let{values:t,attributes:n,options:r,onChange:i,onClear:l,closeListboxOnScroll:o=!1,moveListboxOnScroll:s=!1,listboxClassName:a,isInteractive:u=!0,connectedData:c,autocompleteUseCache:f,queryStoreKey:p,id:d,icon:h="search",extensions:g={}}=e,v=t?t[0]:"",{submit:b=n0}=nT(p),m="";c&&(m=c.autocompletApiUrl);let y=eS(null),{autoSubmit:$,autoSubmitDelay:C,description:w,showDescription:S,inputLoadingText:N,inputNoResultsText:x,inputSingularResultsCountText:L,inputPluralResultsCountText:k}=n;return e9(td.AutocompleteControl,{value:v,multiple:"yes"===n.multiple,scale:n.scale,options:r,pageAmount:5,onChange(e){i([e])},onClear:l,onSelectOption(e){i([e.value]),"yes"===$&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{},C))},closeListboxOnScroll:o,moveListboxOnScroll:s,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,listboxClassName:eQ()([a,"search-filter-field__popup",`search-filter-field__popup--id-${d}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),isInteractive:u,apiUrl:m,apiArgs:d&&0!==d&&""!==d?{fieldId:d}:{attributes:n},icon:"yes"===n.inputShowIcon?h:null,onEnter(){b()},useCache:f,description:w,showDescription:S,loadingText:N,noResultsText:x,singularResultsCountText:L,pluralResultsCountText:k,...g,inputClassName:(0,nW.__getInputClassName)(g.inputClassName)})}),n1=[],nj=(e,t)=>e["_"+t]??n1,n7=e=>{let{rangeValuePrefix:t,rangeValueSuffix:n,rangeDecimalPlaces:r,rangeThousandCharacter:i,rangeDecimalCharacter:l,rangeMin:o,rangeMax:s,rangeStep:a}=e;return{rangeValuePrefix:t,rangeValueSuffix:n,rangeDecimalPlaces:r,rangeThousandCharacter:i,rangeDecimalCharacter:l,rangeMin:o,rangeMax:s,rangeStep:a}},nG=n8(e=>{let{values:t,attributes:n,onChange:r,urlName:i,isInteractive:l,extensions:o={},queryStoreKey:s}=e,a=nD(s,"currentValues"),u=nj(a,i);return e9(td.RangeSliderControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:l,description:n.description,showDescription:n.showDescription,...o,...n7(n),inputClassName:(0,nW.__getInputClassName)(o.inputClassName),separator:n.rangeSeparator,textPosition:n.rangeSliderTextPosition,showReset:n.rangeSliderShowReset,resetPosition:n.rangeSliderResetPosition})}),nQ=n8(e=>{let{values:t,attributes:n,onChange:r,isInteractive:i,listboxClassName:l,id:o,extensions:s={},queryStoreKey:a,urlName:u}=e,c=nD(a,"currentValues"),f=nj(c,u);return e9(td.RangeSelectControl,{values:t,appliedValues:f,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:i,description:n.description,showDescription:n.showDescription,separator:n.rangeSeparator,listboxClassName:eQ()([l,"search-filter-field__popup",`search-filter-field__popup--id-${o}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),...s,...n7(n),inputClassName:(0,nW.__getInputClassName)(s.inputClassName)})}),nz=n8(e=>{let{values:t,attributes:n,onChange:r,isInteractive:i,extensions:l={},queryStoreKey:o,urlName:s}=e,a=nD(o,"currentValues"),u=nj(a,s);return e9(td.RangeRadioControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:i,description:n.description,showDescription:n.showDescription,separator:n.rangeSeparator,...l,...n7(n),inputClassName:(0,nW.__getInputClassName)(l.inputClassName)})}),n6=n8(e=>{let{values:t,attributes:n,onChange:r,isInteractive:i,extensions:l={},queryStoreKey:o,urlName:s}=e,a=nD(o,"currentValues"),u=nj(a,s);return e9(td.RangeNumberControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:i,description:n.description,showDescription:n.showDescription,...l,...n7(n),inputClassName:(0,nW.__getInputClassName)(l.inputClassName)})}),n3=()=>{},nY=n8(e=>{let{values:t,attributes:n,isInteractive:r,queryStoreKey:i,type:l,extensions:o={},options:s,availableOptions:a=null,_setProp:u}=e,c=ex(()=>{if(null===a)return s;let e=[];for(let t of s)a.includes(t.value)&&e.push(t);return e},[a,s]),{submit:f=n3}=nT(i),p=nD(i,"activeFields");return e9(td.ButtonGroup,{value:t,options:c,onChange(e){let t=e[0],[n,r]=t.split("/"),i=`field-${n}`;if(!p[i])return;let l=p[i].getValues(),o=r.split(","),s=l.filter(e=>!o.includes(e));p[i].setValues(s);let c=a.filter(e=>e!==t);u("availableOptions",c),f()},type:l,label:n.label,showLabel:n.showLabel,multiple:"yes"===n.multiple,isInteractive:r,description:n.description,showDescription:n.showDescription,...o,inputClassName:(0,nW.__getInputClassName)(o.inputClassName),icon:"clear",iconPosition:"right",iconProps:{isDestructive:!0}})}),n2=()=>{},n4=n8(e=>{let{attributes:t,queryStoreKey:n,isInteractive:r,icon:i="spinner-circle"}=e,[l,o]=ey(!1),{loadMore:s=n2}=nT(n),{currentPage:a=1,maxPages:u=2}=nD(n,"settings"),c=a>=u,f=()=>{o(!1)};return e9(td.Button,{disabled:l,onClick(){l||c||(s(f),o(!0))},icon:l?i:null,label:t.label,showLabel:t.showLabel,isInteractive:r,className:eQ()("search-filter-field__input",c?"search-filter-input-button--hidden":""),"aria-hidden":c})}),nX=n8(e=>{let{values:t,attributes:n,onChange:r,isInteractive:i,listboxClassName:l,id:o,extensions:s={},queryStoreKey:a,urlName:u}=e,c=nD(a,"currentValues"),f=nj(c,u);return e9(td.RangeDatePickerControl,{values:t,appliedValues:f,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:i,description:n.description,showDescription:n.showDescription,separator:n.rangeSeparator,listboxClassName:eQ()([l,"search-filter-field__popup",`search-filter-field__popup--id-${o}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),...s,inputClassName:(0,nW.__getInputClassName)(s.inputClassName)})});function n5(e){let t=e._getSnapshot,n=e._value;try{var r,i;return r=n,i=t(),(r!==i||0===r&&1/r!=1/i)&&(r==r||i==i)}catch(l){return!0}}function nZ(e,t){let n=t(),[{_instance:r},i]=ey({_instance:{_value:n,_getSnapshot:t}});return ew(()=>{r._value=n,r._getSnapshot=t,n5(r)&&i({_instance:r})},[e,n,t]),eC(()=>(n5(r)&&i({_instance:r}),e(()=>{n5(r)&&i({_instance:r})})),[e]),n}let nJ=()=>{let{innerWidth:e,innerHeight:t}=window;return{screenWidth:e,screenHeight:t}},re=()=>{let[e,t]=ey(nJ());return eC(()=>{function e(){t(nJ())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e},rt=(e,t)=>{ri(e).push(t)},rn=[],rr=[],ri=e=>"fields"===e?rn:"queries"===e?rr:void 0,rl=(e,t,n)=>{Array.isArray(e)&&e.forEach(e=>{e[t]&&e[t](...n)})},ro=(e,t,n,r)=>{if(!Array.isArray(t))return r[0];let i=e;return t.forEach(e=>{e[n]&&(i=e[n](i,...r))}),i};h(["packages"],"registry",t);let rs={...l,...o};h(["packages"],"components",rs,!0);let{hooks:ra,...ru}=s;h(["packages"],"core",ru,!0),h(["packages","core"],"hooks",ra,!0);let rc={...a,...u};h(["packages"],"fields",rc,!0),h(["packages"],"utils",i,!0);let rf={...c,...f};h(["packages"],"hooks",rf,!0),h(["packages"],"extensions",p,!0),new MutationObserver(function(e){document.documentElement.className.match("translated")&&rp()}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"],childList:!1,characterData:!1});let rp=()=>{let e=Element.prototype.insertBefore;Element.prototype.insertBefore=function(t,n){if(!n||"font"!==n.localName)return e.apply(this,arguments);t.innerText=n.innerText};let t=Element.prototype.replaceChild;Element.prototype.replaceChild=function(e,n){if(!n||"font"!==n.localName)return t.apply(this,arguments);e.innerText=n.innerText};let n=b.diffed;b.diffed=e=>{if(null===e.type&&e.__e&&e.__e.previousSibling&&e.__e.previousSibling.childNodes){let t=e.__e.previousSibling.childNodes[0];t&&"FONT"===t.nodeName&&(e.__e.data=t.innerText,t.remove())}n&&n(e)}},rd={search:{text:nq},choice:{select:ny,radio:n$,checkbox:nw,button:nF},range:{},advanced:{date_picker:nU},control:{submit:nV,reset:nM,sort:nH,per_page:nB}};function r8(e,t,n){rd[e]||(rd[e]={}),rd[e][t]=n}var rh=el({});let rg=nN({}),rv=nN({}),rb=new WeakMap;rb.set(rg,{setValues(e,t,n){if(void 0===e[t])return e;let r=eX(e),i=eX(e[t]);return i.values=n,r[t]=i,r},setValueLabels(e,t,n){if(void 0===e[t])return e;let r=eX(e),i=eX(e[t]);return i.valueLabels=n,r[t]=i,r},setAttributes(e,t,n){if(void 0===e[t])return e;let r=eX(e),i=eX(e[t]);return i.attributes=e5(i.attributes,n),r[t]=i,r},setProps(e,t,n){if(void 0===e[t])return e;let r=eX(e),i=e5(e[t],n);return r[t]=i,r},setProp(e,t,n,r){if(void 0===e[t])return e;let i=eX(e),l=e5(e[t],{[n]:r});return i[t]=l,i},setField(e,t,n){let r=eX(e);return r[t]=eX(n),r},removeField(e,t){let n=eX(e);return n[t]&&delete n[t],n}}),rb.set(rv,{setValues(e,t,n){let r=eX(e),i=eY(n);return r[t]=i,r}});let rm=function(e,t,n){let r=eY(arguments);r.splice(0,2),r.unshift(t.getState());let i=rb.get(t)[e].apply(null,r);t.setState(i,!0)},ry=function(e){let t=eY(arguments);t.splice(1,0,rg),rm.apply(null,t)},r$=function(e){let t=eY(arguments);t.splice(1,0,rv),rm.apply(null,t)},rC=({children:e,queryStore:t})=>e9(np.Provider,{value:rg,children:e9(rh.Provider,{value:rv,children:e9(nx.Provider,{value:t,children:e})})}),rw=0,rS=(e,t)=>{let n=++rw,r=`field_${n}`,i={},l=[],o="",s={},a=!1,u=ri("fields"),c=g([],"queries"),f={},p={},d=null,h=e=>{i.values!==e&&(C(e),rl(u,"onUpdateValues",[I,e,i]),function(e,t={}){_[e]&&_[e].forEach(e=>{e(d,t)})}("onUpdateValues",e))},v=()=>{C([]),rl(u,"onClearValues",[I,i])};function b(){return void 0!==i.el?i.el:e}function m(){return r}function y(e){let t=e[r];if(t&&i!==t){if(void 0!==i.classList&&i.classList!==t.classList){let n=b();n&&(n.className="",t.classList.forEach(function(e){n.classList.add(e)}))}rl(u,"onUpdate",[I,i=t])}}function $(e){let t=e[o];t&&(l=t)}function C(e){i.isInteractive&&(ry("setValues",r,e),r$("setValues",o,e))}function w(){return i.values}function S(){return i.inputType}function N(e,t,n){var r=e.lastIndexOf(t);return r>=0?e.substring(0,r)+n+e.substring(r+t.length):e}function x(e){let t=e?.attributes??{},l=t.type,g=to(t);o=e.urlName;let m=eX(e);m.isInteractive=e?.isInteractive??!0,m.classList=e?.classList??[],s=e.connectedData;let y=e.urlTemplate;d=c.get(parseInt(t.queryId));let $=null;d&&($=d.getStoreKey()),y&&s&&s.termIdentifiers&&s.termIdentifiers.forEach(e=>{f[e.slug]=e.id,p[e.id]=e.slug});let C=[],S=m.classList?[...m.classList]:[],N=b();N&&(N.classList.forEach(function(e){C.push(e),S=S.filter(t=>t!==e)}),S.forEach(function(e){N.classList.add(e),C.push(e)})),m={...m,inputType:g,type:l,queryStoreKey:$,classList:C,uid:n,el:b(),onChange:h,onClear:v,test:"aaaa",_setProp:A},i._instance&&(m._instance=i._instance),m=ro(m,u,"config",[I]),ry("setField",r,m),r$("setValues",o,w()),rl(u,"init",[I,m]),a=!0}function L(e){var t,n;if(!e)return;let l=(t=i.type,n=S(),rd[t]&&rd[t][n]?rd[t][n]:null);null!==l&&en(e9(eB,{children:e9(tA,{children:e9(rC,{queryStore:nk,children:e9(l,{storeKey:r})})})}),e)}function k(){b()&&(en(null,b()),A("el",null))}function E(e){return i.attributes&&i.attributes[e]?i.attributes[e]:null}function P(e,t=!1){!1===t&&(e=ro(e,u,"setProps",[I])),ry("setProps",r,e),rl(u,"onUpdateProps",[I,e,i])}function A(e,t,n=!1){P({[e]:t},n)}let _={},I={initField:function(e){var t;let n=(t=e,to(t.attributes)!==to(i.attributes)||t.type!==i.type);x(e),n&&L(b())},setOptions:function(e){A("options",e),rl(u,"onUpdateOptions",[I,e])},setAttributes:function(e){ry("setAttributes",r,e)},getAttributes:function(){return i.attributes},getAttribute:E,setValues:C,setProps:P,setProp:A,getProp:function(e){return i[e]},getUid:function(){return n},getId:function(){return i.id},getState:function(){return i},getName:function(){return i.name},getElement:b,getQueryData:function(){return{queryId:i.attributes.queryId}},getStoreKey:m,getValues:w,getUrlName:function(){return o},getUrlValues:function(e){return l},getConnectedData:function(){return s},setConnectedData:function(e){s=e},getUrl:function(){if(!i?.urlTemplate||!function(){let e=S();return"checkbox"!==e&&("select"!==e&&"button"!==e||"yes"!==E("multiple"))}()||!s.taxonomyParents)return null;let e=w(),t=e.length>0?e[0]:"",n=f[t],r=p[n],l=i.urlTemplate;if(!Array.isArray(l)||0===l.length)return null;let o=0;s.taxonomyParents[n]&&s.taxonomyParents[n].forEach(e=>{o++});let a=l[o];return a?(a=N(a,"[id]",n),a=N(a,"[slug]",r),s.taxonomyParents[n]&&s.taxonomyParents[n].forEach(e=>{a=N(a,"[slug]",e.slug)}),a):null},remove:function(){k(),rg.unsubscribe(y),rv.unsubscribe($),ry("removeField",r),d&&d.removeField(I)},unmount:k,mount:function(e){e?(A("el",e),L(e)):L(b())},enable:function(){},disable:function(){},focus:function(){},blur:function(){},queryActions:function(){return d?d.getActions():{}},getQuery:function(){return d},on:function(e,t){_[e]||(_[e]=[]),_[e].push(t)},off:function(e,t){if(!_[e])return;let n=_[e].indexOf(t);-1!==n&&_[e].splice(n,1)}};return rg.subscribe(y),rv.subscribe($),x(t),e&&L(e),A("_instance",I),d&&d.addField(I),I};var rN=window.searchAndFilter.frontend.packages.registry,rx=window.searchAndFilter.frontend.packages.extensions;let rL=(e,t)=>{window.location.href=((e,t)=>{let n=new URLSearchParams(t).toString(),r=e;if(""===e&&(r="?"),""!==n){let i=r.indexOf("?")>-1;r+=(i?"&":"?")+n}return r})(e,t)},rk=()=>window.searchAndFilter.admin,rE=null,rP=e=>{if(e.getAttribute("href")){let t=rH(e.getAttribute("href")).trim();t!==e.getAttribute("href")&&e.setAttribute("href",t)}else if(e.innerHTML){let n=rH(e.innerHTML).trim();n!==e.innerHTML.trim()&&(e.innerHTML=n)}else if(e.textContent){let r=rH(e.textContent).trim();r!==e.textContent.trim()&&(e.textContent=r)}},rA=e=>{let t=[],n=null,r=null;if(e.head){let i=!1;for(let l of e.head.childNodes)if(l.nodeType===Node.ELEMENT_NODE&&"META"===l.tagName&&"search-filter-head-assets-start"===l.getAttribute("name")&&(i=!0,n=l),i&&l!==n&&l.nodeType===Node.ELEMENT_NODE){if("META"===l.tagName&&"search-filter-head-assets-end"===l.getAttribute("name"))break;(rD(l)||rI(l))&&(rP(l),t.push({element:l,location:"head"}))}}if(e.body){let o=e.body.querySelectorAll('body > style, body > link[rel="stylesheet"], body > #search-filter-svg-template');for(let s of o)rP(s),t.push({element:s,location:"body"});r=e.body.firstChild}return{elementsList:t,headMarker:n,bodyMarker:r}},r_=(e,t,n)=>new Promise((r,i)=>{let l=e.cloneNode(!0),o=l.getAttribute("media")||"all",s,a,{element:u,action:c}=t;l.setAttribute("media","print");let f=()=>{l.onload=null,l.onerror=null,n&&n.removeEventListener("abort",d),l.setAttribute("media",o)},p=()=>{clearTimeout(s),cancelAnimationFrame(a),"replace"===c&&u.remove()},d=()=>{f(),p()};l.onload=()=>{f();let e=()=>{s=setTimeout(()=>{a=requestAnimationFrame(()=>{(e=>{for(let t of document.styleSheets)if(t.href===e)return t;return null})(l.href)||n&&n.aborted?(p(),r(l)):e()})},20)};e()},l.onerror=()=>{d()},u.after(l),n.addEventListener("abort",d,{once:!0}),n.aborted&&d()}),rI=e=>!!e&&"LINK"===e.tagName&&"stylesheet"===e.getAttribute("rel")&&e.getAttribute("href"),rD=e=>!!e&&"STYLE"===e.tagName,rT=null,rO=null,rq=(e,t,n=null,r=null)=>t?rO&&rO.url===e?(rT=null,Promise.resolve()):(rO&&rO.abortController&&rO.abortController.abort(),rT={url:e,doc:t,updateTreeSelectors:r,abortController:n||new AbortController},rO?Promise.resolve():rU()):Promise.resolve(),rF=e=>{let t=new Map;for(let n of e){let r=n.element;if(r.nodeType===Node.ELEMENT_NODE){if(r.id)t.set(r.id,r);else if(r.getAttribute("href")){let i=r.getAttribute("href");t.set(i,r)}else t.set(r.textContent,r)}}return{getEquivelant:function(e){if(e.id)return t.get(e.id);if(e.getAttribute("href")){let n=e.getAttribute("href");return t.get(n)}return t.get(e.textContent)},elements:t}},rU=()=>{rO=rT,rT=null;let e=rO.abortController;return new Promise((t,n)=>{if(e.signal.aborted)return void n(new DOMException("Request superseded by new request","AbortError"));let r=rO.doc,{added:i,removed:l,changed:o}=(()=>{if(rE)return rE;if(!window.searchAndFilterPage||!window.searchAndFilterPage.head||!window.searchAndFilterPage.body)return rE={added:[],removed:[],changed:[]};let e=new DOMParser,t="<html>"+window.searchAndFilterPage.head+window.searchAndFilterPage.body+"</html>",n=e.parseFromString(t,"text/html"),{elementsList:r}=rA(n),{elementsList:i}=rA(document),{added:l,removed:o,changed:s}=((e,t)=>{let n=rF(e),r=rF(t),i=[],l=[],o=[];for(let s of t){let a=s.element,u=n.getEquivelant(a);u?rD(a)?a.textContent!==u.textContent&&o.push(s):rI(a)&&a.getAttribute("href")!==u.getAttribute("href")&&o.push(s):i.push(s)}for(let c of e){let f=c.element;r.getEquivelant(f)||l.push(c)}return{added:i,removed:l,changed:o}})(r,i);return rE={added:l,removed:o,changed:s}})(),s=rF(i),a=rF(l),{elementsList:u,headMarker:c,bodyMarker:f}=rA(document),{elementsList:p}=rA(r),d=rF(u),h=rF(p),g=[],v=c,b=f,m=new WeakMap,y=new Set;for(let $ of p){let C=$.element;if(a.getEquivelant(C))continue;let w=d.getEquivelant(C),S="head"===$.location;if(w?(S?v=w:b=w,m.set(C,{action:"replace",element:S?v:b})):m.set(C,{action:"after",element:S?v:b}),rD(C)){if(w&&w.textContent===C.textContent)continue;y.add(C)}else if(rI(C)){if(w&&C.getAttribute("href")===w.getAttribute("href"))continue;g.push(r_(C,m.get(C),e.signal))}else{if(w&&w.textContent===C.textContent)continue;y.add(C)}}let N=new Set;for(let x of u){let L=x.element;s.getEquivelant(L)||h.getEquivelant(L)||N.add(L)}let k=()=>{for(let e of y){let n=m.get(e),{action:i,element:l}=n;"replace"===i?l.replaceWith(e.cloneNode(!0)):l.after(e.cloneNode(!0))}for(let o of N)o.remove();document.title!==r.title&&(document.title=r.title),document.body.className!==r.body.className&&(document.body.className=r.body.className);let s=rO.updateTreeSelectors;if(s)for(let a of s){let u=document.querySelector(a),c=r.querySelector(a);function f(e,t){return"BODY"!==e.tagName&&"BODY"!==t.tagName&&e&&t&&e.nodeType===Node.ELEMENT_NODE&&t.nodeType===Node.ELEMENT_NODE}if(f(u,c)){let p=u.parentElement,d=c.parentElement;for(;f(p,d);)p.className=d.className,p.style.cssText=d.style.cssText,p=p.parentElement,d=d.parentElement}}t()};Promise.all(g).then(k).catch(e=>{if("AbortError"!==e.name)throw e;k(),k()}).finally(()=>{rO=null,rT&&rU()})})},r9=(e,t,n=!1)=>{let r=e,i=[];for(let l in t)!t[l]&&n?i.push(`${l}`):i.push(`${l}=${t[l]}`);let o=r.split("#");r=o[0];let s=o[1];return 0===i.length?e:(-1!==r.indexOf("?")?r+="&":r+="?",r+=i.join("&"),s&&(r+=`#${s}`),r)},rV=(e,t)=>{let n={};for(let r in t)if(Array.isArray(t[r])){let i=[];t[r].forEach(e=>{e?i.push(encodeURIComponent(e)):i.push(e)}),n[r]=i.join(",")}else n[r]=encodeURIComponent(t[r]);return r9(e,n)},rR=e=>(new DOMParser).parseFromString(e,"text/html"),rM=null;function rH(e){let t=e,n=window.searchAndFilterData.homeUrl,r=rB();return n&&r&&(t=e.replaceAll(r.url,n)),t}let rB=()=>{if(!window.searchAndFilterApiUrl)return null;if(null!==rM)return rM;rM={auth:null,url:null};let e=new URL(window.searchAndFilterApiUrl);return e.username&&e.password&&(rM.auth="Basic "+btoa(`${e.username}:${e.password}`)),rM.url=`${e.origin}${e.pathname}${e.search}`,rM.url.endsWith("/")&&(rM.url=rM.url.slice(0,-1)),rM},rW=(()=>{let e={},t={},n=[];function r(e){if(t[e]){let n=t[e];t[e]=null;try{n.abort(new DOMException("Request superseded by new request","AbortError"))}catch(r){if("AbortError"===r.name)return}}}rk()||window.addEventListener("popstate",t=>{(async(t,r)=>{let l=r&&Object.keys(r).length>0;for(let o of(!e[t]&&l&&(e[t]={dom:rR(r),raw:r}),e[t]&&await rq(t,e[t].dom,null,i()),n))o.popState&&o.popState(t,e[t])})(window.location.href,t.state)});let i=()=>{let e=[];for(let t of n)t.treeSelector&&e.push(t.treeSelector);return e};return(0,ni.onInitDocument)(()=>{if(!window.searchAndFilterPage||!window.searchAndFilterPage.head||!window.searchAndFilterPage.body)return;let t="<html>"+window.searchAndFilterPage.head+window.searchAndFilterPage.body+"</html>",n=rR(t);e[window.location.href]={dom:n,raw:t}},"complete"),{newRequest:async function(n,l,o,s=!0,a=!1){let u=a?i():[];if(e[n]){r(o);let c=new AbortController;return t[o]=c,new Promise(t=>{setTimeout(async()=>{s&&await rq(n,e[n].dom,c,u),t(l(e[n]))},100)})}return new Promise((i,a)=>{r(o);let c=new AbortController;t[o]=c;let f=function(e){let t=e,n=window.searchAndFilterData.homeUrl,r=rB();return n&&r&&(t=e.replaceAll(n,r.url)),t}(n),p=rB(),d={"search-filter-api":"frontend"};p&&(d["search-filter-api"]="frontend/external");let h=rV(f,d),g={"Content-Type":"text/html"};p&&p.auth&&(g.Authorization=p.auth),fetch(h,{method:"GET",headers:g,signal:c.signal}).then(e=>{if(t[o]!==c)throw new DOMException("Aborted","AbortError");return e.text()}).then(async r=>{if(t[o]!==c)throw new DOMException("Aborted","AbortError");return e[n]={dom:rR(r),raw:r},s&&await rq(n,e[n].dom,c,u),Promise.resolve(l(e[n]))}).then(()=>{i()}).catch(e=>{"AbortError"!==e.name?a(e):i()}).finally(()=>{t[o]===c&&(t[o]=null)})})},registerHandler(e){n.push(e)},abortRequest(e){r(e)}}})(),r0=rW.registerHandler,rK=rW.newRequest,r1=rW.abortRequest,rj=window.getComputedStyle,r7=0;function rG(e){return!!Array.isArray(e)&&(0===e.length||1===e.length&&""===e[0])}let rQ={},rz=e=>{var t;let n=0,r=++r7,i=`query_${r}`,l={},o="",s={},a=null,u=null,c=!1,f=window.location.href,p={},d=(0,rx.get)("queries");function h(){return n}function g(){return i}function v(e){let t=e[i];t&&l!==t&&(l=e[i])}function b(e){return l.settings?l.settings[e]:null}function m(e){nA("setProp",i,"activeFields",e)}function y(){return l.fields?l.fields:[]}function $(e){nA("setProp",i,"fields",e)}nk.subscribe(v),x(e);let C={};function w(e,t=!1){if(function(){let e=y();for(let t in e){let n=e[t];if(n.getAttribute("defaultValueType")&&"none"!==n.getAttribute("defaultValueType")&&"yes"===n.getAttribute("defaultValueApplyToQuery"))return!0}return!1}()){let n=S();e=r9(e,{[n]:null},!0)}return e}function S(){return"~"+n}function N(){let e=D();if(e.id>0)return e.url;let t=b("currentTaxonomyArchive");if(!t)return o;let n=b("taxonomyArchiveUrl"),r=!1;for(let i in l.fields){let s=l.fields[i],a=s.getProp("connectedData")?.filtersTaxonomyArchive;if(a===t){r=!0;break}}return r?o:n}function x(e){o=(s=(0,ni.cloneObject)(e)).url,n=s.id,nA("setQuery",i,s),c||(function(){if(u||!E())return;let e=!1,t=L("queryContainer"),r=document.querySelectorAll(t);if(0===r.length&&(e=!0,function(){let e=new URL(N()),t=new URL(window.location.href);return e.pathname===t.pathname}()&&(0,ni.log)(`Query container not found for query ${n}. Selector: ${t}`,"error")),r.length>1&&((0,ni.log)(`Multiple query containers found for query ${n}. Selector: ${t}`,"error"),e=!0),e)return null;(u=r[0]).classList.add("search-filter-query"),"yes"===L("resultsShowSpinner")&&(a=function(e,t,n=null){let r=!1,i=!1,l="search-filter-query__spinner--show",o=document.createElement("div");o.classList.add("search-filter-base"),o.classList.add("search-filter-query__spinner"),o.classList.add("search-filter-query--id-"+t);let s=document.createElement("div");s.classList.add("search-filter-query__spinner-icon");let a=document.createElementNS("http://www.w3.org/2000/svg","svg"),u=document.createElementNS("http://www.w3.org/2000/svg","use");function c(){let t=e.offsetParent,n=function(e,t=!0){let n=rj(e),r="absolute"===n.position,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===n.position)return document.body;for(let l=e;l=l.parentElement;)if(n=rj(l),(!r||"static"!==n.position)&&i.test(n.overflow+n.overflowY+n.overflowX))return l;return document.body}(e);if(!n||!n.tagName)return;t&&"body"!==n.tagName.toLowerCase()&&!n.contains(t)&&"static"===rj(n).position&&(n.style.position="relative");let r="0px",i="0px";if(t&&"body"===t.tagName.toLowerCase()&&"static"===rj(t).position){let l=rj(document.documentElement);"relative"!==l.position&&(r=l.marginTop,i=l.marginLeft)}let s=e.getBoundingClientRect();o.style.width=s.width+"px",o.style.height=s.height+"px",o.style.top=`calc( ${e.offsetTop}px + ${r} )`,o.style.left=`calc( ${e.offsetLeft}px + ${i} )`}let f;function p(){f&&window.cancelAnimationFrame(f),f=window.requestAnimationFrame(function(){c()})}u.setAttributeNS("http://www.w3.org/1999/xlink","href","#sf-svg-spinner-circle"),a.appendChild(u),s.appendChild(a),o.appendChild(s),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p,!0);let d=()=>{o.style.visibility="hidden",r=!1,i=!1,n&&n()};return o.addEventListener("transitionstart",function(e){i=!0}),o.addEventListener("transitionend",function(e){r&&d()}),o.addEventListener("transitioncancel",function(e){r&&d()}),e.after(o),c(),{container:o,setLoaderPosition:c,remove:function(){o.remove()},show:function(){o.style.visibility="visible",c(),o.classList.add(l)},hide:function(){c(),r=!0,i||d(),o.classList.remove(l)}}}(u,n,()=>{u.classList.remove("search-filter-query--loading")}))}(),A(),c=!0)}function L(e){return l.attributes&&l.attributes[e]?l.attributes[e]:null}function k(e,t){nA("setProp",i,e,t)}function E(){return"yes"===L("resultsDynamicUpdate")}function P(e){var t;e.preventDefault();let n=!function(e){let t=new URL(document.baseURI).origin;return 0!==e.indexOf(t)}(t=e.currentTarget.getAttribute("href"))?t:new URL(t,document.baseURI).href;n&&B(n,!0)}function A(){let e=L("queryPaginationSelector");if(!e)return;let t=document.querySelectorAll(e);t&&t.forEach(e=>{e.removeEventListener("click",P),e.addEventListener("click",P)})}function _(e=[]){let t={};for(let n in l.fields){if(e.includes(l.fields[n].getUid()))continue;let r=l.fields[n].getUrlValues();rG(r)||(t["_"+l.fields[n].getUrlName()]=r)}return t}function I(){let e={},t=!1;for(let n in l.fields)rG(l.fields[n].getUrlValues())||(e[`field-${l.fields[n].getId()}`]=l.fields[n],t=!0);return t?e:rQ}function D(){let e="",t=0;for(let n in l.fields){let r=l.fields[n];if(!rG(r.getUrlValues())&&r.getUrl()){e=r.getUrl(),t=r.getUid();break}}return{url:e,id:t}}function T(e=null){let t=D(),n=[];t.id>0&&n.push(t.id);let r=_(n),i=Object.keys(r).length>0;m(I());let l=e??N(),o=null;return l&&(o=w(rV(l,r),i)),{values:r,url:o}}function O(){let{values:e,url:t}=T();t?B(t,!0):(0,ni.log)(`No URL set for query ID: ${n}.`,"error"),(0,rx.doActions)(d,"onSubmit",[e])}let q=(e=!0)=>{let t=y();for(let n in t)t[n].setProp("isBusy",e)},F=()=>{for(let e in l.fields)l.fields[e].setValues([]);m(I());let t=N();t&&B(w(t),!0),(0,rx.doActions)(d,"onReset",[])},U=e=>{k("currentValues",e)},V=e=>{if(!e)return;let t=(0,rN.get)([],"queries");Object.keys(e).forEach(n=>{let r={...e[n]},i=t.get(r.id);i?i.setSettings(r.settings):rz(r)})},R=e=>{if(!e)return;let t=(0,rN.get)([],"fields");Object.keys(e).forEach(n=>{let r={...e[n]},i=t.get(r.id);if(i)r.values=i.getValues(),i.initField(r);else{let l=document.querySelector(`.search-filter-field[data-field-id="${r.id}"]`);l&&rS(l,r)}})},M=e=>{if(!e)return;let t=(0,rN.get)([],"fields");for(let n in e){let r={...e[n]},i=t.get(r.id);i&&i.setValues(r.values)}m(I())},H=e=>{if(!E())return void(0,ni.log)(`Live search is not enabled for query ${n}.`,"error");let t=L("queryPostsContainer"),r=document.querySelectorAll(t);if(0===r.length)return void(0,ni.log)(`Posts container not found for query ${n}. Selector: ${t}`,"error");if(r.length>1)return void(0,ni.log)(`Multiple posts containers found for query ${n}. Selector: ${t}`,"error");let i=r[0],l=b("currentPage")+1,o=_(),s=b("paginationKey");s?o[s]=l:o.paged=l;let a=Object.keys(o).length>0,c=w(rV(N(),o),a);Z("get-results/start",{action:"load-more"}),q(!0),rK(c,t=>{let r=t.dom,l=W(r),o=L("queryContainer"),s=r.querySelector(o);if(!s)return void(0,ni.log)(`Destination query container not found for query ${n}. Selector: ${o}`,"error");K(l,s);let a=L("queryPostsContainer"),c=r.querySelector(a);c?(Array.from(c.childNodes).forEach(e=>{i.appendChild(e.cloneNode(!0)),Q(u,l.fields)}),q(!1),Z("get-results/finish",{action:"load-more"}),e&&e()):(0,ni.log)(`Destination posts container not found for query ${n}. Selector: ${a}`,"error")})};async function B(e,t=!0){if(!u||!E()||!u)return void(t&&rL(e));Z("get-results/start");let r="yes"===L("resultsFadeResults"),i="yes"===L("resultsShowSpinner");r&&u.classList.add("search-filter-query--fade-out"),i&&a.show(),u.classList.add("search-filter-query--loading");let l=L("queryContainer");q(!0),await rK(e,async r=>{await async function(e,t,r=!0){var i,l;U({...z(e)}),j(t);let o="yes"===L("resultsFadeResults"),s="yes"===L("resultsShowSpinner");o&&u.classList.remove("search-filter-query--fade-out"),s&&a.hide(),"yes"===L("resultsUpdateUrl")&&r&&(i=e,l=t.raw,i!==window.location.href&&window.history.pushState(l,"",i),f=e);let c=L("resultsScrollToSelector");if(c&&""!==c){let p=document.querySelector(c);p?p.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):(0,ni.log)(`Scroll to selector element not found for query ${n}. Selector: ${c}`,"error")}}(e,r,t),q(!1),Z("get-results/finish")},`results-${n}`,!0,l)}function W(e){let t=e.querySelector("#search-filter-data-js");return JSON.parse(t.getAttribute("data-search-filter-data"))}function K(e,t,n=!1){if(V(e.queries),R(e.fields),n&&M(e.fields),u&&"yes"===L("resultsUpdatePage"))for(let r of t.attributes)u.setAttribute(r.name,r.value)}function j(e,t=!1){let r=e.dom,i=W(r),l=L("queryContainer"),o=r.querySelector(l);if(!o)return void(0,ni.log)(`Destination query container not found for query ${n}. Selector: ${l}`,"error");G(u,o,i.fields),K(i,o,t);let s=L("dynamicSections");if(s===l)return void(0,ni.log)(`Dynamic section value is the same as the query container for query ${n}.`,"error");let a=[],c=L("additionalDynamicSections");s&&a.push(s),c&&a.push(c);let f=a.join(", ");""!==f&&f.split(",").forEach(e=>{let t=e.trim(),l=document.querySelectorAll(t),o=r.querySelectorAll(t);l.length!==o.length&&(0,ni.log)(`Dynamic area count mismatch for query ${n}. Selector: ${t}`,"error"),l.forEach((e,t)=>{e.innerHTML=o[t].innerHTML,G(e,o[t],i.fields)})}),A()}function G(e,t,n){e&&t&&(function(e){if(!e)return;let t=(0,rN.get)([],"fields");e.querySelectorAll(".search-filter-field[data-search-filter-id]").forEach(e=>{let n=e.getAttribute("data-search-filter-id"),r=t.get(parseInt(n));r&&r.unmount()})}(e),e.innerHTML=t.innerHTML,Q(e,n))}function Q(e,t){if(!e)return;let n=(0,rN.get)([],"fields");e.querySelectorAll(".search-filter-field[data-search-filter-id]").forEach(e=>{let r=e.getAttribute("data-search-filter-id"),i=n.get(parseInt(r)),l={...t["field_"+r]};i?(l&&i.setOptions(l.options),i.mount(e)):i=rS(e,l)})}function z(e){let t=new URL(e),n=new URLSearchParams(t.search),r={};return n.forEach((e,t)=>{r[t]=e.split(",")}),r}if(!rk()&&E()){let Y=null;"yes"===L("resultsUpdatePage")&&(Y=L("queryContainer")),r0({popState:async function(e,t){if(E()){if(t)return Z("get-results/start"),U({...z(e)}),j(t,!0),Z("get-results/finish"),void(f=e);f.split("#")[0]!==e.split("#")[0]&&await B(e,!1),f=e}},treeSelector:Y})}function X(){r1(`results-${n}`),r1(`fields-${n}`)}function Z(e,t={}){C[e]&&C[e].forEach(e=>{e(J,t)})}t={submit:O,reset:F,loadMore:H,getFields:y,refreshFields:async function(){let{url:e}=T(window.location.href);e&&(Z("get-results/start"),q(!0),await rK(e,e=>{var t;(e=>{if(!e)return;let t=(0,rN.get)([],"fields");Object.keys(e).forEach(n=>{let r=e[n],i=t.get(r.id);i&&i.setOptions(r.options)})})(W(e.dom).fields),q(!1),Z("get-results/finish")},`fields-${n}`,!1))},signalUpdate:X},nA("setProp",i,"actions",t);let J={setQuery:function(e,t){x(e)},setAttributes:function(e){nA("setAttributes",i,e)},setProps:function(e){nA("setProps",i,e)},setProp:k,getProp:function(e){return nk.getState()[i][e]},setSettings:function(e){nA("setProp",i,"settings",e)},initConfig:x,getUid:function(){return r},getId:h,getValues:_,getStoreKey:g,getUrl:N,getName:function(){return s.name},getAttribute:L,getAttributes:function(){return l.attributes},getActions:function(){return l.actions??{}},submit:O,reset:F,remove:function(){a&&a.remove(),nk.unsubscribe(v),nA("removeQuery",i)},loadMore:H,addField(e){$({...l.fields,[e.getStoreKey()]:e}),m(I()),p[e.getUrlName()]||(p[e.getUrlName()]=[]),p[e.getUrlName()].push(e);let t=l.activeValues??{};e.getValues().length>0&&(t["_"+e.getUrlName()]=e.getValues()),U({...t}),e.on("onUpdateValues",X)},removeField(e){let t={...l.fields};t[e.getStoreKey()]&&delete t[e.getStoreKey()],$(t),m(I()),e.off("onUpdateValues",X)},getFields:y,isActive:function(){return l.isActive},getActiveUrlArg:S,getQueryContainer:function(){return u},on:function(e,t){C[e]||(C[e]=[]),C[e].push(t)},off:function(e,t){if(!C[e])return;let n=C[e].indexOf(t);-1!==n&&C[e].splice(n,1)}};return nA("setProp",i,"_instance",J),J};function r6(){if("loading"===document.readyState)return!1;if(window?.searchAndFilterData?.shouldMount){let e=g([],"mount");if(e)return e(),!0}return!1}let r3,rY=!1,r2={},r4=(e,t)=>(!t.supports||!t.supports.includes("autoSubmit"))&&"yes"===t.attributes.autoSubmit,rX=(e,t)=>{let n=e.getQuery();if(!n||"yes"!==n.getAttribute("useIndexer"))return;let r=e.queryActions(),{refreshFields:i}=r;if(!i||r4(0,t))return;let l=100,o=t.attributes.autoSubmitDelay;o&&""!==o&&(l=parseInt(o)),clearTimeout(r3),r3=setTimeout(()=>{i()},l)},r5=(e,t)=>{let n=e.getElement();e.setProp("isFieldVisible",!1),e.setProp("isInteractive",!1),t.includes("search-filter-field--hidden")||(t.push("search-filter-field--hidden"),e.blur(),e.setProp("classList",t),n.setAttribute("aria-hidden","true"))},rZ=e=>{if("yes"!==e.getAttribute("hideFieldWhenEmpty")||!e.getElement()||0!==e.getValues().length)return;let t=[...e.getProp("classList")],n=e.getAttribute("type");if("choice"===n){if(0===e.getProp("options").length)return void r5(e,t)}else if("range"===n){if(null===e.getAttribute("rangeMin")&&null===e.getAttribute("rangeMax"))return void r5(e,t)}else{if("control"!==n)return;{if("selection"!==e.getAttribute("controlType"))return;let r=e.getProp("availableOptions");if(r&&0===r.length)return void r5(e,t)}}e.getProp("isFieldVisible")||((e,t)=>{let n=e.getElement();e.setProp("isFieldVisible",!0),e.setProp("isInteractive",!0),n.setAttribute("aria-hidden","false"),t.includes("search-filter-field--hidden")&&(t.splice(t.indexOf("search-filter-field--hidden"),1),e.setProp("classList",t))})(e,t)};var rJ,ie={fields:{init(e,t){var n;r2[(n=e).getStoreKey()]||(r2[n.getStoreKey()]=n),rZ(e)},onUpdateOptions(e,t){rZ(e)},onUpdateProps(e,t){t.availableOptions&&rZ(e)},onUpdateValues(e,t,n){((e,t)=>{let n=e.queryActions(),{submit:r}=n;if(!r||!r4(0,t))return;let i=100,l=t.attributes.autoSubmitDelay;l&&""!==l&&(i=parseInt(l)),clearTimeout(r3),r3=setTimeout(()=>{r()},i)})(e,n),rX(e,n)},onClearValues(e,t){((e,t)=>{let n=e.queryActions(),{submit:r}=n;r&&r4(0,t)&&r()})(e,t),rX(e,t)},config(e,t){let n={...e};return(e=>{if(!e.defaultValues||!e.attributes.defaultValueType)return e;let t=e.attributes.defaultValueType;if(!t||"none"===t)return e;let n=e.defaultValues,r={...e},i=Number(e.attributes.queryId),l=searchAndFilter.frontend.queries.get(i);return l?window.location.href.includes(l.getActiveUrlArg())?e:(l.isActive()||(r.values=n),0===r.values.length&&(r.values=n),r):e})(n=((e,t)=>{let{attributes:n}=e,{showLabel:r,labelToggleVisibility:i=!1,labelInitialVisibility:l="visible"}=n;if("yes"!==r||"yes"!==i)return e;let o={...e},s=t.getProp("isFieldOpen"),a=void 0!==s?s:"visible"===l;return rk()&&(a=!0),o.extensions={labelProps:{fieldIsOpen:a,onClick(){let e=!t.getProp("isFieldOpen");t.setProp("isFieldOpen",e);let n={...t.getProp("extensions")};n.inputClassName=e?null:"search-filter-field__input--hidden",n.labelProps={...n.labelProps,fieldIsOpen:e},t.setProp("extensions",n)},isToggle:!0},inputClassName:a?null:"search-filter-field__input--hidden"},o.isFieldOpen=a,o})(n,t))},setProps(e,t){if(e.isBusy){let n=[...t.getProp("classList")];n.includes("search-filter-field--is-busy")||(n.push("search-filter-field--is-busy"),e.classList=n)}else if(!1===e.isBusy){let r=[...t.getProp("classList")];r.includes("search-filter-field--is-busy")&&(r.splice(r.indexOf("search-filter-field--is-busy"),1),e.classList=r)}return e}},queries:{onSubmit(e){clearTimeout(r3)},onReset(e){clearTimeout(r3)}}};rt("fields",ie.fields),rt("queries",ie.queries),r8("range","number",n6),r8("range","select",nQ),r8("range","slider",nG),r8("range","radio",nz),r8("control","load_more",n4),r8("control","selection",nY);let it={create:rS,getByUid:function(e){let t=[],n=rg.getState();for(let r in n)n[r].uid===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},get:function(e){let t=[],n=rg.getState();for(let r in n)n[r].id===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},getAll:function(e){let t=[],n=rg.getState();for(let r in n)e?n[r].id===e&&t.push(n[r]._instance):t.push(n[r]._instance);return t},enable:function(){let e=rg.getState();for(let t in e)e[t]._instance.enable()},disable:function(){let e=rg.getState();for(let t in e)e[t]._instance.disable()},unload:function(){let e=rg.getState(),t=[];for(let n in e)t.push(e[n].id),e[n]._instance.remove();return t},store:rg};h([],"fields",it);let ir={create:rz,getByStoreKey:function(e){let t=nk.getState();return t[e]?t[e]._instance:null},get:function(e){if("number"!=typeof e)return ta("Query ID is not a number","error"),null;let t=[],n=nk.getState();for(let r in n)n[r].id===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},getAll:function(){let e=[],t=nk.getState();for(let n in t)e.push(t[n]._instance);return e},enable:function(){let e=nk.getState();for(let t in e)e[t]._instance.enable()},disable:function(){let e=nk.getState();for(let t in e)e[t]._instance.disable()},unload:function(){let e=nk.getState(),t=[];for(let n in e)t.push(e[n].id),e[n]._instance.remove();return t},store:nk};h([],"queries",ir),h([],"mount",function(){let e=window?.searchAndFilterData?.queries,t=(e=>{let t=[];for(let[n,r]of Object.entries(e)){let i=r;if(void 0===i)return void(0,ni.log)("Query config not set.","error");let l=ir.get(i.id);l||(l=rz(i)),t.push(l)}return t})(e??{}),n=window?.searchAndFilterData?.fields,r=(e=>{let t=[];for(let[n,r]of Object.entries(e)){let i=r;if(void 0===i)return void(0,ni.log)("Field config not set.","error");let l=it.get(i.id);if(!l){let o=document.querySelector(`[data-search-filter-id="${i.id}"]`);l=rS(o,i)}t.push(l)}return t})(n);document.dispatchEvent(new CustomEvent("search-filter/mount",{detail:{queries:t,fields:r}}))}),h([],"unmount",function(){let e=it.unload(),t=ir.unload();document.dispatchEvent(new CustomEvent("search-filter/unmount",{detail:{fieldIds:e,queryIds:t}}))}),document.dispatchEvent(new CustomEvent("search-filter/interactive")),r6()||document.addEventListener("readystatechange",e=>{rY||(rY=r6())})}()}();
// source --> https://easipc.co.uk/wp-content/plugins/search-filter/assets-v1/frontend/components/combobox.js?ver=cc6927f5437c5824732d 
!function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,t=window.window.searchAndFilter.frontend.packages.core.hooks,l=window.searchAndFilter.frontend.packages.utils,n=window.searchAndFilter.frontend.packages.hooks,o=window.searchAndFilter.frontend.packages.components;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},s.apply(null,arguments)}const a=()=>{},i=()=>!0,c=()=>!1,r=({value:n,baseClass:o,label:s,index:a,listboxId:i,activeOptionIndex:c,onSelect:r,updateSelected:u,isActive:p=!1,depth:d=-1,focusInput:h,countLabel:b})=>{const f=(0,t.useRef)(null),g=c===a;return(0,e.h)(e.Fragment,null,(0,e.h)("li",{tabIndex:"-1","aria-selected":g,role:"option","data-option-value":n,className:(0,l.classNames)({[o+"__listbox-option"]:!0,[o+"__listbox-option--selected"]:g,[o+"__listbox-option--active"]:p,[o+"__listbox-option--depth-"+d]:-1!==d}),id:i+"-option--"+n,ref:f,onClick:()=>{r(a)},onMouseMove:()=>{a!==c&&u(a)},onMouseUp:e=>{h()}},s,b?(0,e.h)("span",{className:o+"__listbox-option-count"},b):null))};var u=({listboxRef:n,sourceRef:u,id:p,baseClass:d,className:h,options:b,onClickOutside:f=a,activeOptionIndex:g,onSelectOption:v,onOptionChange:m,shouldRenderOption:x=i,isOptionActive:C=c,focusInput:O,contentOverride:k,showCount:_,noResultsText:w="No results",...y})=>{let I=(0,t.useRef)(null);n&&(I=n);const[N,S]=(0,t.useState)(!0),F=e=>{S(!1),m(e)};(0,t.useEffect)((()=>{if(N){if(I.current){const e=(e=>{if(I.current){const t=I.current.querySelector(`li:nth-child(${e+1})`);if(t)return t}return null})(g);e&&((e,t)=>{parseFloat(t.offsetTop)-parseFloat(e.scrollTop)<0&&(e.scrollTop=t.offsetTop);const l=parseFloat(e.scrollTop)+parseFloat(e.clientHeight);parseFloat(t.offsetTop)+parseFloat(t.clientHeight)>l&&(e.scrollTop=parseFloat(t.offsetTop)-(parseFloat(e.clientHeight)-parseFloat(t.clientHeight)))})(I.current,e)}}else S(!0)}),[g,I]);const L={[d+"__listbox"]:d};h&&(L[h]=!0);const R=(0,t.useMemo)((()=>({role:"listbox"})),[]),E=[];return k||b.forEach(((t,l)=>{x(t)&&E.push((0,e.h)(r,{key:t.value,index:l,value:t.value,label:t.label,activeOptionIndex:g,depth:t.depth,listboxId:p,onSelect:v,updateSelected:F,baseClass:d,isActive:C(t),focusInput:O,countLabel:_?t.countLabel:null}))})),(0,e.h)(o.Popup,s({name:p,id:p,elementProps:R,htmlElement:"ul",className:(0,l.classNames)(L),sourceRef:u,containerRef:I,matchWidth:!0,onClickOutside:f},y),k||E,k||0!==b.length?null:(0,e.h)("li",{className:(0,l.classNames)(d+"__listbox-option",d+"__listbox-option--disabled")},w))};function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},p.apply(null,arguments)}const d=()=>{},h=({value:s="",icon:a,placeholder:i,showLabel:c,hasClear:r=!0,label:b,isInteractive:f=!0,options:g=[],onChange:v=d,onEnter:m=d,listboxProps:x={},InputComponent:C,clickAction:O="open",onSelectOption:k,shouldRenderOption:_,isOptionActive:w,onKeyDownCallback:y=d,onKeyUpCallback:I=d,onControlEscape:N=d,closeListboxOnScroll:S=!0,updateListboxOnScroll:F=!1,onLoseFocus:L=d,onShowListbox:R,listboxClassName:E,listboxContent:A,hideSuggestionsOnEmpty:P=!1,onClear:T=d,inputClassName:D,showCount:V=!1,inputProps:$,enableSearch:j=!0,noResultsText:M="No results",singularResultsCountText:K="%d result available",pluralResultsCountText:H="%d results available",disabled:U=!1,...B})=>{const q="search-filter-component-combobox-base",z=(0,t.useRef)(null),W=(0,t.useRef)(null),G=(0,t.useRef)(null),J=s,Q=v,X=(0,n.useInstanceId)(h),Y="search-filter-input-combobox-"+X,Z="search-filter-input-combobox-listbox-"+X,{isVisible:ee,toggle:te,position:le}=(0,o.usePopup)(Z),ne=(0,o.useFocusDispatch)(),[oe,se]=(0,t.useState)("text"),ae=(0,t.useMemo)((()=>Array.isArray(g)?g.map((e=>"string"==typeof e?{label:e,value:e}:e)):[]),[g]),[ie,ce]=(0,t.useState)(0),re=(0,t.useMemo)((()=>ae.filter((e=>(""!==e.value||""===s)&&!!e.label&&e.label.toLowerCase().includes(s.toLowerCase())))),[s,ae]);(0,t.useLayoutEffect)((()=>{pe()}),[re]);const ue=e=>!P||""!==e;(0,t.useLayoutEffect)((()=>{ue(J)||fe(!1)}),[J]);const pe=()=>{ce((e=>re.length>0?0:e))},de=()=>{ce((e=>re.length>0?re.length-1:e))},he=e=>{f&&!U&&(ve(!0),be(),ue(s)&&("open"===O?fe(!0):"toggle"===O&&fe()))},be=()=>{f&&!U&&ne({type:"SET",id:Y})},fe=e=>{if(!f||U)return;let t=e;void 0===e&&(t=!ee),te(t),t?R?R({setActiveOption:ce,setFirstOption:pe,filteredOptions:re}):pe():ce(-1)},[ge,ve]=(0,t.useState)(!1),me=(0,t.useCallback)((e=>{ve(!1),fe(!1)}),[]),xe=(0,t.useCallback)((e=>{const t=re[e];k?k(t):Q(t.label),fe(!1),be()}),[re,k]),Ce=(0,t.useCallback)((e=>{ce(e)}),[]),[Oe,ke]=(0,t.useState)(-1),_e=()=>{if(j&&z.current){const e=z.current,t=e.selectionStart;t===e.selectionEnd&&ke(t)}},we=e=>{j&&e.target?.activeElement&&e.target.activeElement.id===Y&&_e()};if((0,t.useEffect)((()=>(document.addEventListener("selectionchange",we),()=>{document.removeEventListener("selectionchange",we)})),[]),!C)return null;const ye=re.length;let Ie;return Ie=0===ye?M:(0,l.getNumericString)(K,H,ye),(0,e.h)(e.Fragment,null,(0,e.h)(C,p({id:Y,icon:a,inputRef:z,controlRef:W,label:b,showLabel:c,hasClear:r,onChange:e=>{Q(e),ue(e)&&(fe(!0),pe(),_e())},onClear:T,value:J,placeholder:i,readOnly:!f,onEnter:m,onClick:he,isInteractive:f,disabled:U,focusInput:be,onSelectOption:k,popupVisible:ee,inputClassName:D,inputProps:{maxlength:"2048",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false","aria-autocomplete":"list","aria-controls":Z,readOnly:!f,tabIndex:f?null:-1,onKeyDown:e=>{let t="text";const l=0===Oe,n=Oe===e.target?.value?.length;switch(e.keyCode){case 9:fe(!1),ve(!1);break;case 40:!ee&&ue(J)?fe(!0):ee&&ce((e=>e<re.length-1?e+1:e)),t="listbox",e.preventDefault();break;case 38:ee&&ce((e=>e>0?e-1:e)),t="listbox",e.preventDefault();break;case 13:if(ee&&g[ie])return void xe(ie);m(),e.preventDefault();break;case 32:break;case 36:if(!ee)break;0===ie?l&&(t="listbox"):("listbox"===oe||l)&&(t="listbox",(e=>{pe(),e.preventDefault()})(e));break;case 35:if(!ee)break;ie===re.length-1?n&&(t="listbox"):("listbox"===oe||n)&&(t="listbox",(e=>{de(),e.preventDefault()})(e));break;case 33:t="listbox",(e=>{const t=ie-5;t>=0?ce(t):pe(),e.preventDefault()})(e);break;case 34:t="listbox",(e=>{const t=ie+5;t<=re.length-1?ce(t):de(),e.preventDefault()})(e)}se(t),y(e.keyCode,l,n)},onKeyUp:e=>{switch(e.keyCode){case 27:(e=>{j&&(ee?fe(!1):N(e))})(e);break;case 46:case 8:_e()}I(e.keyCode)},onFocus:()=>{f&&!U&&ve(!0)},onBlur:e=>{f&&!U&&(e.relatedTarget&&G.current.contains(e.relatedTarget)||L(e))},...$},controlProps:{onClick:he,role:"combobox","aria-haspopup":"listbox","aria-expanded":ee,"aria-controls":Z,"aria-active-descendant":ee&&-1!==ie&&re.length>0?Z+"-option--"+re[ie].value:null,tabIndex:f?null:-1,className:(0,l.classNames)(q,{[`${q}--listbox-visible`]:ee,[`${q}--listbox-position-${le}`]:ee&&le?le:null,[`${q}--focused`]:ge,[`${q}--disabled`]:U})},showCount:V,options:g,enableSearch:!U&&j},B)),(0,e.h)("div",{"aria-live":"polite",role:"status",className:q+"__screen-reader-text"},Ie),f?(0,e.h)(u,p({className:E,listboxRef:G,baseClass:q,sourceRef:W,id:Z,options:re,activeOptionIndex:ie,onSelectOption:xe,onOptionChange:Ce,onClickOutside:me,shouldRenderOption:_,isOptionActive:w,closeOnScroll:S,updateOnScroll:F,focusInput:be,contentOverride:A,showCount:V,noResultsText:M},x)):null)};function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},b.apply(null,arguments)}const f=({inputId:n,inputRef:s,inputProps:a,baseClass:i,listboxId:c,labelId:r,showLabel:u,label:p,enableSearch:d,multiple:h,pageAmount:f,placeholder:g,interactive:v,selection:m,fieldValue:x,searchValue:C,setSearchValue:O,setFieldValue:k,escClears:_,onKeyDown:w,toggleOption:y,focusInput:I,showCount:N})=>{const{toggle:S,isVisible:F}=(0,o.usePopup)(c),[L,R]=(0,t.useState)(!1),[E,A]=(0,t.useState)(-1);let P={className:i+"__selection"};d||(P.role="combobox",P.tabindex="0",P["aria-expanded"]="false",P["aria-controls"]=c,P["aria-haspopup"]="listbox",P=(0,l.mergeObjects)(P,a),P["aria-live"]="polite");let T={};const D=e=>{v&&S(e)};if(d)if(T={type:"text",value:C,"aria-labelledby":"yes"===u?r:null,"aria-label":"yes"===u?null:p,id:n,className:i+"__actions-input",onInput:e=>{const t=e.target.value;O(t),D(!0)},tabIndex:v?null:-1,readOnly:!v,placeholder:0===m.length?g:"",...a},h){let e=C?.length>0?C.length:1;0===m.length&&g?.length&&g.length>e&&(e=g.length),T.style={width:`calc( ${e}ch + 6px )`}}else 0===m.length&&(T.placeholder=g);const V={onClick:e=>{D(!0),d&&"function"==typeof e.currentTarget.select&&e.currentTarget.select(),R(!1)},ref:s};d?T=(0,l.mergeObjects)(T,V):P=(0,l.mergeObjects)(P,V);const $=m.length>0;let j=$?m[0].label:"";const M=0===m.length?g:"";return d||h||0!==m.length||(P.className+=` ${i}__selection-placeholder`,j=g),(0,e.h)(e.Fragment,null,h&&(0,e.h)("div",P,m.map(((t,l)=>{let n="";return L&&l===m.length-1&&(n=" "+i+"__selection-item--active"),(0,e.h)("div",{key:l,className:i+"__selection-item"+n},(0,e.h)("div",{className:i+"__selection-label"},t.label,N&&(0,e.h)("span",{className:i+"__selection-count"},t.countLabel)),(0,e.h)(o.Icon,{icon:"clear",className:i+"__selection-remove",onClick:e=>{y(t),I(),e.stopPropagation(),e.preventDefault()}}))})),d&&(0,e.h)("input",b({},T,{placeholder:M})),!d&&0===m.length&&(0,e.h)("div",{className:i+"__selection-placeholder"},M)),!h&&(0,e.h)(e.Fragment,null,""===C&&(0,e.h)("div",P,j,N&&$?(0,e.h)("span",{className:i+"__selection-count"},m[0].countLabel):null),d&&(0,e.h)("input",T)))};f.templateVars=["selectionLabel","placeholderText",["multiple",{type:"control"}],["selection",{type:"list",child:{type:"object",props:["label"]}}]];var g=f,v=({baseClass:t,show:n,onClick:s=()=>{}})=>(0,e.h)("div",{className:(0,l.classNames)({[t+"__clear-selection"]:!0,[t+"--hidden"]:!n})},(0,e.h)(o.Icon,{icon:"clear",onClick:s,isInteractive:!0,isDestructive:!0,label:"Clear selection"}));function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},m.apply(null,arguments)}const x=s=>{const a="search-filter-component-combobox",{id:i,icon:c,inputRef:r,controlRef:u,label:p,showLabel:d,hasClear:h=!0,onChange:b,value:f,placeholder:C,labelProps:O,isInteractive:k,inputProps:_,controlProps:w,options:y,fieldValue:I,setFieldValue:N,onSelectOption:S,onClear:F,multiple:L,enableSearch:R=!0,scale:E=4,escClears:A,focusInput:P,description:T,showDescription:D,inputClassName:V,showCount:$}=s,j=`search-filter-listbox-${i}`,M=(0,n.useInstanceId)(x),K=i??"search-filter-input-combobox-"+M;(0,o.useFocusEvent)(r,K);const H="search-filter-label-"+(0,n.useInstanceId)(o.Label);let U={};R?U=w:(U.className=w.className,U.onClick=w.onClick);const B=[a+"__actions"];!1===L&&0===I.length&&B.push(a+"__actions--empty");const[q,z]=(0,t.useState)([]);(0,t.useEffect)((()=>{if(!y)return;const e=[];I.forEach((t=>{const l=y.findIndex((e=>e.value===t));-1!==l&&e.push(y[l])})),z(e)}),[y,I]);const W=q.length>0;return(0,e.h)(e.Fragment,null,(0,e.h)(o.Label,m({showLabel:d,label:p,id:H,forId:K,isInteractive:k},O)),(0,e.h)(o.Description,{description:T,showDescription:D}),(0,e.h)("div",m({},U,{"aria-labelledby":"yes"===d?H:null,"aria-label":"yes"===d?null:p,ref:u,className:(0,l.classNames)(w.className,a,V,`${a}--mode-${L?"multiple":"single"}`,`${a}--search-${R?"enabled":"disabled"}`,{[`${a}--has-icon`]:c})}),(0,e.h)("div",{className:a+"__header"},c&&(0,e.h)(o.Icon,{icon:c,className:a+"__icon"}),(0,e.h)("div",{className:(0,l.classNames)(B)},(0,e.h)(g,{baseClass:a,listboxId:j,inputId:K,labelId:H,showLabel:d,label:p,inputRef:r,inputProps:_,multiple:L,enableSearch:R,interactive:k,selection:q,fieldValue:I,searchValue:f,setFieldValue:N,setSearchValue:b,escClears:A,placeholder:C,toggleOption:S,focusInput:P,showCount:"yes"===$})),(0,e.h)(v,{baseClass:a,show:h&&W,onClick:e=>{"click"===e.type&&e.stopPropagation(),N([]),F?F():b(""),P()}}),(0,e.h)("div",{className:a+"__listbox-toggle"},(0,e.h)(o.Icon,{icon:"arrow-down"})))))};var C=window.searchAndFilter.frontend.packages.registry;(0,C.register)(["packages","components"],"ComboboxControl",(l=>{const n=l.value,o=l.onChange,[s,a]=(0,t.useState)(""),i=(0,t.useCallback)((e=>!(l.multiple&&(!l.multiple||l.hideSelectedOptions))&&n.includes(e.value)),[n]),c=(0,t.useCallback)((e=>!l.multiple||!l.hideSelectedOptions||!n.includes(e.value)),[n]);return(0,e.h)(h,m({InputComponent:x},l,{clickAction:"toggle",fieldValue:n,setFieldValue:o,value:s,onChange:a,onSelectOption:e=>{a(""),(e=>{l.enableSearch&&a("");let t=[...n];if(l.multiple){const l=n.findIndex((t=>t===e.value));-1!==l?(t.splice(l,1),o(t)):t.push(e.value)}else t=[e.value];o(t)})(e)},isOptionActive:i,shouldRenderOption:c,onLoseFocus:e=>{a("")},onControlEscape:l.escClears?()=>{s.length>0?a(""):!l.multiple&&n.length>0&&o([])}:void 0,onShowListbox:({setActiveOption:e,setFirstOption:t,filteredOptions:o})=>{if(l.multiple)return void t();if(0===n.length)return void t();const s=n[0],a=o.findIndex((e=>e.value===s));-1!==a?e(a):t()}}))})),(0,C.register)(["packages","components"],"ComboboxBase",h)}();
// source --> https://easipc.co.uk/wp-content/plugins/search-filter/assets-v1/frontend/components/checkbox.js?ver=93ec2e37e6adfeb3fc48 
!function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,t=window.window.searchAndFilter.frontend.packages.core.hooks,n=window.searchAndFilter.frontend.packages.hooks,o=window.searchAndFilter.frontend.packages.components,a=window.searchAndFilter.frontend.packages.utils;function s(){}function c(e,t=s){const n={},o={nodes:{}};return e&&(o.nodes=r(e,null,n,t)),{getNode:function(e){return n[e]},getRoot:function(){return o}}}function r(e,t,n,o,a){const s={};return e.forEach((e=>{const c=a??e.value,l=function(e,t,n,o,a=[]){return{value:e,object:t,parent:n,nodes:a,root:o}}(e.value,e,t,c,[]);e.options&&(l.nodes=r(e.options,l,n,o,c)),e=o(e),s[e.value]=l,n[e.value]=l})),s}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(null,arguments)}const u=["false","true"],i=["false","mixed","true"];function h(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n];if(!t[n])return!1;const a=t[n];return o.value===a.value&&(o.options&&a.options?h(o.options,a.options):!o.options&&!t.options)}return!0}function f(e,n,r){const l=(0,t.useRef)(new Set),f=(0,t.useRef)([]),[b,k]=(0,t.useState)({}),[g,m]=(0,t.useState)({});(0,t.useLayoutEffect)((()=>{let e=[];Object.keys(b).forEach((t=>{"true"===b[t]&&e.push(t)}))}),[b]);const y=function(e,n=s){return(0,t.useMemo)((()=>c(e,n)),[e])}(e,v("checkbox")),{getNode:w,getRoot:O}=y,x=O();function C(e){return Object.keys(e.nodes).length>0}function j(e,t,n){const o=e.nodes;let s={};const c=[];if(C(e)){c.push(e);const n=Object.keys(o);n.forEach((e=>{const n=o[e];s=(0,a.mergeObjects)(s,j(n,t))}));const l={true:0,false:0,mixed:0},u=n.length,i={};n.forEach((e=>{const t=o[e].value,n=s[t];l[n]++})),l.true===u?(s[e.value]="true",i[e.value]="true"):l.false===u?(s[e.value]="false",i[e.value]="false"):(s[e.value]="mixed",i[e.value]="mixed",r={[e.value]:s},m((e=>(0,a.mergeObjects)(e,r))))}else t.has(e.value)?s[e.value]="true":s[e.value]="false";var r;return s}function I(e,t,n="all"){let o=(0,a.cloneArray)(e);const s=t.nodes;return Object.keys(s).forEach((t=>{const a=s[t];C(a)?(o=o.concat(I(e,a,n)),o.push(a.value)):("all"===n||b[a.value]===n)&&o.push(a.value)})),o}return(0,t.useLayoutEffect)((()=>{h(f.current,e)||m({}),f.current=e,x.nodes&&Object.keys(x.nodes).forEach((e=>{const t=j(x.nodes[e],new Set(n));k((e=>(0,a.mergeObjects)(e,t)))}))}),[x]),(0,t.useLayoutEffect)((()=>{const e=new Set(n),t=[];!function(e,t,n){for(const o of e)t.has(o)||n(o);for(const o of t)e.has(o)||n(o)}(l.current,e,(e=>{const n=w(e);n&&!t.includes(n.root)&&t.push(n.root)})),l.current=e,t.forEach((t=>{const n=j(w(t),e);k((e=>(0,a.mergeObjects)(e,n)))}))}),[n]),[b,e=>{const t=g[e]??!1,s=w(e),c=C(s),l=c&&t?i:u,h=b[e]??"false",f=(0,o.checkableGetNextState)(l,h),v=(0,a.cloneArray)(n);if(c)"true"===f?(I([],s).forEach((e=>{p(v,e)})),p(v,e)):"false"===f?(I([],s).forEach((e=>{d(v,e)})),d(v,e)):"mixed"===f&&(Object.keys(g[e]).forEach((t=>{"true"===g[e][t]&&p(v,t)})),d(v,e)),r(v);else{if("true"===f){p(v,e);let t=s;for(;t;){let n=!0;Object.keys(t.nodes).forEach((t=>{t!==e&&"true"!==b[t]&&(n=!1)})),n&&p(v,t.value),t=t.parent}}else if("false"===f){d(v,e);let t=s;for(;t.parent;)t=t.parent,d(v,t.value)}else"mixed"===f&&d(v,e);r(v)}}]}function p(e,t){-1===e.indexOf(t)&&e.push(t)}function d(e,t){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}const v=e=>t=>(t.id=(0,n.generateInputId)(e,(0,n.getInstanceId)(g)),t),b=({type:n,options:s,value:c,onChange:r,showLabel:i,label:h,isInteractive:f,...v})=>{const[b,k]=function(e,n){const[s,c]=(0,t.useState)({});return(0,t.useLayoutEffect)((()=>{const t={},n=new Set(e);for(const e of n)n.has(e)&&(t[e]="true");c(t)}),[e]),[s,t=>{const c=u,r=s[t]??"false",l=(0,o.checkableGetNextState)(c,r),i=(0,a.cloneArray)(e);"true"===l?p(i,t):d(i,t),n(i)}]}(c,r);return(0,e.h)(o.CheckableSkeleton,l({},v,{type:"checkbox",options:s,value:c,onChange:r,checkableState:b,onUpdateOption:k,CheckableOptionComponent:g,showLabel:i,label:h,isInteractive:f}))},k=({options:t,value:n,onChange:a,showLabel:s,label:c,isInteractive:r,...u})=>{const[i,h]=f(t,n,a);return(0,e.h)(o.CheckableSkeleton,l({},u,{type:"checkbox",options:t,value:n,onChange:a,checkableState:i,onUpdateOption:h,CheckableOptionComponent:g,showLabel:s,label:c,isInteractive:r}))},g=({option:t,type:a,onUpdate:s,isInteractive:c=!0,checkedState:r="false",groupId:l,countLabel:u,showCount:i})=>{const{label:h,value:f,id:p}=t,d=t.options||[],v=(0,n.useInstanceId)(g),b=(0,n.generateInputId)(a,l,p??v),k="search-filter-input-"+a,m="true"===r||"mixed"===r,y=m?" "+k+"--is-active":"",w=d?.length>0;let O="";"true"===r?O="-checked":"mixed"===r&&(O="-mixed");const x=`#sf-svg-${a}${O}`;let C="";return d&&(C=d.map((e=>e.id)).join(",")),(0,e.h)("div",{className:k+y,"data-option-value":f},(0,e.h)("input",{id:b,type:a,readOnly:!c,tabIndex:c?null:-1,className:"search-filter-input-"+a+"__input",onChange:e=>{e.preventDefault(),s(f)},checked:m,name:b,"aria-checked":r,"aria-controls":""!==C?C:void 0,value:f}),(0,e.h)("label",{htmlFor:b,className:"search-filter-input-"+a+"__container",onClick:e=>{c||e.preventDefault()}},(0,e.h)("span",{className:"search-filter-input-"+a+"__control","aria-hidden":"true"},(0,e.h)("svg",null,(0,e.h)("use",{xlinkHref:x}))),(0,e.h)("span",{className:"search-filter-input-"+a+"__label"},h,u?(0,e.h)("span",{className:"search-filter-input-"+a+"__count"},u):null)),w&&(0,e.h)(o.CheckableOptions,{type:a,options:d,isInteractive:c,showCount:i}))};g.templateVars=["value","label","uid",["hasChildren",{type:"control"}],"checkedState","activeClass","svgLink",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]],(0,window.searchAndFilter.frontend.packages.registry.register)(["packages","components"],"CheckboxControl",(t=>"yes"===t.hierarchical?(0,e.h)(k,t):(0,e.h)(b,t)))}();
// source --> https://easipc.co.uk/wp-content/plugins/search-filter/assets-v1/frontend/components/date-picker.js?ver=4e11347078425c9be994 
/*! For license information please see date-picker.js.LICENSE.txt */
!function(){var e={0:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,o=t;i<o.length;i++)a(o[i]);return e})},110:function(e,t){var n;!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)a.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],a={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=i,r=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},l=function(e){return!0===e?1:0};function c(e,t){var n;return function(){var a=this,i=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(a,i)}),t)}}var s=function(e){return e instanceof Array?e:[e]};function d(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function f(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function m(e,t){return t(e)?e:e.parentNode?m(e.parentNode,t):void 0}function p(e,t){var n=u("div","numInputWrapper"),a=u("input","numInput "+e),i=u("span","arrowUp"),o=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}function g(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var h=function(){},v=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},D={D:h,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*l(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:h,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:h,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},b={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[w.w(e,t,n)]},F:function(e,t,n){return v(w.n(e,t,n)-1,!1,t)},G:function(e,t,n){return r(w.h(e,t,n))},H:function(e){return r(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[l(e.getHours()>11)]},M:function(e,t){return v(e.getMonth(),!0,t)},S:function(e){return r(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return r(e.getFullYear(),4)},d:function(e){return r(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return r(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return r(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},y=function(e){var t=e.config,n=void 0===t?a:t,o=e.l10n,r=void 0===o?i:o,l=e.isMobile,c=void 0!==l&&l;return function(e,t,a){var i=a||r;return void 0===n.formatDate||c?t.split("").map((function(t,a,o){return w[t]&&"\\"!==o[a-1]?w[t](e,i,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,i)}},C=function(e){var t=e.config,n=void 0===t?a:t,o=e.l10n,r=void 0===o?i:o;return function(e,t,i,o){if(0===e||e){var l,c=o||r,s=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var d=t||(n||a).dateFormat,u=String(e).trim();if("today"===u)l=new Date,i=!0;else if(n&&n.parseDate)l=n.parseDate(e,d);else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else{for(var f=void 0,m=[],p=0,g=0,h="";p<d.length;p++){var v=d[p],w="\\"===v,y="\\"===d[p-1]||w;if(b[v]&&!y){h+=b[v];var C=new RegExp(h).exec(e);C&&(f=!0)&&m["Y"!==v?"push":"unshift"]({fn:D[v],val:C[++g]})}else w||(h+=".")}l=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),m.forEach((function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l})),l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===i&&l.setHours(0,0,0,0),l;n.errorHandler(new Error("Invalid date provided: "+s))}}};function M(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var x=function(e,t,n){return 3600*e+60*t+n};function E(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var i=e.minDate.getHours(),o=e.minDate.getMinutes(),r=e.minDate.getSeconds();t<i&&(t=i),t===i&&n<o&&(n=o),t===i&&n===o&&a<r&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var l=e.maxDate.getHours(),c=e.maxDate.getMinutes();(t=Math.min(t,l))===l&&(n=Math.min(c,n)),t===l&&n===c&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:a}}n(0);var k=function(){return k=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k.apply(this,arguments)},T=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a};function I(e,n){var i={config:k(k({},a),_.defaultConfig),l10n:o};function h(){var e;return(null===(e=i.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function D(e){return e.bind(i)}function w(){var e=i.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==i.calendarContainer&&(i.calendarContainer.style.visibility="hidden",i.calendarContainer.style.display="block"),void 0!==i.daysContainer){var t=(i.days.offsetWidth+1)*e.showMonths;i.daysContainer.style.width=t+"px",i.calendarContainer.style.width=t+(void 0!==i.weekWrapper?i.weekWrapper.offsetWidth:0)+"px",i.calendarContainer.style.removeProperty("visibility"),i.calendarContainer.style.removeProperty("display")}}))}function I(e){if(0===i.selectedDates.length){var t=void 0===i.config.minDate||M(new Date,i.config.minDate)>=0?new Date:new Date(i.config.minDate.getTime()),n=E(i.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),i.selectedDates=[t],i.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=g(e),a=n;void 0!==i.amPM&&n===i.amPM&&(i.amPM.textContent=i.l10n.amPM[l(i.amPM.textContent===i.l10n.amPM[0])]);var o=parseFloat(a.getAttribute("min")),c=parseFloat(a.getAttribute("max")),s=parseFloat(a.getAttribute("step")),d=parseInt(a.value,10),u=d+s*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var f=a===i.hourElement,m=a===i.minuteElement;u<o?(u=c+u+l(!f)+(l(f)&&l(!i.amPM)),m&&H(void 0,-1,i.hourElement)):u>c&&(u=a===i.hourElement?u-c-l(!i.amPM):o,m&&H(void 0,1,i.hourElement)),i.amPM&&f&&(1===s?u+d===23:Math.abs(u-d)>s)&&(i.amPM.textContent=i.l10n.amPM[l(i.amPM.textContent===i.l10n.amPM[0])]),a.value=r(u)}}(e);var a=i._input.value;S(),Ce(),i._input.value!==a&&i._debouncedChange()}function S(){if(void 0!==i.hourElement&&void 0!==i.minuteElement){var e,t,n=(parseInt(i.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(i.minuteElement.value,10)||0)%60,o=void 0!==i.secondElement?(parseInt(i.secondElement.value,10)||0)%60:0;void 0!==i.amPM&&(e=n,t=i.amPM.textContent,n=e%12+12*l(t===i.l10n.amPM[1]));var r=void 0!==i.config.minTime||i.config.minDate&&i.minDateHasTime&&i.latestSelectedDateObj&&0===M(i.latestSelectedDateObj,i.config.minDate,!0),c=void 0!==i.config.maxTime||i.config.maxDate&&i.maxDateHasTime&&i.latestSelectedDateObj&&0===M(i.latestSelectedDateObj,i.config.maxDate,!0);if(void 0!==i.config.maxTime&&void 0!==i.config.minTime&&i.config.minTime>i.config.maxTime){var s=x(i.config.minTime.getHours(),i.config.minTime.getMinutes(),i.config.minTime.getSeconds()),d=x(i.config.maxTime.getHours(),i.config.maxTime.getMinutes(),i.config.maxTime.getSeconds()),u=x(n,a,o);if(u>d&&u<s){var f=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(s);n=f[0],a=f[1],o=f[2]}}else{if(c){var m=void 0!==i.config.maxTime?i.config.maxTime:i.config.maxDate;(n=Math.min(n,m.getHours()))===m.getHours()&&(a=Math.min(a,m.getMinutes())),a===m.getMinutes()&&(o=Math.min(o,m.getSeconds()))}if(r){var p=void 0!==i.config.minTime?i.config.minTime:i.config.minDate;(n=Math.max(n,p.getHours()))===p.getHours()&&a<p.getMinutes()&&(a=p.getMinutes()),a===p.getMinutes()&&(o=Math.max(o,p.getSeconds()))}}F(n,a,o)}}function O(e){var t=e||i.latestSelectedDateObj;t&&t instanceof Date&&F(t.getHours(),t.getMinutes(),t.getSeconds())}function F(e,t,n){void 0!==i.latestSelectedDateObj&&i.latestSelectedDateObj.setHours(e%24,t,n||0,0),i.hourElement&&i.minuteElement&&!i.isMobile&&(i.hourElement.value=r(i.config.time_24hr?e:(12+e)%12+12*l(e%12==0)),i.minuteElement.value=r(t),void 0!==i.amPM&&(i.amPM.textContent=i.l10n.amPM[l(e>=12)]),void 0!==i.secondElement&&(i.secondElement.value=r(n)))}function A(e){var t=g(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&X(n)}function N(e,t,n,a){return t instanceof Array?t.forEach((function(t){return N(e,t,n,a)})):e instanceof Array?e.forEach((function(e){return N(e,t,n,a)})):(e.addEventListener(t,n,a),void i._handlers.push({remove:function(){return e.removeEventListener(t,n,a)}}))}function P(){ve("onChange")}function Y(e,t){var n=void 0!==e?i.parseDate(e):i.latestSelectedDateObj||(i.config.minDate&&i.config.minDate>i.now?i.config.minDate:i.config.maxDate&&i.config.maxDate<i.now?i.config.maxDate:i.now),a=i.currentYear,o=i.currentMonth;try{void 0!==n&&(i.currentYear=n.getFullYear(),i.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,i.config.errorHandler(e)}t&&i.currentYear!==a&&(ve("onYearChange"),U()),!t||i.currentYear===a&&i.currentMonth===o||ve("onMonthChange"),i.redraw()}function j(e){var t=g(e);~t.className.indexOf("arrow")&&H(e,t.classList.contains("arrowUp")?1:-1)}function H(e,t,n){var a=e&&g(e),i=n||a&&a.parentNode&&a.parentNode.firstChild,o=De("increment");o.delta=t,i&&i.dispatchEvent(o)}function L(e,t,n,a){var o=ee(t,!0),r=u("span",e,t.getDate().toString());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",i.formatDate(t,i.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===M(t,i.now)&&(i.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,be(t)&&(r.classList.add("selected"),i.selectedDateElem=r,"range"===i.config.mode&&(d(r,"startRange",i.selectedDates[0]&&0===M(t,i.selectedDates[0],!0)),d(r,"endRange",i.selectedDates[1]&&0===M(t,i.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("flatpickr-disabled"),"range"===i.config.mode&&function(e){return!("range"!==i.config.mode||i.selectedDates.length<2)&&M(e,i.selectedDates[0])>=0&&M(e,i.selectedDates[1])<=0}(t)&&!be(t)&&r.classList.add("inRange"),i.weekNumbers&&1===i.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&i.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+i.config.getWeek(t)+"</span>"),ve("onDayCreate",r),r}function R(e){e.focus(),"range"===i.config.mode&&ie(e)}function W(e){for(var t=e>0?0:i.config.showMonths-1,n=e>0?i.config.showMonths:-1,a=t;a!=n;a+=e)for(var o=i.daysContainer.children[a],r=e>0?0:o.children.length-1,l=e>0?o.children.length:-1,c=r;c!=l;c+=e){var s=o.children[c];if(-1===s.className.indexOf("hidden")&&ee(s.dateObj))return s}}function B(e,t){var n=h(),a=te(n||document.body),o=void 0!==e?e:a?n:void 0!==i.selectedDateElem&&te(i.selectedDateElem)?i.selectedDateElem:void 0!==i.todayDateElem&&te(i.todayDateElem)?i.todayDateElem:W(t>0?1:-1);void 0===o?i._input.focus():a?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():i.currentMonth,a=t>0?i.config.showMonths:-1,o=t>0?1:-1,r=n-i.currentMonth;r!=a;r+=o)for(var l=i.daysContainer.children[r],c=n-i.currentMonth===r?e.$i+t:t<0?l.children.length-1:0,s=l.children.length,d=c;d>=0&&d<s&&d!=(t>0?s:-1);d+=o){var u=l.children[d];if(-1===u.className.indexOf("hidden")&&ee(u.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return R(u)}i.changeMonth(o),B(W(o),0)}(o,t):R(o)}function J(e,t){for(var n=(new Date(e,t,1).getDay()-i.l10n.firstDayOfWeek+7)%7,a=i.utils.getDaysInMonth((t-1+12)%12,e),o=i.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),l=i.config.showMonths>1,c=l?"prevMonthDay hidden":"prevMonthDay",s=l?"nextMonthDay hidden":"nextMonthDay",d=a+1-n,f=0;d<=a;d++,f++)r.appendChild(L("flatpickr-day "+c,new Date(e,t-1,d),0,f));for(d=1;d<=o;d++,f++)r.appendChild(L("flatpickr-day",new Date(e,t,d),0,f));for(var m=o+1;m<=42-n&&(1===i.config.showMonths||f%7!=0);m++,f++)r.appendChild(L("flatpickr-day "+s,new Date(e,t+1,m%o),0,f));var p=u("div","dayContainer");return p.appendChild(r),p}function K(){if(void 0!==i.daysContainer){f(i.daysContainer),i.weekNumbers&&f(i.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<i.config.showMonths;t++){var n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+t),e.appendChild(J(n.getFullYear(),n.getMonth()))}i.daysContainer.appendChild(e),i.days=i.daysContainer.firstChild,"range"===i.config.mode&&1===i.selectedDates.length&&ie()}}function U(){if(!(i.config.showMonths>1||"dropdown"!==i.config.monthSelectorType)){var e=function(e){return!(void 0!==i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&e<i.config.minDate.getMonth()||void 0!==i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()&&e>i.config.maxDate.getMonth())};i.monthsDropdownContainer.tabIndex=-1,i.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(i.currentYear,t).getMonth().toString(),n.textContent=v(t,i.config.shorthandCurrentMonth,i.l10n),n.tabIndex=-1,i.currentMonth===t&&(n.selected=!0),i.monthsDropdownContainer.appendChild(n)}}}function q(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();i.config.showMonths>1||"static"===i.config.monthSelectorType?e=u("span","cur-month"):(i.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),i.monthsDropdownContainer.setAttribute("aria-label",i.l10n.monthAriaLabel),N(i.monthsDropdownContainer,"change",(function(e){var t=g(e),n=parseInt(t.value,10);i.changeMonth(n-i.currentMonth),ve("onMonthChange")})),U(),e=i.monthsDropdownContainer);var a=p("cur-year",{tabindex:"-1"}),o=a.getElementsByTagName("input")[0];o.setAttribute("aria-label",i.l10n.yearAriaLabel),i.config.minDate&&o.setAttribute("min",i.config.minDate.getFullYear().toString()),i.config.maxDate&&(o.setAttribute("max",i.config.maxDate.getFullYear().toString()),o.disabled=!!i.config.minDate&&i.config.minDate.getFullYear()===i.config.maxDate.getFullYear());var r=u("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(a),n.appendChild(r),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function $(){f(i.monthNav),i.monthNav.appendChild(i.prevMonthNav),i.config.showMonths&&(i.yearElements=[],i.monthElements=[]);for(var e=i.config.showMonths;e--;){var t=q();i.yearElements.push(t.yearElement),i.monthElements.push(t.monthElement),i.monthNav.appendChild(t.container)}i.monthNav.appendChild(i.nextMonthNav)}function V(){i.weekdayContainer?f(i.weekdayContainer):i.weekdayContainer=u("div","flatpickr-weekdays");for(var e=i.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");i.weekdayContainer.appendChild(t)}return z(),i.weekdayContainer}function z(){if(i.weekdayContainer){var e=i.l10n.firstDayOfWeek,t=T(i.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=T(t.splice(e,t.length),t.splice(0,e)));for(var n=i.config.showMonths;n--;)i.weekdayContainer.children[n].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function G(e,t){void 0===t&&(t=!0);var n=t?e:e-i.currentMonth;n<0&&!0===i._hidePrevMonthArrow||n>0&&!0===i._hideNextMonthArrow||(i.currentMonth+=n,(i.currentMonth<0||i.currentMonth>11)&&(i.currentYear+=i.currentMonth>11?1:-1,i.currentMonth=(i.currentMonth+12)%12,ve("onYearChange"),U()),K(),ve("onMonthChange"),we())}function Z(e){return i.calendarContainer.contains(e)}function Q(e){if(i.isOpen&&!i.config.inline){var t=g(e),n=Z(t),a=!(t===i.input||t===i.altInput||i.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(i.input)||~e.path.indexOf(i.altInput))||n||Z(e.relatedTarget)),o=!i.config.ignoredFocusElements.some((function(e){return e.contains(t)}));a&&o&&(i.config.allowInput&&i.setDate(i._input.value,!1,i.config.altInput?i.config.altFormat:i.config.dateFormat),void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement&&""!==i.input.value&&void 0!==i.input.value&&I(),i.close(),i.config&&"range"===i.config.mode&&1===i.selectedDates.length&&i.clear(!1))}}function X(e){if(!(!e||i.config.minDate&&e<i.config.minDate.getFullYear()||i.config.maxDate&&e>i.config.maxDate.getFullYear())){var t=e,n=i.currentYear!==t;i.currentYear=t||i.currentYear,i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth=Math.min(i.config.maxDate.getMonth(),i.currentMonth):i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&(i.currentMonth=Math.max(i.config.minDate.getMonth(),i.currentMonth)),n&&(i.redraw(),ve("onYearChange"),U())}}function ee(e,t){var n;void 0===t&&(t=!0);var a=i.parseDate(e,void 0,t);if(i.config.minDate&&a&&M(a,i.config.minDate,void 0!==t?t:!i.minDateHasTime)<0||i.config.maxDate&&a&&M(a,i.config.maxDate,void 0!==t?t:!i.maxDateHasTime)>0)return!1;if(!i.config.enable&&0===i.config.disable.length)return!0;if(void 0===a)return!1;for(var o=!!i.config.enable,r=null!==(n=i.config.enable)&&void 0!==n?n:i.config.disable,l=0,c=void 0;l<r.length;l++){if("function"==typeof(c=r[l])&&c(a))return o;if(c instanceof Date&&void 0!==a&&c.getTime()===a.getTime())return o;if("string"==typeof c){var s=i.parseDate(c,void 0,!0);return s&&s.getTime()===a.getTime()?o:!o}if("object"==typeof c&&void 0!==a&&c.from&&c.to&&a.getTime()>=c.from.getTime()&&a.getTime()<=c.to.getTime())return o}return!o}function te(e){return void 0!==i.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&i.daysContainer.contains(e)}function ne(e){var t=e.target===i._input,n=i._input.value.trimEnd()!==ye();!t||!n||e.relatedTarget&&Z(e.relatedTarget)||i.setDate(i._input.value,!0,e.target===i.altInput?i.config.altFormat:i.config.dateFormat)}function ae(t){var n=g(t),a=i.config.wrap?e.contains(n):n===i._input,o=i.config.allowInput,r=i.isOpen&&(!o||!a),l=i.config.inline&&a&&!o;if(13===t.keyCode&&a){if(o)return i.setDate(i._input.value,!0,n===i.altInput?i.config.altFormat:i.config.dateFormat),i.close(),n.blur();i.open()}else if(Z(n)||r||l){var c=!!i.timeContainer&&i.timeContainer.contains(n);switch(t.keyCode){case 13:c?(t.preventDefault(),I(),ue()):fe(t);break;case 27:t.preventDefault(),ue();break;case 8:case 46:a&&!i.config.allowInput&&(t.preventDefault(),i.clear());break;case 37:case 39:if(c||a)i.hourElement&&i.hourElement.focus();else{t.preventDefault();var s=h();if(void 0!==i.daysContainer&&(!1===o||s&&te(s))){var d=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),G(d),B(W(1),0)):B(void 0,d)}}break;case 38:case 40:t.preventDefault();var u=40===t.keyCode?1:-1;i.daysContainer&&void 0!==n.$i||n===i.input||n===i.altInput?t.ctrlKey?(t.stopPropagation(),X(i.currentYear-u),B(W(1),0)):c||B(void 0,7*u):n===i.currentYearElement?X(i.currentYear-u):i.config.enableTime&&(!c&&i.hourElement&&i.hourElement.focus(),I(t),i._debouncedChange());break;case 9:if(c){var f=[i.hourElement,i.minuteElement,i.secondElement,i.amPM].concat(i.pluginElements).filter((function(e){return e})),m=f.indexOf(n);if(-1!==m){var p=f[m+(t.shiftKey?-1:1)];t.preventDefault(),(p||i._input).focus()}}else!i.config.noCalendar&&i.daysContainer&&i.daysContainer.contains(n)&&t.shiftKey&&(t.preventDefault(),i._input.focus())}}if(void 0!==i.amPM&&n===i.amPM)switch(t.key){case i.l10n.amPM[0].charAt(0):case i.l10n.amPM[0].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[0],S(),Ce();break;case i.l10n.amPM[1].charAt(0):case i.l10n.amPM[1].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[1],S(),Ce()}(a||Z(n))&&ve("onKeyDown",t)}function ie(e,t){if(void 0===t&&(t="flatpickr-day"),1===i.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():i.days.firstElementChild.dateObj.getTime(),a=i.parseDate(i.selectedDates[0],void 0,!0).getTime(),o=Math.min(n,i.selectedDates[0].getTime()),r=Math.max(n,i.selectedDates[0].getTime()),l=!1,c=0,s=0,d=o;d<r;d+=864e5)ee(new Date(d),!0)||(l=l||d>o&&d<r,d<a&&(!c||d>c)?c=d:d>a&&(!s||d<s)&&(s=d));Array.from(i.rContainer.querySelectorAll("*:nth-child(-n+"+i.config.showMonths+") > ."+t)).forEach((function(t){var o,r,d,u=t.dateObj.getTime(),f=c>0&&u<c||s>0&&u>s;if(f)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));l&&!f||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=i.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&u===a?t.classList.add("startRange"):a>n&&u===a&&t.classList.add("endRange"),u>=c&&(0===s||u<=s)&&(r=a,d=n,(o=u)>Math.min(r,d)&&o<Math.max(r,d))&&t.classList.add("inRange")))}))}}function oe(){!i.isOpen||i.config.static||i.config.inline||se()}function re(e){return function(t){var n=i.config["_"+e+"Date"]=i.parseDate(t,i.config.dateFormat),a=i.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(i["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),i.selectedDates&&(i.selectedDates=i.selectedDates.filter((function(e){return ee(e)})),i.selectedDates.length||"min"!==e||O(n),Ce()),i.daysContainer&&(de(),void 0!==n?i.currentYearElement[e]=n.getFullYear().toString():i.currentYearElement.removeAttribute(e),i.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function le(){return i.config.wrap?e.querySelector("[data-input]"):e}function ce(){"object"!=typeof i.config.locale&&void 0===_.l10ns[i.config.locale]&&i.config.errorHandler(new Error("flatpickr: invalid locale "+i.config.locale)),i.l10n=k(k({},_.l10ns.default),"object"==typeof i.config.locale?i.config.locale:"default"!==i.config.locale?_.l10ns[i.config.locale]:void 0),b.D="("+i.l10n.weekdays.shorthand.join("|")+")",b.l="("+i.l10n.weekdays.longhand.join("|")+")",b.M="("+i.l10n.months.shorthand.join("|")+")",b.F="("+i.l10n.months.longhand.join("|")+")",b.K="("+i.l10n.amPM[0]+"|"+i.l10n.amPM[1]+"|"+i.l10n.amPM[0].toLowerCase()+"|"+i.l10n.amPM[1].toLowerCase()+")",void 0===k(k({},n),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===_.defaultConfig.time_24hr&&(i.config.time_24hr=i.l10n.time_24hr),i.formatDate=y(i),i.parseDate=C({config:i.config,l10n:i.l10n})}function se(e){if("function"!=typeof i.config.position){if(void 0!==i.calendarContainer){ve("onPreCalendarPosition");var t=e||i._positionElement,n=Array.prototype.reduce.call(i.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),a=i.calendarContainer.offsetWidth,o=i.config.position.split(" "),r=o[0],l=o.length>1?o[1]:null,c=t.getBoundingClientRect(),s=window.innerHeight-c.bottom,u="above"===r||"below"!==r&&s<n&&c.top>n,f=window.pageYOffset+c.top+(u?-n-2:t.offsetHeight+2);if(d(i.calendarContainer,"arrowTop",!u),d(i.calendarContainer,"arrowBottom",u),!i.config.inline){var m=window.pageXOffset+c.left,p=!1,g=!1;"center"===l?(m-=(a-c.width)/2,p=!0):"right"===l&&(m-=a-c.width,g=!0),d(i.calendarContainer,"arrowLeft",!p&&!g),d(i.calendarContainer,"arrowCenter",p),d(i.calendarContainer,"arrowRight",g);var h=window.document.body.offsetWidth-(window.pageXOffset+c.right),v=m+a>window.document.body.offsetWidth,D=h+a>window.document.body.offsetWidth;if(d(i.calendarContainer,"rightMost",v),!i.config.static)if(i.calendarContainer.style.top=f+"px",v)if(D){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(a=document.createElement("style"),document.head.appendChild(a),a.sheet);var a}();if(void 0===b)return;var w=window.document.body.offsetWidth,y=Math.max(0,w/2-a/2),C=b.cssRules.length,M="{left:"+c.left+"px;right:auto;}";d(i.calendarContainer,"rightMost",!1),d(i.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+M,C),i.calendarContainer.style.left=y+"px",i.calendarContainer.style.right="auto"}else i.calendarContainer.style.left="auto",i.calendarContainer.style.right=h+"px";else i.calendarContainer.style.left=m+"px",i.calendarContainer.style.right="auto"}}}else i.config.position(i,e)}function de(){i.config.noCalendar||i.isMobile||(U(),we(),K())}function ue(){i._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(i.close,0):i.close()}function fe(e){e.preventDefault(),e.stopPropagation();var t=m(g(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,a=i.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(a.getMonth()<i.currentMonth||a.getMonth()>i.currentMonth+i.config.showMonths-1)&&"range"!==i.config.mode;if(i.selectedDateElem=n,"single"===i.config.mode)i.selectedDates=[a];else if("multiple"===i.config.mode){var r=be(a);r?i.selectedDates.splice(parseInt(r),1):i.selectedDates.push(a)}else"range"===i.config.mode&&(2===i.selectedDates.length&&i.clear(!1,!1),i.latestSelectedDateObj=a,i.selectedDates.push(a),0!==M(a,i.selectedDates[0],!0)&&i.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(S(),o){var l=i.currentYear!==a.getFullYear();i.currentYear=a.getFullYear(),i.currentMonth=a.getMonth(),l&&(ve("onYearChange"),U()),ve("onMonthChange")}if(we(),K(),Ce(),o||"range"===i.config.mode||1!==i.config.showMonths?void 0!==i.selectedDateElem&&void 0===i.hourElement&&i.selectedDateElem&&i.selectedDateElem.focus():R(n),void 0!==i.hourElement&&void 0!==i.hourElement&&i.hourElement.focus(),i.config.closeOnSelect){var c="single"===i.config.mode&&!i.config.enableTime,s="range"===i.config.mode&&2===i.selectedDates.length&&!i.config.enableTime;(c||s)&&ue()}P()}}i.parseDate=C({config:i.config,l10n:i.l10n}),i._handlers=[],i.pluginElements=[],i.loadedPlugins=[],i._bind=N,i._setHoursFromDate=O,i._positionCalendar=se,i.changeMonth=G,i.changeYear=X,i.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),i.input.value="",void 0!==i.altInput&&(i.altInput.value=""),void 0!==i.mobileInput&&(i.mobileInput.value=""),i.selectedDates=[],i.latestSelectedDateObj=void 0,!0===t&&(i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth()),!0===i.config.enableTime){var n=E(i.config);F(n.hours,n.minutes,n.seconds)}i.redraw(),e&&ve("onChange")},i.close=function(){i.isOpen=!1,i.isMobile||(void 0!==i.calendarContainer&&i.calendarContainer.classList.remove("open"),void 0!==i._input&&i._input.classList.remove("active")),ve("onClose")},i.onMouseOver=ie,i._createElement=u,i.createDay=L,i.destroy=function(){void 0!==i.config&&ve("onDestroy");for(var e=i._handlers.length;e--;)i._handlers[e].remove();if(i._handlers=[],i.mobileInput)i.mobileInput.parentNode&&i.mobileInput.parentNode.removeChild(i.mobileInput),i.mobileInput=void 0;else if(i.calendarContainer&&i.calendarContainer.parentNode)if(i.config.static&&i.calendarContainer.parentNode){var t=i.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else i.calendarContainer.parentNode.removeChild(i.calendarContainer);i.altInput&&(i.input.type="text",i.altInput.parentNode&&i.altInput.parentNode.removeChild(i.altInput),delete i.altInput),i.input&&(i.input.type=i.input._type,i.input.classList.remove("flatpickr-input"),i.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete i[e]}catch(e){}}))},i.isEnabled=ee,i.jumpToDate=Y,i.updateValue=Ce,i.open=function(e,t){if(void 0===t&&(t=i._positionElement),!0===i.isMobile){if(e){e.preventDefault();var n=g(e);n&&n.blur()}return void 0!==i.mobileInput&&(i.mobileInput.focus(),i.mobileInput.click()),void ve("onOpen")}if(!i._input.disabled&&!i.config.inline){var a=i.isOpen;i.isOpen=!0,a||(i.calendarContainer.classList.add("open"),i._input.classList.add("active"),ve("onOpen"),se(t)),!0===i.config.enableTime&&!0===i.config.noCalendar&&(!1!==i.config.allowInput||void 0!==e&&i.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return i.hourElement.select()}),50))}},i.redraw=de,i.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(i.config,e),e)void 0!==me[a]&&me[a].forEach((function(e){return e()}));else i.config[e]=n,void 0!==me[e]?me[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(i.config[e]=s(n));i.redraw(),Ce(!0)},i.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=i.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return i.clear(t);pe(e,n),i.latestSelectedDateObj=i.selectedDates[i.selectedDates.length-1],i.redraw(),Y(void 0,t),O(),0===i.selectedDates.length&&i.clear(!1),Ce(t),t&&ve("onChange")},i.toggle=function(e){if(!0===i.isOpen)return i.close();i.open(e)};var me={locale:[ce,z],showMonths:[$,w,V],minDate:[Y],maxDate:[Y],positionElement:[he],clickOpens:[function(){!0===i.config.clickOpens?(N(i._input,"focus",i.open),N(i._input,"click",i.open)):(i._input.removeEventListener("focus",i.open),i._input.removeEventListener("click",i.open))}]};function pe(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return i.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[i.parseDate(e,t)];else if("string"==typeof e)switch(i.config.mode){case"single":case"time":n=[i.parseDate(e,t)];break;case"multiple":n=e.split(i.config.conjunction).map((function(e){return i.parseDate(e,t)}));break;case"range":n=e.split(i.l10n.rangeSeparator).map((function(e){return i.parseDate(e,t)}))}else i.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));i.selectedDates=i.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===i.config.mode&&i.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ge(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?i.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:i.parseDate(e.from,void 0),to:i.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function he(){i._positionElement=i.config.positionElement||i._input}function ve(e,t){if(void 0!==i.config){var n=i.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](i.selectedDates,i.input.value,i,t);"onChange"===e&&(i.input.dispatchEvent(De("change")),i.input.dispatchEvent(De("input")))}}function De(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function be(e){for(var t=0;t<i.selectedDates.length;t++){var n=i.selectedDates[t];if(n instanceof Date&&0===M(n,e))return""+t}return!1}function we(){i.config.noCalendar||i.isMobile||!i.monthNav||(i.yearElements.forEach((function(e,t){var n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+t),i.config.showMonths>1||"static"===i.config.monthSelectorType?i.monthElements[t].textContent=v(n.getMonth(),i.config.shorthandCurrentMonth,i.l10n)+" ":i.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),i._hidePrevMonthArrow=void 0!==i.config.minDate&&(i.currentYear===i.config.minDate.getFullYear()?i.currentMonth<=i.config.minDate.getMonth():i.currentYear<i.config.minDate.getFullYear()),i._hideNextMonthArrow=void 0!==i.config.maxDate&&(i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth+1>i.config.maxDate.getMonth():i.currentYear>i.config.maxDate.getFullYear()))}function ye(e){var t=e||(i.config.altInput?i.config.altFormat:i.config.dateFormat);return i.selectedDates.map((function(e){return i.formatDate(e,t)})).filter((function(e,t,n){return"range"!==i.config.mode||i.config.enableTime||n.indexOf(e)===t})).join("range"!==i.config.mode?i.config.conjunction:i.l10n.rangeSeparator)}function Ce(e){void 0===e&&(e=!0),void 0!==i.mobileInput&&i.mobileFormatStr&&(i.mobileInput.value=void 0!==i.latestSelectedDateObj?i.formatDate(i.latestSelectedDateObj,i.mobileFormatStr):""),i.input.value=ye(i.config.dateFormat),void 0!==i.altInput&&(i.altInput.value=ye(i.config.altFormat)),!1!==e&&ve("onValueUpdate")}function Me(e){var t=g(e),n=i.prevMonthNav.contains(t),a=i.nextMonthNav.contains(t);n||a?G(n?-1:1):i.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?i.changeYear(i.currentYear+1):t.classList.contains("arrowDown")&&i.changeYear(i.currentYear-1)}return function(){i.element=i.input=e,i.isOpen=!1,function(){var o=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=k(k({},JSON.parse(JSON.stringify(e.dataset||{}))),n),l={};i.config.parseDate=r.parseDate,i.config.formatDate=r.formatDate,Object.defineProperty(i.config,"enable",{get:function(){return i.config._enable},set:function(e){i.config._enable=ge(e)}}),Object.defineProperty(i.config,"disable",{get:function(){return i.config._disable},set:function(e){i.config._disable=ge(e)}});var c="time"===r.mode;if(!r.dateFormat&&(r.enableTime||c)){var d=_.defaultConfig.dateFormat||a.dateFormat;l.dateFormat=r.noCalendar||c?"H:i"+(r.enableSeconds?":S":""):d+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||c)&&!r.altFormat){var u=_.defaultConfig.altFormat||a.altFormat;l.altFormat=r.noCalendar||c?"h:i"+(r.enableSeconds?":S K":" K"):u+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(i.config,"minDate",{get:function(){return i.config._minDate},set:re("min")}),Object.defineProperty(i.config,"maxDate",{get:function(){return i.config._maxDate},set:re("max")});var f=function(e){return function(t){i.config["min"===e?"_minTime":"_maxTime"]=i.parseDate(t,"H:i:S")}};Object.defineProperty(i.config,"minTime",{get:function(){return i.config._minTime},set:f("min")}),Object.defineProperty(i.config,"maxTime",{get:function(){return i.config._maxTime},set:f("max")}),"time"===r.mode&&(i.config.noCalendar=!0,i.config.enableTime=!0),Object.assign(i.config,l,r);for(var m=0;m<o.length;m++)i.config[o[m]]=!0===i.config[o[m]]||"true"===i.config[o[m]];for(t.filter((function(e){return void 0!==i.config[e]})).forEach((function(e){i.config[e]=s(i.config[e]||[]).map(D)})),i.isMobile=!i.config.disableMobile&&!i.config.inline&&"single"===i.config.mode&&!i.config.disable.length&&!i.config.enable&&!i.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),m=0;m<i.config.plugins.length;m++){var p=i.config.plugins[m](i)||{};for(var g in p)t.indexOf(g)>-1?i.config[g]=s(p[g]).map(D).concat(i.config[g]):void 0===r[g]&&(i.config[g]=p[g])}r.altInputClass||(i.config.altInputClass=le().className+" "+i.config.altInputClass),ve("onParseConfig")}(),ce(),i.input=le(),i.input?(i.input._type=i.input.type,i.input.type="text",i.input.classList.add("flatpickr-input"),i._input=i.input,i.config.altInput&&(i.altInput=u(i.input.nodeName,i.config.altInputClass),i._input=i.altInput,i.altInput.placeholder=i.input.placeholder,i.altInput.disabled=i.input.disabled,i.altInput.required=i.input.required,i.altInput.tabIndex=i.input.tabIndex,i.altInput.type="text",i.input.setAttribute("type","hidden"),!i.config.static&&i.input.parentNode&&i.input.parentNode.insertBefore(i.altInput,i.input.nextSibling)),i.config.allowInput||i._input.setAttribute("readonly","readonly"),he()):i.config.errorHandler(new Error("Invalid input element specified")),function(){i.selectedDates=[],i.now=i.parseDate(i.config.now)||new Date;var e=i.config.defaultDate||("INPUT"!==i.input.nodeName&&"TEXTAREA"!==i.input.nodeName||!i.input.placeholder||i.input.value!==i.input.placeholder?i.input.value:null);e&&pe(e,i.config.dateFormat),i._initialDate=i.selectedDates.length>0?i.selectedDates[0]:i.config.minDate&&i.config.minDate.getTime()>i.now.getTime()?i.config.minDate:i.config.maxDate&&i.config.maxDate.getTime()<i.now.getTime()?i.config.maxDate:i.now,i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth(),i.selectedDates.length>0&&(i.latestSelectedDateObj=i.selectedDates[0]),void 0!==i.config.minTime&&(i.config.minTime=i.parseDate(i.config.minTime,"H:i")),void 0!==i.config.maxTime&&(i.config.maxTime=i.parseDate(i.config.maxTime,"H:i")),i.minDateHasTime=!!i.config.minDate&&(i.config.minDate.getHours()>0||i.config.minDate.getMinutes()>0||i.config.minDate.getSeconds()>0),i.maxDateHasTime=!!i.config.maxDate&&(i.config.maxDate.getHours()>0||i.config.maxDate.getMinutes()>0||i.config.maxDate.getSeconds()>0)}(),i.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=i.currentMonth),void 0===t&&(t=i.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:i.l10n.daysInMonth[e]}},i.isMobile||function(){var e=window.document.createDocumentFragment();if(i.calendarContainer=u("div","flatpickr-calendar"),i.calendarContainer.tabIndex=-1,!i.config.noCalendar){if(e.appendChild((i.monthNav=u("div","flatpickr-months"),i.yearElements=[],i.monthElements=[],i.prevMonthNav=u("span","flatpickr-prev-month"),i.prevMonthNav.innerHTML=i.config.prevArrow,i.nextMonthNav=u("span","flatpickr-next-month"),i.nextMonthNav.innerHTML=i.config.nextArrow,$(),Object.defineProperty(i,"_hidePrevMonthArrow",{get:function(){return i.__hidePrevMonthArrow},set:function(e){i.__hidePrevMonthArrow!==e&&(d(i.prevMonthNav,"flatpickr-disabled",e),i.__hidePrevMonthArrow=e)}}),Object.defineProperty(i,"_hideNextMonthArrow",{get:function(){return i.__hideNextMonthArrow},set:function(e){i.__hideNextMonthArrow!==e&&(d(i.nextMonthNav,"flatpickr-disabled",e),i.__hideNextMonthArrow=e)}}),i.currentYearElement=i.yearElements[0],we(),i.monthNav)),i.innerContainer=u("div","flatpickr-innerContainer"),i.config.weekNumbers){var t=function(){i.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",i.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;i.innerContainer.appendChild(n),i.weekNumbers=a,i.weekWrapper=n}i.rContainer=u("div","flatpickr-rContainer"),i.rContainer.appendChild(V()),i.daysContainer||(i.daysContainer=u("div","flatpickr-days"),i.daysContainer.tabIndex=-1),K(),i.rContainer.appendChild(i.daysContainer),i.innerContainer.appendChild(i.rContainer),e.appendChild(i.innerContainer)}i.config.enableTime&&e.appendChild(function(){i.calendarContainer.classList.add("hasTime"),i.config.noCalendar&&i.calendarContainer.classList.add("noCalendar");var e=E(i.config);i.timeContainer=u("div","flatpickr-time"),i.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=p("flatpickr-hour",{"aria-label":i.l10n.hourAriaLabel});i.hourElement=n.getElementsByTagName("input")[0];var a=p("flatpickr-minute",{"aria-label":i.l10n.minuteAriaLabel});if(i.minuteElement=a.getElementsByTagName("input")[0],i.hourElement.tabIndex=i.minuteElement.tabIndex=-1,i.hourElement.value=r(i.latestSelectedDateObj?i.latestSelectedDateObj.getHours():i.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),i.minuteElement.value=r(i.latestSelectedDateObj?i.latestSelectedDateObj.getMinutes():e.minutes),i.hourElement.setAttribute("step",i.config.hourIncrement.toString()),i.minuteElement.setAttribute("step",i.config.minuteIncrement.toString()),i.hourElement.setAttribute("min",i.config.time_24hr?"0":"1"),i.hourElement.setAttribute("max",i.config.time_24hr?"23":"12"),i.hourElement.setAttribute("maxlength","2"),i.minuteElement.setAttribute("min","0"),i.minuteElement.setAttribute("max","59"),i.minuteElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(n),i.timeContainer.appendChild(t),i.timeContainer.appendChild(a),i.config.time_24hr&&i.timeContainer.classList.add("time24hr"),i.config.enableSeconds){i.timeContainer.classList.add("hasSeconds");var o=p("flatpickr-second");i.secondElement=o.getElementsByTagName("input")[0],i.secondElement.value=r(i.latestSelectedDateObj?i.latestSelectedDateObj.getSeconds():e.seconds),i.secondElement.setAttribute("step",i.minuteElement.getAttribute("step")),i.secondElement.setAttribute("min","0"),i.secondElement.setAttribute("max","59"),i.secondElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),i.timeContainer.appendChild(o)}return i.config.time_24hr||(i.amPM=u("span","flatpickr-am-pm",i.l10n.amPM[l((i.latestSelectedDateObj?i.hourElement.value:i.config.defaultHour)>11)]),i.amPM.title=i.l10n.toggleTitle,i.amPM.tabIndex=-1,i.timeContainer.appendChild(i.amPM)),i.timeContainer}()),d(i.calendarContainer,"rangeMode","range"===i.config.mode),d(i.calendarContainer,"animate",!0===i.config.animate),d(i.calendarContainer,"multiMonth",i.config.showMonths>1),i.calendarContainer.appendChild(e);var o=void 0!==i.config.appendTo&&void 0!==i.config.appendTo.nodeType;if((i.config.inline||i.config.static)&&(i.calendarContainer.classList.add(i.config.inline?"inline":"static"),i.config.inline&&(!o&&i.element.parentNode?i.element.parentNode.insertBefore(i.calendarContainer,i._input.nextSibling):void 0!==i.config.appendTo&&i.config.appendTo.appendChild(i.calendarContainer)),i.config.static)){var c=u("div","flatpickr-wrapper");i.element.parentNode&&i.element.parentNode.insertBefore(c,i.element),c.appendChild(i.element),i.altInput&&c.appendChild(i.altInput),c.appendChild(i.calendarContainer)}i.config.static||i.config.inline||(void 0!==i.config.appendTo?i.config.appendTo:window.document.body).appendChild(i.calendarContainer)}(),function(){if(i.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(i.element.querySelectorAll("[data-"+e+"]"),(function(t){return N(t,"click",i[e])}))})),i.isMobile)!function(){var e=i.config.enableTime?i.config.noCalendar?"time":"datetime-local":"date";i.mobileInput=u("input",i.input.className+" flatpickr-mobile"),i.mobileInput.tabIndex=1,i.mobileInput.type=e,i.mobileInput.disabled=i.input.disabled,i.mobileInput.required=i.input.required,i.mobileInput.placeholder=i.input.placeholder,i.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",i.selectedDates.length>0&&(i.mobileInput.defaultValue=i.mobileInput.value=i.formatDate(i.selectedDates[0],i.mobileFormatStr)),i.config.minDate&&(i.mobileInput.min=i.formatDate(i.config.minDate,"Y-m-d")),i.config.maxDate&&(i.mobileInput.max=i.formatDate(i.config.maxDate,"Y-m-d")),i.input.getAttribute("step")&&(i.mobileInput.step=String(i.input.getAttribute("step"))),i.input.type="hidden",void 0!==i.altInput&&(i.altInput.type="hidden");try{i.input.parentNode&&i.input.parentNode.insertBefore(i.mobileInput,i.input.nextSibling)}catch(e){}N(i.mobileInput,"change",(function(e){i.setDate(g(e).value,!1,i.mobileFormatStr),ve("onChange"),ve("onClose")}))}();else{var e=c(oe,50);if(i._debouncedChange=c(P,300),i.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&N(i.daysContainer,"mouseover",(function(e){"range"===i.config.mode&&ie(g(e))})),N(i._input,"keydown",ae),void 0!==i.calendarContainer&&N(i.calendarContainer,"keydown",ae),i.config.inline||i.config.static||N(window,"resize",e),void 0!==window.ontouchstart?N(window.document,"touchstart",Q):N(window.document,"mousedown",Q),N(window.document,"focus",Q,{capture:!0}),!0===i.config.clickOpens&&(N(i._input,"focus",i.open),N(i._input,"click",i.open)),void 0!==i.daysContainer&&(N(i.monthNav,"click",Me),N(i.monthNav,["keyup","increment"],A),N(i.daysContainer,"click",fe)),void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement){N(i.timeContainer,["increment"],I),N(i.timeContainer,"blur",I,{capture:!0}),N(i.timeContainer,"click",j),N([i.hourElement,i.minuteElement],["focus","click"],(function(e){return g(e).select()})),void 0!==i.secondElement&&N(i.secondElement,"focus",(function(){return i.secondElement&&i.secondElement.select()})),void 0!==i.amPM&&N(i.amPM,"click",(function(e){I(e)}))}i.config.allowInput&&N(i._input,"blur",ne)}}(),(i.selectedDates.length||i.config.noCalendar)&&(i.config.enableTime&&O(i.config.noCalendar?i.latestSelectedDateObj:void 0),Ce(!1)),w();var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!i.isMobile&&o&&se(),ve("onReady")}(),i}function S(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=I(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return S(this,e)},HTMLElement.prototype.flatpickr=function(e){return S([this],e)});var _=function(e,t){return"string"==typeof e?S(window.document.querySelectorAll(e),t):e instanceof Node?S([e],t):S(e,t)};_.defaultConfig={},_.l10ns={en:k({},o),default:k({},o)},_.localize=function(e){_.l10ns.default=k(k({},_.l10ns.default),e)},_.setDefaults=function(e){_.defaultConfig=k(k({},_.defaultConfig),e)},_.parseDate=C({}),_.formatDate=y({}),_.compareDates=M,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return S(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=_);var O=_,F=n(110),A=n.n(F),N=window.window.searchAndFilter.frontend.packages.core.hooks,P=window.searchAndFilter.frontend.packages.hooks,Y=window.searchAndFilter.frontend.packages.components;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},j.apply(null,arguments)}const H=()=>{},L=({value:t="",icon:n,hasClear:a=!1,placeholder:i,showLabel:o,label:r,dateFormat:l,calendarClassName:c,isInteractive:s=!0,flatpickrOptions:d={},description:u,showDescription:f,inputClassName:m,labelProps:p,onChange:g=H,onClear:h=H})=>{const v=(0,N.useRef)(null),D=(0,N.useRef)(null),b=(0,N.useRef)(null),w=(0,N.useRef)(null),y=(0,N.useRef)(t),C=(0,N.useRef)(g);y.current=t,C.current=g;const M="search-filter-input-text__input",x=()=>{s&&(b.current&&(D.current&&D.current.removeEventListener("click",k),D.current=null,b.current.destroy()),b.current=null)},E=(e,t)=>{t!==y.current&&C.current(t)};(0,N.useLayoutEffect)((()=>{if(s||!v.current)return v.current&&(()=>{if(!s)return;const e=v.current?.ownerDocument||document,t=e?e.body:document.body;b.current=O(v.current,{clickOpens:!0,onChange:E,altInput:!0,altFormat:l,altInputClass:M,dateFormat:"Y-m-d",allowInvalidPreload:!0,appendTo:t,positionElement:w.current,disableMobile:!0,...d}),b.current.calendarContainer.classList.add("search-filter-input-date-picker__calendar"),c&&c.split(" ").forEach((e=>{b.current.calendarContainer.classList.add(e)})),w.current&&(D.current=w.current.querySelector("."+M),D.current&&D.current.addEventListener("click",k))})(),()=>{x()};x()}),[v.current,i,a,n,s,m,c,l]),(0,N.useLayoutEffect)((()=>{b.current&&""===t&&b.current.clear()}),[t]),(0,N.useLayoutEffect)((()=>{s&&b.current&&b.current.set("altFormat",l)}),[l]);const k=e=>{e.stopImmediatePropagation(),s&&b.current&&b.current.open()},T=e=>{s&&(D.current&&D.current.focus(),k(e))},I="search-filter-input-date-picker-"+(0,P.useInstanceId)(L),S="search-filter-label-"+(0,P.useInstanceId)(Y.Label),_=""!==t;return(0,e.h)(e.Fragment,null,(0,e.h)(Y.Label,j({showLabel:o,label:r,id:S,forId:I,isInteractive:s},p)),(0,e.h)(Y.Description,{description:u,showDescription:f}),(0,e.h)(Y.TextControlContainer,{cRef:w,className:A()("search-filter-input-date-picker",m)},n&&(0,e.h)(Y.Icon,{className:"search-filter-input-text__icon",icon:n,onClick:T,isInteractive:s&&T}),(0,e.h)("div",{className:"search-filter-input-date-picker__input-container"},s&&(0,e.h)(Y.TextInput,{id:I,"aria-labelledby":"yes"===o?S:null,"aria-label":"yes"===o?null:r,className:`${M}--hidden`,autoComplete:"off",value:t,inputRef:v,placeholder:i}),!s&&(0,e.h)(Y.TextInput,{id:I,"aria-labelledby":"yes"===o?S:null,"aria-label":"yes"===o?null:r,className:M,autoComplete:"off",value:"",inputRef:v,placeholder:i,readOnly:!0,tabIndex:-1})),a&&_&&(0,e.h)(Y.Icon,{icon:"clear",isInteractive:s,isDestructive:!0,onClick:()=>{v.current&&v.current.focus(),h!==H?h():g("")}})))};L.templateVars=["placeholder","uid","labelUid"],(0,window.searchAndFilter.frontend.packages.registry.register)(["packages","components"],"DatePickerControl",L)}()}();
// source --> https://easipc.co.uk/wp-content/plugins/search-filter-pro/assets-v1/frontend/components/range.js?ver=1fe8b7d52c10a7df36a9 
!function(){var e={129:function(e,a){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function a(e){return e.split("").reverse().join("")}function r(e,a){return e.substring(0,a.length)===a}function n(e,a,r){if((e[a]||e[r])&&e[a]===e[r])throw new Error(a)}function t(e){return"number"==typeof e&&isFinite(e)}function i(e,r,n,i,s,l,o,c,u,p,g,d){var f,h,m,x,b,v=d,F="",C="";return l&&(d=l(d)),!!t(d)&&(!1!==e&&0===parseFloat(d.toFixed(e))&&(d=0),d<0&&(f=!0,d=Math.abs(d)),!1!==e&&(b=e,x=(x=d).toString().split("e"),d=(+((x=(x=Math.round(+(x[0]+"e"+(x[1]?+x[1]+b:b)))).toString().split("e"))[0]+"e"+(x[1]?+x[1]-b:-b))).toFixed(b)),-1!==(d=d.toString()).indexOf(".")?(m=(h=d.split("."))[0],n&&(F=n+h[1])):m=d,r&&(m=a(m).match(/.{1,3}/g),m=a(m.join(a(r)))),f&&c&&(C+=c),i&&(C+=i),f&&u&&(C+=u),C+=m,C+=F,s&&(C+=s),p&&(C=p(C,v)),C)}function s(e,a,n,i,s,l,o,c,u,p,g,d){var f,h="";return g&&(d=g(d)),!(!d||"string"!=typeof d)&&(c&&r(d,c)&&(d=d.replace(c,""),f=!0),i&&r(d,i)&&(d=d.replace(i,"")),u&&r(d,u)&&(d=d.replace(u,""),f=!0),s&&function(e,a){return e.slice(-1*a.length)===a}(d,s)&&(d=d.slice(0,-1*s.length)),a&&(d=d.split(a).join("")),n&&(d=d.replace(n,".")),f&&(h+="-"),""!==(h=(h+=d).replace(/[^0-9\.\-.]/g,""))&&(h=Number(h),o&&(h=o(h)),!!t(h)&&h))}function l(a,r,n){var t,i=[];for(t=0;t<e.length;t+=1)i.push(a[e[t]]);return i.push(n),r.apply("",i)}return function a(r){if(!(this instanceof a))return new a(r);"object"==typeof r&&(r=function(a){var r,t,i,s={};for(void 0===a.suffix&&(a.suffix=a.postfix),r=0;r<e.length;r+=1)if(void 0===(i=a[t=e[r]]))"negative"!==t||s.negativeBefore?"mark"===t&&"."!==s.thousand?s[t]=".":s[t]=!1:s[t]="-";else if("decimals"===t){if(!(i>=0&&i<8))throw new Error(t);s[t]=i}else if("encoder"===t||"decoder"===t||"edit"===t||"undo"===t){if("function"!=typeof i)throw new Error(t);s[t]=i}else{if("string"!=typeof i)throw new Error(t);s[t]=i}return n(s,"mark","thousand"),n(s,"prefix","negative"),n(s,"prefix","negativeBefore"),s}(r),this.to=function(e){return l(r,i,e)},this.from=function(e){return l(r,s,e)})}})?r.apply(a,[]):r)||(e.exports=n)}},a={};function r(n){var t=a[n];if(void 0!==t)return t.exports;var i=a[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,{a:a}),a},r.d=function(e,a){for(var n in a)r.o(a,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,a=window.window.searchAndFilter.frontend.packages.core.hooks,n=window.searchAndFilter.frontend.packages.hooks,t=window.searchAndFilter.frontend.packages.components,i=window.searchAndFilter.frontend.packages.utils,s=r(129),l=r.n(s);const o=(e,a)=>Math.round(e*10**a)/10**a,c={},u=e=>{const{rangeValuePrefix:a,rangeValueSuffix:r,rangeDecimalPlaces:n,rangeThousandCharacter:t=",",rangeDecimalCharacter:i=".",rangeMin:s,rangeMax:l,rangeStep:u}=e,p=Number(n||0);let g=null;null!==s&&(g=void 0!==s&&""!==s?parseFloat(s):0,g=o(g,p));let d=null;null!==l&&(d=void 0!==l&&""!==l?parseFloat(l):100,d=o(d,p));let f=null;return null!==u&&(f=u&&""!==u?parseFloat(u):1),f=o(f,p),f<=0&&(f=1),{min:g??0,max:d??0,step:f??1,formatOptions:{prefix:a,suffix:r,decimals:p,thousand:t,mark:i}??c}},p=e=>void 0!==e&&""!==e&&e,g=(e,a)=>{if(a){const r=(e=>{const a={...e};return e.decimals||(a.decimals=0),0===a.decimals&&(a.mark=""),a.decimals>0&&a.mark===e.thousand&&(a.thousand=""),e.decimals>=7&&(a.decimals=6),a})(a);return l()(r).to(e)}return e},d=(e,r,n,t,s,l)=>{const c=l.decimals??0;if(!b(e,r)&&n&&t)return{min:[{value:n,label:g(parseFloat(n),l)}],max:[{value:t,label:g(parseFloat(t),l)}]};const u=o(e,c)??0,p=o(r,c)??0,d=(0,a.useMemo)((()=>{const e=[];let a=u,r=!1;for(;!r;){if(a>p||e.length>=200){r=!0;break}e.push(a),a=o(a+s,c)}return e.length>=200&&(0,i.log)("Maximum number of options reached for range field.","warning"),e}),[u,p,s]).map((e=>[{value:String(e.toFixed(c)),label:String(g(e,l))}])).flat();return{min:d,max:d}},f=(e,a,r,n)=>{if(e&&parseFloat(a)===parseFloat(e))return e;if(!(parseFloat(a)>parseFloat(n))){if(parseFloat(a)<parseFloat(r))return r;if(parseFloat(a)!==parseFloat(n))return a}},h=(e,a,r,n)=>{if(e&&parseFloat(a)===parseFloat(e))return e;if(!(parseFloat(a)<parseFloat(r))){if(parseFloat(a)>parseFloat(n))return n;if(parseFloat(a)!==parseFloat(r))return a}},m=(e,a,r,n,t,i)=>{const s=parseFloat(r??0).toFixed(i),l=parseFloat(n??0).toFixed(i),o=(e,a)=>{if(void 0===e&&void 0===a)t([]);else{let r=e?String(e):void 0,n=a?String(a):void 0;void 0===r&&(r=s),void 0===n&&(n=l),t([r,n])}};return{updateMinValue:function(a,r){const n=h(e,a,s,l);let t=r;n&&parseFloat(n)>parseFloat(r)&&(t=n),o(n,f(void 0,t,s,l))},updateMaxValue:function(e,r){const n=f(a,r,s,l);let t=e;n&&parseFloat(n)<parseFloat(e)&&(t=n),o(h(void 0,t,s,l),n)}}},x=(e,a,r,n,t=0)=>((e,a,r,n,t=0)=>{if(null===r&&null===n)return c=parseFloat(e??0).toFixed(t),u=parseFloat(a??0).toFixed(t),null===e&&(c=r),null===a&&(u=n),{visibleMinValue:c,visibleMaxValue:u};const i=parseFloat(e),s=parseFloat(a),l=parseFloat(r),o=parseFloat(n);let c=p(e)?i.toFixed(t):l.toFixed(t),u=p(a)?s.toFixed(t):o.toFixed(t);return p(e)&&i<l&&(c=l.toFixed(t)),p(a)&&s>o&&(u=o.toFixed(t)),{visibleMinValue:c,visibleMaxValue:u}})(e,a,r,n,t),b=(e,a)=>null!==e&&null!==a;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}const F=()=>{},C=({values:r,appliedValues:s,label:l,separator:o,showLabel:c,isInteractive:p=!0,onChange:g=F,description:f,showDescription:h,inputClassName:w,labelProps:M,rangeValuePrefix:V,rangeValueSuffix:_,rangeDecimalPlaces:N,rangeThousandCharacter:P,rangeDecimalCharacter:S,rangeMin:D,rangeMax:I,rangeStep:y})=>{const{min:k,max:O,step:L,formatOptions:j}=u({rangeValuePrefix:V,rangeValueSuffix:_,rangeDecimalPlaces:N,rangeThousandCharacter:P,rangeDecimalCharacter:S,rangeMin:D,rangeMax:I,rangeStep:y}),[R,T]=r,[A,E]=s,B=b(k,O),$=j.decimals??0,{updateMinValue:U,updateMaxValue:W}=m(A,E,k,O,g,$),{visibleMinValue:X,visibleMaxValue:q}=x(R,T,k,O,$),{min:z,max:G}=d(k,O,X,q,L,j),[H,J]=(0,a.useMemo)((()=>[[X],[q]]),[X,q]),K="search-filter-label-"+(0,n.useInstanceId)(t.Label),Q="search-filter-component-range-radio-"+(0,n.useInstanceId)(C);return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,v({label:l,id:K,showLabel:c},M)),(0,e.h)(t.Description,{description:f,showDescription:h}),(0,e.h)("div",{id:Q,role:"group",className:(0,i.classNames)("search-filter-select-range",w)},(0,e.h)(t.RadioControl,{isInteractive:p,value:H,onChange:e=>{B&&p&&U(e[0],T)},options:z}),o&&(0,e.h)("span",{className:"search-filter-input-range__separator"},o),(0,e.h)(t.RadioControl,{isInteractive:p,value:J,onChange:e=>{B&&p&&W(R,e[0])},options:G})))};function w(){return w=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(null,arguments)}const M=()=>{},V=({values:a,appliedValues:r,onChange:s=M,separator:l,label:o,showLabel:c,isInteractive:p=!0,description:g,showDescription:d,inputClassName:f,labelProps:h,rangeValuePrefix:v,rangeValueSuffix:F,rangeDecimalPlaces:C,rangeThousandCharacter:_,rangeDecimalCharacter:N,rangeMin:P,rangeMax:S,rangeStep:D})=>{const{min:I,max:y,step:k,formatOptions:O}=u({rangeValuePrefix:v,rangeValueSuffix:F,rangeDecimalPlaces:C,rangeThousandCharacter:_,rangeDecimalCharacter:N,rangeMin:P,rangeMax:S,rangeStep:D}),[L,j]=a,[R,T]=r,A=b(I,y),E=O.decimals??0,{updateMinValue:B,updateMaxValue:$}=m(R,T,I,y,s,E),{visibleMinValue:U,visibleMaxValue:W}=x(L,j,I,y,E),X="search-filter-label-"+(0,n.useInstanceId)(t.Label),q="search-filter-component-range-number-"+(0,n.useInstanceId)(V),z={type:"number",min:I??0,max:y??0,step:k};return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,w({label:o,id:X,showLabel:c},h)),(0,e.h)(t.Description,{description:g,showDescription:d}),(0,e.h)("div",{id:q,role:"group",className:(0,i.classNames)("search-filter-select-range",f)},(0,e.h)(t.TextControl,{value:U,onChange:e=>{A&&p&&B(e,j)},inputProps:z}),l&&(0,e.h)("span",{className:"search-filter-select-range__separator"},l),(0,e.h)(t.TextControl,{value:W,onChange:e=>{A&&p&&$(L,e)},inputProps:z})))};function _(){return _=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(null,arguments)}const N=()=>{},P=({values:r,appliedValues:s,separator:l,label:o,showLabel:c,isInteractive:p=!0,description:g,showDescription:f,listboxClassName:h,inputClassName:v,onChange:F=N,labelProps:C,rangeValuePrefix:w,rangeValueSuffix:M,rangeDecimalPlaces:V,rangeThousandCharacter:S,rangeDecimalCharacter:D,rangeMin:I,rangeMax:y,rangeStep:k})=>{const{min:O,max:L,step:j,formatOptions:R}=u({rangeValuePrefix:w,rangeValueSuffix:M,rangeDecimalPlaces:V,rangeThousandCharacter:S,rangeDecimalCharacter:D,rangeMin:I,rangeMax:y,rangeStep:k}),[T,A]=r,[E,B]=s,$=b(O,L),U=R.decimals??0,{updateMinValue:W,updateMaxValue:X}=m(E,B,O,L,F,U),{visibleMinValue:q,visibleMaxValue:z}=x(T,A,O,L,U),{min:G,max:H}=d(O,L,q,z,j,R),[J,K]=(0,a.useMemo)((()=>[[q],[z]]),[q,z]),Q="search-filter-label-"+(0,n.useInstanceId)(t.Label),Y="search-filter-component-range-select-"+(0,n.useInstanceId)(P);return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,_({label:o,id:Q,forId:Y,showLabel:c},C)),(0,e.h)(t.Description,{description:g,showDescription:f}),(0,e.h)("div",{id:Y,role:"group",className:(0,i.classNames)("search-filter-select-range",v)},(0,e.h)(t.ComboboxControl,{options:G,value:J,onChange:e=>{$&&p&&W(e[0],A)},disabled:!$,listboxClassName:h,hasClear:!1,isInteractive:p}),l&&(0,e.h)("span",{className:"search-filter-select-range__separator"},l),(0,e.h)(t.ComboboxControl,{options:H,value:K,onChange:e=>{$&&p&&X(T,e[0])},disabled:!$,listboxClassName:h,hasClear:!1,isInteractive:p})))};function S(){return S=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S.apply(null,arguments)}const D=({label:r,showLabel:s,description:l,showDescription:o,values:c,appliedValues:p,onChange:d,labelProps:f,inputClassName:h,showInputFields:v=!1,showFilterButton:F=!1,inlineInput:C=!0,isLoading:w=!1,isUpdating:M=!1,separator:V,textPosition:_="above",showReset:N,resetPosition:P,isEditor:I=!1,isInteractive:y=!0,onSubmit:k=()=>{},rangeValuePrefix:O,rangeValueSuffix:L,rangeDecimalPlaces:j,rangeThousandCharacter:R,rangeDecimalCharacter:T,rangeMin:A,rangeMax:E,rangeStep:B})=>{const{min:$,max:U,step:W,formatOptions:X}=u({rangeValuePrefix:O,rangeValueSuffix:L,rangeDecimalPlaces:j,rangeThousandCharacter:R,rangeDecimalCharacter:T,rangeMin:A,rangeMax:E,rangeStep:B}),q="search-filter-label-"+(0,n.useInstanceId)(t.Label),z="search-filter-component-range-slider-"+(0,n.useInstanceId)(D),G=(0,a.useRef)(null),H=(0,a.useRef)(null),[J,K]=c,[Q,Y]=p,Z=b($,U),ee=X.decimals??0,{updateMinValue:ae,updateMaxValue:re}=m(Q,Y,$,U,d,ee),{visibleMinValue:ne,visibleMaxValue:te}=x(J,K,$,U,ee),ie=(0,a.useRef)(null),[se,le]=(0,a.useState)(0);(0,a.useLayoutEffect)((()=>{C&&ie.current&&le(ie.current?.offsetWidth)}),[C,le]);const oe=(0,a.useMemo)((()=>Z?{"--search-filter-range-slider-progress-low":(ne-$)/(U-$)*100+"%","--search-filter-range-slider-progress-high":(te-$)/(U-$)*100+"%"}:{"--search-filter-range-slider-progress-low":"0%","--search-filter-range-slider-progress-high":"0%"}),[Z,ne,te,$,U]),ce=(0,a.useCallback)((e=>{Z&&y&&ae(e.target.value,K)}),[d,K,Z,y,ae]),ue=(0,a.useCallback)((e=>{Z&&y&&re(J,e.target.value)}),[d,J,Z,y,re]),pe=w||!Z||!y,ge="search-filter-component-range-slider",de=(0,i.classNames)(ge,v&&`${ge}--has-input-fields`,F&&`${ge}--has-filter-button`,!Z&&`${ge}--is-disabled`,(C||se<=300)&&`${ge}--is-input-inline`,h),fe=String(ne),he=String(te),me=(0,a.useCallback)((e=>{if(w||!Z||!y)return;const a=e.target.getBoundingClientRect(),r=e.clientX-a.left,n=a.width,t=$+(U-$)*r/n,i=Math.round((t-$)/W),s=parseFloat(($+i*W).toFixed(X.decimals));Math.abs(s-parseFloat(ne))<=Math.abs(s-parseFloat(te))?ae(s,K):re(J,s)}),[w,Z,$,U,ne,te,W,X.decimals,d,ae,re]),xe=(0,e.h)("div",{className:(0,i.classNames)("search-filter-component-range-slider__range-input-wrapper"),onClick:me},(0,e.h)("div",{id:z,className:(0,i.classNames)("search-filter-component-range-slider__range-input-bar",{[`${ge}--is-loading`]:w&&M}),role:"group"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-input-progress",style:oe}),(0,e.h)("input",{type:"range",className:"search-filter-component-range-slider__range-input search-filter-component-range-slider__range-input--min","aria-label":"Filter products by minimum price","aria-valuetext":fe,value:ne,onChange:ce,step:W,min:$,max:U,ref:G,disabled:pe,tabIndex:v?-1:0}),(0,e.h)("input",{type:"range",className:"search-filter-component-range-slider__range-input search-filter-component-range-slider__range-input--max","aria-label":"Filter products by maximum price","aria-valuetext":he,value:te,onChange:ue,step:W,min:$,max:U,ref:H,disabled:pe,tabIndex:v?-1:0}))),be=Z||ne!==te?(0,e.h)("div",{className:"search-filter-component-range-slider__range-text search-filter-component-range-slider__range-text"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-min"},g(parseFloat(ne),X)),V&&(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-seperator"},V),(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-max"},g(parseFloat(te),X))):(0,e.h)("div",{className:"search-filter-component-range-slider__range-text search-filter-component-range-slider__range-text"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-min"},g(parseFloat(ne),X)));return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,S({label:r,id:q,showLabel:s,forId:z},f)),(0,e.h)(t.Description,{description:l,showDescription:o}),(0,e.h)("div",{className:de,ref:ie},!v&&"above"===_&&be,xe,!v&&"below"===_&&be,(0,e.h)("div",{className:"search-filter-component-range-slider__actions"})))};var I=window.searchAndFilter.frontend.packages.registry;(0,I.register)(["packages","components"],"RangeRadioControl",C),(0,I.register)(["packages","components"],"RangeNumberControl",V),(0,I.register)(["packages","components"],"RangeSelectControl",P),(0,I.register)(["packages","components"],"RangeSliderControl",D)}()}();