<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";var neighborhoodsQuery,LEASE_PRICE_RANGE,SALE_PRICE_RANGE,priceTimeout,isSearchPage,isIntersectionPage,allresults=[],ajaxCalls=[],recentSearches=[],popularPlaces=[],noResults=[{value:"No Results"}],lastSearchResult={},listingTypeChanged=!1,REGULAR_SORTBY_OPTIONS={"RECENTLY LISTED":"createdOnDesc","RECENTLY UPDATED":"updatedOnDesc","PRICE LOW-HIGH":"listPriceAsc","PRICE HIGH-LOW":"listPriceDesc"},RECENTLY_SOLD_SORTBY_OPTIONS={"SOLD DATE":"soldDateDesc","PRICE LOW-HIGH":"soldPriceAsc","PRICE HIGH-LOW":"soldPriceDesc"},RECENTLY_LEASED_SORTBY_OPTIONS={"LEASED DATE":"soldDateDesc","PRICE LOW-HIGH":"soldPriceAsc","PRICE HIGH-LOW":"soldPriceDesc"};function initPlacesAPI(){window.map=new google.maps.Map(document.getElementById("bar-map"));var e={bounds:new google.maps.LatLngBounds(new google.maps.LatLng(41.242,29.215),new google.maps.LatLng(40.518,30.37))};window.placeService=new google.maps.places.PlacesService(window.map),window.atocompleteService=new google.maps.places.AutocompleteService(e)}var zoomMap={locality:13,sublocality:14,postal_code:16};function getZoom(e){for(const t of e)if(zoomMap[t])return zoomMap[t];return 14}function makeRandomStr(e){for(var t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=i.length,o=0;o&lt;e;o++)t+=i.charAt(Math.floor(Math.random()*s));return t}function updateRecentSearches(e){e&amp;&amp;(-1===recentSearches.findIndex(t=&gt;t.value===e)&amp;&amp;(recentSearches.unshift({label:e,origin:"searches",value:e}),recentSearches.length&gt;10&amp;&amp;recentSearches.pop(),Cookies.set("recentSearches",JSON.stringify(recentSearches))))}function filterListings(){var e=$(".sort-listing.desktop-view").is(":visible")?$(".sort-listing.desktop-view select option:selected").val():$(".filters-city .sort-listing select option:selected").val();e?Cookies.set("sortBy",e):Cookies.remove("sortBy");var t=$("input[type=radio][name=bedrooms]").length&gt;0?$("input[type=radio][name=bedrooms]:checked").val():$("input[type=radio][name=bedrooms-search]:checked").val();t?Cookies.set("minBeds",t):Cookies.remove("minBeds");var i=$("input[type=radio][name=bathrooms]").length&gt;0?$("input[type=radio][name=bathrooms]:checked").val():$("input[type=radio][name=bathrooms-search]:checked").val();i?Cookies.set("minBaths",i):Cookies.remove("minBaths");var s=$("input[type=radio][name=listingType]").length&gt;0?$("input[name=listingType]:checked").val():$("input[name=listingType-search]:checked").val(),o=$(".budget-range").slider("option","max"),n=$(".budget-range").slider("option","min");if(s){Cookies.set("listingType",s);var a=Cookies.get("minPrice");(!a||a&gt;o||a&lt;n)&amp;&amp;(Cookies.remove("minPrice"),Cookies.remove("maxPrice"))}var l=$(".budget-range").slider("values");if(l[0]!==n?Cookies.set("minPrice",l[0]):Cookies.remove("minPrice"),l[1]!==o?Cookies.set("maxPrice",l[1]):Cookies.remove("maxPrice"),$(".styles input:checked").length&gt;0){var r=[];$(".styles input:checked").each(function(){$(this).val()&amp;&amp;!r.includes($(this).val())&amp;&amp;r.push($(this).val())}),Cookies.set("style",r)}else Cookies.remove("style");if($(".types input:checked").length&gt;0){var c=[];$(".types input:checked").each(function(){$(this).val()&amp;&amp;!c.includes($(this).val())&amp;&amp;c.push($(this).val())}),Cookies.set("propertyType",c)}else Cookies.remove("propertyType")}function clearTags(e){var t=new URLSearchParams(window.location.search);t.delete("n"),t.delete("c"),Cookies.remove("n"),Cookies.remove("c");var i,s=t.toString();i=s?window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+s:window.location.protocol+"//"+window.location.host+window.location.pathname,window.history.pushState({path:i},"",i),localStorage.removeItem("polygons")}function nFormatter(e,t){var i,s=[{value:1,symbol:""},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}];for(i=s.length-1;i&gt;0&amp;&amp;!(e&gt;=s[i].value);i--);return(e/s[i].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+s[i].symbol}$(function(){isSearchPage=!!window.location.pathname.match(/\/search|real-estate/g),isIntersectionPage=6===window.location.pathname.split("/").length,$("#leasePriceRange").length&amp;&amp;(LEASE_PRICE_RANGE=JSON.parse($("#leasePriceRange").val()),SALE_PRICE_RANGE=JSON.parse($("#salePriceRange").val()));var e=Cookies.get("recentSearches");e&amp;&amp;(recentSearches=JSON.parse(e));var t,i,s=new URLSearchParams(window.location.search),o=""===s.toString()||"true"===s.get("useCookies");isIntersectionPage||(o?(t=Cookies.get("n"),i=Cookies.get("c")):(t=s.get("n"),i=s.get("c"))),t?($(".filter-tags").append("&lt;div class='tag_list'&gt;&lt;span class='neighborhood'&gt;"+t+"&lt;/span&gt;&lt;a href='javascript:' class='remove' title='"+t+"'&gt;☓&lt;/a&gt;&lt;/div&gt;"),neighborhoodsQuery=t,Cookies.set("n",t)):Cookies.remove("n"),!t&amp;&amp;i&amp;&amp;($(".filter-tags").append("&lt;div class='tag_list'&gt;&lt;span class='city'&gt;"+i+"&lt;/span&gt;&lt;a href='javascript:' class='remove' title='"+i+"'&gt;☓&lt;/a&gt;&lt;/div&gt;"),neighborhoodsQuery=i,Cookies.set("c",i)),neighborhoodsQuery?$(".filter-tags").show():($(".mobile-filter-keywords").addClass("no-keywords"),$(".mobile-tags").addClass("inactive")),$(".search-form__submit").click(function(e){filterListings(),window.location="/search"});$.ajax({url:"/locations",method:"get",data:{includePolygons:isSearchPage},success:function(e){var s=e.neighborhoods,o=e.cities.map(e=&gt;({value:e.name,label:e.name,origin:"places",subOrigin:"city",location:e.location,polygon:e.polygon}));allresults=allresults.concat(o);var n=s.map(e=&gt;({value:e.name,label:e.name,origin:"places",subOrigin:"neighborhood",location:e.location,coordinates:e.coordinates,city:e.city}));allresults=allresults.concat(n),popularPlaces=s.slice(0,10).map(e=&gt;({value:e.name,label:e.name,origin:"popular-places",subOrigin:"neighborhood"})),"function"==typeof setLocationBounds&amp;&amp;i&amp;&amp;setLocationBounds(i,t)},error:function(e){console.log(e)}}),$("input[name=listingType], input[name=listingType-search]").change(function(){listingTypeChanged=!0,$("input[name=listingType][value="+$(this).val()+"], input[name=listingType-search][value="+$(this).val()+"]").prop("checked",!0),updatePriceSlider($(this).val())}),$(".styles input").change(function(){$(this).val()?($(`.styles input[value="${$(this).val()}"]`).prop("checked",this.checked),$('.styles input[name="Any"], .styles input[name="Any-search"]').prop("checked",!1)):($(".styles input").not(this).prop("checked",!1),$('.styles input[name="Any"], .styles input[name="Any-search"]').prop("checked",!0))}),setSearchFilters(),window.PubSub&amp;&amp;window.PubSub.subscribe("quick_search.rerender",setSearchFilters),$.widget("ui.autocomplete",{version:"1.10.4",defaultElement:"&lt;input&gt;",options:{appendTo:null,autoFocus:!1,delay:100,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,t,i,s=this.element[0].nodeName.toLowerCase(),o="textarea"===s,n="input"===s;this.isMultiLine=!!o||!n&amp;&amp;this.element.prop("isContentEditable"),this.valueMethod=this.element[o||n?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","chrome-off").attr("name",makeRandomStr(4)),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return e=!0,i=!0,void(t=!0);e=!1,i=!1,t=!1;var o=$.ui.keyCode;switch(s.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",s);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case o.UP:e=!0,this._keyEvent("previous",s);break;case o.DOWN:e=!0,this._keyEvent("next",s);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&amp;&amp;(e=!0,s.preventDefault(),this.menu.select(s));break;case o.TAB:this.menu.active&amp;&amp;this.menu.select(s);break;case o.ESCAPE:this.menu.element.is(":visible")&amp;&amp;(this._value(this.term),this.close(s),s.preventDefault());break;default:t=!0,this._searchTimeout(s)}},keypress:function(i){if(e)return e=!1,void(this.isMultiLine&amp;&amp;!this.menu.element.is(":visible")||i.preventDefault());if(!t){var s=$.ui.keyCode;switch(i.keyCode){case s.PAGE_UP:this._move("previousPage",i);break;case s.PAGE_DOWN:this._move("nextPage",i);break;case s.UP:this._keyEvent("previous",i);break;case s.DOWN:this._keyEvent("next",i)}}},input:function(e){if(i)return i=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=$("&lt;ul&gt;").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var t=this.menu.element[0];$(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(i){i.target===e.element[0]||i.target===t||$.contains(t,i.target)||e.close()})})},menufocus:function(e,t){if(this.isNewMenu&amp;&amp;(this.isNewMenu=!1,e.originalEvent&amp;&amp;/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){$(e.target).trigger(e.originalEvent)});var i=t.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:i})?e.originalEvent&amp;&amp;/^key/.test(e.originalEvent.type)&amp;&amp;this._value(i.value):this.liveRegion.text(i.value)},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&amp;&amp;(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),this._trigger("select",e,{item:i}),this.term="",i&amp;&amp;"searches"===i.origin||this.close(e),this.selectedItem=i}}),this.liveRegion=$("&lt;span&gt;",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&amp;&amp;this._initSource(),"appendTo"===e&amp;&amp;this.menu.element.appendTo(this._appendTo()),"disabled"===e&amp;&amp;t&amp;&amp;this.xhr&amp;&amp;this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&amp;&amp;(e=e.jquery||e.nodeType?$(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,t,i=this;$.isArray(this.options.source)?(e=this.options.source,this.source=function(t,i){i($.ui.autocomplete.filter(e,t.term))}):"string"==typeof this.options.source?(t=this.options.source,this.source=function(e,s){i.xhr&amp;&amp;i.xhr.abort(),i.xhr=$.ajax({url:t,data:e,dataType:"json",success:function(e){s(e)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&amp;&amp;(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length&lt;this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return $.proxy(function(t){e===this.requestIndex&amp;&amp;(console.log("content: ",t),this.__response(t)),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&amp;&amp;(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&amp;&amp;e&amp;&amp;e.length&amp;&amp;!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&amp;&amp;(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&amp;&amp;this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&amp;&amp;e[0].label&amp;&amp;e[0].value?e:$.map(e,function(e){return"string"==typeof e?{label:e,value:e}:$.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position($.extend({of:this.element},this.options.position)),this.options.autoFocus&amp;&amp;this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,t){var i=this,s="";$.each(t,function(t,o){var n;o.origin!=s&amp;&amp;("popular-places"==o.origin&amp;&amp;e.append("&lt;li class='ui-autocomplete-category ui-autocomplete-category--popular-places'&gt;Popular Places&lt;/li&gt;"),"searches"==o.origin&amp;&amp;e.append("&lt;li class='ui-autocomplete-category ui-autocomplete-category--searches'&gt;Recent Searches&lt;/li&gt;"),"properties"==o.origin?e.append("&lt;li class='ui-autocomplete-category ui-autocomplete-category--properties'&gt;Listings&lt;/li&gt;"):"places"==o.origin&amp;&amp;e.append("&lt;li class='ui-autocomplete-category ui-autocomplete-category--places'&gt;"+o.origin+"&lt;/li&gt;"),s=o.origin),n=i._renderItemData(e,o),o.origin&amp;&amp;(n.attr("aria-label",o.origin+" : "+o.label),n.addClass(o.origin))})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){const i={Sus:"Suspended",Exp:"Expired",Sld:"Sold",Ter:"Terminated",Dft:"Deal Fell Through",Lsd:"Leased",Sc:"Sold Conditionally",Sce:"Sold Conditionally with Escape Clause",Lc:"Leased Conditionally",Pc:"Price Change",Ext:"Extension",New:"New"};var s=this.term.split(" ");return t.label=t.value,"properties"!=t.origin&amp;&amp;"places"!=t.origin||s.forEach(e=&gt;{t.label=t.label.replace(new RegExp("(?![^&amp;;]+;)(?!&lt;[^&lt;&gt;]*)("+$.ui.autocomplete.escapeRegex(e)+")(?![^&lt;&gt;]*&gt;)(?![^&amp;;]+;)","gi"),"&lt;strong&gt;$1&lt;/strong&gt;")}),"properties"==t.origin?$('&lt;li class="listings-list"&gt;').append(`\n            &lt;div class='property-listing stretched'&gt;\n              &lt;img class='search-img ${t.blur}' src='${t.icon}?class=small' /&gt;\n              &lt;div class='search-label'&gt;${t.label}&lt;/div&gt;\n              &lt;div class='mls'&gt;\n                &lt;p&gt;${t.id}&lt;/p&gt;\n                &lt;p class="last-status"&gt;&lt;span class="${t.lastStatus}"&gt;${i[t.lastStatus]||t.lastStatus}&lt;span&gt;&lt;/p&gt;\n              &lt;/div&gt;\n            &lt;/div&gt;\n          `).appendTo(e):$("&lt;li&gt;").append("&lt;div class='property-listing no-wrap'&gt;"+t.label.replace(/ /g,"&amp;nbsp;")+"&lt;/div&gt;").appendTo(e)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&amp;&amp;/^previous/.test(e)||this.menu.isLastItem()&amp;&amp;/^next/.test(e)?(this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&amp;&amp;!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),$(".search-input, .mobile-filter-keywords__input, #home-search").autocomplete({source:function(e,t){var i,s,o=(i=e.term,s=i.toLowerCase(),s=s.replace(/[^A-Za-z0-9] -/g,"")).trim();if(lastSearchResult.term===o&amp;&amp;!1===listingTypeChanged)return $(".loader-block").hide(),t(lastSearchResult.results);if(!o)return $(".loader-block").hide(),t(recentSearches.concat(popularPlaces));var n=this.term.toLowerCase(),a=[];lastSearchResult.term=o,lastSearchResult.results=a;var l={q:o};const r=this.element[0],c=!!r&amp;&amp;"true"===r.dataset.useListingType;l.listingType=c?Cookies.get("listingType"):"all",listingTypeChanged=!1;const u=localStorage.getItem("mapboxSessionId")||makeRandomStr(16);if(localStorage.setItem("mapboxSessionId",u),o.length&gt;2){let e=ajaxCalls.pop();e&amp;&amp;e.abort(),ajaxCalls.push($.ajax({type:"GET",url:`/autocomplete/listings?mapboxSessionId=${u}`,data:l,success:function(e){if(ajaxCalls.shift(),0===ajaxCalls.length&amp;&amp;($(".loader-block").hide(),updateRecentSearches(n)),0===e.length&amp;&amp;0===a.length)return lastSearchResult.results=noResults,t(noResults);a=a.concat(e),t(a),lastSearchResult.results=a},error:function(e){ajaxCalls.shift(),0===ajaxCalls.length&amp;&amp;$(".loader-block").hide(),console.log(e)}}))}else $(".loader-block").hide()},minLength:2,search:function(e,t){$(e.target).val()&amp;&amp;$(e.target).siblings(".loader-block").show()},select:function(e,t,i){var o=e.target;if($(".loader-block").hide(),updateRecentSearches($(o).val()),$(o).val(""),console.log(t.item),t.item){if("properties"==t.item.origin)return window.location=t.item.url;if("searches"==t.item.origin)return $(o).val(t.item.value).change(),void $(o).autocomplete("search",t.item.value);if("places"==t.item.origin){if($(o).blur(),$(".filter-tags").empty(),"No Results"===t.item.value||!t.item.value)return;if(!isSearchPage)return s.delete("n"),s.delete("c"),Cookies.remove("n"),Cookies.remove("c"),localStorage.setItem("mapbox_place",t.item.place_id),window.location="/search";{const e=allresults.find(e=&gt;e.value===t.item.feature.name);if(s.delete("n"),s.delete("c"),Cookies.remove("n"),Cookies.remove("c"),e){const t="city"===e.subOrigin?"c":"n";s.append(t,e.value),Cookies.set(t,e.value),$(".filter-tags").append("&lt;div class='tag_list'&gt;&lt;span class="+e.subOrigin+"&gt;"+e.value+"&lt;/span&gt;&lt;a href='javascript:' class='remove' title='"+e.value+"'&gt;☓&lt;/a&gt;&lt;/div&gt;"),$(".mobile-tags").removeClass("inactive"),window.PubSub&amp;&amp;window.PubSub.publish("map.location.set",{location:e})}else window.PubSub&amp;&amp;window.PubSub.publish("map.place.set",{place:t.item.place_id});var n=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+s.toString();window.history.pushState({path:n},"",n)}}}}}).on("focus",function(){$(this).autocomplete("search",$(this).val()||" ")}).on("keyup",function(){""===$(this).val()&amp;&amp;($(".loader-block").hide(),$(this).autocomplete("search"," "))}).on("focusout",function(){}).on("autocompleteopen",function(e,t){let i,s;$(".search-form__input").length?(i=$(".search-form__input").offset().left,s=$(".search-form__input").width()):(i=$("#home-search").offset().left,s=$("#home-search").width(),$(".ui-autocomplete.ui-widget").css({top:$(".ui-autocomplete.ui-widget").offset().top+10})),$(".ui-autocomplete.ui-widget").width()&lt;s&amp;&amp;$(".ui-autocomplete.ui-widget").width(s),$(".ui-autocomplete.ui-widget").css({left:i})}),$(".mobile-filter-keywords__input,.search-input").focus(function(){$(".filter-tags").hide()}).focusout(function(){$(".filter-tags").show()})}),$(".filter-tags").on("click",".tag_list",function(e){isSearchPage||(window.location="/search")}),$(".filter-tags").on("click","a",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).siblings("span").text();$(".filter-tags").find(`span:contains(${t})`).each(function(){$(this).text()===t&amp;&amp;$(this).parent().remove()});var i=[],s=[];$(".tag_list").length&gt;0?($(".tag_list").each(function(e,t){var o=$(this).find("span").text(),n=$(this).find("span").attr("class");i.includes(o)||"city"===n&amp;&amp;i.push(o),s.includes(o)||"neighborhood"===n&amp;&amp;s.push(o)}),neighborhoodsQuery=s.concat(i).join(", "),Cookies.set("n",s),Cookies.set("c",i)):($(".mobile-filter-keywords").addClass("no-keywords"),$(".mobile-tags").addClass("inactive"),neighborhoodsQuery="",Cookies.remove("n"),Cookies.remove("c")),window.PubSub&amp;&amp;window.PubSub.publish("map.location.removed",{location:t})&amp;&amp;clearTags()}),window.PubSub&amp;&amp;window.PubSub.subscribe("draw.activated",()=&gt;{$(".tag_list").length&gt;0&amp;&amp;(clearTags(),$(".filter-tags").empty())});const cleanUpAdvancedFilterCookies=e=&gt;{["minListDate","minSoldDate","keywords","openHouse","maxMaintenanceFee"].forEach(t=&gt;{e.has(t)?Cookies.set(t,e.get(t)):Cookies.remove(t)}),["propertyStyle","basement"].forEach(t=&gt;{e.has(t)?Cookies.set(t,e.getAll(t)):Cookies.remove(t)})};function setSearchFilters(){var e,t,i,s,o,n,a,l=new URLSearchParams(window.location.search);if(""===l.toString()||"true"===l.get("useCookies")?(e=Cookies.get("sortBy"),t=Cookies.get("maxPrice"),i=Cookies.get("minPrice"),s=Cookies.get("minBeds"),o=Cookies.get("minBaths"),n=Cookies.get("style")?Cookies.get("style").split(","):"","true"===l.get("useCookies")?"sale"!==(a=Cookies.get("listingType"))&amp;&amp;"lease"!==a||(a=l.get("listingType")):a=Cookies.get("listingType")):(e=l.get("sortBy"),t=l.get("maxPrice"),i=l.get("minPrice"),s=l.get("minBeds"),o=l.get("minBaths"),n=l.getAll("style"),a=l.get("listingType"),cleanUpAdvancedFilterCookies(l)),a?(Cookies.set("listingType",a),$("input[name=listingType][value="+a+"], input[name=listingType-search][value="+a+"]").prop("checked",!0),setSortByOptions(a),updatePriceSlider(a)):(Cookies.remove("listingType"),$('input[name=listingType][value="sale"], input[name=listingType-search][value="sale"]').prop("checked",!0),updatePriceSlider("sale")),e?(Cookies.set("sortBy",e),$(`.sort-listing select option[value="${e}"]`).attr("selected",!0)):(Cookies.remove("sortBy"),$('.sort-listing select option[value=""]').attr("selected",!0)),s?(Cookies.set("minBeds",s),$("input[name=bedrooms][value="+s+"], input[name=bedrooms-search][value="+s+"]").prop("checked",!0)):(Cookies.remove("minBeds"),$('input[name=bedrooms][value=""], input[name=bedrooms-search][value=""]').prop("checked",!0)),o?(Cookies.set("minBaths",o),$("input[name=bathrooms][value="+o+"], input[name=bathrooms-search][value="+o+"]").prop("checked",!0)):(Cookies.remove("minBaths"),$('input[name=bathrooms][value=""], input[name=bathrooms-search][value=""]').prop("checked",!0)),n)for(var r of(Cookies.set("style",n),$(".styles input").prop("checked",!1),n))$(`.styles input[name="${r}"]`).prop("checked",!0);else Cookies.remove("style"),$(".styles input").not(".styles input[name=Any], .styles input[name=Any-search]").prop("checked",!1),$(".styles input[name=Any], .styles input[name=Any-search]").prop("checked",!0);var c=$(".budget-range").slider("option","min"),u=$(".budget-range").slider("option","max"),h=[c,u];i&amp;&amp;i&gt;c&amp;&amp;i&lt;u?(Cookies.set("minPrice",i),h[0]=i):Cookies.remove("minPrice"),t&amp;&amp;t&lt;u&amp;&amp;t&gt;c?(Cookies.set("maxPrice",t),h[1]=t):Cookies.remove("maxPrice"),$(".budget-range").slider("values",h),setPriceRangeLabel(h)}function updatePriceSlider(e){"lease"===e||"recently-leased"===e?($(".budget-range").slider({range:!0,min:LEASE_PRICE_RANGE[0],max:LEASE_PRICE_RANGE[1],step:LEASE_PRICE_RANGE[2],values:[LEASE_PRICE_RANGE[0],LEASE_PRICE_RANGE[1]],slide:function(e,t){priceChangedHandler(),$(".budget-range").each(function(){$(this).slider("value",t.value)});var i=nFormatter(t.values[0],1),s=nFormatter(t.values[1],1);t.values[1]===LEASE_PRICE_RANGE[1]&amp;&amp;(s+="+"),$(".min-price").text("$"+i),$(".max-price").text("$"+s)}}),LEASE_PRICE_RANGE&amp;&amp;setPriceRangeLabel(LEASE_PRICE_RANGE)):(SALE_PRICE_RANGE&amp;&amp;$(".budget-range").slider({range:!0,min:SALE_PRICE_RANGE[0],max:SALE_PRICE_RANGE[1],step:SALE_PRICE_RANGE[2],values:[SALE_PRICE_RANGE[0],SALE_PRICE_RANGE[1]],slide:function(e,t){priceChangedHandler(),$(".budget-range").each(function(){$(this).slider("value",t.value)});var i=nFormatter(t.values[0],1),s=nFormatter(t.values[1],1);t.values[1]===SALE_PRICE_RANGE[1]&amp;&amp;(s+="+"),$(".min-price").text("$"+i),$(".max-price").text("$"+s)}}),SALE_PRICE_RANGE&amp;&amp;setPriceRangeLabel(SALE_PRICE_RANGE))}function setPriceRangeLabel(e){var t=$(".budget-range").slider("option","max"),i="";e[1]===t&amp;&amp;(i="+"),$(".min-price").text("$"+nFormatter(e[0],1)),$(".max-price").text("$"+nFormatter(e[1],1)+i)}function isAdvancedFiltersClosed(){return!!$(".modal--advanced-filters").length&amp;&amp;!1===$(".modal--advanced-filters").hasClass("modal--visible")}function priceChangedHandler(){0!==$(".search-page").length&amp;&amp;isAdvancedFiltersClosed()&amp;&amp;(window.clearTimeout(priceTimeout),priceTimeout=window.setTimeout(function(){runListingsFiltering()},1e3))}function setSortByOptions(e){var t;for(var i in t="recently-sold"===e?RECENTLY_SOLD_SORTBY_OPTIONS:"recently-leased"===e?RECENTLY_LEASED_SORTBY_OPTIONS:REGULAR_SORTBY_OPTIONS,$(".sort-listing select").empty(),$(".sort-listing select").append($("&lt;option&gt;&lt;/option&gt;").attr("selected","selected").attr("disabled","disabled").attr("value","").text("SORT BY")),t)$(".sort-listing select").append($("&lt;option&gt;&lt;/option&gt;").attr("value",t[i]).text(i))}</pre></body></html>