PageSourceSearch

https://careersourceflorida.com/wp-content/plugins/agile-store-locator/public/js/site_script.js?ver=5.4.9

js careersourceflorida.com collected 2026-10-02 04:20:36 UTC 274,017 bytes, 14 lines download raw bytes

1var ASLEvent={isGoogleObject_:function(n){return!n||typeof google=="undefined"||!google.maps||typeof ASLMVCObject!="undefined"&&n instanceof ASLMVCObject?!1:google.maps.MVCObject&&n instanceof google.maps.MVCObject?!0:typeof asl_configuration!="undefined"&&String(asl_configuration.map_vendor||"google").toLowerCase()==="google"&&typeof n.addListener=="function"},addListener:function(n,a,d){if(!n||typeof d!="function")return null;if(this.isGoogleObject_(n)&&google.maps.event)return google.maps.event.addListener(n,a,d);n.aslListeners_=n.aslListeners_||{},n.aslListeners_[a]=n.aslListeners_[a]||[];var l={target:n,name:a,callback:d,once:!1};return n.aslListeners_[a].push(l),l},addListenerOnce:function(n,a,d){if(this.isGoogleObject_(n)&&google.maps.event)return google.maps.event.addListenerOnce(n,a,d);var l=this.addListener(n,a,d);return l&&(l.once=!0),l},addDomListener:function(n,a,d){return!n||!n.addEventListener?null:(n.addEventListener(a,d),{target:n,name:a,callback:d,dom:!0})},removeListener:function(n){if(n){if(n.remove&&typeof n.remove=="function"){n.remove();return}if(n.dom){n.target.removeEventListener(n.name,n.callback);return}var a=n.target&&n.target.aslListeners_&&n.target.aslListeners_[n.name];if(a){var d=a.indexOf(n);d!==-1&&a.splice(d,1)}}},trigger:function(n,a){var d=Array.prototype.slice.call(arguments,2);if(this.isGoogleObject_(n)&&google.maps.event){google.maps.event.trigger.apply(google.maps.event,[n,a].concat(d));return}var l=n&&n.aslListeners_&&n.aslListeners_[a];l&&l.slice().forEach(function(w){w.callback.apply(n,d),w.once&&ASLEvent.removeListener(w)})}};typeof window!="undefined"&&(window.ASLEvent=ASLEvent);function ASLMVCObject(){this.aslValues_=this.aslValues_||{},this.aslBindings_=this.aslBindings_||{}}ASLMVCObject.prototype.get=function(n){var a=this.aslBindings_&&this.aslBindings_[n];return a?a.target.get(a.targetKey):(this.aslValues_||{})[n]},ASLMVCObject.prototype.set=function(n,a){var d=this.aslBindings_&&this.aslBindings_[n];return d?d.target.set(d.targetKey,a):(this.aslValues_=this.aslValues_||{},this.aslValues_[n]=a,this.notify(n)),this},ASLMVCObject.prototype.setValues=function(n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&this.set(a,n[a]);return this},ASLMVCObject.prototype.notify=function(n){return typeof this[n+"_changed"]=="function"&&this[n+"_changed"](),ASLEvent.trigger(this,n+"_changed",this.get(n)),this},ASLMVCObject.prototype.bindTo=function(n,a,d,l){return this.unbind(n),this.aslBindings_=this.aslBindings_||{},this.aslBindings_[n]={target:a,targetKey:d||n,listener:ASLEvent.addListener(a,(d||n)+"_changed",this.notify.bind(this,n))},l||this.notify(n),this},ASLMVCObject.prototype.unbind=function(n){var a=this.aslBindings_&&this.aslBindings_[n];if(!a)return this;var d=a.target.get(a.targetKey);return ASLEvent.removeListener(a.listener),delete this.aslBindings_[n],this.aslValues_=this.aslValues_||{},this.aslValues_[n]=d,this},ASLMVCObject.prototype.unbindAll=function(){for(var n=Object.keys(this.aslBindings_||{}),a=0;a<n.length;a++)this.unbind(n[a]);return this},ASLMVCObject.prototype.addListener=function(n,a){return ASLEvent.addListener(this,n,a)},typeof window!="undefined"&&(window.ASLMVCObject=ASLMVCObject);function asl_has_google_maps(){return typeof window!="undefined"&&window.google&&window.google.maps}function asl_shared_uses_maplibre(){return typeof asl_configuration!="undefined"&&String(asl_configuration.map_vendor||"google").toLowerCase()==="maplibre"}function asl_requires_google_runtime(){if(typeof asl_configuration=="undefined")return!0;var n=String(asl_configuration.map_vendor||"google").toLowerCase(),a=String(asl_configuration.search_provider||"automatic").toLowerCase();return n==="google"||["google","google_new","google_legacy"].indexOf(a)!==-1}function asl_is_maplibre(){return asl_shared_uses_maplibre()}function ASLLatLng(n,a){if(asl_has_google_maps()&&!asl_shared_uses_maplibre())return new google.maps.LatLng(n,a);this._lat=Number(n),this._lng=Number(a)}ASLLatLng.prototype.lat=function(){return this._lat},ASLLatLng.prototype.lng=function(){return this._lng},ASLLatLng.prototype.toJSON=function(){return{lat:this._lat,lng:this._lng}};
1function ASLLatLngBounds(n,a){if(asl_has_google_maps()&&!asl_shared_uses_maplibre())return new google.maps.LatLngBounds(n,a);this._south=1/0,this._west=1/0,this._north=-1/0,this._east=-1/0,n&&this.extend(n),a&&this.extend(a)}ASLLatLngBounds.prototype.extend=function(n){var a=Number(typeof n.lat=="function"?n.lat():n.lat),d=Number(typeof n.lng=="function"?n.lng():n.lng);return!Number.isFinite(a)||!Number.isFinite(d)?this:(this._south=Math.min(this._south,a),this._west=Math.min(this._west,d),this._north=Math.max(this._north,a),this._east=Math.max(this._east,d),this)},ASLLatLngBounds.prototype.getSouthWest=function(){return new ASLLatLng(this._south,this._west)},ASLLatLngBounds.prototype.getNorthEast=function(){return new ASLLatLng(this._north,this._east)},ASLLatLngBounds.prototype.getCenter=function(){return new ASLLatLng((this._south+this._north)/2,(this._west+this._east)/2)},ASLLatLngBounds.prototype.isEmpty=function(){return!Number.isFinite(this._south)},ASLLatLngBounds.prototype.contains=function(n){if(this.isEmpty())return!1;var a=Number(typeof n.lat=="function"?n.lat():n.lat),d=Number(typeof n.lng=="function"?n.lng():n.lng);return a>=this._south&&a<=this._north&&d>=this._west&&d<=this._east};function asl_normalize_bounds(n){if(!n||typeof n.getSouthWest!="function"||typeof n.getNorthEast!="function")return null;if(!asl_shared_uses_maplibre())return n;
1var a=n.getSouthWest(),d=n.getNorthEast(),l=Number(typeof a.lat=="function"?a.lat():a.lat),w=Number(typeof a.lng=="function"?a.lng():a.lng),P=Number(typeof d.lat=="function"?d.lat():d.lat),K=Number(typeof d.lng=="function"?d.lng():d.lng);return[l,w,P,K].every(Number.isFinite)?new ASLLatLngBounds(new ASLLatLng(l,w),new ASLLatLng(P,K)):null}function asl_bounds_contains(n,a){if(!n||!a||typeof n.contains!="function")return!1;var d=Number(typeof a.lat=="function"?a.lat():a.lat),l=Number(typeof a.lng=="function"?a.lng():a.lng);return Number.isFinite(d)&&Number.isFinite(l)&&n.contains({lat:d,lng:l})}function ASLPoint(n,a){if(asl_has_google_maps()&&!asl_shared_uses_maplibre())return new google.maps.Point(n,a);this.x=Number(n),this.y=Number(a)}function ASLSize(n,a){if(asl_has_google_maps()&&!asl_shared_uses_maplibre())return new google.maps.Size(n,a);this.width=Number(n),this.height=Number(a)}function ASLMarkerImage(n,a,d,l,w){return asl_has_google_maps()&&!asl_shared_uses_maplibre()?new google.maps.MarkerImage(n,a,d,l,w):{url:n,size:a,origin:d,anchor:l,scaledSize:w}}var ASLControlPosition=asl_has_google_maps()&&!asl_shared_uses_maplibre()?google.maps.ControlPosition:{TOP_LEFT:1,TOP_CENTER:2,TOP_RIGHT:3,LEFT_TOP:4,RIGHT_TOP:5,LEFT_CENTER:6,RIGHT_CENTER:7,LEFT_BOTTOM:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12},ASLAnimation=asl_has_google_maps()&&!asl_shared_uses_maplibre()?google.maps.Animation:{BOUNCE:"BOUNCE",DROP:"DROP"},ASLUnitSystem=asl_has_google_maps()&&!asl_shared_uses_maplibre()?google.maps.UnitSystem:{METRIC:0,IMPERIAL:1},asl_gdpr=function(n){window.asl_async_callback=function(){asl_store_locator()};var a=!1;function d(){if(!a){if(a=!0,!asl_requires_google_runtime()){window.asl_async_callback();return}var w=document.createElement("script");w.type="text/javascript",w.src="https://maps.googleapis.com/maps/api/js?libraries=places&callback=asl_async_callback&key="+asl_configuration.api_key,document.body.appendChild(w)}}function l(){window.localStorage&&window.localStorage.setItem("asl-gdpr",1),asl_configuration.gdpr=!1,d(),jQuery(".asl-cont #sl-btn-gdpr").parent().parent().parent().remove()}if(n){asl_configuration.gdpr=!1,d();return}jQuery(".asl-cont #sl-btn-gdpr").on("click",l),window.localStorage&&window.localStorage.getItem("asl-gdpr")=="1"&&l()};asl_configuration.gdpr=="1"&&(asl_configuration.gdpr_enabled=!0,asl_gdpr()),window.asl_init_callback=function(){asl_store_locator()};function asl_store_locator(){if(asl_configuration.gdpr=="1")return;if(asl_requires_google_runtime()&&!asl_has_google_maps()){asl_configuration.google_maps_wait_started||(asl_configuration.google_maps_wait_started=Date.now()),Date.now()-asl_configuration.google_maps_wait_started<15e3?(window.clearTimeout(asl_configuration.google_maps_wait_timer),asl_configuration.google_maps_wait_timer=window.setTimeout(asl_store_locator,100)):asl_configuration.google_maps_load_failed||(asl_configuration.google_maps_load_failed=!0,asl_configuration.gdpr_enabled||console.warn("Store Locator Error! Google Maps library did not load within 15 seconds. Check browser blocking, network, CSP, API key, or cache settings."));return}if(window.clearTimeout(asl_configuration.google_maps_wait_timer),asl_configuration.google_maps_wait_timer=null,jQuery(".storelocator-main").length>=2&&console.warn("Store Locator Error! Multiple instances of store locator loaded on the page."),window._asl_map_customize||(window._asl_map_customize=null),asl_configuration.is_loaded)return;asl_configuration.is_loaded=!0;var asl_locator=function(){},do_geocoding=null;if(asl_locator.show_map_error=function(n){var a=document.getElementById("asl-map-canv");if(a){var d=a.querySelector(".asl-map-error");d&&d.remove();var l=document.createElement("div");l.className="asl-map-error alert alert-danger",l.setAttribute("role","alert"),l.textContent=n,l.style.cssText="position:absolute;z-index:10;top:12px;left:12px;right:12px;margin:0;",window.getComputedStyle(a).position==="static"&&(a.style.position="relative"),a.appendChild(l)}},!jQuery.fn.adropdown){/*!
2* Bootstrap v4.6.1 (https://getbootstrap.com/)
3* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5*/(function(n,a){typeof exports=="object"&&typeof module!="undefined"?a(exports,require("jquery")):typeof define=="function"&&define.amd?define(["exports","jquery"],a):a((n=typeof globalThis!="undefined"?globalThis:n||self).bootstrap={},n.jQuery)})(this,(function(n,a){"use strict";function d(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var l=d(a);function w(r,f){for(var c=0;c<f.length;c++){var _=f[c];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(r,_.key,_)}}function P(r,f,c){return f&&w(r.prototype,f),c&&w(r,c),r}function K(){return K=Object.assign||function(r){for(var f=1;f<arguments.length;f++){var c=arguments[f];for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(r[_]=c[_])}return r},K.apply(this,arguments)}var q="bs4_transitionend",D={TRANSITION_END:q,getUID:function(r){do r+=~~(1e6*Math.random());while(document.getElementById(r));return r},getSelectorFromElement:function(r){var f=r.getAttribute("data-target");if(!f||f==="#"){var c=r.getAttribute("href");f=c&&c!=="#"?c.trim():""}try{return document.querySelector(f)?f:null}catch(_){return null}},getTransitionDurationFromElement:function(r){if(!r)return 0;var f=l.default(r).css("transition-duration"),c=l.default(r).css("transition-delay"),_=parseFloat(f),x=parseFloat(c);return _||x?(f=f.split(",")[0],c=c.split(",")[0],1e3*(parseFloat(f)+parseFloat(c))):0},reflow:function(r){return r.offsetHeight},triggerTransitionEnd:function(r){l.default(r).trigger(q)},supportsTransitionEnd:function(){return!!q},isElement:function(r){return(r[0]||r).nodeType},typeCheckConfig:function(r,f,c){for(var _ in c)if(Object.prototype.hasOwnProperty.call(c,_)){var x=c[_],E=f[_],A=E&&D.isElement(E)?"element":(Z=E)===null||typeof Z=="undefined"?""+Z:{}.toString.call(Z).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(x).test(A))throw new Error(r.toUpperCase()+': Option "'+_+'" provided type "'+A+'" but expected type "'+x+'".')}var Z},findShadowRoot:function(r){if(!document.documentElement.attachShadow)return null;if(typeof r.getRootNode=="function"){var f=r.getRootNode();return f instanceof ShadowRoot?f:null}return r instanceof ShadowRoot?r:r.parentNode?D.findShadowRoot(r.parentNode):null},jQueryDetection:function(){typeof l.default=="undefined"&&console.log("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var r=l.default.fn.jquery.split(" ")[0].split(".");(r[0]<2&&r[1]<9||r[0]===1&&r[1]===9&&r[2]<1||r[0]>=4)&&console.log("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};D.jQueryDetection(),l.default.fn.emulateTransitionEnd=function(r){var f=this,c=!1;return l.default(this).one(q,(function(){c=!0})),setTimeout((function(){c||D.triggerTransitionEnd(f)}),r),this},l.default.event.special.bs4_transitionend={bindType:q,delegateType:q,handle:function(r){if(l.default(r.target).is(this))return r.handleObj.handler.apply(this,arguments)}};var ut="colision",St="bs.colision",It=l.default.fn[ut],vt="show",ct="colision",kt="collapsing",Rt="colisiond",Bt="width",Gt='[data-toggle="colision"]',oe={toggle:!0,parent:""},Ut={toggle:"boolean",parent:"(string|element)"},t=(function(){function r(c,_){this._isTransitioning=!1,this._element=c,this._config=this._getConfig(_),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="colision"][href="#'+c.id+'"],[data-toggle="colision"][data-target="#'+c.id+'"]'));for(var x=[].slice.call(document.querySelectorAll(Gt)),E=0,A=x.length;E<A;E++){var Z=x[E],X=D.getSelectorFromElement(Z),ht=[].slice.call(document.querySelectorAll(X)).filter((function(Ft){return Ft===c}));X!==null&&ht.length>0&&(this._selector=X,this._triggerArray.push(Z))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndaCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var f=r.prototype;return f.toggle=function(){l.default(this._element).hasClass(vt)?this.hide():this.show()},f.show=function(){var c,_,x=this;if(!(this._isTransitioning||l.default(this._element).hasClass(vt)||(this._parent&&(c=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(ht){return typeof x._config.parent=="string"?ht.getAttribute("data-parent")===x._config.parent:ht.classList.contains(ct)}))).length===0&&(c=null),c&&(_=l.default(c).not(this._selector).data(St))&&_._isTransitioning))){var E=l.default.Event("show.bs.colision");if(l.default(this._element).trigger(E),!E.isDefaultPrevented()){c&&(r._jQueryInterface.call(l.default(c).not(this._selector),"hide"),_||l.default(c).data(St,null));var A=this._getDimension();l.default(this._element).removeClass(ct).addClass(kt),this._element.style[A]=0,this._triggerArray.length&&l.default(this._triggerArray).removeClass(Rt).attr("aria-expanded",!0),this.setTransitioning(!0);var Z="scroll"+(A[0].toUpperCase()+A.slice(1)),X=D.getTransitionDurationFromElement(this._element);l.default(this._element).one(D.TRANSITION_END,(function(){l.default(x._element).removeClass(kt).addClass("colision show"),x._element.style[A]="",x.setTransitioning(!1),l.default(x._element).trigger("shown.bs.colision")})).emulateTransitionEnd(X),this._element.style[A]=this._element[Z]+"px"}}},f.hide=function(){var c=this;if(!this._isTransitioning&&l.default(this._element).hasClass(vt)){var _=l.default.Event("hide.bs.colision");if(l.default(this._element).trigger(_),!_.isDefaultPrevented()){var x=this._getDimension();this._element.style[x]=this._element.getBoundingClientRect()[x]+"px",D.reflow(this._element),l.default(this._element).addClass(kt).removeClass("colision show");var E=this._triggerArray.length;if(E>0)for(var A=0;A<E;A++){var Z=this._triggerArray[A],X=D.getSelectorFromElement(Z);X!==null&&(l.default([].slice.call(document.querySelectorAll(X))).hasClass(vt)||l.default(Z).addClass(Rt).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[x]="";var ht=D.getTransitionDurationFromElement(this._element);l.default(this._element).one(D.TRANSITION_END,(function(){c.setTransitioning(!1),l.default(c._element).removeClass(kt).addClass(ct).trigger("hidden.bs.colision")})).emulateTransitionEnd(ht)}}},f.setTransitioning=function(c){this._isTransitioning=c},f.dispose=function(){l.default.removeData(this._element,St),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},f._getConfig=function(c){return(c=K({},oe,c)).toggle=!!c.toggle,D.typeCheckConfig(ut,c,Ut),c},f._getDimension=function(){return l.default(this._element).hasClass(Bt)?Bt:"height"},f._getParent=function(){var c,_=this;D.isElement(this._config.parent)?(c=this._config.parent,typeof this._config.parent.jquery!="undefined"&&(c=this._config.parent[0])):c=document.querySelector(this._config.parent);var x='[data-toggle="colision"][data-parent="'+this._config.parent+'"]',E=[].slice.call(c.querySelectorAll(x));return l.default(E).each((function(A,Z){_._addAriaAndaCollapsedClass(r._getTargetFromElement(Z),[Z])})),c},f._addAriaAndaCollapsedClass=function(c,_){var x=l.default(c).hasClass(vt);_.length&&l.default(_).toggleClass(Rt,!x).attr("aria-expanded",x)},r._getTargetFromElement=function(c){var _=D.getSelectorFromElement(c);return _?document.querySelector(_):null},r._jQueryInterface=function(c){return this.each((function(){var _=l.default(this),x=_.data(St),E=K({},oe,_.data(),typeof c=="object"&&c?c:{});if(!x&&E.toggle&&typeof c=="string"&&/show|hide/.test(c)&&(E.toggle=!1),x||(x=new r(this,E),_.data(St,x)),typeof c=="string"){if(typeof x[c]=="undefined")throw new TypeError('No method n
5amed "'+c+'"');x[c]()}}))},P(r,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return oe}}]),r})();l.default(document).on("click.bs.colision.data-api",Gt,(function(r){r.currentTarget.tagName==="A"&&r.preventDefault();var f=l.default(this),c=D.getSelectorFromElement(this),_=[].slice.call(document.querySelectorAll(c));l.default(_).each((function(){var x=l.default(this),E=x.data(St)?"toggle":f.data();t._jQueryInterface.call(x,E)}))})),l.default.fn[ut]=t._jQueryInterface,l.default.fn[ut].Constructor=t,l.default.fn[ut].noConflict=function(){return l.default.fn[ut]=It,t._jQueryInterface};var e=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",o=(function(){for(var r=["Edge","Trident","Firefox"],f=0;f<r.length;f+=1)if(e&&navigator.userAgent.indexOf(r[f])>=0)return 1;return 0})(),s=e&&window.Promise?function(r){var f=!1;return function(){f||(f=!0,window.Promise.resolve().then((function(){f=!1,r()})))}}:function(r){var f=!1;return function(){f||(f=!0,setTimeout((function(){f=!1,r()}),o))}};function u(r){return r&&{}.toString.call(r)==="[object Function]"}function p(r,f){if(r.nodeType!==1)return[];var c=r.ownerDocument.defaultView.getComputedStyle(r,null);return f?c[f]:c}function m(r){return r.nodeName==="HTML"?r:r.parentNode||r.host}function h(r){if(!r)return document.body;switch(r.nodeName){case"HTML":case"BODY":return r.ownerDocument.body;case"#document":return r.body}var f=p(r),c=f.overflow,_=f.overflowX,x=f.overflowY;return/(auto|scroll|overlay)/.test(c+x+_)?r:h(m(r))}function L(r){return r&&r.referenceNode?r.referenceNode:r}var S=e&&!(!window.MSInputMethodContext||!document.documentMode),N=e&&/MSIE 10/.test(navigator.userAgent);function B(r){return r===11?S:r===10?N:S||N}function tt(r){if(!r)return document.documentElement;for(var f=B(10)?document.body:null,c=r.offsetParent||null;c===f&&r.nextElementSibling;)c=(r=r.nextElementSibling).offsetParent;var _=c&&c.nodeName;return _&&_!=="BODY"&&_!=="HTML"?["TH","TD","TABLE"].indexOf(c.nodeName)!==-1&&p(c,"position")==="static"?tt(c):c:r?r.ownerDocument.documentElement:document.documentElement}function k(r){return r.parentNode!==null?k(r.parentNode):r}function nt(r,f){if(!(r&&r.nodeType&&f&&f.nodeType))return document.documentElement;var c=r.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING,_=c?r:f,x=c?f:r,E=document.createRange();E.setStart(_,0),E.setEnd(x,0);var A,Z,X=E.commonAncestorContainer;if(r!==X&&f!==X||_.contains(x))return(Z=(A=X).nodeName)==="BODY"||Z!=="HTML"&&tt(A.firstElementChild)!==A?tt(X):X;var ht=k(r);return ht.host?nt(ht.host,f):nt(r,k(f).host)}function I(r){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",c=f==="top"?"scrollTop":"scrollLeft",_=r.nodeName;if(_==="BODY"||_==="HTML"){var x=r.ownerDocument.documentElement,E=r.ownerDocument.scrollingElement||x;return E[c]}return r[c]}function G(r,f){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],_=I(f,"top"),x=I(f,"left"),E=c?-1:1;return r.top+=_*E,r.bottom+=_*E,r.left+=x*E,r.right+=x*E,r}function H(r,f){var c=f==="x"?"Left":"Top",_=c==="Left"?"Right":"Bottom";return parseFloat(r["border"+c+"Width"])+parseFloat(r["border"+_+"Width"])}function J(r,f,c,_){return Math.max(f["offset"+r],f["scroll"+r],c["client"+r],c["offset"+r],c["scroll"+r],B(10)?parseInt(c["offset"+r])+parseInt(_["margin"+(r==="Height"?"Top":"Left")])+parseInt(_["margin"+(r==="Height"?"Bottom":"Right")]):0)}function Lt(r){var f=r.body,c=r.documentElement,_=B(10)&&getComputedStyle(c);return{height:J("Height",f,c,_),width:J("Width",f,c,_)}}var bt=function(r,f){if(!(r instanceof f))throw new TypeError("Cannot call a class as a function")},Ot=(function(){function r(f,c){for(var _=0;_<c.length;_++){var x=c[_];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(f,x.key,x)}}return function(f,c,_){return c&&r(f.prototype,c),_&&r(f,_),f}})(),Tt=function(r,f,c){return f in r?Object.defineProperty(r,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):r[f]=c,r},mt=Object.assign||function(r){for(var f=1;f<arguments.length;f++){var c=arguments[f];for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(r[_]=c[_])}return r};function xt(r){return mt({}
5,r,{right:r.left+r.width,bottom:r.top+r.height})}function qt(r){var f={};try{if(B(10)){f=r.getBoundingClientRect();var c=I(r,"top"),_=I(r,"left");f.top+=c,f.left+=_,f.bottom+=c,f.right+=_}else f=r.getBoundingClientRect()}catch(_t){}var x={left:f.left,top:f.top,width:f.right-f.left,height:f.bottom-f.top},E=r.nodeName==="HTML"?Lt(r.ownerDocument):{},A=E.width||r.clientWidth||x.width,Z=E.height||r.clientHeight||x.height,X=r.offsetWidth-A,ht=r.offsetHeight-Z;if(X||ht){var Ft=p(r);X-=H(Ft,"x"),ht-=H(Ft,"y"),x.width-=X,x.height-=ht}return xt(x)}function g(r,f){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],_=B(10),x=f.nodeName==="HTML",E=qt(r),A=qt(f),Z=h(r),X=p(f),ht=parseFloat(X.borderTopWidth),Ft=parseFloat(X.borderLeftWidth);c&&x&&(A.top=Math.max(A.top,0),A.left=Math.max(A.left,0));var _t=xt({top:E.top-A.top-ht,left:E.left-A.left-Ft,width:E.width,height:E.height});if(_t.marginTop=0,_t.marginLeft=0,!_&&x){var Mt=parseFloat(X.marginTop),Vt=parseFloat(X.marginLeft);_t.top-=ht-Mt,_t.bottom-=ht-Mt,_t.left-=Ft-Vt,_t.right-=Ft-Vt,_t.marginTop=Mt,_t.marginLeft=Vt}return(_&&!c?f.contains(Z):f===Z&&Z.nodeName!=="BODY")&&(_t=G(_t,f)),_t}function b(r){var f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],c=r.ownerDocument.documentElement,_=g(r,c),x=Math.max(c.clientWidth,window.innerWidth||0),E=Math.max(c.clientHeight,window.innerHeight||0),A=f?0:I(c),Z=f?0:I(c,"left"),X={top:A-_.top+_.marginTop,left:Z-_.left+_.marginLeft,width:x,height:E};return xt(X)}function y(r){var f=r.nodeName;if(f==="BODY"||f==="HTML")return!1;if(p(r,"position")==="fixed")return!0;var c=m(r);return!!c&&y(c)}function C(r){if(!r||!r.parentElement||B())return document.documentElement;for(var f=r.parentElement;f&&p(f,"transform")==="none";)f=f.parentElement;return f||document.documentElement}function z(r,f,c,_){var x=arguments.length>4&&arguments[4]!==void 0&&arguments[4],E={top:0,left:0},A=x?C(r):nt(r,L(f));if(_==="viewport")E=b(A,x);else{var Z=void 0;_==="scrollParent"?(Z=h(m(f))).nodeName==="BODY"&&(Z=r.ownerDocument.documentElement):Z=_==="window"?r.ownerDocument.documentElement:_;var X=g(Z,A,x);if(Z.nodeName!=="HTML"||y(A))E=X;else{var ht=Lt(r.ownerDocument),Ft=ht.height,_t=ht.width;E.top+=X.top-X.marginTop,E.bottom=Ft+X.top,E.left+=X.left-X.marginLeft,E.right=_t+X.left}}var Mt=typeof(c=c||0)=="number";return E.left+=Mt?c:c.left||0,E.top+=Mt?c:c.top||0,E.right-=Mt?c:c.right||0,E.bottom-=Mt?c:c.bottom||0,E}function W(r){return r.width*r.height}function U(r,f,c,_,x){var E=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(r.indexOf("auto")===-1)return r;var A=z(c,_,E,x),Z={top:{width:A.width,height:f.top-A.top},right:{width:A.right-f.right,height:A.height},bottom:{width:A.width,height:A.bottom-f.bottom},left:{width:f.left-A.left,height:A.height}},X=Object.keys(Z).map((function(Mt){return mt({key:Mt},Z[Mt],{area:W(Z[Mt])})})).sort((function(Mt,Vt){return Vt.area-Mt.area})),ht=X.filter((function(Mt){var Vt=Mt.width,Zt=Mt.height;return Vt>=c.clientWidth&&Zt>=c.clientHeight})),Ft=ht.length>0?ht[0].key:X[0].key,_t=r.split("-")[1];return Ft+(_t?"-"+_t:"")}function F(r,f,c){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,x=_?C(f):nt(f,L(c));return g(c,x,_)}function v(r){var f=r.ownerDocument.defaultView.getComputedStyle(r),c=parseFloat(f.marginTop||0)+parseFloat(f.marginBottom||0),_=parseFloat(f.marginLeft||0)+parseFloat(f.marginRight||0);return{width:r.offsetWidth+_,height:r.offsetHeight+c}}
vendor: 4,135 bytes, line 5
5function M(r){var f={left:"right",right:"left",bottom:"top",top:"bottom"};return r.replace(/left|right|bottom|top/g,(function(c){return f[c]}))}function j(r,f,c){c=c.split("-")[0];var _=v(r),x={width:_.width,height:_.height},E=["right","left"].indexOf(c)!==-1,A=E?"top":"left",Z=E?"left":"top",X=E?"height":"width",ht=E?"width":"height";return x[A]=f[A]+f[X]/2-_[X]/2,x[Z]=c===Z?f[Z]-_[ht]:f[M(Z)],x}function rt(r,f){return Array.prototype.find?r.find(f):r.filter(f)[0]}function ot(r,f,c){return(c===void 0?r:r.slice(0,(function(_,x,E){if(Array.prototype.findIndex)return _.findIndex((function(Z){return Z.name===E}));var A=rt(_,(function(Z){return Z.name===E}));return _.indexOf(A)})(r,0,c))).forEach((function(_){_.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var x=_.function||_.fn;_.enabled&&u(x)&&(f.offsets.popper=xt(f.offsets.popper),f.offsets.reference=xt(f.offsets.reference),f=x(f,_))})),f}function lt(){if(!this.state.isDestroyed){var r={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};r.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),r.placement=U(this.options.placement,r.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),r.originalPlacement=r.placement,r.positionFixed=this.options.positionFixed,r.offsets.popper=j(this.popper,r.offsets.reference,r.placement),r.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",r=ot(this.modifiers,r),this.state.isCreated?this.options.onUpdate(r):(this.state.isCreated=!0,this.options.onCreate(r))}}function Et(r,f){return r.some((function(c){var _=c.name;return c.enabled&&_===f}))}function dt(r){for(var f=[!1,"ms","Webkit","Moz","O"],c=r.charAt(0).toUpperCase()+r.slice(1),_=0;_<f.length;_++){var x=f[_],E=x?""+x+c:r;if(typeof document.body.style[E]!="undefined")return E}return null}function st(){return this.state.isDestroyed=!0,Et(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[dt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function gt(r){var f=r.ownerDocument;return f?f.defaultView:window}function Dt(r,f,c,_){var x=r.nodeName==="BODY",E=x?r.ownerDocument.defaultView:r;E.addEventListener(f,c,{passive:!0}),x||Dt(h(E.parentNode),f,c,_),_.push(E)}function Q(r,f,c,_){c.updateBound=_,gt(r).addEventListener("resize",c.updateBound,{passive:!0});var x=h(r);return Dt(x,"scroll",c.updateBound,c.scrollParents),c.scrollElement=x,c.eventsEnabled=!0,c}function Y(){this.state.eventsEnabled||(this.state=Q(this.reference,this.options,this.state,this.scheduleUpdate))}function Ct(){var r,f;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(r=this.reference,f=this.state,gt(r).removeEventListener("resize",f.updateBound),f.scrollParents.forEach((function(c){c.removeEventListener("scroll",f.updateBound)})),f.updateBound=null,f.scrollParents=[],f.scrollElement=null,f.eventsEnabled=!1,f))}function ft(r){return r!==""&&!isNaN(parseFloat(r))&&isFinite(r)}function pt(r,f){Object.keys(f).forEach((function(c){var _="";["width","height","top","right","bottom","left"].indexOf(c)!==-1&&ft(f[c])&&(_="px"),r.style[c]=f[c]+_}))}var V=e&&/Firefox/i.test(navigator.userAgent);function et(r,f,c){var _=rt(r,(function(Z){return Z.name===f})),x=!!_&&r.some((function(Z){return Z.name===c&&Z.enabled&&Z.order<_.order}));if(!x){var E="`"+f+"`",A="`"+c+"`";console.warn(A+" modifier is required by "+E+" modifier in order to work, be sure to include it before "+E+"!")}return x}var at=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Pt=at.slice(3);function wt(r){var f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],c=Pt.indexOf(r),_=Pt.slice(c+1).c
5oncat(Pt.slice(0,c));return f?_.reverse():_}var Wt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(r){var f=r.placement,c=f.split("-")[0],_=f.split("-")[1];if(_){var x=r.offsets,E=x.reference,A=x.popper,Z=["bottom","top"].indexOf(c)!==-1,X=Z?"left":"top",ht=Z?"width":"height",Ft={start:Tt({},X,E[X]),end:Tt({},X,E[X]+E[ht]-A[ht])};r.offsets.popper=mt({},A,Ft[_])}return r}},offset:{order:200,enabled:!0,fn:function(r,f){var c,_=f.offset,x=r.placement,E=r.offsets,A=E.popper,Z=E.reference,X=x.split("-")[0];return c=ft(+_)?[+_,0]:(function(ht,Ft,_t,Mt){var Vt=[0,0],Zt=["right","left"].indexOf(Mt)!==-1,Jt=ht.split(/(\+|\-)/).map((function(Yt){return Yt.trim()})),ee=Jt.indexOf(rt(Jt,(function(Yt){return Yt.search(/,|\s/)!==-1})));Jt[ee]&&Jt[ee].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var ce=/\s*,\s*|\s+/,ie=ee!==-1?[Jt.slice(0,ee).concat([Jt[ee].split(ce)[0]]),[Jt[ee].split(ce)[1]].concat(Jt.slice(ee+1))]:[Jt];return ie=ie.map((function(Yt,ue){var le=(ue===1?!Zt:Zt)?"height":"width",ne=!1;return Yt.reduce((function(re,se){return re[re.length-1]===""&&["+","-"].indexOf(se)!==-1?(re[re.length-1]=se,ne=!0,re):ne?(re[re.length-1]+=se,ne=!1,re):re.concat(se)}),[]).map((function(re){return(function(se,ye,me,ve){var ge=se.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),_e=+ge[1],fe=ge[2];return _e?fe.indexOf("%")===0?xt(fe==="%p"?me:ve)[ye]/100*_e:fe==="vh"||fe==="vw"?(fe==="vh"?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*_e:_e:se})(re,le,Ft,_t)}))})),ie.forEach((function(Yt,ue){Yt.forEach((function(le,ne){ft(le)&&(Vt[ue]+=le*(Yt[ne-1]==="-"?-1:1))}))})),Vt})(_,A,Z,X),X==="left"?(A.top+=c[0],A.left-=c[1]):X==="right"?(A.top+=c[0],A.left+=c[1]):X==="top"?(A.left+=c[0],A.top-=c[1]):X==="bottom"&&(A.left+=c[0],A.top+=c[1]),r.popper=A,r},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(r,f){var c=f.boundariesElement||tt(r.instance.popper);r.instance.reference===c&&(c=tt(c));var _=dt("transform"),x=r.instance.popper.style,E=x.top,A=x.left,Z=x[_];x.top="",x.left="",x[_]="";var X=z(r.instance.popper,r.instance.reference,f.padding,c,r.positionFixed);x.top=E,x.left=A,x[_]=Z,f.boundaries=X;var ht=f.priority,Ft=r.offsets.popper,_t={primary:function(Mt){var Vt=Ft[Mt];return Ft[Mt]<X[Mt]&&!f.escapeWithReference&&(Vt=Math.max(Ft[Mt],X[Mt])),Tt({},Mt,Vt)},secondary:function(Mt){var Vt=Mt==="right"?"left":"top",Zt=Ft[Vt];return Ft[Mt]>X[Mt]&&!f.escapeWithReference&&(Zt=Math.min(Ft[Vt],X[Mt]-(Mt==="right"?Ft.width:Ft.height))),Tt({},Vt,Zt)}};return ht.forEach((function(Mt){var Vt=["left","top"].indexOf(Mt)!==-1?"primary":"secondary";Ft=mt({},Ft,_t[Vt](Mt))})),r.offsets.popper=Ft,r},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(r){var f=r.offsets,c=f.popper,_=f.reference,x=r.placement.split("-")[0],E=Math.floor,A=["top","bottom"].indexOf(x)!==-1,Z=A?"right":"bottom",X=A?"left":"top",ht=A?"width":"height";return c[Z]<E(_[X])&&(r.offsets.popper[X]=E(_[X])-c[ht]),c[X]>E(_[Z])&&(r.offsets.popper[X]=E(_[Z])),r}},arrow:{order:500,enabled:!0,fn:function(r,f){var c;if(!et(r.instance.modifiers,"arrow","keepTogether"))return r;var _=f.element;if(typeof _=="string"){if(!(_=r.instance.popper.querySelector(_)))return r}else if(!r.instance.popper.contains(_))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),r;var x=r.placement.split("-")[0],E=r.offsets,A=E.popper,Z=E.reference,X=["left","right"].indexOf(x)!==-1,ht=X?"height":"width",Ft=X?"Top":"Left",_t=Ft.toLowerCase(),Mt=X?"left":"top",Vt=X?"bottom":"right",Zt=v(_)[ht];Z[Vt]-Zt<A[_t]&&(r.offsets.popper[_t]-=A[_t]-(Z[Vt]-Zt)),Z[_t]+Zt>A[Vt]&&(r.offsets.popper[_t]+=Z[_t]+Zt-A[Vt]),r.offsets.popper=xt(r.offsets.popper);var Jt=Z[_t]+Z[ht]/2-Zt/2,ee=p(r.instance.popper),ce=parseFloat(ee["margin"+Ft]),ie=parseFloat(ee["border"+Ft+"Width"]),Yt=Jt-r.offsets.popper[_t]-ce-ie;return Yt=Math.max(Math.min(A[ht]-Zt,Yt),0),r.arrowElement=_,r.offsets.arrow=(Tt(c={},_t,Math.round(Yt)),Tt(c,Mt,""),c),r},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(r,f){if(Et(r.instance.modifiers,"inner")||r.flipped&&r.placement===r.originalPlacement)return r;var c=z(r.instance.popper,r.instance.reference,f.padding,f.boundariesElement,r.positionFixed),_=r.placement.split("-")[0],x=M(_),E=r.placement.split("-")[1]||"",A=[];switch(f.behavior){case"flip":A=[_,x];break;case"clockwise":A=wt(_);break;case"counterclockwise":A=wt(_,!0);break;default:A=f.behavior}return A.forEach((function(Z,X){if(_!==Z||A.length===X+1)return r;_=r.placement.split("-")[0],x=M(_);var ht=r.offsets.popper,Ft=r.offsets.reference,_t=Math.floor,Mt=_==="left"&&_t(ht.right)>_t(Ft.left)||_==="right"&&_t(ht.left)<_t(Ft.right)||_==="top"&&_t(ht.bottom)>_t(Ft.top)||_==="bottom"&&_t(ht.top)<_t(Ft.bottom),Vt=_t(ht.left)<_t(c.left),Zt=_t(ht.right)>_t(c.right),Jt=_t(ht.top)<_t(c.top),ee=_t(ht.bottom)>_t(c.bottom),ce=_==="left"&&Vt||_==="right"&&Zt||_==="top"&&Jt||_==="bottom"&&ee,ie=["top","bottom"].indexOf(_)!==-1,Yt=!!f.flipVariations&&(ie&&E==="start"&&Vt||ie&&E==="end"&&Zt||!ie&&E==="start"&&Jt||!ie&&E==="end"&&ee),ue=!!f.flipVariationsByContent&&(ie&&E==="start"&&Zt||ie&&E==="end"&&Vt||!ie&&E==="start"&&ee||!ie&&E==="end"&&Jt),le=Yt||ue;(Mt||ce||le)&&(r.flipped=!0,(Mt||ce)&&(_=A[X+1]),le&&(E=(function(ne){return ne==="end"?"start":ne==="start"?"end":ne})(E)),r.placement=_+(E?"-"+E:""),r.offsets.popper=mt({},r.offsets.popper,j(r.instance.popper,r.offsets.reference,r.placement)),r=ot(r.instance.modifiers,r,"flip"))})),r},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(r){var f=r.placement,c=f.split("-")[0],_=r.offsets,x=_.popper,E=_.reference,A=["left","right"].indexOf(c)!==-1,Z=["top","left"].indexOf(c)===-1;return x[A?"left":"top"]=E[c]-(Z?x[A?"width":"height"]:0),r.placement=M(f),r.offsets.popper=xt(x
5),r}},hide:{order:800,enabled:!0,fn:function(r){if(!et(r.instance.modifiers,"hide","preventOverflow"))return r;var f=r.offsets.reference,c=rt(r.instance.modifiers,(function(_){return _.name==="preventOverflow"})).boundaries;if(f.bottom<c.top||f.left>c.right||f.top>c.bottom||f.right<c.left){if(r.hide===!0)return r;r.hide=!0,r.attributes["x-out-of-boundaries"]=""}else{if(r.hide===!1)return r;r.hide=!1,r.attributes["x-out-of-boundaries"]=!1}return r}},computeStyle:{order:850,enabled:!0,fn:function(r,f){var c=f.x,_=f.y,x=r.offsets.popper,E=rt(r.instance.modifiers,(function(Yt){return Yt.name==="applyStyle"})).gpuAcceleration;E!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var A,Z,X=E!==void 0?E:f.gpuAcceleration,ht=tt(r.instance.popper),Ft=qt(ht),_t={position:x.position},Mt=(function(Yt,ue){var le=Yt.offsets,ne=le.popper,re=le.reference,se=Math.round,ye=Math.floor,me=function(Le){return Le},ve=se(re.width),ge=se(ne.width),_e=["left","right"].indexOf(Yt.placement)!==-1,fe=Yt.placement.indexOf("-")!==-1,be=ue?_e||fe||ve%2==ge%2?se:ye:me,we=ue?se:me;return{left:be(ve%2==1&&ge%2==1&&!fe&&ue?ne.left-1:ne.left),top:we(ne.top),bottom:we(ne.bottom),right:be(ne.right)}})(r,window.devicePixelRatio<2||!V),Vt=c==="bottom"?"top":"bottom",Zt=_==="right"?"left":"right",Jt=dt("transform");if(Z=Vt==="bottom"?ht.nodeName==="HTML"?-ht.clientHeight+Mt.bottom:-Ft.height+Mt.bottom:Mt.top,A=Zt==="right"?ht.nodeName==="HTML"?-ht.clientWidth+Mt.right:-Ft.width+Mt.right:Mt.left,X&&Jt)_t[Jt]="translate3d("+A+"px, "+Z+"px, 0)",_t[Vt]=0,_t[Zt]=0,_t.willChange="transform";else{var ee=Vt==="bottom"?-1:1,ce=Zt==="right"?-1:1;_t[Vt]=Z*ee,_t[Zt]=A*ce,_t.willChange=Vt+", "+Zt}var ie={"x-placement":r.placement};return r.attributes=mt({},ie,r.attributes),r.styles=mt({},_t,r.styles),r.arrowStyles=mt({},r.offsets.arrow,r.arrowStyles),r},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(r){var f,c;return pt(r.instance.popper,r.styles),f=r.instance.popper,c=r.attributes,Object.keys(c).forEach((function(_){c[_]!==!1?f.setAttribute(_,c[_]):f.removeAttribute(_)})),r.arrowElement&&Object.keys(r.arrowStyles).length&&pt(r.arrowElement,r.arrowStyles),r},onLoad:function(r,f,c,_,x){var E=F(x,f,r,c.positionFixed),A=U(c.placement,E,f,r,c.modifiers.flip.boundariesElement,c.modifiers.flip.padding);return f.setAttribute("x-placement",A),pt(f,{position:c.positionFixed?"fixed":"absolute"}),c},gpuAcceleration:void 0}}},Ht=(function(){function r(f,c){var _=this,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};bt(this,r),this.scheduleUpdate=function(){return requestAnimationFrame(_.update)},this.update=s(this.update.bind(this)),this.options=mt({},r.Defaults,x),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=f&&f.jquery?f[0]:f,this.popper=c&&c.jquery?c[0]:c,this.options.modifiers={},Object.keys(mt({},r.Defaults.modifiers,x.modifiers)).forEach((function(A){_.options.modifiers[A]=mt({},r.Defaults.modifiers[A]||{},x.modifiers?x.modifiers[A]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(A){return mt({name:A},_.options.modifiers[A])})).sort((function(A,Z){return A.order-Z.order})),this.modifiers.forEach((function(A){A.enabled&&u(A.onLoad)&&A.onLoad(_.reference,_.popper,_.options,A,_.state)})),this.update();var E=this.options.eventsEnabled;E&&this.enableEventListeners(),this.state.eventsEnabled=E}return Ot(r,[{key:"update",value:function(){return lt.call(this)}},{key:"destroy",value:function(){return st.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return Ct.call(this)}}]),r})();Ht.Utils=(typeof window!="undefined"?window:global).PopperUtils,Ht.placements=at,Ht.Defaults=Wt;var Kt=Ht,O="adropdown",T="bs.adropdown",R="."+T,yt=l.default.fn[O],it=new RegExp("38|40|27"),At="disabled",zt="show",Nt="adropdown-menu-right",jt="hide"+R,Qt="hidden"+R,$t="click.bs.adropdown.data-api",Xt="keydown.bs.adropdown.data-api",de='[data-toggle="adropdown"]',pe=".adropdown-menu",he={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null}
5,te={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},ae=(function(){function r(c,_){this._element=c,this._popper=null,this._config=this._getConfig(_),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var f=r.prototype;return f.toggle=function(){if(!this._element.disabled&&!l.default(this._element).hasClass(At)){var c=l.default(this._menu).hasClass(zt);r._clearMenus(),c||this.show(!0)}},f.show=function(c){if(c===void 0&&(c=!1),!(this._element.disabled||l.default(this._element).hasClass(At)||l.default(this._menu).hasClass(zt))){var _={relatedTarget:this._element},x=l.default.Event("show.bs.adropdown",_),E=r._getParentFromElement(this._element);if(l.default(E).trigger(x),!x.isDefaultPrevented()){if(!this._inNavbar&&c){if(typeof Kt=="undefined")throw new TypeError("Bootstrap's adropdowns require Popper (https://popper.js.org)");var A=this._element;this._config.reference==="parent"?A=E:D.isElement(this._config.reference)&&(A=this._config.reference,typeof this._config.reference.jquery!="undefined"&&(A=this._config.reference[0])),this._config.boundary!=="scrollParent"&&l.default(E).addClass("position-static"),this._popper=new Kt(A,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&l.default(E).closest(".navbar-nav").length===0&&l.default(document.body).children().on("mouseover",null,l.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),l.default(this._menu).toggleClass(zt),l.default(E).toggleClass(zt).trigger(l.default.Event("shown.bs.adropdown",_))}}},f.hide=function(){if(!this._element.disabled&&!l.default(this._element).hasClass(At)&&l.default(this._menu).hasClass(zt)){var c={relatedTarget:this._element},_=l.default.Event(jt,c),x=r._getParentFromElement(this._element);l.default(x).trigger(_),_.isDefaultPrevented()||(this._popper&&this._popper.destroy(),l.default(this._menu).toggleClass(zt),l.default(x).toggleClass(zt).trigger(l.default.Event(Qt,c)))}},f.dispose=function(){l.default.removeData(this._element,T),l.default(this._element).off(R),this._element=null,this._menu=null,this._popper!==null&&(this._popper.destroy(),this._popper=null)},f.update=function(){this._inNavbar=this._detectNavbar(),this._popper!==null&&this._popper.scheduleUpdate()},f._addEventListeners=function(){var c=this;l.default(this._element).on("click.bs.adropdown",(function(_){_.preventDefault(),_.stopPropagation(),c.toggle()}))},f._getConfig=function(c){return c=K({},this.constructor.Default,l.default(this._element).data(),c),D.typeCheckConfig(O,c,this.constructor.DefaultType),c},f._getMenuElement=function(){if(!this._menu){var c=r._getParentFromElement(this._element);c&&(this._menu=c.querySelector(pe))}return this._menu},f._getPlacement=function(){var c=l.default(this._element.parentNode),_="bottom-start";return c.hasClass("dropup")?_=l.default(this._menu).hasClass(Nt)?"top-end":"top-start":c.hasClass("dropright")?_="right-start":c.hasClass("dropleft")?_="left-start":l.default(this._menu).hasClass(Nt)&&(_="bottom-end"),_},f._detectNavbar=function(){return l.default(this._element).closest(".navbar").length>0},f._getOffset=function(){var c=this,_={};return typeof this._config.offset=="function"?_.fn=function(x){return x.offsets=K({},x.offsets,c._config.offset(x.offsets,c._element)),x}:_.offset=this._config.offset,_},f._getPopperConfig=function(){var c={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return this._config.display==="static"&&(c.modifiers.applyStyle={enabled:!1}),K({},c,this._config.popperConfig)},r._jQueryInterface=function(c){return this.each((function(){var _=l.default(this).data(T);if(_||(_=new r(this,typeof c=="object"?c:null),l.default(this).data(T,_)),typeof c=="string"){if(typeof _[c]=="undefined")throw new TypeError('No method named "'+c+'"');_[c]()}}))},r._clearMenus=function(c){if(!c||c.which!==3&&(c.type!=="keyup"||c.which===9))for(var _=[].slice.call(document.querySelectorAll(de)),x=0,E=_.length;x<E;x++){var A=r._getParentFromElement(_[x]),Z=l.default(_[x]).data(T),X={relatedTarget:_[x]};if(c&&c.type==="click"&&(X.clickEvent=c),Z){var ht=Z._menu;if(l.default(A).hasClass(zt)&&!(c&&(c.type==="click"&&/input|textarea/i.test(c.target.tagName)||c.type==="
5keyup"&&c.which===9)&&l.default.contains(A,c.target))){var Ft=l.default.Event(jt,X);l.default(A).trigger(Ft),Ft.isDefaultPrevented()||("ontouchstart"in document.documentElement&&l.default(document.body).children().off("mouseover",null,l.default.noop),_[x].setAttribute("aria-expanded","false"),Z._popper&&Z._popper.destroy(),l.default(ht).removeClass(zt),l.default(A).removeClass(zt).trigger(l.default.Event(Qt,X)))}}}},r._getParentFromElement=function(c){var _,x=D.getSelectorFromElement(c);return x&&(_=document.querySelector(x)),_||c.parentNode},r._dataApiKeydownHandler=function(c){if(!(/input|textarea/i.test(c.target.tagName)?c.which===32||c.which!==27&&(c.which!==40&&c.which!==38||l.default(c.target).closest(pe).length):!it.test(c.which))&&!this.disabled&&!l.default(this).hasClass(At)){var _=r._getParentFromElement(this),x=l.default(_).hasClass(zt);if(x||c.which!==27){if(c.preventDefault(),c.stopPropagation(),!x||c.which===27||c.which===32)return c.which===27&&l.default(_.querySelector(de)).trigger("focus"),void l.default(this).trigger("click");var E=[].slice.call(_.querySelectorAll(".adropdown-menu .adropdown-item:not(.disabled):not(:disabled)")).filter((function(Z){return l.default(Z).is(":visible")}));if(E.length!==0){var A=E.indexOf(c.target);c.which===38&&A>0&&A--,c.which===40&&A<E.length-1&&A++,A<0&&(A=0),E[A].focus()}}}},P(r,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return he}},{key:"DefaultType",get:function(){return te}}]),r})();l.default(document).on(Xt,de,ae._dataApiKeydownHandler).on(Xt,pe,ae._dataApiKeydownHandler).on($t+" keyup.bs.adropdown.data-api",ae._clearMenus).on($t,de,(function(r){r.preventDefault(),r.stopPropagation(),ae._jQueryInterface.call(l.default(this),"toggle")})).on($t,".adropdown form",(function(r){r.stopPropagation()})),l.default.fn[O]=ae._jQueryInterface,l.default.fn[O].Constructor=ae,l.default.fn[O].noConflict=function(){return l.default.fn[O]=yt,ae._jQueryInterface},n.Util=D,n.aCollapse=t,n.aDropdown=ae,Object.defineProperty(n,"__esModule",{value:!0})}))}if(!asl_shared_uses_maplibre()){let n=function(a){a=a||{},google.maps.OverlayView.apply(this,arguments),this.content_=a.content||"",this.disableAutoPan_=a.disableAutoPan||!1,this.maxWidth_=a.maxWidth||0,this.pixelOffset_=a.pixelOffset||new google.maps.Size(0,0),this.position_=a.position||new google.maps.LatLng(0,0),this.zIndex_=a.zIndex||null,this.boxClass_=a.boxClass||"infoBox",this.boxStyle_=a.boxStyle||{},this.closeBoxMargin_=a.closeBoxMargin||"2px",this.closeBoxURL_=a.closeBoxURL||"https://www.google.com/intl/en_us/mapfiles/close.gif",a.closeBoxURL===""&&(this.closeBoxURL_=""),this.infoBoxClearance_=a.infoBoxClearance||new google.maps.Size(1,1),typeof a.visible=="undefined"&&(typeof a.isHidden=="undefined"?a.visible=!0:a.visible=!a.isHidden),this.isHidden_=!a.visible,this.alignBottom_=a.al
5ignBottom||!1,this.pane_=a.pane||"floatPane",this.enableEventPropagation_=a.enableEventPropagation||!1,this.div_=null,this.closeListener_=null,this.moveListener_=null,this.contextListener_=null,this.eventListeners_=null,this.fixedWidthSet_=null};var InfoBox=n;n.prototype=new google.maps.OverlayView,n.prototype.createInfoBoxDiv_=function(){var a,d,l,w=this,P=function(q){q.cancelBubble=!0,q.stopPropagation&&q.stopPropagation()},K=function(q){q.returnValue=!1,q.preventDefault&&q.preventDefault(),w.enableEventPropagation_||P(q)};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),typeof this.content_.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:this.maxWidth_!==0&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(l=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-l.left-l.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],d=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],a=0;a<d.length;a++)this.eventListeners_.push(this.div_.addEventListener(d[a],P));this.eventListeners_.push(this.div_.addEventListener("mouseover",function(q){this.style.cursor="default"}))}this.contextListener_=this.div_.addEventListener("contextmenu",K),ASLEvent.trigger(this,"domready")}},n.prototype.getCloseBoxImg_=function(){var a="";return this.closeBoxURL_!==""&&(a="<img",a+=" src='"+this.closeBoxURL_+"'",a+=" align=right",a+=" style='",a+=" position: relative;",a+=" cursor: pointer;",a+=" margin: "+this.closeBoxMargin_+";",a+="'>"),a},n.prototype.addClickHandler_=function(){var a;this.closeBoxURL_!==""?(a=this.div_.firstChild,this.closeListener_=a.addEventListener("click",this.getCloseClickHandler_())):this.closeListener_=null},n.prototype.getCloseClickHandler_=function(){var a=this;return function(d){d.cancelBubble=!0,d.stopPropagation&&d.stopPropagation(),ASLEvent.trigger(a,"closeclick"),a.close()}},n.prototype.panBox_=function(a){var d,l,w=0,P=0;if(!a&&(d=this.getMap(),d instanceof google.maps.Map)){d.getBounds().contains(this.position_)||d.setCenter(this.position_),l=d.getBounds();var K=d.getDiv(),q=K.offsetWidth,D=K.offsetHeight,ut=this.pixelOffset_.width,St=this.pixelOffset_.height,It=this.div_.offsetWidth,vt=this.div_.offsetHeight,ct=this.infoBoxClearance_.width,kt=this.infoBoxClearance_.height,Rt=this.getProjection().fromLatLngToContainerPixel(this.position_);if(Rt.x<-ut+ct?w=Rt.x+ut-ct:Rt.x+It+ut+ct>q&&(w=Rt.x+It+ut+ct-q),this.alignBottom_?Rt.y<-St+kt+vt?P=Rt.y+St-kt-vt:Rt.y+St+kt>D&&(P=Rt.y+St+kt-D):Rt.y<-St+kt?P=Rt.y+St-kt:Rt.y+vt+St+kt>D&&(P=Rt.y+vt+St+kt-D),!(w===0&&P===0)){var Bt=d.getCenter();d.panBy(w,P)}}},n.prototype.setBoxStyle_=function(){var a,d;if(this.div_){this.div_.className=this.boxClass_,this.div_.style.cssText="",d=this.boxStyle_;for(a in d)d.hasOwnProperty(a)&&(this.div_.style[a]=d[a]);this.div_.style.WebkitTransform="translateZ(0)",typeof this.div_.style.opacity!="undefined"&&this.div_.style.opacity!==""&&(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+this.div_.style.opacity*100+')"',this.div_.style.filter="alpha(opacity="+this.div_.style.opacity*100+")"),this.div_.style.position="absolute",this.div_.style.visibility="hidden",this.zIndex_!==null&&(this.div_.style.zIndex=this.zIndex_)}},n.prototype.getBoxWidths_=function(){var a,d={top:0,bottom:0,left:0,right:0},l=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(a=l.ownerDocument.defaultView.getComputedStyle(l,""),a&&(d.top=parseInt(a.borderTopWidth,10)||0,d.bottom=parseInt(a.borderBottomWidth,10)||0,d.left=parseInt(a.borderLeftWidth,10)||0,d.right=parseInt(a.borderRightWidth,10)||0)):document.documentElement.currentStyle&&l.currentStyle&&(d.top=parseInt(l.currentStyle.borderTopWidth,10)||0,d.bottom=parseInt(l.currentStyle.borderBottomWidth,10)||0,d.left=parseInt(l.currentStyle.borderLeftWidth,10)||0,d.right=parseInt(l.currentStyle.borderRightWidth,10)||0),d},n.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.prototype.draw=function(){this.createInfoBoxDiv_();var a=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=a.x+this.pixelOffset_.width+"px",this.alignBottom_?this.div_.style.bottom=-(a.y+this.pixelOffset_.height)+"px":this.div_.style.top=a.y+this.pixelOffset_.height+"px",this.isHidden_?this.div_.style.visibility="hidden":this.div_.style.visibility="visible"},n.prototype.setOptions=function(a){typeof a.boxClass!="undefined"&&(this.boxClass_=a.boxClass,this.setBoxStyle_()),typeof a.boxStyle!="undefined"&&(this.boxStyle_=a.boxStyle,this.setBoxStyle_()),typeof a.content!="undefined"&&this.setContent(a.content),typeof a.disableAutoPan!="undefined"&&(this.disableAutoPan_=a.disableAutoPan),typeof a.maxWidth!="undefined"&&(this.maxWidth_=a.maxWidth),typeof a.pixelOffset!="undefined"&&(this.pixelOffset_=a.pixelOffset),typeof a.alignBottom!="undefined"&&(this.alignBottom_=a.al
5ignBottom),typeof a.position!="undefined"&&this.setPosition(a.position),typeof a.zIndex!="undefined"&&this.setZIndex(a.zIndex),typeof a.closeBoxMargin!="undefined"&&(this.closeBoxMargin_=a.closeBoxMargin),typeof a.closeBoxURL!="undefined"&&(this.closeBoxURL_=a.closeBoxURL),typeof a.infoBoxClearance!="undefined"&&(this.infoBoxClearance_=a.infoBoxClearance),typeof a.isHidden!="undefined"&&(this.isHidden_=a.isHidden),typeof a.visible!="undefined"&&(this.isHidden_=!a.visible),typeof a.enableEventPropagation!="undefined"&&(this.enableEventPropagation_=a.enableEventPropagation),this.div_&&this.draw()},n.prototype.setContent=function(a){this.content_=a,this.div_&&(this.closeListener_&&(ASLEvent.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),typeof a.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+a:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(a)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px",typeof a.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+a:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(a))),this.addClickHandler_()),ASLEvent.trigger(this,"content_changed")},n.prototype.setPosition=function(a){this.position_=a,this.div_&&this.draw(),ASLEvent.trigger(this,"position_changed")},n.prototype.setZIndex=function(a){this.zIndex_=a,this.div_&&(this.div_.style.zIndex=a),ASLEvent.trigger(this,"zindex_changed")},n.prototype.setVisible=function(a){this.isHidden_=!a,this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")},n.prototype.getContent=function(){return this.content_},n.prototype.getPosition=function(){return this.position_},n.prototype.getZIndex=function(){return this.zIndex_},n.prototype.getVisible=function(){var a;return typeof this.getMap()=="undefined"||this.getMap()===null?a=!1:a=!this.isHidden_,a},n.prototype.show=function(){this.isHidden_=!1,this.div_&&(this.div_.style.visibility="visible")},n.prototype.hide=function(){this.isHidden_=!0,this.div_&&(this.div_.style.visibility="hidden")},n.prototype.open=function(a,d){var l=this;d&&(this.position_=d.getPosition(),this.moveListener_=ASLEvent.addListener(d,"position_changed",function(){l.setPosition(this.getPosition())})),this.setMap(a),this.div_&&this.panBox_()},n.prototype.close=function(){var a;if(this.closeListener_&&(ASLEvent.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(a=0;a<this.eventListeners_.length;a++)ASLEvent.removeListener(this.eventListeners_[a]);this.eventListeners_=null}this.moveListener_&&(ASLEvent.removeListener(this.moveListener_),this.moveListener_=null),this.contextListener_&&(ASLEvent.removeListener(this.contextListener_),this.contextListener_=null),this.setMap(null)}}(function(n,a){typeof exports=="object"&&typeof module=="object"?module.exports=a():typeof define=="function"&&define.amd?define([],a):typeof exports=="object"?exports.ASLRouteAPI=a():n.ASLRouteAPI=a()})(this,(()=>(()=>{"use strict";var n={d:(g,b)=>{for(var y in b)n.o(b,y)&&!n.o(g,y)&&Object.defineProperty(g,y,{enumerable:!0,get:b[y]})},o:(g,b)=>Object.prototype.hasOwnProperty.call(g,b)},a={};function d(g,b){var y=Object.keys(g);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);b&&(C=C.filter((function(z){return Object.getOwnPropertyDescriptor(g,z).enumerable}))),y.push.apply(y,C)}return y}function l(g){for(var b=1;b<arguments.length;b++){var y=arguments[b]!=null?arguments[b]:{};b%2?d(Object(y),!0).forEach((function(C){w(g,C,y[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(y)):d(Object(y)).forEach((function(C){Object.defineProperty(g,C,Object.getOwnPropertyDescriptor(y,C))}))}return g}function w(g,b,y){return(b=(function(C){var z=(function(W,U){if(D(W)!="object"||!W)return W;var F=W[Symbol.toPrimitive];if(F!==void 0){var v=F.call(W,U||"default");if(D(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(W)})(C,"string");return D(z)=="symbol"?z:z+""})(b))in g?Object.defineProperty(g,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):g[b]=y,g}function P(){P=function(){return b};var g,b={},y=Object.prototype,C=y.hasOwnProperty,z=Object.defineProperty||function(O,T,R){O[T]=R.value},W=typeof Symbol=="function"?Symbol:{},U=W.iterator||"@@iterator",F=W.asyncIterator||"@@asyncIterator",v=W.toStringTag||"@@toStringTag";function M(O,T,R){return Object.defineProperty(O,T,{value:R,enumerable:!0,configurable:!0,writable:!0}),O[T]}try{M({},"")}catch(O){M=function(T,R,yt){return T[R]=yt}}function j(O,T,R,yt){var it=T&&T.prototype instanceof gt?T:gt,At=Object.create(it.prototype),zt=new Ht(yt||[]);return z(At,"_invoke",{value:at(O,R,zt)}),At}function rt(O,T,R){try{return{type:"normal",arg:O.call(T,R)}}catch(yt){return{type:"throw",arg:yt}}}b.wrap=j;var ot="suspendedStart",lt="suspendedYield",Et="executing",dt="completed",st={};function gt(){}function Dt(){}function Q(){}var Y={};M(Y,U,(function(){return this}));var Ct=Object.getPrototypeOf,ft=Ct&&Ct(Ct(Kt([])));ft&&ft!==y&&C.call(ft,U)&&(Y=ft);var pt=Q.prototype=gt.prototype=Object.create(Y);function V(O){["next","throw","return"].forEach((function(T){M(O,T,(function(R){return this._invoke(T,R)}))}))}function et(O,T){function R(it,At,zt,Nt){var jt=rt(O[it],O,At);if(jt.type!=="throw"){var Qt=jt.arg,$t=Qt.value;return $t&&D($t)=="object"&&C.call($t,"__await")?T.resolve($t.__await).then((function(Xt){R("next",Xt,zt,Nt)}),(function(Xt){R("throw",Xt,zt,Nt)})):T.resolve($t).then((function(Xt){Qt.value=Xt,zt(Qt)}),(function(Xt){return R("throw",Xt,zt,Nt)}))}Nt(jt.arg)}var yt;z(this,"_invoke",{value:function(it,At){function zt(){return new T((function(Nt,jt){R(it,At,Nt,jt)}))}return yt=yt?yt.then(zt,zt):zt()}})}function at(O,T,R){var yt=ot;return function(it,At){if(yt===Et)throw Error("Generator is already running");if(yt===dt){if(it==="throw")throw At;return{value:g,done:!0}}for(R.method=it,R.arg=At;;){var zt=R.delegate;if(zt){var Nt=Pt(zt,R);if(Nt){if(Nt===st)continue;return Nt}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(yt===ot)throw yt=dt,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);yt=Et;var jt=rt(O,T,R);if(jt.type==="normal"){if(yt=R.done?dt:lt,jt.arg===st)continue;return{value:jt.arg,done:R.done}}jt.type==="throw"&&(yt=dt,R.method="throw",R.arg=jt.arg)}}}
5function Pt(O,T){var R=T.method,yt=O.iterator[R];if(yt===g)return T.delegate=null,R==="throw"&&O.iterator.return&&(T.method="return",T.arg=g,Pt(O,T),T.method==="throw")||R!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+R+"' method")),st;var it=rt(yt,O.iterator,T.arg);if(it.type==="throw")return T.method="throw",T.arg=it.arg,T.delegate=null,st;var At=it.arg;return At?At.done?(T[O.resultName]=At.value,T.next=O.nextLoc,T.method!=="return"&&(T.method="next",T.arg=g),T.delegate=null,st):At:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,st)}function wt(O){var T={tryLoc:O[0]};1 in O&&(T.catchLoc=O[1]),2 in O&&(T.finallyLoc=O[2],T.afterLoc=O[3]),this.tryEntries.push(T)}function Wt(O){var T=O.completion||{};T.type="normal",delete T.arg,O.completion=T}function Ht(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(wt,this),this.reset(!0)}function Kt(O){if(O||O===""){var T=O[U];if(T)return T.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var R=-1,yt=function it(){for(;++R<O.length;)if(C.call(O,R))return it.value=O[R],it.done=!1,it;return it.value=g,it.done=!0,it};return yt.next=yt}}throw new TypeError(D(O)+" is not iterable")}return Dt.prototype=Q,z(pt,"constructor",{value:Q,configurable:!0}),z(Q,"constructor",{value:Dt,configurable:!0}),Dt.displayName=M(Q,v,"GeneratorFunction"),b.isGeneratorFunction=function(O){var T=typeof O=="function"&&O.constructor;return!!T&&(T===Dt||(T.displayName||T.name)==="GeneratorFunction")},b.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,Q):(O.__proto__=Q,M(O,v,"GeneratorFunction")),O.prototype=Object.create(pt),O},b.awrap=function(O){return{__await:O}},V(et.prototype),M(et.prototype,F,(function(){return this})),b.AsyncIterator=et,b.async=function(O,T,R,yt,it){it===void 0&&(it=Promise);var At=new et(j(O,T,R,yt),it);return b.isGeneratorFunction(T)?At:At.next().then((function(zt){return zt.done?zt.value:At.next()}))},V(pt),M(pt,v,"Generator"),M(pt,U,(function(){return this})),M(pt,"toString",(function(){return"[object Generator]"})),b.keys=function(O){var T=Object(O),R=[];for(var yt in T)R.push(yt);return R.reverse(),function it(){for(;R.length;){var At=R.pop();if(At in T)return it.value=At,it.done=!1,it}return it.done=!0,it}},b.values=Kt,Ht.prototype={constructor:Ht,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(Wt),!O)for(var T in this)T.charAt(0)==="t"&&C.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=g)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var T=this;function R(jt,Qt){return At.type="throw",At.arg=O,T.next=jt,Qt&&(T.method="next",T.arg=g),!!Qt}for(var yt=this.tryEntries.length-1;yt>=0;--yt){var it=this.tryEntries[yt],At=it.completion;if(it.tryLoc==="root")return R("end");if(it.tryLoc<=this.prev){var zt=C.call(it,"catchLoc"),Nt=C.call(it,"finallyLoc");if(zt&&Nt){if(this.prev<it.catchLoc)return R(it.catchLoc,!0);if(this.prev<it.finallyLoc)return R(it.finallyLoc)}else if(zt){if(this.prev<it.catchLoc)return R(it.catchLoc,!0)}else{if(!Nt)throw Error("try statement without catch or finally");if(this.prev<it.finallyLoc)return R(it.finallyLoc)}}}},abrupt:function(O,T){for(var R=this.tryEntries.length-1;R>=0;--R){var yt=this.tryEntries[R];if(yt.tryLoc<=this.prev&&C.call(yt,"finallyLoc")&&this.prev<yt.finallyLoc){var it=yt;break}}it&&(O==="break"||O==="continue")&&it.tryLoc<=T&&T<=it.finallyLoc&&(it=null);var At=it?it.completion:{};return At.type=O,At.arg=T,it?(this.method="next",this.next=it.finallyLoc,st):this.complete(At)},complete:function(O,T){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&T&&(this.next=T),st},finish:function(O){for(var T=this.tryEntries.length-1;T>=0;--T){var R=this.tryEntries[T];if(R.finallyLoc===O)return this.complete(R.completion,R.afterLoc),Wt(R),st}},catch:function(O){for(var T=this.tryEntries.length-1;T>=0;--T){var R=this.tryEntries[T];if(R.tryLoc===O){var yt=R.completion;if(yt.type==="throw"){var it=yt.arg;Wt(R)}return it}}throw Error("illegal catch attempt")},delegateYield:function(O,T,R){return this.delegate={iterator:Kt(O),resultName:T,nextLoc:R},this.method==="next"&&(this.arg=g),st}},b}function K(g,b){var y=typeof Symbol!="undefined"&&g[Symbol.iterator]||g["@@iterator"];if(!y){if(Array.isArray(g)||(y=(function(v,M){if(v){if(typeof v=="string")return q(v,M);var j={}.toString.call(v).slice(8,-1);return j==="Object"&&v.constructor&&(j=v.constructor.name),j==="Map"||j==="Set"?Array.from(v):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?q(v,M):void 0}})(g))||b&&g&&typeof g.length=="number"){y&&(g=y);var C=0,z=function(){};return{s:z,n:function(){return C>=g.length?{done:!0}:{done:!1,value:g[C++]}},e:function(v){throw v},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var W,U=!0,F=!1;return{s:function(){y=y.call(g)},n:function(){var v=y.next();return U=v.done,v},e:function(v){F=!0,W=v},f:function(){try{U||y.return==null||y.return()}finally{if(F)throw W}}}}function q(g,b){(b==null||b>g.length)&&(b=g.length);for(var y=0,C=Array(b);y<b;y++)C[y]=g[y];return C}function D(g){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},D(g)}function ut(g,b,y,C,z,W,U){try{var F=g[W](U),v=F.value}catch(M){return void y(M)}F.done?b(v):Promise.resolve(v).then(C,z)}function St(g){return function(){var b=this,y=arguments;return new Promise((function(C,z){var W=g.apply(b,y);function U(v){ut(W,C,z,U,F,"next",v)}function F(v){ut(W,C,z,U,F,"throw",v)}U(void 0)}))}}n.d(a,{default:()=>qt});var It={lat:25.2048,lng:55.2708},vt={lat:25.3463,lng:55.4209},ct={lat:(It.lat+vt.lat)/2,lng:(It.lng+vt.lng)/2},kt=null,Rt=null,Bt=null;function Gt(){return Gt=St(P().mark((function g(){var b,y,C,z,W,U,F,v,M,j,rt,ot,lt,Et,dt,st,gt,Dt,Q=arguments;return P().wrap((function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(U=Q.length>0&&Q[0]!==void 0?Q[0]:{},(F=window.google)!=null&&(b=F.maps)!==null&&b!==void 0&&b.importLibrary){Y.next=4;break}return Y.abrupt("return");case 4:if(v=bt({element:U.panelElement||U.panelNode||U.panelContainer||null,elementId:U.panelElementId,fallbackId:U.fallbackPanelId||"panel"})){Y.next=8;break}return Y.abrupt("return");case 8:return Bt=v,M=U.route||{origin:It,destination:vt},j=Tt({languageCode:U.languageCode||U.language||U.locale||((y=window)===null||y===void 0||(y=y.asl_configuration)===null||y===void 0?void 0:y.languageCode)||((C=window)===null||C===void 0||(C=C.asl_configuration)===null||C===void 0?void 0:C.language),regionCode:U.regionCode||U.region||((z=window)===null||z===void 0||(z=z.asl_configuration)===null||z===void 0?void 0:z.regionCode)||((W=window)===null||W===void 0||(W=W.asl_configuration)===null||W===void 0?void 0:W.region)}),Y.prev=11,Y.next=14,F.maps.importLibrary("routes").catch((function(){return null}));case 14:return lt=Y.sent,Et=(lt==null?void 0:lt.RoutesService)||((rt=F.maps)===null||rt===void 0?void 0:rt.RoutesService)||((ot=F.maps)===null||ot===void 0||(ot=ot.routes)===null||ot===void 0?void 0:ot.RoutesService)||null,Y.next=18,H({googleNamespace:F,providedMap:U.mapInstance||window.__asl_main_map||null,mapElement:U.mapElement||U.mapContainer||null,mapElementId:U.mapElementId,defaultCenter:U.initialCenter||ct,zoom:U.zoom||11,mapOptions:U.mapOptions||{}});case 18:if(dt=Y.sent){Y.next=22;break}return v.textContent="Unable to load directions at this time.",Y.abrupt("return");case 22:return Y.next=24,F.maps.importLibrary("geometry").catch((function(){return{}}));case 24:return st=Y.sent,gt=st.encoding,Dt=Et?new Et:null,Y.next=29,oe({map:dt,panelElement:v,routeConfig:M,localeOptions:j,routesService:Dt,geometryLibrary:gt});case 29:Y.next=35;break;case 31:Y.prev=31,Y.t0=Y.catch(11),v.textContent="Unable to load directions at this time.";case 35:case"end":return Y.stop()}}),g,null,[[11,31]])}))),Gt.apply(this,arguments)}function oe(g){return Ut.apply(this,arguments)}function Ut(){return(Ut=St(P().mark((function g(b){var y,C,z,W,U,F,v,M,j,rt;return P().wrap((function(ot){for(;;)switch(ot.prev=ot.next){case 0:return C=b.map,z=b.panelElement,W=b.routeConfig,U=b.localeOptions,F=b.routesService,v=b.geometryLibrary,M=t(W,U
6),ot.next=4,e({request:M,routesService:F});case 4:if(j=ot.sent,rt=j==null||(y=j.routes)===null||y===void 0?void 0:y[0]){ot.next=8;break}throw new Error("Routes API returned no routes for the supplied request.");case 8:m({map:C,route:rt,routeConfig:W,geometryLibrary:v}),L({panelElement:z,route:rt,map:C,geometryLibrary:v,routeConfig:W});case 10:case"end":return ot.stop()}}),g)})))).apply(this,arguments)}function t(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y={origin:p(g.origin),destination:p(g.destination),travelMode:"DRIVE",routingPreference:"TRAFFIC_AWARE",computeAlternativeRoutes:!1,polylineQuality:"HIGH_QUALITY",polylineEncoding:"ENCODED_POLYLINE"};return b.languageCode&&(y.languageCode=b.languageCode),b.regionCode&&(y.regionCode=b.regionCode),y}function e(g){return o.apply(this,arguments)}function o(){return(o=St(P().mark((function g(b){var y,C,z;return P().wrap((function(W){for(;;)switch(W.prev=W.next){case 0:if(y=b.request,!(C=b.routesService)){W.next=16;break}if(typeof(z=typeof C.route=="function"?C.route:C.computeRoutes)!="function"){W.next=15;break}return W.prev=4,W.next=7,z.call(C,y);case 7:return W.abrupt("return",W.sent);case 10:W.prev=10,W.t0=W.catch(4);case 13:W.next=16;break;case 15:case 16:return W.abrupt("return",s(y));case 17:case"end":return W.stop()}}),g,null,[[4,10]])})))).apply(this,arguments)}function s(g){return u.apply(this,arguments)}function u(){return(u=St(P().mark((function g(b){var y,C,z,W;return P().wrap((function(U){for(;;)switch(U.prev=U.next){case 0:if(C=(y=window)===null||y===void 0||(y=y.asl_configuration)===null||y===void 0?void 0:y.api_key){U.next=3;break}throw new Error("Routes API fallback requires window.asl_configuration.api_key to be set.");case 3:return U.next=5,fetch("https://routes.googleapis.com/directions/v2:computeRoutes",{method:"POST",headers:{"Content-Type":"application/json","X-Goog-Api-Key":C,"X-Goog-FieldMask":"routes.distanceMeters,routes.duration,routes.polyline.encodedPolyline,routes.legs.steps.navigationInstruction,routes.legs.steps.polyline.encodedPolyline,routes.legs.distanceMeters,routes.legs.duration"},body:JSON.stringify(b)});case 5:if((z=U.sent).ok){U.next=11;break}return U.next=9,z.text();case 9:throw W=U.sent,new Error("Routes REST API request failed (".concat(z.status,"): ").concat(W));case 11:return U.abrupt("return",z.json());case 12:case"end":return U.stop()}}),g)})))).apply(this,arguments)}function p(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!tt(g))throw new Error("Route endpoints must include numeric latitude and longitude values.");return{location:{latLng:{latitude:g.lat,longitude:g.lng}}}}function m(g){var b=g.map,y=g.route,C=g.routeConfig,z=g.geometryLibrary;if(b){var W=(function(M,j){var rt,ot,lt=(M==null||(rt=M.polyline)===null||rt===void 0?void 0:rt.encodedPolyline)||(M==null||(ot=M.legs)===null||ot===void 0||(ot=ot[0])===null||ot===void 0||(ot=ot.polyline)===null||ot===void 0?void 0:ot.encodedPolyline);return k(lt,j)})(y,z);if(!W.length)throw new Error("Unable to decode route polyline.");h();var U=new google.maps.Polyline({path:W,strokeColor:"#1a73e8",strokeOpacity:.9,strokeWeight:6,map:b}),F=new google.maps.LatLngBounds;W.forEach((function(M){return F.extend(M)})),F.isEmpty()||b.fitBounds(F);var v=(function(M,j){var rt=[{position:j.origin,label:"A"},{position:j.destination,label:"B"}].filter((function(ot){return tt(ot.position)}));return rt.map((function(ot){return new google.maps.Marker({map:M,position:ot.position,label:ot.label})}))})(b,C);kt={polyline:U,markers:v},nt()}}function h(){kt&&(kt.polyline&&kt.polyline.setMap(null),Array.isArray(kt.markers)&&kt.markers.forEach((function(g){return g.setMap(null)})),kt=null,nt())}function L(g){var b,y,C=g.panelElement,z=g.route,W=g.map,U=g.geometryLibrary,F=g.routeConfig,v=F===void 0?{}:F;if(C){var M=z==null||(b=z.legs)===null||b===void 0?void 0:b[0];if(C.innerHTML="",M){var j=document.createElement("div");j.className="rendered-directions",j.id="asl-rendered-dir",j.style.direction=(function(){var dt,st,gt;if(typeof document=="undefined")return"ltr";var Dt=((dt=document.documentElement)===null||dt===void 0?void 0:dt.getAttribute("dir"))||((st=document.documentElement)===null||st===void 0?void 0:st.dir)||((gt=document.body)===null||gt===void 0?void 0:gt.dir);return Dt&&Dt.toLowerCase()==="rtl"?"rtl":"ltr"})();
6var rt,ot=document.createElement("div"),lt=document.createElement("div");lt.className="adp",lt.appendChild(((rt=document.createElement("div")).className="adp-warnbox",rt.style.display="none",[{tag:"div",className:"warnbox-c2"},{tag:"div",className:"warnbox-c1"},{tag:"div",className:"warnbox-content"},{tag:"div",className:"warnbox-c1"},{tag:"div",className:"warnbox-c2"}].forEach((function(dt){var st=document.createElement(dt.tag);st.className=dt.className,rt.appendChild(st)})),rt)),lt.appendChild(S({label:"A",text:N({location:M.startLocation,fallback:v.origin}),legIndex:0}));var Et=document.createElement("div");Et.className="adp-leg",Et.appendChild((function(dt){var st,gt,Dt,Q,Y=dt.leg,Ct=dt.route,ft=document.createElement("div");ft.className="adp-summary";var pt=B((st=Y==null?void 0:Y.distanceMeters)!==null&&st!==void 0?st:Ct==null?void 0:Ct.distanceMeters),V=Y==null||(gt=Y.localizedValues)===null||gt===void 0||(gt=gt.distance)===null||gt===void 0?void 0:gt.text,et=(function(R){if(!R)return"";var yt=R;if(typeof R=="string"?yt=Number.parseInt(R.replace("s",""),10):D(R)==="object"&&typeof(R==null?void 0:R.seconds)=="number"&&(yt=R.seconds),!Number.isFinite(yt))return"";var it=Math.round(yt/60);if(it<60)return"".concat(it," min");var At=Math.floor(it/60),zt=it%60;return zt?"".concat(At," hr ").concat(zt," min"):"".concat(At," hr")})((Dt=Y==null?void 0:Y.duration)!==null&&Dt!==void 0?Dt:Ct==null?void 0:Ct.duration),at=Y==null||(Q=Y.localizedValues)===null||Q===void 0||(Q=Q.duration)===null||Q===void 0?void 0:Q.text,Pt=pt||V||"",wt=et||at||"";if(!Pt&&!wt)return ft.textContent="Route summary unavailable",ft;if(Pt){var Wt=document.createElement("span");Wt.textContent=Pt,ft.appendChild(Wt)}if(Pt&&wt){var Ht=document.createElement("span");Ht.textContent=". ",ft.appendChild(Ht)}if(wt){var Kt=document.createElement("span");Kt.textContent="About ";var O=document.createElement("span");O.textContent=wt,Kt.appendChild(O),ft.appendChild(Kt)}var T=document.createElement("span");return T.style.display="none",ft.appendChild(T),ft})({leg:M,route:z})),Et.appendChild((function(dt){var st=dt.legIndex,gt=dt.steps,Dt=dt.map,Q=dt.geometryLibrary,Y=document.createElement("div"),Ct=document.createElement("table");Ct.className="adp-directions";var ft=document.createElement("tbody");if(Array.isArray(gt)&&gt.length>0)gt.forEach((function(et,at){var Pt,wt=document.createElement("tr");wt.dataset.legIndex=String(st),wt.dataset.stepIndex=String(at),wt.tabIndex=0,wt.setAttribute("jsaction","directionsPanel.selectLegAndStep"),wt.className="asl-route-step";var Wt=document.createElement("td");Wt.className="adp-substep";var Ht=document.createElement("div");Ht.className="adp-stepicon";var Kt=(function(Nt){var jt,Qt,$t=(Nt==null||(jt=Nt.navigationInstruction)===null||jt===void 0?void 0:jt.maneuver)||(Nt==null?void 0:Nt.maneuver)||(Nt==null||(Qt=Nt.navigationInstruction)===null||Qt===void 0?void 0:Qt.type);return!$t||typeof $t!="string"?"":"adp-".concat($t.toLowerCase().replace(/[^a-z0-9]+/g,"-"))})(et);if(Kt){var O=document.createElement("div");O.className="".concat(Kt," adp-maneuver"),Ht.appendChild(O)}else{Ht.style.display="none";var T=document.createElement("div");T.className="adp-maneuver",Ht.appendChild(T)}Wt.appendChild(Ht);var R=document.createElement("td");R.className="adp-substep",R.textContent="".concat(at+1,".");var yt=document.createElement("td");yt.className="adp-substep",yt.innerHTML=(et==null||(Pt=et.navigationInstruction)===null||Pt===void 0?void 0:Pt.instructions)||(et==null?void 0:et.description)||"Continue";var it=document.createElement("td");it.className="adp-substep";var At=document.createElement("div");At.className="adp-distance",At.textContent=(function(Nt){var jt,Qt;return Nt?typeof Nt.distanceMeters=="number"&&!Number.isNaN(Nt.distanceMeters)?B(Nt.distanceMeters):typeof(Nt==null||(jt=Nt.localizedValues)===null||jt===void 0||(jt=jt.distance)===null||jt===void 0?void 0:jt.text)=="string"?Nt.localizedValues.distance.text:typeof(Nt==null||(Qt=Nt.navigationInstruction)===null||Qt===void 0?void 0:Qt.distance)=="string"?Nt.navigationInstruction.distance:"":""})(et),it.appendChild(At),wt.appendChild(Wt),wt.appendChild(R),wt.appendChild(yt),wt.appendChild(it);var zt=function(){return(function(Nt){var jt=Nt.step,Qt=Nt.listElement,$t=Nt.listItem,Xt=Nt.map,de=Nt.geometryLibrary;if(!(!Qt||!$t)){Qt.querySelectorAll(".asl-route-step--active").forEach((function(te){te.classList.remove("asl-route-step--active")})),$t.classList.add("asl-route-step--active");var pe=(function(te,ae){var r,f,c,_=(te==null||(r=te.polyline)===null||r===void 0?void 0:r.encodedPolyline)||(te==null||(f=te.polyline)===null||f===void 0?void 0:f.points)||(te==null||(c=te.polyline)===null||c===void 0?void 0:c.encodedPoints)||null;return _?k(_,ae):[]})(jt,de);if(pe.length)return void(function(te,ae){if(!(!te||!Array.isArray(ae)||ae.length===0)){nt(),Rt=new google.maps.Polyline({path:ae,map:te,strokeColor:"#fbbc05",strokeOpacity:.9,strokeWeight:8,zIndex:1e3});var r=new google.maps.LatLngBounds;ae.forEach((function(f){return r.extend(f)})),r.isEmpty()||(typeof te.fitBounds=="function"?te.fitBounds(r,80):te.panTo(r.getCenter()))}})(Xt,pe);var he=I(jt==null?void 0:jt.startLocation)||I(jt==null?void 0:jt.endLocation);he&&Xt&&(Xt.panTo(he),typeof Xt.getZoom=="function"&&Xt.getZoom()<15&&Xt.setZoom(15))}})({step:et,listElement:ft,listItem:wt,map:Dt,geometryLibrary:Q})};wt.addEventListener("click",zt),wt.addEventListener("keydown",(function(Nt){Nt.key!=="Enter"&&Nt.key!==" "||(Nt.preventDefault(),zt())})),ft.appendChild(wt)}));else{var pt=document.createElement("tr"),V=document.createElement("td");V.colSpan=4,V.textContent="Turn-by-turn instructions are unavailable.",pt.appendChild(V),ft.appendChild(pt)}return Ct.appendChild(ft),Y.appendChild(Ct),Y})({legIndex:0,steps:M.steps,map:W,geometryLibrary:U})),Et.appendChild(S({label:"B",text:N({location:M.endLocation||(z==null||(y=z.legs)===null||y===void 0||(y=y[z.legs.length-1])===null||y===void 0?void 0:y.endLocation),fallback:v.destination}),legIndex:1})),lt.appendChild(Et),lt.appendChild((function(){var dt=document.createElement("div");dt.className="adp-legal";var st=new Date().getFullYear();return dt.textContent="Powered by Google, \xA9".concat(st," Google"),dt})()),ot.appendChild(lt),j.appendChild(ot),C.appendChild(j)}else C.textContent="Directions are unavailable for the requested route."}}function S(g){var b=g.label,y=g.text,C=g.legIndex,z=document.createElement("button");z.type="button",z.dataset.legIndex=String(C!=null?C:0),z.setAttribute("jsaction","directionsPanel.selectLeg");var W=document.createElement("table");W.className="adp-placemark";var U=document.createElement("tbody"),F=document.createElement("tr"),v=document.createElement("td"),M=document.createElement("img");M.className="adp-marker2",M.src=(function(rt){var ot=String(rt||"").trim().charAt(0)||"A",lt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 37"><g fill="none">
6<path d="M13 0C5.817 0 0 5.773 0 12.918c0 7.655 5.59 10.526 9.555 17.16C12.09 34.321 11.342 37 13 37c1.723 0 .975-2.743 3.445-6.858C20.085 23.86 26 20.605 26 12.918 26 5.773 20.183 0 13 0z" fill="#C5221F"/><path d="M13.017 35c-.233 0-.3-.065-.7-1.275-.332-1.046-.832-2.648-2.13-4.61-1.265-1.928-2.596-3.498-3.861-5.002C3.363 20.517 1 17.706 1 12.64 1.033 6.199 6.393 1 13.017 1S25 6.23 25 12.639c0 5.067-2.33 7.911-5.326 11.507-1.232 1.504-2.53 3.073-3.795 4.97-1.265 1.928-1.797 3.498-2.13 4.544-.4 1.275-.5 1.34-.732 1.34z" fill="#EA4335"/><text text-anchor="middle" dy=".3em" x="13" y="14" font-family="Roboto, Arial, sans-serif" font-size="16px" fill="#FFF">'.concat(ot,"</text></g></svg>");return"data:image/svg+xml,".concat(encodeURIComponent(lt))})(b),M.alt=b||"Marker",v.appendChild(M);var j=document.createElement("td");return j.className="adp-text",j.textContent=y||"Route point",F.appendChild(v),F.appendChild(j),U.appendChild(F),W.appendChild(U),z.appendChild(W),z}function N(g){var b,y,C=g.location,z=g.fallback;if(typeof(C==null?void 0:C.description)=="string"&&C.description.trim())return C.description.trim();if(typeof(C==null?void 0:C.label)=="string"&&C.label.trim())return C.label.trim();var W=(C==null||(b=C.address)===null||b===void 0?void 0:b.text)||(C==null||(y=C.address)===null||y===void 0?void 0:y.formattedAddress)||(C==null?void 0:C.placeId)||(C==null?void 0:C.name);if(typeof W=="string"&&W.trim())return W.trim();var U=G((C==null?void 0:C.latLng)||C)||G(z);if(U){var F=Number(U.lat).toFixed(4),v=Number(U.lng).toFixed(4);return"".concat(F,", ").concat(v)}return"Route point"}function B(g){return typeof g!="number"||Number.isNaN(g)?"":g>=1e3?"".concat((g/1e3).toFixed(1)," km"):"".concat(Math.round(g)," m")}function tt(g){return g&&typeof g.lat=="number"&&!Number.isNaN(g.lat)&&typeof g.lng=="number"&&!Number.isNaN(g.lng)}function k(g,b){var y;if(!g)return[];var C=(b==null?void 0:b.decodePath)||((y=google)===null||y===void 0||(y=y.maps)===null||y===void 0||(y=y.geometry)===null||y===void 0||(y=y.encoding)===null||y===void 0?void 0:y.decodePath)||null;return typeof C!="function"?[]:C(g).map((function(z){return typeof(z==null?void 0:z.toJSON)=="function"?z.toJSON():z}))}function nt(){Rt&&(Rt.setMap(null),Rt=null)}function I(g){return g?tt(g)?g:g.latLng?G(g.latLng):G(g):null}function G(g){if(!g)return null;if(tt(g))return g;var b=typeof g.lat=="number"?g.lat:g.latitude,y=typeof g.lng=="number"?g.lng:g.longitude;return typeof b=="number"&&typeof y=="number"?{lat:b,lng:y}:null}function H(g){return J.apply(this,arguments)}function J(){return(J=St(P().mark((function g(b){var y,C,z,W,U,F,v,M,j,rt;return P().wrap((function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(y=b.googleNamespace,C=b.providedMap,z=b.mapElement,W=b.mapElementId,U=b.defaultCenter,F=b.zoom,v=b.mapOptions,!(lt=C)||D(lt)!=="object"||typeof lt.getCenter!="function"||typeof lt.setCenter!="function"||typeof lt.panTo!="function"){ot.next=3;break}return ot.abrupt("return",C);case 3:if(M=Lt({element:z,elementId:W,fallbackIds:["asl-map","map"]})){ot.next=7;break}return ot.abrupt("return",null);case 7:return ot.next=9,y.maps.importLibrary("maps");case 9:return j=ot.sent,rt=j.Map,ot.abrupt("return",new rt(M,l({center:U,zoom:F},v)));case 12:case"end":return ot.stop()}var lt}),g)})))).apply(this,arguments)}function Lt(g){var b=g.element,y=g.elementId,C=g.fallbackIds,z=C===void 0?[]:C;if(Ot(b))return b;if(typeof y=="string"){var W=document.getElementById(y);if(W)return W}var U,F=K(z);try{for(F.s();!(U=F.n()).done;){var v=U.value;if(v){var M=document.getElementById(v);if(M)return M}}}catch(j){F.e(j)}finally{F.f()}return null}function bt(g){var b=g.element,y=g.elementId,C=g.fallbackId;if(Ot(b))return b;if(typeof y=="string"){var z=document.getElementById(y);if(z)return z}return C&&document.getElementById(C)||null}function Ot(g){return typeof Element!="undefined"&&g instanceof Element}function Tt(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=typeof navigator!="undefined"?navigator.language:null,y=(function(C){if(typeof C!="string")return null;var z=C.trim();return z?z.split(",")[0]:null})(g.languageCode||g.language||g.locale||b);return{languageCode:y||void 0,regionCode:mt(g.regionCode||g.region)||(function(C){if(typeof C!="string")return null;var z=C.split(/[-_]/);return z.length>=2?mt(z[1]):null})(y)||void 0}}function mt(g){if(typeof g!="string")return null;var b=g.trim().toUpperCase();return/^[A-Z]{2}$/.test(b)?b:null}var xt={initRouteAPI:function(){return Gt.apply(this,arguments)},clearRouteDisplay:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=bt({element:g.panelElement||g.panelNode||g.panelContainer||null,elementId:g.panelElementId,fallbackId:g.fallbackPanelId||null})||Bt;b?(function(y){if(h(),!!y){Bt=y,y.innerHTML="";var C=document.createElement("p");C.className="asl-route-cleared",C.textContent="Route cleared.",y.appendChild(C)}})(b):h()}};typeof window!="undefined"&&(window.ASLRouteAPI=xt);const qt=xt;return a=a.default})()));function _isMobileDevice(){var n=window.innerWidth<768;return(function(a){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
6sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))&&(n=!0)})(navigator.userAgent||navigator.vendor||window.opera),n}function _isIOSDevice(){if(typeof navigator=="undefined")return!1;const n=navigator.userAgent||"";return/iPhone|iPad|iPod/i.test(n)}Date.prototype.addHours=function(n){return this.setTime(this.getTime()+n*60*60*1e3),this},Date.prototype.subDays=function(n){return this.setTime(this.getTime()-n*60*60*1e3*24),this};function getDecimal(n){return Math.ceil((n-Math.floor(n))*100)}if(asl_configuration.gdpr_enabled){var head=document.getElementsByTagName("head")[0],insertBefore=head.insertBefore;head.insertBefore=function(n,a){n.href&&n.href.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0||insertBefore.call(head,n,a)}}var asl_drawing={shapes:[],shapes_index:0,current_map:null,loadData:function(n,a){var d=this;d.current_map=a;for(var l in n.shapes)n.shapes[l]&&(n.shapes[l].type=="polygon"?d.shapes.push(d.create_polygon.call(d,n.shapes[l].coord,a,n.shapes[l])):n.shapes[l].type=="polyline"?d.shapes.push(d.create_polyline.call(d,n.shapes[l].coord,a,n.shapes[l])):n.shapes[l].type=="circle"?d.shapes.push(d.create_circle.call(d,n.shapes[l],a)):n.shapes[l].type=="rectangle"&&d.shapes.push(d.create_rectangle.call(d,n.shapes[l],a)))},create_rectangle:function(n){var a=this.current_map;return new google.maps.Rectangle({strokeColor:n.strokeColor,fillColor:n.color,strokeWeight:1,type:"rectangle",editable:asl_drawing.allow_edit?asl_drawing.allow_edit:!1,map:a,bounds:new google.maps.LatLngBounds(new google.maps.LatLng(n.sw[0],n.sw[1]),new google.maps.LatLng(n.ne[0],n.ne[1]))})},create_circle:function(n,d){var d=this.current_map;return new google.maps.Circle({strokeColor:n.strokeColor,fillColor:n.color,type:"circle",strokeWeight:1,map:d,editable:asl_drawing.allow_edit?asl_drawing.allow_edit:!1,center:new google.maps.LatLng(n.center[0],n.center[1]),radius:n.radius})},create_polyline:function(n,l,d){var l=this.current_map,w=[];for(var P in n)w.push({lat:n[P][0],lng:n[P][1]});return new google.maps.Polyline({path:w,strokeColor:d.strokeColor||"#000000",strokeWeight:3,editable:!1,type:"polyline",map:l})},create_polygon:function(n,l,d){var l=this.current_map,w=[];for(var P in n)w.push({lat:n[P][0],lng:n[P][1]});return new google.maps.Polygon({paths:w,fillColor:d.color,strokeColor:d.strokeColor,strokeWeight:1,editable:!!asl_drawing.allow_edit,type:"polygon",map:l})}},ASL_CLOSE_BUTTON='<button aria-label="'+asl_configuration.words.clear+'" title="'+asl_configuration.words.clear+'" class="asl-search-clr asl-clear-btn hide" type="button"><svg width="12" height="12" viewBox="0 0 12 12" xmlns="https://www.w3.org/2000/svg"><path d="M.566 1.698L0 1.13 1.132 0l.565.566L6 4.868 10.302.566 10.868 0 12 1.132l-.566.565L7.132 6l4.302 4.3.566.568L10.868 12l-.565-.566L6 7.132l-4.3 4.302L1.13 12 0 10.868l.566-.565L4.868 6 .566 1.698z"></path></svg></button>',ASL_PICKUP_ROW=asl_configuration.pickup||asl_configuration.ship_from?'<div class="sl-row mt-2 sl-pickup-row"><div class="pol"><a class="btn btn-block btn-asl sl-pickup">'+(asl_configuration.ship_from?asl_configuration.words.ship_from:asl_configuration.words.pickup)+"</a></div></div>":null;(function(n){n.templates||(n.templates=asl_jQuery.templates),n.views||(n.templates=asl_jQuery.views),n.views&&n.views.tags&&(n.views.tags("cssClass",function(t){return typeof t=="string"?t.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\-_]/g,""):""}),n.views.tags("hasCategory",function(t,e){for(var o=0;o<e.length;o++)if(e[o].id===t)return this.tagCtx.render();return""}),n.views.tags("equal",function(t,e){return t==e}),n.views.tags("list",function(t){var e="";if(t){var o=t.split(",");if(o.length){for(var s=0;s<o.length;s++)e+="<li><span>"+o[s]+"</span></li>";e='<ul class="sl-list-props">'+e+"</ul>"}}return e}),n.views.tags("stars",function(t){if(!isNaN(t)){t=Math.round(parseFloat(t)*4)/4;var e=t/5*100,o=Math.round(e/5)*5+"%";return'<span class="sl-stars"><div class="sl-stars-out icon-star"><div style="width:'+o+'" class="sl-stars-in icon-star"></div></div></span>'}}),n.views.tags("removeBR",function(t){return t.replace(/<br\s*\/?>/gi,"")})),asl_configuration.debug=="1"&&(function(){var e=window.console;if(!e)return;function o(p){var m=e[p];e[p]=function(){if(arguments[0]&&arguments[0].indexOf("Google")!==-1){var h=n('<div class="alert alert-danger asl-geo-err"></div>');h.html(arguments[0]),h.appendTo(".asl-cont .asl-map"),window.setTimeout(function(){h.remove()},5e3)}if(m.apply)m.apply(e,arguments);else{var L=Array.prototype.slice.apply(arguments).join(" ");m(L)}}}for(var s=["error"],u=0;u<s.length;u++)o(s[u])})();function a(t){if(this.options=t||{},this.map=null,this.div=t.div[0],this.panel=t.panel[0],!this.div)throw new Error("ASLInfoBar: Sidebar element not found");this.isVisible=!1,this.panel.style.position="absolute",this.panel.style.zIndex=1e3,this.panel.style.display="none";const e=this.panel.querySelector(".sl-info-panel-close-btn");e&&e.addEventListener("click",()=>{this.close(),this.options.onCloseClick&&this.options.onCloseClick()})}a.prototype.open=function(t,e){this.isVisible=!0,this.panel.style.display="block"},a.prototype.getContent=function(){return this.content_},a.prototype.setContent=function(t){this.content_=t,this.div.replaceChildren(t)},a.prototype.close=function(){this.isVisible=!1,this.panel.style.display="none"},a.prototype.setPosition=function(t){},a.prototype.getVisible=function(){return this.isVisible},asl_locator.hook_event=function(t){if(window.asl_event_hook&&typeof window.asl_event_hook=="function")return asl_event_hook.call(this,t)},asl_locator.add_clear_button=function(t){var e=n(ASL_CLOSE_BUTTON);t.after(e);function o(){asl_view.clear_search(t),e.addClass("hide")}return n(t).on("keyup",function(s){var u=n.trim(this.value);u===""&&o()}),e.on("click",o),e},asl_locator.save_analytics=function(t,e){function o(){var H=null;try{H=window.sessionStorage.getItem("asl_analytics_session"),H||(H=window.crypto&&window.crypto.randomUUID?window.crypto.randomUUID():String(Date.now())+"-"+Math.random().toString(36).slice(2),window.sessionStorage.setItem("asl_analytics_session",H))}catch(J){H=String(Date.now())+"-"+Math.random().toString(36).slice(2)}return H}function s(H,J){for(var Lt=H.address_components||H.addressComponents||[],bt=0;bt<Lt.length;bt++){var Ot=Lt[bt],Tt=Ot.types||[];if(Tt.indexOf(J)!==-1)return Ot.short_name||Ot.shortText||Ot.long_name||Ot.longText||""}return""}
6function u(H){if(H.analytics_kind)return H.analytics_kind;var J=H.types||[];return J.indexOf("locality")!==-1||J.indexOf("postal_town")!==-1?"city":J.indexOf("administrative_area_level_1")!==-1?"state":J.indexOf("country")!==-1?"country":J.indexOf("postal_code")!==-1?"postal_code":"place"}var p={action:"asl_search_log",nonce:ASL_REMOTE.nonce,visitor_id:o()};if(e)p.is_search=0,p.store_id=t.id_;else{var m=t.place_id||t.placeId||t.id||null,h=t.geometry&&t.geometry.location?t.geometry.location:null,L=h?typeof h.lat=="function"?h.lat():h.lat:t.latitude,S=h?typeof h.lng=="function"?h.lng():h.lng:t.longitude,N=t.analytics_source||"google_place",B=u(t),tt=t.country_code||s(t,"country"),k=t.analytics_label||t.formatted_address||t.formattedAddress||t.title||"",nt=t.analytics_key||(m?"google:"+m:"search:"+N+":"+B+":"+k.toLowerCase());if(!n.trim(k)||N.indexOf("google_")===0&&(!m||L==null||S==null))return;var I=Date.now(),G=asl_locator.last_analytics_search;if(G&&G.key===nt&&I-G.time<3e4)return;asl_locator.last_analytics_search={key:nt,time:I},p.is_search=1,p.place_id=m,p.search_str=k,p.search_source=N,p.search_kind=B,p.search_key=nt,p.country_code=tt,p.latitude=L,p.longitude=S,p.result_count=t.result_count}n.ajax({url:ASL_REMOTE.ajax_url,data:p,type:"POST",success:function(H){}})},asl_locator.toRad_=function(t){return t*Math.PI/180},asl_locator.Store=function(t,e,o,s){this.id_=t,this.location_=e,this.categories_=o,this.props_=s||{},this.v_id=s.vendor_id},asl_locator.Store.prototype.setMarker=function(t){this.marker_=t,ASLEvent.trigger(this,"marker_changed",t)},asl_locator.Store.prototype.getMarker=function(){return this.marker_},asl_locator.Store.prototype.getId=function(){return this.id_},asl_locator.Store.prototype.getLocation=function(){return this.location_},asl_locator.Store.prototype.hasCategory=function(t){return this.categories_.indexOf(t)!=-1},asl_locator.Store.prototype.hasAnyCategory=function(t){if(t&&!t.array_.length)return asl_configuration.on_select;for(var e=t.asList(),o=0,s=e.length;o<s;o++)if(this.categories_.indexOf(e[o].id_)!=-1)return!0;return!1},asl_locator.Store.prototype.hasAllCategory=function(t){if(!t.array_.length)return asl_configuration.on_select;for(var e=t.asList(),o=0,s=e.length;o<s;o++)if(this.categories_.indexOf(e[o].id_)==-1)return!1;return!0},asl_locator.Store.prototype.getDetails=function(){return this.props_},asl_locator.Store.prototype.generateFieldsHTML_=function(t){for(var e=[],o=0,s=t.length;o<s;o++){var u=t[o];this.props_[u]&&(e.push('<div class="'),e.push(u),e.push('">'),e.push(u+": "),e.push(isNaN(this.props_[u])?this.props_[u]:numberWithCommas(this.props_[u])),e.push("</div>"))}return e.join("")},asl_locator.Store.prototype.generateFeaturesHTML_=function(){var t=[];t.push('<ul class="features">');for(var e=this.categories_.asList(),o=0,s;s=e[o];o++)t.push("<li>"),t.push(s.getDisplayName()),t.push("</li>");return t.push("</ul>"),t.join("")},asl_locator.Store.prototype.getStoreContent=function(){if(!this.content_){var t=window.asl_tmpl_list_item?window.asl_tmpl_list_item:n.templates(window.asl_tmpls&&window.asl_tmpls.list||"#tmpl_list_item");window.asl_tmpl_list_item=t,this.props_.target=asl_configuration.target_blank,this.content_=t.render(this.props_)}var e=n(this.content_);return(asl_configuration.pickup||asl_configuration.ship_from)&&e.append(ASL_PICKUP_ROW),e},asl_locator.Store.prototype.advMkrContent=function(){var t=window.asl_tmpl_adv_m
6kr?window.asl_tmpl_adv_mkr:n.templates(window.asl_tmpls&&window.asl_tmpls.adv_mkr||"#asl_tmpl_adv_mkr");window.asl_tmpl_adv_mkr=t,this.props_.target=asl_configuration.target_blank;const e=document.createElement("div");return e.className="adv-mkr-cont",e.innerHTML=t.render(this.props_),e},asl_locator.Store.prototype.getcontent_=function(t){var e=window.asl_too_tip_tmpl?window.asl_too_tip_tmpl:n.templates(window.asl_tmpls&&window.asl_tmpls.infobox||"#asl_too_tip");window.asl_too_tip_tmpl=e,t.props_.show_categories=asl_configuration.show_categories;var o=e.render(t.props_);return o},asl_locator.Store.prototype.getInfoWindowContent=function(t){var e='<div class="infoWindow'+(asl_configuration.template=="5"?"-tmpl-5":"")+'" id="style_'+(asl_configuration.infobox_layout?asl_configuration.infobox_layout:"1")+'">';return e+=this.getcontent_(this),e+="</div>",e},asl_locator.Store.infoPanelCache_={},asl_locator.Store.prototype.getInfoPanelItem=function(){var t=this,e=asl_locator.Store.infoPanelCache_,o=t.id_;if(!e[o]){var s=t.getStoreContent();e[o]=s[0]}return e[o]};/**
7 * Gets the distance between this Store and a certain location.
8 * @param {google.maps.LatLng} point the point to calculate distance to/from.
9 * @return {number} the distance from this store to a given point.
10 * @license
11 *  Latitude/longitude spherical geodesy formulae & scripts
12 *  (c) Chris Veness 2002-2010
13 *  www.movable-type.co.uk/scripts/latlong.html
14 */asl_locator.Store.prototype.distanceTo=function(t){var e=6371,o=this.getLocation(),s=asl_locator.toRad_(o.lat()),u=asl_locator.toRad_(o.lng()),p=asl_locator.toRad_(t.lat()),m=asl_locator.toRad_(t.lng()),h=p-s,L=m-u,S=Math.sin(h/2)*Math.sin(h/2)+Math.cos(s)*Math.cos(p)*Math.sin(L/2)*Math.sin(L/2),N=2*Math.atan2(Math.sqrt(S),Math.sqrt(1-S)),B=e*N;return asl_configuration.distance_unit=="Miles"?B*.621371:B},asl_locator.View=function(t,e,o){if(this.map_=t,this.data_=e,this._cont=o.container,this.settings_=n.extend({updateOnPan:!0,geolocation:!1,features:new asl_locator.FeatureSet},o),this.init_(),ASLEvent.trigger(this,"load"),this.set("featureFilter",new asl_locator.FeatureSet),asl_configuration.icon_size){var s=asl_configuration.icon_size.split("x"),u=parseInt(s[0]),p=parseInt(s[1]),m=null;asl_configuration.label_origin?(m=asl_configuration.label_origin.split("x"),m[0]=parseInt(m[0]),m[1]=parseInt(m[1])):m=[u/2,p/2-10];var h=null;asl_configuration.infowin_anchor?(h=asl_configuration.infowin_anchor.split("x"),h[0]=parseInt(h[0]),h[1]=parseInt(h[1])):h=[u/2,p/2+8],this.icon={scaledSize:new ASLSize(u,p),origin:new ASLPoint(0,0),anchor:new ASLPoint(h[0],h[1]),labelOrigin:new ASLPoint(m[0],m[1])}}if(asl_configuration.active_marker){var L=asl_configuration.URL+"icon/"+asl_configuration.active_marker;this.active_marker={m:null,picon:null,icon:this.icon?Object.assign({},this.icon,{url:L}
14):new ASLMarkerImage(L,null,null)}}this.display_list=asl_configuration.display_list,this.cat_in_tooltip=asl_configuration.title_only!="1"},asl_locator.View=asl_locator.View,asl_locator.View.prototype=Object.create(ASLMVCObject.prototype),asl_locator.View.prototype.constructor=asl_locator.View,asl_locator.View.prototype.secondary_match=function(t){if(asl_configuration.search_2_contain){for(let e of asl_configuration.search_2){let o=t[e]?t[e].toLowerCase():"",s=this.second_filter.title.toLowerCase();if(o.includes(s))return!0}return!1}else return t[this.second_filter.type]===this.second_filter.title;return!0},asl_locator.View.prototype.clear_search=function(t){if(asl_configuration.search_type=="1"&&(this.filter_text=null),this._cont.removeClass("asl-search-prfmd"),this._panel&&this._panel.hideNoStoresModal&&this._panel.hideNoStoresModal(),this.search_text=this.second_filter=this.locality=this.prop_filter=this._location=null,asl_locator.hook_event({type:"beforeclear",data:null}),asl_configuration.search_2){var e=this._cont.find(".asl-name-search .asl-search-name");e.val(""),e.parent().find(".asl-clear-btn").addClass("hide")}this.reset_measure(t);var o=new ASLLatLng(asl_configuration.default_lat,asl_configuration.default_lng);if(l()?this.getMap().panToWithOffset(o,0,0,null,parseInt(asl_configuration.zoom)):(this.getMap().panTo(o),this.getMap().setZoom(parseInt(asl_configuration.zoom))),asl_configuration.category_accordion){var s=this._cont.find("#asl-list li.item-state > a:not(.colisiond)");
14s[0]&&(s.addClass("colisiond"),s.next().removeClass("in"))}asl_configuration.first_load=="5"&&this._cont.addClass("sl-search-only"),asl_locator.hook_event({type:"clear",data:null})},asl_locator.View.prototype.reset_all=function(t,e){var o=this.getMap();if(asl_configuration.filter_ddl){for(var s in asl_configuration.filter_ddl)if(asl_configuration.filter_ddl.hasOwnProperty(s)){var u=asl_configuration.filter_ddl[s],p=asl_engine.controls[u];p&&typeof p.clear=="function"?p.clear():p&&typeof p.val=="function"&&p.val(""),asl_engine.select_controls&&asl_engine.select_controls[u]&&asl_engine.select_controls[u].multiselect("deselect","",!0).multiselect("clearSelection")}}if(this._panel.$category_ddl){var m=asl_view._panel.$category_ddl.val();m&&m.length>0&&this._panel.$category_ddl.multiselect("deselect",this._panel.$category_ddl.val(),!0).multiselect("clearSelection")}if(asl_configuration.address_ddl){for(var h in this._panel.address_ddls)if(this._panel.address_ddls.hasOwnProperty(h)){var L=this._panel.address_ddls[h];L.val(""),L.multiselect("deselect","",!0).multiselect("clearSelection").multiselect("refresh")}}if(this.highlight(null),asl_configuration.is_mob&&n("html, body").stop().animate({scrollTop:this._cont.offset().top},900,"swing"),!e){let N=this;var S=new ASLLatLng(asl_configuration.default_lat,asl_configuration.default_lng);l()?o.panToWithOffset(S,0,0,function(){N.refreshView()},parseInt(asl_configuration.zoom)):(o.panTo(S),o.setZoom(parseInt(asl_configuration.zoom)),ASLEvent.addListenerOnce(o,"idle",function(){N.refreshView()},asl_configuration))}t&&t.apply(this)},asl_locator.View.prototype.render_branch_list=function(t){this.data_.setBranchList(t),this.parent_branch_position(t),this.branch_view=!0,this.refreshView(),this._cont.find(".Num_of_store .sl-head-title").html(t.props_.title),this._cont.find(".Num_of_store .sl-hide-branches").removeClass("d-none")},asl_locator.View.prototype.reset_branch_list=function(){this.branch_view=!1,this.data_.setBranchList(null),this.parent_branch_position(null),this.refreshView(),this._cont.find(".Num_of_store .sl-head-title").html(asl_configuration.head_title),this._cont.find(".Num_of_store .sl-hide-branches").addClass("d-none")},asl_locator.View.prototype.parent_branch_position=function(t){var e=this;t?(t.real_location&&(e.markerCache_[t.id_]&&e.markerCache_[t.id_].setPosition(t.real_location),t.props_.distance=t.props_.real_distance,t.props_.dist_str=t.props_.real_distance_str),this.parent_branch=t):this.parent_branch&&(t=this.parent_branch,t.closest_store&&(e.markerCache_[t.id_]&&e.markerCache_[t.id_].setPosition(t.closest_store.location_),t.props_.distance=t.closest_store.props_.distance,t.props_.dist_str=t.closest_store.props_.distance_str),this.parent_branch=null),t&&asl_locator.Store.infoPanelCache_&&delete asl_locator.Store.infoPanelCache_[t.id_]},asl_locator.View.prototype.measure_distance=function(t,e,o,s){var u=this;this.clear_infobox(),!asl_locator.isMapLibre()&&asl_configuration.adv_mkr&&(u.clearMarkers(),delete u.markerCache_,u.markerCache_={});var p=new ASLLatLng(t.lat(),t.lng());u._panel.dest_coords=u.dest_coords=p;var m=!!(u.dest_coords||u.prop_filter||u.get("featureFilter").count()||!asl_engine.helper.is_empty(u.address_values));if(m&&(asl_configuration.user_center?asl_configuration.user_center=!1:this._cont.addClass("asl-search-prfmd")),asl_configuration.sort_random&&(asl_configuration.sort_random=!1),asl_configuration.first_load=="5"?u._cont.removeClass("sl-search-only"):asl_configuration.first_load=="3"?u.display_list||(u._cont.removeClass("map-full"),u.display_list=!0):asl_configuration.first_load=="4"&&(u.list_shown||(u._cont.removeClass("map-full"),u.list_shown=!0)),asl_configuration.filter_address){var h={};if(Array.isArray(s)&&(s=s[0]),s&&s.address_components){for(var L in s.address_components)if(s.address_components.hasOwnProperty(L))if(s.address_components[L].types.indexOf("sublocality")!=-1||s.address_components[L].types.indexOf("sublocality_level_1")!=-1||s.address_components[L].types.indexOf("locality")!=-1||s.address_components[L].types.indexOf("administrative_area_level_2")!=-1){var S=[s.address_components[L].long_name.toLowerCase(),s.address_components[L].short_name.toLowerCase()];h.city=h.city?h.city.concat(S):S}else s.address_components[L].types.indexOf("administrative_area_level_1")!=-1?h.state=[s.address_components[L].long_name.toLowerCase(),s.address_components[L].short_name.toLowerCase()]:s.address_components[L].types.indexOf("country")!=-1?h.country=[s.address_components[L].long_name.toLowerCase(),s.address_components[L].short_name.toUpperCase()]:s.address_components[L].types.indexOf("postal_code")!=-1&&(h.postal_code=[s.address_components[L].long_name.toLowerCase(),s.address_components[L].short_name.toLowerCase()])}h.city&&delete h.state,u.locality=h.city||h.state||h.country||h.postal_code?h:null}var N=100,B=1e3,tt=null,k=asl_configuration.distance_unit=="KM"?asl_configuration.words.Km:asl_configuration.words.Miles,nt=u.data_.stores_;for(var I in nt)if(nt.hasOwnProperty(I)){var G=nt[I].distanceTo(u.dest_coords);nt[I].content_=null,nt[I].props_.distance=G,nt[I].props_.dist_str=asl_engine.helper.format_count(G)+" "+k,G>N&&(N=G),G<B&&(tt=nt[I],B=G)}if(asl_configuration.branches){for(var I in nt)if(nt.hasOwnProperty(I)){var H=nt[I];if(H.props_.childs){var J=u.data_.getClosestBranch(H);H.closest_store=J[1],H.props_.real_distance=H.props_.distance,H.props_.real_distance_str=H.props_.dist_str,H.props_.distance=J[0],H.props_.dist_str=asl_engine.helper.format_count(J[0])+" "+k,H.real_location=H.location_,H.location_=H.closest_store.location_,u.markerCache_[H.id_]&&u.markerCache_[H.id_].setPosition(H.location_)}}}if(delete asl_locator.Store.infoPanelCache_,asl_locator.Store.infoPanelCache_={},u.my_marker)u.my_marker.setPosition(p);else{var Lt=asl_locator.isMapLibre()?asl_locator.MapLibreMarker:google.maps.Marker;u.my_marker=new Lt({title:asl_configuration.words.your_cur_loc,position:p,zIndex:0,animation:ASLAnimation.DROP,draggable:!0,map:asl_configuration.geo_marker=="0"?null:u.getMap()});var bt=asl_configuration.URL+"icon/me-pin.png";asl_configuration.geo_marker_id&&asl_markers[asl_configuration.geo_marker_id]&&(bt=asl_configuration.URL+"icon/"+asl_markers[asl_configuration.geo_marker_id].icon);var Ot=new ASLMarkerImage(bt,null,null,null);u.my_marker.setIcon(Ot),u.my_marker.addListener("dragend",function(mt){u.measure_distance(mt.latLng)})}if(e&&asl_configuration.search_destin=="1"&&tt&&(p=tt.getLocation()),asl_configuration.radius_cir
14cle)u.draw_radius_center(u.dest_coords),u.refreshView();else if(!o){if(asl_configuration.search_zoom=="0"&&u.bbox)u.bbox.isEmpty()||u.getMap().fitBounds(u.bbox);else{var Tt=parseInt(asl_configuration.search_zoom);asl_locator.isMapLibre()?u.getMap().panToWithOffset(p,0,0,null,Number.isFinite(Tt)&&Tt>0?Tt:null):(u.getMap().setCenter(p),asl_configuration.search_zoom&&u.getMap().setZoom(Tt)),ASLEvent.trigger(u,"load")}u.refreshView()}u._panel.geo_modal&&u._panel.hideGeoModal()},asl_locator.View.prototype.fit_distance_range=function(t){if(t){var e=parseInt(asl_configuration.radius_range);if(!(!Number.isFinite(e)||e<=0)){e*=1e3,asl_configuration.distance_unit!="KM"&&(e*=1.60934);var o=asl_locator.isMapLibre()?asl_locator.MapLibreCircle:google.maps.Circle,s=new o({radius:e,center:t}),u=s.getBounds();u&&this.getMap().fitBounds(u)}}},asl_locator.View.prototype.draw_radius_center=function(t){var e=this,o=null;if(t){if(o=parseInt(asl_configuration.radius_range),o=o*1e3,asl_configuration.distance_unit!="KM"&&(o=o*1.60934),e.$circle)e.$circle.setOptions({radius:o,center:t});else{var s=asl_locator.isMapLibre()?asl_locator.MapLibreCircle:google.maps.Circle;e.$circle=new s({strokeColor:asl_configuration.radius_color||"#FFFF00",strokeOpacity:.7,strokeWeight:2,fillColor:asl_configuration.radius_color||"#FFFF00",fillOpacity:asl_configuration.radius_fill||.2,map:e.getMap(),radius:o,center:t})}e.getMap().fitBounds(e.$circle.getBounds())}},asl_locator.View.prototype.setup_distance_control=function(){var t=this;if(String(asl_configuration.hide_search||"0")!=="1"){asl_configuration.radius_range=100,asl_configuration.fixed_radius&&(asl_configuration.radius_range=parseInt(asl_configuration.fixed_radius));var e=asl_configuration.dropdown_range.split(",");if(!asl_configuration.boundary_box){if(asl_configuration.distance_slider&asl_configuration.advance_filter&&asl_configuration.distance_control=="1"){var o=asl_configuration.distance_unit=="KM"?asl_configuration.words.Km:asl_configuration.words.Miles,s="";if(asl_configuration.template=="2"&&(o=asl_configuration.distance_unit=="KM"?asl_configuration.words.km_short||"km":asl_configuration.words.mi_short||"mi"),t.$dist_control)asl_configuration.radius_range=parseInt(t.$dist_control.val());else{for(var u=0;u<e.length;u++){var p=e[u],m=!!(p&&p[0]=="*");m?(p=p.replace("*",""),s+='<option selected="selected" value="'+p+'">'+p+" "+o+"</option>"):s+='<option value="'+p+'">'+p+" "+o+"</option>"}var h=asl_configuration.template!="1"?'<label for="asl-ctrl-ddl-range" class="asl-cntrl-lbl">'+asl_configuration.words.distance+"</label>":"";t._cont.find(".range_filter").html('<div class="asl-filter-cntrl">'+h+'<div class="sl-dropdown-cont">          <select id="asl-ctrl-ddl-range" class="asl-dist-ddl">'+s+"</select></div></div>").removeClass("hide"),asl_configuration.template=="1"&&t._cont.find(".range_filter").prepend('<label for="asl-ctrl-ddl-range">'+asl_configuration.words.in+"</label>"),t.$dist_control=t._cont.find(".asl-dist-ddl");var L={};asl_configuration.template=="2"&&(L={templates:{button:'<button type="button" class="multiselect adropdown-toggle style-btn" data-toggle="adropdown"><i class="icon-clock"></i><span class="multiselect-selected-text"></span><i class="icon-down-open"></i></button>'},buttonText:function(B){return B.length?(asl_configuration.words.within||"Within")+" "+B.first().text():asl_configuration.words.select_distance}}),t.$dist_control.multiselect(n.extend({enableFiltering:!1,nonSelectedText:asl_configuration.words.select_distance,numberDisplayed:1,maxHeight:asl_configuration.ddl_max_height?parseInt(asl_configuration.ddl_max_height):250,onChange:function(B,tt){var k=parseInt(B.val());isNaN(k)&&(k=1e3),asl_configuration.radius_range=k,t.refreshView(),t.$circle?t.draw_radius_center(t.dest_coords):t.fit_distance_range(t.dest_coords)}},L)),asl_configuration.radius_range=parseInt(t.$dist_control.val())}}else if(asl_configuration.distance_slider&asl_configuration.advance_filter&&asl_configuration.distance_control=="0")if(t._cont.find(".range_filter").removeClass("hide"),t.$dist_control)t.$dist_control.aslSlider("setAttribute","max",asl_configuration.radius_range),t.$dist_control.aslSlider("setValue",asl_configuration.radius_range),t._cont.find("#asl-radius-input").html(asl_configuration.radius_range);else{var S=asl_configuration.slider_val_radius?parseInt(asl_configuration.slider_val_radius):asl_configuration.radius_range;t._cont.find("#asl-radius-input").html(S);var N=t._cont.find("#asl-radius-slide");if(!N.length||typeof N.aslSlider!="function")return;N.aslSlider({value:S,min:asl_configuration.slider_min_radius?parseInt(asl_configuration.slider_min_radius):1,max:asl_configuration.radius_range}),t.$dist_control=N,t.$dist_control.on("slide",function(B){t._cont.find("#asl-radius-input").html(B.value),asl_configuration.radius_range=B.value}).on("slideStop",function(B){t._cont.find("#asl-radius-input").html(B.value),asl_configuration.radius_range=B.value,t.refreshView(),t.$circle?t.draw_radius_center(t.dest_coords):t.fit_distance_range(t.dest_coords)}),asl_configuration.radius_range=S}}}},asl_locator.View.prototype.reset_measure=function(t){var e=this;
14this.clear_infobox(),asl_configuration.adv_mkr&&(e.clearMarkers(),delete e.markerCache_,e.markerCache_={}),e.bbox=e._panel.dest_coords=e.dest_coords=null;var o=asl_configuration.radius_range,s=1e3,u=null,p=e.data_.stores_;for(var m in p)p.hasOwnProperty(m)&&(p[m].content_=null,p[m].props_.label=p[m].props_.dist_str=p[m].props_.distance=null);if(asl_configuration.branches){for(var m in p)if(p.hasOwnProperty(m)){var h=p[m];h.props_.childs&&(h.location_=h.real_location,h.real_distance_str=h.real_distance=h.closest_store=h.real_location=null,e.markerCache_[h.id_]&&e.markerCache_[h.id_].setPosition(h.location_))}}e._cont.find("#asl-radius-input").html(asl_configuration.radius_range),delete asl_locator.Store.infoPanelCache_,asl_locator.Store.infoPanelCache_={},e.my_marker&&(e.my_marker.setMap(null),delete e.my_marker,e.my_marker=null),e.$circle&&(e.$circle.setMap(null),delete e.$circle,e.$circle=null),e.refreshView(),n(t).val("")},asl_locator.View.prototype.add_search_text=function(t){var e=this;e._panel.search_control&&(e._panel.search_control.value=t,n(e._panel.search_control).next().removeClass("hide"))},asl_locator.View.prototype.geolocate_=function(){var t=this;if(window.navigator&&navigator.geolocation){let o=function(s){var u=n('<div class="alert alert-danger asl-geo-err"></div>');switch(s.code){case"http":u.html("Error! site is loading with HTTP connection");break;case s.PERMISSION_DENIED:u.html(asl_configuration.words.geo_location_error||s.message||"User denied the request for Geolocation.");break;case s.POSITION_UNAVAILABLE:u.html("Location information is unavailable.");break;case s.TIMEOUT:u.html("The request to get user location timed out.");break;case s.UNKNOWN_ERROR:u.html("An unknown error occurred.");break;default:u.html(s.message)}u.appendTo(".asl-cont .asl-map"),window.setTimeout(function(){u.remove()},5e3)};var e=o;if(window.location.protocol=="http:"){o({code:"http"});return}navigator.geolocation.getCurrentPosition(function(s){t.measure_distance(new ASLLatLng(s.coords.latitude,s.coords.longitude)),asl_locator.hook_event({type:"geolocation",data:s.coords}),t.add_search_text(asl_configuration.words.current_location)},o,{maximumAge:60*1e3,timeout:10*1e3})}},asl_locator.View.prototype.geo_service=function(){var t=this,e="https://get.geojs.io/v1/ip/geo.json",o=t._cont.find("#auto-complete-search,.asl-search-address");n.ajax({url:e,type:"GET",dataType:"json",success:function(s){if(s&&s.latitude&&s.longitude){var u=parseFloat(s.latitude),p=parseFloat(s.longitude),m=new ASLLatLng(u,p),h=[];s.city&&h.push(s.city),s.region&&h.push(s.region),s.country&&h.push(s.country);var L=h.join(", ");o.val(L),o.next().removeClass("hide"),t.measure_distance(m),asl_locator.hook_event({type:"geolocation",data:m})}},error:function(s){console.warn("Error Store Locator! GeoJS API: ",s)}})},asl_locator.View.prototype.clear_infobox=function(){this.get("selectedStore")&&this.highlight(null)},asl_locator.View.prototype.fitBound=function(t){var e=t||this.get("stores");if(e.length){var o=new ASLLatLngBounds;for(var s in e)e.hasOwnProperty(s)&&o.extend(e[s].getLocation());var u=asl_configuration.max_bound_zoom,p=asl_configuration.min_bound_zoom||2;l()?this.getMap().fitBounds(o,{padding:40,minZoom:p,maxZoom:u}):(ASLEvent.addListenerOnce(this.getMap(),"bounds_changed",function(){this.setZoom(Math.max(p,Math.min(this.getZoom(),u)))}),this.getMap().fitBounds(o))}},asl_locator.View.prototype.init_=function(){this.settings_.geolocation&&this.geolocate_(),this.markerCache_={};var t=asl_configuration.infobox_width||320,e=asl_configuration.PLUGIN_URL+(asl_configuration.close_white?"public/img/cross-white.png":"public/img/cross.png"),o="11px 10px -27px 0px";(asl_configuration.infobox_layout=="2"||asl_configuration.template=="1"&&asl_configuration.infobox_layout=="0")&&(e=asl_configuration.PLUGIN_URL+"public/img/close-white.svg"),asl_configuration.template=="5"?this.infoWindow_=new a({panel:this._cont.find("#asl-infobar-panel"),div:this._cont.find(".sl-infobar-section"),onCloseClick:()=>{this._panel.SListCont_.removeClass("sl-item-highlighted")}}):l()?this.infoWindow_=new vt({width:t,markerHeight:Number(asl_configuration.marker_height)||35,closeBoxMargin:o}):this.infoWindow_=new InfoBox({boxStyle:{width:t+"px",margin:"0 0 "+asl_configuration.marker_height+"px -"+t/2+"px"},alignBottom:!0,pane:!1,disableAutoPan:!0,closeBoxMargin:o,closeBoxURL:e,infoBoxClearance:new ASLSize(1,1)});var s=this,u=this.getMap();this.set("updateOnPan",this.settings_.updateOnPan),ASLEvent.addListener(this.infoWindow_,"closeclick",function(){s.highlight(null)}),ASLEvent.addListener(u,"click",function(){s.get("selectedStore")&&(s.highlight(null),s.infoWindow_.close())}
14),s._cont.find(".Num_of_store .sl-hide-branches").on("click",s.reset_branch_list.bind(s)),s.setup_distance_control(),asl_configuration.adv_mkr&&(asl_configuration.marker_label=asl_configuration.do_bounce=asl_configuration.active_marker=asl_configuration.cluster=!1,s.active_marker="",this.createMarker=function(p){var m=new google.maps.marker.AdvancedMarkerElement({content:p.advMkrContent(),position:p.getLocation(),title:p.props_.title});return m},google.maps.marker.AdvancedMarkerElement.prototype.getPosition=function(){return this.position},google.maps.marker.AdvancedMarkerElement.prototype.getMap=function(){return this.map}),asl_configuration["default-addr"]&&asl_engine.helper.query_parameter("sl-addr")&&!asl_configuration.disable_page_scroll&&n("html, body").animate({scrollTop:s._cont.offset().top},1e3)};function d(){for(var t=0;t<arguments.length;t++){var e=arguments[t];if(e!=null){var o=String(e).trim().replace(/\s+/g,"-").replace(/[^A-Za-z0-9\-_]/g,"").toLowerCase();if(o)return o}}return"item-"+Math.random().toString(36).slice(2,8)}asl_locator.View.prototype.template_6_setup=function(){var t=this,e=this.data_.scroll_data||[];if(t.scrollTargetIdMap={},!!e.length){var o=asl_configuration.words&&(asl_configuration.words.scroll_shortcuts||asl_configuration.words.scroll_sections)||"Store navigation shortcuts";o=String(o||"");var s=asl_configuration.words&&(asl_configuration.words.scroll_prev||asl_configuration.words.previous||asl_configuration.words.prev)||"Scroll left",u=asl_configuration.words&&(asl_configuration.words.scroll_next||asl_configuration.words.next)||"Scroll right";s=String(s||""),u=String(u||"");var p=n("<div>",{class:"sticky-top py-3 px-4"}),m=n("<div>",{class:"sl-row sl-scroll-panel"}),h=n("<ul>",{class:"pol-10 d-flex flex-md-wrap gap-2 list-unstyled asl-scroll-chip-list",role:"list"}).attr("aria-label",o).css({listStyle:"none",margin:0,padding:0,display:"flex"});if(m.append(h),p.append(m),e.forEach(function(G){var H=String(G.value).trim(),J=G.type+"::"+H,Lt=d(H,G.title,J),bt="scroll-"+Lt,Ot="#"+bt;t.scrollTargetIdMap[J]=bt,t.scrollTargetIdMap[G.type+"::"+String(G.value)]=bt;var Tt=n("<li>",{class:"asl-panel-scroll-item",role:"listitem",style:"display:flex; flex:0 0 auto;"}),mt=n("<button>",{type:"button",class:"asl-panel-scroll-btn","data-target":Ot,"data-value":G.value,"data-prop":G.type,"aria-controls":bt,"aria-pressed":"false",html:t.getScrollIcon()+" "+G.title});Tt.append(mt),h.append(Tt)}),this._panel.mainPanel.prepend(p),e.length>=4){var L=document.getElementById("asl-scroll-chip-slider-template"),S=n();if(L)if(L.content&&L.content.firstElementChild)S=n(L.content.firstElementChild.cloneNode(!0));else{var N=(L.innerHTML||"").trim();N&&(S=n(N))}(!S||!S.length)&&(S=n("<div>",{class:"sl-scroll-slider","data-chip-slider":"true"}),S.append(n("<button>",{class:"sl-nav left is-hidden","data-left":"","aria-label":"Scroll left"}).append(n("<span>",{class:"icon-left-open-big","aria-hidden":"true"}),n("<span>",{class:"sr-only",text:"Scroll left"})),n("<ul>",{class:"sl-scroll-track list-unstyled gap-2","data-track":"","data-scroll-chip-list":"true",role:"list","aria-label":"Store navigation shortcuts"}).css({listStyle:"none",margin:0,padding:0,display:"flex",flexWrap:"nowrap"}),n("<button>",{class:"sl-nav right is-hidden","data-right":"","aria-label":"Scroll right"}).append(n("<span>",{class:"icon-right-open-big","aria-hidden":"true"}),n("<span>",{class:"sr-only",text:"Scroll right"}))));var B=S.find("[data-track]").first();B.length?(B.attr("data-track")||B.attr("data-track",""),B.attr("data-scroll-chip-list")||B.attr("data-scroll-chip-list","true")):(B=n("<ul>",{class:"sl-scroll-track list-unstyled gap-2",role:"list"}).attr("data-track","").attr("data-scroll-chip-list","true").css({listStyle:"none",margin:0,padding:0,display:"flex",flexWrap:"nowrap"}),S.append(B)),B.attr("aria-label",o);var tt=S.find("[data-left]").first();if(!tt.length)tt=n("<button>",{class:"sl-nav left is-hidden","aria-label":s}).attr("data-left","").append(n("<span>",{class:"icon-left-open-big","aria-hidden":"true"}),n("<span>",{class:"sr-only",text:s})),S.prepend(tt);else{tt.attr("aria-label",s),tt.attr("data-left")||tt.attr("data-left","");var k=tt.find(".sr-only").first();k.length?k.text(s):tt.append(n("<span>",{class:"sr-only",text:s}))}var nt=S.find("[data-right]").first();if(!nt.length)nt=n("<button>",{class:"sl-nav right is-hidden","aria-label":u}).attr("data-right","").append(n("<span>",{class:"icon-right-open-big","aria-hidden":"true"}),n("<span>",{class:"sr-only",text:u})),S.append(nt);else{nt.attr("aria-label",u),nt.attr("data-right")||nt.attr("data-right","");var I=nt.find(".sr-only").first();I.length?I.text(u):nt.append(n("<span>",{class:"sr-only",text:u}))}B.append(h.children()),h.replaceWith(S),(function(H){const J=H.find("[data-track]").get(0),Lt=H.find("[data-left]"),bt=H.find("[data-right]"),Ot=H.find(".asl-panel-scroll-btn"),Tt=t._panel.mainPanel,mt=Tt.get(0),xt=mt&&mt.scrollHeight>mt.clientHeight,qt=(Q,Y)=>String(Q)+"::"+String(Y),g=new Map,b=new Set;Ot.each(function(Q){const Y=n(this),Ct=Y.data("prop"),ft=Y.data("value");b.add(String(Ct)),g.set(qt(Ct,ft),Q)});const y=Array.from(b);let C=0,z=null,W=!1;function U(){return Ot.toArray()}function F(Q){return U().indexOf(Q)}function v(){return Ot.length-1}function M(){return J.scrollWidth>J.clientWidth+1}function j(){const Q=M();Lt.toggleClass("is-hidden",!Q||C<=0),bt.toggleClass("is-hidden",!Q||C>=v())}function rt(){const Q=J.scrollLeft,Y=U();for(let Ct=0;Ct<Y.length;Ct++)if(Y[Ct].offsetLeft>=Q-1)return Ct;return v()}
14function ot(Q,Y,Ct){const ft=t._panel.storeList_.find(".sl-store-scroll-lbl").filter(function(){return n(this).data(String(Y))==String(Q)});if(!ft.length)return;const pt=ft.first(),V=xt?Tt:n("html, body"),et=xt?pt.position().top+Tt.scrollTop()-100:pt.offset().top-100;!Ct&&W||(W=!0,V.stop(!0).animate({scrollTop:et},400,function(){W=!1}))}function lt(Q,Y=!0,Ct=!0,ft=!1){Q=Math.max(0,Math.min(Q,v())),C=Q;const pt=U()[Q];if(pt){if(Ot.removeClass("sl-actv").attr("aria-pressed","false").removeAttr("aria-current"),n(pt).addClass("sl-actv").attr("aria-pressed","true").attr("aria-current","true"),Y&&J.scrollTo({left:pt.offsetLeft,behavior:"smooth"}),Ct){const V=n(pt);ot(V.data("value"),V.data("prop"),ft)}j()}}function Et(){clearTimeout(z),z=setTimeout(()=>{const Q=rt();lt(Q,!1,!0,!1)},100)}Lt.on("click",()=>lt(C-1,!0,!0,!1)),bt.on("click",()=>lt(C+1,!0,!0,!1)),H.off("click.aslChip").on("click.aslChip",".asl-panel-scroll-btn",function(Q){Q.stopPropagation(),Q.preventDefault(),lt(F(this),!0,!0,!0);const Y=n(this),Ct=String(Y.data("value")),ft=String(Y.data("prop"));t.zoomToFilteredStores(Ct,ft)}),J.addEventListener("wheel",Q=>{Math.abs(Q.deltaY)>Math.abs(Q.deltaX)&&(Q.preventDefault(),J.scrollLeft+=Q.deltaY),Et()},{passive:!1});let dt=!1,st=0,gt=0;J.addEventListener("pointerdown",Q=>{Q.target&&Q.target.closest(".asl-panel-scroll-btn")||(dt=!0,st=Q.clientX,gt=J.scrollLeft,J.setPointerCapture&&J.setPointerCapture(Q.pointerId),H.find("[data-track]").addClass("is-dragging"))}),J.addEventListener("pointermove",Q=>{dt&&(J.scrollLeft=gt-(Q.clientX-st),Et())}),["pointerup","pointercancel","pointerleave"].forEach(Q=>{J.addEventListener(Q,()=>{dt=!1,H.find("[data-track]").removeClass("is-dragging")})});const Dt=()=>{if(W)return;const Q=xt?mt.getBoundingClientRect():{top:0,bottom:window.innerHeight};let Y=null;if(t._panel.storeList_.find(".sl-store-scroll-lbl").each(function(){if(this.getBoundingClientRect().bottom>Q.top+10)return Y=this,!1}),!Y)return;const Ct=n(Y);for(const ft of y){const pt=Ct.data(ft);if(pt!==void 0){const V=g.get(qt(ft,String(pt)));V!==void 0&&lt(V,!0,!1,!1);break}}};xt?Tt.off("scroll.aslListSync").on("scroll.aslListSync",Dt):n(window).off("scroll.aslListSync").on("scroll.aslListSync",Dt),window.ResizeObserver?new ResizeObserver(()=>{const Y=U()[C];Y&&J.scrollTo({left:Y.offsetLeft}),j()}).observe(H.get(0)):window.addEventListener("resize",()=>{const Q=U()[C];Q&&J.scrollTo({left:Q.offsetLeft}),j()}),lt(0,!1,!1,!1),j(),setTimeout(Dt,0)})(S),this._panel.mainPanel.off("click.aslScrollBtn")}else this._panel.mainPanel.off("click.aslScrollBtn").on("click.aslScrollBtn",".asl-panel-scroll-btn",function(){var G=n(this),H=String(G.data("value")),J=String(G.data("prop")),Lt=G.closest('[role="list"]');Lt.find(".asl-panel-scroll-btn").not(G).removeClass("sl-actv").attr("aria-pressed","false").removeAttr("aria-current"),G.addClass("sl-actv").attr("aria-pressed","true").attr("aria-current","true");var bt=t._panel.storeList_.find(".sl-store-scroll-lbl").filter(function(){return n(this).data(J)==H});if(bt.length){var Ot=bt.first(),Tt=t._panel.mainPanel,mt=Tt.get(0),xt=mt&&mt.scrollHeight>mt.clientHeight,qt=xt?Ot.position().top+Tt.scrollTop()-100:Ot.offset().top-100;(xt?Tt:n("html, body")).stop(!0).animate({scrollTop:qt},400)}t.zoomToFilteredStores(H,J)})}},asl_locator.View.prototype.zoomToFilteredStores=function(t,e){var o=this;this.getFilterStore(t,e,function(s){if(s.length){var u=o.getMap();if(u){var p=new ASLLatLngBounds;if(s.forEach(function(h){p.extend(h.getLocation())}),s.length===1){var m=s[0].getLocation();u.panTo(m),typeof asl_configuration.zoom_li!="undefined"&&asl_configuration.zoom_li&&u.setZoom(parseInt(asl_configuration.zoom_li))}else u.fitBounds(p)}}})},asl_locator.View.prototype.getScrollIcon=function(){var t=document.querySelector("#asl-icon-scroll");return t?t.innerHTML.trim():""},asl_locator.View.prototype.updateOnPan_changed=function(){this.updateOnPanListener_&&ASLEvent.removeListener(this.updateOnPanListener_);var t=this;if(this.get("updateOnPan")&&this.getMap()){var t=this,e=this.getMap(),o=function(u){asl_configuration.reset_button&&n(".asl-reset-map")[0]&&n(".asl-reset-map")[0].style!="block"&&(n(".asl-reset-map")[0].style.display="block"),asl_configuration.sort_by_bound&&t.scheduleRefreshView()};this.updateOnPanListener_=ASLEvent.addListener(e,"dragend",o)}},asl_locator.View.prototype.addStoreToMap=function(t){var e=this.getMarker(t);t.setMarker(e);var o=this;e.clickListener_||(e.clickListener_=ASLEvent.addListener(e,asl_configuration.mouseover?"mouseover":"click",function(){if(asl_configuration.branches=="2"&&t.parent_store){o.render_branch_list(t.parent_store),o.highlight(t,!1);return}if(asl_configuration.click_redirect){var u=t.props_[asl_configuration.click_redirect];u&&(window.location.href=u);return}o.marker_clicked=!0,o.halt_fetch=!0,o.marker_center=e.getPosition(),o.highlight(t,!1)}));var s=!!asl_configuration.cluster;!s&&e.getMap()!=this.getMap()&&e.setMap(this.getMap())},asl_locator.View.prototype.createMarker=function(t){var e=asl_configuration.URL+"icon/",o=0;
14if(asl_configuration.category_marker){var s=this.selected_category||this.data_.flat_categories[t.categories_[0]];s?(e=asl_configuration.URL+"svg/",o=parseInt(s.ordr),e+=s.icon||"default.png"):e+="default.png"}else e+=asl_markers[t.props_.marker_id]&&asl_markers[t.props_.marker_id].icon||"default.png",o=t.props_.ordr||0;var u=asl_configuration.marker_title?this.cat_in_tooltip&&t.props_.c_names?t.props_.c_names+" | "+t.props_.title:t.props_.title:null,p={title:asl_engine.helper.html_entites(u),position:t.getLocation(),zIndex:asl_configuration.marker_index?o:null,optimized:!asl_configuration.icon_size||!/\.svg(?:[?#]|$)/i.test(e)&&!/\.svg(?:[?#]|$)/i.test(asl_configuration.active_marker||""),animation:null,icon:{url:e}};return this.icon&&(p.icon=Object.assign({},this.icon),p.icon.url=e),asl_configuration.marker_label&&t.props_.label&&(p.label={text:t.props_.label,color:asl_configuration.label_color||"#eb3a44",fontSize:"16px",fontWeight:"bold"}),l()?new ut(p):new google.maps.Marker(p)},asl_locator.View.prototype.getMarker=function(t){var e=this.markerCache_,o=t.id_;return e[o]||(e[o]=this.createMarker(t)),e[o]},asl_locator.View.prototype.getInfoWindow=function(t,e){if(!t)return this.infoWindow_;var o=n(t.getInfoWindowContent(e));return this.infoWindow_.setContent(o[0]),this.infoWindow_},asl_locator.View.prototype.getViewFeatures=function(){return this.settings_.features},asl_locator.View.prototype.getFeatureById=function(t){if(!this.featureById_){this.featureById_={};for(var e=this.getViewFeatures().asList(),o=0,s;s=e[o];o++)this.featureById_[s.id_]=s}return this.featureById_[t]},asl_locator.View.prototype.featureFilter_changed=function(){this.get("stores")&&this.clearMarkers()},asl_locator.View.prototype.clearMarkers=function(){for(var t in this.markerCache_){var e=this.markerCache_[t];if(e){e.setMap(null);var o=e.clickListener_;o&&(ASLEvent.removeListener(o),e.clickListener_=null)}}},asl_locator.View.prototype.storesWithCategory=function(t){var e=this.get("stores"),o=[];if(e)for(var s=0,u=e.length;s<u;s++)e[s].hasCategory(t)&&o.push(e[s]);return o},asl_locator.View.prototype.categoryClearAll=function(){var t=this.get("featureFilter");for(var e in t.array_)t.array_.pop()},asl_locator.View.prototype.categoryAccFilter=function(t,e){var o=this.get("featureFilter"),s=t&&e?this.getFeatureById(t):null;s&&o.add(s),this.set("featureFilter",o),this.refreshView(),this.fitBound()},asl_locator.View.prototype.doBounce=function(t,e){if(!asl_configuration.marker_label){var o=t.getMarker();!o||typeof o.setAnimation!="function"||(o.setAnimation(null),e&&o.setAnimation(ASLAnimation.BOUNCE))}},asl_locator.View.prototype.panTo=function(t){var e=t.getMarker();this.getMap().panTo(e.getPosition())},asl_locator.View.prototype.reloadLocator=function(t,e){asl_configuration.load_all="1",this.clearMarkers(),asl_configuration.cluster&&asl_locator.marker_clusters.clearMarkers(),this.data_.stores_=[],this.refreshView(),delete asl_locator.Store.infoPanelCache_,asl_locator.Store.infoPanelCache_={},this.data_.fetch_remote_data(null,t,e)},asl_locator.View.prototype.scheduleRefreshView=function(){var t=this;window.clearTimeout(this.refreshViewTimer_),this.refreshViewTimer_=window.setTimeout(function(){t.refreshViewTimer_=null,t.refreshView()},100)},asl_locator.View.prototype.refreshView=function(){var t=this,e=this.getMap().getBounds(),o={},s=!1;if(asl_configuration.filter_ddl){for(var u in asl_configuration.filter_ddl)if(asl_configuration.filter_ddl.hasOwnProperty(u)){var p=asl_configuration.filter_ddl[u],m=asl_engine.controls[p];m&&typeof m.val=="function"?(o[p]=m.val(),asl_configuration.single_cat_select=="1"&&(o[p]=o[p]=="0"||!o[p]?null:[o[p]])):m&&typeof m.values=="function"?o[p]=Array.from(m.values()):o[p]=[],o[p]&&o[p].length&&(s=!0)}}if(t._panel&&t._panel.geo_modal&&typeof t._panel.hideGeoModal=="function"){var h=t.get("featureFilter").count()||s||!asl_engine.helper.is_empty(t.address_values)||t.prop_filter||t.second_filter||t.search_text;h&&t._panel.hideGeoModal()}if(!asl_configuration.first_load||asl_configuration.first_load!="1"&&asl_configuration.first_load!="4"){var L=asl_configuration.first_load=="6"?t.dest_coords||t.prop_filter||t.get("featureFilter").count()||s||!asl_engine.helper.is_empty(t.address_values):!1;if(!L&&!t.dest_coords&&!t.prop_filter&&!t.second_filter&&!t.search_text){t.search_performed=!1,t.set("stores",[]),t._panel.set("stores",[!0]);return}}t.search_performed=!0,this.data_.getStores(e,this.get("featureFilter"),function(S){var N=t.get("stores");if(N)for(var B=0,tt=N.length;B<tt;B++){var k=N[B].getMarker();if(k&&(k.clickListener_&&(ASLEvent.removeListener(k.clickListener_),k.clickListener_=null),asl_configuration.adv_m
14kr)){var nt=k;nt.setMap(null)}}var I=[],G=[],H=0,J=t.filter_text?t.filter_text:null,Lt=!!(S&&S[0]&&S[0].props_.dist_str),bt=!!(Lt&&(asl_configuration.distance_slider||asl_configuration.fixed_radius)),Ot=!!(asl_configuration.boundary_box&&t.bbox),Tt=!!(asl_configuration.ignore_priority_with_distance&&Lt),mt=!!(asl_configuration.store_radius&&Lt),xt=asl_configuration.sort_by;asl_configuration.search_dist_sort&&t.dest_coords&&(xt=""),asl_configuration.distance_filter_off=="1"&&(bt=!1);var qt=Object.keys(asl_categories),g=asl_configuration.filter_ddl;for(var b in qt)asl_categories[qt[b]]&&(asl_categories[qt[b]].len=0);for(var b in qt)asl_categories[qt[b]]&&(asl_categories[qt[b]].len=0);for(var y in S)if(S.hasOwnProperty(y)){var C=S[y].props_,z=asl_locator.hook_event({type:"store_filter",data:C,context:t});if(z!==!1&&!(asl_configuration.address_ddl&&(t.address_values.country&&t.address_values.country!=C.country||t.address_values.state&&t.address_values.state!=C.state||t.address_values.city&&t.address_values.city!=C.city))){if(g){var W=!0;for(var U in g){var F=o[g[U]];if(F&&F.length>0){var v=C[g[U]]||[];if(asl_configuration.and_filter?W=F.every(function(dt){return v.indexOf(dt)!=-1}):W=F.some(function(dt){return v.indexOf(dt)!=-1}),!W)break}}if(!W)continue}if(!(t.prop_filter&&t.prop_filter.type&&C[t.prop_filter.type]!=t.prop_filter.title)&&!(t.second_filter&&!t.secondary_match(C))&&!(asl_configuration.additional_search&&t.search_text&&(!S[y].props_.description_2||S[y].props_.description_2.indexOf(t.search_text)==-1))){if(asl_configuration.filter_address){if(t.locality==null){if(asl_configuration.default_city&&C.city.toLowerCase()!=asl_configuration.default_city.toLowerCase())continue}else if(t.locality){var M=!1;if((t.locality.city&&C.city&&t.locality.city.indexOf(C.city.toLowerCase())!=-1||t.locality.postal_code&&C.postal_code&&t.locality.postal_code.indexOf(C.postal_code.toLowerCase())!=-1||t.locality.state&&C.state&&t.locality.state.indexOf(C.state.toLowerCase())!=-1)&&(M=!0),!M)continue}}if(mt){if(C.distance>=parseFloat(C.radius))continue}else if(Ot){if(!asl_bounds_contains(t.bbox,S[y].getLocation()))continue}else if(asl_configuration.advance_filter){if(bt&&C.distance>=asl_configuration.radius_range||asl_configuration.time_switch&&asl_configuration.show_opened&&C.open!=!0)continue}else if(asl_configuration.fixed_radius&&C.distance&&C.distance>=asl_configuration.fixed_radius)continue;for(var b in S[y].categories_)S[y].categories_.hasOwnProperty(b)&&asl_categories[S[y].categories_[b]]&&asl_categories[S[y].categories_[b]].len++;H++,!(asl_configuration.branches&&t.shouldSkipStoreBasedOnBranch(C))&&(C.ordr>0&&!Tt?G.push(S[y]):I.push(S[y]))}}}if(asl_configuration.template=="2"&&asl_configuration.advance_filter){var j=t._cont.find(".asl-categories-list .round-box");j.each(function(dt){n(this).attr("data-c",asl_categories[n(this).attr("data-id")].len),this.children[0].children[1].children[0].children[1].innerHTML=asl_engine.helper.locations_count(asl_categories[n(this).attr("data-id")].len)})}if(I.length==0&&G.length==0){var rt=asl_locator.hook_event({type:"no_stores_filter",data:S,center:t.dest_coords,context:t});Array.isArray(rt)&&(I=rt)}else asl_locator.hook_event({type:"stores_filtered",data:I,center:t.dest_coords,context:t});if(G.length>0&&(t.dest_coords&&t.data_.sortDistance(t.dest_coords,G),t.data_.sortByDesc("ordr",G)),asl_configuration.sort_random?t.data_.sortRandom(I):e&&asl_configuration.sort_by_bound&&asl_configuration.sort_by_bound_always?t.data_.sortDistance(e.getCenter(),I):xt?t.data_.sortBy(xt,I):I&&t.dest_coords?t.data_.sortDistance(t.dest_coords,I):e&&asl_configuration.sort_by_bound&&t.data_.sortDistance(e.getCenter(),I),G.length>0&&(I=G.concat(I)),t.total_stores=I.length,asl_configuration.stores_limit&&(I=I.slice(0,asl_configuration.stores_limit)),(asl_configuration.adv_mkr||asl_configuration.marker_label)&&Lt){for(var ot=I.length,lt=0;lt<ot;lt++)I[lt].props_.label=String(lt+1);delete t.markerCache_,t.markerCache_={}}if(!I.length){var Et=t.getFallbackStoreId();Et&&(I=S.filter(function(dt){return dt.props_.id===Et}),I&&t.fitBound(I))}t.set("stores",I),t._panel.set("stores",[!0]),asl_configuration.select_category&&asl_configuration.category_bound&&(asl_configuration["default-addr"]||t.fitBound(null),console.log("File: view.js, Line: 2629"),asl_configuration.select_category=null)})},asl_locator.View.prototype.getFallbackStoreId=function(){var t=asl_configuration.region_fallback_stores||null,e=null;if(typeof t=="string"&&t.trim())try{var o=t.replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&amp;/g,"&");t=JSON.parse(o)}catch(tt){t=null}if(t&&typeof t=="object"){var s=n(this._panel.search_control),u=s&&s.val()?String(s.val()).toLowerCase().trim():"",p=u.replace(/\s+/g," ");
14if(p){for(var m in t)if(t.hasOwnProperty(m)){var h=String(m).toLowerCase().trim();if(h){var L=h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\s+/g,"\\s+"),S=new RegExp("(^|[^a-z0-9])"+L+"([^a-z0-9]|$)","i");if(S.test(p)){var N=parseInt(t[m],10);if(!isNaN(N)){e=N;break}}}}}}if(!e&&asl_configuration.default_store){var B=parseInt(asl_configuration.default_store,10);isNaN(B)||(e=B)}return e},asl_locator.View.prototype.getFilterStore=function(t,e,o){var s=this,u=this.getMap().getBounds();this.data_.getStores(u,this.get("featureFilter"),function(p){var m=p.filter(function(h){return h.props_&&h.props_[e]===t});typeof o=="function"&&o(m)})},asl_locator.View.prototype.shouldSkipStoreBasedOnBranch=function(t){return asl_configuration.branches==="1"?this.branch_view?!t.branch:!!t.branch:asl_configuration.branches==="2"&&this.branch_view?!t.branch:!1},asl_locator.View.prototype.countWithBranches=function(t){for(var e=t.length,o=0;o<t.length;o++)t[o].props_.childs&&(e+=t[o].props_.childs.length);return e},asl_locator.View.prototype.stores_changed=function(){asl_configuration.category_marker&&asl_configuration.single_cat_select=="1"&&(this.selected_category=this.get("featureFilter").getSelected(),this.clearMarkers(),delete this.markerCache_,this.markerCache_={});var t=this.get("stores"),e=[];asl_configuration.cluster||this.clearMarkers();var o=this,s=this.markerBuildGeneration_=(this.markerBuildGeneration_||0)+1;function u(){s===o.markerBuildGeneration_&&asl_configuration.cluster&&(asl_locator.marker_clusters.clearMarkers(!asl_locator.isMapLibre()),asl_locator.marker_clusters.addMarkers(e))}function p(N){o.addStoreToMap(t[N]),e.push(t[N].marker_)}if(asl_configuration.cluster&&!asl_locator.isMapLibre()&&t.length>100){var m=0,h=window.requestIdleCallback?function(N){window.requestIdleCallback(N,{timeout:50})}:function(N){window.setTimeout(function(){N(null)},0)},L=function(N){if(s===o.markerBuildGeneration_){for(var B=0;m<t.length&&B<50&&(p(m++),B++,!(N&&N.timeRemaining()<3)););m<t.length?h(L):u()}};h(L);return}for(var S=0;S<t.length;S++)p(S);u()},asl_locator.View.prototype.getMap=function(){return this.map_},asl_locator.View.prototype.map_recenter=function(t,e,o,s,u){if(asl_configuration.disable_pan){typeof s=="function"&&s();return}var p=this.getMap();if(l()){var m=Number(o)||0;asl_configuration.infobox_layout=="1"&&(m-=50),p.panToWithOffset(t,e,m,s,u);return}if(!(!p||!p.getProjection())){var h=p.getProjection().fromLatLngToPoint(t instanceof google.maps.LatLng?t:p.getCenter()),L=new google.maps.Point((typeof e=="number"?e:0)/Math.pow(2,p.getZoom())||0,(typeof o=="number"?o:0)/Math.pow(2,p.getZoom())||0);p.panTo(p.getProjection().fromPointToLatLng(new google.maps.Point(h.x-L.x,h.y+L.y)))}},asl_locator.View.prototype.highlightAdvMkrTmpl5=function(t){var e=this.get("selectedStore");if(e){var o=e.getMarker();n(o.targetElement).removeClass("asl-mkr-actv"),o.zIndex=null}if(t){var o=t.getMarker();n(o.targetElement).addClass("asl-mkr-actv"),o.zIndex=1}},asl_locator.View.prototype.highlightAdvMkr=function(t,e){var o=this.getMap(),s=this,u=this.get("selectedStore");if(u){var p=u.getMarker();n(p.targetElement).removeClass("asl-mkr-actv"),p.zIndex=null}if(t){var m=this.get("stores");asl_configuration.analytics&&asl_locator.save_analytics(t,1),asl_configuration.zoom_li&&!l()&&o.setZoom(parseInt(asl_configuration.zoom_li)),this.map_recenter(t.getLocation(),asl_configuration.info_x_offset,asl_configuration.info_y_offset),asl_locator.hook_event({type:"select",data:t.props_}),o.getStreetView().getVisible()&&o.getStreetView().setPosition(t.getLocation());var p=t.getMarker();n(p.targetElement).addClass("asl-mkr-actv"),p.zIndex=1}this.set("selectedStore",t),this.display_list&&!e&&t&&!asl_configuration.accordion&&window.setTimeout(function(){var h=s._panel.mainPanel,L=s._panel.storeList_.find('.sl-item[data-id="'+t.id_+'"]'),S=L.position().top,N=typeof asl_configuration.scroll_offset!="undefined"?parseInt(asl_configuration.scroll_offset,10):0;L[0]&&h.animate({scrollTop:S+N},"fast")},50)},asl_locator.View.prototype.highlight=function(t,e){var o=null,s=this.getMap(),u=this;
14if(asl_configuration.adv_mkr){if(asl_configuration.template=="5")this.highlightAdvMkrTmpl5(t);else if(this.highlightAdvMkr(t,e),asl_configuration.template!="7")return}if(asl_configuration.template=="5"&&(t?this._panel.SListCont_.addClass("sl-item-highlighted"):this._panel.SListCont_.removeClass("sl-item-highlighted")),t){var p=this.get("stores");o=this.getInfoWindow(t,p);var m=t.getMarker(),h=function(){m?o.open(s,m):(o.setPosition(t.getLocation()),o.open(s))};l()?o.close():h(),m&&asl_configuration.analytics&&asl_locator.save_analytics(t,1);var L=!1;if(l()&&s.getBounds){var S=s.getBounds();L=S&&S.contains(t.getLocation())}if(asl_configuration.zoom_li&&!l()&&s.setZoom(parseInt(asl_configuration.zoom_li)),l()){var N=Number(asl_configuration.zoom_li);N=Number.isFinite(N)?N:null;var B=asl_configuration.cluster&&asl_locator.marker_clusters,tt=B&&typeof B.getExpansionZoomForMarker=="function"?B.getExpansionZoomForMarker(m):Promise.resolve(null);tt.then(function(k){if(u.get("selectedStore")===t){var nt=L?null:N;Number.isFinite(Number(k))&&(nt=Math.max(N===null?s.getZoom():N,Number(k))),u.map_recenter(t.getLocation(),asl_configuration.info_x_offset,asl_configuration.info_y_offset,h,nt)}})}else this.map_recenter(t.getLocation(),asl_configuration.info_x_offset,asl_configuration.info_y_offset,null,null);asl_locator.hook_event({type:"select",data:t.props_}),s.getStreetView().getVisible()&&s.getStreetView().setPosition(t.getLocation())}else this.getInfoWindow().close(),asl_locator.hook_event({type:"unselect",data:null});this.set("selectedStore",t),this.display_list&&!e&&t&&!asl_configuration.accordion&&window.setTimeout(function(){if(!asl_configuration.disable_list_scroll){var k=u._panel.storeList_.find('.sl-item[data-id="'+t.id_+'"]');if(k[0]){var nt=parseInt(asl_configuration.scroll_offset_y,10)||60,I=u._panel.mainPanel,G=I.get(0),H=G&&G.scrollHeight>G.clientHeight,J=asl_configuration.template=="6"&&!H;I=J?n("html, body"):I;var Lt=J?k.offset().top:k.position().top+(asl_configuration.template=="6"?u._panel.mainPanel.scrollTop():0);Lt=Math.max(Lt-nt,0),I.animate({scrollTop:Lt},"fast")}}},500)},asl_locator.View.prototype.selectedStore_changed=function(){},asl_locator.ViewOptions=function(){},asl_locator.ViewOptions.prototype.updateOnPan,asl_locator.ViewOptions.prototype.geolocation,asl_locator.ViewOptions.prototype.features,asl_locator.ViewOptions.prototype.markerIcon,asl_locator.Feature=function(t,e,o,s){this.id_=t,this.name_=e,this.img_=o,this.order=s},asl_locator.Feature=asl_locator.Feature,asl_locator.Feature.prototype.getId=function(){return this.id_},asl_locator.Feature.prototype.getDisplayName=function(){return this.name_},asl_locator.Feature.prototype.toString=function(){return this.getDisplayName()},asl_locator.FeatureSet=function(t){this.array_=[],this.hash_={};for(var e=0,o;o=arguments[e];e++)this.add(o)},asl_locator.FeatureSet=asl_locator.FeatureSet,asl_locator.FeatureSet.prototype.toggle=function(t){this.hash_[t.id_]?this.remove(t):this.add(t)},asl_locator.FeatureSet.prototype.add=function(t){t&&(this.array_.push(t),this.hash_[t.id_]=1)},asl_locator.FeatureSet.prototype.count=function(){return this.array_.length},asl_locator.FeatureSet.prototype.remove=function(t){var e=t.id_;this.hash_[e]&&(delete this.hash_[e],this.array_=this.array_.filter(function(o){return o&&o.id_!=e}))},asl_locator.FeatureSet.prototype.asList=function(){for(var t=[],e=0,o=this.array_.length;e<o;e++){var s=this.array_[e];s!==null&&t.push(s)}return t},asl_locator.FeatureSet.prototype.getSelected=function(){var t=null,e=asl_view.data_.flat_categories;if(asl_configuration.has_child_categories){var o=asl_engine.select_controls&&asl_engine.select_controls.c_ids,s=o&&typeof o.val=="function"?o.val():null;s===null||typeof s=="undefined"||s===""?s=[]:Array.isArray(s)||(s=[s]),t=s.length>0?e[s[0]]:null}return t||(t=this.array_&&this.array_.length>0?this.array_[0]:null,t&&(t={id:t.id_,name:t.name_,icon:t.img_,order:t.order})),t},asl_locator.FeatureSet.NONE=new asl_locator.FeatureSet;function l(){return String(asl_configuration.map_vendor||"google").toLowerCase()==="maplibre"}function w(t){return t?{lat:typeof t.lat=="function"?t.lat():Number(t.lat),lng:typeof t.lng=="function"?t.lng():Number(t.lng)}:{lat:0,lng:0}}function P(t,e){var o=ASLControlPosition,s={"top-left":["TOP_LEFT","LEFT_TOP"],"top-right":["TOP_RIGHT","RIGHT_TOP","TOP_CENTER"],"bottom-left":["BOTTOM_LEFT","LEFT_BOTTOM"],"bottom-right":["BOTTOM_RIGHT","RIGHT_BOTTOM","RIGHT_CENTER","BOTTOM_CENTER"]};for(var u in s)for(var p=0;p<s[u].length;p++)if(o[s[u][p]]!==void 0&&String(o[s[u][p]])===String(t))return u;return e||"bottom-right"}function K(t,e){var o=["streets-v12","outdoors-v12","light-v11","dark-v11","satellite-v9","satellite-streets-v12"],s=o.indexOf(e)!==-1?e:"streets-v12",u="https://api.mapbox.com/styles/v1/mapbox/"+s+"/tiles/512/{z}/{x}/{y}?access_token="+encodeURIComponent(t);return{version:8,name:"Mapbox "+s,sources:{"mapbox-raster":{type:"raster",tiles:[u],tileSize:512,maxzoom:22,attribution:'<a href="https://www.mapbox.com/about/maps/" target="_blank" rel="noopener">\xA9 Mapbox</a> <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener">\xA9 OpenStreetMap</a>'}},layers:[{id:"mapbox-raster",type:"raster",source:"mapbox-raster"}]}}
14function q(){return{version:8,name:"OpenStreetMap Standard",sources:{"osm-raster":{type:"raster",tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256,maxzoom:19,attribution:'<a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener">\xA9 OpenStreetMap contributors</a>'}},layers:[{id:"osm-raster",type:"raster",source:"osm-raster"}]}}asl_locator.get_map_provider_error=function(){var t=String(asl_configuration.tile_provider||"geoapify").toLowerCase(),e=String(asl_configuration.maplibre_style_url||"");return window.maplibregl?e?null:t==="mapbox"&&!asl_configuration.mapbox_access_token?"A Mapbox access token is required for Mapbox tiles.":t==="maptiler"&&!asl_configuration.tile_provider_api_key?"A MapTiler API key is required for MapTiler tiles.":t==="geoapify"&&!asl_configuration.geoapify_api_key?"A Geoapify API key is required for Geoapify tiles.":t==="custom"&&!e?"A MapLibre style URL is required for the custom tile provider.":null:"MapLibre GL JS could not be loaded."};function D(t,e){var o=w(e.center),s=String(asl_configuration.tile_provider||"geoapify").toLowerCase(),u=String(asl_configuration.tile_provider_style||"default").toLowerCase(),p=null,m=String(asl_configuration.maplibre_style_url||""),h=s==="geoapify"?asl_configuration.geoapify_api_key:s==="mapbox"?asl_configuration.mapbox_access_token:asl_configuration.tile_provider_api_key;if(m&&(p=m.split("{api_key}").join(encodeURIComponent(h||"")).split("{access_token}").join(encodeURIComponent(h||""))),!p&&s==="geoapify"){var L=["osm-bright-smooth","osm-carto","positron","dark-matter"],S=L.indexOf(u)!==-1?u:"osm-bright-smooth";p="https://maps.geoapify.com/v1/styles/"+S+"/style.json?apiKey="+encodeURIComponent(asl_configuration.geoapify_api_key||"")}else if(!p&&s==="osm")p=q();else if(!p&&s==="mapbox"){if(!asl_configuration.mapbox_access_token)throw new Error("A Mapbox access token is required for Mapbox tiles.");p=K(asl_configuration.mapbox_access_token,u)}else if(!p&&s==="maptiler"){if(!asl_configuration.tile_provider_api_key)throw new Error("A MapTiler API key is required for MapTiler tiles.");var N=["streets-v4","basic-v2","bright-v2","outdoor-v2","topo-v2","satellite"],B=N.indexOf(u)!==-1?u:"streets-v4";p="https://api.maptiler.com/maps/"+B+"/style.json?key="+encodeURIComponent(asl_configuration.tile_provider_api_key)}else!p&&s==="custom"&&(p=asl_configuration.maplibre_style_url);if(!window.maplibregl)throw new Error("MapLibre GL JS is not loaded.");if(!p)throw new Error("A tile provider or MapLibre style URL is required.");this._element=t,this._map=new maplibregl.Map({container:t,style:p,center:[o.lng,o.lat],zoom:Number(e.zoom)||9,minZoom:e.minZoom,maxZoom:e.maxZoom,attributionControl:!1,cooperativeGestures:e.gestureHandling==="cooperative"});var tt=new maplibregl.AttributionControl({compact:!0,customAttribution:'<a href="https://maplibre.org/" target="_blank" rel="noopener">MapLibre</a>'});this._map.addControl(tt,"bottom-right"),this._zoomControl=null,this._fullscreenControl=null,this._zoomControlPosition=P(e.zoomControlOptions&&e.zoomControlOptions.position,"bottom-right"),this._fullscreenControlPosition=P(e.fullscreenControlOptions&&e.fullscreenControlOptions.position,"bottom-right"),e.zoomControl!==!1&&(this._zoomControl=new maplibregl.NavigationControl({showZoom:!0,showCompass:!1}),this._map.addControl(this._zoomControl,this._zoomControlPosition)),e.fullscreenControl!==!1&&(this._fullscreenControl=new maplibregl.FullscreenControl,this._map.addControl(this._fullscreenControl,this._fullscreenControlPosition));var k=t.querySelector(".maplibregl-ctrl-attrib");k&&(k.classList.remove("maplibregl-compact-show"),k.removeAttribute("open")),this.controls={},this._streetView={getVisible:function(){return!1},setPosition:function(){}},Object.keys(ASLControlPosition).forEach(function(I){this.controls[ASLControlPosition[I]]={push:function(G){G.classList.add("asl-maplibre-custom-control"),t.appendChild(G)}}},this);var nt=this;["click","dragend","idle","zoomend","moveend"].forEach(function(I){nt._map.on(I,function(G){var H=I==="zoomend"?"zoom_changed":I==="moveend"?"bounds_changed":I;ASLEvent.trigger(nt,H,G)})})}D.prototype.getCenter=function(){var t=this._map.getCenter();return new ASLLatLng(t.lat,t.lng)},D.prototype.setCenter=D.prototype.panTo=function(t){var e=w(t);this._map.easeTo({center:[e.lng,e.lat]})},D.prototype.panToWithOffset=function(t,e,o,s,u){var p=w(t),m=(this._cameraTransitionId||0)+1;if(this._cameraTransitionId=m,this._map.stop(),typeof s=="function"){var h=this;this._map.once("moveend",function(){h._cameraTransitionId===m&&s()})}var L={center:[p.lng,p.lat],offset:[-(Number(e)||0),-(Number(o)||0)],duration:450,essential:!0};u!=null&&u!==""&&Number.isFinite(Number(u))&&(L.zoom=Number(u)),this._map.easeTo(L)},D.prototype.panBy=function(t,e){this._map.panBy([t,e])},D.prototype.getZoom=function(){return this._map.getZoom()},D.prototype.setZoom=function(t){this._map.setZoom(t)},D.prototype.getDiv=function(){return this._element},D.prototype.getStreetView=function(){return this._streetView},D.prototype.set=function(){},D.prototype.setOptions=function(t){t.center&&this.setCenter(t.center),t.zoom!=null&&this.setZoom(t.zoom),t.zoomControl===!0&&!this._zoomControl?
14(this._zoomControl=new maplibregl.NavigationControl({showZoom:!0,showCompass:!1}),this._map.addControl(this._zoomControl,this._zoomControlPosition)):t.zoomControl===!1&&this._zoomControl&&(this._map.removeControl(this._zoomControl),this._zoomControl=null),t.fullscreenControl===!0&&!this._fullscreenControl?(this._fullscreenControl=new maplibregl.FullscreenControl,this._map.addControl(this._fullscreenControl,this._fullscreenControlPosition)):t.fullscreenControl===!1&&this._fullscreenControl&&(this._map.removeControl(this._fullscreenControl),this._fullscreenControl=null)},D.prototype.getProjection=function(){return null},D.prototype.getBounds=function(){var t=this._map.getBounds();return new ASLLatLngBounds(new ASLLatLng(t.getSouth(),t.getWest()),new ASLLatLng(t.getNorth(),t.getEast()))},D.prototype.fitBounds=function(t,e){if(!(!t||typeof t.isEmpty=="function"&&t.isEmpty())){var o=t.getSouthWest(),s=t.getNorthEast(),u=typeof e=="number"?{padding:e}:e||{},p=u.padding!==void 0?u.padding:40,m=[[o.lng(),o.lat()],[s.lng(),s.lat()]],h=Number.isFinite(Number(u.minZoom)),L=Number.isFinite(Number(u.maxZoom));if(!h&&!L){this._map.stop(),this._map.fitBounds(m,{padding:p,duration:u.duration!==void 0?u.duration:450,essential:!0});return}var S=this._map.cameraForBounds(m,{padding:p});if(S){var N=S.zoom;h&&(N=Math.max(Number(u.minZoom),N)),L&&(N=Math.min(Number(u.maxZoom),N)),this._map.stop(),this._map.easeTo({center:S.center,zoom:N,duration:u.duration!==void 0?u.duration:450,essential:!0})}}};function ut(t){var e=w(t.position),o=document.createElement("button");o.type="button",o.className="asl-maplibre-marker",o.title=t.title||"";var s=document.createElement("img");if(s.className="asl-maplibre-marker-image",s.alt="",s.draggable=!1,o.appendChild(s),t.label&&t.label.text){var u=document.createElement("span");u.textContent=t.label.text,u.style.color=t.label.color||"",o.appendChild(u)}this._element=o,this._image=s,this._icon=t.icon||null,this.applyIcon_(this._icon),this._position=new ASLLatLng(e.lat,e.lng),this._marker=new maplibregl.Marker({element:o,anchor:"bottom",draggable:!!t.draggable}).setLngLat([e.lng,e.lat]),this._map=null,this._visible=!0;var p=this;o.addEventListener("click",function(m){m.stopPropagation(),ASLEvent.trigger(p,"click",m)}),this._marker.on("dragend",function(){var m=p._marker.getLngLat();p._position=new ASLLatLng(m.lat,m.lng),ASLEvent.trigger(p,"dragend",{latLng:p._position})}),t.map&&this.setMap(t.map)}ut.prototype.getPosition=function(){return this._position},ut.prototype.addListener=function(t,e){return ASLEvent.addListener(this,t,e)},ut.prototype.setPosition=function(t){var e=w(t);this._position=new ASLLatLng(e.lat,e.lng),this._marker.setLngLat([e.lng,e.lat])},ut.prototype.getMap=function(){return this._map},ut.prototype.setMap=function(t){if(!t){this._marker.remove(),this._map=null;return}this._map!==t&&this._marker.addTo(t._map),this._map=t},ut.prototype.setVisible=function(t){t=!!t,this._visible!==t&&(this._visible=t,this._element.style.display=t?"":"none")},ut.prototype.setAnimation=function(t){var e=!!(t&&window.google&&t===ASLAnimation.BOUNCE);this._element.classList.toggle("asl-maplibre-marker-bounce",e)},ut.prototype.getIcon=function(){return this._icon},ut.prototype.applyIcon_=function(t){var e=typeof t=="string"?t:t&&t.url,o=t&&typeof t=="object"?t.scaledSize:null,s=o&&Number(typeof o.width=="function"?o.width():o.width),u=o&&Number(typeof o.height=="function"?o.height():o.height);e?this._image.src=e:this._image.removeAttribute("src"),this._image.style.width=s>0?s+"px":"",this._image.style.height=u>0?u+"px":""},ut.prototype.setIcon=function(t){this._icon=t||null,this.applyIcon_(this._icon)},ut.prototype.setZIndex=function(t){this._element.style.zIndex=t==null?"":t};function St(t,e,o){this.map_=t,this.options_=o||{},this.markers_=[],this.sourceId_="asl-maplibre-clusters",this.ready_=!1,this.visibilityUpdateId_=null,this.data_={type:"FeatureCollection",features:[]};var s=this;t._map.isStyleLoaded()?this.setup_():t._map.once("load",function(){s.setup_()}),t._map.on("moveend",function(){s.scheduleVisibilityUpdate_()}),t._map.on("idle",function(){s.scheduleVisibilityUpdate_()}),t._map.on("sourcedata",function(u){u.sourceId===s.sourceId_&&s.scheduleVisibilityUpdate_()}),e&&e.length&&this.addMarkers(e)}St.prototype.setup_=function(){if(!(this.ready_||this.map_._map.getSource(this.sourceId_))){var t=this.map_._map,e=this.sourceId_,o=this,s=window.getComputedStyle(this.map_._element.closest(".asl-cont")||this.map_._element).getPropertyValue("--sl-primary").trim()||"#4a90e2";t.addSource(e,{type:"geojson",data:this.data_,cluster:!0,clusterMa
14xZoom:parseInt(this.options_.maxZoom)||9,clusterRadius:parseInt(this.options_.gridSize)||90}),t.addLayer({id:e+"-circles",type:"circle",source:e,filter:["has","point_count"],paint:{"circle-color":s,"circle-opacity":.9,"circle-radius":["step",["get","point_count"],15,10,20,50,25],"circle-stroke-color":"#ffffff","circle-stroke-width":2}}),t.addLayer({id:e+"-counts",type:"symbol",source:e,filter:["has","point_count"],layout:{"text-field":["get","point_count_abbreviated"],"text-size":12},paint:{"text-color":"#ffffff"}}),t.on("click",e+"-circles",function(u){var p=u.features&&u.features[0];if(p){var m=t.getSource(e),h=function(L){t.easeTo({center:p.geometry.coordinates,zoom:L,duration:400}),typeof o.options_.onClusterClick=="function"&&o.options_.onClusterClick(u,p,o.map_)};m.getClusterExpansionZoom(p.properties.cluster_id).then(h).catch(function(L){console.error("Unable to expand MapLibre cluster.",L)})}}),t.on("mouseenter",e+"-circles",function(){t.getCanvas().style.cursor="pointer"}),t.on("mouseleave",e+"-circles",function(){t.getCanvas().style.cursor=""}),this.ready_=!0,t.getSource(e).setData(this.data_),this.scheduleVisibilityUpdate_()}},St.prototype.setData_=function(){this.data_={type:"FeatureCollection",features:this.markers_.map(function(e,o){var s=w(e.getPosition());return e._clusterId=String(o),{type:"Feature",id:o,properties:{marker_id:String(o)},geometry:{type:"Point",coordinates:[s.lng,s.lat]}}})};var t=this.ready_&&this.map_._map.getSource(this.sourceId_);t&&(t.setData(this.data_),this.scheduleVisibilityUpdate_())},St.prototype.scheduleVisibilityUpdate_=function(){if(this.visibilityUpdateId_===null){var t=this,e=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(o){return window.setTimeout(o,16)};this.visibilityUpdateId_=e(function(){t.visibilityUpdateId_=null,t.updateMarkerVisibility_()})}},St.prototype.updateMarkerVisibility_=function(){if(!(!this.ready_||!this.markers_.length)){for(var t={},e=this.map_._map.querySourceFeatures(this.sourceId_),o=0;o<e.length;o++)!e[o].properties.cluster&&e[o].properties.marker_id!==void 0&&(t[String(e[o].properties.marker_id)]=!0);for(var s=0;s<this.markers_.length;s++){var u=this.markers_[s],p=!!t[u._clusterId];p?(u.getMap()!==this.map_&&u.setMap(this.map_),u.setVisible(!0)):(u.setVisible(!1),u.getMap()&&u.setMap(null))}}},St.prototype.getExpansionZoomForMarker=function(t){var e=this.ready_&&this.map_._map.getSource(this.sourceId_),o=t&&t._clusterId;if(!e||o===void 0||o===null)return Promise.resolve(null);var s=this.map_._map.querySourceFeatures(this.sourceId_).filter(function(m){return m.properties&&m.properties.cluster&&m.properties.cluster_id!==void 0}),u={},p=s.reduce(function(m,h){var L=h.properties.cluster_id;return u[L]||(u[L]=!0,m.push(e.getClusterLeaves(L,h.properties.point_count||10,0).then(function(S){var N=S.some(function(B){return String(B.properties.marker_id)===String(o)});return N?e.getClusterExpansionZoom(L):null}).catch(function(){return null}))),m},[]);return Promise.all(p).then(function(m){var h=m.filter(function(L){return Number.isFinite(Number(L))});return h.length?Math.max.apply(Math,h.map(Number)):null})},St.prototype.clearMarkers=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].setMap(null);this.markers_=[],this.setData_()},St.prototype.addMarkers=function(t){this.markers_=(t||[]).filter(Boolean);for(var e=0;e<this.markers_.length;e++)this.markers_[e].setVisible(!1),this.markers_[e].getMap()&&this.markers_[e].setMap(null);this.setData_()};function It(t){this._options=t||{},this._map=null,this._id="asl-radius-"+Math.random().toString(36).slice(2),this._options.map&&this.setMap(this._options.map)}It.prototype.getBounds=function(){var t=w(this._options.center),e=Number(this._options.radius)||0,o=e/111320,s=e/(111320*Math.max(Math.cos(t.lat*Math.PI/180),.01));return new ASLLatLngBounds(new ASLLatLng(t.lat-o,t.lng-s),new ASLLatLng(t.lat+o,t.lng+s))},It.prototype.geometry_=function(){for(var t=w(this._options.center),e=Number(this._options.radius)||0,o=[],s=t.lat*Math.PI/180,u=0;u<=64;u++){var p=u*Math.PI*2/64,m=t.lat+e/111320*Math.sin(p),h=t.lng+e/(111320*Math.max(Math.cos(s),.01))*Math.cos(p);o.push([h,m])}return{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[o]}}},It.prototype.render_=function(){if(!(!this._map||!this._map._map.isStyleLoaded())){var t=this._map._map,e=t.getSource(this._id),o=this.geometry_();if(e){e.setData(o);return}t.addSource(this._id,{type:"geojson",data:o}
14),t.addLayer({id:this._id+"-fill",type:"fill",source:this._id,paint:{"fill-color":this._options.fillColor||"#FFFF00","fill-opacity":Number(this._options.fillOpacity==null?.2:this._options.fillOpacity)}}),t.addLayer({id:this._id+"-stroke",type:"line",source:this._id,paint:{"line-color":this._options.strokeColor||"#FFFF00","line-opacity":Number(this._options.strokeOpacity==null?.7:this._options.strokeOpacity),"line-width":Number(this._options.strokeWeight||2)}})}},It.prototype.setOptions=function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this._options[e]=t[e]);this.render_()},It.prototype.setMap=function(t){if(!t){if(this._map){var e=this._map._map;e.getLayer(this._id+"-stroke")&&e.removeLayer(this._id+"-stroke"),e.getLayer(this._id+"-fill")&&e.removeLayer(this._id+"-fill"),e.getSource(this._id)&&e.removeSource(this._id)}this._map=null;return}this._map=t;var o=this;t._map.isStyleLoaded()?this.render_():t._map.once("load",function(){o.render_()})};function vt(t){t=t||{},this._options=t,this._popup=new maplibregl.Popup({anchor:"bottom",offset:Number(t.markerHeight)||35,closeButton:!0,closeOnClick:!1,className:"infoBox asl-maplibre-infobox",maxWidth:(Number(t.width)||320)+"px"}),this._content=null,this._position=null,this._map=null,this._zIndex=null,this._closingProgrammatically=!1;var e=this;this._popup.on("close",function(){e._closingProgrammatically||ASLEvent.trigger(e,"closeclick")})}vt.prototype.applyPresentation_=function(){var t=this._popup.getElement();if(t){t.style.setProperty("--asl-infobox-width",(Number(this._options.width)||320)+"px");var e=t.querySelector(".maplibregl-popup-close-button");e&&(e.innerHTML='<i aria-hidden="true" class="icon-cancel-1"></i>',e.style.removeProperty("background-image"),e.style.margin=this._options.closeBoxMargin||"")}},vt.prototype.setContent=function(t){this._content=t,ASLEvent.trigger(this,"content_changed")},vt.prototype.getContent=function(){return this._content},vt.prototype.setPosition=function(t){if(this._position=t,this.getVisible()){var e=w(t);this._popup.setLngLat([e.lng,e.lat])}ASLEvent.trigger(this,"position_changed")},vt.prototype.getPosition=function(){return this._position},vt.prototype.open=function(t,e){var o=e?e.getPosition():this._position,s=w(o);this._map=t,this._position=o,this._content&&this._content.nodeType?this._popup.setDOMContent(this._content):this._popup.setHTML(this._content==null?"":String(this._content)),this._popup.setLngLat([s.lng,s.lat]).addTo(t._map),this.applyPresentation_(),this.setZIndex(this._zIndex),ASLEvent.trigger(this,"domready")},vt.prototype.getVisible=function(){return this._popup.isOpen()},vt.prototype.setVisible=function(t){t?this._map&&this._position&&this.open(this._map):this.close()},vt.prototype.show=function(){this.setVisible(!0)},vt.prototype.hide=function(){this.setVisible(!1)},vt.prototype.getMap=function(){return this._map},vt.prototype.setZIndex=function(t){this._zIndex=t;var e=this._popup.getElement();e&&(e.style.zIndex=t==null?"":t),ASLEvent.trigger(this,"zindex_changed")},vt.prototype.getZIndex=function(){return this._zIndex},vt.prototype.setOptions=function(t){t=t||{},Object.prototype.hasOwnProperty.call(t,"content")&&this.setContent(t.content),Object.prototype.hasOwnProperty.call(t,"position")&&this.setPosition(t.position),Object.prototype.hasOwnProperty.call(t,"zIndex")&&this.setZIndex(t.zIndex),Object.prototype.hasOwnProperty.call(t,"visible")&&this.setVisible(t.visible)},vt.prototype.close=function(){this._closingProgrammatically=!0,this._popup.remove(),this._closingProgrammatically=!1,this._map=null},asl_locator.isMapLibre=l,asl_locator.MapLibreMap=D,asl_locator.MapLibreMarker=ut,asl_locator.MapLibreClusterer=St,asl_locator.MapLibreCircle=It,asl_locator.MapLibreInfoWindow=vt,asl_locator.searchProviders={},asl_use_new_place_api=function(t){var e=t||asl_configuration||{};return e.search_type=="4"},asl_locator.resolveSearchProvider=function(t){return t=String(t||asl_configuration.search_provider||"automatic").toLowerCase(),t==="auto"&&(t="automatic"),t==="automatic"&&(asl_configuration.search_type=="0"||asl_configuration.search_type=="3"?t="google":asl_locator.isMapLibre&&asl_locator.isMapLibre()?asl_configuration.geoapify_api_key?t="geoapify":asl_configuration.mapbox_access_token?t="mapbox":t=asl_configuration.search_type=="1"||asl_configuration.search_type=="2"?"disabled":"nominatim":t="google"),t},asl_locator.registerSearchProvider=function(t,e){asl_locator.searchProviders[t]=e};function ct(t,e){return asl_locator.createSearchLatLng?asl_locator.createSearchLatLng(Number(t),Number(e)):new ASLLatLng(Number(t),Number(e))}function kt(t){return t?(Array.isArray(t)||(t=String(t).split(",")),t.map(function(e){return String(e).trim().toLowerCase()}).filter(function(e,o,s){return/^[a-z]{2}$/.test(e)&&s.indexOf(e)===o})):[]}function Rt(t){if(!t||t.length!==4)return null;var e=ct(t[1],t[0]),o=ct(t[3],t[2]);return asl_locator.createSearchBounds?asl_locator.createSearchBounds(e,o):new ASLLatLngBounds(e,o)}function Bt(t,e,o){return t?{long_name:String(t),short_name:String(e||t),types:[o]}:null}function Gt(t){return[Bt(t.city||t.town||t.village||t.suburb,null,"locality"),Bt(t.state,t.state_code,"administrative_area_level_1"),Bt(t.country,t.country_code&&t.country_code.toUpperCase(),"country"),Bt(t.postcode,null,"postal_code")].filter(
14Boolean)}function oe(t){var e=t.properties||{},o=e.context||{};function s(u,p,m){var h=o[u]||{};return Bt(h.name||h.text,h[m]||h.short_code,p)}return[s("place","locality"),s("locality","locality"),s("region","administrative_area_level_1","region_code"),s("country","country","country_code"),s("postcode","postal_code")].filter(Boolean)}function Ut(t,e){return fetch(t,{signal:e}).then(function(o){if(!o.ok)throw new Error("Address API request failed with status "+o.status);return o.json()})}asl_locator.registerSearchProvider("google",{geocode:function(t,e){if(t.bounds&&asl_shared_uses_maplibre()&&asl_has_google_maps()&&typeof t.bounds.getSouthWest=="function"){var o=t.bounds.getSouthWest(),s=t.bounds.getNorthEast();t=Object.assign({},t,{bounds:new google.maps.LatLngBounds({lat:Number(o.lat()),lng:Number(o.lng())},{lat:Number(s.lat()),lng:Number(s.lng())})})}new google.maps.Geocoder().geocode(t,e)},search:function(t,e,o,s){return google.maps.importLibrary("places").then(function(u){if(o&&o.aborted)throw new DOMException("Aborted","AbortError");s.googleSessionToken_||(s.googleSessionToken_=new u.AutocompleteSessionToken);var p={input:t,includedPrimaryTypes:["geocode"],language:asl_configuration.language||"en-US",sessionToken:s.googleSessionToken_};return e.countries.length&&(p.includedRegionCodes=e.countries.map(function(m){return m.toUpperCase()})),e.proximity&&(p.locationBias={center:e.proximity,radius:5e4}),u.AutocompleteSuggestion.fetchAutocompleteSuggestions(p).then(function(m){return(m.suggestions||[]).map(function(h){return{label:h.placePrediction.text.toString(),raw:h,provider:"google"}})})})},resolve:function(t,e){var o=t.raw&&t.raw.placePrediction;if(!o||!o.toPlace)return Promise.reject(new Error("Invalid Google place prediction."));var s=o.toPlace({sessionToken:e.googleSessionToken_});return s.fetchFields({fields:["formattedAddress","types","location","viewport","addressComponents","id"]}
14).then(function(){return e.googleSessionToken_=null,{formatted_address:s.formattedAddress||t.label,formattedAddress:s.formattedAddress||t.label,place_id:s.id||o.placeId||null,placeId:s.id||o.placeId||null,geometry:{location:s.location,viewport:s.viewport||null},address_components:(s.addressComponents||[]).map(function(u){return{long_name:u.longText,short_name:u.shortText||u.longText,types:u.types||[]}}),types:s.types||[],properties:s,provider:"google"}})}}),asl_locator.registerSearchProvider("nominatim",{geocode:function(t,e){var o=kt(asl_get_country_restrictions(asl_configuration));o.length||(o=kt(t.componentRestrictions&&t.componentRestrictions.country)),window.ASLNominatim.search(t.address||"",o).then(function(s){var u=s.map(function(p){var m=p.boundingbox;return{formatted_address:p.display_name,place_id:p.place_id,geometry:{location:ct(p.lat,p.lon),viewport:m?Rt([+m[2],+m[0],+m[3],+m[1]]):null},address_components:Gt(p.address||{}),provider:"nominatim"}});e(u,u.length?"OK":"ZERO_RESULTS")}).catch(function(s){console.error("Nominatim geocoding failed.",s),e([],"ERROR")})}}),asl_locator.registerSearchProvider("disabled",{geocode:function(t,e){e([],"PROVIDER_NOT_CONFIGURED")}}),asl_locator.showSearchProviderAlert=function(t){var e=t&&t.jquery?t:n(t);if(!(!e.length||e.find(".asl-search-provider-alert").length)){var o=asl_configuration.words&&asl_configuration.words.search_provider_missing||"Address search is unavailable because no geocoding provider is configured.",s=n('<div class="alert alert-warning asl-search-provider-alert" role="alert"></div>').text(o);
14e.prepend(s),window.setTimeout(function(){s.fadeOut(200,function(){s.remove()})},7e3)}},asl_locator.registerSearchProvider("geoapify",{search:function(t,e,o){var s=asl_configuration.geoapify_api_key,u=kt(e.countries);if(!s)return Promise.reject(new Error("Geoapify API key is missing."));var p=new URLSearchParams({text:t,apiKey:s,limit:String(e.limit||5),format:"json"});u.length&&p.set("filter","countrycode:"+u.join(",")),e.proximity&&p.set("bias","proximity:"+e.proximity.lng+","+e.proximity.lat);var m=e.autocomplete===!1?"search":"autocomplete",h="https://api.geoapify.com/v1/geocode/"+m+"?"+p.toString();return Ut(h,o).then(function(L){return(L.results||[]).map(function(S){var N=S.bbox?[S.bbox.lon1,S.bbox.lat1,S.bbox.lon2,S.bbox.lat2]:null;return{formatted_address:S.formatted||S.address_line1||t,place_id:S.place_id||null,geometry:{location:ct(S.lat,S.lon),viewport:Rt(N)},address_components:Gt(S),properties:S,provider:"geoapify"}})})}}),asl_locator.registerSearchProvider("mapbox",{search:function(t,e,o){var s=asl_configuration.mapbox_access_token,u=kt(e.countries);if(!s)return Promise.reject(new Error("Mapbox access token is missing."));var p=new URLSearchParams({q:t,access_token:s,limit:String(e.limit||5),autocomplete:e.autocomplete===!1?"false":"true"});u.length&&p.set("country",u.join(",")),e.proximity&&p.set("proximity",e.proximity.lng+","+e.proximity.lat);var m="https://api.mapbox.com/search/geocode/v6/forward?"+p.toString();return Ut(m,o).then(function(h){return(h.features||[]).map(function(L){var S=L.properties||{},N=S.coordinates||{},B=L.geometry&&L.geometry.coordinates||[N.longitude,N.latitude];return{formatted_address:S.full_address||S.name||L.place_name||L.name||t,place_id:L.id||S.mapbox_id||null,geometry:{location:ct(B[1],B[0]),viewport:Rt(L.bbox||S.bbox)},address_components:oe(L),properties:L,provider:"mapbox"}}).filter(function(L){return!isNaN(L.geometry.location.lat())&&!isNaN(L.geometry.location.lng())})})}}),["geoapify","mapbox"].forEach(function(t){asl_locator.searchProviders[t].geocode=function(e,o){var s=e&&e.componentRestrictions&&e.componentRestrictions.country,u=kt(asl_get_country_restrictions(asl_configuration)),p=u.length?u:kt(s);this.search(e&&e.address||"",{autocomplete:!1,countries:p||[],limit:5}).then(function(m){o(m,m.length?"OK":"ZERO_RESULTS")}).catch(function(m){console.error(t+" geocoding failed.",m),o([],"ERROR")})}}),asl_locator.getSearchProvider=function(){return asl_locator.searchProviders[asl_locator.resolveSearchProvider()]||asl_locator.searchProviders.google},asl_locator.AddressAPI=function(t,e){this.input=t,this.options=e||{},this.listeners=[],this.boundEvents=[],this.providerName=asl_locator.resolveSearchProvider(this.options.provider),this.provider=asl_locator.searchProviders[this.providerName],this.abortController=null,this.timer=null,this.menu=null,this.place=null,!(!t||!this.provider||this.providerName==="disabled")&&this.providerName!=="nominatim"&&(this.providerName==="google"&&!asl_use_new_place_api(asl_configuration)?this.initGoogle_():this.initRemote_())},asl_locator.AddressAPI.prototype.addPlaceListener=function(t){return this.listeners.push(t),this},asl_locator.AddressAPI.prototype.getPlace=function(){return this.place},asl_locator.AddressAPI.prototype.bindTo=function(t,e){t==="bounds"&&(this.options.map=e)},asl_locator.AddressAPI.prototype.emit_=function(t){this.place=t;for(var e=0;e<this.listeners.length;e++)this.listeners[e].call(this,t);typeof this.options.onSelect=="function"&&this.options.onSelect(t)},asl_locator.AddressAPI.prototype.initGoogle_=function(){var t=this;this.instance=asl_create_autocomplete_instance(this.input,this.options.googleOptions||{},this.options.newGoogleOptions||{},asl_configuration);var e=this.options.countries||asl_get_country_restrictions(asl_configuration);e.length&&asl_apply_country_limits(this.instance,e,asl_configuration),this.options.fields&&this.instance&&typeof this.instance.setFields=="function"&&this.instance.setFields(this.options.fields),this.options.map&&!asl_locator.isMapLibre()&&this.instance&&typeof this.instance.bindTo=="function"&&!asl_use_new_place_api(asl_configuration)&&this.instance.bindTo("bounds",this.options.map),asl_add_place_listener(this.instance,function(){var o=asl_normalize_place_result(this,t.input.value,asl_configuration);o&&(o.provider="google",t.emit_(o))},asl_configuration)},asl_locator.AddressAPI.prototype.getContext_=function(t){var e={autocomplete:t,countries:kt(this.options.countries||asl_get_country_restrictions(asl_configuration)),limit:5},o=this.options.map;if(o&&typeof o.getCenter=="function"){var s=o.getCenter();e.proximity={lat:typeof s.lat=="function"?s.lat():s.lat,lng:typeof s.lng=="function"?s.lng():s.lng}}return e},asl_locator.AddressAPI.prototype.initRemote_=function(){var t=this;if(!window.ASLSearchAutocomplete)throw new Error("ASL autocomplete widget is not loaded.");this.widget=new window.ASLSearchAutocomplete(this.input,{fetchSuggestions:function(e,o){return t.provider.search(e,t.getContext_(!0),o,t)},resolveSuggestion:function(e){return t.provider.resolve?t.provider.resolve(e,t):e},onPlaceSelected:function(e){t.emit_(e)}})},asl_locator.AddressAPI.prototype.fetch_=function(t){var e=this;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.provider.search(t,this.getContext_(!0),this.abortController.signal).then(function(o){e.input.value.trim()===t&&e.render_(o)}).catch(function(o){o.name!=="AbortError"&&console.error(e.providerName+" autocomplete failed.",o)})},asl_locator.AddressAPI.prototype.render_=function(t){var e=this;this.menu.innerHTML="",t.forEach(function(o){var s=document.createElement("button");s.type="button",s.textContent=o.formatted_address,s.style.cssText="display:block;width:100%;padding:9px 12px;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left;cursor:pointer",s.addEventListener("mousedown",function(u){u.preventDefault(),e.input.value=o.formatted_address,e.hide_(),e.emit_(o)}),e.menu.appendChild(s)}),this.menu.style.display=t.length?"block":"none"},asl_locator.AddressAPI.prototype.hide_=function(){this.menu&&(this.menu.style.display="none")},asl_locator.AddressAPI.prototype.geocode=function(t,e){this.provider.geocode(t,e)},asl_locator.AddressAPI.prototype.geocodeText=function(t,e){this.provider.geocode({address:t},e)},asl_locator.AddressAPI.prototype.clear=function(){this.input.value="",this.place=null,this.hide_()},asl_locator.AddressAPI.prototype.destroy=function(){clearTimeout(this.timer),this.abortController&&this.abortController.abort(),this.widget&&(this.widget.destroy(),this.widget=null);for(var t=0;t<this.boundEvents.length;t++)this.input.removeEventListener(this.boundEvents[t][0],this.boundEvents[t][1]);this.menu&&this.menu.parentNode&&this.menu.parentNode.removeChild(this.menu)},asl_locator.Panel=function(t,e){var o=this;this.el_=n(t),this._cont=e.container,this.el_.addClass("asl_locator-panel"),this.settings_=n.extend({locationSearch:!0,locationSearchLabel:"Enter Location/ZipCode: ",featureFilter:!0,directions:!0,view:null},e),this.directionsRenderer_=null,this.directionsService_=null,e.view._panel=this,this.init_();var s=o.get("view");this.filter_=o._cont.find(".header-search"),asl_configuration.template=="6"&&asl_configuration.advance_filter&&s.template_6_setup(),o._cont.find(".asl-print-btn").on("click",function(u){var p="asl-list";o._cont.find(".panel-inner").css("display")=="none"&&(p="asl-rendered-dir",o._cont.find("#asl-list").find(".rendered-directions").attr("id",p));var m={printable:p,type:"html",css:asl_configuration.PLUGIN_URL+"public/css/print.css"};asl_configuration.print_header&&(m.header=asl_configuration.print_header),printJS(m)}),this.lead_form_modal()},asl_locator.Panel=asl_locator.Panel,asl_locator.Panel.prototype=Object.create(ASLMVCObject.prototype),asl_locator.Panel.prototype.constructor=asl_locator.Panel,asl_locator.Panel.prototype.init_=function(){var t=this;this.itemCache_={},this.settings_.view&&this.set("view",this.settings_.view);var e=t.get("view"),o=e.getMap();if(this.filter_=e._cont.find(".header-search"),asl_configuration.cluster){var s=asl_locator.isMapLibre()?asl_locator.MapLibreClusterer:MarkerClusterer;
14asl_locator.marker_clusters=new s(o,[],{maxZoom:parseInt(asl_configuration.cluster_max_zoom)||9,gridSize:parseInt(asl_configuration.cluster_grid_size)||90,styles:[{width:30,height:30,className:"asl-cluster-1"},{width:40,height:40,className:"asl-cluster-2"},{width:50,height:50,className:"asl-cluster-3"}],clusterClass:"asl-cluster",onClusterClick:function(V,et,at){asl_configuration.sort_by_bound&&ASLEvent.addListenerOnce(at,"idle",function(){e.scheduleRefreshView()}),asl_locator.hook_event({type:"cluster_click",data:{event:V,cluster:et,map:at}})}})}if(this.settings_.locationSearch){if(this.locationSearch_=this.filter_,asl_locator.getSearchProvider()){var u=t._cont.find("#auto-complete-search,.asl-search-address")[0];(asl_configuration.search_type=="0"||asl_configuration.search_type=="4")&&this.initAutocomplete_(u),asl_configuration.search_type=="2"&&this.geoCoder(u,null,!0),t._cont.find(".asl-reset-btn").on("click",function(V){e.clear_search(u),u&&n(u).parent().find(".asl-clear-btn").addClass("hide"),e.reset_all(null,!0)})}else this.filter_.submit(function(){t.searchPosition(n("input",t.locationSearch_).val())});this.filter_.submit(function(){return!1}),ASLEvent.addListener(this,"geocode",function(V){if(t.searchPositionTimeout_&&window.clearTimeout(t.searchPositionTimeout_),!V.geometry){t.searchPosition(V.name);return}this.directionsFrom_=V.geometry.location,t.directionsVisible_&&t.renderDirections_();var et=t.get("view");et.highlight(null);var at=et.getMap();V.geometry.viewport?at.fitBounds(V.geometry.viewport):(at.setCenter(V.geometry.location),asl_configuration.zoom_li&&at.setZoom(parseInt(asl_configuration.zoom_li))),et.refreshView(),t.listenForStoresUpdate_()})}var p=this;this.featureFilter_=e._cont.find("#filter-options"),this.featureFilter_.show(),asl_configuration.show_categories||e._cont.find(".sl-category-filter.drop_box_filter").remove(),asl_configuration.advance_filter&&e._cont.find(".asl-advance-filters").removeClass("hide");var m=e._cont.find("#asl-open-close");asl_configuration.time_switch&&m[0]&&(m[0].checked=asl_configuration.show_opened,m.on("change",function(V){asl_configuration.show_opened=this.checked,t.get("view").refreshView()}),e._cont.find(".Status_filter").addClass("asl-block"));var h=e._cont.find("#asl-list-sort, #sl-sort-by");if(h[0]){var L=function(V){return V=String(V||"").toLowerCase(),V=="nearest"||V=="distance"?"":V=="cities"?"city":V=="states"?"state":V=="name a-z"||V=="name"?"title":V};h.each(function(){n(this).val(asl_configuration.sort_by||(n(this).find('option[value="nearest"]')[0]?"nearest":""))}),h.on("change",function(){asl_configuration.sort_by=L(n(this).val()),e.refreshView()})}var S=this.get("view").getViewFeatures().asList(),N=this.featureFilter_.find(".inner-filter");this.storeList_=this.el_.find(".sl-list"),this.SListCont_=this.el_.find(".asl-panel-inner"),this.mainPanel=this.el_.find(".sl-main-cont-box"),S=asl_configuration.cat_sort=="name_"?asl_engine.helper.sortBy(S,"name_",!0):asl_engine.helper.sortBy(S,"order");var B=asl_configuration.single_cat_select=="1"?"":'multiple="multiple"',tt=function(V){var et=V.attr("id")+"-search",at=asl_configuration.words.search||"Search",Pt=n('<li class="multiselect-item filter"><div class="input-group"><span class="input-group-addon"><i class="icon-search-2"></i></span></div></li>');return Pt.find(".input-group").append(n("<label></label>").attr("for",et).addClass("sl-visually-hidden").text(at)).append(n('<input type="text" class="form-control multiselect-search">').attr("id",et)),Pt.prop("outerHTML")};if(asl_configuration.template=="2"&&asl_configuration.advance_filter&&asl_configuration.show_categories){for(var k=e._cont.find(".asl-categories-panel"),nt=k.find(".asl-categories-list"),I=asl_configuration.URL+"svg/",G=0,H=S.length;G<H;G++){var J=S[G],Lt=asl_categories[J.id_].color,bt=n('<div class="round-box" data-c="'+asl_categories[J.id_].len+'" data-id="'+J.id_+'"><div class="iner-box"><div class="box-icon">                <span style="background-image:url('+I+J.img_+')"></span></div><div class="cat-name"><span>'+J.getDisplayName()+"<br><span>"+asl_engine.helper.locations_count(asl_categories[J.id_].len)+"</span></span></div></div></div>");Lt&&bt.find(".box-icon").css("background-color",Lt),nt.append(bt),bt.data("feature",J)}e._cont.find(".Num_of_store .back-button").on("click",function(V){var et=t.get("featureFilter");for(var at in et.array_)et.array_.pop();t.get("view").refreshView(),k.removeClass("hide"),k.closest(".asl-panel").removeClass("sl-cat-selected");
14var Pt=new ASLLatLng(asl_configuration.default_lat,asl_configuration.default_lng);l()?o.panToWithOffset(Pt,0,0,null,parseInt(asl_configuration.zoom)):(o.panTo(Pt),o.setZoom(parseInt(asl_configuration.zoom)))}),nt.find(".round-box").on("click",function(V){var et=n(this),at=t.get("featureFilter");for(var Pt in at.array_)at.array_.pop();var wt=et.data("feature");at.add(wt),t.set("featureFilter",at);var Wt=e._cont.find(".sl-cat-header"),Ht=et.find(".box-icon");Wt.find(".sl-cat-header-title").text(wt.getDisplayName()),Wt.find(".sl-cat-header-icon").css("background-color",Ht.css("background-color")).find("span").css("background-image",Ht.find("span").css("background-image")),k.closest(".asl-panel").addClass("sl-cat-selected"),t.get("view").refreshView(),asl_configuration.category_bound&&e.fitBound(null),k.addClass("hide"),t.el_.removeClass("hide").animate({scrollTop:0},0)})}else{var Ot=asl_configuration.filter_ddl,Tt=asl_configuration.brand_special_cascade==="1"||asl_configuration.brand_special_cascade===!0||asl_configuration.brand_special_cascade==="true";asl_engine.controls={},asl_engine.select_controls={};var mt=function(V){return!V||V=="0"?[]:(Array.isArray(V)||(V=[V]),V.map(function(et){return String(et)}).filter(function(et){return et&&et!="0"}))},xt=function(V,et,at){for(var Pt=asl_configuration.filter_sort?asl_configuration.filter_sort:"name",wt=asl_engine.helper.sortBy(Object.values(asl_attributes[et]),Pt,Pt!="ordr"),Wt=0,Ht=wt.length;Wt<Ht;Wt++){var Kt=wt[Wt];if(Tt&&et=="special"&&at&&at.length){var O=Kt.brand_id?String(Kt.brand_id):"";if(!O||O=="0"||at.indexOf(O)==-1)continue}var T=n('<option  value="'+Kt.id+'">'+Kt.name+"</option>");T.data("feature",Kt),V.append(T)}},qt=function(){if(!(!Tt||!asl_engine.controls.brand||!asl_engine.controls.special||!asl_attributes.special)){var V=asl_engine.controls.special,et=asl_configuration.words.all_special||asl_configuration.words.none,at=mt(V.val()),Pt=mt(asl_engine.controls.brand.val()),wt=[];V.empty(),asl_configuration.single_cat_select=="1"&&V.append(n('<option value="0">'+et+"</option>")),xt(V,"special",Pt),V.find("option").each(function(){wt.push(String(n(this).val()))}),at=at.filter(function(Wt){return wt.indexOf(Wt)!=-1}),asl_configuration.single_cat_select=="1"?V.val(at.length?at[0]:"0"):V.val(at),asl_engine.select_controls.special&&V.multiselect("rebuild")}};if(Ot){for(var g in Ot){var b=Ot[g];e._cont.find("#"+b+"_filter").append('<select data-type="'+b+'" id="asl-'+b+'" '+B+' style="width:350px"></select>');var y=e._cont.find("#asl-"+b);asl_engine.controls[b]=y;var C=asl_configuration.words["all_"+b]||asl_configuration.words.none;if(asl_configuration.single_cat_select=="1"){var bt=n('<option value="0">'+C+"</option>");y.append(bt)}if(xt(y,b,[]),asl_configuration["select_"+b]){var z=asl_configuration["select_"+b];z=z.split(",");var W=z.length==1?z[0]:z;y.val(W)}asl_engine.select_controls[b]=y.multiselect({enableFiltering:asl_configuration.ddl_search,disableIfEmpty:!0,enableCaseInsensitiveFiltering:asl_configuration.ddl_search,enableFiltering:asl_configuration.ddl_search,templates:{filter:tt(y)},nonSelectedText:asl_configuration.words.select_option,filterPlaceholder:asl_configuration.words.search||"Search",nonSelectedText:C||"None Selected",nSelectedText:asl_configuration.words.selected||"selected",allSelectedText:C||"All selected",includeSelectAllOption:!1,numberDisplayed:1,maxHeight:asl_configuration.ddl_max_height?parseInt(asl_configuration.ddl_max_height):250,onChange:function(V,et){var at=this.$select.val(),Pt=this.$select.data("type");Tt&&Pt=="brand"&&qt(),e.refreshView(),asl_configuration.category_bound&&(e.fitBound(null),console.log("File: panel.js, Line: 486"))}})}Tt&&qt()}if(asl_configuration.show_categories){var U=e._cont.find("#categories_filter");if(U.append('<select id="asl-categories" '+B+' style="width:350px"></select>'),t.$category_ddl=e._cont.find("#asl-categories"),asl_configuration.single_cat_select=="1"){var bt=n('<option value="0">'+asl_configuration.words.all_categories+"</option>");t.$category_ddl.append(bt)}asl_configuration.select_category&&(asl_configuration.select_category=asl_configuration.select_category.split(","));for(var G=0,H=S.length;G<H;G++){var J=S[G],bt=n('<option  value="'+J.id_+'">'+J.getDisplayName()+"</option>");if(bt.data("feature",J),t.$category_ddl.append(bt),asl_configuration.select_category&&jQuery.inArray(J.id_,asl_configuration.select_category)!=-1){var F=t.get("featureFilter");F.add(J),t.set("featureFilter",F)}}if(asl_configuration.select_category){var W=asl_configuration.select_category.length==1?asl_configuration.select_category[0]:asl_configuration.select_category;t.$category_ddl.val(W)}
14var v={},M=function(V){Object.values(V||{}).forEach(function(et){v[String(et.id)]=et,et.children&&et.children.length&&M(et.children)})},j=function(V,et){var at=v[String(V.value)],Pt=at&&/^#[0-9a-f]{6}$/i.test(at.color||"")?at.color:"";return Pt?'<span class="asl-category-color" style="background-color:'+Pt+'" aria-hidden="true"></span>'+et:et},rt=function(V){var et=n("<div>").text(V.text).html();return j(V,'<span class="asl-category-name">'+et+"</span>")};M(asl_categories);var ot={enableFiltering:asl_configuration.ddl_search,includeFilterClearBtn:!1,disableIfEmpty:!0,enableHTML:!0,optionLabel:rt,enableCaseInsensitiveFiltering:asl_configuration.ddl_search,nonSelectedText:asl_configuration.words.select_option,filterPlaceholder:asl_configuration.words.search||"Search",templates:{filter:tt(t.$category_ddl)},nonSelectedText:asl_configuration.words.all_categories||"None Selected",nSelectedText:asl_configuration.words.selected||"selected",allSelectedText:asl_configuration.words.all_categories||"All selected",includeSelectAllOption:!1,numberDisplayed:1,maxHeight:asl_configuration.ddl_max_height?parseInt(asl_configuration.ddl_max_height):250,onChange:function(V,et){var at=t.get("featureFilter");if(asl_configuration.single_cat_select=="1"){for(var Pt in at.array_)at.array_.pop();var wt=V.data("feature");at.add(wt),t.set("featureFilter",at)}else{var wt=V.data("feature");t.toggleFeatureFilter_(wt)}asl_configuration.has_child_categories&&t._make_sub_categories(at.array_),e.halt_fetch=!1,e.refreshView(),asl_configuration.category_bound&&e.fitBound(null),asl_locator.hook_event({type:"category",data:at.array_})}},lt=null,Et=null;if(asl_configuration.image_filter){var lt=function(at){if(e.data_.flat_categories[at.value])if(e.data_.flat_categories[at.value].icon){var Pt=asl_configuration.URL+"svg/"+e.data_.flat_categories[at.value].icon,wt=e.data_.flat_categories[at.value].name;return j(at,'<img src="'+Pt+'" alt="'+wt+'" >'+(asl_configuration.image_filter_title?'<span class="sl-img-filter-title">'+wt+"</span>":""))}else return rt(at);return rt(at)},Et=function(at){if(e.data_.flat_categories[at.value]&&e.data_.flat_categories[at.value].icon){var Pt=asl_configuration.URL+"svg/"+e.data_.flat_categories[at.value].icon;return j(at,"<span>"+e.data_.flat_categories[at.value].name+'</span><img src="'+Pt+'" alt="'+e.data_.flat_categories[at.value].name+'" >')}return rt(at)};ot.enableHTML=!0,ot.optionLabel=asl_configuration.tabs_layout?lt:Et,U.addClass(asl_configuration.tabs_layout?"asl-image-filter":"asl-ddl-image-filter")}if(t.$category_ddl.multiselect(ot),asl_configuration.has_child_categories){var b="c_ids",dt=e._cont.find("#asl-sub_cats-filter");if(dt[0]){var st=n('<select id="asl-sub-categories" '+B+' data-type="'+b+'"></select>');dt.append(st);var gt=Object.assign({},ot);gt.templates={filter:tt(st)},gt.allSelectedText=asl_configuration.words.all_sub_categories,gt.nonSelectedText=asl_configuration.words.all_sub_categories,gt.onChange=function(et,at){e.halt_fetch=!1,e.refreshView(),asl_configuration.category_bound&&e.fitBound(null),asl_locator.hook_event({type:"category",data:t.get("featureFilter").array_})},asl_configuration.filter_ddl?asl_configuration.filter_ddl.push(b):asl_configuration.filter_ddl=[b],asl_configuration.image_filter&&(gt.enableHTML=!0,gt.optionLabel=asl_configuration.tabs_layout?lt:Et),asl_engine.controls[b]=st,asl_engine.select_controls[b]=st.multiselect(gt)}if(asl_configuration.select_category&&asl_configuration.select_category.length){var Dt=null;asl_configuration.select_sub_category&&(Dt=asl_configuration.select_sub_category.split(",")),t._make_sub_categories(t.get("featureFilter").array_,Dt)}}}}this.directionsPanel_=e._cont.find("#agile-modal-direction");var Q=this.directionsPanel_.find(".frm-place");Q.val(""),t.dest_coords&&(ft.directionsFrom_=t.dest_coords);var Y=this.directionsPanel_.find(".frm-place")[0],Ct=asl_use_new_place_api(asl_configuration)?["location","formattedAddress"]:["geometry"],ft=this;if(this.input_search=new asl_locator.AddressAPI(Y,{fields:Ct,map:e.getMap(),onSelect:function(V){V&&V.geometry&&V.geometry.location&&(ft.directionsFrom_=V.geometry.location)}}),this.directionsPanel_.find(".directions-to").attr("readonly","readonly"),this.directionsVisible_=!1,this.directionsPanel_.find(".btn-submit").on("click",function(V){return t.dest_coords&&Q.val()==asl_configuration.words.current_location&&(t.directionsFrom_=t.dest_coords||null),t.renderDirections_(),!1}
14),asl_configuration.distance_unit=="KM"?(t.distance_type=ASLUnitSystem.METRIC,t.directionsPanel_.find("#rbtn-km")[0].checked=!0):t.distance_type=ASLUnitSystem.IMPERIAL,t.directionsPanel_.find("input[name=dist-type]").change(function(){t.distance_type=this.value==1?ASLUnitSystem.IMPERIAL:ASLUnitSystem.METRIC}),this.el_.find(".directions-cont .close").on("click",function(){t.hideDirections(),e._cont.find(".count-row").removeClass("hide"),e._cont.find("#filter-options").removeClass("hide")}),this.directionsPanel_.find(".close-directions").on("click",function(){t.hideDirections(),e._cont.find(".count-row").removeClass("hide"),e._cont.find("#filter-options").removeClass("hide")}),asl_configuration.template=="5"){var pt=e._cont.find("#asl-filter-sec-cont");e._cont.find(".asl-filter-popup-tog").on("click",function(V){pt.removeClass("asl-hide")}),pt.find("#asl-filter-sec-close").on("click",function(){pt.addClass("asl-hide")}),pt.find(".asl-collapse-arw").on("click",function(V){var et=n(this);et.parent().toggleClass("asl-collapsed-arw")}),pt.find(".sl-filter-clr-btn").on("click",function(V){e.reset_all()}),e._cont.find(".sl-panel-collapse-btn").on("click",function(){const V=e._cont.find(".sl-panel-cont"),et=e._cont.find(".asl-map");V.hasClass("sl-panel-collapsed")?(V.removeClass("sl-panel-collapsed"),et.removeClass("sl-map-expanded")):(V.addClass("sl-panel-collapsed"),et.addClass("sl-map-expanded"))})}asl_locator.hook_event({type:"init",data:e.data_.stores_})},asl_locator.Panel.prototype.lead_form_modal=function(){if(asl_configuration.wpforms){let o=function(){n(t).removeClass("show"),n(t).hide()};var e=o,t="#asl-lead-form-modal";n(document).on("keydown",function(s){n(t).hasClass("show")&&s.keyCode===27&&o()}),this._cont.find('#asl-lead-form-modal button[data-dismiss="modal"]').on("click",function(s){o()})}},asl_locator.Panel.prototype._make_sub_categories=function(t,e){for(var o=[],s=asl_configuration.words.all_sub_categories,u=0;u<t.length;u++){var p=asl_categories[t[u].id_],m=p&&p.children?p.children:[];m&&Array.isArray(m)&&m.forEach(function(L,S){var N=!1;e&&e.length&&e.indexOf(L.id)!=-1&&(N=!0),o.push({label:L.name,title:L.name,value:parseInt(L.id),selected:N,ordr:parseInt(L.ordr)})})}o=asl_configuration.cat_sort=="name_"?asl_engine.helper.sortBy(o,"title",!0):asl_engine.helper.sortBy(o,"ordr"),o.length&&asl_configuration.single_cat_select=="1"&&o.unshift({label:s,title:s,value:""});var h=asl_engine.select_controls&&asl_engine.select_controls.c_ids;h&&typeof h.multiselect=="function"&&h.multiselect("dataprovider",o),asl_configuration.template=="5"&&(o.length>0?this._cont.find(".asl-ddl-filter-sub-cats").removeClass("d-none"):this._cont.find(".asl-ddl-filter-sub-cats").addClass("d-none"))},asl_locator.Panel.prototype.address_dropdowns=function(t,e){this.address_object=t,this.address_ddls={},asl_view.address_values={},asl_view.have_countries=e;var o=!0,s=Object.keys(t),u=[],p=[];if(asl_view.have_countries)var m=this._make_dropdown(s,"country","countries");else u=s,u&&u.length==1&&(o=!1);if(o)var h=this._make_dropdown(u,"state","states");else{var L=Object.keys(t);p=t[L[0]]}var S=this._make_dropdown(p,"city","cities")},asl_locator.Panel.prototype._to_multi_data=function(t,e){var o=[],s=asl_configuration.words["ph_"+e]||"All "+e;return o.push({label:s,title:s,value:""}),t&&Array.isArray(t)&&(t.sort(function(u,p){return u.localeCompare(p)}),t.forEach(function(u,p){var m=asl_engine.helper.html_entites(u);o.push({label:m,title:m,value:u})})),o},asl_locator.Panel.prototype._make_dropdown=function(t,e,o){var s=this._cont.find(".asl-advance-filters > div:first-child");t||(t=[]);var u=asl_configuration.words["label_"+e]||e,p=asl_configuration.words["ph_"+o]||"All "+o,m=(asl_configuration.words.search||"Search")+" "+u,h="sl-addr-ddl-"+e+"-search",L=n('<li class="multiselect-item filter"><div class="input-group"><span class="input-group-addon"><i class="icon-search-2"></i></span></div></li>');L.find(".input-group").append(n("<label></label>").attr("for",h).addClass("sl-visually-hidden").text(m)).append(n('<input type="text" class="form-control multiselect-search">').attr("id",h));var S=n('<select id="sl-addr-ddl-'+e+'" data-type="'+e+'"></select>'),N=(asl_configuration.template=="4"?"":"pol-lg-4 ")+"pol-md-6 pol-sm-12 asl-ddl-filters";asl_configuration.template=="1"?N="sl-form-group asl-ddl-filters":asl_configuration.template=="5"&&(N="asl-tabs-ddl asl-d
14dl-filters",s=this._cont.find(".asl-advance-filters .sl-filter-scrol-panel")),N+=" sl-ddl-"+e;var B=n('<div class="'+N+'"><div class="asl-filter-cntrl"><label for="sl-addr-ddl-'+e+'" class="asl-cntrl-lbl">'+u+'</label><div class="sl-dropdown-cont"></div></div></div>');return B.find(".sl-dropdown-cont").append(S),s.append(B),S.multiselect({enableFiltering:asl_configuration.ddl_search,disableIfEmpty:!0,filterPlaceholder:asl_configuration.words.search||"Search",templates:{filter:L.prop("outerHTML")},enableCaseInsensitiveFiltering:!0,nonSelectedText:asl_configuration.words.select_option,nonSelectedText:p||"Select",includeSelectAllOption:!1,numberDisplayed:1,maxHeight:asl_configuration.ddl_max_height?parseInt(asl_configuration.ddl_max_height):250,onChange:this.address_selected}),this.address_ddls[e]=S,t.length?S.multiselect("dataprovider",this._to_multi_data(t,o)):S.multiselect("disable"),S},asl_locator.Panel.prototype.address_selected=function(t,e){var o=this.$select.val(),s=this.$select.data("type"),u=asl_view._panel,p=asl_view;if(asl_locator.hook_event({type:"addr_ddl_event",data:{type:s,value:o}}),s=="country"){if(p.address_values.country=p.address_values.state=p.address_values.city=null,o!=""){var m=Object.keys(u.address_object[o]);u.address_ddls.state.multiselect("dataprovider",u._to_multi_data(m,"states")),u.address_ddls.state.multiselect("enable"),p.address_values.country=o,m&&m.length==1&&m[0]==""&&(s="state",o="")}else u.address_ddls.state.multiselect("dataprovider",[]),u.address_ddls.state.multiselect("disable");u.address_ddls.city.multiselect("dataprovider",[]),u.address_ddls.city.multiselect("disable")}if(s=="state"){var h=p.have_countries?u.address_object[p.address_values.country][o]:u.address_object[o];u.address_ddls.city.multiselect("dataprovider",u._to_multi_data(h,"cities")),u.address_ddls.city.multiselect(h&&h.length?"enable":"disable"),p.address_values.state=o,p.address_values.city=null}s=="city"&&(p.address_values.city=o||null),asl_view.refreshView(),asl_view.fitBound()},asl_locator.Panel.prototype.toggleFeatureFilter_=function(t){var e=this.get("featureFilter");e.toggle(t),this.set("featureFilter",e)},asl_locator.geocoder_=asl_locator.getSearchProvider(),asl_locator.Panel.prototype.listenForStoresUpdate_=function(){var t=this,e=this.get("view");this.storesChangedListener_&&ASLEvent.removeListener(this.storesChangedListener_)},asl_locator.Panel.prototype.searchPosition=function(t){var e=this,o={address:t,bounds:this.get("view").getMap().getBounds()};asl_locator.geocoder_.geocode(o,function(s,u){u==="OK"&&ASLEvent.trigger(e,"geocode",s[0])})},asl_locator.Panel.prototype.setView=function(t){this.set("view",t)},asl_locator.Panel.prototype.view_changed=function(){var t=this,e=this.get("view");this.bindTo("selectedStore",e),this.geolocationListener_&&ASLEvent.removeListener(this.geolocationListener_),this.zoomListener_&&ASLEvent.removeListener(this.zoomListener_),this.idleListener_&&ASLEvent.removeListener(this.idleListener_);var o=e.getMap().getCenter(),s=function(){t.listenForStoresUpdate_()};this.geolocationListener_=ASLEvent.addListener(e,"load",s),this.zoomListener_=ASLEvent.addListener(e.getMap(),"zoom_changed",s),this.idleListener_=ASLEvent.addListener(e.getMap(),"idle",function(){return t.idle_(e.getMap())}),s(),this.bindTo("featureFilter",e),this.autoComplete_&&this.autoComplete_.bindTo("bounds",e.getMap())},asl_locator.Panel.prototype.getSearchCoordinates=function(t){var e=asl_configuration.search_coordinates;if(!e||typeof e!="object"||!t)return null;var o=n.trim(String(t)).toLowerCase(),s=e[o];return!s||isNaN(s.lat)||isNaN(s.lng)?null:new ASLLatLng(parseFloat(s.lat),parseFloat(s.lng))},asl_locator.Panel.prototype.geoCoder=function(t,m,o){var s=this,u=s.get("view"),p=s.addressAPI_||asl_locator.getSearchProvider(),m=m||function(L,S){S=="OK"?(L.search_text=t.value,u.bbox=L[0].geometry&&L[0].geometry.viewport?asl_normalize_bounds(L[0].geometry.viewport):null,asl_locator.hook_event({type:"before_search",data:L}),u.measure_distance(L[0].geometry.location,!0,null,L),asl_locator.hook_event({type:"search",data:L}),asl_configuration.analytics&&L[0]&&(L[0].analytics_source=asl_locator.resolveSearchProvider()+"_geocode",asl_locator.save_analytics(L[0])),asl_configuration.load_all=="2"&&u._cont.find(".asl-reload-map").trigger("click"),n(t).next().removeClass("hide")):s.handleGeocodeFailure(S)};do_geocoding=function(L){var S=L?s.getSearchCoordinates(L):null;if(S){m([{formatted_address:L,geometry:{location:S,viewport:null}}],"OK");return}if(asl_configuration.no_geocode!="1"&&(s.geo_modal&&s.hideGeoModal(),L)){var N={address:L};if(N.componentRestrictions={},asl_configuration.country_restrict){var B=asl_configuration.country_restrict.toLowerCase();B=B.split(","),N.componentRestrictions.country=B[0]}if(asl_configuration.region_search_bound)try{var tt=asl_configuration.region_search_bound.split(",").map(parseFloat);if(tt.length===4){var k=new ASLLatLng(tt[0],tt[1]),nt=new ASLLatLng(tt[2],tt[3]);N.bounds=new ASLLatLngBounds(k,nt)}}catch(I){console.warn("Invalid region_search_bound format",I)}u.data_.all_states&&(N.componentRestrictions.administrativeArea=u.data_.all_states.join("|")),p.geocode(N,m)}},n(t).on("click",function(L){t.select()});var h=asl_configuration["default-addr"];t&&h&&window.setTimeout(function(){if(asl_configuration.search_type=="2"){if(asl_view.data_&&asl_view.data_.ds_items){var L=asl_view.data_.ds_items.find(function(S){return S.title===h});L?(n(t).val(h),n(t).trigger("typeahead:selected",L)):asl_configuration.no_geocode=="1"?(n(t).val(h),n(t).trigger("typeahead:selected",{type:"title",title:h})):do_geocoding(asl_configuration["default-addr"])}}else asl_configuration.req_coords?do_geocoding(asl_configuration["default-addr"]):(s.get("view").measure_distance(new ASLLatLng(
14asl_configuration.default_lat,asl_configuration.default_lng),!0,null,null),asl_configuration.load_all=="2"&&n(".asl-reload-map").trigger("click"));n(t).next().removeClass("hide")},800),!o&&(n(t).on("keyup",function(L){if(L.keyCode==13){var S=n.trim(this.value);do_geocoding(S)}}),u._cont.find(".asl-search-event").on("click",function(L){var S=n.trim(t.value);S&&do_geocoding(S)}))},asl_locator.Panel.prototype.handleAddressPlace_=function(t,e){if(t){var o=this.getSearchCoordinates(e.value);if(o&&(t.geometry=t.geometry||{},t.geometry.location=o,t.geometry.viewport=null),!(!t.geometry||!t.geometry.location)){var s=this.get("view");asl_configuration.analytics&&(t.formatted_address||(t.formatted_address=e.value),t.analytics_source=(t.provider||asl_locator.resolveSearchProvider())+"_place",asl_locator.save_analytics(t)),s.bbox=asl_normalize_bounds(t.geometry.viewport),asl_locator.hook_event({type:"before_search",data:t}),s.measure_distance(t.geometry.location,!0,null,t),t.search_text=e.value,asl_locator.hook_event({type:"search",data:t}),n(e).next().removeClass("hide"),asl_configuration.load_all=="2"&&s._cont.find(".asl-reload-map").trigger("click")}}},asl_locator.Panel.prototype.initAutocomplete_=function(t){var e=this;if(!asl_configuration.geocoding_only&&asl_locator.resolveSearchProvider()!=="disabled"){var o=asl_use_new_place_api(asl_configuration),s={};!o&&asl_configuration.google_search_type&&(s.types=asl_configuration.google_search_type=="cities"||asl_configuration.google_search_type=="regions"?["("+asl_configuration.google_search_type+")"]:[asl_configuration.google_search_type]);var u=o?["location","formattedAddress","id","types"]:["geometry","place_id","formatted_address","types"];(asl_configuration.filter_address||asl_configuration.analytics)&&u.push(o?"addressComponents":"address_components"),this.addressAPI_=new asl_locator.AddressAPI(t,{googleOptions:s,newGoogleOptions:{},countries:asl_get_country_restrictions(asl_configuration),fields:u,map:this.get("view")?this.get("view").getMap():null,onSelect:function(p){e.handleAddressPlace_(p,t)}}),this.autoComplete_=this.addressAPI_}e.search_control=t,e.geoCoder(t)},asl_locator.Panel.prototype.idle_=function(t){this.center_?t.getBounds().contains(this.center_)||(this.center_=t.getCenter(),this.listenForStoresUpdate_()):this.center_=t.getCenter()},asl_locator.Panel.prototype.hideGeoModal=function(){var t=this._cont.find("#asl-geolocation-agile-modal");t.removeClass("in"),window.setTimeout(function(){t.css("display","none")},300),this.geo_modal=!1},asl_locator.Panel.prototype.hideNoStoresModal=function(){var t=this._cont.find("#no-stores-modal");t.removeClass("in"),window.setTimeout(function(){t.css("display","none")},300)},asl_locator.Panel.prototype.showNoStoresModal=function(){if(asl_configuration.no_stores_modal){var t=this._cont.find("#no-stores-modal");t.css("display","block"),window.setTimeout(function(){t.addClass("in")},300)}},asl_locator.Panel.prototype.handleGeocodeFailure=function(t){if(t=="PROVIDER_NOT_CONFIGURED"){asl_locator.showSearchProviderAlert(this._cont);return}var e=this.get("view");console.log("Geocode was not successful for the following reason: "+t),e&&(e.search_performed=!0),this.geo_modal&&this.hideGeoModal(),this._cont.find(".Num_of_store .count-result").html("0");var o=this._cont.find(".sl-no-found-section");this.storeList_.html(o[0]?o.html():'<div class="asl-overlay-on-item" id="asl-no-item-found"><div class="white"></div><div class="sl-no-item"><p>'+asl_configuration.no_item_text+"</p></div></div>"),asl_locator.hook_event({type:"no_stores",data:{element:this.storeList_}}),this.showNoStoresModal()},asl_locator.Panel.prototype.hideDescModal=function(){var t=this._cont.find("#asl-desc-agile-modal");t.removeClass("in"),window.setTimeout(function(){t.css("display","none")},300),this.isDescModal=!1},asl_locator.Panel.prototype.descriptionModal=function(t){var e=this._cont.find("#asl-desc-agile-modal");e.find(".sl-title").html(t.props_.title);var o="<h5>"+asl_configuration.words.desc_title+"</h5><p>"+t.props_.description+"</p>";t.props_.description_2&&(o+='<br><h5 class="sl-addit-desc">'+asl_configuration.words.add_desc_title+"</h5><p>"+t.props_.description_2+"</p>"),e.find(".sl-desc").html(o),e.css("display","block"),e.addClass("in"),asl_configuration.is_mob&&n("html, body").stop().animate({scrollTop:e.offset().top},900,"swing"),this.isDescModal=!0},asl_locator.Panel.prototype.stores_changed=function(t){var e=this;if(e.isDescModal&&e.hideDescModal(),!!this.get("stores")){var o=this.get("view");if(!(o.showing_direction||!o.display_list)&&!(asl_configuration.accordion&&o.is_updated)){o.is_updated=!0;var s=o.get("stores"),u=this.get("selectedStore");if(asl_configuration.highlight_first&&t){for(var p=[],m=[],h=0;h<s.length;h++)s[h].id_==t.id_?p.push(s[h]):m.push(s[h]);s=p.concat(m)}if(asl_configuration.accordion||this.storeList_.empty(),asl_configuration.template=="2"){var L=s.length?o.total_stores||s.length:0,S=this._cont.find(".sl-cat-header .sl-cat-store-lbl");this._cont.find(".sl-cat-header .sl-cat-count").html(L),S.html(S.data(L==1?"single":"plural")),this._cont.find(".sl-radius-val").html(asl_configuration.radius_range),this._cont.find(".sl-pill-status").toggleClass("sl-pill-inactive",!asl_configuration.show_opened)}if(s.length)this._cont.find(".Num_of_store .count-result").html(o.total_stores||s.length);else{this._cont.find(".Num_of_store .count-result").html("0");
14var N=this._cont.find(".sl-no-found-section");e.storeList_.html(o.search_performed&&N[0]?N.html():'<div class="asl-overlay-on-item" id="asl-no-item-found"><div class="white"></div><div class="sl-no-item"><p>'+(o.search_performed?asl_configuration.no_item_text:asl_configuration.words.perform_search)+"</p></div></div>"),asl_locator.hook_event({type:"no_stores",data:{element:e.storeList_}}),o.search_performed?e.showNoStoresModal():e.hideNoStoresModal()}var B=function(F){var v=n(F.target);if(o.halt_fetch=!0,asl_configuration.accordion&&F.stopPropagation(),asl_configuration.branches&&this.store&&this.store.props_.childs&&this.store.props_.childs.length){F.preventDefault(),o.render_branch_list(this.store);return}if(v.hasClass("asl-lead-cta-btn")){F.preventDefault(),e.lead_event_fn.call(e,this.store);return}if(v.hasClass("sl-btn-custom")){F.preventDefault(),asl_locator.hook_event({type:"custom_btn",data:this.store});return}if(!v.hasClass("sl-stop-action")){if(v.hasClass("s-direction")){F.preventDefault();return}if(v.hasClass("sl-link")){F.preventDefault(),e.descriptionModal(this.store);return}if(v.hasClass("sl-pickup")){F.preventDefault(),asl_locator.hook_event({type:asl_configuration.ship_from?"ship_from":"pickup",data:this.store});return}if(e.isDescModal&&e.hideDescModal(),e.geo_modal&&e.hideGeoModal(),F.target.className=="A"||asl_configuration.disable_list_click){asl_locator.hook_event({type:"highlight",data:this.store});return}if(v.is('a[href^="mailto:"]')?asl_locator.hook_event({type:"asl_email_click",data:this.store}):v.is('a[href^="tel:"]')&&asl_locator.hook_event({type:"asl_phone_click",data:this.store}),v.hasClass("btn-asl")){asl_locator.hook_event({type:"highlight",data:this.store});return}if(asl_configuration.template=="1"){var M=o.get("selectedStore");if(M&&this.store&&M.id_==this.store.id_){o.highlight(null,v);return}}if(o.noRefreshList=!0,o.highlight(this.store,v),asl_configuration.is_mob||asl_configuration.template=="4"){if(asl_configuration.disable_scroll)return;var j=n(o.getMap().getDiv()).offset().top,rt=typeof asl_configuration.scroll_offset!="undefined"?parseInt(asl_configuration.scroll_offset,10):0;n("html, body").stop().animate({scrollTop:j+rt},900,"swing")}}};if(this.storeList_.off(".aslStoreItems"),this.storeList_.on("click.aslStoreItems",".sl-item .s-direction",function(F){F.preventDefault(),F.stopImmediatePropagation();var v=this.closest(".sl-item"),M=v&&v.store;M&&(e.directionsTo_=M,e.showDirections(M))}),this.storeList_.on("click.aslStoreItems",".sl-item .sl-show-branches",function(F){F.preventDefault(),F.stopImmediatePropagation();var v=this.closest(".sl-item"),M=v&&v.store;M&&o.render_branch_list(M)}),this.storeList_.on(asl_configuration.list_event+".aslStoreItems",".sl-item",function(F){B.call(this,F)}),this.storeList_.on("keyup.aslStoreItems",".sl-item",function(F){if(F.key=="Enter")B.call(this,F);else if(F.key=="Tab")o.get("selectedStore")&&o.highlight(null);else if(F.key=="d"||F.key=="D"){var v=this.store;if(!v)return;e.directionsTo_=v,e.showDirections(v)}}),(asl_configuration.hover_center||asl_configuration.do_bounce)&&(this.storeList_.on("mouseenter.aslStoreItems",".sl-item",function(){var F=this.store;F&&(asl_configuration.hover_center&&(o.panTo(F),asl_configuration.zoom_li&&asl_map.setZoom(parseInt(asl_configuration.zoom_li))),asl_configuration.do_bounce&&o.doBounce(F,!0))}),asl_configuration.do_bounce&&this.storeList_.on("mouseleave.aslStoreItems",".sl-item",function(){var F=this.store;F&&o.doBounce(F,!1)})),asl_configuration.accordion){var tt=this.get("view").data_,k=tt.stateCities,nt=this.storeList_,I="";if(asl_configuration.category_accordion?(I=tt.generateHTMLCategories(),nt.attr("id","p-catlist")):tt.countries?(I=tt.generateHTMLCountriesStates(tt.stateCities),nt.attr("id","p-countlist")):I=tt.generateHTMLStates(tt.stateCities),nt.html(I),e._cont.find(".
14item-state > a span:empty").each(function(F){var v=n(this).parent().next().find("li.item-state");v.appendTo(v.parent().parent().parent().parent()),n(this).parent().remove()}),nt.children().length==1){var G=nt.children().first(),H=G.find(">div>ul>li");if(H.length){var J=nt.attr("id");H.appendTo(nt),H.children("a.colisiond").each(function(){J?n(this).attr("data-parent","#"+J):n(this).removeAttr("data-parent")}),G.remove()}}}for(var Lt=asl_configuration.branches=="2",bt=asl_configuration.scroll_field,Ot=null,Tt=new Map,mt=function(F,v){var M=F&&F.jquery?F[0]:F;if(!(!M||!v)){var j=Tt.get(M);j||(j=document.createDocumentFragment(),Tt.set(M,j)),v.jquery?v.each(function(){j.appendChild(this)}):j.appendChild(v)}},xt=0,qt=s.length;xt<qt;xt++){var g=s[xt].getInfoPanelItem();g.store=s[xt];var b=s[xt];if(Lt){let F=b.props_;if(o.branch_view){if(!F.branch)continue}else if(F.branch)continue}if(u&&s[xt].id_==u.id_?n(g).addClass("highlighted"):n(g).removeClass("highlighted"),asl_configuration.category_accordion)if(s[xt].props_.c_ids.length){var y="#sl-cat-"+s[xt].props_.c_ids[0];mt(n(y),g);for(var C=1;C<s[xt].props_.c_ids.length;C++){var y="#sl-cat-"+s[xt].props_.c_ids[C],z=g.cloneNode(!0);z.store=g.store,mt(n(y),z)}}else mt(e.storeList_,g);else if(asl_configuration.accordion){var y="#city-list-"+(s[xt].props_.state.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase()+"-"+s[xt].props_.city.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase());mt(n(y),g)}else{var W=s[xt].props_[bt];if(bt&&W!==Ot){Ot=W;var U=e.createScrollLabel(W,bt);mt(e.storeList_,U)}mt(e.storeList_,g)}}Tt.forEach(function(F,v){v.appendChild(F)}),asl_configuration.category_accordion&&e._cont.find("li.item-state").off("click.aslcat").on("click.aslcat",function(F){var v=n(this),M=v.data("id"),j=v.children(".colision"),rt=v.parents("li.item-state").children(".colision"),ot=rt;if(j.length&&(ot=ot.add(j)),asl_view._panel.storeList_.find(".colision.show").not(ot).colision("hide"),asl_view.categoryClearAll(),M){var lt=!j.length||!j.hasClass("show");o.categoryAccFilter(String(M),lt)}}),e.mainPanel.scrollTop()>0&&e.mainPanel.stop().animate({scrollTop:0},100,"swing")}}},asl_locator.Panel.prototype.createScrollLabel=function(t,e){var o=document.createElement("li");o.className="sl-store-scroll-lbl";var s=this.get("view"),u=String(t).trim(),p=e+"::"+u,m=e+"::"+String(t),h=s&&s.scrollTargetIdMap,L=h&&(h[p]||h[m])||"scroll-"+d(u,e);o.id=L;var S=document.createElement("span");S.className="sl-scroll-divider",S.setAttribute("aria-hidden","true");var N=document.createElement("span");N.className="sl-scroll-name",N.textContent=t;var B=document.createElement("span");return B.className="sl-scroll-divider",B.setAttribute("aria-hidden","true"),o.appendChild(S),o.appendChild(N),o.appendChild(B),o.setAttribute("data-id",t),o.setAttribute("data-type",e),o.setAttribute(`data-${e}`,t),o},asl_locator.Panel.prototype.lead_event_fn=function(t){var e="#asl-lead-form-modal",o=this._cont.find(e);if(t)if(t=t.props_,o.find(".asl_store_id input")[0])o.find(".asl_store_id input").val(t.id);else{var s=o.find("label").filter(function(){return n(this).text().trim()==="asl_store_id"}).first();if(s.length){var u=s.attr("for");u&&o.find("#"+u).val(t.id)}}asl_locator.hook_event({type:"lead_event",data:{store:t}}),o.toggleClass("show"),o.css("display","block")},asl_locator.Panel.prototype.selectedStore_changed=function(){var t=this,e=this.get("selectedStore"),o=t.get("view"),s=n(".highlighted",this.storeList_),u=!1,p=o.marker_clicked;if(o.marker_clicked=!1,asl_configuration.template=="1"&&(s[0]&&e&&s.data("id")==e.id_&&(u=!0),u||s.find(".sl-addr-sec").slideUp()),s.removeClass("highlighted"),!asl_configuration.adv_mkr&&o.active_marker&&o.active_marker.m&&(o.active_marker.m.setIcon(o.active_marker.picon),o.active_marker.m=null),!!e){var m=e.getMarker();o.active_marker&&(o.active_marker.picon=m.getIcon(),o.active_marker.m=m,m.setIcon(o.active_marker.icon)),this.directionsTo_=e;var h=this.storeList_.find('li.sl-item[data-id="'+e.id_+'"]');if(h.length>1&&(h=h.eq(0)),h&&(asl_configuration.template=="1"&&!h.hasClass("highlighted")&&(u||h.find(".sl-addr-sec").slideDown()),h.addClass("highlighted"),asl_configuration.accordion&&p)){var L=t._cont.find(".asl-panel-inner").find(".colision.in"),S=h.parentsUntil(".asl-panel-inner","div.colision");if(L.length&&L[L.length-1].id!=S[0].id&&L.colision("hide"),S){t.accordion_showing=h;for(var N=S.length-1;N>=0;N--)n(S[N]).colision("show"),window.setTimeout(function(){var Lt=t.accordion_showing.position().top;t.mainPanel.animate({scrollTop:Lt},"fast")},800)}}this.settings_.directions&&this.directionsPanel_.find(".directions-to").val(e.getDetails().title);var B=t.get("view").getInfoWindow().getContent(),tt=n(B),k=tt.find(".asl-buttons"),nt=n("<a/>").text(asl_configuration.words.direction).attr("href","javascript:void(0)").attr("title",asl_configuration.words.direction_title||"link to Google Maps").addClass("action").addClass("directions"),I=n("<a/>").text(asl_configuration.words.zoom).attr("href","javascript:void(0)").addClass("action").addClass("zoomhere"),G=e.props_.link;if(nt.on("click",function(){return t.showDirections(),!1}),I.on("click",function(){t.get("view").getMap().setOptions({center:e.getLocation(),zoom:asl_map.getZoom()+1})}),k.append(nt).append(I),asl_configuration.pickup||asl_configuration.ship_from){var H=n("<a/>").text(asl_configuration.ship_from?asl_configuration.words.ship_from:asl_configuration.words.pickup).addClass("action").addClass("sl-pickup");k.append(H),H.on("click",function(Lt){asl_locator.hook_event({type:asl_configuration.ship_from?"ship_from":"pickup",data:e})})}k.find(".asl-lead-cta-btn").on("click",function(Lt){Lt.preventDefault(),t.lead_event_fn.call(t,e)}),k.find(".sl-btn-custom").on("click",function(Lt){Lt.preventDefault(),asl_locator.hook_event({type:"custom_btn",data:e})});var J=n("<a/>").text(asl_configuration.words.detail).addClass("action").addClass("a-website");window.asl_website_click?(J.on("click",function(){asl_website_click(e.props_,G)}),k.append(J)):G&&(k.append(J),J.attr("href",decodeURIComponent(G)),J.attr("target",asl_configuration.target_blank)),asl_configuration.template=="5"&&(nt.html(asl_configuration.words.direction+'<i class="icon-direction"></i>'),J.append('<i class="icon-link-ext"></i>'),I.append('<i class="icon-zoom-in"></i>')),J.off("click.aslTrack").on("click.aslTrack",function(Lt){var bt=n(this).attr("href"),Ot=n(this).attr("target")||"_self";Lt.preventDefault(),asl_locator.hook_event({type:"asl_event_cta",data:e}),bt&&bt!=="#"&&setTimeout(function(){Ot==="_blank"?window.open(bt,Ot):window.location.href=bt},50)}
14),tt.find('a[href^="mailto:"]').off("click.aslTrack").on("click.aslTrack",function(Lt){asl_locator.hook_event({type:"asl_email_click",data:e})}),tt.find('a[href^="tel:"]').off("click.aslTrack").on("click.aslTrack",function(Lt){asl_locator.hook_event({type:"asl_phone_click",data:e})})}},asl_locator.Panel.prototype.hideDirections=function(){this.directionsVisible_=!1,this.directionsPanel_.removeClass("in"),this.el_.find(".directions-cont").addClass("hide"),this.storeList_.fadeIn(),this.directionsRenderer_&&this.directionsRenderer_.setMap(null),asl_configuration.direction_redirect==="3"&&window.ASLRouteAPI&&typeof window.ASLRouteAPI.clearRouteDisplay=="function"&&window.ASLRouteAPI.clearRouteDisplay();var t=this.get("view");t.showing_direction=!1},asl_locator.Panel.prototype.showDirections=function(t){var e=t||this.get("selectedStore");if(e){if(asl_locator.hook_event({type:"direction",data:e.props_}),asl_locator.isMapLibre()||asl_configuration.is_mob&&asl_configuration.direction_redirect=="1"||asl_configuration.direction_redirect=="2"){var o=asl_configuration.title_in_dir?[e.props_.title]:[],s="";asl_configuration.template=="1"&&e.props_.street&&o.push(e.props_.street),o.push(e.props_.address),o=o.join(", ").replace(/<\/?[^>]+(>|$)/g," "),o=encodeURIComponent(o);const u=asl_configuration.coords_direction&&e.location_?`${e.location_.lat()},${e.location_.lng()}`:null,p=(asl_configuration.direction_mode||"DRIVING").toUpperCase(),m=["WALKING","TRANSIT","BICYCLING","DRIVING"].indexOf(p)!==-1?p:"DRIVING",h=m==="WALKING"?"walking":m==="TRANSIT"?"transit":m==="BICYCLING"?"bicycling":"driving",L=m==="WALKING"?"w":m==="TRANSIT"?"r":"d",S=u?encodeURIComponent(u):o;if(asl_configuration.is_ios&&asl_configuration.native_direction){const B=G=>window.open(G,"_blank","noopener,noreferrer"),tt=`maps://?daddr=${S}&dirflg=${L}`,k=`https://maps.apple.com/?daddr=${S}&dirflg=${L}`,nt=`https://www.google.com/maps/dir/?api=1&destination=${S}&travelmode=${h}`,I=`comgooglemaps://?daddr=${S}&directionsmode=${h}`;if(m==="BICYCLING"){B(I),setTimeout(()=>B(nt),400);return}B(tt),setTimeout(()=>B(k),400);return}const N=`https://www.google.com/maps/dir/?api=1&destination=${S}&travelmode=${h}`;window.open(N);return}this.directionsPanel_.find(".frm-place").val(this.dest_coords?asl_configuration.words.current_location:""),this.directionsPanel_.find(".directions-to").val(e.getDetails().title),this.directionsPanel_.addClass("in"),this.renderDirections_(),(asl_configuration.is_mob||asl_configuration.template=="4")&&n("html, body").stop().animate({scrollTop:n(this.get("view").getMap().getDiv()).offset().top},900,"swing"),this.directionsVisible_=!0}},asl_locator.Panel.prototype.renderDirections_=function(){var t=this;if(!(!this.directionsFrom_||!this.directionsTo_)){this.el_.find("#map-loading").show(),this.el_.find(".directions-cont").removeClass("hide"),this.storeList_.fadeOut(),t.directionsPanel_.removeClass("in");var e=this.el_.find(".rendered-directions").empty(),o="DRIVING";if(asl_configuration.direction_mode){var s=asl_configuration.direction_mode.toUpperCase();["DRIVING","WALKING","BICYCLING","TRANSIT"].indexOf(s)!==-1&&(o=s)}var u=asl_configuration.direction_redirect==="3"&&window.ASLRouteAPI&&typeof window.ASLRouteAPI.initRouteAPI=="function",p=function(){var I=t.get("view");t._cont.find(".count-row").addClass("hide"),t._cont.find("#filter-options").addClass("hide"),I.showing_direction=!0,I.infoWindow_.getVisible()&&I.infoWindow_.close()},m=function(I){return I?typeof I.lat=="function"&&typeof I.lng=="function"?{lat:I.lat(),lng:I.lng()}:typeof I.lat=="number"&&typeof I.lng=="number"?{lat:I.lat,lng:I.lng}:typeof I.latitude=="number"&&typeof I.longitude=="number"?{lat:I.latitude,lng:I.longitude}:null:null},h=function(){if(!t.directionsService_||!t.directionsRenderer_){if(!asl_has_google_maps()||!google.maps.DirectionsService||!google.maps.DirectionsRenderer){tt("Legacy directions are unavailable."),t.el_.find("#map-loading").hide();return}t.directionsService_=new google.maps.DirectionsService,t.directionsRenderer_=new google.maps.DirectionsRenderer({draggable:!0})}t.directionsService_.route({origin:t.directionsFrom_,destination:t.directionsTo_.getLocation(),travelMode:o,unitSystem:t.distance_type},function(I,G){if(t.el_.find("#map-loading").hide(),G!=="OK"){var H=I&&(I.error_message||I.errorMessage),J=H&&H.trim()||(G==="REQUEST_DENIED"?"Directions request denied: legacy Directions API not enabled for this project.":"Directions request failed: "+G);tt(J);return}p();var Lt=t.directionsRenderer_;Lt.setPanel(e[0]),Lt.setMap(t.get("view").getMap()),Lt.setDirections(I)}),t.directionsFrom_=null},L=e[0]||null,S=t.get("view").getMap(),N=m(this.directionsFrom_),B=m(this.directionsTo_.getLocation()),tt=function(I){if(L){L.innerHTML="";var G=document.createElement("div");G.className="sl-container";var H=document.createElement("p");H.className="asl-route-error alert alert-danger",H.textContent=I||"Unable to load directions at this time.",G.appendChild(H
14),L.appendChild(G)}};if(u&&L&&S&&N&&B){var k=function(I){I&&console.error("ASLRouteAPI failed.",I);var G=I&&I.message?I.message:"Unable to load directions at this time.";tt(G),t.el_.find("#map-loading").hide()};try{var nt=window.ASLRouteAPI.initRouteAPI({panelElement:L,mapInstance:S,route:{origin:N,destination:B}});nt&&typeof nt.then=="function"?nt.then(function(){p(),t.el_.find("#map-loading").hide(),t.directionsFrom_=null}).catch(k):(p(),t.el_.find("#map-loading").hide(),t.directionsFrom_=null)}catch(I){k(I)}return}if(asl_configuration.direction_redirect==="3"){tt("Route API is unavailable for this request."),t.el_.find("#map-loading").hide();return}h()}},asl_locator.Panel.prototype.featureFilter_changed=function(){this.listenForStoresUpdate_()},asl_locator.PanelOptions=function(){},asl_locator.prototype.locationSearch,asl_locator.PanelOptions.prototype.locationSearchLabel,asl_locator.PanelOptions.prototype.featureFilter,asl_locator.PanelOptions.prototype.directions,asl_locator.PanelOptions.prototype.view})(jQuery),(function($){var charMap={a:/[àáâăÀÁÂĂ]/gi,c:/[çÇ]/gi,s:/[șŞş]/gi,e:/[èéêëÈÉÊË]/gi,t:/[țŢţ]/gi,i:/[ïîîÏÎÍ]/gi,o:/[ôÓÖ]/gi,oe:/[œ]/gi,u:/[üÚÚ]/gi},normalize=function(n){return $.each(charMap,function(a,d){n=n.replace(d,a)}),n},queryTokenizer=function(n){var a=normalize(n);return Bloodhound.tokenizers.whitespace(a)},asl_search={address_ta:null,address_td:null,address_inst:null,title_ta:null,title_td:null,title_inst:null,ds:null,add_prop_search:function(n,a,d,l){n=(n||[]).filter(function(ct){return ct&&String(ct.title==null?"":ct.title).trim().length>0});var w=this,P=this[d+"_td"],K=this[d+"_ta"],q=this[d+"_inst"],D=n&&n[0]&&n[0].value?"value":"title";if(P){P.local=[],P.clear(),P.add(n);return}K=a,P=new Bloodhound({datumTokenizer:function(ct){var kt=[];for(var Rt in ct)ct.hasOwnProperty(Rt)&&typeof ct[Rt]=="string"&&(kt=kt.concat(queryTokenizer(ct[Rt])));return kt},queryTokenizer,local:n,sorter:function(ct,kt){var Rt=K.val().trim().toLowerCase(),Bt=ct.title.toLowerCase()===Rt,Gt=kt.title.toLowerCase()===Rt;return Bt&&!Gt?-1:!Bt&&Gt?1:ct.title.localeCompare(kt.title)}});function ut(ct){if(St(),asl_configuration.no_geocode=="1"){for(var kt=[],Rt=normalize(a.val().trim()),Bt=0;Bt<P.local.length;Bt++)normalize(P.local[Bt].title)===Rt&&kt.push(P.local[Bt]);if(asl_view.prop_filter=null,!kt.length){var Gt={title:a.val(),type:"title"};asl_view.prop_filter=Gt,a.next().removeClass("hide"),asl_view.refreshView(),asl_locator.hook_event({type:"search",data:{search:Gt,stores:[]}}),asl_configuration.analytics&&asl_locator.save_analytics({analytics_source:"database",anal
14ytics_kind:"raw_query",analytics_key:"db:raw_query:"+normalize(Gt.title),analytics_label:Gt.title,result_count:0});return}}if(l&&asl_configuration.search_2_contain){K.typeahead("close"),w.contains_search(a,l);return}K.parent().find(".tt-suggestion.tt-cursor")[0]?K.parent().find(".tt-suggestion.tt-cursor").trigger("click"):K.parent().find(".tt-suggestion:first-child").trigger("click"),!l&&asl_configuration.search_type=="2"&&!K.parent().find(".tt-suggestion:first-child")[0]&&do_geocoding(a.val())}function St(){asl_view&&asl_view._panel&&asl_view._panel.geo_modal&&asl_view._panel.hideGeoModal()}var It=K.closest(".sl-search-group, .search_filter, .asl-name-search, .Filter_section").find(".asl-search-btn.asl-search-event, .asl-search-event").first();asl_configuration.template=="4"&&!l&&(It=K.parents(".Filter_section").find(".asl-search-event").first()),It[0]&&It.off("click.aslSearchBtn").on("click.aslSearchBtn",function(ct){ct.preventDefault(),ut(ct)}),P.initialize(),q=K.typeahead({hint:!1,highlight:!0,minLength:1},{name:"title",limit:asl_configuration.search_name_limit?parseInt(asl_configuration.search_name_limit):5,displayKey:"title",source:P.ttAdapter(),templates:{empty:function(ct){return'<p class="tt-empty">'+asl_configuration.words.no_search_item+"</p>"}}}),K.on("typeahead:selected",l?this.selected_secondary:this.selected);var vt=asl_locator.add_clear_button(K);K.on("keyup",function(ct){!this.value&&!vt.hasClass("hide")&&vt.trigger("click"),ct.which==13&&K.parent().find(".tt-menu.tt-open").length&&ut(ct)}),l&&vt.off("click").on("click",function(){asl_view.second_filter=null,vt.addClass("hide"),asl_view._panel&&asl_view._panel.hideNoStoresModal&&asl_view._panel.hideNoStoresModal(),K.val(""),asl_view.refreshView(),asl_map.panTo(new ASLLatLng(asl_lat,asl_lng)),asl_map.setZoom(parseInt(asl_configuration.zoom))}),this[d+"_td"]=P,this[d+"_ta"]=K,this[d+"_inst"]=q},contains_search:function(n,a){asl_view&&asl_view._panel&&asl_view._panel.geo_modal&&asl_view._panel.hideGeoModal(),asl_view.second_filter={title:n.val()},n.next().removeClass("hide"),asl_view.refreshView();var d=asl_view.get("stores");asl_view.fitBound(d),asl_locator.hook_event({type:"search",data:{search:asl_view.second_filter,stores:d}})},selected:function(n,a,d){asl_view&&asl_view._panel&&asl_view._panel.geo_modal&&asl_view._panel.hideGeoModal();var l=$(n.target),w=asl_view.get("stores");if(a.type){if(asl_configuration.additional_search){w=[];var P=asl_view.data_.stores_;for(var K in P)P.hasOwnProperty(K)&&P[K].props_.description_2.indexOf(a.title)!=-1&&w.push(P[K]);asl_view._location=null,asl_view.search_text=a.title,asl_locator.hook_event({type:"search",data:{search:a,stores:w}})}else asl_view.prop_filter=a;l.next().removeClass("hide"),asl_view.refreshView();var w=asl_view.get("stores");asl_view.fitBound(w),asl_locator.hook_event({type:"search",data:{search:a,stores:w}}),asl_configuration.analytics&&(a.analytics_source=a.analytics_source||"database",a.analytics_kind=a.analytics_kind||a.type||"raw_query",a.analytics_label=a.analytics_label||a.title||"",a.analytics_key=a.analytics_key||["db",a.analytics_kind,normalize(a.analytics_label)].join(":"),a.result_count=w.length,asl_locator.save_analytics(a));return}},selected_secondary:function(n,a,d){asl_view&&asl_view._panel&&asl_view._panel.geo_modal&&asl_view._panel.hideGeoModal();var l=$(n.target);asl_view.second_filter=a,l.next().removeClass("hide"),asl_view.refreshView();var w=asl_view.get("stores");asl_view.fitBound(w),asl_locator.hook_event({type:"search",data:{search:a,stores:w}})},category_accordion:function(n){if(asl_configuration.category_accordion&&n.id){var a=$('.asl-cont #asl-list li.item-state[data-id="'+n.id+'"]');return a[0]&&(a.children(0).trigger("click"),$("#asl-storelocator #asl-list").animate({scrollTop:a.position().top},"fast")),_input.next().removeClass("hide"),!0}return!1}},map=null,asl_engine={config:{},helper:{}};if(window.asl_engine=asl_engine,!window.asl_configuration)return;asl_configuration.category_accordion=asl_configuration.layout=="2",asl_configuration.accordion=!!(asl_configuration.layout=="1"||asl_configuration.category_accordion),asl_configuration.analytics=asl_configuration.analytics=="1",asl_configuration.sort_by_bound=asl_configuration.sort_by_bound=="1",asl_configuration.distance_slider=asl_configuration.distance_slider=="1",asl_configuration.show_categories=asl_configuration.show_categories!="0",asl_configuration.time_switch=asl_configuration.time_switch!="0",asl_configuration.category_marker=asl_configuration.category_marker!="0",asl_configuration.advance_filter=asl_configuration.advance_filter!="0",asl_configuration.time_24=asl_configuration.time_format=="1",asl_configuration.user_center=asl_configuration.user_center=="1",asl_configuration.distance_unit=asl_configuration.distance_unit=="KM"?asl_configuration.distance_unit:"Miles",asl_configuration.filter_address=asl_configuration.filter_address=="1",asl_configuration.regex=asl_configuration.no_regex?/#|\./ig:/[^a-z0-9\s]/gi;var info_x_offset=parseInt(asl_configuration.info_x_offset,10),info_y_offset=parseInt(asl_configuration.info_y_offset,10);asl_configuration.info_x_offset=isNaN(info_x_offset)?0:info_x_offset,asl_configuration.info_y_offset=isNaN(info_y_offset)?0:info_y_offset,asl_configuration.enter_key=!0,asl_configuration.category_sort=!0,asl_configuration.stores_limit=asl_configuration.stores_limit&&!isNaN(asl_configuration.stores_limit)?parseInt(asl_configuration.stores_limit):null,asl_configuration.radius_cir
14cle=asl_configuration.radius_circle=="1",asl_configuration.marker_height=asl_configuration.marker_height?asl_configuration.marker_height:"43",asl_configuration.and_filter=asl_configuration.and_filter=="1",asl_configuration.category_bound=asl_configuration.category_bound=="1",asl_configuration.fit_bound=asl_configuration.fit_bound=="1",asl_configuration.sort_random=asl_configuration.sort_random=="1",asl_configuration.filter_ddl=asl_configuration.filter_ddl?asl_configuration.filter_ddl.split(","):null,asl_configuration.boundary_box=asl_configuration.distance_control=="2",asl_configuration.store_radius=asl_configuration.store_radius=="1",asl_configuration.marker_title=asl_configuration.marker_title!="0",asl_configuration.hide_logo=asl_configuration.hide_logo=="1",asl_configuration.hide_hours=asl_configuration.hide_hours=="1",asl_configuration.do_bounce=asl_configuration.do_bounce!=="0",asl_configuration.list_event=asl_configuration.mouseover_list==="1"?"mouseover":"click",asl_configuration.pickup=asl_configuration.pickup==="1",asl_configuration.ship_from=asl_configuration.ship_from==="1",asl_configuration.address_ddl=asl_configuration.address_ddl==="1",asl_configuration.tabs_layout=asl_configuration.tabs_layout==="1",asl_configuration.ddl_search=!!asl_configuration.ddl_search,asl_configuration.target_blank=asl_configuration.target_blank=="1"?"_blank":"_self",asl_configuration.cluster=asl_configuration.cluster!="0",asl_configuration.display_list=asl_configuration.display_list=="1",asl_configuration.branches=asl_configuration.branches=="0"?!1:asl_configuration.branches,asl_configuration.closed_label=asl_configuration.closed_label=="1",asl_configuration.adv_mkr=!!asl_configuration.advanced_marker,asl_configuration.search_zoom=parseInt(asl_configuration.search_zoom),asl_configuration.scroll_wheel=asl_configuration.scroll_wheel==1?!0:asl_configuration.scroll_wheel==0?!1:(asl_configuration.scroll_wheel==="default",null),asl_locator.isMapLibre()&&(asl_configuration.advanced_marker=!1,asl_configuration.adv_mkr=!1,asl_configuration.mouseover=!1),asl_configuration.advance_filter||$(".asl-cont").addClass("no-asl-filters"),asl_configuration.display_list||(asl_configuration.sort_by_bound=!1),asl_configuration.template=="2"?(asl_configuration.address_ddl=!1,asl_configuration.filter_ddl=""):asl_configuration.template=="6"&&(asl_configuration.distance_slider=!1,asl_configuration.address_ddl=!1,asl_configuration.time_switch=!1,asl_configuration.filter_ddl="",asl_configuration.load_all=1,(asl_configuration.search_type=="1"||asl_configuration.search_type=="2")&&(asl_configuration.scroll_field="",asl_configuration.sort_by="")),asl_configuration.distance_slider||(asl_configuration.radius_circle=!1),asl_configuration.on_select=!0,asl_configuration["default-addr"]&&(asl_configuration.prompt_location="0"),asl_configuration.search_type=="1"&&asl_configuration.template!="2"&&asl_configuration.search_2&&(asl_configuration.search_type="0"),asl_configuration.sort_random&&asl_configuration.user_center&&(asl_configuration.user_center=!1,console.log("Warning! Sort Random disable the default location marker")),(asl_configuration.search_type=="1"||asl_configuration.search_type=="2")&&(asl_configuration.user_center=!1,asl_configuration.distance_slider=!1),asl_configuration.first_load!="1"&&(asl_configuration.user_center=!1,asl_configuration.load_all="1"),asl_configuration.info_y_offset||(asl_configuration.info_y_offset=-150,asl_configuration.template=="2"&&(asl_configuration.info_y_offset=-150),asl_configuration.infobox_layout=="1"&&(asl_configuration.info_y_offset=-150)),asl_configuration.fixed_radius=asl_configuration.fixed_radius&&!isNaN(asl_configuration.fixed_radius)?parseInt(asl_configuration.fixed_radius):null,asl_configuration.is_mob=_isMobileDevice(),asl_configuration.is_ios=_isIOSDevice(),asl_configuration.is_mob&&(asl_configuration.mobile_zoom&&(asl_configuration.zoom=parseInt(asl_configuration.mobile_zoom)),asl_configuration.mobile_search_zoom&&(asl_configuration.search_zoom=parseInt(asl_configuration.mobile_search_zoom)),asl_configuration.mobile_click_zoom&&(asl_configuration.zoom_li=parseInt(asl_configuration.mobile_click_zoom)),asl_configuration.list_event="click",asl_configuration.mouseover=!1),asl_configuration.max_bound_zoom=asl_configuration.max_bound_zoom?parseInt(asl_configuration.max_bound_zoom):asl_configuration.search_zoom!="0"?asl_configuration.search_zoom:asl_configuration.zoom,asl_configuration.search_type=="3"&&(asl_configuration.search_type="0",asl_configuration.geocoding_only=!0),asl_configuration.full_height&&asl_configuration.is_mob,asl_configuration.is_mob&&asl_configuration.mobile_load_bound&&(asl_configuration.load_all="2",asl_configuration.search_type="0"),asl_configuration.search_type!="0"&&asl_configuration.search_type!="4"&&(console.log("Radius Circle Works with Google Search Only and Distance Control."),asl_configuration.radius_cir
14cle=!1),asl_configuration.additional_search&&(asl_configuration.search_type="2"),asl_configuration.is_mob&&asl_configuration.mobile_stores_limit&&(asl_configuration.stores_limit=asl_configuration.mobile_stores_limit&&!isNaN(asl_configuration.mobile_stores_limit)?parseInt(asl_configuration.mobile_stores_limit):null),asl_configuration.accordion?(asl_configuration.load_all="1",asl_configuration.address_ddl=asl_configuration.sort_by_bound=asl_configuration.filter_address=asl_configuration.advance_filter=!1):asl_configuration.mobile_stores_limit=asl_configuration.mobile_stores_limit?parseInt(asl_configuration.mobile_stores_limit):100,asl_configuration.advance_filter||(asl_configuration.filter_ddl=asl_configuration.address_ddl=asl_configuration.sort_by_bound=asl_configuration.filter_address=!1),asl_configuration.load_all!="1"&&(asl_configuration.cache=asl_configuration.radius_circle=!1,console.log("Radius Circle Works with load all only"));var asl_lat=asl_configuration.default_lat?parseFloat(asl_configuration.default_lat):39.9217698526,asl_lng=asl_configuration.default_lng?parseFloat(asl_configuration.default_lng):-75.5718432,categories={},asl_date=new Date;asl_configuration.default_lat=asl_lat,asl_configuration.default_lng=asl_lng,asl_configuration.show_opened=asl_configuration.show_opened===!0||asl_configuration.show_opened=="1",$("#asl-dist-unit").html(asl_configuration.distance_unit);var COUNT_FORMATS=[{letter:"",limit:1e3},{letter:"K",limit:1e6}];asl_engine.helper.query_parameter=function(n){const a=window.location.search;return new URLSearchParams(a).get(n)},asl_engine.helper.html_entites=function(n){var a=document.createElement("div");return a.innerHTML=n,a.innerText},asl_engine.helper.is_empty=function(n){if(n==null)return!0;if(typeof n!="object"||Array.isArray(n))return!1;for(let a in n)if(n[a]!==null&&n[a]!==void 0)return!1;return!0},asl_engine.helper.locations_count=function(n){var a=asl_configuration.words||{},d=n==1?a.location||"Location":a.locations||"Locations";return n+" "+d},asl_engine.helper.format_count=function(n){var a=1e6;return asl_configuration.distance_value_full?n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):n<a&&n>1e3?(n=1e3*n/a,n=Math.round(n*10)/10,n+"K"):n.toFixed(2)},asl_engine.helper.flattenCategories=function(n){const a={};function d(l,w){if(l.value=[l.id],l.len=0,w&&l.value.push(w.id),a[l.id]=l,l.children.length)for(const P of l.children)d(P,l)}for(const l in n){const w=n[l];d(w,null)}return a},asl_engine.helper.uniqe_merge=function(n,a){var d=new Set(n.concat(a));return Array.from(d)},asl_engine.helper.pluck=function(n,a){for(var d=new Set,l=0;l<a.length;l++)d.add(a[l][n]);var w=[];return d.forEach(function(P){w.push(P)}),w},asl_engine.helper.uniq=function(n,a,d){for(var l=[],w=[],P=0;P<n.length;P++)l[n[P][a]]||(w.push(d?{type:a,title:n[P][a]}:{type:a,title:n[P][a],value:normalize(n[P][a])}),l[n[P][a]]=1);return w},asl_engine.helper.analytics_search_items=function(n,a){for(var d=asl_engine.helper.uniq(n,a),l=0;l<d.length;l++){var w=d[l],P=n.filter(function(ct){return String(ct[a]||"")===String(w.title||"")}),K=[],q=[],D=[],ut=0,St=0,It=0;P.forEach(function(ct){ct.country_code&&K.indexOf(ct.country_code)===-1&&K.push(ct.country_code),ct.country&&q.indexOf(ct.country)===-1&&q.push(ct.country),ct.state&&D.indexOf(ct.state)===-1&&D.push(ct.state),!isNaN(parseFloat(ct.lat))&&!isNaN(parseFloat(ct.lng))&&(ut+=parseFloat(ct.lat),St+=parseFloat(ct.lng),It++)});var vt=[w.title];(a==="city"||a==="postal_code")&&D.length===1&&vt.push(D[0]),a!=="country"&&q.length===1&&vt.push(q[0]),w.analytics_source="database",w.analytics_kind=a==="title"?"store_title":a,w.analytics_label=vt.filter(Boolean).join(", "),w.country_code=K.length===1?K[0]:"",w.latitude=It?ut/It:null,w.longitude=It?St/It:null,w.analytics_key=["db",w.analytics_kind,normalize(w.title||""),normalize(D.length===1?D[0]:""),w.country_code].join(":")}return d},asl_engine.helper.merge=function(n,a){var d={},l;for(l=0;l<n.length;l++)d[n[l]]=!0;for(l=0;l<a.length;l++)d[a[l]]=!0;return Object.keys(d)},asl_engine.helper.asl_leadzero=function(n){return asl_configuration.no_leadzero||n>9?""+n:"0"+n},asl_engine.helper.asl_timeConvert=function(n){if(!n)return 0;var a=$.trim(n).toUpperCase();if(/(1[012]|[0-9]):[0-5][0-9]$/.test(a)){var d=Number(a.match(/^(\d+)/)[1]),l=Number(a.match(/:(\d+)/)[1]);return d+l/100}else if(/(1[012]|[1-9]):[0-5][0-9][ ]?(AM|PM)/.test(a)){var d=Number(a.match(/^(\d+)/)[1]),l=Number(a.match(/:(\d+)/)[1]),w=a.indexOf("PM")!=-1?"PM":"AM";return w=="PM"&&d<12&&(d=d+12),w=="AM"&&d==12&&(d=d-12),d+l/100}else return 0},asl_engine.helper.between=function(n,a,d){return n>a&&n<d},asl_engine.helper.implode=function(n,a){for(var d=[],l=0,w=n.length;l<w;l++)n[l]&&d.push(n[l]);return d.join(a)},asl_engine.helper.toObject_=function(n,a){for(var d={},l=0,w=a.length;l<w;l++)d[n[l]]=a[l];return d},asl_engine.helper.distanceCalc=function(n){var a=6371,d=this.getLocation(),l=asl_locator.toRad_(d.lat()),w=asl_locator.toRad_(d.lng()),P=asl_locator.toRad_(n.lat()),K=asl_locator.toRad_(n.lng()),q=P-l,D=K-w,ut=Math.sin(q/2)*Math.sin(q/2)+Math.cos(l)*Math.cos(P)*Math.sin(D/2)*Math.sin(D/2),St=2*Math.atan2(Math.sqrt(ut),Math.sqrt(1-ut));return a*St},asl_engine.helper.multi_sort=function(n,a,d){n.sort(function(l,w){var P=l[a],K=w[a],q=l[d],D=w[d];return P==K?q<D?-1:q>D?1:0:P<K?-1:1})},asl_engine.helper.sortBy=function(n,a,d){var l=null;return d?asl_configuration.sort_order=="desc"?l=function(w,P){return w[a]&&P[a]?-w[a].localeCompare(P[a]):0}:l=function(w,P){return w[a]&&P[a]?w[a].localeCompare(P[a]):0}:asl_configuration.sort_order=="desc"?l=function(w,P){return parseInt(P[a])-parseInt(w[a]
14)}:l=function(w,P){return parseInt(w[a])-parseInt(P[a])},n.sort(l)},asl_engine.dataSource=function(){this.stores_=[],this.parent_store=null,this.remote_url=ASL_REMOTE.ajax_url},asl_engine.dataSource.prototype.getCountriesStateCities=function(n){for(var a={},d=0;d<n.length;d++)a[n[d].props_.country]||(a[n[d].props_.country]={}),a[n[d].props_.country][n[d].props_.state]||(a[n[d].props_.country][n[d].props_.state]=[]),a[n[d].props_.country][n[d].props_.state].indexOf(n[d].props_.city)==-1&&a[n[d].props_.country][n[d].props_.state].push(n[d].props_.city);return a},asl_engine.dataSource.prototype.getStateCities=function(n){for(var a={},d=0;d<n.length;d++)a[n[d].props_.state]||(a[n[d].props_.state]=[]),a[n[d].props_.state].indexOf(n[d].props_.city)==-1&&a[n[d].props_.state].push(n[d].props_.city);return a},asl_engine.dataSource.prototype.generateHTMLCategories=function(){var n=asl_configuration.cat_sort=="name_"?"name":asl_configuration.cat_sort,a=Object.values(asl_categories);a=n=="ordr"?asl_engine.helper.sortBy(a,"ordr"):asl_engine.helper.sortBy(a,n,!0);var d=function(w){if(!w||!w.length)return[];var P=w.slice();return n=="ordr"?asl_engine.helper.sortBy(P,"ordr"):asl_engine.helper.sortBy(P,n,!0)},l=function(w,P){var K="";if(!w||!w.length)return K;for(var q=0;q<w.length;q++){var D=w[q];if(D){var ut=d(D.children||[]);if(!D.id){ut.length&&(K+=l(ut,P));continue}var St=!!D.len,It=ut.length>0;if(!(!St&&!It)){var vt=D.id,ct="colision"+vt,kt="sl-cat-"+vt;K+='<li data-id="'+vt+'"  class="item-state asl-state-li">                        <a class="colisiond" href="#'+ct+'"  aria-controls="'+ct+'" data-parent="'+P+'" data-toggle="colision"><span>'+D.name+'</span></a>                        <div id="'+ct+'" class="colision" role="tabpanel">                        <ul class="sl-acc-layout" id="'+kt+'">',K+=l(ut,"#"+kt),K+="</ul></div></li>"}}}return K};return l(a,"#p-catlist")},asl_engine.dataSource.prototype.generateHTMLCountriesStates=function(n){var a="",d=Object.keys(n).sort();for(var l in d)if(d.hasOwnProperty(l)){var w=d[l],P=w.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();a+='<li data-id="'+P+'" class="item-state asl-country-li">                <a class="colisiond" href="#colision-'+l+'"  aria-controls="colision-'+l+'" data-parent="#p-countlist" data-toggle="colision"><span>'+w+'</span></a>                <div id="colision-'+l+'" class="colision" role="tabpanel">                <ul id="p-statelist-'+l+'">';var K=Object.keys(n[d[l]]).sort();for(var q in K)if(K.hasOwnProperty(q)){var D=K[q],ut=D.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();a+='<li data-id="'+ut+'"  class="item-state asl-state-li">                    <a class="colisiond" href="#colision'+q+"-"+l+'"  aria-controls="colision'+q+"-"+l+'" data-parent="#p-statelist-'+l+'" data-toggle="colision"><span>'+D+'</span></a>                    <div id="colision'+q+"-"+l+'" class="colision" role="tabpanel">                    <ul id="item-city-'+q+"-"+l+'">';var St=n[d[l]][K[q]].sort();for(var It in St)if(St.hasOwnProperty(It)){var vt=K[q].replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase()+"-"+St[It].replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();a+='<li data-id="'+vt+'" class="item-state"><a class="colisiond" href="#colision'+l+"-"+q+"-"+It+'" data-parent="#item-city-'+q+"-"+l+'" data-toggle="colision"><span>'+St[It]+'</span></a>                    <div class="colision" id="colision'+l+"-"+q+"-"+It+'" role="tabpanel"><div id="city-list-'+vt+'"></div></div></li>'}a+="</ul></div></li>"}a+="</ul></div></li>"}return a},asl_engine.dataSource.prototype.generateHTMLStates=function(n){var a="",d=Object.keys(n).sort();for(var l in d)if(d.hasOwnProperty(l)){var w=d[l],P=w.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();a+='<li data-id="'+P+'"   class="item-state">                  <a class="colisiond" href="#colision'+l+'"  aria-controls="colision'+l+'" data-parent="#p-statelist" data-toggle="colision"><span>'+d[l]+'</span></a>                  <div id="colision'+l+'" class="colision" role="tabpanel">                  <ul id="item-city-'+l+'">';var K=n[d[l]].sort();for(var q in K)if(K.hasOwnProperty(q)){var D=d[l].replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase()+"-"+K[q].replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();a+='<li data-id="'+D+'" class="item-state"><a class="colisiond" href="#colision'+l+"-"+q+'" data-parent="#item-city-'+l+'" data-toggle="colision"><span>'+K[q]+'</span></a>              <div class="colision" id="colision'+l+"-"+q+'" role="tabpanel"><div id="city-list-'+D+'"></div></div></li>'}a+="</ul></div></li>"}return a},asl_engine.dataSource.prototype.sortDistance=function(n,a){a=a.sort(function(d,l){return d.distanceTo(n)-l.distanceTo(n)})},asl_engine.dataSource.prototype.sortRandom=function(n){n=n.sort(function(a,d){return Math.random()-.5})},asl_engine.dataSource.prototype.sortBy=function(n,a){var d=null;if(!(!a||!a.length)){var l=typeof a[0].props_[n]=="number";n=="cat"?d=function(w,P){var K=w.props_.cat,q=P.props_.cat,D=w.props_.distance,ut=P.props_.distance;return K==q?D<ut?-1:D>ut?1:0:K>q?-1:1}:l?d=function(w,P){return w.props_[n]>P.props_[n]?1:P.props_[n]>w.props_[n]?-1:0}:asl_configuration.sort_order=="desc"?d=function(w,P){return w.props_[n].toLowerCase()<P.props_[n].toLowerCase()?1:P.props_[n].toLowerCase()<w.props_[n].toLowerCase()?-1:0}:d=function(w,P){return w.props_[n].toLowerCase()&&P.props_[n].toLowerCase()?w.props_[n].toLowerCase().localeCompare(P.props_[n].toLowerCase(),"is"):0},a.sort(d)}},asl_engine.dataSource.prototype.sortByDesc=function(n,a){a.sort(function(d,l){return d.props_[n]<l.props_[n]?1:l.props_[n]<d.props_[n]?-1:0})},asl_engine.dataSource.prototype.load_kml=function(n){if(!asl_locator.isMapLibre()){var a=asl_configuration.kml_files;for(var d in a)if(a.hasOwnProperty(d))var l=asl_configuration.URL+"kml/"+a[d],w=new google.maps.KmlLayer(l,{preserveViewport:!0,map:n})}};var not_initial_load=!1,asl_view=null,asl_panel=null;asl_engine.dataSource.prototype.fetch_remote_data=function(n,a,d){var l=this,w=$("#asl-storelocator");window.clearTimeout(l.remoteFetchTimer_),l.remoteFetchTimer_=null;var P=(l.fetchGeneration_||0)+1;l.fetchGeneration_=P,l.activeRequest_&&l.activeRequest_.readyState!==4&&l.activeRequest_.abort(),w.find(".asl-overlay").show(),!a&&asl_configuration.reload_params&&(a=asl_configuration.reload_params,asl_configuration.reload_params=null);var K=!1,q={action:"asl_load_stores",nonce:ASL_REMOTE.nonce,asl_lang:asl_configuration.lang,load_all:asl_configuration.load_all,layout:asl_configuration.layout?1:0};if(a&&(q=Object.assign(q,a)),asl_configuration.stores&&(q.stores=asl_configuration.stores,K=!0),asl_configuration.branches&&(q.branches="1"),asl_configuration.load_all!="1"){var D=map.getBounds(),ut=D.getNorthEast(),St=D.getSouthWest
14(),It=D.getCenter();q.lat=It.lat(),q.lng=It.lng(),q.nw=[ut.lat(),St.lng()],q.se=[St.lat(),ut.lng()]}for(var vt=["category","exclude_categories","brand","special","state","city","postal_code","title","country"],ct=0;ct<vt.length;ct++){var kt=vt[ct];asl_configuration[kt]&&(q[kt]=asl_configuration[kt],K=!0)}l.on_call=!0;var Rt=asl_configuration.cache=="1"&&!K?asl_configuration.URL+"locator-data"+(asl_configuration.lang?"-"+asl_configuration.lang:"")+".json?v="+asl_configuration.cache_ver:ASL_REMOTE.ajax_url;l.activeRequest_=$.ajax({url:Rt,data:q,type:asl_configuration.stores?"POST":"GET",dataType:"json",success:function(Bt){if(P===l.fetchGeneration_){delete asl_locator.Store.infoPanelCache_,asl_locator.Store.infoPanelCache_={},l.stores_=l.parseData(Bt);var Gt=w.find("#auto-complete-search,#sl-main-search,.asl-search-address");if(asl_configuration.load_all=="2"&&w.find(".asl-reload-map").find("i").removeClass("animate-spin"),asl_configuration.search_type=="1"||asl_configuration.search_type=="2"){var oe=null,Ut=[];if(asl_configuration.search_type=="1"){oe="title";var t=asl_engine.helper.analytics_search_items(Bt,"title");Ut=Ut.concat(t)}else if(asl_configuration.search_type=="2"){oe="address";var e=asl_engine.helper.analytics_search_items(Bt,"city"),o=asl_engine.helper.analytics_search_items(Bt,"state"),s=asl_engine.helper.analytics_search_items(Bt,"country"),u=asl_engine.helper.analytics_search_items(Bt,"postal_code");if(asl_configuration.search_title){var t=asl_engine.helper.analytics_search_items(Bt,"title");Ut=Ut.concat(t)}if(asl_configuration.db_search_exclude_cities||(Ut=Ut.concat(e)),asl_configuration.db_search_exclude_states||(Ut=Ut.concat(o)),asl_configuration.db_search_exclude_postal||(Ut=Ut.concat(u)),asl_configuration.category_accordion)for(var p in asl_categories)asl_categories.hasOwnProperty(p)&&Ut.push({type:"category",id:asl_categories[p].id,title:asl_categories[p].name});else Ut=Ut.concat(s);if(asl_configuration.additional_search){var m=[];Ut=[];for(var p in Bt)if(Bt.hasOwnProperty(p)){var h=Bt[p].description_2;h?(h=h.split("|").map(function(b){return b.trim()}).filter(function(b){return b.length}),m=asl_engine.helper.uniqe_merge(m,h),Bt[p].description_2=h):Bt[p].description_2=[]}for(var L=0;L<m.length;L++)Ut.push({type:"search_2",title:m[L]})}}asl_configuration["default-addr"]&&(l.ds_items=Ut),asl_search.add_prop_search(Ut,Gt,oe)}else not_initial_load||asl_locator.add_clear_button(Gt);if(asl_configuration.search_2){var S=asl_configuration.search_2=="1"?["title"]:asl_configuration.search_2.split(","),N=w.find(".asl-name-search .asl-search-name"),Ut=[];if(N[0]){for(var B in S){if(!S.hasOwnProperty(B))continue;let b=asl_engine.helper.uniq(Bt,S[B],!0);Ut=Ut.concat(b)}asl_search.add_prop_search(Ut,N,"name",!0)}asl_configuration.search_2=S}asl_configuration.scroll_field&&(asl_configuration.scroll_field=asl_configuration.scroll_field?asl_configuration.scroll_field:"state",l.scroll_data=asl_engine.helper.uniq(Bt,asl_configuration.scroll_field),l.scroll_data=asl_engine.helper.sortBy(l.scroll_data,"value",!0));var tt=l.stores_,k=tt[0]?tt[0].props_.country:null;l.countries=!1;for(var nt=0;nt<tt.length;nt++)if(k!=tt[nt].props_.country){l.countries=!0;break}if((asl_configuration.accordion||asl_configuration.address_ddl)&&(l.stateCities=l.countries?l.getCountriesStateCities(tt):l.getStateCities(tt)),asl_configuration.state_restrict&&(l.all_states=asl_engine.helper.pluck("state",Bt)),!not_initial_load){not_initial_load=!0,asl_view=new asl_locator.View(map,l,{geolocation:!1,container:w,features:l.getDSFeatures()}),asl_panel=new asl_locator.Panel(w.find("#asl-panel")[0],{view:asl_view,container:w}
14),window.asl_view=asl_view,asl_configuration.kml_files&&l.load_kml(map),w.find("#asl-desc-agile-modal").find(".sl-close").on("click",asl_panel.hideDescModal.bind(asl_panel)),w.find("#no-stores-modal").find(".sl-close").on("click",asl_panel.hideNoStoresModal.bind(asl_panel));var I=w.find("#asl-geolocation-agile-modal");if(I.find(".sl-close").on("click",asl_panel.hideGeoModal.bind(asl_panel)),asl_configuration.prompt_location=="3"?asl_view.geolocate_():asl_configuration.prompt_location=="4"?asl_view.geo_service():asl_configuration.prompt_location!="0"&&(I.css("display","block"),window.setTimeout(function(){I.addClass("in")},300),w.find("#asl-btn-geolocation").on("click",function(){asl_view.geolocate_(),I.removeClass("in").css("display","none")}),asl_panel.geo_modal=!0),asl_configuration.prompt_location=="2"){let g=function(y){asl_locator.hook_event({type:"before_search",data:y}),asl_view.measure_distance(y.geometry.location,!0,null,y),I.removeClass("in").css("display","none"),y.search_text=G.val(),asl_locator.hook_event({type:"search",data:y}),asl_view.add_search_text(y.search_text),asl_configuration.analytics&&asl_locator.save_analytics(y)},b=function(){var y=$.trim(G.val());if(y){var C={address:y};if(asl_configuration.country_restrict){var z=asl_configuration.country_restrict.toLowerCase();z=z.split(","),C.componentRestrictions={country:z[0]}}J.geocode(C,Lt)}};var xt=g,qt=b,G=w.find("#asl-current-loc"),H=null,J=asl_locator.getSearchProvider(),Lt=Lt||function(y,C){C=="OK"?(H=y[0],g(H)):asl_panel.handleGeocodeFailure(C)};if(G.on("keyup",function(y){y.keyCode==13&&b()}),w.find("#asl-btn-locate").on("click",function(y){if(H){g(H);return}else b()}),asl_locator.resolveSearchProvider()!=="disabled"){var bt=asl_use_new_place_api(asl_configuration),Ot={};!bt&&asl_configuration.google_search_type&&(Ot.types=["("+asl_configuration.google_search_type+")"]);var Tt=bt?["location","formattedAddress"]:["geometry"];asl_configuration.filter_address&&Tt.push(bt?"addressComponents":"address_components"),new asl_locator.AddressAPI(G[0],{googleOptions:Ot,newGoogleOptions:{},countries:asl_get_country_restrictions(asl_configuration),fields:Tt,map:asl_view.getMap(),onSelect:function(y){H=y,H&&(H.search_text=G.val())}})}}w.find(".asl-geolocate-btn,.asl-geo-event").on("click",function(g){asl_view.geolocate_()}),asl_configuration.address_ddl&&asl_panel.address_dropdowns(l.stateCities,l.countries),asl_configuration.user_center&&asl_view.measure_distance(new ASLLatLng(asl_configuration.default_lat,asl_configuration.default_lng))}if(asl_configuration.load_all!="1"&&asl_view.dest_coords&&asl_view.measure_distance(asl_view.dest_coords,null,!0),asl_view.refreshView(),w.find(".asl-overlay").hide(),n&&map.panTo(n),l.on_call=!1,window.asl_loaded&&typeof window.asl_loaded=="function"&&asl_loaded.call(this),asl_configuration.load_all=="1"){var mt=window.location.hash.replace("#","");mt&&!isNaN(mt)&&window.setTimeout(function(){var g=asl_view.data_.findStore(mt);asl_view.highlight(g)},500)}asl_locator.hook_event({type:"load",data:null}),d&&typeof d=="function"&&d.call(this)}},error:function(Bt,Gt){P===l.fetchGeneration_&&(l.on_call=!1,Gt!=="abort"&&w.find(".asl-overlay").hide())},dataType:"json"}),l.pos=It},asl_engine.dataSource.prototype.schedule_remote_fetch=function(n){var a=this;window.clearTimeout(this.remoteFetchTimer_),this.remoteFetchTimer_=window.setTimeout(function(){a.remoteFetchTimer_=null,a.fetch_remote_data(n)},200)},asl_engine.dataSource.prototype.load_locator=function(){var that=this;function mapControlEnabled(n,a){return n==null||n===""?a:n===!0||n===1||n==="1"||n==="true"}if(!document.getElementById("asl-map-canv"))return!1;var maps_params={center:new ASLLatLng(asl_lat,asl_lng),zoom:parseInt(asl_configuration.zoom),gestureHandling:asl_configuration.gesture_handling||"cooperative",mapTypeId:asl_configuration.map_type};if(asl_configuration.scroll_wheel!==null&&(maps_params.scrollwheel=asl_configuration.scroll_wheel),asl_configuration.advanced_marker&&(maps_params.mapId=asl_configuration.map_id||"asl-maps-id-tag"),maps_params.zoomControl=mapControlEnabled(asl_configuration.zoomcontrol,!0),maps_params.cameraControl
14=mapControlEnabled(asl_configuration.cameracontrol,!1),maps_params.mapTypeControl=mapControlEnabled(asl_configuration.maptypecontrol,!0),maps_params.fullscreenControl=mapControlEnabled(asl_configuration.fullscreencontrol,!0),maps_params.streetViewControl=mapControlEnabled(asl_configuration.streetviewcontrol,!0),maps_params.cameraControl&&(maps_params.zoomControl=!1),asl_configuration.scalecontrol=="false"&&(maps_params.scaleControl=!1),asl_configuration.rotatecontrol=="false"&&(maps_params.rotateControl=!1),maps_params.fullscreenControlOptions={position:ASLControlPosition.RIGHT_CENTER},asl_configuration.position_maptype&&(maps_params.mapTypeControlOptions={position:parseInt(asl_configuration.position_maptype)}),asl_configuration.position_fullscreen&&(maps_params.fullscreenControlOptions={position:parseInt(asl_configuration.position_fullscreen)}),asl_configuration.position_zoom&&(maps_params.zoomControlOptions={position:parseInt(asl_configuration.position_zoom)}),asl_configuration.position_streetview&&(maps_params.streetViewControlOptions={position:parseInt(asl_configuration.position_streetview)}),asl_configuration.maxzoom&&!isNaN(asl_configuration.maxzoom)&&(maps_params.maxZoom=parseInt(asl_configuration.maxzoom)),asl_configuration.minzoom&&!isNaN(asl_configuration.minzoom)&&(maps_params.minZoom=parseInt(asl_configuration.minzoom)),asl_locator.isMapLibre()){var provider_error=asl_locator.get_map_provider_error();if(provider_error)return asl_locator.show_map_error(provider_error),!1;try{map=new asl_locator.MapLibreMap(document.getElementById("asl-map-canv"),maps_params)}catch(n){return asl_locator.show_map_error(n&&n.message?n.message:"The selected map provider could not be loaded."),!1}}else map=new google.maps.Map(document.getElementById("asl-map-canv"),maps_params);if(window.asl_map=map,asl_configuration.reset_button=!0,asl_configuration.reset_button){let n=function(a,d){$reset_btn=$('<span class="asl-reset-map" style="display:none">'+asl_configuration.words.reset_map+"</span>"),a.appendChild($reset_btn[0]),$reset_btn[0].addEventListener("click",function(){asl_view.reset_all(),$reset_btn[0].style.display="none"})};var ASLResetMAP=n,$reset_btn=null,centerControlDiv=document.createElement("div"),centerControl=new n(centerControlDiv,map
14);centerControlDiv.index=1,map.controls[ASLControlPosition.TOP_RIGHT].push(centerControlDiv)}if(!asl_locator.isMapLibre()&&!asl_configuration.advanced_marker&&asl_configuration.map_layout){var map_style=eval("("+asl_configuration.map_layout+")");map.set("styles",map_style)}window._asl_map_customize&&(_asl_map_customize=JSON.parse(_asl_map_customize),asl_configuration.advanced_marker&&(_asl_map_customize.marker_animations=!1),!asl_locator.isMapLibre()&&_asl_map_customize.trafic_layer&&_asl_map_customize.trafic_layer==1&&(trafic_layer=new google.maps.TrafficLayer,trafic_layer.setMap(map)),!asl_locator.isMapLibre()&&_asl_map_customize.bike_layer&&_asl_map_customize.bike_layer==1&&(bike_layer=new google.maps.BicyclingLayer,bike_layer.setMap(map)),!asl_locator.isMapLibre()&&_asl_map_customize.transit_layer&&_asl_map_customize.transit_layer==1&&(transit_layer=new google.maps.TransitLayer,transit_layer.setMap(map)),!asl_locator.isMapLibre()&&_asl_map_customize.drawing&&asl_drawing.loadData(_asl_map_customize.drawing,map));var _features=[];for(var i in asl_categories){var cat=asl_categories[i];cat.id&&cat.name&&that.FEATURES_.add(new asl_locator.Feature(cat.id,cat.name,cat.icon,cat.ordr&&!isNaN(cat.ordr)?parseInt(cat.ordr):0))}if(asl_configuration.load_all=="1")that.fetch_remote_data();else if(asl_configuration.load_all=="2"){let n=function(l,w){$reload_btn=$('<span class="asl-reload-map" display="none"><i class="icon-arrows-cw"></i>'+asl_configuration.words.reload_map+"</span>"),l.appendChild($reload_btn[0]),$reload_btn[0].addEventListener("click",function(){$reload_btn.find("i").addClass("animate-spin"),that.fetch_remote_data(_set_position)})};var ASLReloadMAP=n,$reload_btn=null,_set_position=null,first_loaded=!1,centerControlDiv=document.createElement("div"),centerControl=new n(centerControlDiv,map
14);centerControlDiv.index=1,map.controls[ASLControlPosition.TOP_CENTER].push(centerControlDiv),ASLEvent.addListener(map,"idle",function(){asl_view&&asl_view.halt_fetch&&(_set_position=asl_view.marker_center,asl_view.halt_fetch=!1),$reload_btn[0].style.display="block",first_loaded||(first_loaded=!0,that.fetch_remote_data())})}else ASLEvent.addListener(map,"idle",function(){var n=null;if(asl_view&&asl_view.halt_fetch){n=asl_view.marker_center,asl_view.halt_fetch=!1;return}that.schedule_remote_fetch(n)})},asl_engine.dataSource.prototype.FEATURES_=new asl_locator.FeatureSet,asl_engine.dataSource.prototype.getDSFeatures=function(){return this.FEATURES_},asl_engine.dataSource.prototype.filterBranches=function(n,a,d){for(var l=[],w=0,P;P=n[w];w++)a.indexOf(P.id_)!=-1&&(n[w].props_.branch=!0,n[w].parent_store=d,l.push(n[w]));return l},asl_engine.dataSource.prototype.addChildrenFeatures=function(){for(var n in asl_categories)if(asl_categories.hasOwnProperty(n)&&asl_categories[n].children.length)for(var a=0;a<asl_categories[n].children.length;a++){var d=asl_categories[n].children[a];this.FEATURES_.add(new asl_locator.Feature(d.id,d.name,d.icon,d.ordr&&!isNaN(d.ordr)?parseInt(d.ordr):0))}},asl_engine.dataSource.prototype.parseData=function(n){var a=[],d=asl_date.getHours()+asl_date.getMinutes()/100,D=asl_date.getDay(),l=asl_categories;asl_categories={};var w=Object.keys(l);for(var P in w)typeof l[w[P]]=="object"&&(asl_categories[String(w[P])]=l[w[P]],[w[P]].len=0);var K={1:"mon",2:"tue",3:"wed",4:"thu",5:"fri",6:"sat",0:"sun"},q=["mon","tue","wed","thu","fri","sat","sun"],D=K[D],ut=new Date,St={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},It=asl_configuration.week_hours=="2";function vt(){this.start=null,this.end=null,this.hours=[]}function ct(v,M){if(asl_configuration.time_24){var j=Math.floor(M)%24,rt=getDecimal(M);return asl_engine.helper.asl_leadzero(j)+":"+asl_engine.helper.asl_leadzero(rt)}return String(v).replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm)}function kt(v,M){if(v.status_available=!1,v.status_time="",!!M){for(var j=typeof M=="string"?JSON.parse(M):M,rt=[],ot=new Date(ut.getFullYear(),ut.getMonth(),ut.getDate()),lt=-1;lt<=7;lt++){var Et=new Date(ot.getTime());Et.setDate(ot.getDate()+lt);var dt=K[String(Et.getDay())],st=j[dt];if(!(st=="0"||!st)){if(st=="1"){var gt=new Date(Et.getTime());gt.setDate(gt.getDate()+1),rt.push({start:Et,end:gt,startLabel:ct("12:00 AM",0),endLabel:""});continue}for(var Dt in st)if(st.hasOwnProperty(Dt)){var Q=st[Dt].split(" - "),Y=Q[0],Ct=Q[1],ft=Y!=0?asl_engine.helper.asl_timeConvert(Y):0,pt=Ct!=0?asl_engine.helper.asl_timeConvert(Ct):24,V=new Date(Et.getTime()),et=new Date(Et.getTime());pt==0&&(pt=24),V.setHours(Math.floor(ft),getDecimal(ft),0,0),et.setHours(Math.floor(pt)%24,getDecimal(pt),0,0),(pt==24||pt<=ft)&&et.setDate(et.getDate()+1),rt.push({start:V,end:et,startLabel:ct(Y,ft),endLabel:ct(Ct,pt)})}}}if(rt.sort(function(wt,Wt){return wt.start-Wt.start}),!!rt.length){var at=rt.find(function(wt){return ut>=wt.start&&ut<wt.end});if(at){v.open=!0,v.status_available=!0,v.status_time=at.endLabel;return}var Pt=rt.find(function(wt){return wt.start>ut});v.open=!1,v.status_available=!0,v.status_time=Pt?Pt.startLabel:""}}}function Rt(v){if(v.open_hours){v.open=!1,v.days=[],v.open_hours=JSON.parse(v.open_hours);var M=asl_configuration.days,j=It?{}:[],rt=function(it){var At=v.open_hours[it+"_label"];return typeof At!="string"||(At=$.trim(At),!At)?"":'<span class="asl-day-note">'+asl_engine.helper.html_entites(At)+"</span>"};for(var ot in q){var lt=q[ot],Et=v.open_hours[lt],dt=lt==D,st=rt(lt);if(Et=="1")dt&&(v.open=!0),v.days.push(M[lt]),It||j.push('<span class="asl-lbl-day-hr"><span class="asl-day-lbl">'+M[lt]+':</span><span class="asl-time-hrs">'+asl_configuration.words.opened+st+"</span></span>");else if(Et=="0")dt&&(v.open=!1),asl_configuration.closed_label?It?(j[lt]=[asl_configuration.words.closed],st&&j[lt].push(st)):j.push('<span class="asl-lbl-day-hr"><span class="asl-day-lbl">'+M[lt]+':</span><span class="asl-time-hrs">'+asl_configuration.words.closed+"</span>"+st+"</span>"):st&&(It?j[lt]=[st]:j.push('<span class="asl-lbl-day-hr"><span class="asl-day-lbl">'+M[lt]+':</span><span class="asl-time-hrs">'+st+"</span></span>"));else if(Et){v.days.push(M[lt]);var gt=[];for(var Dt in Et)if(Et.hasOwnProperty(Dt)){var Q=Et[Dt].split(" - "),Y=Q[0],Ct=Q[1],ft=Y!=0?asl_engine.helper.asl_timeConvert(Y):0,pt=Ct!=0?asl_engine.helper.asl_timeConvert(Ct):24;if(pt==0&&(pt=24),!v.open)if(ft<pt)!v.open&&dt&&(v.open=ft&&pt?asl_engine.helper.between(d,ft,pt):!1);else{var V=24-ft+pt,et=new Date;et.setHours(Math.floor(ft)),et.setMinutes(getDecimal(ft)),ut.getDay()!=St[lt]&&et.subDays(1);var at=new Date(et.getTime());at.addHours(V),at.setMinutes(getDecimal(pt)),ut>et&&ut<at&&(v.open=!0)}if(asl_configuration.time_24){ft+=.01,ft=parseFloat(ft).toFixed(2);var Pt=String(ft).split(".");Pt[0]=asl_engine.helper.asl_leadzero(parseInt(Pt[0])),Pt[1]=asl_engine.helper.asl_leadzero(parseInt(Pt[1])-1),Y=Pt.join(":"),pt+=.01,pt=parseFloat(pt).toFixed(2);var wt=String(pt).split(".");wt[0]=asl_engine.helper.asl_leadzero(parseInt(wt[0])),wt[1]=asl_engine.helper.asl_leadzero(parseInt(wt[1])-1),Ct=wt.join(":")}else{var Wt=Y.split(":"),Ht=Ct.split(":");Wt[0]&&(Wt[0]=asl_engine.helper.asl_leadzero(parseInt(Wt[0]))),Y=Wt.join(":"),Ht[0]&&(Ht[0]=asl_engine.helper.asl_leadzero(parseInt(Ht[0]))),Ct=Ht.join(":"),Y=Y.replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm),Ct=Ct.replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm)}gt.push(Y+" - "+Ct)}st&&gt.push(st),It?j[lt]=gt:j.push('<span><span class="asl-day-lbl">'+M[lt]+':</span><span class="asl-time-hrs">'+gt.map(function(it){return"<span>"+it+"</span>"}).join("")+"</span></span>")}else st&&(It?j[lt]=[st]:j.push('<span><span class="asl-day-lbl">'+M[lt]+':</span><span class="asl-time-hrs">'+st+"</span></span>"))}if(It){for(var Kt=[],O=null,T=!1,R=0;R<q.length;R++)!O||T||JSON.stringify(O.hours)!=JSON.stringify(j[q[R]])?j[q[R]]?(O=new vt,O.start=q[R],O.hours=j[q[R]],Kt.push(O),T=!1):T=!0:O.end=q[R];if(Kt.length>0){var yt="";Kt.forEach(function(it){yt+='<span class="asl-group-slots"><span class="asl-day-lbl">'+M[it.start]+(it.end?" - "+M[it.end]:"")+':</span><span class="asl-time-hrs">'+it.hours.map(function(At){return"<span>"+At+"</span>"}).join("")+"</span></span>"})}v.open_hours=yt}else v.open_hours=j.length>0?'<span class="asl-week-hrs">'+j.join("")+"</span>":null;v.days=v.days.join(", ")}else v.open=!0}function Bt(v){if(v.open_hours){v.open=!1,v.open_hours=JSON.parse(v.open_hours);var M=v.open_hours[D],j=v.open_hours[D+"_label"],rt="";if(typeof j=="string"&&(j=$.trim(j),j&&(rt='<span class="asl-day-note">'+asl_engine.helper.html_entites(j)+"</span>")),v.open_hours=null,M=="1")v.open=!0,v.open_hours=rt||null;else if(M=="0")v.open=!1,v.open_hours=rt||null;else if(M){v.open_hours=[];for(var ot in M)if(M.hasOwnProperty(ot)){var lt=M[ot].split(" - "),Et=lt[0],dt=lt[1],st=Et!=0?asl_engine.helper.asl_timeConvert(Et):0,gt=dt!=0?asl_engine.helper.asl_timeConvert(dt):24;if(gt==0&&(gt=24),!v.open)if(st<gt)v.open||(v.open=st&&gt?asl_engine.helper.between(d,st,gt):!1);else{var Dt=24-st+gt,Q=new Date;Q.setHours(Math.floor(st)),Q.setMinutes(getDecimal(st)),ut.getDay()!=St[D]&&Q.subDays(1);var Y=new Date(Q.getTime());Y.addHours(Dt),Y.setMinutes(getDecimal(gt)),ut>Q&&ut<Y&&(v.open=!0)}if(asl_configuration.time_24){st+=.01,st=parseFloat(st).toFixed(2);var Ct=String(st).split(".");Ct[0]=asl_engine.helper.asl_leadzero(parseInt(Ct[0])),Ct[1]=asl_engine.helper.asl_leadzero(parseInt(Ct[1])-1),Et=Ct.join(":"),gt+=.01,gt=parseFloat(gt).toFixed(2);var ft=String(gt).split(".");ft[0]=asl_engine.helper.asl_leadzero(parseInt(ft[0])),ft[1]=asl_engine.helper.asl_leadzero(parseInt(ft[1])-1),dt=ft.join(":")}else{var pt=Et.split(":"),V=dt.split(":");pt[0]&&(pt[0]=asl_engine.helper.asl_leadzero(parseInt(pt[0]))),Et=pt.
14join(":"),V[0]&&(V[0]=asl_engine.helper.asl_leadzero(parseInt(V[0]))),dt=V.join(":"),Et=Et.replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm),dt=dt.replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm)}v.open_hours.push(Et+" - "+dt)}rt&&v.open_hours.push(rt),v.open_hours=v.open_hours.length>0?v.open_hours.join(" <br> "):null}else rt&&(v.open_hours=rt)}else v.open=!0}var Gt=asl_configuration.show_categories||asl_configuration.category_accordion,oe=asl_configuration.query_redirect_url?String(asl_configuration.query_redirect_url).trim():"",Ut=function(v){if(!v)return"";var M=String(v).toLowerCase().trim();return M.normalize&&(M=M.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),M=M.replace(/&/g," and "),M=M.replace(/[^a-z0-9]+/g,"-"),M=M.replace(/^-+|-+$/g,""),M},t=function(v,M){if(!v||!M)return"";var j=v.split("#")[0].split("?")[0],rt=Ut(M);return rt?(j.slice(-1)!=="/"&&(j+="/"),j+rt+"/"):""},e=asl_configuration.slug_link=="1",o=asl_configuration.rewrite_slug+"/",s=!!(asl_configuration.link_type=="1"&&asl_configuration.rewrite_slug),u=asl_configuration.additional_info!="0",p=asl_configuration.additional_info=="2",m=asl_configuration.template=="1",h=Object.keys(asl_attributes)||null,L=asl_configuration.sort_by=="cat",S=L||asl_configuration.template=="0",N=!1;S&&(N=Object.values(asl_categories).some(function(v){return parseInt(v.ordr)>0}));var B=asl_configuration.has_child_categories?asl_engine.helper.flattenCategories(asl_categories):asl_categories;(asl_configuration.image_filter||asl_configuration.category_marker)&&(this.flat_categories=B);for(var tt=0;tt<n.length;tt++){var k=n[tt];if(k.id=parseInt(k.id),k.ordr=!k.ordr||isNaN(k.ordr)?0:parseInt(k.ordr),k.lat=parseFloat(k.lat),k.lng=parseFloat(k.lng),k.logo_id=k.logo_id&&!isNaN(k.logo_id)?parseInt(k.logo_id):k.logo_id,!Number.isFinite(k.lat)||!Number.isFinite(k.lng)||k.lat<-90||k.lat>90||k.lng<-180||k.lng>180){asl_configuration.debug=="1"&&window.console&&console.warn("ASL skipped a store with invalid coordinates.",{id:k.id,lat:k.lat,lng:k.lng});continue}var nt=new ASLLatLng(k.lat,k.lng);k.open_hours=k.open_hours?k.open_hours:null,k.state||(k.state="");var I=asl_engine.helper.implode([k.city,k.state,k.postal_code],", "),G=[k.street,I];m&&G.shift(),k.address=asl_engine.helper.implode(G," <br>");var H=k.categories?k.categories.split(","):[],J=[];if(Gt){var Lt=[],bt=[],Ot=[];for(var Tt in H){var mt=H[Tt].toString();B[mt]?(B[mt].len++,J.push(B[mt]),Lt.push(B[mt].name),bt.push(B[mt].id),Ot.push(B[mt].id),asl_configuration.has_child_categories&&(B[mt].children.length?Ot=asl_engine.helper.uniqe_merge(Ot,asl_engine.helper.pluck("id",B[mt].children)):Ot=asl_engine.helper.uniqe_merge(Ot,B[mt].value))):delete H[Tt]}if(asl_configuration.has_child_categories&&(H=Ot),S){var xt=J.slice();xt.length>1&&N&&xt.sort(function(v,M){return parseInt(M.ordr)-parseInt(v.ordr)}),N?k.cat=xt[0]?parseInt(xt[0].ordr):-1:k.cat=xt[0]?xt[0].name:"z",L&&(J=xt)}k.c_ids=bt,k.c_names=asl_engine.helper.implode(Lt,", "),k.categories=J,k.display_categories=J.filter(function(v){return v&&String(v.name||"").trim()!==""})}if(h)for(var qt in h){var g=h[qt],b=k[g]?k[g].split(","):[];k[g]=b;var y=[];for(var C in b)b.hasOwnProperty(C)&&asl_attributes[g][b[C]]&&y.push(asl_attributes[g][b[C]].name);y.length&&(k["str_"+g]=y.join(", "))}k.city=k.city?String(k.city).trim():"",k.country=k.country?String(k.country).trim():"",k.state||(k.state=""),k.marker_id=k.marker_id?k.marker_id.toString():"";var z=k.open_hours;k.show_store_status=asl_configuration.week_hours=="0",asl_configuration.hide_hours?k.days_str=k.open_hours=null:(asl_configuration.week_hours=="0"?Bt(k):Rt(k),["0","2"].indexOf(String(asl_configuration.template))!==-1&&kt(k,z)),asl_configuration.hide_logo&&(k.path=null),u?k.desc_link=p:k.description=null,e&&(k.link=s?o+k.slug+"/":k.website),k.action_button_display=asl_configuration.template=="0"&&["text","both"].indexOf(asl_configuration.action_button_display)!==-1?asl_configuration.action_button_display:"icons",oe&&(k.city_url=t(oe,k.city),k.state_url=t(oe,k.state));var W=new asl_locator.Store(k.id,nt,H,k);a.push(W)}if(asl_configuration.branches){for(var U=0;U<a.length;
14U++)if(a[U].props_.childs){var F=a[U].props_.childs.split(",");a[U].props_.childs=this.filterBranches(a,F.map(Number),a[U]),a[U].props_.have_childs=!0}}return a};var data_source=new asl_engine.dataSource;data_source.getClosestBranch=function(n){for(var a=n,d=n.props_.distance,l=0;l<n.props_.childs.length;l++)n.props_.childs[l].props_.distance<d&&(d=n.props_.childs[l].props_.distance,a=n.props_.childs[l]);return[d,a]},data_source.getStores=function(n,a,d){for(var l=this,w=[],P=asl_configuration.and_filter?"hasAllCategory":"hasAnyCategory",K=l.parent_store?l.parent_store.props_.childs.concat(l.parent_store):this.stores_,q=0,D;D=K[q];q++)D[P](a)&&w.push(D);d(w)},data_source.setBranchList=function(n){if(!n){this.parent_store&&(this.parent_store.props_.branch=null,this.parent_store.props_.have_childs=!0,this.parent_store.content_=null,asl_locator.Store.infoPanelCache_[this.parent_store.id_]=null),this.parent_store=null;return}this.parent_store=n,this.parent_store.props_.branch=!0,this.parent_store.props_.have_childs=void 0,this.parent_store.content_=null,asl_locator.Store.infoPanelCache_[this.parent_store.id_]=null},data_source.getActiveStoreList=function(){return this.parent_store?this.parent_store.props_.childs:this.stores_},data_source.findStore=function(n){n=parseInt(n);for(var a=0,d;d=this.stores_[a];a++)if(d.id_==n)return d;return null},data_source.allStores=function(){return this.stores_};function getSafariVersion(){const n=navigator.userAgent,a=n.match(/Version\/(\d+\.\d+)/);return!!n.match(/Safari/)&&!n.match(/Chrome/)&&a?parseFloat(a[1]):null}const safariVersion=getSafariVersion();safariVersion&&safariVersion<15.4&&console.warn(`Warning! Older version of Safari detected (Version: ${safariVersion}).`),!asl_locator.isMapLibre()&&asl_configuration.advanced_marker?google.maps.importLibrary("marker").then(function(){data_source.load_locator()}):data_source.load_locator()})(jQuery)}jQuery(function(){asl_store_locator()});

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.