diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt
index 47b3976e..edd858a7 100644
--- a/THIRD_PARTY.txt
+++ b/THIRD_PARTY.txt
@@ -744,7 +744,7 @@ https://cdnjs.cloudflare.com/ajax/libs/hls.js/0.14.17/hls.min.js
https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.5.17/hls.min.js
https://cdnjs.cloudflare.com/ajax/libs/hogan.js/3.0.2/hogan.min.js
https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/3.7.0/instantsearch.production.min.js
-https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/4.74.1/instantsearch.production.min.js
+https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/4.75.3/instantsearch.production.min.js
https://cdnjs.cloudflare.com/ajax/libs/iScroll/5.2.0/iscroll.min.js
https://cdnjs.cloudflare.com/ajax/libs/izimodal/1.6.1/js/iziModal.min.js
https://cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/css/jasny-bootstrap.min.css
diff --git a/modules/internal/targets.js b/modules/internal/targets.js
index 82707b38..7b5faec8 100644
--- a/modules/internal/targets.js
+++ b/modules/internal/targets.js
@@ -234,7 +234,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/instantsearch.css/7.')) return '7.4.5';
if (type.startsWith('/instantsearch.css/8.')) return '8.5.1';
if (type.startsWith('/instantsearch.js/3.')) return '3.7.0';
- if (type.startsWith('/instantsearch.js/4.')) return '4.74.1';
+ if (type.startsWith('/instantsearch.js/4.')) return '4.75.3';
if (type.startsWith('/in-view/0.')) return '0.6.1';
if (type.startsWith('/iScroll/5.')) return '5.2.0';
if (type.startsWith('/izimodal/1.')) return '1.6.1';
diff --git a/pages/updates/updates.html b/pages/updates/updates.html
index be5ff57d..7b2d0073 100644
--- a/pages/updates/updates.html
+++ b/pages/updates/updates.html
@@ -33,6 +33,7 @@
dexie v4.0.8 -> v4.0.9
foundation v6.8.1 -> v6.9.0
hls.js v1.5.15 -> v1.5.17
+ instantsearch.js v4.74.1 -> v4.75.3
diff --git a/resources/instantsearch.js/4.74.1/instantsearch.production.min.jsm b/resources/instantsearch.js/4.74.1/instantsearch.production.min.jsm
deleted file mode 100644
index 562f2bf3..00000000
--- a/resources/instantsearch.js/4.74.1/instantsearch.production.min.jsm
+++ /dev/null
@@ -1,3 +0,0 @@
-/*! InstantSearch.js 4.74.1 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).instantsearch=t()}(this,function(){"use strict";var a=0;function o(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function F(t){for(var e=1;e
e.length)&&(t=e.length);for(var n=0,r=new Array(t);n":">",'"':""","'":"'"},ee=/[&<>"']/g,te=RegExp(ee.source);var ne={"&":"&","<":"<",">":">",""":'"',"'":"'"},re=/&(amp|quot|lt|gt|#39);/g,ie=RegExp(re.source);function ae(e){return e&&ie.test(e)?e.replace(re,function(e){return ne[e]}):e}function se(e){if("object"===W(t=e)&&null!==t&&"[object Object]"===(null===(t=e)?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t))){var t;if(null===Object.getPrototypeOf(e))return 1;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}}var O={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},u={highlightPreTag:"",highlightPostTag:""};function oe(e){return((e=e)&&te.test(e)?e.replace(ee,function(e){return G[e]}):e).replace(new RegExp(O.highlightPreTag,"g"),u.highlightPreTag).replace(new RegExp(O.highlightPostTag,"g"),u.highlightPostTag)}function ce(n){return se(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return F(F({},e),{},E({},t,ce(n[t])))},{}):Array.isArray(n)?n.map(ce):F(F({},n),{},{value:oe(n.value)})}function ue(e){return void 0===e.__escaped&&((e=e.map(function(e){e=g({},(Q(e),e));return e._highlightResult&&(e._highlightResult=ce(e._highlightResult)),e._snippetResult&&(e._snippetResult=ce(e._snippetResult)),e})).__escaped=!0),e}function le(e){var t=u.highlightPreTag,n=u.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}function de(e){var h=e.instantSearchInstance,f=e.helper,m=e.attribute,p=e.widgetType;return function(){for(var e=arguments.length,t=new Array(e),n=0;n= 4.8.0 required."));u=be(n.findAnswers,p),y(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(t){var n=this,e=t.state.query;e?(s=[],o=!0,y(F(F({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!1),r(u(e,l,F(F({},v),{},{nbHits:f,attributesForPrediction:d}))).then(function(e){e&&(g&&0t&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},n.prototype.once=function(e,t){var n;if(ut(t))return n=!1,r.listener=t,this.on(e,r),this;throw TypeError("listener must be a function");function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}},n.prototype.removeListener=function(e,t){var n,r,i,a;if(!ut(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(i=(n=this._events[e]).length,r=-1,n===t||ut(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(lt(n)){for(a=i;0 "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return p(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(e){var t;return this.isHierarchicalFacet(e)&&(t=this.getHierarchicalRefinement(e)[0])?(e=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),t.split(e).map(function(e){return e.trim()})):[]},toString:function(){return JSON.stringify(this,null,2)}};function kt(e){return Array.isArray(e)?e.filter(Boolean):[]}function Ot(e,t){if(Array.isArray(e))for(var n=0;n=i.length)&&"desc"===i[n]?-r:r}return e.index-t.index}),e.map(function(e){return e.value})):[]},At=function(m){return function(e,t){function n(e,s,t){var n,o=e;if(0t.avgOfIndices?1:-1}).reduce(function(e,t){var n=p(r.reduce(function(e,t){return e.concat(t)},[]),function(e){return e.objectID===t.objectID});return n?e.concat(n):e},[])},gt="3.22.5",Yt=pt;function e(e,t,n,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.22.5)"),this.setClient(e);e=n||{};e.index=t,this.state=Mt.make(e),this.recommendState=new wt({params:e.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=r,this._recommendCache={}}function Xt(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Gt(){return this.state.page}ht(e,ct),e.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},e.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},e.prototype.recommend=function(){return this._recommend(),this},e.prototype.getQuery=function(){var e=this.state;return Ct._getHitsSearchParams(e)},e.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,e=Ct._getQueries(n.index,n),r=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(e).then(function(e){return r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),{content:new Jt(n,e.results),state:n,_originalResponse:e}},function(e){throw r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),e});this.client.search(e).then(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(null,new Jt(n,e.results),n)}).catch(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(e,null,n)})},e.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var n=n.getModifiedState(t),t=bt({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:St(Ct._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),r="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(r);var i=this.client.initIndex(n.index);if("function"!=typeof i.findAnswers)throw new Error(r);return i.findAnswers(n.query,e.queryLanguages,t)},e.prototype.searchForFacetValues=function(t,e,n,r){var i,a,s,o="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,c="function"==typeof this.client.initIndex;if(o||c||"function"==typeof this.client.search)return i=this.state.setQueryParameters(r||{}),a=i.isDisjunctiveFacet(t),r=Ct.getSearchForFacetQuery(t,e,n,i),this._currentNbQueries++,s=this,n=o?this.client.searchForFacetValues([{indexName:i.index,params:r}]):c?this.client.initIndex(i.index).searchForFacetValues(r):(delete r.facetName,this.client.search([{type:"facet",facet:t,indexName:i.index,params:r}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:i,facet:t,query:e}),n.then(function(e){return s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits.forEach(function(e){e.escapedValue=Yt(e.value),e.isRefined=a?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),e});throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues")},e.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},e.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},e.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},e.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},e.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},e.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},e.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},e.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},e.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},e.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},e.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},e.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},e.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},e.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},e.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},e.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},e.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},e.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},e.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},e.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},e.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},e.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},e.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},e.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},e.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},e.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},e.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},e.prototype.setCurrentPage=Xt,e.prototype.setPage=Xt,e.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},e.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},e.prototype.setState=function(e){return this._change({state:Mt.make(e),isPageReset:!1}),this},e.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Mt(e),this},e.prototype.hasRefinements=function(e){return!!Rt(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},e.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},e.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},e.prototype.hasTag=function(e){return this.state.isTagRefined(e)},e.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},e.prototype.getIndex=function(){return this.state.index},e.prototype.getCurrentPage=Gt,e.prototype.getPage=Gt,e.prototype.getTags=function(){return this.state.tagRefinements},e.prototype.getRefinements=function(e){var n=[],r=(this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){n.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){n.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){n.push({value:e,type:"disjunctive"})}),this.state.getNumericRefinements(e));return Object.keys(r).forEach(function(e){var t=r[e];n.push({value:t,operator:e,type:"numeric"})}),n},e.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},e.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},e.prototype._search=function(e){var r=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=Ct._getQueries(r.index,r),i.push({state:r,queriesCount:t.length,helper:this}),this.emit("search",{state:r,results:this.lastResults})),this.derivedHelpers.map(function(e){var t=e.getModifiedState(r),n=t.index?Ct._getQueries(t.index,t):[];return i.push({state:t,queriesCount:n.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),n})),t=Array.prototype.concat.apply(t,e),e=this._queryId++;if(this._currentNbQueries++,!t.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,i,e));try{this.client.search(t).then(this._dispatchAlgoliaResponse.bind(this,i,e)).catch(this._dispatchAlgoliaError.bind(this,e))}catch(e){this.emit("error",{error:e})}},e.prototype._recommend=function(){var r=this.state,e=this.recommendState,t=this.getIndex(),i=[{state:e,index:t,helper:this}],a=e.params.map(function(e){return e.$$id}),s=(this.emit("fetch",{recommend:{state:e,results:this.lastRecommendResults}}),this._recommendCache),e=this.derivedHelpers.map(function(e){var t,n=e.getModifiedState(r).index;return n?(t=e.getModifiedRecommendState(new wt),i.push({state:t,index:n,helper:e}),a=Array.prototype.concat.apply(a,t.params.map(function(e){return e.$$id})),e.emit("fetch",{recommend:{state:t,results:e.lastRecommendResults}}),t._buildQueries(n,s)):[]}),t=Array.prototype.concat.apply(this.recommendState._buildQueries(t,s),e);if(0!==t.length)if(0")}function cn(n,r){return function(e){var t,e=e||{},a=e.hit,s=e.matchingPatterns,e=e.transformSearchParameters,e=void 0===e?function(e){return e}:e;if(!a)throw new Error(sn("The `hit` option is required."));if(s)return t=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ce(a,t),i=n.score;return Array.isArray(r)?[].concat(P(e),[r.map(function(e){return on({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(P(e),[on({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),e=F({},e(new v.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:t}))),F(F({},an(n,r)({searchParameters:e})),{},{$$type:"ais.configureRelatedItems"});throw new Error(sn("The `matchingPatterns` option is required."))}}function un(u){var s=1=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,t={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.count&&(t.count=e.count),void 0!==e.exhaustive&&(t.exhaustive=e.exhaustive),t}function bn(c){var n=1 ":t,t=e.rootPath,r=void 0===t?null:t,t=e.showParentLevel,i=void 0===t||t,t=e.limit,a=void 0===t?10:t,t=e.showMore,h=void 0!==t&&t,t=e.showMoreLimit,s=void 0===t?20:t,t=e.sortBy,f=void 0===t?_n:t,t=e.transformItems,m=void 0===t?function(e){return e}:t;if(!l||!Array.isArray(l)||0===l.length)throw new Error(Sn("The `attributes` option expects an array of strings."));if(!0===h&&s<=a)throw new Error(Sn("The `showMoreLimit` option must be greater than `limit`."));var p,g,v=k(l,1)[0],o=function(){};function y(){o()}var b=!1;function R(){return b?s:a}return{$$type:"ais.hierarchicalMenu",init:function(e){var t=e.instantSearchInstance;c(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t,n,r=e.instantSearchInstance;t=e,o=function(){b=!b,n.render(t)},c(F(F({},(n=this).getWidgetRenderState(e)),{},{instantSearchInstance:r}),!1)},dispose:function(e){e=e.state;return n(),e.removeHierarchicalFacet(v).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(e,t){return F(F({},e),{},{hierarchicalMenu:F(F({},e.hierarchicalMenu),{},E({},v,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,n=this,r=e.results,i=e.state,a=e.createURL,s=e.instantSearchInstance,o=e.helper,e=[],c=!1;return p=p||de({instantSearchInstance:s,helper:o,attribute:function(e){e=e.split(d).length-1;return l[e]},widgetType:this.$$type}),g=g||function(e){p("click:internal",e),o.toggleFacetRefinement(v,e).search()},r&&(s=(s=r.getFacetValues(v,{sortBy:f,facetOrdering:f===_n}))&&!Array.isArray(s)&&s.data?s.data:[],t=(i.maxValuesPerFacet||0)>R()?s.length<=R():s.lengthS()),c=v(e.slice(0,S()).map(function(e){var t=e.name,n=e.escapedValue;e.path;return F(F({},j(e,lr)),{},{label:t,value:n})}),{results:i})),{items:c,createURL:h,refine:f,sendEvent:d,canRefine:0="]&&t[">="][0]||"",t=t["<="]&&t["<="][0]||"",e=F(F({},e),{},{numericMenu:F(F({},e.numericMenu),{},E({},p,"".concat(n,":").concat(t)))}),n=p,e.numericMenu&&(":"===e.numericMenu[n]&&delete e.numericMenu[n],0===Object.keys(e.numericMenu).length)&&delete e.numericMenu,e)},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,t=t.numericMenu&&t.numericMenu[p],e=e.setQueryParameters({numericRefinements:F(F({},e.numericRefinements),{},E({},p,{}))});return t?-1===t.indexOf(":")?e.addNumericRefinement(p,"=",Number(t)):(n=(t=k(t.split(":").map(parseFloat),2))[0],t=t[1],n=b(n)?e.addNumericRefinement(p,">=",n):e,b(t)?n.addNumericRefinement(p,"<=",t):n):e},getRenderState:function(e,t){return F(F({},e),{},{numericMenu:F(F({},e.numericMenu),{},E({},p,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,r,n,i=this,a=e.results,s=e.state,o=e.instantSearchInstance,c=e.helper,u=e.createURL,e=(m.refine||(m.refine=function(e){var t=gr(c.state,p,e);m.sendEvent("click:internal",e),c.setState(t).search()}),m.createURL||(m.createURL=function(n){return function(t){return u(function(e){return i.getWidgetUiState(e,{searchParameters:gr(n,p,t),helper:c})})}}),m.sendEvent||(m.sendEvent=(t={instantSearchInstance:o}.instantSearchInstance,function(){1===arguments.length&&t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])})),!a||0===a.nbHits),o=(r=s,g.map(function(e){var t=e.start,n=e.end,e=e.label;return{label:e,value:encodeURI(JSON.stringify({start:t,end:n})),isRefined:pr(r,p,{start:t,end:n,label:e})}})),l=!0,d=function(e,t){var n,r,i,a,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=K(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o);try{for(d.s();!(n=d.n()).done;){var h=n.value;if(h.isRefined&&"{}"!==decodeURI(h.value)){l=!1;break}}}catch(e){d.e(e)}finally{d.f()}return{createURL:m.createURL(s),items:v(o,{results:a}),hasNoResults:e,canRefine:!(e&&l),refine:m.refine,sendEvent:m.sendEvent,widgetParams:f}}};throw new Error(mr("The `items` option expects an array of objects."))}}var mr=l({name:"numeric-menu",connector:!0});function pr(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end?n.start===n.end?vr(r,"=",n.start):vr(r,">=",n.start)&&vr(r,"<=",n.end):void 0!==n.start?vr(r,">=",n.start):void 0!==n.end?vr(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function gr(e,t,n){var n=JSON.parse(decodeURI(n)),r=e.getNumericRefinements(t);if(void 0===n.start&&void 0===n.end)return e.removeNumericRefinement(t);if(pr(e,t,n)||(e=e.removeNumericRefinement(t)),void 0!==n.start&&void 0!==n.end){if(n.start>n.end)throw new Error("option.start should be > to option.end");if(n.start===n.end)return e=vr(r,"=",n.start)?e.removeNumericRefinement(t,"=",n.start):e.addNumericRefinement(t,"=",n.start)}return void 0!==n.start&&(e=(e=vr(r,">=",n.start)?e.removeNumericRefinement(t,">=",n.start):e).addNumericRefinement(t,">=",n.start)),"number"==typeof(e=void 0!==n.end?(e=vr(r,"<=",n.end)?e.removeNumericRefinement(t,"<=",n.end):e).addNumericRefinement(t,"<=",n.end):e).page&&(e.page=0),e}function vr(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function yr(n){var t=1=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),t}(),Rr=l({name:"pagination",connector:!0}),Sr=l({name:"range-input",connector:!0},{name:"range-slider",connector:!0});function _r(e){var t=e.min,n=e.max,e=e.precision,e=Math.pow(10,e);return{min:t&&Math.floor(t*e)/e,max:n&&Math.ceil(n*e)/e}}function wr(n){var r=1=")||[],1)[0],s=k(e.getNumericRefinement(u,"<=")||[],1)[0],o=void 0===n||""===n,c=void 0===r||""===r,n=_r({min:o?void 0:parseFloat(n),max:c?void 0:parseFloat(r),precision:h}),r=n.min,n=n.max,o=b(l)||i!==r?b(l)&&o?l:r:void 0,r=b(d)||t!==n?b(d)&&c?d:n:void 0,c=void 0===o,n=b(i)&&i<=o,c=c||b(o)&&(!b(i)||n),i=void 0===r,n=b(r)&&r<=t,i=i||b(r)&&(!b(t)||n);return(a!==o||s!==r)&&c&&i?(e=e.removeNumericRefinement(u),b(o)&&(e=e.addNumericRefinement(u,">=",o)),(e=b(r)?e.addNumericRefinement(u,"<=",r):e).resetPage()):null};function f(n,r){return function(){var e=k(0=")||[],1)[0],i=k(i.getNumericRefinement(u,"<=")||[],1)[0],[b(s)?s:-1/0,b(i)?i:1/0]),i=f(r,n?a:{min:void 0,max:void 0});return{refine:i,canRefine:a.min!==a.max,format:c,range:a,sendEvent:(t=e,function(){1===arguments.length&&t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}),widgetParams:F(F({},o),{},{precision:h}),start:s}},dispose:function(e){e=e.state;return r(),e.removeDisjunctiveFacet(u).removeNumericRefinement(u)},getWidgetUiState:function(e,t){var t=t.searchParameters.getNumericRefinements(u),n=t[">="],n=void 0===n?[]:n,t=t["<="],t=void 0===t?[]:t;return 0===n.length&&0===t.length?e:F(F({},e),{},{range:F(F({},e.range),{},E({},u,"".concat(n,":").concat(t)))})},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,e=e.addDisjunctiveFacet(u).setQueryParameters({numericRefinements:F(F({},e.numericRefinements),{},E({},u,{}))}),t=(b(l)&&(e=e.addNumericRefinement(u,">=",l)),b(d)&&(e=e.addNumericRefinement(u,"<=",d)),t.range&&t.range[u]);return e=t&&-1!==t.indexOf(":")&&(n=(t=k(t.split(":").map(parseFloat),2))[0],t=t[1],b(n)&&(!b(l)||l=")).addNumericRefinement(u,">=",n)),b(t))&&(!b(d)||tm,d=p&&!w;return{createURL:function(t){return s(function(e){return r.getWidgetUiState(e,{searchParameters:a.resetPage().toggleFacetRefinement(f,t),helper:c})})},items:u,refine:R,searchForItems:o,isFromSearch:!1,canRefine:0="])&&t.length)return e[">="][0]},b=function(e){return function(e,t){v("click:internal",t),e.setState(s(e.state,t)).search()}.bind(null,e)},R=function(e){var n=e.state,r=e.createURL,i=e.getWidgetUiState,a=e.helper;return function(t){return r(function(e){return i(e,{searchParameters:s(n,t),helper:a})})}},{$$type:Ar,init:function(e){var t=e.instantSearchInstance;n(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return F(F({},e),{},{ratingMenu:F(F({},e.ratingMenu),{},E({},S,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var o,c,u,l,t,n=e.helper,r=e.results,i=e.state,a=e.instantSearchInstance,e=e.createURL,s=[],d=(v||(o=(a={instantSearchInstance:a,helper:n,getRefinedStar:function(){return y(n.state)},attribute:S}).instantSearchInstance,c=a.helper,u=a.getRefinedStar,l=a.attribute,v=function(){for(var e,t,n,r,i=arguments.length,a=new Array(i),s=0;s=").concat(e)]},attribute:l}))}),!1),h=0,f=null==r?void 0:r.getFacetValues(S,{});if(r&&f){f.length,t=0,f.forEach(function(e){e=k(e.name.split("."),2)[1];t=Math.max(t,(void 0===e?"":e).length)});for(var m=y(i),p=1;p<_;p+=1)(function(n){var e=m===n,t=(d=d||e,f.filter(function(e){return Number(e.name)>=n&&Number(e.name)<=_}).map(function(e){return e.count}).reduce(function(e,t){return e+t},0));if(h+=t,m&&!e&&0===t)return;var r=P(new Array(Math.floor(+_))).map(function(e,t){return+t=",t):e.setQueryParameters({numericRefinements:F(F({},e.numericRefinements),{},E({},S,{}))})}};throw new Error(Hr("The `attribute` option is required."));function s(e,t){var n=y(e)===Number(t),e=e.resetPage().removeNumericRefinement(S);return n?e:e.addNumericRefinement(S,"<=",_).addNumericRefinement(S,">=",Number(t))}}}var Or=l({name:"related-products",connector:!0}),Lr=l({name:"search-box",connector:!0}),Mr=l({name:"sort-by",connector:!0}),Hr=l({name:"rating-menu",connector:!0}),Ar="ais.ratingMenu";function Wr(r){var e=1 ":t,t=e.rootPath,a=void 0===t?null:t,t=e.transformItems,o=void 0===t?function(e){return e}:t;if(r&&Array.isArray(r)&&0!==r.length)return n=k(r,1)[0],{$$type:"ais.breadcrumb",init:function(e){u(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){u(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){l()},getRenderState:function(e,t){return F(F({},e),{},{breadcrumb:F(F({},e.breadcrumb),{},E({},n,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var n=this,r=e.helper,i=e.createURL,t=e.results,e=e.state;var a,e=t&&0!==e.hierarchicalFacets.length?(e=k(e.hierarchicalFacets,1)[0].name,e=(e=t.getFacetValues(e,{}))&&!Array.isArray(e)&&e.data?e.data:[],o((a=function n(e){return e.reduce(function(e,t){return e=t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),Array.isArray(t.data))?e.concat(n(t.data)):e},[])}(e)).map(function(e,t){return{label:e.label,value:t+1===a.length?null:a[t+1].value}}),{results:t})):[];return d.createURL||(d.createURL=function(t){return i(function(e){return n.getWidgetUiState(e,{searchParameters:c(r.state,t),helper:r})})}),d.refine||(d.refine=function(e){r.setState(c(r.state,e)).search()}),{canRefine:0')).replace(new RegExp(u.highlightPostTag,"g"),"".concat(n,">"))}var vi=t("ReverseHighlight");function yi(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ce(r._highlightResult,t)||{}).value,t=void 0===r?"":r,r=vi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return le(rt(xe(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),"".concat(n,">"))}var bi=t("Snippet");function Ri(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ce(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=bi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return t.replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),"".concat(n,">"))}var Si=t("ReverseSnippet");function _i(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ce(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=Si({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return le(rt(xe(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),"".concat(n,">"))}var wi="_ALGOLIA";function Pi(){var e=wi;if("object"===("undefined"==typeof document?"undefined":W(document))&&"string"==typeof document.cookie)for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+qi[128|63&c]:c<55296||57344<=c?s+=qi[224|c>>12]+qi[128|c>>6&63]+qi[128|63&c]:(o+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(o)),s+=qi[240|c>>18]+qi[128|c>>12&63]+qi[128|c>>6&63]+qi[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Bi(e)){for(var n=[],r=0;r"===t?(r=1,""):t+i[0]:a?t===a?a="":i+=t:'"'===t||"'"===t?a=t:">"===t?(o(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[c][u+1])?(o(),3===r&&(s=s[0]),(s=(r=s)[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return o(),s}(e)),t),arguments,[])).length?t:t[0]}.bind(L);function ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ka(e,t){return e(t={exports:{}},t.exports),t.exports}var Oa=ja(ka(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t.__.length&&t.__.push({__V:ds}),t.__[e]}function ys(e){us=1;var a,t=Ns,n=void 0,s=vs(ss++,2);return s.t=t,s.__c||(s.__=[n?n(e):Ns(void 0,e),function(e){var t=(s.__N||s.__)[0],e=s.t(t,e);t!==e&&(s.__N=[e,s.__[1]],s.__c.setState({}))}],(s.__c=m).u)||(m.u=!0,a=m.shouldComponentUpdate,m.shouldComponentUpdate=function(e,t,n){var r,i;return!s.__c.__H||((r=s.__c.__H.__.filter(function(e){return e.__c})).every(function(e){return!e.__N})||(i=!1,r.forEach(function(e){var t;e.__N&&(t=e.__[0],e.__=e.__N,e.__N=void 0,t!==e.__[0])&&(i=!0)}),!!i))&&(!a||a.call(this,e,t,n))}),s.__N||s.__}function bs(e){return us=5,t=function(){return{current:e}},n=[],Ps((r=vs(ss++,7)).__H,n)?(r.__V=t(),r.i=n,r.__h=t,r.__V):r.__;var t,n,r}function Rs(){for(var t;t=ls.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(_s),t.__H.__h.forEach(ws),t.__H.__h=[]}catch(e){t.__H.__h=[],w.__e(e,t.__v)}}w.__b=function(e){"function"!=typeof e.type||e.o||e.type===x?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,hs&&hs(e)},w.__r=function(e){fs&&fs(e),ss=0;e=(m=e.__c).__H;e&&(os===m?(e.__h=[],m.__h=[],e.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=ds,e.__N=e.i=void 0})):(e.__h.forEach(_s),e.__h.forEach(ws),e.__h=[])),os=m},w.diffed=function(e){ms&&ms(e);e=e.__c;e&&e.__H&&(!e.__H.__h.length||1!==ls.push(e)&&cs===w.requestAnimationFrame||((cs=w.requestAnimationFrame)||function(e){function t(){clearTimeout(r),Ss&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);Ss&&(n=requestAnimationFrame(t))})(Rs),e.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==ds&&(e.__=e.__V),e.i=void 0,e.__V=ds})),os=m=null},w.__c=function(e,n){n.some(function(t){try{t.__h.forEach(_s),t.__h=t.__h.filter(function(e){return!e.__||ws(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],w.__e(e,t.__v)}}),ps&&ps(e,n)},w.unmount=function(e){gs&&gs(e);var t,e=e.__c;e&&e.__H&&(e.__H.__.forEach(function(e){try{_s(e)}catch(e){t=e}}),e.__H=void 0,t)&&w.__e(t,e.__v)};var Ss="function"==typeof requestAnimationFrame;function _s(e){var t=m,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),m=t}function ws(e){var t=m;e.__c=e.__(),m=t}function Ps(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Ns(e,t){return"function"==typeof t?t(e):t}xs=(mi={createElement:L,Fragment:x}).createElement,Is=mi.Fragment;var xs,Is,Cs=function(e){var t=e.listRef,n=e.nextButtonRef,r=e.previousButtonRef,i=e.carouselIdRef,a=e.classNames,a=void 0===a?{}:a,s=e.itemComponent,o=void 0===s?qa({createElement:xs,Fragment:Is}):s,s=e.previousIconComponent,s=void 0===s?za:s,c=e.nextIconComponent,c=void 0===c?Ja:c,u=e.items,l=e.translations,e=Da(e,Qa),l=function(t){for(var e=1;e=t.current.scrollWidth)},onKeyDown:function(e){"ArrowLeft"===e.key?(e.preventDefault(),h()):"ArrowRight"===e.key&&(e.preventDefault(),f())}},u.map(function(e,t){return xs("li",{key:e.objectID,className:C(d.item),"aria-roledescription":"slide","aria-label":"".concat(t+1," of ").concat(u.length)},xs(o,{item:e}))})),xs("button",{ref:n,title:l.nextButtonTitle,"aria-label":l.nextButtonLabel,"aria-controls":i.current,className:C(d.navigation,d.navigationNext),onClick:function(e){e.preventDefault(),f()}},xs(c,{createElement:xs})))};function Ts(e){var t={listRef:bs(null),nextButtonRef:bs(null),previousButtonRef:bs(null),carouselIdRef:bs("ais-Carousel-".concat(Ka++))};return L(Cs,g({},t,e))}mi=Object.freeze({__proto__:null,carousel:function(){var e=0":7,"=":8,_v:9,"{":10,"&":11,_t:12},S.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l="",d=[],h=!1,f=0,m=0,p="{{",g="}}";function v(){0"==n.tag&&(n.indent=d[r].text.toString()),d.splice(r,1));else t||d.push({tag:"\n"});h=!1,m=d.length}for(t&&(t=t.split(" "),p=t[0],g=t[1]),f=0;f":a,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0},e=(S.walk(e.nodes,n),t.partials[a(e,t)]);e.subs=n.subs,e.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};S.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+i(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=o('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+n(e.n)+'("'+i(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=o('"'+i(e.text)+'"')},"{":s,"&":s},S.walk=function(e,t){for(var n,r=0,i=e.length;r/g,a=/\'/g,o=/\"/g,c=/[&<>\"\']/,d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}),Ls=(ks.Template=Os.Template,ks.template=ks.Template,ks),Ms=(Es=(Os={createElement:L,Fragment:x}).createElement,js=Os.Fragment,Fs={createElement:Es,Fragment:js}.createElement,function(e){var r=e.parts,t=e.highlightedTagName,i=void 0===t?"mark":t,t=e.nonHighlightedTagName,a=void 0===t?"span":t,t=e.separator,s=void 0===t?", ":t,t=e.className,n=e.classNames,o=void 0===n?{}:n,n=Da(e,Xa);return Es("span",Oa({},n,{className:C(o.root,t)}),r.map(function(e,t){var n=t===r.length-1;return Es(js,{key:t},e.map(function(e,t){return Es(Hs,{key:t,classNames:o,highlightedTagName:i,nonHighlightedTagName:a,isHighlighted:e.isHighlighted},e.value)}),!n&&Es("span",{className:o.separator},s))}))});function Hs(e){var t=e.classNames,n=e.children,r=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return Fs(i?r:e,{className:i?t.highlighted:t.nonHighlighted},n)}var As=["classNames"];function Ws(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,As);return L(Ms,g({classNames:{root:C("ais-Highlight",t.root),highlighted:C("ais-Highlight-highlighted",t.highlighted),nonHighlighted:C("ais-Highlight-nonHighlighted",t.nonHighlighted),separator:C("ais-Highlight-separator",t.separator)}},e))}var Ds=["hit","attribute","cssClasses"];function $s(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Ws,g({},j(e,Ds),{parts:at(Ce(t._highlightResult,n)||[]).map(function(e){return xe(ae(e.value||""))}),classNames:r}))}var Bs=["classNames"];function qs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Bs);return L(Ms,g({classNames:{root:C("ais-ReverseHighlight",t.root),highlighted:C("ais-ReverseHighlight-highlighted",t.highlighted),nonHighlighted:C("ais-ReverseHighlight-nonHighlighted",t.nonHighlighted),separator:C("ais-ReverseHighlight-separator",t.separator)}},e))}var Us=["hit","attribute","cssClasses"],Qs=["isHighlighted"];function Vs(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(qs,g({},j(e,Us),{parts:at(Ce(t._highlightResult,n)||[]).map(function(e){return xe(ae(e.value||"")).map(function(e){var t=e.isHighlighted;return F(F({},j(e,Qs)),{},{isHighlighted:!t})})}),classNames:r}))}var Ks=["classNames"];function zs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Ks);return L(Ms,g({classNames:{root:C("ais-ReverseSnippet",t.root),highlighted:C("ais-ReverseSnippet-highlighted",t.highlighted),nonHighlighted:C("ais-ReverseSnippet-nonHighlighted",t.nonHighlighted),separator:C("ais-ReverseSnippet-separator",t.separator)}},e))}var Js=["hit","attribute","cssClasses"],Zs=["isHighlighted"];function Ys(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(zs,g({},j(e,Js),{parts:at(Ce(t._snippetResult,n)||[]).map(function(e){return xe(ae(e.value||"")).map(function(e){var t=e.isHighlighted;return F(F({},j(e,Zs)),{},{isHighlighted:!t})})}),classNames:r}))}var Xs=["classNames"];function Gs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Xs);return L(Ms,g({classNames:{root:C("ais-Snippet",t.root),highlighted:C("ais-Snippet-highlighted",t.highlighted),nonHighlighted:C("ais-Snippet-nonHighlighted",t.nonHighlighted),separator:C("ais-Snippet-separator",t.separator)}},e))}var eo=["hit","attribute","cssClasses"];function to(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Gs,g({},j(e,eo),{parts:at(Ce(t._snippetResult,n)||[]).map(function(e){return xe(ae(e.value||""))}),classNames:r}))}function no(e){var t=e.templates,n=e.templateKey,r=e.compileOptions,i=e.helpers,a=e.data,s=e.bindEvent,e=e.sendEvent,t=t[n];if("string"!=typeof t&&"function"!=typeof t)throw new Error("Template must be 'string' or 'function', was '".concat(W(t),"' (key: ").concat(n,")"));return"function"==typeof t?((n=s||{}).html=Ea,n.sendEvent=e,n.components={Highlight:$s,ReverseHighlight:Vs,Snippet:to,ReverseSnippet:Ys},t(a,n)):(s=function(e,t,n){var r=0"}},So=l({name:"breadcrumb"}),_o=t("Breadcrumb"),wo=function(e){var t=e.hasRefinements,n=e.refine,r=e.cssClasses,e=e.templateProps;return L("div",{className:r.root},L(S,g({},e,{templateKey:"resetLabel",rootTagName:"button",rootProps:{className:C(r.button,!t&&r.disabledButton),onClick:n,disabled:!t},data:{hasRefinements:t}})))},Po={resetLabel:function(){return"Clear refinements"}},No=l({name:"clear-refinements"}),xo=t("ClearRefinements"),Io=function(e){var t=e.items,a=e.cssClasses,e=e.canRefine;return L("div",{className:C(a.root,!e&&a.noRefinementRoot)},L("ul",{className:a.list},t.map(function(i,e){return L("li",{key:"".concat(i.indexName,"-").concat(i.attribute,"-").concat(e),className:a.item},L("span",{className:a.label},(e=i.label).toString().charAt(0).toUpperCase()+e.toString().slice(1),": "),i.refinements.map(function(e){return L("span",{key:(n=e.attribute,r=e.value,[n,e.type,r,e.operator].map(function(e){return e}).filter(Boolean).join(":")),className:a.category},L("span",{className:a.categoryLabel},"query"===e.attribute?L("q",null,e.label):e.label),L("button",{className:a.delete,type:"button",onClick:(t=i.refine.bind(null,e),function(e){Ae(e)||(e.preventDefault(),t())})},"✕"));var t,n,r}))})))},Co=l({name:"current-refinements"}),To=t("CurrentRefinements"),Fo=L("p",null,"Your custom HTML Marker"),Eo={HTMLMarker:function(){return Fo},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},jo=function(e){var t=e.cssClasses,n=e.enableRefine,r=e.enableRefineControl,i=e.enableClearMapRefinement,a=e.isRefineOnMapMove,s=e.isRefinedWithMap,o=e.hasMapMoveSinceLastRefine,c=e.onRefineToggle,u=e.onRefineClick,l=e.onClearClick,e=e.templateProps;return L(x,null,n&&L("div",null,r&&L("div",{className:t.control},a||!o?L(go,{classNameLabel:C(t.label,a&&t.selectedLabel),classNameInput:t.input,checked:a,onToggle:c},L(S,g({},e,{templateKey:"toggle",rootTagName:"span"}))):L(po,{className:t.redo,disabled:!o,onClick:u},L(S,g({},e,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&L("div",{className:t.control},L(po,{className:C(t.redo,!o&&t.disabledRedo),disabled:!o,onClick:u},L(S,g({},e,{templateKey:"redo",rootTagName:"span"})))),i&&s&&L(po,{className:t.reset,onClick:l},L(S,g({},e,{templateKey:"reset",rootTagName:"span"})))))},ko=function(e){var t=e.refine,e=e.mapInstance;return t({northEast:e.getBounds().getNorthEast().toJSON(),southWest:e.getBounds().getSouthWest().toJSON()})},Oo=function(e,r){return e.reduce(function(e,t){var e=k(e,2),n=e[0],e=e[1];return r.includes(t.__id)?[n.concat(t),e]:[n,e.concat(t)]},[[],[]])},Lo=function(e,t){t=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:t.getNorthEast().toJSON(),southWest:t.getSouthWest().toJSON()}},Mo=function(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0},Ho=["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"],Ao=["item"],Wo=["item"],Do=l({name:"geo-search"}),$o=t("GeoSearch"),Os={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,ignoreCompositionEvents:!1,isSearchStalled:!1,disabled:!1,ariaLabel:"Search",onChange:R,onSubmit:R,onReset:R,refine:R},Bo=function(){B(i,An);var r=V(i);function i(){var a;D(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,e=e.max,n=(e-t)/34;return[t].concat(P(et({end:33}).map(function(e){return t+n*(e+1)})),[e])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,e=e.step;if(e)return[].concat(P(et({start:t,end:n,step:e})),[n])}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,i=e.values,e=e.cssClasses,a=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,s=a.min,a=a.max,n=this.computeSnapPoints({min:s,max:a,step:n}),r=!1===r?[]:this.computeDefaultPitPoints({min:s,max:a});return L("div",{className:C(e.root,this.isDisabled&&e.disabledRoot)},L(lu,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:s,max:a,pitComponent:qc,pitPoints:r,snap:!0,snapPoints:n,values:this.isDisabled?[s,a]:i,disabled:this.isDisabled}))}}]),a}()),hu=l({name:"range-slider"}),fu=t("RangeSlider");function mu(e){var t=e.children,n=e.count,r=e.value,i=e.url,e=e.cssClasses;return n?L("a",{className:C(e.link),"aria-label":"".concat(r," & up"),href:i},t):L("div",{className:C(e.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}var pu={item:function(e){var t=e.count,n=e.value,r=e.url,i=e.stars,a=e.cssClasses;return L(mu,{count:t,value:n,url:r,cssClasses:a},i.map(function(e,t){return L("svg",{key:t,className:C(a.starIcon,e?a.fullStarIcon:a.emptyStarIcon),"aria-hidden":"true",width:"24",height:"24"},L("use",{xlinkHref:e?"#ais-RatingMenu-starSymbol":"#ais-RatingMenu-starEmptySymbol"}))}),L("span",{"aria-hidden":"true",className:C(a.label)},"& Up"),t&&L("span",{className:C(a.count)},_a(t)))}},gu=l({name:"rating-menu"}),T=t("RatingMenu"),vu=L("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}),yu=L("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}),bu=L("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"}),Ru=L("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"}),Su=L("g",{fill:"none","fill-rule":"evenodd"},L("g",{transform:"translate(1 1)","stroke-width":"2"},L("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),L("path",{d:"M36 18c0-9.94-8.06-18-18-18"},L("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))),_u={reset:function(e){return L("svg",{className:e.cssClasses.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},bu)},submit:function(e){return L("svg",{className:e.cssClasses.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},Ru)},loadingIndicator:function(e){return L("svg",{"aria-label":"Results are loading",className:e.cssClasses.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},Su)}},wu={item:function(e){var t=e.cssClasses,n=e.count,r=e.value,i=e.highlighted,a=e.isRefined,e=e.isFromSearch;return L("label",{className:C(t.label)},L("input",{type:"checkbox",className:C(t.checkbox),value:r,defaultChecked:a}),L("span",{className:C(t.labelText),dangerouslySetInnerHTML:e?{__html:i}:void 0},!e&&i),L("span",{className:C(t.count)},_a(n)))},showMoreText:function(e){return e.isShowingMore?"Show less":"Show more"},searchableNoResults:function(){return"No results"}},Pu=l({name:"refinement-list"}),A=t("RefinementList"),Nu=t("SearchBox"),xu=function(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?L("div",{className:t.root},L(S,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),L("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},L(S,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null},Iu={text:function(){return""},button:function(e){return e.isRelevantSorted?"See all results":"See relevant results"}},Cu=l({name:"relevant-sort"}),Tu=t("RelevantSort"),Fu=l({name:"search-box"}),Eu=t("SearchBox"),ju=l({name:"sort-by"}),ku=t("SortBy"),Ou=["nbHits","nbSortedHits","cssClasses","templateProps"],Lu=function(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,e=j(e,Ou);return L("div",{className:C(r.root)},L(S,g({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:F({hasManySortedResults:n&&1=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?n.push("".concat(t,"=").concat(t,"_").concat(r[">="])):n.push("".concat(t,"=").concat(t,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))n.push("".concat(t,"=").concat(t,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))n.push("".concat(t,"=").concat(t,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i,a=[];for(i in r["="])r["="].hasOwnProperty(i)&&a.push(r["="][i]);n.push("".concat(t,"=").concat(t,"_").concat(a.join("-")))}}return n.join("&")},r=function(e){var t,n,r;null!==e&&(t=[],n=i(F(F(F({},e.state.disjunctiveFacetsRefinements),e.state.facetsRefinements),e.state.hierarchicalFacetsRefinements)),r=a(e.state.numericRefinements),""!==n&&t.push(n),""!==r&&t.push(r),n=t.join("&"),r="Query: ".concat(e.state.query||"",", ").concat(n),!0===p&&(r+=", Page: ".concat(e.state.page||0)),s!==r)&&(d(n,e.state,e.results),s=r)},c=!(s="")===(void 0===h||h)?!1:!0,t=function(){r(n)},u=function(){r(n)},{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===m&&(document.addEventListener("click",t),window.addEventListener("beforeunload",u))},render:function(e){var t=e.results,e=e.state;!0===c?c=!1:(n={results:t,state:e},o&&clearTimeout(o),o=window.setTimeout(function(){return r(n)},f))},dispose:function(){!0===m&&(document.removeEventListener("click",t),window.removeEventListener("beforeunload",u))},getRenderState:function(e,t){return F(F({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}};throw new Error(yo("The `pushFunction` option is required."))},breadcrumb:function(e){var t,s,o,c,u,e=e||{},n=e.container,r=e.attributes,i=e.separator,a=e.rootPath,l=e.transformItems,d=e.templates,d=void 0===d?{}:d,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=N(n),n={root:C(_o(),e.root),noRefinementRoot:C(_o({modifierName:"noRefinement"}),e.noRefinementRoot),list:C(_o({descendantName:"list"}),e.list),item:C(_o({descendantName:"item"}),e.item),selectedItem:C(_o({descendantName:"item",modifierName:"selected"}),e.selectedItem),separator:C(_o({descendantName:"separator"}),e.separator),link:C(_o({descendantName:"link"}),e.link)},s=(e={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,o=e.cssClasses,c=e.renderState,u=e.templates,F(F({},Br(function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,e=e.refine;t?c.templateProps=H({defaultTemplates:Ro,templatesConfig:i.templatesConfig,templates:u}):M(L(bo,{canRefine:n,cssClasses:o,createURL:r,items:a,refine:e,templateProps:c.templateProps}),s)},function(){return M(null,t)})({attributes:r,separator:i,rootPath:a,transformItems:l})),{},{$$widgetType:"ais.breadcrumb"});throw new Error(So("The `container` option is required."))},clearRefinements:function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.templates,r=void 0===r?{}:r,c=e.includedAttributes,u=e.excludedAttributes,l=e.transformItems,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=N(n),n={root:C(xo(),e.root),button:C(xo({descendantName:"button"}),e.button),disabledButton:C(xo({descendantName:"button",modifierName:"disabled"}),e.disabledButton)},i=(e={containerNode:t,cssClasses:n,renderState:{},templates:r}).containerNode,a=e.cssClasses,s=e.renderState,o=e.templates,F(F({},ln(function(e,t){var n=e.refine,r=e.canRefine,e=e.instantSearchInstance;t?s.templateProps=H({defaultTemplates:Po,templatesConfig:e.templatesConfig,templates:o}):M(L(wo,{refine:n,cssClasses:a,hasRefinements:r,templateProps:s.templateProps}),i)},function(){return M(null,t)})({includedAttributes:c,excludedAttributes:u,transformItems:l})),{},{$$widgetType:"ais.clearRefinements"});throw new Error(No("The `container` option is required."))},configure:function(e){return F(F({},an(R)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t,e=e||{},n=e.container,r=e.includedAttributes,i=e.excludedAttributes,a=e.cssClasses,a=void 0===a?{}:a,e=e.transformItems;if(n)return t=N(n),n={root:C(To(),a.root),noRefinementRoot:C(To({modifierName:"noRefinement"}),a.noRefinementRoot),list:C(To({descendantName:"list"}),a.list),item:C(To({descendantName:"item"}),a.item),label:C(To({descendantName:"label"}),a.label),category:C(To({descendantName:"category"}),a.category),categoryLabel:C(To({descendantName:"categoryLabel"}),a.categoryLabel),delete:C(To({descendantName:"delete"}),a.delete)},F(F({},fn(mo,function(){return M(null,t)})({container:t,cssClasses:n,includedAttributes:r,excludedAttributes:i,transformItems:e})),{},{$$widgetType:"ais.currentRefinements"});throw new Error(Co("The `container` option is required."))},geoSearch:function(e){var t,n,r,i,a,u,e=e||{},s=e.initialZoom,s=void 0===s?1:s,o=e.initialPosition,o=void 0===o?{lat:0,lng:0}:o,c=e.templates,c=void 0===c?{}:c,l=e.cssClasses,l=void 0===l?{}:l,d=e.builtInMarker,d=void 0===d?{}:d,h=e.customHTMLMarker,f=e.enableRefine,f=void 0===f||f,m=e.enableClearMapRefinement,m=void 0===m||m,p=e.enableRefineControl,p=void 0===p||p,g=e.container,v=e.googleReference,e=j(e,Ho);if(!g)throw new Error(Do("The `container` option is required."));if(v)return t=N(g),g={root:C($o(),l.root),tree:$o({descendantName:"tree"}),map:C($o({descendantName:"map"}),l.map),control:C($o({descendantName:"control"}),l.control),label:C($o({descendantName:"label"}),l.label),selectedLabel:C($o({descendantName:"label",modifierName:"selected"}),l.selectedLabel),input:C($o({descendantName:"input"}),l.input),redo:C($o({descendantName:"redo"}),l.redo),disabledRedo:C($o({descendantName:"redo",modifierName:"disabled"}),l.disabledRedo),reset:C($o({descendantName:"reset"}),l.reset)},n=F(F({},Eo),c),r=F(F({},{createOptions:function(){return{}},events:{}}),d),i=(Boolean(h)||Boolean(c.HTMLMarker))&&F(F({},{createOptions:function(){return{}},events:{}}),h),u=v,a=function(){B(c,u.maps.OverlayView);var o=V(c);function c(e){var t,n=e.__id,r=e.position,i=e.map,a=e.template,s=e.className,e=e.anchor,e=void 0===e?{x:0,y:0}:e;return D(this,c),E(y(t=o.call(this)),"__id",void 0),E(y(t),"anchor",void 0),E(y(t),"offset",void 0),E(y(t),"listeners",void 0),E(y(t),"latLng",void 0),E(y(t),"element",void 0),t.__id=n,t.anchor=e,t.listeners={},t.latLng=new u.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute","object"===W(a)?M(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return $(c,[{key:"onAdd",value:function(){this.getPanes().overlayMouseTarget.appendChild(this.element);var e=this.element.getBoundingClientRect();this.offset={x:this.anchor.x+e.width/2,y:this.anchor.y+e.height},this.element.style.width="".concat(e.width,"px")}},{key:"draw",value:function(){var e=this.getProjection().fromLatLngToDivPixel(this.latLng);this.element.style.left="".concat(Math.round(e.x-this.offset.x),"px"),this.element.style.top="".concat(Math.round(e.y-this.offset.y),"px"),this.element.style.zIndex=String(parseInt(this.element.style.top,10))}},{key:"onRemove",value:function(){var t=this;this.element&&(this.element.parentNode.removeChild(this.element),Object.keys(this.listeners).forEach(function(e){t.element.removeEventListener(e,t.listeners[e])}),delete this.element,delete this.listeners)}},{key:"addListener",value:function(e,t){this.listeners[e]=t;var n=this.element;return n.addEventListener(e,t),{remove:function(){return n.removeEventListener(e,t)}}}},{key:"getPosition",value:function(){return this.latLng}}]),c}(),l=i?function(e){var t=e.item,e=j(e,Wo);return new a(F(F(F({},i.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc,className:C($o({descendantName:"marker"})),template:no({templateKey:"HTMLMarker",templates:n,data:t})}))}:function(e){var t=e.item,e=j(e,Ao);return new v.maps.Marker(F(F(F({},r.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc}))},d=i||r,F(F({},Yr(vo,function(){return M(null,t)})(F(F({},e),{},{templates:n,renderState:{},container:t,googleReference:v,initialZoom:s,initialPosition:o,cssClasses:g,createMarker:l,markerOptions:d,enableRefine:f,enableClearMapRefinement:m,enableRefineControl:p}))),{},{$$widgetType:"ais.geoSearch"});throw new Error(Do("The `googleReference` option is required."))},hierarchicalMenu:function(e){var t,c,u,l,d,h,e=e||{},n=e.container,r=e.attributes,i=e.separator,a=e.rootPath,s=e.showParentLevel,o=e.limit,f=e.showMore,f=void 0!==f&&f,m=e.showMoreLimit,p=e.sortBy,g=e.transformItems,v=e.templates,v=void 0===v?{}:v,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=N(n),n={root:C(_(),e.root),noRefinementRoot:C(_({modifierName:"noRefinement"}),e.noRefinementRoot),list:C(_({descendantName:"list"}),e.list),childList:C(_({descendantName:"list",modifierName:"child"}),e.childList),item:C(_({descendantName:"item"}),e.item),selectedItem:C(_({descendantName:"item",modifierName:"selected"}),e.selectedItem),parentItem:C(_({descendantName:"item",modifierName:"parent"}),e.parentItem),link:C(_({descendantName:"link"}),e.link),selectedItemLink:C(_({descendantName:"link",modifierName:"selected"}),e.selectedItemLink),label:C(_({descendantName:"label"}),e.label),count:C(_({descendantName:"count"}),e.count),showMore:C(_({descendantName:"showMore"}),e.showMore),disabledShowMore:C(_({descendantName:"showMore",modifierName:"disabled"}),e.disabledShowMore)},c=(e={cssClasses:n,containerNode:t,templates:v,showMore:f,renderState:{}}).cssClasses,u=e.containerNode,l=e.showMore,d=e.templates,h=e.renderState,F(F({},bn(function(e,t){var n=e.createURL,r=e.items,i=e.refine,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,e=e.canToggleShowMore;t?h.templateProps=H({defaultTemplates:Jo,templatesConfig:a.templatesConfig,templates:d}):M(L(zo,{createURL:n,cssClasses:c,facetValues:r,templateProps:h.templateProps,toggleRefinement:i,showMore:l,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),u)},function(){return M(null,t)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:o,showMore:f,showMoreLimit:m,sortBy:p,transformItems:g})),{},{$$widgetType:"ais.hierarchicalMenu"});throw new Error(Zo("The `container` option is required."))},hits:function(e){var t,u,l,d,h,e=e||{},n=e.container,r=e.escapeHTML,i=e.transformItems,a=e.templates,a=void 0===a?{}:a,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=N(n),u=(n={containerNode:t,cssClasses:e,renderState:{},templates:a}).renderState,l=n.cssClasses,d=n.containerNode,h=n.templates,F(F({},xn(wn)(function(e,t){var i,n=e.items,r=e.results,a=e.instantSearchInstance,s=e.insights,o=e.bindEvent,c=e.sendEvent,e=e.banner;t?u.templateProps=H({defaultTemplates:Yo,templatesConfig:a.templatesConfig,templates:h}):(i=Gn({insights:s,sendEvent:c}),M(L(ec,{hits:n,itemComponent:function(e){var t=e.hit,n=e.index,r=j(e,Xo);return L(S,g({},u.templateProps,{templateKey:"item",rootTagName:"li",rootProps:F(F({},r),{},{onClick:function(e){i(e),r.onClick()},onAuxClick:function(e){i(e),r.onAuxClick()}}),data:F(F({},t),{},{get __hitIndex(){return n}}),bindEvent:o,sendEvent:c}))},sendEvent:c,classNames:l,emptyComponent:function(e){e=g({},(Q(e),e));return L(S,g({},u.templateProps,{rootProps:e,templateKey:"empty",data:r,rootTagName:"fragment"}))},banner:e,bannerComponent:h.banner?function(e){return L(S,g({},u.templateProps,{templateKey:"banner",data:e,rootTagName:"fragment"}))}:void 0}),d))},function(){return M(null,t)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"});throw new Error(Go("The `container` option is required."))},hitsPerPage:function(e){var t,r,i,e=e||{},n=e.container,a=e.items,s=e.cssClasses,s=void 0===s?{}:s,e=e.transformItems;if(n)return t=N(n),n={root:C(ac(),s.root),select:C(ac({descendantName:"select"}),s.select),option:C(ac({descendantName:"option"}),s.option)},r=(s={containerNode:t,cssClasses:n}).containerNode,i=s.cssClasses,F(F({},tr(function(e,t){var n=e.items,e=e.refine;t||(t=(we(n,function(e){return e.isRefined})||{}).value,M(L("div",{className:i.root},L(nc,{cssClasses:i,currentValue:t,options:n,setValue:e})),r))},function(){return M(null,t)})({items:a,transformItems:e})),{},{$$widgetType:"ais.hitsPerPage"});throw new Error(ic("The `container` option is required."))},index:Ra,infiniteHits:function(e){var t,h,f,m,p,g,e=e||{},n=e.container,r=e.escapeHTML,i=e.transformItems,a=e.templates,a=void 0===a?{}:a,s=e.cssClasses,s=void 0===s?{}:s,o=e.showPrevious,e=e.cache;if(n)return t=N(n),n={root:C(uc(),s.root),emptyRoot:C(uc({modifierName:"empty"}),s.emptyRoot),item:C(uc({descendantName:"item"}),s.item),list:C(uc({descendantName:"list"}),s.list),loadPrevious:C(uc({descendantName:"loadPrevious"}),s.loadPrevious),disabledLoadPrevious:C(uc({descendantName:"loadPrevious",modifierName:"disabled"}),s.disabledLoadPrevious),loadMore:C(uc({descendantName:"loadMore"}),s.loadMore),disabledLoadMore:C(uc({descendantName:"loadMore",modifierName:"disabled"}),s.disabledLoadMore),bannerRoot:C(uc({descendantName:"banner"}),s.bannerRoot),bannerImage:C(uc({descendantName:"banner-image"}),s.bannerImage),bannerLink:C(uc({descendantName:"banner-link"}),s.bannerLink)},h=(s={containerNode:t,cssClasses:n,templates:a,showPrevious:o,renderState:{}}).containerNode,f=s.cssClasses,m=s.renderState,p=s.templates,g=s.showPrevious,F(F({},xn(cr)(function(e,t){var n=e.items,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent,d=e.sendEvent,e=e.banner;t?m.templateProps=H({defaultTemplates:oc,templatesConfig:c.templatesConfig,templates:p}):M(L(sc,{cssClasses:f,hits:n,results:r,hasShowPrevious:g,showPrevious:a,showMore:i,templateProps:m.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:d,bindEvent:l,banner:e}),h)},function(){return M(null,t)})({escapeHTML:r,transformItems:i,showPrevious:o,cache:e})),{},{$$widgetType:"ais.infiniteHits"});throw new Error(cc("The `container` option is required."))},menu:function(e){var t,c,u,l,d,h,e=e||{},n=e.container,r=e.attribute,i=e.sortBy,a=e.limit,s=e.showMore,o=e.showMoreLimit,f=e.cssClasses,f=void 0===f?{}:f,m=e.templates,m=void 0===m?{}:m,e=e.transformItems;if(n)return t=N(n),n={root:C(hc(),f.root),noRefinementRoot:C(hc({modifierName:"noRefinement"}),f.noRefinementRoot),list:C(hc({descendantName:"list"}),f.list),item:C(hc({descendantName:"item"}),f.item),selectedItem:C(hc({descendantName:"item",modifierName:"selected"}),f.selectedItem),link:C(hc({descendantName:"link"}),f.link),label:C(hc({descendantName:"label"}),f.label),count:C(hc({descendantName:"count"}),f.count),showMore:C(hc({descendantName:"showMore"}),f.showMore),disabledShowMore:C(hc({descendantName:"showMore",modifierName:"disabled"}),f.disabledShowMore)},c=(f={containerNode:t,cssClasses:n,renderState:{},templates:m,showMore:s}).containerNode,u=f.cssClasses,l=f.renderState,d=f.templates,h=f.showMore,F(F({},ur(function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,e=e.canToggleShowMore;t?l.templateProps=H({defaultTemplates:lc,templatesConfig:a.templatesConfig,templates:d}):(t=r.map(function(e){return F(F({},e),{},{url:i(e.value)})}),M(L(zo,{createURL:i,cssClasses:u,facetValues:t,showMore:h,templateProps:l.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),c))},function(){return M(null,t)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:e})),{},{$$widgetType:"ais.menu"});throw new Error(dc("The `container` option is required."))},menuSelect:function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.attribute,c=e.sortBy,c=void 0===c?["name:asc"]:c,u=e.limit,u=void 0===u?10:u,l=e.cssClasses,l=void 0===l?{}:l,d=e.templates,d=void 0===d?{}:d,e=e.transformItems;if(n)return t=N(n),n={root:C(gc(),l.root),noRefinementRoot:C(gc({modifierName:"noRefinement"}),l.noRefinementRoot),select:C(gc({descendantName:"select"}),l.select),option:C(gc({descendantName:"option"}),l.option)},i=(l={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,a=l.cssClasses,s=l.renderState,o=l.templates,F(F({},ur(function(e,t){var n=e.refine,r=e.items,e=e.instantSearchInstance;t?s.templateProps=H({defaultTemplates:mc,templatesConfig:e.templatesConfig,templates:o}):M(L(fc,{cssClasses:a,items:r,refine:n,templateProps:s.templateProps}),i)},function(){return M(null,t)})({attribute:r,limit:u,sortBy:c,transformItems:e})),{},{$$widgetType:"ais.menuSelect"});throw new Error(pc("The `container` option is required."))},numericMenu:function(e){var t,a,s,o,c,u,e=e||{},n=e.container,r=e.attribute,i=e.items,l=e.cssClasses,l=void 0===l?{}:l,d=e.templates,d=void 0===d?{}:d,e=e.transformItems;if(n)return t=N(n),n={root:C(bc(),l.root),noRefinementRoot:C(bc({modifierName:"noRefinement"}),l.noRefinementRoot),list:C(bc({descendantName:"list"}),l.list),item:C(bc({descendantName:"item"}),l.item),selectedItem:C(bc({descendantName:"item",modifierName:"selected"}),l.selectedItem),label:C(bc({descendantName:"label"}),l.label),radio:C(bc({descendantName:"radio"}),l.radio),labelText:C(bc({descendantName:"labelText"}),l.labelText)},a=(l={containerNode:t,attribute:r,cssClasses:n,renderState:{},templates:d}).containerNode,s=l.attribute,o=l.cssClasses,c=l.renderState,u=l.templates,F(F({},fr(function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,e=e.items;t?c.templateProps=H({defaultTemplates:vc,templatesConfig:r.templatesConfig,templates:u}):M(L(zo,{createURL:n,cssClasses:o,facetValues:e,templateProps:c.templateProps,toggleRefinement:i,attribute:s}),a)},function(){return M(null,t)})({attribute:r,items:i,transformItems:e})),{},{$$widgetType:"ais.numericMenu"});throw new Error(yc("The `container` option is required."))},pagination:function(e){var t,u,l,d,h,f,m,p,g,e=e||{},n=e.container,r=e.templates,r=void 0===r?{}:r,i=e.cssClasses,i=void 0===i?{}:i,a=e.totalPages,s=e.padding,o=e.showFirst,o=void 0===o||o,c=e.showLast,c=void 0===c||c,v=e.showPrevious,v=void 0===v||v,y=e.showNext,y=void 0===y||y,e=e.scrollTo,e=void 0===e?"body":e;if(n)return t=N(n),e=!1!==(n=!0===e?"body":e)&&N(n),n={root:C(_c(),i.root),noRefinementRoot:C(_c({modifierName:"noRefinement"}),i.noRefinementRoot),list:C(_c({descendantName:"list"}),i.list),item:C(_c({descendantName:"item"}),i.item),firstPageItem:C(_c({descendantName:"item",modifierName:"firstPage"}),i.firstPageItem),lastPageItem:C(_c({descendantName:"item",modifierName:"lastPage"}),i.lastPageItem),previousPageItem:C(_c({descendantName:"item",modifierName:"previousPage"}),i.previousPageItem),nextPageItem:C(_c({descendantName:"item",modifierName:"nextPage"}),i.nextPageItem),pageItem:C(_c({descendantName:"item",modifierName:"page"}),i.pageItem),selectedItem:C(_c({descendantName:"item",modifierName:"selected"}),i.selectedItem),disabledItem:C(_c({descendantName:"item",modifierName:"disabled"}),i.disabledItem),link:C(_c({descendantName:"link"}),i.link)},i=F(F({},Pc),r),u=(r={containerNode:t,cssClasses:n,templates:i,showFirst:o,showLast:c,showPrevious:v,showNext:y,scrollToNode:e}).containerNode,l=r.cssClasses,d=r.templates,h=r.showFirst,f=r.showLast,m=r.showPrevious,p=r.showNext,g=r.scrollToNode,F(F({},yr(function(e,t){var n=e.createURL,r=e.currentRefinement,i=e.nbPages,a=e.pages,s=e.isFirstPage,o=e.isLastPage,c=e.refine;t||M(L(Rc,{createURL:n,cssClasses:l,currentPage:r,templates:d,nbPages:i,pages:a,isFirstPage:s,isLastPage:o,setCurrentPage:function(e){c(e),!1!==g&&g.scrollIntoView()},showFirst:h,showLast:f,showPrevious:m,showNext:p}),u)},function(){return M(null,t)})({totalPages:a,padding:s})),{},{$$widgetType:"ais.pagination"});throw new Error(wc("The `container` option is required."))},panel:function(e){var e=e||{},t=e.templates,r=void 0===t?{}:t,t=e.hidden,d=void 0===t?function(){return!1}:t,t=e.collapsed,e=e.cssClasses,e=void 0===e?{}:e,h=document.createElement("div"),f=Boolean(t),m="function"==typeof t?t:function(){return!1},p={root:C(Tc(),e.root),noRefinementRoot:C(Tc({modifierName:"noRefinement"}),e.noRefinementRoot),collapsibleRoot:C(Tc({modifierName:"collapsible"}),e.collapsibleRoot),collapsedRoot:C(Tc({modifierName:"collapsed"}),e.collapsedRoot),collapseButton:C(Tc({descendantName:"collapseButton"}),e.collapseButton),collapseIcon:C(Tc({descendantName:"collapseIcon"}),e.collapseIcon),body:C(Tc({descendantName:"body"}),e.body),header:C(Tc({descendantName:"header"}),e.header),footer:C(Tc({descendantName:"footer"}),e.footer)};return function(n){return function(e){var i,a,t,s,o,c,u,l;if(e&&e.container)return i=N(e.container),t={containerNode:i,bodyContainerNode:h,cssClasses:p,templates:F(F({},{collapseButtonText:function(e){e=e.collapsed;return'')}}),r)},s=t.containerNode,o=t.bodyContainerNode,c=t.cssClasses,u=t.templates,a=function(e){var t=e.options,n=e.hidden,r=e.collapsible,e=e.collapsed;M(L(Nc,{cssClasses:c,hidden:n,collapsible:r,isCollapsed:e,templates:u,data:t,bodyElement:o}),s)},l=n(F(F({},e),{},{container:h})),F(F({},l),{},{init:function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n":">",'"':""","'":"'"},ee=/[&<>"']/g,te=RegExp(ee.source);var ne={"&":"&","<":"<",">":">",""":'"',"'":"'"},re=/&(amp|quot|lt|gt|#39);/g,ie=RegExp(re.source);function ae(e){return e&&ie.test(e)?e.replace(re,function(e){return ne[e]}):e}function se(e){if("object"===W(t=e)&&null!==t&&"[object Object]"===(null===(t=e)?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t))){var t;if(null===Object.getPrototypeOf(e))return 1;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}}var O={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},u={highlightPreTag:"",highlightPostTag:""};function oe(e){return((e=e)&&te.test(e)?e.replace(ee,function(e){return G[e]}):e).replace(new RegExp(O.highlightPreTag,"g"),u.highlightPreTag).replace(new RegExp(O.highlightPostTag,"g"),u.highlightPostTag)}function ce(n){return se(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return F(F({},e),{},E({},t,ce(n[t])))},{}):Array.isArray(n)?n.map(ce):F(F({},n),{},{value:oe(n.value)})}function ue(e){return void 0===e.__escaped&&((e=e.map(function(e){e=g({},(Q(e),e));return e._highlightResult&&(e._highlightResult=ce(e._highlightResult)),e._snippetResult&&(e._snippetResult=ce(e._snippetResult)),e})).__escaped=!0),e}function le(e){var t=u.highlightPreTag,n=u.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}function de(e){var h=e.instantSearchInstance,f=e.helper,m=e.attribute,p=e.widgetType;return function(){for(var e=arguments.length,t=new Array(e),n=0;n= 4.8.0 required."));u=be(n.findAnswers,p),y(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(t){var n=this,e=t.state.query;e?(s=[],o=!0,y(F(F({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!1),r(u(e,l,F(F({},v),{},{nbHits:f,attributesForPrediction:d}))).then(function(e){e&&(g&&0t&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},n.prototype.once=function(e,t){var n;if(ut(t))return n=!1,r.listener=t,this.on(e,r),this;throw TypeError("listener must be a function");function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}},n.prototype.removeListener=function(e,t){var n,r,i,a;if(!ut(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(i=(n=this._events[e]).length,r=-1,n===t||ut(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(lt(n)){for(a=i;0 "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return p(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(e){var t;return this.isHierarchicalFacet(e)&&(t=this.getHierarchicalRefinement(e)[0])?(e=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),t.split(e).map(function(e){return e.trim()})):[]},toString:function(){return JSON.stringify(this,null,2)}};function kt(e){return Array.isArray(e)?e.filter(Boolean):[]}function Ot(e,t){if(Array.isArray(e))for(var n=0;n=i.length)&&"desc"===i[n]?-r:r}return e.index-t.index}),e.map(function(e){return e.value})):[]},At=function(m){return function(e,t){function n(e,s,t){var n,o=e;if(0t.avgOfIndices?1:-1}).reduce(function(e,t){var n=p(r.reduce(function(e,t){return e.concat(t)},[]),function(e){return e.objectID===t.objectID});return n?e.concat(n):e},[])},gt="3.22.5",Yt=pt;function e(e,t,n,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.22.5)"),this.setClient(e);e=n||{};e.index=t,this.state=Mt.make(e),this.recommendState=new wt({params:e.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=r,this._recommendCache={}}function Xt(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Gt(){return this.state.page}ht(e,ct),e.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},e.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},e.prototype.recommend=function(){return this._recommend(),this},e.prototype.getQuery=function(){var e=this.state;return Ct._getHitsSearchParams(e)},e.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,e=Ct._getQueries(n.index,n),r=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(e).then(function(e){return r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),{content:new Jt(n,e.results),state:n,_originalResponse:e}},function(e){throw r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),e});this.client.search(e).then(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(null,new Jt(n,e.results),n)}).catch(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(e,null,n)})},e.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var n=n.getModifiedState(t),t=bt({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:St(Ct._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),r="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(r);var i=this.client.initIndex(n.index);if("function"!=typeof i.findAnswers)throw new Error(r);return i.findAnswers(n.query,e.queryLanguages,t)},e.prototype.searchForFacetValues=function(t,e,n,r){var i,a,s,o="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,c="function"==typeof this.client.initIndex;if(o||c||"function"==typeof this.client.search)return i=this.state.setQueryParameters(r||{}),a=i.isDisjunctiveFacet(t),r=Ct.getSearchForFacetQuery(t,e,n,i),this._currentNbQueries++,s=this,n=o?this.client.searchForFacetValues([{indexName:i.index,params:r}]):c?this.client.initIndex(i.index).searchForFacetValues(r):(delete r.facetName,this.client.search([{type:"facet",facet:t,indexName:i.index,params:r}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:i,facet:t,query:e}),n.then(function(e){return s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits.forEach(function(e){e.escapedValue=Yt(e.value),e.isRefined=a?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),e});throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues")},e.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},e.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},e.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},e.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},e.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},e.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},e.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},e.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},e.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},e.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},e.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},e.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},e.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},e.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},e.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},e.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},e.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},e.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},e.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},e.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},e.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},e.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},e.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},e.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},e.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},e.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},e.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},e.prototype.setCurrentPage=Xt,e.prototype.setPage=Xt,e.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},e.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},e.prototype.setState=function(e){return this._change({state:Mt.make(e),isPageReset:!1}),this},e.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Mt(e),this},e.prototype.hasRefinements=function(e){return!!Rt(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},e.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},e.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},e.prototype.hasTag=function(e){return this.state.isTagRefined(e)},e.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},e.prototype.getIndex=function(){return this.state.index},e.prototype.getCurrentPage=Gt,e.prototype.getPage=Gt,e.prototype.getTags=function(){return this.state.tagRefinements},e.prototype.getRefinements=function(e){var n=[],r=(this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){n.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){n.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){n.push({value:e,type:"disjunctive"})}),this.state.getNumericRefinements(e));return Object.keys(r).forEach(function(e){var t=r[e];n.push({value:t,operator:e,type:"numeric"})}),n},e.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},e.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},e.prototype._search=function(e){var r=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=Ct._getQueries(r.index,r),i.push({state:r,queriesCount:t.length,helper:this}),this.emit("search",{state:r,results:this.lastResults})),this.derivedHelpers.map(function(e){var t=e.getModifiedState(r),n=t.index?Ct._getQueries(t.index,t):[];return i.push({state:t,queriesCount:n.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),n})),t=Array.prototype.concat.apply(t,e),e=this._queryId++;if(this._currentNbQueries++,!t.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,i,e));try{this.client.search(t).then(this._dispatchAlgoliaResponse.bind(this,i,e)).catch(this._dispatchAlgoliaError.bind(this,e))}catch(e){this.emit("error",{error:e})}},e.prototype._recommend=function(){var r=this.state,e=this.recommendState,t=this.getIndex(),i=[{state:e,index:t,helper:this}],a=e.params.map(function(e){return e.$$id}),s=(this.emit("fetch",{recommend:{state:e,results:this.lastRecommendResults}}),this._recommendCache),e=this.derivedHelpers.map(function(e){var t,n=e.getModifiedState(r).index;return n?(t=e.getModifiedRecommendState(new wt),i.push({state:t,index:n,helper:e}),a=Array.prototype.concat.apply(a,t.params.map(function(e){return e.$$id})),e.emit("fetch",{recommend:{state:t,results:e.lastRecommendResults}}),t._buildQueries(n,s)):[]}),t=Array.prototype.concat.apply(this.recommendState._buildQueries(t,s),e);if(0!==t.length)if(0")}function cn(n,r){return function(e){var t,e=e||{},a=e.hit,s=e.matchingPatterns,e=e.transformSearchParameters,e=void 0===e?function(e){return e}:e;if(!a)throw new Error(sn("The `hit` option is required."));if(s)return t=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ce(a,t),i=n.score;return Array.isArray(r)?[].concat(I(e),[r.map(function(e){return on({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(I(e),[on({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),e=F({},e(new v.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:t}))),F(F({},an(n,r)({searchParameters:e})),{},{$$type:"ais.configureRelatedItems"});throw new Error(sn("The `matchingPatterns` option is required."))}}function un(u){var s=1=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,t={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.count&&(t.count=e.count),void 0!==e.exhaustive&&(t.exhaustive=e.exhaustive),t}function bn(c){var n=1 ":t,t=e.rootPath,r=void 0===t?null:t,t=e.showParentLevel,i=void 0===t||t,t=e.limit,a=void 0===t?10:t,t=e.showMore,h=void 0!==t&&t,t=e.showMoreLimit,s=void 0===t?20:t,t=e.sortBy,f=void 0===t?_n:t,t=e.transformItems,m=void 0===t?function(e){return e}:t;if(!l||!Array.isArray(l)||0===l.length)throw new Error(Sn("The `attributes` option expects an array of strings."));if(!0===h&&s<=a)throw new Error(Sn("The `showMoreLimit` option must be greater than `limit`."));var p,g,v=k(l,1)[0],o=function(){};function y(){o()}var b=!1;function R(){return b?s:a}return{$$type:"ais.hierarchicalMenu",init:function(e){var t=e.instantSearchInstance;c(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t,n,r=e.instantSearchInstance;t=e,o=function(){b=!b,n.render(t)},c(F(F({},(n=this).getWidgetRenderState(e)),{},{instantSearchInstance:r}),!1)},dispose:function(e){e=e.state;return n(),e.removeHierarchicalFacet(v).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(e,t){return F(F({},e),{},{hierarchicalMenu:F(F({},e.hierarchicalMenu),{},E({},v,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,n=this,r=e.results,i=e.state,a=e.createURL,s=e.instantSearchInstance,o=e.helper,e=[],c=!1;return p=p||de({instantSearchInstance:s,helper:o,attribute:function(e){e=e.split(d).length-1;return l[e]},widgetType:this.$$type}),g=g||function(e){p("click:internal",e),o.toggleFacetRefinement(v,e).search()},r&&(s=(s=r.getFacetValues(v,{sortBy:f,facetOrdering:f===_n}))&&!Array.isArray(s)&&s.data?s.data:[],t=(i.maxValuesPerFacet||0)>R()?s.length<=R():s.lengthS()),c=v(e.slice(0,S()).map(function(e){var t=e.name,n=e.escapedValue;e.path;return F(F({},j(e,lr)),{},{label:t,value:n})}),{results:i})),{items:c,createURL:h,refine:f,sendEvent:d,canRefine:0="]&&t[">="][0]||"",t=t["<="]&&t["<="][0]||"",e=F(F({},e),{},{numericMenu:F(F({},e.numericMenu),{},E({},p,"".concat(n,":").concat(t)))}),n=p,e.numericMenu&&(":"===e.numericMenu[n]&&delete e.numericMenu[n],0===Object.keys(e.numericMenu).length)&&delete e.numericMenu,e)},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,t=t.numericMenu&&t.numericMenu[p],e=e.setQueryParameters({numericRefinements:F(F({},e.numericRefinements),{},E({},p,{}))});return t?-1===t.indexOf(":")?e.addNumericRefinement(p,"=",Number(t)):(n=(t=k(t.split(":").map(parseFloat),2))[0],t=t[1],n=b(n)?e.addNumericRefinement(p,">=",n):e,b(t)?n.addNumericRefinement(p,"<=",t):n):e},getRenderState:function(e,t){return F(F({},e),{},{numericMenu:F(F({},e.numericMenu),{},E({},p,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,r,n,i=this,a=e.results,s=e.state,o=e.instantSearchInstance,c=e.helper,u=e.createURL,e=(m.refine||(m.refine=function(e){var t=gr(c.state,p,e);m.sendEvent("click:internal",e),c.setState(t).search()}),m.createURL||(m.createURL=function(n){return function(t){return u(function(e){return i.getWidgetUiState(e,{searchParameters:gr(n,p,t),helper:c})})}}),m.sendEvent||(m.sendEvent=(t={instantSearchInstance:o}.instantSearchInstance,function(){1===arguments.length&&t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])})),!a||0===a.nbHits),o=(r=s,g.map(function(e){var t=e.start,n=e.end,e=e.label;return{label:e,value:encodeURI(JSON.stringify({start:t,end:n})),isRefined:pr(r,p,{start:t,end:n,label:e})}})),l=!0,d=function(e,t){var n,r,i,a,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=K(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o);try{for(d.s();!(n=d.n()).done;){var h=n.value;if(h.isRefined&&"{}"!==decodeURI(h.value)){l=!1;break}}}catch(e){d.e(e)}finally{d.f()}return{createURL:m.createURL(s),items:v(o,{results:a}),hasNoResults:e,canRefine:!(e&&l),refine:m.refine,sendEvent:m.sendEvent,widgetParams:f}}};throw new Error(mr("The `items` option expects an array of objects."))}}var mr=l({name:"numeric-menu",connector:!0});function pr(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end?n.start===n.end?vr(r,"=",n.start):vr(r,">=",n.start)&&vr(r,"<=",n.end):void 0!==n.start?vr(r,">=",n.start):void 0!==n.end?vr(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function gr(e,t,n){var n=JSON.parse(decodeURI(n)),r=e.getNumericRefinements(t);if(void 0===n.start&&void 0===n.end)return e.removeNumericRefinement(t);if(pr(e,t,n)||(e=e.removeNumericRefinement(t)),void 0!==n.start&&void 0!==n.end){if(n.start>n.end)throw new Error("option.start should be > to option.end");if(n.start===n.end)return e=vr(r,"=",n.start)?e.removeNumericRefinement(t,"=",n.start):e.addNumericRefinement(t,"=",n.start)}return void 0!==n.start&&(e=(e=vr(r,">=",n.start)?e.removeNumericRefinement(t,">=",n.start):e).addNumericRefinement(t,">=",n.start)),"number"==typeof(e=void 0!==n.end?(e=vr(r,"<=",n.end)?e.removeNumericRefinement(t,"<=",n.end):e).addNumericRefinement(t,"<=",n.end):e).page&&(e.page=0),e}function vr(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function yr(n){var t=1=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),t}(),Rr=l({name:"pagination",connector:!0}),Sr=l({name:"range-input",connector:!0},{name:"range-slider",connector:!0});function _r(e){var t=e.min,n=e.max,e=e.precision,e=Math.pow(10,e);return{min:t&&Math.floor(t*e)/e,max:n&&Math.ceil(n*e)/e}}function wr(n){var r=1=")||[],1)[0],s=k(e.getNumericRefinement(u,"<=")||[],1)[0],o=void 0===n||""===n,c=void 0===r||""===r,n=_r({min:o?void 0:parseFloat(n),max:c?void 0:parseFloat(r),precision:h}),r=n.min,n=n.max,o=b(l)||i!==r?b(l)&&o?l:r:void 0,r=b(d)||t!==n?b(d)&&c?d:n:void 0,c=void 0===o,n=b(i)&&i<=o,c=c||b(o)&&(!b(i)||n),i=void 0===r,n=b(r)&&r<=t,i=i||b(r)&&(!b(t)||n);return(a!==o||s!==r)&&c&&i?(e=e.removeNumericRefinement(u),b(o)&&(e=e.addNumericRefinement(u,">=",o)),(e=b(r)?e.addNumericRefinement(u,"<=",r):e).resetPage()):null};function f(n,r){return function(){var e=k(0=")||[],1)[0],i=k(i.getNumericRefinement(u,"<=")||[],1)[0],[b(s)?s:-1/0,b(i)?i:1/0]),i=f(r,n?a:{min:void 0,max:void 0});return{refine:i,canRefine:a.min!==a.max,format:c,range:a,sendEvent:(t=e,function(){1===arguments.length&&t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}),widgetParams:F(F({},o),{},{precision:h}),start:s}},dispose:function(e){e=e.state;return r(),e.removeDisjunctiveFacet(u).removeNumericRefinement(u)},getWidgetUiState:function(e,t){var t=t.searchParameters.getNumericRefinements(u),n=t[">="],n=void 0===n?[]:n,t=t["<="],t=void 0===t?[]:t;return 0===n.length&&0===t.length?e:F(F({},e),{},{range:F(F({},e.range),{},E({},u,"".concat(n,":").concat(t)))})},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,e=e.addDisjunctiveFacet(u).setQueryParameters({numericRefinements:F(F({},e.numericRefinements),{},E({},u,{}))}),t=(b(l)&&(e=e.addNumericRefinement(u,">=",l)),b(d)&&(e=e.addNumericRefinement(u,"<=",d)),t.range&&t.range[u]);return e=t&&-1!==t.indexOf(":")&&(n=(t=k(t.split(":").map(parseFloat),2))[0],t=t[1],b(n)&&(!b(l)||l=")).addNumericRefinement(u,">=",n)),b(t))&&(!b(d)||tm,d=p&&!w;return{createURL:function(t){return s(function(e){return r.getWidgetUiState(e,{searchParameters:a.resetPage().toggleFacetRefinement(f,t),helper:c})})},items:u,refine:R,searchForItems:o,isFromSearch:!1,canRefine:0="])&&t.length)return e[">="][0]},b=function(e){return function(e,t){v("click:internal",t),e.setState(s(e.state,t)).search()}.bind(null,e)},R=function(e){var n=e.state,r=e.createURL,i=e.getWidgetUiState,a=e.helper;return function(t){return r(function(e){return i(e,{searchParameters:s(n,t),helper:a})})}},{$$type:Ar,init:function(e){var t=e.instantSearchInstance;n(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return F(F({},e),{},{ratingMenu:F(F({},e.ratingMenu),{},E({},S,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var o,c,u,l,t,n=e.helper,r=e.results,i=e.state,a=e.instantSearchInstance,e=e.createURL,s=[],d=(v||(o=(a={instantSearchInstance:a,helper:n,getRefinedStar:function(){return y(n.state)},attribute:S}).instantSearchInstance,c=a.helper,u=a.getRefinedStar,l=a.attribute,v=function(){for(var e,t,n,r,i=arguments.length,a=new Array(i),s=0;s=").concat(e)]},attribute:l}))}),!1),h=0,f=null==r?void 0:r.getFacetValues(S,{});if(r&&f){f.length,t=0,f.forEach(function(e){e=k(e.name.split("."),2)[1];t=Math.max(t,(void 0===e?"":e).length)});for(var m=y(i),p=1;p<_;p+=1)(function(n){var e=m===n,t=(d=d||e,f.filter(function(e){return Number(e.name)>=n&&Number(e.name)<=_}).map(function(e){return e.count}).reduce(function(e,t){return e+t},0));if(h+=t,m&&!e&&0===t)return;var r=I(new Array(Math.floor(+_))).map(function(e,t){return+t=",t):e.setQueryParameters({numericRefinements:F(F({},e.numericRefinements),{},E({},S,{}))})}};throw new Error(Hr("The `attribute` option is required."));function s(e,t){var n=y(e)===Number(t),e=e.resetPage().removeNumericRefinement(S);return n?e:e.addNumericRefinement(S,"<=",_).addNumericRefinement(S,">=",Number(t))}}}var Or=l({name:"related-products",connector:!0}),Lr=l({name:"search-box",connector:!0}),Mr=l({name:"sort-by",connector:!0}),Hr=l({name:"rating-menu",connector:!0}),Ar="ais.ratingMenu";function Wr(r){var e=1 ":t,t=e.rootPath,a=void 0===t?null:t,t=e.transformItems,o=void 0===t?function(e){return e}:t;if(r&&Array.isArray(r)&&0!==r.length)return n=k(r,1)[0],{$$type:"ais.breadcrumb",init:function(e){u(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){u(F(F({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){l()},getRenderState:function(e,t){return F(F({},e),{},{breadcrumb:F(F({},e.breadcrumb),{},E({},n,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var n=this,r=e.helper,i=e.createURL,t=e.results,e=e.state;var a,e=t&&0!==e.hierarchicalFacets.length?(e=k(e.hierarchicalFacets,1)[0].name,e=(e=t.getFacetValues(e,{}))&&!Array.isArray(e)&&e.data?e.data:[],o((a=function n(e){return e.reduce(function(e,t){return e=t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),Array.isArray(t.data))?e.concat(n(t.data)):e},[])}(e)).map(function(e,t){return{label:e.label,value:t+1===a.length?null:a[t+1].value}}),{results:t})):[];return d.createURL||(d.createURL=function(t){return i(function(e){return n.getWidgetUiState(e,{searchParameters:c(r.state,t),helper:r})})}),d.refine||(d.refine=function(e){r.setState(c(r.state,e)).search()}),{canRefine:0')).replace(new RegExp(u.highlightPostTag,"g"),"".concat(n,">"))}var vi=t("ReverseHighlight");function yi(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ce(r._highlightResult,t)||{}).value,t=void 0===r?"":r,r=vi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return le(rt(xe(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),"".concat(n,">"))}var bi=t("Snippet");function Ri(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ce(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=bi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return t.replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),"".concat(n,">"))}var Si=t("ReverseSnippet");function _i(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ce(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=Si({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return le(rt(xe(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),"".concat(n,">"))}var wi="_ALGOLIA";function Pi(){var e=wi;if("object"===("undefined"==typeof document?"undefined":W(document))&&"string"==typeof document.cookie)for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+Bi[128|63&c]:c<55296||57344<=c?s+=Bi[224|c>>12]+Bi[128|c>>6&63]+Bi[128|63&c]:(o+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(o)),s+=Bi[240|c>>18]+Bi[128|c>>12&63]+Bi[128|c>>6&63]+Bi[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if($i(e)){for(var n=[],r=0;r"===t?(r=1,""):t+i[0]:a?t===a?a="":i+=t:'"'===t||"'"===t?a=t:">"===t?(o(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[c][u+1])?(o(),3===r&&(s=s[0]),(s=(r=s)[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return o(),s}(e)),t),arguments,[])).length?t:t[0]}.bind(L);function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ja(e,t){return e(t={exports:{}},t.exports),t.exports}var ka=Ea(ja(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t.__.length&&t.__.push({__V:ls}),t.__[e]}function vs(e){cs=1;var a,t=Ps,n=void 0,s=gs(as++,2);return s.t=t,s.__c||(s.__=[n?n(e):Ps(void 0,e),function(e){var t=(s.__N||s.__)[0],e=s.t(t,e);t!==e&&(s.__N=[e,s.__[1]],s.__c.setState({}))}],(s.__c=m).u)||(m.u=!0,a=m.shouldComponentUpdate,m.shouldComponentUpdate=function(e,t,n){var r,i;return!s.__c.__H||((r=s.__c.__H.__.filter(function(e){return e.__c})).every(function(e){return!e.__N})||(i=!1,r.forEach(function(e){var t;e.__N&&(t=e.__[0],e.__=e.__N,e.__N=void 0,t!==e.__[0])&&(i=!0)}),!!i))&&(!a||a.call(this,e,t,n))}),s.__N||s.__}function ys(e){return cs=5,t=function(){return{current:e}},n=[],ws((r=gs(as++,7)).__H,n)?(r.__V=t(),r.i=n,r.__h=t,r.__V):r.__;var t,n,r}function bs(){for(var t;t=us.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ss),t.__H.__h.forEach(_s),t.__H.__h=[]}catch(e){t.__H.__h=[],w.__e(e,t.__v)}}w.__b=function(e){"function"!=typeof e.type||e.o||e.type===N?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),m=null,ds&&ds(e)},w.__r=function(e){hs&&hs(e),as=0;e=(m=e.__c).__H;e&&(ss===m?(e.__h=[],m.__h=[],e.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=ls,e.__N=e.i=void 0})):(e.__h.forEach(Ss),e.__h.forEach(_s),e.__h=[])),ss=m},w.diffed=function(e){fs&&fs(e);e=e.__c;e&&e.__H&&(!e.__H.__h.length||1!==us.push(e)&&os===w.requestAnimationFrame||((os=w.requestAnimationFrame)||function(e){function t(){clearTimeout(r),Rs&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);Rs&&(n=requestAnimationFrame(t))})(bs),e.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==ls&&(e.__=e.__V),e.i=void 0,e.__V=ls})),ss=m=null},w.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Ss),t.__h=t.__h.filter(function(e){return!e.__||_s(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],w.__e(e,t.__v)}}),ms&&ms(e,n)},w.unmount=function(e){ps&&ps(e);var t,e=e.__c;e&&e.__H&&(e.__H.__.forEach(function(e){try{Ss(e)}catch(e){t=e}}),e.__H=void 0,t)&&w.__e(t,e.__v)};var Rs="function"==typeof requestAnimationFrame;function Ss(e){var t=m,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),m=t}function _s(e){var t=m;e.__c=e.__(),m=t}function ws(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Ps(e,t){return"function"==typeof t?t(e):t}Ns=(mi={createElement:L,Fragment:N}).createElement,xs=mi.Fragment;var Ns,xs,Is=function(e){var t=e.listRef,n=e.nextButtonRef,r=e.previousButtonRef,i=e.carouselIdRef,a=e.classNames,a=void 0===a?{}:a,s=e.itemComponent,o=void 0===s?Ba({createElement:Ns,Fragment:xs}):s,s=e.previousIconComponent,s=void 0===s?Ka:s,c=e.nextIconComponent,c=void 0===c?za:c,u=e.items,l=e.translations,e=Wa(e,qa),l=function(t){for(var e=1;e=t.current.scrollWidth)},onKeyDown:function(e){"ArrowLeft"===e.key?(e.preventDefault(),h()):"ArrowRight"===e.key&&(e.preventDefault(),f())}},u.map(function(e,t){return Ns("li",{key:e.objectID,className:T(d.item),"aria-roledescription":"slide","aria-label":"".concat(t+1," of ").concat(u.length)},Ns(o,{item:e}))})),Ns("button",{ref:n,title:l.nextButtonTitle,"aria-label":l.nextButtonLabel,"aria-controls":i.current,className:T(d.navigation,d.navigationNext),onClick:function(e){e.preventDefault(),f()}},Ns(c,{createElement:Ns})))};function Cs(e){var t={listRef:ys(null),nextButtonRef:ys(null),previousButtonRef:ys(null),carouselIdRef:ys("ais-Carousel-".concat(Va++))};return L(Is,g({},t,e))}mi=Object.freeze({__proto__:null,carousel:function(){var e=0":7,"=":8,_v:9,"{":10,"&":11,_t:12},S.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l="",d=[],h=!1,f=0,m=0,p="{{",g="}}";function v(){0"==n.tag&&(n.indent=d[r].text.toString()),d.splice(r,1));else t||d.push({tag:"\n"});h=!1,m=d.length}for(t&&(t=t.split(" "),p=t[0],g=t[1]),f=0;f":a,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0},e=(S.walk(e.nodes,n),t.partials[a(e,t)]);e.subs=n.subs,e.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};S.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+i(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=o('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+n(e.n)+'("'+i(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=o('"'+i(e.text)+'"')},"{":s,"&":s},S.walk=function(e,t){for(var n,r=0,i=e.length;r/g,a=/\'/g,o=/\"/g,c=/[&<>\"\']/,d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}),Os=(js.Template=ks.Template,js.template=js.Template,js),Ls=(Fs=(ks={createElement:L,Fragment:N}).createElement,Es=ks.Fragment,Ts={createElement:Fs,Fragment:Es}.createElement,function(e){var r=e.parts,t=e.highlightedTagName,i=void 0===t?"mark":t,t=e.nonHighlightedTagName,a=void 0===t?"span":t,t=e.separator,s=void 0===t?", ":t,t=e.className,n=e.classNames,o=void 0===n?{}:n,n=Wa(e,Ya);return Fs("span",ka({},n,{className:T(o.root,t)}),r.map(function(e,t){var n=t===r.length-1;return Fs(Es,{key:t},e.map(function(e,t){return Fs(Ms,{key:t,classNames:o,highlightedTagName:i,nonHighlightedTagName:a,isHighlighted:e.isHighlighted},e.value)}),!n&&Fs("span",{className:o.separator},s))}))});function Ms(e){var t=e.classNames,n=e.children,r=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return Ts(i?r:e,{className:i?t.highlighted:t.nonHighlighted},n)}var Hs=["classNames"];function As(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Hs);return L(Ls,g({classNames:{root:T("ais-Highlight",t.root),highlighted:T("ais-Highlight-highlighted",t.highlighted),nonHighlighted:T("ais-Highlight-nonHighlighted",t.nonHighlighted),separator:T("ais-Highlight-separator",t.separator)}},e))}var Ws=["hit","attribute","cssClasses"];function Ds(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(As,g({},j(e,Ws),{parts:at(Ce(t._highlightResult,n)||[]).map(function(e){return xe(ae(e.value||""))}),classNames:r}))}var $s=["classNames"];function Bs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,$s);return L(Ls,g({classNames:{root:T("ais-ReverseHighlight",t.root),highlighted:T("ais-ReverseHighlight-highlighted",t.highlighted),nonHighlighted:T("ais-ReverseHighlight-nonHighlighted",t.nonHighlighted),separator:T("ais-ReverseHighlight-separator",t.separator)}},e))}var Us=["hit","attribute","cssClasses"],qs=["isHighlighted"];function Qs(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Bs,g({},j(e,Us),{parts:at(Ce(t._highlightResult,n)||[]).map(function(e){return xe(ae(e.value||"")).map(function(e){var t=e.isHighlighted;return F(F({},j(e,qs)),{},{isHighlighted:!t})})}),classNames:r}))}var Vs=["classNames"];function Ks(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Vs);return L(Ls,g({classNames:{root:T("ais-ReverseSnippet",t.root),highlighted:T("ais-ReverseSnippet-highlighted",t.highlighted),nonHighlighted:T("ais-ReverseSnippet-nonHighlighted",t.nonHighlighted),separator:T("ais-ReverseSnippet-separator",t.separator)}},e))}var zs=["hit","attribute","cssClasses"],Js=["isHighlighted"];function Zs(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Ks,g({},j(e,zs),{parts:at(Ce(t._snippetResult,n)||[]).map(function(e){return xe(ae(e.value||"")).map(function(e){var t=e.isHighlighted;return F(F({},j(e,Js)),{},{isHighlighted:!t})})}),classNames:r}))}var Ys=["classNames"];function Xs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Ys);return L(Ls,g({classNames:{root:T("ais-Snippet",t.root),highlighted:T("ais-Snippet-highlighted",t.highlighted),nonHighlighted:T("ais-Snippet-nonHighlighted",t.nonHighlighted),separator:T("ais-Snippet-separator",t.separator)}},e))}var Gs=["hit","attribute","cssClasses"];function eo(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Xs,g({},j(e,Gs),{parts:at(Ce(t._snippetResult,n)||[]).map(function(e){return xe(ae(e.value||""))}),classNames:r}))}function to(e){var t=e.templates,n=e.templateKey,r=e.compileOptions,i=e.helpers,a=e.data,s=e.bindEvent,e=e.sendEvent,t=t[n];if("string"!=typeof t&&"function"!=typeof t)throw new Error("Template must be 'string' or 'function', was '".concat(W(t),"' (key: ").concat(n,")"));return"function"==typeof t?((n=s||{}).html=Fa,n.sendEvent=e,n.components={Highlight:Ds,ReverseHighlight:Qs,Snippet:eo,ReverseSnippet:Zs},t(a,n)):(s=function(e,t,n){var r=0"}},Ro=l({name:"breadcrumb"}),So=t("Breadcrumb"),_o=function(e){var t=e.hasRefinements,n=e.refine,r=e.cssClasses,e=e.templateProps;return L("div",{className:r.root},L(R,g({},e,{templateKey:"resetLabel",rootTagName:"button",rootProps:{className:T(r.button,!t&&r.disabledButton),onClick:n,disabled:!t},data:{hasRefinements:t}})))},wo={resetLabel:function(){return"Clear refinements"}},Po=l({name:"clear-refinements"}),No=t("ClearRefinements"),xo=function(e){var t=e.items,a=e.cssClasses,e=e.canRefine;return L("div",{className:T(a.root,!e&&a.noRefinementRoot)},L("ul",{className:a.list},t.map(function(i,e){return L("li",{key:"".concat(i.indexName,"-").concat(i.attribute,"-").concat(e),className:a.item},L("span",{className:a.label},(e=i.label).toString().charAt(0).toUpperCase()+e.toString().slice(1),": "),i.refinements.map(function(e){return L("span",{key:(n=e.attribute,r=e.value,[n,e.type,r,e.operator].map(function(e){return e}).filter(Boolean).join(":")),className:a.category},L("span",{className:a.categoryLabel},"query"===e.attribute?L("q",null,e.label):e.label),L("button",{className:a.delete,type:"button",onClick:(t=i.refine.bind(null,e),function(e){Ae(e)||(e.preventDefault(),t())})},"✕"));var t,n,r}))})))},Io=l({name:"current-refinements"}),Co=t("CurrentRefinements"),To=L("p",null,"Your custom HTML Marker"),Fo={HTMLMarker:function(){return To},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},Eo=function(e){var t=e.cssClasses,n=e.enableRefine,r=e.enableRefineControl,i=e.enableClearMapRefinement,a=e.isRefineOnMapMove,s=e.isRefinedWithMap,o=e.hasMapMoveSinceLastRefine,c=e.onRefineToggle,u=e.onRefineClick,l=e.onClearClick,e=e.templateProps;return L(N,null,n&&L("div",null,r&&L("div",{className:t.control},a||!o?L(po,{classNameLabel:T(t.label,a&&t.selectedLabel),classNameInput:t.input,checked:a,onToggle:c},L(R,g({},e,{templateKey:"toggle",rootTagName:"span"}))):L(mo,{className:t.redo,disabled:!o,onClick:u},L(R,g({},e,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&L("div",{className:t.control},L(mo,{className:T(t.redo,!o&&t.disabledRedo),disabled:!o,onClick:u},L(R,g({},e,{templateKey:"redo",rootTagName:"span"})))),i&&s&&L(mo,{className:t.reset,onClick:l},L(R,g({},e,{templateKey:"reset",rootTagName:"span"})))))},jo=function(e){var t=e.refine,e=e.mapInstance;return t({northEast:e.getBounds().getNorthEast().toJSON(),southWest:e.getBounds().getSouthWest().toJSON()})},ko=function(e,r){return e.reduce(function(e,t){var e=k(e,2),n=e[0],e=e[1];return r.includes(t.__id)?[n.concat(t),e]:[n,e.concat(t)]},[[],[]])},Oo=function(e,t){t=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:t.getNorthEast().toJSON(),southWest:t.getSouthWest().toJSON()}},Lo=function(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0},Mo=["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"],Ho=["item"],Ao=["item"],Wo=l({name:"geo-search"}),Do=t("GeoSearch"),ks={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,ignoreCompositionEvents:!1,isSearchStalled:!1,disabled:!1,ariaLabel:"Search",onChange:C,onSubmit:C,onReset:C,refine:C},$o=function(){B(i,An);var r=V(i);function i(){var a;D(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,e=e.max,n=(e-t)/34;return[t].concat(I(et({end:33}).map(function(e){return t+n*(e+1)})),[e])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,e=e.step;if(e)return[].concat(I(et({start:t,end:n,step:e})),[n])}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,i=e.values,e=e.cssClasses,a=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,s=a.min,a=a.max,n=this.computeSnapPoints({min:s,max:a,step:n}),r=!1===r?[]:this.computeDefaultPitPoints({min:s,max:a});return L("div",{className:T(e.root,this.isDisabled&&e.disabledRoot)},L(uu,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:s,max:a,pitComponent:Bc,pitPoints:r,snap:!0,snapPoints:n,values:this.isDisabled?[s,a]:i,disabled:this.isDisabled}))}}]),a}()),du=l({name:"range-slider"}),hu=t("RangeSlider");function fu(e){var t=e.children,n=e.count,r=e.value,i=e.url,e=e.cssClasses;return n?L("a",{className:T(e.link),"aria-label":"".concat(r," & up"),href:i},t):L("div",{className:T(e.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}var mu={item:function(e){var t=e.count,n=e.value,r=e.url,i=e.stars,a=e.cssClasses;return L(fu,{count:t,value:n,url:r,cssClasses:a},i.map(function(e,t){return L("svg",{key:t,className:T(a.starIcon,e?a.fullStarIcon:a.emptyStarIcon),"aria-hidden":"true",width:"24",height:"24"},L("use",{xlinkHref:e?"#ais-RatingMenu-starSymbol":"#ais-RatingMenu-starEmptySymbol"}))}),L("span",{"aria-hidden":"true",className:T(a.label)},"& Up"),t&&L("span",{className:T(a.count)},Sa(t)))}},pu=l({name:"rating-menu"}),_=t("RatingMenu"),gu=L("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}),vu=L("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}),yu=L("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"}),bu=L("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"}),Ru=L("g",{fill:"none","fill-rule":"evenodd"},L("g",{transform:"translate(1 1)","stroke-width":"2"},L("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),L("path",{d:"M36 18c0-9.94-8.06-18-18-18"},L("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))),Su={reset:function(e){return L("svg",{className:e.cssClasses.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},yu)},submit:function(e){return L("svg",{className:e.cssClasses.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},bu)},loadingIndicator:function(e){return L("svg",{"aria-label":"Results are loading",className:e.cssClasses.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},Ru)}},_u={item:function(e){var t=e.cssClasses,n=e.count,r=e.value,i=e.highlighted,a=e.isRefined,e=e.isFromSearch;return L("label",{className:T(t.label)},L("input",{type:"checkbox",className:T(t.checkbox),value:r,defaultChecked:a}),L("span",{className:T(t.labelText),dangerouslySetInnerHTML:e?{__html:i}:void 0},!e&&i),L("span",{className:T(t.count)},Sa(n)))},showMoreText:function(e){return e.isShowingMore?"Show less":"Show more"},searchableNoResults:function(){return"No results"}},wu=l({name:"refinement-list"}),A=t("RefinementList"),Pu=t("SearchBox"),Nu=function(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?L("div",{className:t.root},L(R,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),L("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},L(R,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null},xu={text:function(){return""},button:function(e){return e.isRelevantSorted?"See all results":"See relevant results"}},Iu=l({name:"relevant-sort"}),Cu=t("RelevantSort"),Tu=l({name:"search-box"}),Fu=t("SearchBox"),Eu=l({name:"sort-by"}),ju=t("SortBy"),ku=["nbHits","nbSortedHits","cssClasses","templateProps"],Ou=function(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,e=j(e,ku);return L("div",{className:T(r.root)},L(R,g({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:F({hasManySortedResults:n&&1=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?n.push("".concat(t,"=").concat(t,"_").concat(r[">="])):n.push("".concat(t,"=").concat(t,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))n.push("".concat(t,"=").concat(t,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))n.push("".concat(t,"=").concat(t,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i,a=[];for(i in r["="])r["="].hasOwnProperty(i)&&a.push(r["="][i]);n.push("".concat(t,"=").concat(t,"_").concat(a.join("-")))}}return n.join("&")},r=function(e){var t,n,r;null!==e&&(t=[],n=i(F(F(F({},e.state.disjunctiveFacetsRefinements),e.state.facetsRefinements),e.state.hierarchicalFacetsRefinements)),r=a(e.state.numericRefinements),""!==n&&t.push(n),""!==r&&t.push(r),n=t.join("&"),r="Query: ".concat(e.state.query||"",", ").concat(n),!0===p&&(r+=", Page: ".concat(e.state.page||0)),s!==r)&&(d(n,e.state,e.results),s=r)},c=!(s="")===(void 0===h||h)?!1:!0,t=function(){r(n)},u=function(){r(n)},{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===m&&(document.addEventListener("click",t),window.addEventListener("beforeunload",u))},render:function(e){var t=e.results,e=e.state;!0===c?c=!1:(n={results:t,state:e},o&&clearTimeout(o),o=window.setTimeout(function(){return r(n)},f))},dispose:function(){!0===m&&(document.removeEventListener("click",t),window.removeEventListener("beforeunload",u))},getRenderState:function(e,t){return F(F({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}};throw new Error(vo("The `pushFunction` option is required."))},breadcrumb:function(e){var t,s,o,c,u,e=e||{},n=e.container,r=e.attributes,i=e.separator,a=e.rootPath,l=e.transformItems,d=e.templates,d=void 0===d?{}:d,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=P(n),n={root:T(So(),e.root),noRefinementRoot:T(So({modifierName:"noRefinement"}),e.noRefinementRoot),list:T(So({descendantName:"list"}),e.list),item:T(So({descendantName:"item"}),e.item),selectedItem:T(So({descendantName:"item",modifierName:"selected"}),e.selectedItem),separator:T(So({descendantName:"separator"}),e.separator),link:T(So({descendantName:"link"}),e.link)},s=(e={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,o=e.cssClasses,c=e.renderState,u=e.templates,F(F({},Br(function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,e=e.refine;t?c.templateProps=H({defaultTemplates:bo,templatesConfig:i.templatesConfig,templates:u}):M(L(yo,{canRefine:n,cssClasses:o,createURL:r,items:a,refine:e,templateProps:c.templateProps}),s)},function(){return M(null,t)})({attributes:r,separator:i,rootPath:a,transformItems:l})),{},{$$widgetType:"ais.breadcrumb"});throw new Error(Ro("The `container` option is required."))},clearRefinements:function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.templates,r=void 0===r?{}:r,c=e.includedAttributes,u=e.excludedAttributes,l=e.transformItems,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=P(n),n={root:T(No(),e.root),button:T(No({descendantName:"button"}),e.button),disabledButton:T(No({descendantName:"button",modifierName:"disabled"}),e.disabledButton)},i=(e={containerNode:t,cssClasses:n,renderState:{},templates:r}).containerNode,a=e.cssClasses,s=e.renderState,o=e.templates,F(F({},ln(function(e,t){var n=e.refine,r=e.canRefine,e=e.instantSearchInstance;t?s.templateProps=H({defaultTemplates:wo,templatesConfig:e.templatesConfig,templates:o}):M(L(_o,{refine:n,cssClasses:a,hasRefinements:r,templateProps:s.templateProps}),i)},function(){return M(null,t)})({includedAttributes:c,excludedAttributes:u,transformItems:l})),{},{$$widgetType:"ais.clearRefinements"});throw new Error(Po("The `container` option is required."))},configure:function(e){return F(F({},an(C)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t,e=e||{},n=e.container,r=e.includedAttributes,i=e.excludedAttributes,a=e.cssClasses,a=void 0===a?{}:a,e=e.transformItems;if(n)return t=P(n),n={root:T(Co(),a.root),noRefinementRoot:T(Co({modifierName:"noRefinement"}),a.noRefinementRoot),list:T(Co({descendantName:"list"}),a.list),item:T(Co({descendantName:"item"}),a.item),label:T(Co({descendantName:"label"}),a.label),category:T(Co({descendantName:"category"}),a.category),categoryLabel:T(Co({descendantName:"categoryLabel"}),a.categoryLabel),delete:T(Co({descendantName:"delete"}),a.delete)},F(F({},fn(fo,function(){return M(null,t)})({container:t,cssClasses:n,includedAttributes:r,excludedAttributes:i,transformItems:e})),{},{$$widgetType:"ais.currentRefinements"});throw new Error(Io("The `container` option is required."))},geoSearch:function(e){var t,n,r,i,a,u,e=e||{},s=e.initialZoom,s=void 0===s?1:s,o=e.initialPosition,o=void 0===o?{lat:0,lng:0}:o,c=e.templates,c=void 0===c?{}:c,l=e.cssClasses,l=void 0===l?{}:l,d=e.builtInMarker,d=void 0===d?{}:d,h=e.customHTMLMarker,f=e.enableRefine,f=void 0===f||f,m=e.enableClearMapRefinement,m=void 0===m||m,p=e.enableRefineControl,p=void 0===p||p,g=e.container,v=e.googleReference,e=j(e,Mo);if(!g)throw new Error(Wo("The `container` option is required."));if(v)return t=P(g),g={root:T(Do(),l.root),tree:Do({descendantName:"tree"}),map:T(Do({descendantName:"map"}),l.map),control:T(Do({descendantName:"control"}),l.control),label:T(Do({descendantName:"label"}),l.label),selectedLabel:T(Do({descendantName:"label",modifierName:"selected"}),l.selectedLabel),input:T(Do({descendantName:"input"}),l.input),redo:T(Do({descendantName:"redo"}),l.redo),disabledRedo:T(Do({descendantName:"redo",modifierName:"disabled"}),l.disabledRedo),reset:T(Do({descendantName:"reset"}),l.reset)},n=F(F({},Fo),c),r=F(F({},{createOptions:function(){return{}},events:{}}),d),i=(Boolean(h)||Boolean(c.HTMLMarker))&&F(F({},{createOptions:function(){return{}},events:{}}),h),u=v,a=function(){B(c,u.maps.OverlayView);var o=V(c);function c(e){var t,n=e.__id,r=e.position,i=e.map,a=e.template,s=e.className,e=e.anchor,e=void 0===e?{x:0,y:0}:e;return D(this,c),E(y(t=o.call(this)),"__id",void 0),E(y(t),"anchor",void 0),E(y(t),"offset",void 0),E(y(t),"listeners",void 0),E(y(t),"latLng",void 0),E(y(t),"element",void 0),t.__id=n,t.anchor=e,t.listeners={},t.latLng=new u.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute","object"===W(a)?M(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return $(c,[{key:"onAdd",value:function(){this.getPanes().overlayMouseTarget.appendChild(this.element);var e=this.element.getBoundingClientRect();this.offset={x:this.anchor.x+e.width/2,y:this.anchor.y+e.height},this.element.style.width="".concat(e.width,"px")}},{key:"draw",value:function(){var e=this.getProjection().fromLatLngToDivPixel(this.latLng);this.element.style.left="".concat(Math.round(e.x-this.offset.x),"px"),this.element.style.top="".concat(Math.round(e.y-this.offset.y),"px"),this.element.style.zIndex=String(parseInt(this.element.style.top,10))}},{key:"onRemove",value:function(){var t=this;this.element&&(this.element.parentNode.removeChild(this.element),Object.keys(this.listeners).forEach(function(e){t.element.removeEventListener(e,t.listeners[e])}),delete this.element,delete this.listeners)}},{key:"addListener",value:function(e,t){this.listeners[e]=t;var n=this.element;return n.addEventListener(e,t),{remove:function(){return n.removeEventListener(e,t)}}}},{key:"getPosition",value:function(){return this.latLng}}]),c}(),l=i?function(e){var t=e.item,e=j(e,Ao);return new a(F(F(F({},i.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc,className:T(Do({descendantName:"marker"})),template:to({templateKey:"HTMLMarker",templates:n,data:t})}))}:function(e){var t=e.item,e=j(e,Ho);return new v.maps.Marker(F(F(F({},r.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc}))},d=i||r,F(F({},Yr(go,function(){return M(null,t)})(F(F({},e),{},{templates:n,renderState:{},container:t,googleReference:v,initialZoom:s,initialPosition:o,cssClasses:g,createMarker:l,markerOptions:d,enableRefine:f,enableClearMapRefinement:m,enableRefineControl:p}))),{},{$$widgetType:"ais.geoSearch"});throw new Error(Wo("The `googleReference` option is required."))},hierarchicalMenu:function(e){var t,c,u,l,d,h,e=e||{},n=e.container,r=e.attributes,i=e.separator,a=e.rootPath,s=e.showParentLevel,o=e.limit,f=e.showMore,f=void 0!==f&&f,m=e.showMoreLimit,p=e.sortBy,g=e.transformItems,v=e.templates,v=void 0===v?{}:v,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=P(n),n={root:T(S(),e.root),noRefinementRoot:T(S({modifierName:"noRefinement"}),e.noRefinementRoot),list:T(S({descendantName:"list"}),e.list),childList:T(S({descendantName:"list",modifierName:"child"}),e.childList),item:T(S({descendantName:"item"}),e.item),selectedItem:T(S({descendantName:"item",modifierName:"selected"}),e.selectedItem),parentItem:T(S({descendantName:"item",modifierName:"parent"}),e.parentItem),link:T(S({descendantName:"link"}),e.link),selectedItemLink:T(S({descendantName:"link",modifierName:"selected"}),e.selectedItemLink),label:T(S({descendantName:"label"}),e.label),count:T(S({descendantName:"count"}),e.count),showMore:T(S({descendantName:"showMore"}),e.showMore),disabledShowMore:T(S({descendantName:"showMore",modifierName:"disabled"}),e.disabledShowMore)},c=(e={cssClasses:n,containerNode:t,templates:v,showMore:f,renderState:{}}).cssClasses,u=e.containerNode,l=e.showMore,d=e.templates,h=e.renderState,F(F({},bn(function(e,t){var n=e.createURL,r=e.items,i=e.refine,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,e=e.canToggleShowMore;t?h.templateProps=H({defaultTemplates:zo,templatesConfig:a.templatesConfig,templates:d}):M(L(Ko,{createURL:n,cssClasses:c,facetValues:r,templateProps:h.templateProps,toggleRefinement:i,showMore:l,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),u)},function(){return M(null,t)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:o,showMore:f,showMoreLimit:m,sortBy:p,transformItems:g})),{},{$$widgetType:"ais.hierarchicalMenu"});throw new Error(Jo("The `container` option is required."))},hits:function(e){var t,u,l,d,h,e=e||{},n=e.container,r=e.escapeHTML,i=e.transformItems,a=e.templates,a=void 0===a?{}:a,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=P(n),u=(n={containerNode:t,cssClasses:e,renderState:{},templates:a}).renderState,l=n.cssClasses,d=n.containerNode,h=n.templates,F(F({},xn(wn)(function(e,t){var i,n=e.items,r=e.results,a=e.instantSearchInstance,s=e.insights,o=e.bindEvent,c=e.sendEvent,e=e.banner;t?u.templateProps=H({defaultTemplates:Zo,templatesConfig:a.templatesConfig,templates:h}):(i=Gn({insights:s,sendEvent:c}),M(L(Go,{hits:n,itemComponent:function(e){var t=e.hit,n=e.index,r=j(e,Yo);return L(R,g({},u.templateProps,{templateKey:"item",rootTagName:"li",rootProps:F(F({},r),{},{onClick:function(e){i(e),r.onClick()},onAuxClick:function(e){i(e),r.onAuxClick()}}),data:F(F({},t),{},{get __hitIndex(){return n}}),bindEvent:o,sendEvent:c}))},sendEvent:c,classNames:l,emptyComponent:function(e){e=g({},(Q(e),e));return L(R,g({},u.templateProps,{rootProps:e,templateKey:"empty",data:r,rootTagName:"fragment"}))},banner:e,bannerComponent:h.banner?function(e){return L(R,g({},u.templateProps,{templateKey:"banner",data:e,rootTagName:"fragment"}))}:void 0}),d))},function(){return M(null,t)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"});throw new Error(Xo("The `container` option is required."))},hitsPerPage:function(e){var t,r,i,e=e||{},n=e.container,a=e.items,s=e.cssClasses,s=void 0===s?{}:s,e=e.transformItems;if(n)return t=P(n),n={root:T(ic(),s.root),select:T(ic({descendantName:"select"}),s.select),option:T(ic({descendantName:"option"}),s.option)},r=(s={containerNode:t,cssClasses:n}).containerNode,i=s.cssClasses,F(F({},tr(function(e,t){var n=e.items,e=e.refine;t||(t=(we(n,function(e){return e.isRefined})||{}).value,M(L("div",{className:i.root},L(tc,{cssClasses:i,currentValue:t,options:n,setValue:e})),r))},function(){return M(null,t)})({items:a,transformItems:e})),{},{$$widgetType:"ais.hitsPerPage"});throw new Error(rc("The `container` option is required."))},index:ba,infiniteHits:function(e){var t,h,f,m,p,g,e=e||{},n=e.container,r=e.escapeHTML,i=e.transformItems,a=e.templates,a=void 0===a?{}:a,s=e.cssClasses,s=void 0===s?{}:s,o=e.showPrevious,e=e.cache;if(n)return t=P(n),n={root:T(cc(),s.root),emptyRoot:T(cc({modifierName:"empty"}),s.emptyRoot),item:T(cc({descendantName:"item"}),s.item),list:T(cc({descendantName:"list"}),s.list),loadPrevious:T(cc({descendantName:"loadPrevious"}),s.loadPrevious),disabledLoadPrevious:T(cc({descendantName:"loadPrevious",modifierName:"disabled"}),s.disabledLoadPrevious),loadMore:T(cc({descendantName:"loadMore"}),s.loadMore),disabledLoadMore:T(cc({descendantName:"loadMore",modifierName:"disabled"}),s.disabledLoadMore),bannerRoot:T(cc({descendantName:"banner"}),s.bannerRoot),bannerImage:T(cc({descendantName:"banner-image"}),s.bannerImage),bannerLink:T(cc({descendantName:"banner-link"}),s.bannerLink)},h=(s={containerNode:t,cssClasses:n,templates:a,showPrevious:o,renderState:{}}).containerNode,f=s.cssClasses,m=s.renderState,p=s.templates,g=s.showPrevious,F(F({},xn(cr)(function(e,t){var n=e.items,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent,d=e.sendEvent,e=e.banner;t?m.templateProps=H({defaultTemplates:sc,templatesConfig:c.templatesConfig,templates:p}):M(L(ac,{cssClasses:f,hits:n,results:r,hasShowPrevious:g,showPrevious:a,showMore:i,templateProps:m.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:d,bindEvent:l,banner:e}),h)},function(){return M(null,t)})({escapeHTML:r,transformItems:i,showPrevious:o,cache:e})),{},{$$widgetType:"ais.infiniteHits"});throw new Error(oc("The `container` option is required."))},menu:function(e){var t,c,u,l,d,h,e=e||{},n=e.container,r=e.attribute,i=e.sortBy,a=e.limit,s=e.showMore,o=e.showMoreLimit,f=e.cssClasses,f=void 0===f?{}:f,m=e.templates,m=void 0===m?{}:m,e=e.transformItems;if(n)return t=P(n),n={root:T(dc(),f.root),noRefinementRoot:T(dc({modifierName:"noRefinement"}),f.noRefinementRoot),list:T(dc({descendantName:"list"}),f.list),item:T(dc({descendantName:"item"}),f.item),selectedItem:T(dc({descendantName:"item",modifierName:"selected"}),f.selectedItem),link:T(dc({descendantName:"link"}),f.link),label:T(dc({descendantName:"label"}),f.label),count:T(dc({descendantName:"count"}),f.count),showMore:T(dc({descendantName:"showMore"}),f.showMore),disabledShowMore:T(dc({descendantName:"showMore",modifierName:"disabled"}),f.disabledShowMore)},c=(f={containerNode:t,cssClasses:n,renderState:{},templates:m,showMore:s}).containerNode,u=f.cssClasses,l=f.renderState,d=f.templates,h=f.showMore,F(F({},ur(function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,e=e.canToggleShowMore;t?l.templateProps=H({defaultTemplates:uc,templatesConfig:a.templatesConfig,templates:d}):(t=r.map(function(e){return F(F({},e),{},{url:i(e.value)})}),M(L(Ko,{createURL:i,cssClasses:u,facetValues:t,showMore:h,templateProps:l.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),c))},function(){return M(null,t)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:e})),{},{$$widgetType:"ais.menu"});throw new Error(lc("The `container` option is required."))},menuSelect:function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.attribute,c=e.sortBy,c=void 0===c?["name:asc"]:c,u=e.limit,u=void 0===u?10:u,l=e.cssClasses,l=void 0===l?{}:l,d=e.templates,d=void 0===d?{}:d,e=e.transformItems;if(n)return t=P(n),n={root:T(pc(),l.root),noRefinementRoot:T(pc({modifierName:"noRefinement"}),l.noRefinementRoot),select:T(pc({descendantName:"select"}),l.select),option:T(pc({descendantName:"option"}),l.option)},i=(l={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,a=l.cssClasses,s=l.renderState,o=l.templates,F(F({},ur(function(e,t){var n=e.refine,r=e.items,e=e.instantSearchInstance;t?s.templateProps=H({defaultTemplates:fc,templatesConfig:e.templatesConfig,templates:o}):M(L(hc,{cssClasses:a,items:r,refine:n,templateProps:s.templateProps}),i)},function(){return M(null,t)})({attribute:r,limit:u,sortBy:c,transformItems:e})),{},{$$widgetType:"ais.menuSelect"});throw new Error(mc("The `container` option is required."))},numericMenu:function(e){var t,a,s,o,c,u,e=e||{},n=e.container,r=e.attribute,i=e.items,l=e.cssClasses,l=void 0===l?{}:l,d=e.templates,d=void 0===d?{}:d,e=e.transformItems;if(n)return t=P(n),n={root:T(yc(),l.root),noRefinementRoot:T(yc({modifierName:"noRefinement"}),l.noRefinementRoot),list:T(yc({descendantName:"list"}),l.list),item:T(yc({descendantName:"item"}),l.item),selectedItem:T(yc({descendantName:"item",modifierName:"selected"}),l.selectedItem),label:T(yc({descendantName:"label"}),l.label),radio:T(yc({descendantName:"radio"}),l.radio),labelText:T(yc({descendantName:"labelText"}),l.labelText)},a=(l={containerNode:t,attribute:r,cssClasses:n,renderState:{},templates:d}).containerNode,s=l.attribute,o=l.cssClasses,c=l.renderState,u=l.templates,F(F({},fr(function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,e=e.items;t?c.templateProps=H({defaultTemplates:gc,templatesConfig:r.templatesConfig,templates:u}):M(L(Ko,{createURL:n,cssClasses:o,facetValues:e,templateProps:c.templateProps,toggleRefinement:i,attribute:s}),a)},function(){return M(null,t)})({attribute:r,items:i,transformItems:e})),{},{$$widgetType:"ais.numericMenu"});throw new Error(vc("The `container` option is required."))},pagination:function(e){var t,u,l,d,h,f,m,p,g,e=e||{},n=e.container,r=e.templates,r=void 0===r?{}:r,i=e.cssClasses,i=void 0===i?{}:i,a=e.totalPages,s=e.padding,o=e.showFirst,o=void 0===o||o,c=e.showLast,c=void 0===c||c,v=e.showPrevious,v=void 0===v||v,y=e.showNext,y=void 0===y||y,e=e.scrollTo,e=void 0===e?"body":e;if(n)return t=P(n),e=!1!==(n=!0===e?"body":e)&&P(n),n={root:T(Sc(),i.root),noRefinementRoot:T(Sc({modifierName:"noRefinement"}),i.noRefinementRoot),list:T(Sc({descendantName:"list"}),i.list),item:T(Sc({descendantName:"item"}),i.item),firstPageItem:T(Sc({descendantName:"item",modifierName:"firstPage"}),i.firstPageItem),lastPageItem:T(Sc({descendantName:"item",modifierName:"lastPage"}),i.lastPageItem),previousPageItem:T(Sc({descendantName:"item",modifierName:"previousPage"}),i.previousPageItem),nextPageItem:T(Sc({descendantName:"item",modifierName:"nextPage"}),i.nextPageItem),pageItem:T(Sc({descendantName:"item",modifierName:"page"}),i.pageItem),selectedItem:T(Sc({descendantName:"item",modifierName:"selected"}),i.selectedItem),disabledItem:T(Sc({descendantName:"item",modifierName:"disabled"}),i.disabledItem),link:T(Sc({descendantName:"link"}),i.link)},i=F(F({},wc),r),u=(r={containerNode:t,cssClasses:n,templates:i,showFirst:o,showLast:c,showPrevious:v,showNext:y,scrollToNode:e}).containerNode,l=r.cssClasses,d=r.templates,h=r.showFirst,f=r.showLast,m=r.showPrevious,p=r.showNext,g=r.scrollToNode,F(F({},yr(function(e,t){var n=e.createURL,r=e.currentRefinement,i=e.nbPages,a=e.pages,s=e.isFirstPage,o=e.isLastPage,c=e.refine;t||M(L(bc,{createURL:n,cssClasses:l,currentPage:r,templates:d,nbPages:i,pages:a,isFirstPage:s,isLastPage:o,setCurrentPage:function(e){c(e),!1!==g&&g.scrollIntoView()},showFirst:h,showLast:f,showPrevious:m,showNext:p}),u)},function(){return M(null,t)})({totalPages:a,padding:s})),{},{$$widgetType:"ais.pagination"});throw new Error(_c("The `container` option is required."))},panel:function(e){var e=e||{},t=e.templates,r=void 0===t?{}:t,t=e.hidden,d=void 0===t?function(){return!1}:t,t=e.collapsed,e=e.cssClasses,e=void 0===e?{}:e,h=document.createElement("div"),f=Boolean(t),m="function"==typeof t?t:function(){return!1},p={root:T(Cc(),e.root),noRefinementRoot:T(Cc({modifierName:"noRefinement"}),e.noRefinementRoot),collapsibleRoot:T(Cc({modifierName:"collapsible"}),e.collapsibleRoot),collapsedRoot:T(Cc({modifierName:"collapsed"}),e.collapsedRoot),collapseButton:T(Cc({descendantName:"collapseButton"}),e.collapseButton),collapseIcon:T(Cc({descendantName:"collapseIcon"}),e.collapseIcon),body:T(Cc({descendantName:"body"}),e.body),header:T(Cc({descendantName:"header"}),e.header),footer:T(Cc({descendantName:"footer"}),e.footer)};return function(n){return function(e){var i,a,t,s,o,c,u,l;if(e&&e.container)return i=P(e.container),t={containerNode:i,bodyContainerNode:h,cssClasses:p,templates:F(F({},{collapseButtonText:function(e){e=e.collapsed;return'')}}),r)},s=t.containerNode,o=t.bodyContainerNode,c=t.cssClasses,u=t.templates,a=function(e){var t=e.options,n=e.hidden,r=e.collapsible,e=e.collapsed;M(L(Pc,{cssClasses:c,hidden:n,collapsible:r,isCollapsed:e,templates:u,data:t,bodyElement:o}),s)},l=n(F(F({},e),{},{container:h})),F(F({},l),{},{init:function(){for(var e=arguments.length,t=new Array(e),n=0;n