PageSourceSearch

https://www.elmaliquor.com/wp-content/cache/wpo-minify/1790288676/…ooter-smart-search-general1789579652.min.js

js elmaliquor.com collected 2026-09-28 17:20:38 UTC 60,044 bytes, 4 lines download raw bytes

1
2var swsUtils={analyticCategoryTypes:{search_term_has_results:"[Search term] has results",search_term_no_results:"[Search term] no results",promo_banner_click:"[Promo banner] link click",selected_categories_click:"[Selected Categories] link click",recommended_products_click:"[Recommended Products] link click",search_results_link_click:"[Found Suggestions] link click",search_results_cart_click:"[Found Suggestions] add-to-cart click",view_all_click:"[View All] button click"},debounce(s,i){var n;return function(){var e=arguments,t=this;clearTimeout(n),n=setTimeout(function(){s.apply(t,e)},i)}},escHtml(e){var t=document.createElement("textarea");return t.innerHTML=String(e),t.value.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},readStorage(e){try{return JSON.parse(localStorage.getItem(e))||[]}catch(e){return[]}},getDefaultOptions(){return{id:"",serviceUrl:window.swsL10n?window.swsL10n.restUrl:"",layout:"",columns:1,productSlug:"product",maxHeight:500,maxHeightMobile:400,minChars:3,disableAjax:!1,no_results_text:"",loaderIcon:"",preventBadQueries:!0,cache:!0}},setNonce(e){window.swsL10n&&window.swsL10n.nonce&&e.setRequestHeader("X-WP-Nonce",window.swsL10n.nonce)},refreshNonce(e){e=e.getResponseHeader("X-Wp-Nonce");return e&&window.swsL10n.nonce!==e?(window.swsL10n.nonce=e,!0):!!window.swsL10n.nonce&&!(window.swsL10n.nonce="")},resolveFromCache(e,t,s,i){var n;e.val().length<t.minChars?i.forEach(function(e){e.element.hide()}):(e=e.devbridgeAutocomplete(),t=t.serviceUrl,t=(t=jQuery.isFunction(t)?t.call(e.element,s):t)+"?"+jQuery.param({query:s}),n=e.cachedResponse&&e.cachedResponse[t],i.forEach(function(e){n&&e.callback(n),e.element.show()}))},showLoader(e,t){t.loaderImage.length||e.css({"background-image":"url("+t.loaderIcon+")","background-repeat":"no-repeat","background-position":"50% 50%"}),e.closest("form").find(".sws-loader-image").addClass("sws-loader-image--visible")},hideLoader(e){e.css("background-image","none"),e.closest("form").find(".sws-loader-image").removeClass("sws-loader-image--visible")},pushRecentSearchesToLocalStorage(e,t){return e.includes(t)||(10<=e.length&&e.shift(),e.push(t),localStorage.setItem("swsLatestSearches",JSON.stringify(e))),e},getWidgetId(e){e=e.closest("form");return e?e.getAttribute("data-id"):null},_searchLogIds:{},storeSearchLogId(e,t){e&&t&&(this._searchLogIds[e]=t)},getSearchLogId(e){return e&&this._searchLogIds[e]?this._searchLogIds[e]:0},trackInternalEvent(e,t,s,i){var n,r=window.swsL10n&&window.swsL10n.ajaxUrl;r&&"function"==typeof navigator.sendBeacon&&((n=new FormData).append("action","sws_track"),n.append("event_type",e),n.append("search_log_id",this.getSearchLogId(t)),n.append("product_id",s||0),n.append("variation_id",i||0),n.append("nonce",window.swsL10n&&window.swsL10n.trackNonce||""),navigator.sendBeacon(r,n))},pushToDataLayer(e,t,s){"function"!=typeof gtag||window.dataLayer?(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"swsEvent",swsTerm:e,swsCategory:t,swsWidgetId:s})):gtag("event","swsEvent",{swsTerm:e,swsCategory:t,swsWidgetId:s,transport_type:"beacon"})},pushToAnalytics(e){let{term:t,category:s,wId:i}=e;var n;window.swsL10n.analytics.ga4&&(e=window.swsL10n.analytics.enabledEvents||[],n=Object.keys(swsUtils.analyticCategoryTypes).find(e=>swsUtils.analyticCategoryTypes[e]===s))&&e.includes(n)&&swsUtils.pushToDataLayer(t,s,i)},attachSubmitHandler(e,i,n){e.on("submit",function(e){var t=i.val();if(""===t||t.length<n.minChars)return!1;var s=window.swsL10n.searchPageUrl;t=(t=t.replace(/\+/g,"%2b")).replace(/\s/g,"+"),s=(s+=-1!==s.indexOf("?")?"&":"?")+"s="+t+"&search_id="+n.id,"product"===n.layout&&(s+="&post_type="+n.productSlug),e.preventDefault(),window.swsL10n.analytics.ga4?(swsUtils.pushToAnalytics({term:t,category:swsUtils.analyticCategoryTypes.view_all_click,wId:n.id}),window.open(s,"_blank")):window.location.href=s})},buildBaseAutocompleteOptions(i,e,t,n){return{minChars:t.minChars,appendTo:e,safeContainer:n||null,serviceUrl:t.serviceUrl,maxHeight:1e5,dataType:"json",deferRequestBy:300,noCache:!t.cache,containerClass:"smart-search-suggestions",triggerSelectOnValidInput:!1,showNoSuggestionNotice:!!t.no_results_text.length,noSuggestionNotice:t.no_results_text,preventBadQueries:t.preventBadQueries,ajaxSettings:{beforeSend:swsUtils.setNonce},formatResult:function(e){return e.data},onSelect:function(e){},onSearchError:function(e,t,s){"error"===s&&swsUtils.refreshNonce(t)?i.devbridgeAutocomplete().onValueChange():n&&n.addClass("sws-hide-popup").removeClass("sws-no-results")},onInvalidateSelection:function(){}}},renderKeywordsList(e,t){var s;t.length&&(s=e.find(".smart-search-keywords-list").empty(),e.addClass("sws-keywords-block-displayed"),e.find(".smart-search-keywords-wrapper").removeClass("smart-search-keywords-wrapper--hidden_mod"),t.forEach(function(e){s.append('<li class="sws-search-recent-list-item"><span class="sws-search-recent-list-item-trigger">'+swsUtils.escHtml(e)+"</span></li>")}))},syncKeywordsVisibility(e,t,s){t.length&&(s.length?(e.addClass("sws-keywords-block-displayed"),e.find(".smart-search-keywords-wrapper").removeClass("smart-search-keywords-wrapper--hidden_mod"),t.addClass("sws-search-recent-wrapper--hidden_by_keywords")):(e.removeClass("sws-keywords-block-displayed"),e.find(".smart-search-keywords-wrapper").addClass("smart-search-keywords-wrapper--hidden_mod"),t.removeClass("sws-search-recent-wrapper--hidden_by_keywords")))},updateRecentSearches(e,t=!1){!0===t&&(e.addClass("sws-keywords-block-displayed"),e.find(".sws-search-recent-wrapper").removeClass("sws-search-recent-wrapper--hidden_mod"));t=swsUtils.readStorage("swsLatestSearches").slice(-5);let s=e.find(".sws-search-recent-list").empty();
2t.forEach(e=>{s.append('<li class="sws-search-recent-list-item"><span class="sws-search-recent-list-item-trigger">'+swsUtils.escHtml(e)+'</span><span class="sws-search-recent-list-item-delete" data-item="'+swsUtils.escHtml(e)+'" aria-label="close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></span></li>')})},attachRecentSearchEvents(e,s,t,i,n=!1,r=!1){(n||r)&&e.on("click",".sws-search-recent-list-item-trigger",function(e){e.stopPropagation(),t.val(jQuery(e.target).text());e=t.devbridgeAutocomplete();e&&"function"==typeof e.onValueChange&&e.onValueChange()}),n&&e.on("click",".sws-search-recent-list-item-delete",function(e){e.stopPropagation();var t=jQuery(this).data("item"),e=swsUtils.readStorage("swsLatestSearches").filter(function(e){return String(e)!==String(t)});localStorage.setItem("swsLatestSearches",JSON.stringify(e)),swsUtils.updateRecentSearches(s,!0),0===e.length&&(s.removeClass("sws-keywords-block-displayed"),s.find(".sws-search-recent-wrapper").addClass("sws-search-recent-wrapper--hidden_mod")),i(e)})}};document.addEventListener("DOMContentLoaded",function(){var r=window.swsL10n.analytics.ga4,a=window.swsL10n.analytics.internal;(r||a)&&(r&&(document.addEventListener("click",function(e){var t;e.target.closest(".sws-promo-banner")&&(t=e.target.closest("a"))&&(e.preventDefault(),e=t.getAttribute("href"),swsUtils.pushToAnalytics({term:e,category:swsUtils.analyticCategoryTypes.promo_banner_click,wId:swsUtils.getWidgetId(t)}),window.open(e,"_blank"))},!0),document.addEventListener("click",function(e){var t=e.target.closest(".sws-selected-categories-link");t&&(e.preventDefault(),e=t.getAttribute("href"),swsUtils.pushToAnalytics({term:e,category:swsUtils.analyticCategoryTypes.selected_categories_click,wId:swsUtils.getWidgetId(t)}),window.open(e,"_blank"))},!0),document.addEventListener("click",function(e){var t,s;e.target.closest(".smart-search-view-all-holder")&&(t=e.target.closest("a"))&&(e.preventDefault(),e.stopImmediatePropagation(),e=t.getAttribute("href"),(s=t.closest("form"))&&(s=s.querySelector('.smart-search-input-wrapper input[type="search"]')||s.querySelector('input[type="search"]')||s.querySelector('input[type="text"]'))&&swsUtils.pushToAnalytics({term:s.value,category:swsUtils.analyticCategoryTypes.view_all_click,wId:swsUtils.getWidgetId(t)}),window.open(e,"_blank"))},!0)),document.addEventListener("click",function(e){var t,s,i,n=e.target.closest(".sws-selected-products-item");n&&(i=e.target.closest("a"))&&!i.classList.contains("sws-vp-atc")&&(t=i.getAttribute("href"),s=swsUtils.getWidgetId(i),i=i.getAttribute("data-product_id")||n.querySelector("[data-product_id]")?.getAttribute("data-product_id")||0,a&&swsUtils.trackInternalEvent("link_click",s,i),r)&&(e.preventDefault(),e.stopImmediatePropagation(),swsUtils.pushToAnalytics({term:t,category:swsUtils.analyticCategoryTypes.recommended_products_click,wId:s}),window.open(t,"_blank"))},!0),document.addEventListener("click",function(e){var t,s,i=e.target.closest("a.smart-search-post-url");i&&!i.classList.contains("sws-vp-atc")&&(t=i.getAttribute("href"),s=swsUtils.getWidgetId(i),i=i.getAttribute("data-product-id")||0,a&&swsUtils.trackInternalEvent("link_click",s,i),r)&&(e.preventDefault(),e.stopImmediatePropagation(),swsUtils.pushToAnalytics({term:t,category:swsUtils.analyticCategoryTypes.search_results_link_click,wId:s}),window.open(t,"_blank"))},!0),document.addEventListener("click",function(t){var s=t.target.closest(".sws-atc-holder");if(s){t=t.target.closest("a");if(t){var i=t.getAttribute("data-product_id")||0,e=t.getAttribute("data-variation_id")||0,n=swsUtils.getWidgetId(t);if(a&&swsUtils.trackInternalEvent("cart_click",n,i,e),r){i=t.closest(".autocomplete-suggestion");let e=i?i.querySelector(".smart-search-post-url")?.getAttribute("href"):null;e=e||(s.closest(".sws-selected-products-item")?s.closest(".sws-selected-products-item").querySelector(".sws-selected-products-title")?.getAttribute("href"):null),swsUtils.pushToAnalytics({term:e,category:swsUtils.analyticCategoryTypes.search_results_cart_click,wId:n})}}}},!0),document.addEventListener("click",function(e){var t,s,i=e.target.closest(".sws-vp-cta");i&&(s=i.closest(".sws-vp-modal"))&&(i=i.getAttribute("href"),t=s.getAttribute("data-widget-id"),s=s.getAttribute("data-product-id")||0,a&&swsUtils.trackInternalEvent("link_click",t,s),r)&&(e.preventDefault(),swsUtils.pushToAnalytics({term:i,category:swsUtils.analyticCategoryTypes.search_results_link_click,wId:t}),window.open(i,"_blank"))},!0),document.addEventListener("click",function(e){var t,s,i,e=e.target.closest(".sws-vp-atc");e&&!e.disabled&&(t=e.closest(".sws-vp-modal"))&&(s=t.getAttribute("data-widget-id"),i=t.getAttribute("data-product-id")||0,e=e.getAttribute("data-variation-id")||0,a&&swsUtils.trackInternalEvent("cart_click",
2s,i,e),r)&&(i=t.querySelector(".sws-vp-cta")?t.querySelector(".sws-vp-cta").getAttribute("href"):null,swsUtils.pushToAnalytics({term:i,category:swsUtils.analyticCategoryTypes.search_results_cart_click,wId:s}))},!0))}),(m=>{window.swsAC=window.swsAC||{},window.swsAC.inline=function(e,t){var n,r,s,a,o,l,c,i=m(e),d="FORM"===e.tagName?i:i.find("form"),u=i.find('input[type="search"]').length?i.find('input[type="search"]'):i.find('input[type="text"]'),p=swsUtils.readStorage("swsLatestSearches"),h=[];function g(){d.addClass("sws-hide-popup").removeClass("sws-no-results"),s.hide()}function w(){d.removeClass("sws-hide-popup"),s.data("swsCloseCallback",g).show()}!u.length||i.hasClass("ysm-active")||d.hasClass("ysm-active")||(d.addClass("ysm-active").addClass("sws-inline-popup").addClass("sws-hide-popup"),m(document.body).addClass("ysm-widget-active"),i.parents(".et_pb_column").css({overflow:"visible",zIndex:"10"}),i.parents(".et_pb_module").css("overflow","visible"),n=m.extend({},swsUtils.getDefaultOptions(),t),swsUtils.attachSubmitHandler(d,u,n),n.disableAjax)||(m('<div class="smart-search-popup"><div class="smart-search-results"><div class="smart-search-results-inner"></div></div></div>').appendTo(d),r=d.find(".smart-search-popup"),(s=m(".smart-search-popup-backdrop")).length||(s=m('<div class="smart-search-popup-backdrop"></div>').appendTo(document.body).hide()).on("click",function(){var e=s.data("swsCloseCallback");"function"==typeof e&&e()}),a=0,o=d.find(".smart-search-results"),l=o.find(".smart-search-results-inner"),c=Math.min(window.screen.width,window.screen.height)<768?n.maxHeightMobile:n.maxHeight,o.attr({"aria-live":"polite","aria-atomic":"true"}),u.outerWidth()&&(a=u.outerWidth(),r.css({width:a+"px"})),o.css({maxHeight:c+"px"}),-1!==navigator.userAgent.indexOf("Windows")&&-1!==navigator.userAgent.indexOf("Firefox")&&o.addClass("smart-search-firefox"),swsUtils.attachRecentSearchEvents(d,r,u,function(e){p=e},n.recentSearches,n.keywords),n.recentSearches&&(m('<div class="sws-search-recent-wrapper"><h4 class="sws-search-recent-title">'+swsUtils.escHtml(n.recentSearchesTitle)+'</h4><ul class="sws-search-recent-list"></ul></div>').prependTo(r),p.length)&&swsUtils.updateRecentSearches(r,!0),m(window).on("resize",swsUtils.debounce(function(){r.css({width:u.outerWidth()+"px"})},150)),n.loaderImage.length&&u.parent().append('<img src="'+swsUtils.escHtml(n.loaderImage)+'" class="sws-loader-image" alt="'+swsUtils.escHtml(window.swsL10n.loadingText||"Loading…")+'">'),u.devbridgeAutocomplete(jQuery.extend({},swsUtils.buildBaseAutocompleteOptions(u,l,n,d),{onSearchStart:function(e){-1!==this.value.indexOf("  ")&&(this.value=this.value.replace(/\s+/g," ")),e.query=e.query.replace(/%20/g," "),this.value!==e.query+" "&&(swsUtils.showLoader(u,n),g(),r.find(".smart-search-view-all-holder").hide())},transformResult:function(e,t){e&&e.suggestions&&0<e.suggestions.length?swsUtils.pushToAnalytics({term:t,category:swsUtils.analyticCategoryTypes.search_term_has_results,wId:n.id}):swsUtils.pushToAnalytics({term:t,category:swsUtils.analyticCategoryTypes.search_term_no_results,wId:n.id});t="string"==typeof e?JSON.parse(e):e;return t&&t.search_log_id&&swsUtils.storeSearchLogId(n.id,t.search_log_id),t&&t.view_all_link&&""!==t.view_all_link&&(r.find(".smart-search-view-all-holder").length||r.addClass("has-viewall-button").append('<div class="smart-search-view-all-holder"></div>'),r.find(".smart-search-view-all-holder").html(t.view_all_link)),swsUtils.hideLoader(u),t.keywords.length?r.addClass("hidden-searches"):r.removeClass("hidden-searches"),t},onSearchComplete:function(e,t){var s,i;e.trim()===u.val().trim()&&(a||(a=u.outerWidth(),r.css({width:a+"px"})),swsUtils.hideLoader(u),0<t.length?(w(),d.removeClass("sws-no-results"),t=r.find(".sws-search-recent-wrapper"),s=r.find(".smart-search-view-all-holder"),setTimeout(function(){var e=o.outerWidth(),t=n.columns;0===e&&(e=u.outerWidth(),o.width(e+"px")),e<200*t&&(t=Math.floor(e/200)),o.outerHeight()||(e=l.find(".smart-search-suggestions").outerHeight())&&(e=parseInt(e,10),o.height(c<e?c:e)),o.attr("data-columns",t).nanoScroller({contentClass:"smart-search-results-inner",alwaysVisible:!1,iOSNativeScrolling:!0})},100),(s.length||n.keywords)&&(i=[],s.length&&i.push({element:s,callback:function(e){s.html(e.view_all_link)}}),n.keywords&&i.push({element:r.find(".smart-search-keywords-wrapper"),callback:function(e){h=e.keywords}}),swsUtils.resolveFromCache(u,n,e,i),n.keywords)&&(r.find(".smart-search-keywords-wrapper").length||r.addClass("sws-has-keywords").prepend('<div class="smart-search-keywords-wrapper smart-search-keywords-wrapper--hidden_mod"><h3 class="smart-search-keywords-title">'+swsUtils.escHtml(n.keywordsLabel)+'</h3><ul class="smart-search-keywords-list"></ul></div>'),swsUtils.renderKeywordsList(r,h),swsUtils.syncKeywordsVisibility(r,t,h)),n.recentSearches&&(p=swsUtils.pushRecentSearchesToLocalStorage(p,e)).length&&(0===t.length&&m('<div class="sws-search-recent-wrapper"><h4 class="sws-search-recent-title">'+swsUtils.escHtml(n.recentSearchesTitle)+'</h4><ul class="sws-search-recent-list"></ul></div>').prependTo(r),swsUtils.updateRecentSearches(r,!0))):((n.no_results_text.length?w:g)(),d.addClass("sws-no-results")))},onHide:function(){g(),d.removeClass("sws-no-results")}})).on("focus",function(){u.devbridgeAutocomplete().onValueChange()}))}})(jQuery),(A=>{window.swsAC=window.swsAC||{},window.swsAC.fullscreen=function(e,t){var s,i,n,r,a,o,l,c,d,u,p,h,g,w,m,v,f,y,b,C,S,_,k,x=t.placeholder||"",T=A(e),U="FORM"===e.tagName?T:T.find("form");T.hasClass("ysm-active")||U.hasClass("ysm-active")||(U.addClass("ysm-active").addClass("sws-hide-popup"),A(document.body).addClass("ysm-widget-active"),T.parents(".et_pb_column").css({overflow:"visible",zIndex:"10"}),T.parents(".et_pb_module").css("overflow","visible"),A('<div class="smart-search-fullscreen"><div class="smart-search-fullscreen-backdrop"></div><div class="smart-search-fullscreen-inner"><div class="smart-search-input-wrapper"><input type="search" class="ssf-search-input" placeholder="'+swsUtils.escHtml(x)+'" name="s" id="smart-search-fullscreen-'+swsUtils.escHtml(t.id)+'"><span class="ssf-search-icon-search"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24" fill="currentColor">
2<path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg></span><span class="ssf-search-icon-close" aria-label="close"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></span></div><div class="smart-search-results-main"><div class="smart-search-results" aria-live="polite" aria-atomic="true">\t<div class="smart-search-results-inner"></div></div></div></div></div>').appendTo(U),s=U.find(".smart-search-fullscreen"),e=U.find(".smart-search-fullscreen-backdrop"),i=T.find('input[type="search"]').length?T.find('input[type="search"]'):T.find('input[type="text"]'),n=T.find(".ssf-search-input"),r=U.find(".smart-search-results-main"),a=U.find(".smart-search-results"),o=a.find(".smart-search-results-inner"),x=U.find(".ssf-search-icon-close"),T=T.find(".search-submit").length?T.find(".search-submit"):A(),l=swsUtils.readStorage("swsLatestSearches"),c=[],d=A.extend({},swsUtils.getDefaultOptions(),t),swsUtils.attachSubmitHandler(U,n,d),(d.selectedCategories||d.promoBannerImage)&&(r.addClass("smart-search-results-main--column_mod"),d.selectedCategoriesMobile&&r.addClass("smart-search-results-main--hidden_mobile_mod"),d.selectedCategoriesOnOpen&&r.addClass("smart-search-results-main--on_open_mod"),A('<div class="sws-sidebar-holder"></div>').prependTo(r),A('<div class="sws-sidebar sws-sidebar--left-mod"><div class="sws-sidebar-widget sws-sidebar--left_slot"></div><div class="sws-sidebar-widget sws-sidebar--left_slot_2"></div></div>').prependTo(r),A('<div class="sws-sidebar sws-sidebar--right-mod"><div class="sws-sidebar-widget sws-sidebar--right_slot"></div><div class="sws-sidebar-widget sws-sidebar--right_slot_2"></div></div>').appendTo(r),f="",d.selectedCategories&&(f=A('<div class="sws-selected-categories"><h4 class="sws-selected-categories-title">'+swsUtils.escHtml(d.selectedCategoriesLabel)+'</h4><ul class="sws-selected-categories-list"></ul></div>')),u=r.find(".sws-sidebar--left-mod .sws-sidebar--left_slot"),p=r.find(".sws-sidebar--left-mod .sws-sidebar--left_slot_2"),h=r.find(".sws-sidebar--right-mod .sws-sidebar--right_slot"),g=r.find(".sws-sidebar--right-mod .sws-sidebar--right_slot_2"),y="",d.promoBannerImage&&(y=d.promoBannerLink.length?A('<div class="sws-promo-banner"><a href="'+swsUtils.escHtml(d.promoBannerLink)+'" target="_blank" rel="noopener noreferrer">'+d.promoBannerImage+"</a></div>"):A('<div class="sws-promo-banner">'+d.promoBannerImage+"</div>")),r.find(".sws-sidebar-holder").hide(),d.selectedCategories&&A(f).prependTo(r.find(".sws-sidebar--"+d.selectedCategoriesLocation)),d.promoBannerImage&&(d.promoBannerOnOpen&&r.addClass("smart-search-results-main--banner_on_open_mod"),A(y).prependTo(r.find(".sws-sidebar--"+d.promoBannerLocation)),d.selectedPromoBannerMobile)&&r.find(".sws-promo-banner").addClass("sws-promo-banner--hidden_mobile_mod"),h.is(":empty")&&g.is(":empty")&&r.addClass("smart-search-results-main--widgets-on-left--mod"),u.is(":empty")&&p.is(":empty")&&(r.find(".sws-sidebar-holder").show(),r.addClass("smart-search-results-main--widgets-on-right--mod")),d.selectedCategories)&&(w=r.find(".sws-selected-categories-list"),d.selectedCategories.forEach(function(e){w.append('<li class="sws-selected-categories-item"><a class="sws-selected-categories-link" href="'+swsUtils.escHtml(e.url)+'" rel="noopener noreferrer">'+swsUtils.escHtml(e.name)+(d.selectedCategoriesCount&&0<e.count?" ("+swsUtils.escHtml(e.count)+")":"")+"</a></li>")})),d.recentSearches&&(A('<div class="sws-search-recent-wrapper sws-search-recent-wrapper--hidden_mod"><h4 class="sws-search-recent-title">'+swsUtils.escHtml(d.recentSearchesTitle)+'</h4><ul class="sws-search-recent-list"></ul></div>').prependTo(r),l.length)&&swsUtils.updateRecentSearches(r,!0),d.loaderImage.length&&n.parent().append('<img src="'+swsUtils.escHtml(d.loaderImage)+'" class="sws-loader-image" alt="'+swsUtils.escHtml(window.swsL10n.loadingText||"Loading…")+'">'),d.selectedProducts&&(r.addClass("smart-search-results-recent-products--mod"),a.addClass("smart-search-results-hidden"),m="swsProductsSwiper-"+swsUtils.escHtml(t.id),A('<div class="sws-recent-products-wrapper"><h3 class="sws-recent-products-heading">'+swsUtils.escHtml(d.selectedProductsLabel)+'</h3><div class="swiper '+m+' sws-recent-products"><div class="swiper-wrapper"></div></div><div class="swiper-button-next"></div><div class="swiper-button-prev"></div></div>').insertBefore(r.find(".smart-search-results")),d.selectedProductsMobile&&r.find(".sws-recent-products-wrapper").addClass("sws-recent-products-wrapper--hidden_mobile_mod"),v=r.find(".swiper-wrapper"),d.selectedProducts.forEac
2h(function(e){var t="";if(0<e.rating_count){for(var t='<div class="sws-product-rating" style="display:flex;gap:2px;float:left;">',s=1;s<=5;s++)e.average_rating>=s?t+='<span style="color:#ffc107;font-size:20px;">&#9733;</span>':e.average_rating>=s-.5?t+='<span style="color:#ffc107;font-size:20px;">&#9734;</span>':t+='<span style="color:#ddd;font-size:20px;">&#9734;</span>';t+="</div>"}var i="";"variable"===e.type?i=e.popup_html||"":e.add_to_cart&&(i='<div class="sws-atc-holder"><a href="?add-to-cart='+swsUtils.escHtml(e.id)+'" class="sws-vp-atc" data-sws-atc="1" data-product_id="'+swsUtils.escHtml(e.id)+'" aria-label="'+swsUtils.escHtml(window.swsL10n.i18n.addToCart)+'" rel="nofollow">'+swsUtils.escHtml(window.swsL10n.i18n.addToCart)+'</a></div><div class="smart-search-clear"></div>'),v.append('<div class="swiper-slide"><div class="sws-selected-products-item"><a class="sws-selected-products-picture" href="'+swsUtils.escHtml(e.permalink)+'" data-product_id="'+swsUtils.escHtml(e.id)+'"><picture>'+e.image+'</picture></a><div class="smart-search-post-category">'+swsUtils.escHtml(e.category)+'</div><a class="sws-selected-products-title" href="'+swsUtils.escHtml(e.permalink)+'" data-product_id="'+swsUtils.escHtml(e.id)+'">'+swsUtils.escHtml(e.name)+'</a><div class="sws-selected-products-meta">'+t+"<div>"+e.price+"</div>"+i+"</div></div></div>")}),f=function(){new Swiper("."+m,{slidesPerView:"auto",spaceBetween:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0}})},"undefined"!=typeof Swiper?f():window.swsL10n.swiperUrl&&((y=document.createElement("script")).src=window.swsL10n.swiperUrl,y.async=!0,y.onload=f,document.body.appendChild(y))),swsUtils.attachRecentSearchEvents(U,r,n,function(e){l=e},d.recentSearches,d.keywords),b=!500,C=function(){b=!0,l=swsUtils.readStorage("swsLatestSearches"),s.addClass("ssf-active"),setTimeout(function(){s.addClass("ssf-animated"),A(document.body).addClass("ysm-widget-opened"),n.focus()},100)},S=function(){b=!1,s.removeClass("ssf-active ssf-animated"),A(document.body).removeClass("ysm-widget-opened"),r.find(".sws-search-recent-wrapper").removeClass("sws-search-recent-wrapper--hidden_by_keywords"),r.find(".smart-search-keywords-wrapper").addClass("smart-search-keywords-wrapper--hidden_mod"),setTimeout(function(){n.val(""),a.css({maxHeight:0}),r.find(".smart-search-view-all-holder").hide(),U.find(".smart-search-suggestions").empty(),U.addClass("sws-hide-popup").removeClass("sws-no-results"),d.selectedProducts&&(r.find(".sws-recent-products-wrapper").show(),a.addClass("smart-search-results-hidden"))},500)},i.on("click",function(){C()}),T.length&&T.on("click",function(){C()}),A(document).on("keydown",function(e){"Tab"===e.key&&setTimeout(function(){A(document.activeElement).is(i)&&C()},0),"Escape"===e.key&&b&&S()}),e.on("click",function(){S()}),x.length&&x.on("click",function(){S()}),_=Math.min(window.screen.width,window.screen.height)<768?d.maxHeightMobile:d.maxHeight,d.disableAjax)||(k=0,n.outerWidth()&&(k=n.outerWidth()),-1!==navigator.userAgent.indexOf("Windows")&&-1!==navigator.userAgent.indexOf("Firefox")&&a.addClass("smart-search-firefox"),A(window).on("resize",swsUtils.debounce(function(){U.find(".smart-search-popup").css({width:n.outerWidth()+"px"})},150)),n.devbridgeAutocomplete(jQuery.extend({},swsUtils.buildBaseAutocompleteOptions(n,o,d,null),{onSearchStart:function(e){-1!==this.value.indexOf("  ")&&(this.value=this.value.replace(/\s+/g," ")),e.query=e.query.replace(/%20/g," "),this.value!==e.query+" "&&(swsUtils.showLoader(n,d),U.addClass("sws-hide-popup").removeClass("sws-no-results"),r.addClass("sws-hiding-results"),a.removeClass("smart-search-results-hidden"),r.find(".smart-search-view-all-holder").hide())},transformResult:function(e,t){e&&e.suggestions&&0<e.suggestions.length?swsUtils.pushToAnalytics({term:t,category:swsUtils.analyticCategoryTypes.search_term_has_results,wId:d.id}):swsUtils.pushToAnalytics({term:t,category:swsUtils.analyticCategoryTypes.search_term_no_results,wId:d.id});t="string"==typeof e?JSON.parse(e):e;return t&&t.search_log_id&&swsUtils.storeSearchLogId(d.id,t.search_log_id),t&&t.view_all_link&&""!==t.view_all_link&&(r.find(".smart-search-view-all-holder").length||r.addClass("has-viewall-button").append('<div class="smart-search-view-all-holder"></div>'),r.find(".smart-search-view-all-holder").html(t.view_all_link)),swsUtils.hideLoader(n),t},onSearchComplete:function(e,t){var s,i;e.trim()===n.val().trim()&&(k=k||n.outerWidth(),swsUtils.hideLoader(n),((s=r.find(".smart-search-view-all-holder")).length||d.keywords)&&(i=[],s.length&&i.push({element:s,callback:function(e){s.html(e.view_all_link)}}),d.keywords&&i.push({element:r.find(".smart-search-keywords-wrapper"),callback:function(e){c=e.keywords}}),swsUtils.resolveFromCache(n,d,e,i),d.keywords)&&(i=r.find(".sws-search-recent-wrapper"),r.find(".smart-search-keywords-wrapper").length||r.addClass("sws-has-keywords").prepend('<div class="smart-search-keywords-wrapper smart-search-keywords-wrapper--hidden_mod"><h3 class="smart-search-keywords-title">'+swsUtils.escHtml(d.keywordsLabel)+'</h3><ul class="smart-search-keywords-list"></ul></div>'),swsUtils.renderKeywordsList(r,c),swsUtils.syncKeywordsVisibility(r,i,c)),0<t.length?(U.removeClass("sws-hide-popup").removeClass("sws-no-results"),r.removeClass("sws-hiding-results"),a.removeClass("smart-search-results-hidden"),i=a.outerWidth(),t=d.columns,0===i&&(i=n.outerWidth(),a.width(i+"px")),i<200*t&&(t=Math.floor(i/200)),i=0,i=window.innerHeight-180-(s.length?60:0)-(i=d.recentSearches||d.keywords?768<=A(window).width()?45:110:i),a.css({maxHeight:Math.min(_,i)+"px"}),a.outerHeight()||(i=o.find(".smart-search-suggestions").outerHeight())&&
2(i=parseInt(i,10),a.height(_<i?_:i)),a.attr("data-columns",t).nanoScroller({contentClass:"smart-search-results-inner",alwaysVisible:!1,iOSNativeScrolling:!0}),d.recentSearches&&(l=swsUtils.pushRecentSearchesToLocalStorage(l,e)).length&&swsUtils.updateRecentSearches(r,!0),d.selectedProducts&&r.find(".sws-recent-products-wrapper").hide()):d.no_results_text.length?(U.removeClass("sws-hide-popup").addClass("sws-no-results"),r.removeClass("sws-hiding-results")):U.addClass("sws-hide-popup").addClass("sws-no-results"))},onHide:function(){},onInputValueChange:function(){var e=n.val().trim();e.length<d.minChars&&!e&&(r.find(".sws-search-recent-wrapper").removeClass("sws-search-recent-wrapper--hidden_by_keywords"),r.find(".smart-search-keywords-wrapper").addClass("smart-search-keywords-wrapper--hidden_mod"))}})).on("focus",function(){n.devbridgeAutocomplete().onValueChange()}))}})(jQuery),(()=>{var n=null,r=null;function p(e,t){n&&h(n),r=t||null,(s=n=e).parentNode!==document.body&&((i=document.createElement("span")).setAttribute("data-sws-vp-placeholder",s.id),i.style.display="none",s.parentNode.insertBefore(i,s),s._swsPlaceholder=i,document.body.appendChild(s)),e.setAttribute("aria-hidden","false"),t&&t.setAttribute("aria-expanded","true"),document.body.style.overflow="hidden",w(e);var s,i=e.querySelector(".sws-vp-body");i&&!i._swsScrollBound&&(i._swsScrollBound=!0,i.addEventListener("scroll",function(){l(e)})),requestAnimationFrame(function(){requestAnimationFrame(function(){e.classList.add("sws-vp-modal--open"),l(e)})})}function h(e){var t;e.classList.remove("sws-vp-modal--open"),e.setAttribute("aria-hidden","true"),r&&(r.setAttribute("aria-expanded","false"),r=null),document.body.style.overflow="",n=null,(t=(e=e)._swsPlaceholder)&&t.parentNode&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t),e._swsPlaceholder=null)}function g(e){var t={};return e.querySelectorAll('.sws-vp-option[aria-pressed="true"]').forEach(function(e){t[e.getAttribute("data-attr")]=e.getAttribute("data-value")}),t}function a(e){var r,t=e.getAttribute("data-variations");if(t){try{r=JSON.parse(t)}catch(e){return}var a=g(e);e.querySelectorAll(".sws-vp-group").forEach(function(e){var t=e.querySelector(".sws-vp-option");if(t){var s,i=t.getAttribute("data-attr"),n={};for(s in a)a.hasOwnProperty(s)&&s!==i&&(n[s]=a[s]);e.querySelectorAll(".sws-vp-option").forEach(function(e){var t=((e,t,s,i)=>{for(var n in e)if(e.hasOwnProperty(n)){var r,a=e[n],o=!0;for(r in i)if(i.hasOwnProperty(r)){var l=a[r];if(void 0!==l&&""!==l&&l!==i[r]){o=!1;break}}if(o){n=a[t];if(void 0===n||""===n||n===s)return!0}}return!1})(r,i,e.getAttribute("data-value"),n);e.disabled=!t,t||"true"!==e.getAttribute("aria-pressed")||e.setAttribute("aria-pressed","false")})}})}}function o(e){var t=e.querySelector(".sws-vp-atc");if(t){var s=g(e),i=e.querySelectorAll(".sws-vp-group").length;if(Object.keys(s).length<i)t.setAttribute("aria-disabled","true"),t.removeAttribute("data-variation-id"),t.href="#";else{var i=((e,t)=>{var s;
2if(e=e.getAttribute("data-variations")){try{s=JSON.parse(e)}catch(e){return null}var i,n=Object.keys(t);for(i in s)if(s.hasOwnProperty(i)){for(var r=s[i],a=!0,o=0;o<n.length;o++){var l=n[o];if(r.hasOwnProperty(l)&&""!==r[l]&&r[l]!==t[l]){a=!1;break}}if(a)return i}}return null})(e,s),n=(i?(e.getAttribute("data-product-id"),n=e.getAttribute("data-atc-base"),t.setAttribute("aria-disabled","false"),t.setAttribute("data-variation-id",i),t.href=((e,t,s)=>{var i,n=["add-to-cart="+encodeURIComponent(t),"product_id="+encodeURIComponent(t),"variation_id="+encodeURIComponent(t)];for(i in s)s.hasOwnProperty(i)&&n.push(encodeURIComponent("attribute_"+i.toLowerCase())+"="+encodeURIComponent(s[i]));return t=-1===e.indexOf("?")?"?":"&",e+t+n.join("&")})(n,i,s)):(t.setAttribute("aria-disabled","true"),t.removeAttribute("data-variation-id"),t.href="#"),e),s=i||null,t=n.querySelector(".sws-vp-price");if(t){if(s){e=n.getAttribute("data-variation-prices");if(e){try{r=JSON.parse(e)}catch(e){r={}}e=r[s]||r[String(s)]||"";if(e)return void(t.innerHTML=e)}}var r=n.getAttribute("data-default-price");r&&(t.innerHTML=r)}}}}function w(e){a(e);var t,s=g(e),i=e.querySelector(".sws-vp-cta"),n=e.getAttribute("data-atc-base");i&&n&&(i.href=((e,t)=>{var s,i=[];for(s in t)t.hasOwnProperty(s)&&i.push(encodeURIComponent("attribute_"+s.toLowerCase())+"="+encodeURIComponent(t[s]));return i.length&&(e+=(-1===e.indexOf("?")?"?":"&")+i.join("&")),e})(n,s)),o(e),i=s,(t=(n=e).querySelector(".sws-vp-image"))&&(i=((e,t)=>{var s,i,n=e.getAttribute("data-variation-images"),e=e.getAttribute("data-variations");if(n&&e){try{s=JSON.parse(n),i=JSON.parse(e)}catch(e){return null}var r=Object.keys(t);if(r.length)for(var a in i)if(i.hasOwnProperty(a)){for(var o=i[a],l=!0,c=0;c<r.length;c++){var d=r[c];if(o.hasOwnProperty(d)&&""!==o[d]&&o[d]!==t[d]){l=!1;break}}if(l&&s[a])return s[a]}}return null})(n,i)||n.getAttribute("data-default-image")||"")&&t.getAttribute("src")!==i&&(t.style.opacity="0",t.src=i,t.onload=function(){t.style.opacity="1"},t.onerror=function(){t.style.opacity="1"})}function l(e){var t,s,i,n=e.querySelector(".sws-vp-body");n&&(t=e.querySelector(".sws-vp-scroll-hint--up"),e=e.querySelector(".sws-vp-scroll-hint--down"),t)&&e&&(s=n.scrollTop,i=n.scrollHeight,n=n.clientHeight,4<s?t.classList.add("sws-vp-scroll-hint--visible"):t.classList.remove("sws-vp-scroll-hint--visible"),s+n<i-4?e.classList.add("sws-vp-scroll-hint--visible"):e.classList.remove("sws-vp-scroll-hint--visible"))}document.addEventListener("click",function(e){var t=e.target.closest(".sws-vp-trigger");if(t)e.preventDefault(),e.stopPropagation(),(u=document.getElementById(t.getAttribute("data-popup")))&&p(u,t);else if(e.target.closest(".sws-vp-close"))(u=e.target.closest(".sws-vp-modal"))&&h(u);else if(e.target.classList.contains("sws-vp-backdrop"))(u=e.target.closest(".sws-vp-modal"))&&h(u);else{t=e.target.closest(".sws-vp-option");if(t)s=t.closest(".sws-vp-group"),u=t.closest(".sws-vp-modal"),n="true"===t.getAttribute("aria-pressed"),s.querySelectorAll(".sws-vp-option").forEach(function(e){e.setAttribute("aria-pressed","false")}),t.setAttribute("aria-pressed",n?"false":"true"),u&&w(u);else{var s=e.target.closest(".sws-vp-atc");if(s)if((u=s.closest(".sws-vp-modal"))||"1"!==s.getAttribute("data-sws-atc")){if(u)if("true"===s.getAttribute("aria-disabled"))e.preventDefault();else{e.stopPropagation();t=s.getAttribute("data-variation-id");if(t){e.preventDefault();var i,n=u,r=s,a=window.swsL10n.ajaxUrl,o=n.getAttribute("data-product-id"),l=g(n),c=["action=sws_add_to_cart","product_id="+encodeURIComponent(o),"variation_id="+encodeURIComponent(t),"quantity=1"];for(i in l)l.hasOwnProperty(i)&&c.push(encodeURIComponent("attribute_"+i.toLowerCase())+"="+encodeURIComponent(l[i]));r.classList.add("sws-vp-atc--loading"),(n=new XMLHttpRequest).open("POST",a),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){r.classList.remove("sws-vp-atc--loading"),r.classList.add("sws-vp-atc--added"),window.jQuery&&jQuery(document.body).trigger("wc_fragment_refresh"),setTimeout(function(){r.classList.remove("sws-vp-atc--added"),r.setAttribute("aria-disabled","false")},2200)},n.onerror=function(){r.classList.remove("sws-vp-atc--loading"),r.setAttribute("aria-disabled","false")},n.send(c.join("&"))}}}else e.preventDefault(),e.stopPropagation(),o=(d=s).getAttribute("data-product_id"),t=window.swsL10n.ajaxUrl,o="action=sws_add_to_cart&product_id="+encodeURIComponent(o)+"&quantity=1",d.classList.add("sws-vp-atc--loading"),(a=new XMLHttpRequest).open("POST",t),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){d.classList.remove("sws-vp-atc--loading"),d.classList.add("sws-vp-atc--added"),window.jQuery&&jQuery(document.body).trigger("wc_fragment_refresh"),setTimeout(function(){d.classList.remove("sws-vp-atc--added")},2200)},a.onerror=function(){d.classList.remove("sws-vp-atc--loading")},a.send(o);else{var d,u,t=e.target.closest(".sws-vp-cta");t&&(u=t.closest(".sws-vp-modal"))&&h(u)}}}}),document.addEventListener("keydown",function(e){"Escape"!==e.key&&"Esc"!==e.key||!n||h(n)})})(),(n=>{n(function(){var e=window.swsL10n||{};if(e&&e.widgets)for(var t in e.widgets){var s,i=e.widgets[t];n(i.selector).length&&(s={id:t,serviceUrl:e.restUrl+"id="+encodeURIComponent(t),layout:i.layout,columns:i.columns,productSlug:i.productSlug,maxHeight:i.popupHeight,maxHeightMobile:i.popupHeightMobile,minChars:i.charCount,disableAjax:i.disableAjax,no_results_text:i.noResultsText,loaderIcon:i.loaderIcon,loaderImage:i.loaderImage,preventBadQueries:i.preventBadQueries,fullScreenMode:i.fullScreenMode,placeholder:i.placeholder,recentSearches:i.recentSearches,recentSearchesTitle:i.recentSearchesTitle,keywords:i.keywords,keywordsLabel:i.keywordsLabel,selectedCategories:i.selectedCategories,selectedCategoriesLabel:i.selectedCategoriesLabel,selectedCategoriesLocation:i.selectedCategoriesLocation,selectedCategoriesMobile:i.selectedCategoriesMobile,selectedCategoriesCount:i.selectedCategoriesCount,selectedCategoriesOnOpen:i.selectedCategoriesOnOpen,selectedProducts:i.selectedProducts,selectedProductsLabel:i.selectedProductsLabel,selectedProductsMobile:i.selectedProductsMobile,promoBannerLocation:i.promoBannerLocation,promoBannerImage:i.promoBannerImage,promoBannerLink:i.promoBannerLink,promoBannerOnOpe
2n:i.promoBannerOnOpen,selectedPromoBannerMobile:i.selectedPromoBannerMobile},n(i.selector).each(function(){var e=i.fullScreenMode,t=768<=n(window).width();n(this).hasClass("sws_only_search_icon")?e="enable":n(this).hasClass("sws_only_search_icon__mobile")?"enable"!==e&&"mobile_only"!==e&&(e="mobile_only"):n(this).hasClass("sws_only_search_icon__desktop")?e="enable":n(this).hasClass("sws_only_search_bar")&&(e="mobile_only"),"desktop_only"===e&&t||"mobile_only"===e&&!t||"enable"===e?swsAC.fullscreen(this,s):swsAC.inline(this,s)}))}})})(jQuery),(e=>{"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)})(function(p){var s={escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},i=27,n=9,r=13,a=38,o=39,l=40;function c(e,t){function s(){}var i=this,n={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:c.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:s,onSearchComplete:s,onSearchError:s,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,s){return-1!==e.value.toLowerCase().indexOf(s)},paramName:"query",transformResult:function(e){return"string"==typeof e?p.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};i.element=e,i.el=p(e),i.suggestions=[],i.badQueries=[],i.selectedIndex=-1,i.currentValue=i.element.value,i.intervalId=0,i.cachedResponse={},i.onChangeInterval=null,i.onChange=null,i.isLocal=!1,i.suggestionsContainer=null,i.noSuggestionsContainer=null,i.options=p.extend({},n,t),i.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},i.hint=null,i.hintValue="",i.selection=null,i.initialize(),i.setOptions(t)}c.utils=s,(p.Autocomplete=c).formatResult=function(e,t){t="("+s.escapeRegExChars(t)+")";return e.value.replace(new RegExp(t,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},c.prototype={killerFn:null,initialize:function(){var e,t=this,s="."+t.classes.suggestion,i=t.classes.selected,n=t.options;t.element.setAttribute("autocomplete","off"),t.killerFn=function(e){0!==p(e.target).closest(n.appendTo).length||e.target===t.element||n.safeContainer&&0<p(e.target).closest(n.safeContainer).length||p(e.target).closest('.sws-vp-modal[aria-hidden="false"]').length||(t.killSuggestions(),t.disableKillerFn())},t.noSuggestionsContainer=p('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),t.suggestionsContainer=c.utils.createNode(n.containerClass),(e=p(t.suggestionsContainer)).appendTo(n.appendTo),"auto"!==n.width&&e.width(n.width),e.on("mouseover.autocomplete",s,function(){t.activate(p(this).data("index"))}),e.on("mouseout.autocomplete",function(){t.selectedIndex=-1,e.children("."+i).removeClass(i)}),e.on("click.autocomplete",s,function(e){t.select(p(this).data("index"),e)}),t.fixPositionCapture=function(){t.visible&&t.fixPosition()},p(window).on("resize.autocomplete",t.fixPositionCapture),t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(){t.onFocus()}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)})},onFocus:function(){this.fixPosition(),0===this.options.minChars&&0===this.el.val().length&&this.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var t=this,s=t.options;p.extend(s,e),t.isLocal=p.isArray(s.lookup),t.isLocal&&(s.lookup=t.verifySuggestionsFormat(s.lookup)),s.orientation=t.validateOrientation(s.orientation,"bottom"),p(t.suggestionsContainer).css({"max-height":s.maxHeight+"px",width:s.width+"px","z-index":s.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearInterval(this.onChangeInterval),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e,t,s,i,n,r,a,o,l=this,c=p(l.suggestionsContainer),d=c.parent().get(0);d!==document.body&&!l.options.forceFixPosition||(r=l.options.orientation,e=c.outerHeight(),t=l.el.outerHeight(),s={top:(o=l.el.offset()).top,left
2:o.left},"auto"===r&&(a=p(window).height(),i=-(n=p(window).scrollTop())+o.top-e,n=n+a-(o.top+t+e),r=Math.max(i,n)===i?"top":"bottom"),s.top+="top"===r?-e:t,d!==document.body&&(a=c.css("opacity"),l.visible||c.css("opacity",0).show(),o=c.offsetParent().offset(),s.top-=o.top,s.left-=o.left,l.visible||c.css("opacity",a).hide()),"auto"===l.options.width&&(s.width=l.el.outerWidth()-2+"px"),c.css(s))},enableKillerFn:function(){p(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){p(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var e=this;e.stopKillSuggestions(),e.intervalId=window.setInterval(function(){e.visible&&(e.el.val(e.currentValue),e.hide()),e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e=this.el.val().length,t=this.element.selectionStart;return"number"==typeof t?t===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==l||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case i:t.el.val(t.currentValue),t.hide();break;case o:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case n:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case r:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case a:t.moveUp();break;case l:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case l:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),0<t.options.deferRequestBy?t.onChangeInterval=setInterval(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var e=this,t=e.options,s=e.el.val(),i=e.getQuery(s);e.selection&&e.currentValue!==i&&(e.selection=null,(t.onInvalidateSelection||p.noop).call(e.element)),clearInterval(e.onChangeInterval),e.currentValue=s,e.selectedIndex=-1,t.triggerSelectOnValidInput&&e.isExactMatch(i)?e.select(0):(t.onInputValueChange&&t.onInputValueChange(),i.length<t.minChars?e.hide():e.getSuggestions(i))},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){return p.trim(e)},getSuggestionsLocal:function(t){var e=this.options,s=t.toLowerCase(),i=e.lookupFilter,n=parseInt(e.lookupLimit,10),e={suggestions:p.grep(e.lookup,function(e){return i(e,t,s)})};return n&&e.suggestions.length>n&&(e.suggestions=e.suggestions.slice(0,n)),e},getSuggestions:function(i){var e,t,s,n=this,r=n.options,a=r.serviceUrl;r.params[r.paramName]=i,e=r.ignoreParams?null:r.params,!1!==r.onSearchStart.call(n.element,r.params)&&(p.isFunction(r.lookup)?r.lookup(i,function(e){n.suggestions=e.suggestions,n.suggest(),r.onSearchComplete.call(n.element,i,e.suggestions)}):(s=n.isLocal?n.getSuggestionsLocal(i):(p.isFunction(a)&&(a=a.call(n.element,i)),t=a+"?"+p.param(e||{}),n.cachedResponse[t]))&&p.isArray(s.suggestions)?(n.suggestions=s.suggestions,n.suggest(),r.onSearchComplete.call(n.element,i,s.suggestions)):n.isBadQuery(i)?r.onSearchComplete.call(n.element,i,[]):(n.abortAjax(),s={url:a,data:e,type:r.type,dataType:r.dataType},p.extend(s,r.ajaxSettings),n.currentRequest=p.ajax(s).done(function(e){n.currentRequest=null,e=r.transformResult(e,i),n.processResponse(e,i,t),r.onSearchComplete.call(n.element,i,e.suggestions)}).fail(function(e,t,s){r.onSearchError.call(n.element,i,e,t,s)})))},isBadQuery:function(e){if(this.options.preventBadQueries)for(var t=this.badQueries,s=t.length;s--;)if(0===e.indexOf(t[s]))return!0;return!1},hide:function(){var e=this,t=p(e.suggestionsContainer);p.isFunction(e.options.onHide)&&e.visible&&e.options.onHide.call(e.element,t),e.visible=!1,e.selectedIndex=-1,clearInterval(e.onChangeInterval),p(e.suggestionsContainer).hide(),e.signalHint(null)},suggest:function(){var e,t,s,i,n,r,a,o,l,c,d,u;0===this.suggestions.length?this.options.showNoSuggestionNotice?this.noSuggestions():this.hide():(t=(e=this).options,s=t.groupBy,i=t.formatResult,n=e.getQuery(e.currentValue),r=e.classes.suggestion,a=e.classes.selected,o=p(e.suggestionsContainer),l=p(e.n
2oSuggestionsContainer),c=t.beforeRender,d="",t.triggerSelectOnValidInput&&e.isExactMatch(n)?e.select(0):(p.each(e.suggestions,function(e,t){s&&(d+=(e=>(e=e.data[s],u===e?"":'<div class="autocomplete-group"><strong>'+(u=e)+"</strong></div>"))(t)),d+='<div class="'+r+'" data-index="'+e+'">'+i(t,n)+"</div>"}),this.adjustContainerWidth(),l.detach(),o.html(d),p.isFunction(c)&&c.call(e.element,o),e.fixPosition(),o.show(),t.autoSelectFirst&&(e.selectedIndex=0,o.scrollTop(0),o.children("."+r).first().addClass(a)),e.visible=!0,e.findBestHint()))},noSuggestions:function(){var e=p(this.suggestionsContainer),t=p(this.noSuggestionsContainer);this.adjustContainerWidth(),t.detach(),e.empty(),e.append(t),this.fixPosition(),e.show(),this.visible=!0},adjustContainerWidth:function(){var e=this.options,t=p(this.suggestionsContainer);"auto"===e.width&&(e=this.el.outerWidth()-2,t.width(0<e?e:300))},findBestHint:function(){var i=this.el.val().toLowerCase(),n=null;i&&(p.each(this.suggestions,function(e,t){var s=0===t.value.toLowerCase().indexOf(i);return s&&(n=t),!s}),this.signalHint(n))},signalHint:function(e){var t="",s=this;e&&(t=s.currentValue+e.value.substr(s.currentValue.length)),s.hintValue!==t&&(s.hintValue=t,s.hint=e,(this.options.onHint||p.noop)(t))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?p.map(e,function(e){return{value:e,data:null}}):e},validateOrientation:function(e,t){return e=p.trim(e||"").toLowerCase(),e=-1===p.inArray(e,["auto","bottom","top"])?t:e},processResponse:function(e,t,s){var i=this,n=i.options;e.suggestions=i.verifySuggestionsFormat(e.suggestions),n.noCache||(i.cachedResponse[s]=e,n.preventBadQueries&&0===e.suggestions.length&&i.badQueries.push(t)),t===i.getQuery(i.currentValue)&&(i.suggestions=e.suggestions,i.suggest())},activate:function(e){var t=this,s=t.classes.selected,i=p(t.suggestionsContainer),n=i.find("."+t.classes.suggestion);return i.find("."+s).removeClass(s),t.selectedIndex=e,-1!==t.selectedIndex&&n.length>t.selectedIndex?(i=n.get(t.selectedIndex),p(i).addClass(s),i):null},selectHint:function(){var e=p.inArray(this.hint,this.suggestions);this.select(e)},select:function(e,t){t&&t.target&&!p(t.target).hasClass("smart-search-add_to_cart")&&!p(t.target).closest(".sws-vp-trigger-wrap, .sws-vp-modal").length&&this.onSelect(e)},moveUp:function(){var e=this;-1!==e.selectedIndex&&(0===e.selectedIndex?(p(e.suggestionsContainer).children().first().removeClass(e.classes.selected),e.selectedIndex=-1,e.el.val(e.currentValue),e.findBestHint()):e.adjustScroll(e.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var t,s,i,n=this,r=n.activate(e);r&&(t=p(r).outerHeight(),r=r.offsetTop,i=(s=p(n.suggestionsContainer).scrollTop())+n.options.maxHeight-t,r<s?p(n.suggestionsContainer).scrollTop(r):i<r&&p(n.suggestionsContainer).scrollTop(r-n.options.maxHeight+t),n.options.preserveInput||n.el.val(n.getValue(n.suggestions[e].value)),n.signalHint(null))},onSelect:function(e){var t=this,s=t.options.onSelect,e=t.suggestions[e];e&&(t.signalHint(null),t.suggestions=[],t.selection=e,p.isFunction(s))&&s.call(t.element,e)},getValue:function(e){var t,s=this.options.delimiter;return!s||1===(s=(t=this.currentValue).split(s)).length?e:t.substr(0,t.length-s[s.length-1].length)+e},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),this.disableKillerFn(),p(window).off("resize.autocomplete",this.fixPositionCapture),p(this.suggestionsContainer).remove()}},p.fn.autocomplete=p.fn.devbridgeAutocomplete=function(s,i){var n="autocomplete";return 0===arguments.length?this.first().data(n):this.each(function(){var e=p(this),t=e.data(n);"string"==typeof s?t&&"function"==typeof t[s]&&t[s](i):(t&&t.dispose&&t.dispose(),t=new c(this,s),e.data(n,t))})}}),(t=>{"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=t(require("jquery"),window,document):t(jQuery,window,document)})(function(i,r,s){var l,c,n,d,t,u,p,h,a,o,g,w,m,v,f,y,b,C,S,_,k,x,T;function e(e,t){this.el=e,this.options=t,c=c||b(),this.$el=i(this.el),this.doc=i(this.options.documentContext||s),this.win=i(this.options.windowContext||r),this.body=this.doc.find("body"),this.$content=this.$el.children("."+this.options.contentClass),this.$content.attr("tabindex",this.options.tabIndex||0),this.content=this.$content[0],this.previousPosition=0,this.options.iOSNativeScrolling&&null!=this.el.style.WebkitOverflowScrolling?this.nativeScrolling():this.generate(),this.createEvents(),this.addEvents(),this.reset()}y={paneClass:"nano-pane",sliderClass:"nano-slider",contentClass:"nano-content",enabledClass:"has-scrollbar",flashedClass:"flashed",activeClass:"active",iOSNativeScrolling:!1,preventPageScrolling:!1,disableResize:!1,alwaysVisible:!1,flashDelay:1500,sliderMinHeight:20,sliderMaxHeight:null,documentContext:null,windowContext:null},w="scroll",t="mousedown",u="mouseenter",p="mousemove",a="mousewheel",h="mouseup",g="resize",v="up",n="DOMMouseScroll",d="down",m="touchmove",l="Microsoft Internet Explorer"===r.navigator.appName&&/msie 7./i.test(r.navigator.appVersion)&&r.ActiveXObject,c=null,_=r.requestAnimationFrame,f=r.cancelAnimationFrame,x=s.createElement("div").style,T=(()=>{for(var e,t=["t","webkitT","MozT","msT","OT"],s=e=0,i=t.length;e<i;s=++e)if(t[s],t[s]+"ransform"in x)return t[s].substr(0,t[s].length-1);return!1})(),k=function(e){return!1!==T&&(""===T?e:T+e.charAt(0).toUpperCase()+e.substr(1))}("transform"),C=!1!==k,b=function(){var e=s.createElement("div"),t=e.style;return t.position="absolute",t.width="100px",t.height="100px",t.overflow=w,t.top="-9999px",s.body.appendChild(e),t=e.offsetWidth-e.clientWidth,s.body.removeChild(e),t},S=function(){var e=r.navigator.userAgent,t=/(?=.+Mac OS X)(?=.+Firefox)/.test(e);return!!t&&(e=(e=/Firefox\/\d{2}\./.exec(e))&&e[0].replace(/\D+/g,""),t)&&23<+e},e.prototype.preventScrolling=function(e,t){this.isActive&&(e.type===n?(t===d&&0<e.originalEvent.detail||t===v&&e.originalEvent.detail<0)&&e.preventDefault():e.type===a&&e.originalEvent&&e.originalEvent.wheelDelta&&(t===d&&e.originalEvent.wheelDelta<0||t===v&&0<e.originalEvent.wheelDelta)&&e.preventDefault())},e.prototype.nativeScrolling=function(){this.$content.css({WebkitOverflowScrolling:"touch"}),this.iOSNativeScrolling=!0,this.isActive=!0},e.prototype.updateScrollValues=function(){var e=this.content;this.maxScrollTop=e.scrollHeight-e.clientHeight,this.prevScrollTop=this.contentScrollTop||0,this.contentScrollTop=e.scrollTop,e=this.contentScrollTop>this.previousPosition?"down":this.contentScrollTop<this.previousPosition?"up":"same",this.previousPosition=this.contentScrollTop,"same"!=e&&this.$el.trigger("update",{position:this.contentScrollTop,maximum:this.maxScrollTop,direction:e}),this.iOSNativeScrolling||(this.maxSliderTop=this.paneHeight-this.sliderHeight,this.sliderTop=0===this.maxScrollTop?0:this.contentScrollTop*this.maxSliderTop/this.maxScrollTop)},e.prototype.setOnScrollStyles=function(){var e,t;C?(e={})[k]="translate(0, "+this.sliderTop+"px)":e={top:this.sliderTop},_?(f&&this.scrollRAF&&f(this.scrollRAF),this.scrollRAF=_((t=this,function(){return t.scrollRAF=null,t.slider.css(e)}))):this.slider.css(e)},e.prototype.createEvents=function(){var t,s,i,n,r,a,o,l;this.events={down:function(e){return l.isBeingDragged=!0,l.offsetY=e.pageY-l.slider.offset().top,l.slider.is(e.target)||(l.offsetY=0),l.pane.addClass(l.options.activeClass),l.doc.bind(p,l.events.drag).bind(h,l.events.up),l.body.bind(u,l.events.enter),!1},drag:function(e){return o.sliderY=e.pageY-o.$el.offset().top-o.paneTop-(o.offsetY||.5*o.sliderHeight),o.scroll(),o.contentScrollTop>=o.maxScrollTop&&o.prevScrollTop!==o.maxScrollTop?o.$el.trigger("scrollend"):0===o.contentScrollTop&&0!==o.prevScrollTop&&o.$el.trigger("scrolltop"),!1},up:function(e){return a.isBeingDragged=!1,a.pane.removeClass(a.options.activeClass),a.doc.unbind(p,a.events.drag).unbind(h,a.events.up),a.body.unbind(u,a.events.enter),!1},resize:function(e){r.reset()},panedown:function(e){return n.sliderY=(e.offsetY||e.originalEvent.layerY)-.5*n.sliderHeight,n.scroll(),n.events.down(e),!1},scroll:function(e){i.updateScrollValues(),i.isBeingDragged||(i.iOSNativeScrolling||(i.sliderY=i.sliderTop,i.setOnScrollStyles()),null!=e&&(i.maxScrollTop<=i.contentScrollTop?(i.options.preventPageScrolling&&i.preventScrolling(e,d),i.prevScrollTop!==i.maxScrollTop&&i.$el.trigger("scrollend")):0===i.contentScrollTop&&(i.options.preventPageScrolling&&i.preventScrolling(e,v),0!==i.prevScrollTop)&&i.$el.trigger("scrolltop")))},wheel:function(e){if(null!=e)return(e=e.delta||e.wheelDelta||e.originalEvent&&e.originalEvent.wheelDelta||-e.detail||e.originalEvent&&-e.originalEvent.detail)&&(s.sliderY+=-e/3),s.scroll(),!1},enter:(t=s=i=n=r=a=o=l=this,function(e){return t.isBeingDragged&&1!==(e.buttons||e.which)?(e=t.events).up.apply(e,arguments):void 0})}},e.prototype.addEvents=function(){var e;this.removeEvents(),e=this.events,this.options.disableResize||this.win.bind(g,e[g]),this.iOSNativeScrolling||(this.slider.bind(t,e[d]),this.pane.bind(t,e.panedown).bind(a+" "+n,e.wheel)),this.$content.bind(w+" "+a+" "+n+" "+m,e[w])},e.prototype.removeEvents=function(){var e=this.events;this.win.unbind(g,e[g]),this.iOSNativeScrolling||(this.slider.unbind(),this.pane.unbind()),this.$content.unbind(w+" "+a+" "+n+" "+m,e[w])},e.prototype.generate=function(){var e,t,s=this.options,i=s.paneClass,n=s.sliderClass;return(t=this.$el.children("."+i)).length||t.children("."+n).length||this.$el.append('<div class="'+i+'"><div class="'+n+'" /></div>'),this.pane=this.$el.children("."+i),this.slider=this.pane.find("."+n),0===c&&S()?e={right:-14,paddingRight:+r.getComputedStyle(this.content,null).getPropertyValue("padding-right").replace(/[^0-9.]+/g,"")+14}:c&&(e={right:-c},this.$el.addClass(s.enabledClass)),null!=e&&this.$content.css(e),this},e.prototype.restore=function(){this.stopped=!1,this.iOSNativeScrolling||this.pane.show(),this.addEvents()},e.prototype.reset=function(){var e,t,s,i,n,r,a,o;if(!this.iOSNativeScrolling)return this.$el.find("."+this.options.paneClass).length||this.generate().stop(),this.stopped&&this.restore(
2),s=(t=(e=this.content).style).overflowY,l&&this.$content.css({height:this.$content.height()}),a=e.scrollHeight+c,0<(r=parseInt(this.$el.css("max-height"),10))&&(this.$el.height(""),this.$el.height(e.scrollHeight>r?r:e.scrollHeight)),i=(r=this.pane.outerHeight(!1))+(n=parseInt(this.pane.css("top"),10))+parseInt(this.pane.css("bottom"),10),(o=Math.round(i/a*r))<this.options.sliderMinHeight?o=this.options.sliderMinHeight:null!=this.options.sliderMaxHeight&&o>this.options.sliderMaxHeight&&(o=this.options.sliderMaxHeight),s===w&&t.overflowX!==w&&(o+=c),this.maxSliderTop=i-o,this.contentHeight=a,this.paneHeight=r,this.paneOuterHeight=i,this.sliderHeight=o,this.paneTop=n,this.slider.height(o),this.events.scroll(),this.pane.show(),this.isActive=!0,e.scrollHeight===e.clientHeight||this.pane.outerHeight(!0)>=e.scrollHeight&&s!==w?(this.pane.hide(),this.isActive=!1):this.el.clientHeight===e.scrollHeight&&s===w?this.slider.hide():this.slider.show(),this.pane.css({opacity:this.options.alwaysVisible?1:"",visibility:this.options.alwaysVisible?"visible":""}),"static"!==(t=this.$content.css("position"))&&"relative"!==t||(a=parseInt(this.$content.css("right"),10))&&this.$content.css({right:"",marginRight:a}),this;this.contentHeight=this.content.scrollHeight},e.prototype.scroll=function(){if(this.isActive)return this.sliderY=Math.max(0,this.sliderY),this.sliderY=Math.min(this.maxSliderTop,this.sliderY),this.$content.scrollTop(this.maxScrollTop*this.sliderY/this.maxSliderTop),this.iOSNativeScrolling||(this.updateScrollValues(),this.setOnScrollStyles()),this},e.prototype.scrollBottom=function(e){if(this.isActive)return this.$content.scrollTop(this.contentHeight-this.$content.height()-e).trigger(a),this.stop().restore(),this},e.prototype.scrollTop=function(e){if(this.isActive)return this.$content.scrollTop(+e).trigger(a),this.stop().restore(),this},e.prototype.scrollTo=function(e){if(this.isActive)return this.scrollTop(this.$el.find(e).get(0).offsetTop),this},e.prototype.stop=function(){return f&&this.scrollRAF&&(f(this.scrollRAF),this.scrollRAF=null),this.stopped=!0,this.removeEvents(),this.iOSNativeScrolling||this.pane.hide(),this},e.prototype.destroy=function(){return this.stopped||this.stop(),!this.iOSNativeScrolling&&this.pane.length&&this.pane.remove(),l&&this.$content.height(""),this.$content.removeAttr("tabindex"),this.$el.hasClass(this.options.enabledClass)&&(this.$el.removeClass(this.options.enabledClass),this.$content.css({right:""})),this},e.prototype.flash=function(){var e;if(!this.iOSNativeScrolling&&this.isActive)return this.reset(),this.pane.addClass(this.options.flashedClass),setTimeout(function(){e.pane.removeClass(e.options.flashedClass)},(e=this).options.flashDelay),this},o=e,i.fn.nanoScroller=function(s){return this.each(function(){var e,t;if((t=this.nanoscroller)||(e=i.extend({},y,s),this.nanoscroller=t=new o(this,e)),s&&"object"==typeof s){if(i.extend(t.options,s),null!=s.scrollBottom)return t.scrollBottom(s.scrollBottom);if(null!=s.scrollTop)return t.scrollTop(s.scrollTop);if(s.scrollTo)return t.scrollTo(s.scrollTo);if("bottom"===s.scroll)return t.scrollBottom(0);if("top"===s.scroll)return t.scrollTop(0);if(s.scroll&&s.scroll instanceof i)return t.scrollTo(s.scroll);if(s.stop)return t.stop();if(s.destroy)return t.destroy();if(s.flash)return t.flash()}return t.reset()})},i.fn.nanoScroller.Constructor=o});
3
4

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.