From e83c46e8cfe3b78acd9f26a3f447228396460c68 Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 30 May 2024 10:19:15 +0200 Subject: [PATCH] instantsearch.js v4.68.0 -> v4.70.0 --- THIRD_PARTY.txt | 2 +- modules/internal/targets.js | 2 +- pages/updates/updates.html | 1 + .../instantsearch.js/4.68.0/instantsearch.production.min.jsm | 3 --- .../instantsearch.js/4.70.0/instantsearch.production.min.jsm | 3 +++ 5 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 resources/instantsearch.js/4.68.0/instantsearch.production.min.jsm create mode 100644 resources/instantsearch.js/4.70.0/instantsearch.production.min.jsm diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt index d26ef361..3c152d10 100644 --- a/THIRD_PARTY.txt +++ b/THIRD_PARTY.txt @@ -739,7 +739,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.9/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.68.0/instantsearch.production.min.js +https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/4.70.0/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 ac1b8ae3..53f03c04 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -233,7 +233,7 @@ targets.setLastVersion = function (type, version) { if (type.startsWith('/instantsearch.css/7.')) return '7.4.5'; if (type.startsWith('/instantsearch.css/8.')) return '8.2.0'; if (type.startsWith('/instantsearch.js/3.')) return '3.7.0'; - if (type.startsWith('/instantsearch.js/4.')) return '4.68.0'; + if (type.startsWith('/instantsearch.js/4.')) return '4.70.0'; 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 4ab13057..1c9845fa 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -35,6 +35,7 @@
  • dexie v4.0.4 -> v4.0.7
  • hls.js v1.5.8 -> v1.5.9
  • instantsearch.css v8.1.0 -> v8.2.0
  • +
  • instantsearch.js v4.68.0 -> v4.70.0
  • diff --git a/resources/instantsearch.js/4.68.0/instantsearch.production.min.jsm b/resources/instantsearch.js/4.68.0/instantsearch.production.min.jsm deleted file mode 100644 index 7fced652..00000000 --- a/resources/instantsearch.js/4.68.0/instantsearch.production.min.jsm +++ /dev/null @@ -1,3 +0,0 @@ -/*! InstantSearch.js 4.68.0 | © 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";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 T(t){for(var e=1;ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n":">",'"':""","'":"'"},X=/[&<>"']/g,G=RegExp(X.source);var ee={"&":"&","<":"<",">":">",""":'"',"'":"'"},te=/&(amp|quot|lt|gt|#39);/g,ne=RegExp(te.source);function re(e){return e&&ne.test(e)?e.replace(te,function(e){return ee[e]}):e}function ie(e){if("object"===A(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 ae={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},u={highlightPreTag:"",highlightPostTag:""};function se(e){return((e=e)&&G.test(e)?e.replace(X,function(e){return Y[e]}):e).replace(new RegExp(ae.highlightPreTag,"g"),u.highlightPreTag).replace(new RegExp(ae.highlightPostTag,"g"),u.highlightPostTag)}function oe(n){return ie(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return T(T({},e),{},E({},t,oe(n[t])))},{}):Array.isArray(n)?n.map(oe):T(T({},n),{},{value:se(n.value)})}function ce(e){return void 0===e.__escaped&&((e=e.map(function(e){e=m({},(Q(e),e));return e._highlightResult&&(e._highlightResult=oe(e._highlightResult)),e._snippetResult&&(e._snippetResult=oe(e._snippetResult)),e})).__escaped=!0),e}function ue(e){var t=u.highlightPreTag,n=u.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}function le(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=ye(t.findAnswers,p),y(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(t){var n=this,e=t.state.query;e?(s=[],o=!0,y(T(T({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!1),r(u(e,l,T(T({},v),{},{nbHits:f,attributesForPrediction:d}))).then(function(e){e&&(g&&0=":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 vt(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?Rt:t,t=e.transformItems,m=void 0===t?function(e){return e}:t;if(!l||!Array.isArray(l)||0===l.length)throw new Error(bt("The `attributes` option expects an array of strings."));if(!0===h&&s<=a)throw new Error(bt("The `showMoreLimit` option must be greater than `limit`."));var p,g,v=j(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(T(T({},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(T(T({},(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 T(T({},e),{},{hierarchicalMenu:T(T({},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||le({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===Rt}))&&!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 T(T({},k(e,dn)),{},{label:t,value:n})}),{results:i})),{items:c,createURL:h,refine:f,sendEvent:d,canRefine:0="]&&t[">="][0]||"",t=t["<="]&&t["<="][0]||"",e=T(T({},e),{},{numericMenu:T(T({},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:T(T({},e.numericRefinements),{},E({},p,{}))});return t?-1===t.indexOf(":")?e.addNumericRefinement(p,"=",Number(t)):(n=(t=j(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 T(T({},e),{},{numericMenu:T(T({},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=vn(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:vn(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:gn(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=V(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(pn("The `items` option expects an array of objects."))}}var pn=l({name:"numeric-menu",connector:!0});function gn(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end?n.start===n.end?yn(r,"=",n.start):yn(r,">=",n.start)&&yn(r,"<=",n.end):void 0!==n.start?yn(r,">=",n.start):void 0!==n.end?yn(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function vn(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(gn(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=yn(r,"=",n.start)?e.removeNumericRefinement(t,"=",n.start):e.addNumericRefinement(t,"=",n.start)}return void 0!==n.start&&(e=(e=yn(r,">=",n.start)?e.removeNumericRefinement(t,">=",n.start):e).addNumericRefinement(t,">=",n.start)),"number"==typeof(e=void 0!==n.end?(e=yn(r,"<=",n.end)?e.removeNumericRefinement(t,"<=",n.end):e).addNumericRefinement(t,"<=",n.end):e).page&&(e.page=0),e}function yn(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function bn(n){var t=1=")||[],1)[0],s=j(e.getNumericRefinement(u,"<=")||[],1)[0],o=void 0===n||""===n,c=void 0===r||""===r,n=wn({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=j(0=")||[],1)[0],i=j(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:T(T({},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:T(T({},e),{},{range:T(T({},e.range),{},E({},u,"".concat(n,":").concat(t)))})},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,e=e.addDisjunctiveFacet(u).setQueryParameters({numericRefinements:T(T({},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=j(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:Hn,init:function(e){var t=e.instantSearchInstance;n(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return T(T({},e),{},{ratingMenu:T(T({},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=j(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=w(new Array(Math.floor(+_))).map(function(e,t){return+t=",t):e.setQueryParameters({numericRefinements:T(T({},e.numericRefinements),{},E({},S,{}))})}};throw new Error(On("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 Mn=l({name:"search-box",connector:!0}),Ln=l({name:"sort-by",connector:!0}),On=l({name:"rating-menu",connector:!0}),Hn="ais.ratingMenu";function An(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=j(r,1)[0],{$$type:"ais.breadcrumb",init:function(e){u(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){u(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){l()},getRenderState:function(e,t){return T(T({},e),{},{breadcrumb:T(T({},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=j(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: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(Gn(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(!Gn(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||Gn(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(er(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 Rr(e){return Array.isArray(e)?e.filter(Boolean):[]}function Sr(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})):[]},Nr=function(m){return function(e,t){function n(e,s,t){var n,o=e;if(0")}function Kr(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(qr("The `hit` option is required."));if(s)return t=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ie(a,t),i=n.score;return Array.isArray(r)?[].concat(w(e),[r.map(function(e){return Vr({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(w(e),[Vr({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),e=T({},e(new g.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:t}))),T(T({},Qr(n,r)({searchParameters:e})),{},{$$type:"ais.configureRelatedItems"});throw new Error(qr("The `matchingPatterns` option is required."))}}var zr=l({name:"autocomplete",connector:!0}),Jr=l({name:"query-rules",connector:!0});function Zr(e){var i,a,s,t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,o=this.transformRuleContexts,e=e.state,c=e.ruleContexts||[],r=(i=(r={helper:t,sharedHelperState:e,trackedFilters:r}).helper,a=r.sharedHelperState,s=r.trackedFilters,Object.keys(s).reduce(function(e,t){var n=Ce(i.lastResults||{},a,!0).filter(function(e){return e.attribute===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(w(e),w(n.filter(function(e){return r.includes(e)}).map(function(e){return"ais-".concat(t,"-").concat(e).replace(/[^a-z0-9-_]+/gi,"_")})))},[])),o=o([].concat(w(n),w(r))).slice(0,10);Oe(c,o)||t.overrideStateWithoutTriggeringChangeEvent(T(T({},e),{},{ruleContexts:o}))}function Yr(l){var r=1')).replace(new RegExp(u.highlightPostTag,"g"),""))}var ii=i("ReverseHighlight");function ai(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=(Ie(r._highlightResult,t)||{}).value,t=void 0===r?"":r,r=ii({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return ue(nt(Ne(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var si=i("Snippet");function oi(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=(Ie(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=si({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"),""))}var ci=i("ReverseSnippet");function ui(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=(Ie(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=ci({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return ue(nt(Ne(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var li="_ALGOLIA";function di(){var e=li;if("object"===("undefined"==typeof document?"undefined":A(document))&&"string"==typeof document.cookie)for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+Ti[128|63&c]:c<55296||57344<=c?s+=Ti[224|c>>12]+Ti[128|c>>6&63]+Ti[128|63&c]:(o+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(o)),s+=Ti[240|c>>18]+Ti[128|c>>12&63]+Ti[128|c>>6&63]+Ti[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(Ci(e)){for(var n=[],r=0;r":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)}}),Pa=(e.Template=wa.Template,e.template=e.Template,e),Na=function(e,t,n,r){t[0]=0;for(var i=1;i"===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(M),Ea=(Fa=(wa={createElement:M,Fragment:x}).createElement,Ca=wa.Fragment,Ia={createElement:Fa,Fragment:Ca}.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=Ra(e,Sa);return Fa("span",ya({},n,{className:F(o.root,t)}),r.map(function(e,t){var n=t===r.length-1;return Fa(Ca,{key:t},e.map(function(e,t){return Fa(ka,{key:t,classNames:o,highlightedTagName:i,nonHighlightedTagName:a,isHighlighted:e.isHighlighted},e.value)}),!n&&Fa("span",{className:o.separator},s))}))});function ka(e){var t=e.classNames,n=e.children,r=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return Ia(i?r:e,{className:i?t.highlighted:t.nonHighlighted},n)}var ja=["classNames"];function Ma(e){var t=e.classNames,t=void 0===t?{}:t,e=k(e,ja);return M(Ea,m({classNames:{root:F("ais-Highlight",t.root),highlighted:F("ais-Highlight-highlighted",t.highlighted),nonHighlighted:F("ais-Highlight-nonHighlighted",t.nonHighlighted),separator:F("ais-Highlight-separator",t.separator)}},e))}var La=["hit","attribute","cssClasses"];function Oa(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return M(Ma,m({},k(e,La),{parts:it(Ie(t._highlightResult,n)||[]).map(function(e){return Ne(re(e.value||""))}),classNames:r}))}var Ha=["classNames"];function Aa(e){var t=e.classNames,t=void 0===t?{}:t,e=k(e,Ha);return M(Ea,m({classNames:{root:F("ais-ReverseHighlight",t.root),highlighted:F("ais-ReverseHighlight-highlighted",t.highlighted),nonHighlighted:F("ais-ReverseHighlight-nonHighlighted",t.nonHighlighted),separator:F("ais-ReverseHighlight-separator",t.separator)}},e))}var Wa=["hit","attribute","cssClasses"],Da=["isHighlighted"];function Ua(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return M(Aa,m({},k(e,Wa),{parts:it(Ie(t._highlightResult,n)||[]).map(function(e){return Ne(re(e.value||"")).map(function(e){var t=e.isHighlighted;return T(T({},k(e,Da)),{},{isHighlighted:!t})})}),classNames:r}))}var $a=["classNames"];function Ba(e){var t=e.classNames,t=void 0===t?{}:t,e=k(e,$a);return M(Ea,m({classNames:{root:F("ais-ReverseSnippet",t.root),highlighted:F("ais-ReverseSnippet-highlighted",t.highlighted),nonHighlighted:F("ais-ReverseSnippet-nonHighlighted",t.nonHighlighted),separator:F("ais-ReverseSnippet-separator",t.separator)}},e))}var Qa=["hit","attribute","cssClasses"],qa=["isHighlighted"];function Va(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return M(Ba,m({},k(e,Qa),{parts:it(Ie(t._snippetResult,n)||[]).map(function(e){return Ne(re(e.value||"")).map(function(e){var t=e.isHighlighted;return T(T({},k(e,qa)),{},{isHighlighted:!t})})}),classNames:r}))}var Ka=["classNames"];function za(e){var t=e.classNames,t=void 0===t?{}:t,e=k(e,Ka);return M(Ea,m({classNames:{root:F("ais-Snippet",t.root),highlighted:F("ais-Snippet-highlighted",t.highlighted),nonHighlighted:F("ais-Snippet-nonHighlighted",t.nonHighlighted),separator:F("ais-Snippet-separator",t.separator)}},e))}var Ja=["hit","attribute","cssClasses"];function Za(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return M(za,m({},k(e,Ja),{parts:it(Ie(t._snippetResult,n)||[]).map(function(e){return Ne(re(e.value||""))}),classNames:r}))}function Ya(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(A(t),"' (key: ").concat(n,")"));return"function"==typeof t?((n=s||{}).html=Ta,n.sendEvent=e,n.components={Highlight:Oa,ReverseHighlight:Ua,Snippet:Za,ReverseSnippet:Va},t(a,n)):(s=function(e,t,n){var r=0"}},ps=l({name:"breadcrumb"}),gs=i("Breadcrumb"),vs=function(e){var t=e.hasRefinements,n=e.refine,r=e.cssClasses,e=e.templateProps;return M("div",{className:r.root},M(v,m({},e,{templateKey:"resetLabel",rootTagName:"button",rootProps:{className:F(r.button,!t&&r.disabledButton),onClick:n,disabled:!t},data:{hasRefinements:t}})))},ys={resetLabel:function(){return"Clear refinements"}},bs=l({name:"clear-refinements"}),Rs=i("ClearRefinements"),Ss=function(e){var t=e.items,a=e.cssClasses,e=e.canRefine;return M("div",{className:F(a.root,!e&&a.noRefinementRoot)},M("ul",{className:a.list},t.map(function(i,e){return M("li",{key:"".concat(i.indexName,"-").concat(i.attribute,"-").concat(e),className:a.item},M("span",{className:a.label},(e=i.label).toString().charAt(0).toUpperCase()+e.toString().slice(1),": "),i.refinements.map(function(e){return M("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},M("span",{className:a.categoryLabel},"query"===e.attribute?M("q",null,e.label):e.label),M("button",{className:a.delete,type:"button",onClick:(t=i.refine.bind(null,e),function(e){He(e)||(e.preventDefault(),t())})},"✕"));var t,n,r}))})))},_s=l({name:"current-refinements"}),ws=i("CurrentRefinements"),Ps=M("p",null,"Your custom HTML Marker"),Ns={HTMLMarker:function(){return Ps},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},xs=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 M(x,null,n&&M("div",null,r&&M("div",{className:t.control},a||!o?M(ls,{classNameLabel:F(t.label,a&&t.selectedLabel),classNameInput:t.input,checked:a,onToggle:c},M(v,m({},e,{templateKey:"toggle",rootTagName:"span"}))):M(us,{className:t.redo,disabled:!o,onClick:u},M(v,m({},e,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&M("div",{className:t.control},M(us,{className:F(t.redo,!o&&t.disabledRedo),disabled:!o,onClick:u},M(v,m({},e,{templateKey:"redo",rootTagName:"span"})))),i&&s&&M(us,{className:t.reset,onClick:l},M(v,m({},e,{templateKey:"reset",rootTagName:"span"})))))},Is=function(e){var t=e.refine,e=e.mapInstance;return t({northEast:e.getBounds().getNorthEast().toJSON(),southWest:e.getBounds().getSouthWest().toJSON()})},Fs=function(e,r){return e.reduce(function(e,t){var e=j(e,2),n=e[0],e=e[1];return r.includes(t.__id)?[n.concat(t),e]:[n,e.concat(t)]},[[],[]])},Cs=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()}},Ts=function(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0},Es=["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"],ks=["item"],js=["item"],Ms=l({name:"geo-search"}),Ls=i("GeoSearch"),wa={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},Os=function(){U(i,Ot);var r=q(i);function i(){var a;W(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=t.__.length&&t.__.push({__V:Po}),t.__[e]}function Eo(e){_o=1;var a,t=Ao,n=void 0,s=To(go++,2);return s.t=t,s.__c||(s.__=[n?n(e):Ao(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=_).u)||(_.u=!0,a=_.shouldComponentUpdate,_.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 ko(e){return _o=5,t=function(){return{current:e}},n=[],Ho((r=To(go++,7)).__H,n)?(r.__V=t(),r.i=n,r.__h=t,r.__V):r.__;var t,n,r}function jo(){for(var t;t=wo.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Lo),t.__H.__h.forEach(Oo),t.__H.__h=[]}catch(e){t.__H.__h=[],N.__e(e,t.__v)}}N.__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),_=null,No&&No(e)},N.__r=function(e){xo&&xo(e),go=0;e=(_=e.__c).__H;e&&(vo===_?(e.__h=[],_.__h=[],e.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Po,e.__N=e.i=void 0})):(e.__h.forEach(Lo),e.__h.forEach(Oo),e.__h=[])),vo=_},N.diffed=function(e){Io&&Io(e);e=e.__c;e&&e.__H&&(!e.__H.__h.length||1!==wo.push(e)&&yo===N.requestAnimationFrame||((yo=N.requestAnimationFrame)||function(e){function t(){clearTimeout(r),Mo&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);Mo&&(n=requestAnimationFrame(t))})(jo),e.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Po&&(e.__=e.__V),e.i=void 0,e.__V=Po})),vo=_=null},N.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Lo),t.__h=t.__h.filter(function(e){return!e.__||Oo(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],N.__e(e,t.__v)}}),Fo&&Fo(e,n)},N.unmount=function(e){Co&&Co(e);var t,e=e.__c;e&&e.__H&&(e.__H.__.forEach(function(e){try{Lo(e)}catch(e){t=e}}),e.__H=void 0,t)&&N.__e(t,e.__v)};var Mo="function"==typeof requestAnimationFrame;function Lo(e){var t=_,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),_=t}function Oo(e){var t=_;e.__c=e.__(),_=t}function Ho(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Ao(e,t){return"function"==typeof t?t(e):t}function Wo(t){var e,n,r=j(Eo(t.isCollapsed),2),i=r[0],a=r[1],r=j(Eo(!1),2),s=r[0],o=r[1],c=ko(null);return r=function(){var e=c.current;if(e)return e.appendChild(t.bodyElement),function(){e.removeChild(t.bodyElement)}},e=[c,t.bodyElement],n=To(go++,3),!N.__s&&Ho(n.__H,e)&&(n.__=r,n.i=e,_.__H.__h.push(n)),s||t.isCollapsed===i||a(t.isCollapsed),M("div",{className:F(t.cssClasses.root,t.hidden&&t.cssClasses.noRefinementRoot,t.collapsible&&t.cssClasses.collapsibleRoot,i&&t.cssClasses.collapsedRoot),hidden:t.hidden},t.templates.header&&M("div",{className:t.cssClasses.header},M(v,{templates:t.templates,templateKey:"header",rootTagName:"span",data:t.data}),t.collapsible&&M("button",{className:t.cssClasses.collapseButton,"aria-expanded":!i,onClick:function(e){e.preventDefault(),o(!0),a(function(e){return!e})}},M(v,{templates:t.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:i}}))),M("div",{className:t.cssClasses.body,ref:c}),t.templates.footer&&M(v,{templates:t.templates,templateKey:"footer",rootProps:{className:t.cssClasses.footer},data:t.data}))}var Do=l({name:"panel"}),Uo=i("Panel"),$o=["placesReference","defaultPosition"],Bo=["places"],wa=J(function(e){var t=e||{},n=t.placesReference,r=t.defaultPosition,i=void 0===r?[]:r,r=k(t,$o);if("function"!=typeof n)throw new Error("The `placesReference` option requires a valid Places.js reference.");var a=n(r),s={query:"",initialLatLngViaIP:void 0,isInitialLatLngViaIPSet:!1};return{$$type:"ais.places",$$widgetType:"ais.places",init:function(e){var r=e.helper;a.on("change",function(e){var e=e.suggestion,t=e.value,e=e.latlng,n=e.lat,e=e.lng;s.query=t,r.setQueryParameter("insideBoundingBox",void 0).setQueryParameter("aroundLatLngViaIP",!1).setQueryParameter("aroundLatLng","".concat(n,",").concat(e)).search()}),a.on("clear",function(){s.query="",r.setQueryParameter("insideBoundingBox",void 0),1=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,e=e.max,n=(e-t)/34;return[t].concat(w(Ge({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(w(Ge({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 M("div",{className:F(e.root,this.isDisabled&&e.disabledRoot)},M(Rc,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:s,max:a,pitComponent:Go,pitPoints:r,snap:!0,snapPoints:n,values:this.isDisabled?[s,a]:i,disabled:this.isDisabled}))}}]),a}()),_c=l({name:"range-slider"}),wc=i("RangeSlider");function Pc(e){var t=e.children,n=e.count,r=e.value,i=e.url,e=e.cssClasses;return n?M("a",{className:F(e.link),"aria-label":"".concat(r," & up"),href:i},t):M("div",{className:F(e.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}var Nc={item:function(e){var t=e.count,n=e.value,r=e.url,i=e.stars,a=e.cssClasses;return M(Pc,{count:t,value:n,url:r,cssClasses:a},i.map(function(e,t){return M("svg",{key:t,className:F(a.starIcon,e?a.fullStarIcon:a.emptyStarIcon),"aria-hidden":"true",width:"24",height:"24"},M("use",{xlinkHref:e?"#ais-RatingMenu-starSymbol":"#ais-RatingMenu-starEmptySymbol"}))}),M("span",{className:F(a.label)},"& Up"),t&&M("span",{className:F(a.count)},ua(t)))}},xc=l({name:"rating-menu"}),C=i("RatingMenu"),Ic=M("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"}),Fc=M("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"}),Cc=M("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"}),Tc=M("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"}),Ec=M("g",{fill:"none","fill-rule":"evenodd"},M("g",{transform:"translate(1 1)","stroke-width":"2"},M("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),M("path",{d:"M36 18c0-9.94-8.06-18-18-18"},M("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))),kc={reset:function(e){return M("svg",{className:e.cssClasses.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},Cc)},submit:function(e){return M("svg",{className:e.cssClasses.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},Tc)},loadingIndicator:function(e){return M("svg",{"aria-label":"Results are loading",className:e.cssClasses.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},Ec)}},jc={item:function(e){var t=e.cssClasses,n=e.count,r=e.value,i=e.highlighted,a=e.isRefined,e=e.isFromSearch;return M("label",{className:F(t.label)},M("input",{type:"checkbox",className:F(t.checkbox),value:r,defaultChecked:a}),M("span",{className:F(t.labelText),dangerouslySetInnerHTML:e?{__html:i}:void 0},!e&&i),M("span",{className:F(t.count)},ua(n)))},showMoreText:function(e){return e.isShowingMore?"Show less":"Show more"},searchableNoResults:function(){return"No results"}},Mc=l({name:"refinement-list"}),H=i("RefinementList"),Lc=i("SearchBox"),Oc=function(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?M("div",{className:t.root},M(v,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),M("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},M(v,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null},Hc={text:function(){return""},button:function(e){return e.isRelevantSorted?"See all results":"See relevant results"}},Ac=l({name:"relevant-sort"}),Wc=i("RelevantSort"),Dc=l({name:"search-box"}),Uc=i("SearchBox"),$c=l({name:"sort-by"}),Bc=i("SortBy"),Qc=["nbHits","nbSortedHits","cssClasses","templateProps"],qc=function(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,e=k(e,Qc);return M("div",{className:F(r.root)},M(v,m({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:T({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(T(T(T({},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 T(T({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}};throw new Error(hs("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:F(gs(),e.root),noRefinementRoot:F(gs({modifierName:"noRefinement"}),e.noRefinementRoot),list:F(gs({descendantName:"list"}),e.list),item:F(gs({descendantName:"item"}),e.item),selectedItem:F(gs({descendantName:"item",modifierName:"selected"}),e.selectedItem),separator:F(gs({descendantName:"separator"}),e.separator),link:F(gs({descendantName:"link"}),e.link)},s=(e={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,o=e.cssClasses,c=e.renderState,u=e.templates,T(T({},Dn(function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,e=e.refine;t?c.templateProps=O({defaultTemplates:ms,templatesConfig:i.templatesConfig,templates:u}):L(M(fs,{canRefine:n,cssClasses:o,createURL:r,items:a,refine:e,templateProps:c.templateProps}),s)},function(){return L(null,t)})({attributes:r,separator:i,rootPath:a,transformItems:l})),{},{$$widgetType:"ais.breadcrumb"});throw new Error(ps("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:F(Rs(),e.root),button:F(Rs({descendantName:"button"}),e.button),disabledButton:F(Rs({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,T(T({},ot(function(e,t){var n=e.refine,r=e.canRefine,e=e.instantSearchInstance;t?s.templateProps=O({defaultTemplates:ys,templatesConfig:e.templatesConfig,templates:o}):L(M(vs,{refine:n,cssClasses:a,hasRefinements:r,templateProps:s.templateProps}),i)},function(){return L(null,t)})({includedAttributes:c,excludedAttributes:u,transformItems:l})),{},{$$widgetType:"ais.clearRefinements"});throw new Error(bs("The `container` option is required."))},configure:function(e){return T(T({},Qr(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=P(n),n={root:F(ws(),a.root),noRefinementRoot:F(ws({modifierName:"noRefinement"}),a.noRefinementRoot),list:F(ws({descendantName:"list"}),a.list),item:F(ws({descendantName:"item"}),a.item),label:F(ws({descendantName:"label"}),a.label),category:F(ws({descendantName:"category"}),a.category),categoryLabel:F(ws({descendantName:"categoryLabel"}),a.categoryLabel),delete:F(ws({descendantName:"delete"}),a.delete)},T(T({},dt(cs,function(){return L(null,t)})({container:t,cssClasses:n,includedAttributes:r,excludedAttributes:i,transformItems:e})),{},{$$widgetType:"ais.currentRefinements"});throw new Error(_s("The `container` option is required."))},EXPERIMENTAL_configureRelatedItems:function(e){return T(T({},Kr(R)(e)),{},{$$widgetType:"ais.configureRelatedItems"})},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=k(e,Es);if(!g)throw new Error(Ms("The `container` option is required."));if(v)return t=P(g),g={root:F(Ls(),l.root),tree:Ls({descendantName:"tree"}),map:F(Ls({descendantName:"map"}),l.map),control:F(Ls({descendantName:"control"}),l.control),label:F(Ls({descendantName:"label"}),l.label),selectedLabel:F(Ls({descendantName:"label",modifierName:"selected"}),l.selectedLabel),input:F(Ls({descendantName:"input"}),l.input),redo:F(Ls({descendantName:"redo"}),l.redo),disabledRedo:F(Ls({descendantName:"redo",modifierName:"disabled"}),l.disabledRedo),reset:F(Ls({descendantName:"reset"}),l.reset)},n=T(T({},Ns),c),r=T(T({},{createOptions:function(){return{}},events:{}}),d),i=(Boolean(h)||Boolean(c.HTMLMarker))&&T(T({},{createOptions:function(){return{}},events:{}}),h),u=v,a=function(){U(c,u.maps.OverlayView);var o=q(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 W(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"===A(a)?L(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return D(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=k(e,js);return new a(T(T(T({},i.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc,className:F(Ls({descendantName:"marker"})),template:Ya({templateKey:"HTMLMarker",templates:n,data:t})}))}:function(e){var t=e.item,e=k(e,ks);return new v.maps.Marker(T(T(T({},r.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc}))},d=i||r,T(T({},zn(ds,function(){return L(null,t)})(T(T({},e),{},{renderState:{},container:t,googleReference:v,initialZoom:s,initialPosition:o,templates:n,cssClasses:g,createMarker:l,markerOptions:d,enableRefine:f,enableClearMapRefinement:m,enableRefineControl:p}))),{},{$$widgetType:"ais.geoSearch"});throw new Error(Ms("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:F(S(),e.root),noRefinementRoot:F(S({modifierName:"noRefinement"}),e.noRefinementRoot),list:F(S({descendantName:"list"}),e.list),childList:F(S({descendantName:"list",modifierName:"child"}),e.childList),item:F(S({descendantName:"item"}),e.item),selectedItem:F(S({descendantName:"item",modifierName:"selected"}),e.selectedItem),parentItem:F(S({descendantName:"item",modifierName:"parent"}),e.parentItem),link:F(S({descendantName:"link"}),e.link),selectedItemLink:F(S({descendantName:"link",modifierName:"selected"}),e.selectedItemLink),label:F(S({descendantName:"label"}),e.label),count:F(S({descendantName:"count"}),e.count),showMore:F(S({descendantName:"showMore"}),e.showMore),disabledShowMore:F(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,T(T({},vt(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=O({defaultTemplates:Bs,templatesConfig:a.templatesConfig,templates:d}):L(M($s,{createURL:n,cssClasses:c,facetValues:r,templateProps:h.templateProps,toggleRefinement:i,showMore:l,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),u)},function(){return L(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(Qs("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,T(T({},Pt(St)(function(e,t){var i,n=e.hits,r=e.results,a=e.instantSearchInstance,s=e.insights,o=e.bindEvent,c=e.sendEvent,e=e.banner;t?u.templateProps=O({defaultTemplates:qs,templatesConfig:a.templatesConfig,templates:h}):(i=Yt({insights:s,sendEvent:c}),L(M(zs,{hits:n,itemComponent:function(e){var t=e.hit,n=e.index,r=k(e,Vs);return M(v,m({},u.templateProps,{templateKey:"item",rootTagName:"li",rootProps:T(T({},r),{},{onClick:function(e){i(e),r.onClick()},onAuxClick:function(e){i(e),r.onAuxClick()}}),data:T(T({},t),{},{get __hitIndex(){return n}}),bindEvent:o,sendEvent:c}))},sendEvent:c,classNames:l,emptyComponent:function(e){e=m({},(Q(e),e));return M(v,m({},u.templateProps,{rootProps:e,templateKey:"empty",data:r,rootTagName:"fragment"}))},banner:e,bannerComponent:h.banner?function(e){return M(v,m({},u.templateProps,{templateKey:"banner",data:e,rootTagName:"fragment"}))}:void 0}),d))},function(){return L(null,t)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"});throw new Error(Ks("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:F(Xs(),s.root),select:F(Xs({descendantName:"select"}),s.select),option:F(Xs({descendantName:"option"}),s.option)},r=(s={containerNode:t,cssClasses:n}).containerNode,i=s.cssClasses,T(T({},Gt(function(e,t){var n=e.items,e=e.refine;t||(t=(_e(n,function(e){return e.isRefined})||{}).value,L(M("div",{className:i.root},M(Zs,{cssClasses:i,currentValue:t,options:n,setValue:e})),r))},function(){return L(null,t)})({items:a,transformItems:e})),{},{$$widgetType:"ais.hitsPerPage"});throw new Error(Ys("The `container` option is required."))},index:oa,infiniteHits:function(e){var t,d,h,f,m,p,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:F(no(),s.root),emptyRoot:F(no({modifierName:"empty"}),s.emptyRoot),item:F(no({descendantName:"item"}),s.item),list:F(no({descendantName:"list"}),s.list),loadPrevious:F(no({descendantName:"loadPrevious"}),s.loadPrevious),disabledLoadPrevious:F(no({descendantName:"loadPrevious",modifierName:"disabled"}),s.disabledLoadPrevious),loadMore:F(no({descendantName:"loadMore"}),s.loadMore),disabledLoadMore:F(no({descendantName:"loadMore",modifierName:"disabled"}),s.disabledLoadMore)},d=(s={containerNode:t,cssClasses:n,templates:a,showPrevious:o,renderState:{}}).containerNode,h=s.cssClasses,f=s.renderState,m=s.templates,p=s.showPrevious,T(T({},Pt(cn)(function(e,t){var n=e.hits,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent,e=e.sendEvent;t?f.templateProps=O({defaultTemplates:eo,templatesConfig:c.templatesConfig,templates:m}):L(M(Gs,{cssClasses:h,hits:n,results:r,hasShowPrevious:p,showPrevious:a,showMore:i,templateProps:f.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:e,bindEvent:l}),d)},function(){return L(null,t)})({escapeHTML:r,transformItems:i,showPrevious:o,cache:e})),{},{$$widgetType:"ais.infiniteHits"});throw new Error(to("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:F(ao(),f.root),noRefinementRoot:F(ao({modifierName:"noRefinement"}),f.noRefinementRoot),list:F(ao({descendantName:"list"}),f.list),item:F(ao({descendantName:"item"}),f.item),selectedItem:F(ao({descendantName:"item",modifierName:"selected"}),f.selectedItem),link:F(ao({descendantName:"link"}),f.link),label:F(ao({descendantName:"label"}),f.label),count:F(ao({descendantName:"count"}),f.count),showMore:F(ao({descendantName:"showMore"}),f.showMore),disabledShowMore:F(ao({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,T(T({},un(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=O({defaultTemplates:ro,templatesConfig:a.templatesConfig,templates:d}):(t=r.map(function(e){return T(T({},e),{},{url:i(e.value)})}),L(M($s,{createURL:i,cssClasses:u,facetValues:t,showMore:h,templateProps:l.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),c))},function(){return L(null,t)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:e})),{},{$$widgetType:"ais.menu"});throw new Error(io("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:F(uo(),l.root),noRefinementRoot:F(uo({modifierName:"noRefinement"}),l.noRefinementRoot),select:F(uo({descendantName:"select"}),l.select),option:F(uo({descendantName:"option"}),l.option)},i=(l={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,a=l.cssClasses,s=l.renderState,o=l.templates,T(T({},un(function(e,t){var n=e.refine,r=e.items,e=e.instantSearchInstance;t?s.templateProps=O({defaultTemplates:oo,templatesConfig:e.templatesConfig,templates:o}):L(M(so,{cssClasses:a,items:r,refine:n,templateProps:s.templateProps}),i)},function(){return L(null,t)})({attribute:r,limit:u,sortBy:c,transformItems:e})),{},{$$widgetType:"ais.menuSelect"});throw new Error(co("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:F(fo(),l.root),noRefinementRoot:F(fo({modifierName:"noRefinement"}),l.noRefinementRoot),list:F(fo({descendantName:"list"}),l.list),item:F(fo({descendantName:"item"}),l.item),selectedItem:F(fo({descendantName:"item",modifierName:"selected"}),l.selectedItem),label:F(fo({descendantName:"label"}),l.label),radio:F(fo({descendantName:"radio"}),l.radio),labelText:F(fo({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,T(T({},mn(function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,e=e.items;t?c.templateProps=O({defaultTemplates:lo,templatesConfig:r.templatesConfig,templates:u}):L(M($s,{createURL:n,cssClasses:o,facetValues:e,templateProps:c.templateProps,toggleRefinement:i,attribute:s}),a)},function(){return L(null,t)})({attribute:r,items:i,transformItems:e})),{},{$$widgetType:"ais.numericMenu"});throw new Error(ho("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:F(bo(),i.root),noRefinementRoot:F(bo({modifierName:"noRefinement"}),i.noRefinementRoot),list:F(bo({descendantName:"list"}),i.list),item:F(bo({descendantName:"item"}),i.item),firstPageItem:F(bo({descendantName:"item",modifierName:"firstPage"}),i.firstPageItem),lastPageItem:F(bo({descendantName:"item",modifierName:"lastPage"}),i.lastPageItem),previousPageItem:F(bo({descendantName:"item",modifierName:"previousPage"}),i.previousPageItem),nextPageItem:F(bo({descendantName:"item",modifierName:"nextPage"}),i.nextPageItem),pageItem:F(bo({descendantName:"item",modifierName:"page"}),i.pageItem),selectedItem:F(bo({descendantName:"item",modifierName:"selected"}),i.selectedItem),disabledItem:F(bo({descendantName:"item",modifierName:"disabled"}),i.disabledItem),link:F(bo({descendantName:"link"}),i.link)},i=T(T({},So),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,T(T({},bn(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||L(M(mo,{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 L(null,t)})({totalPages:a,padding:s})),{},{$$widgetType:"ais.pagination"});throw new Error(Ro("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:F(Uo(),e.root),noRefinementRoot:F(Uo({modifierName:"noRefinement"}),e.noRefinementRoot),collapsibleRoot:F(Uo({modifierName:"collapsible"}),e.collapsibleRoot),collapsedRoot:F(Uo({modifierName:"collapsed"}),e.collapsedRoot),collapseButton:F(Uo({descendantName:"collapseButton"}),e.collapseButton),collapseIcon:F(Uo({descendantName:"collapseIcon"}),e.collapseIcon),body:F(Uo({descendantName:"body"}),e.body),header:F(Uo({descendantName:"header"}),e.header),footer:F(Uo({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:T(T({},{collapseButtonText:function(e){e=e.collapsed;return'\n \n ')}}),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;L(M(Wo,{cssClasses:c,hidden:n,collapsible:r,isCollapsed:e,templates:u,data:t,bodyElement:o}),s)},l=n(T(T({},e),{},{container:h})),T(T({},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":">",'"':""","'":"'"},G=/[&<>"']/g,ee=RegExp(G.source);var te={"&":"&","<":"<",">":">",""":'"',"'":"'"},ne=/&(amp|quot|lt|gt|#39);/g,re=RegExp(ne.source);function ie(e){return e&&re.test(e)?e.replace(ne,function(e){return te[e]}):e}function ae(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 se(e){return((e=e)&&ee.test(e)?e.replace(G,function(e){return X[e]}):e).replace(new RegExp(O.highlightPreTag,"g"),u.highlightPreTag).replace(new RegExp(O.highlightPostTag,"g"),u.highlightPostTag)}function oe(n){return ae(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return F(F({},e),{},E({},t,oe(n[t])))},{}):Array.isArray(n)?n.map(oe):F(F({},n),{},{value:se(n.value)})}function ce(e){return void 0===e.__escaped&&((e=e.map(function(e){e=g({},(Q(e),e));return e._highlightResult&&(e._highlightResult=oe(e._highlightResult)),e._snippetResult&&(e._snippetResult=oe(e._snippetResult)),e})).__escaped=!0),e}function ue(e){var t=u.highlightPreTag,n=u.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}function le(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=ye(t.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&&0=":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 vt(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?Rt:t,t=e.transformItems,m=void 0===t?function(e){return e}:t;if(!l||!Array.isArray(l)||0===l.length)throw new Error(bt("The `attributes` option expects an array of strings."));if(!0===h&&s<=a)throw new Error(bt("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||le({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===Rt}))&&!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,dn)),{},{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=vn(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:vn(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:gn(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(pn("The `items` option expects an array of objects."))}}var pn=l({name:"numeric-menu",connector:!0});function gn(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end?n.start===n.end?yn(r,"=",n.start):yn(r,">=",n.start)&&yn(r,"<=",n.end):void 0!==n.start?yn(r,">=",n.start):void 0!==n.end?yn(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function vn(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(gn(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=yn(r,"=",n.start)?e.removeNumericRefinement(t,"=",n.start):e.addNumericRefinement(t,"=",n.start)}return void 0!==n.start&&(e=(e=yn(r,">=",n.start)?e.removeNumericRefinement(t,">=",n.start):e).addNumericRefinement(t,">=",n.start)),"number"==typeof(e=void 0!==n.end?(e=yn(r,"<=",n.end)?e.removeNumericRefinement(t,"<=",n.end):e).addNumericRefinement(t,"<=",n.end):e).page&&(e.page=0),e}function yn(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function bn(n){var t=1=")||[],1)[0],s=k(e.getNumericRefinement(u,"<=")||[],1)[0],o=void 0===n||""===n,c=void 0===r||""===r,n=wn({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:Wn,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=w(new Array(Math.floor(+_))).map(function(e,t){return+t=",t):e.setQueryParameters({numericRefinements:F(F({},e.numericRefinements),{},E({},S,{}))})}};throw new Error(An("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 Ln=l({name:"related-products",connector:!0}),Mn=l({name:"search-box",connector:!0}),Hn=l({name:"sort-by",connector:!0}),An=l({name:"rating-menu",connector:!0}),Wn="ais.ratingMenu";function Dn(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: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(rr(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(!rr(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||rr(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ir(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 xr(e){return Array.isArray(e)?e.filter(Boolean):[]}function Ir(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})):[]},Er=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},[])},ur="3.21.0",Ur=cr;function t(e,t,n,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.21.0)"),this.setClient(e);e=n||{};e.index=t,this.state=Tr.make(e),this.recommendState=new gr({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 Qr(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Vr(){return this.state.page}e(t,nr),t.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},t.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},t.prototype.recommend=function(){return this._recommend(),this},t.prototype.getQuery=function(){var e=this.state;return Sr._getHitsSearchParams(e)},t.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,e=Sr._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 Br(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 Br(n,e.results),n)}).catch(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(e,null,n)})},t.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=hr({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:mr(Sr._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)},t.prototype.searchForFacetValues=function(t,e,n,r){var i,a,s,o="function"==typeof this.client.searchForFacetValues,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=Sr.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=Ur(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")},t.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},t.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},t.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},t.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},t.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},t.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},t.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},t.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},t.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},t.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},t.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},t.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},t.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},t.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},t.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},t.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},t.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},t.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},t.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},t.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},t.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},t.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},t.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},t.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},t.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},t.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},t.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},t.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},t.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},t.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},t.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},t.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},t.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},t.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},t.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},t.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},t.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},t.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},t.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},t.prototype.setCurrentPage=Qr,t.prototype.setPage=Qr,t.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},t.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},t.prototype.setState=function(e){return this._change({state:Tr.make(e),isPageReset:!1}),this},t.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Tr(e),this},t.prototype.hasRefinements=function(e){return!!fr(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))},t.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},t.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},t.prototype.hasTag=function(e){return this.state.isTagRefined(e)},t.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},t.prototype.getIndex=function(){return this.state.index},t.prototype.getCurrentPage=Vr,t.prototype.getPage=Vr,t.prototype.getTags=function(){return this.state.tagRefinements},t.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},t.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},t.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},t.prototype._search=function(e){var r=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=Sr._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?Sr._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})}},t.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 gr),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 ei(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(Xr("The `hit` option is required."));if(s)return t=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ie(a,t),i=n.score;return Array.isArray(r)?[].concat(w(e),[r.map(function(e){return Gr({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(w(e),[Gr({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),e=F({},e(new v.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:t}))),F(F({},Yr(n,r)({searchParameters:e})),{},{$$type:"ais.configureRelatedItems"});throw new Error(Xr("The `matchingPatterns` option is required."))}}var ti=l({name:"autocomplete",connector:!0}),ni=l({name:"query-rules",connector:!0});function ri(e){var i,a,s,t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,o=this.transformRuleContexts,e=e.state,c=e.ruleContexts||[],r=(i=(r={helper:t,sharedHelperState:e,trackedFilters:r}).helper,a=r.sharedHelperState,s=r.trackedFilters,Object.keys(s).reduce(function(e,t){var n=Te(i.lastResults||{},a,!0).filter(function(e){return e.attribute===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(w(e),w(n.filter(function(e){return r.includes(e)}).map(function(e){return"ais-".concat(t,"-").concat(e).replace(/[^a-z0-9-_]+/gi,"_")})))},[])),o=o([].concat(w(n),w(r))).slice(0,10);Me(c,o)||t.overrideStateWithoutTriggeringChangeEvent(F(F({},e),{},{ruleContexts:o}))}function ii(l){var r=1')).replace(new RegExp(u.highlightPostTag,"g"),""))}var pi=i("ReverseHighlight");function gi(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=(Ie(r._highlightResult,t)||{}).value,t=void 0===r?"":r,r=pi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return ue(nt(Ne(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var vi=i("Snippet");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=(Ie(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=vi({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"),""))}var bi=i("ReverseSnippet");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=(Ie(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=bi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return ue(nt(Ne(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var Si="_ALGOLIA";function _i(){var e=Si;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]+$i[128|63&c]:c<55296||57344<=c?s+=$i[224|c>>12]+$i[128|c>>6&63]+$i[128|63&c]:(o+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(o)),s+=$i[240|c>>18]+$i[128|c>>12&63]+$i[128|c>>6&63]+$i[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(Di(e)){for(var n=[],r=0;r":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)}}),Ya=(e.Template=Za.Template,e.template=e.Template,e),Xa=function(e,t,n,r){t[0]=0;for(var i=1;i"===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),is=(ts=(Za={createElement:L,Fragment:x}).createElement,ns=Za.Fragment,es={createElement:ts,Fragment:ns}.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=La(e,Ba);return ts("span",Ta({},n,{className:C(o.root,t)}),r.map(function(e,t){var n=t===r.length-1;return ts(ns,{key:t},e.map(function(e,t){return ts(as,{key:t,classNames:o,highlightedTagName:i,nonHighlightedTagName:a,isHighlighted:e.isHighlighted},e.value)}),!n&&ts("span",{className:o.separator},s))}))});function as(e){var t=e.classNames,n=e.children,r=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return es(i?r:e,{className:i?t.highlighted:t.nonHighlighted},n)}var ss=["classNames"];function os(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,ss);return L(is,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 cs=["hit","attribute","cssClasses"];function us(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(os,g({},j(e,cs),{parts:it(Ie(t._highlightResult,n)||[]).map(function(e){return Ne(ie(e.value||""))}),classNames:r}))}var ls=["classNames"];function ds(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,ls);return L(is,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 hs=["hit","attribute","cssClasses"],fs=["isHighlighted"];function ms(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(ds,g({},j(e,hs),{parts:it(Ie(t._highlightResult,n)||[]).map(function(e){return Ne(ie(e.value||"")).map(function(e){var t=e.isHighlighted;return F(F({},j(e,fs)),{},{isHighlighted:!t})})}),classNames:r}))}var ps=["classNames"];function gs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,ps);return L(is,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 vs=["hit","attribute","cssClasses"],ys=["isHighlighted"];function bs(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(gs,g({},j(e,vs),{parts:it(Ie(t._snippetResult,n)||[]).map(function(e){return Ne(ie(e.value||"")).map(function(e){var t=e.isHighlighted;return F(F({},j(e,ys)),{},{isHighlighted:!t})})}),classNames:r}))}var Rs=["classNames"];function Ss(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Rs);return L(is,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 _s=["hit","attribute","cssClasses"];function ws(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Ss,g({},j(e,_s),{parts:it(Ie(t._snippetResult,n)||[]).map(function(e){return Ne(ie(e.value||""))}),classNames:r}))}function Ps(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=rs,n.sendEvent=e,n.components={Highlight:us,ReverseHighlight:ms,Snippet:ws,ReverseSnippet:bs},t(a,n)):(s=function(e,t,n){var r=0"}},Bs=l({name:"breadcrumb"}),qs=i("Breadcrumb"),Us=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}})))},Qs={resetLabel:function(){return"Clear refinements"}},Vs=l({name:"clear-refinements"}),Ks=i("ClearRefinements"),zs=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){He(e)||(e.preventDefault(),t())})},"✕"));var t,n,r}))})))},Js=l({name:"current-refinements"}),Zs=i("CurrentRefinements"),Ys=L("p",null,"Your custom HTML Marker"),Xs={HTMLMarker:function(){return Ys},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},Gs=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(Hs,{classNameLabel:C(t.label,a&&t.selectedLabel),classNameInput:t.input,checked:a,onToggle:c},L(S,g({},e,{templateKey:"toggle",rootTagName:"span"}))):L(Ms,{className:t.redo,disabled:!o,onClick:u},L(S,g({},e,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&L("div",{className:t.control},L(Ms,{className:C(t.redo,!o&&t.disabledRedo),disabled:!o,onClick:u},L(S,g({},e,{templateKey:"redo",rootTagName:"span"})))),i&&s&&L(Ms,{className:t.reset,onClick:l},L(S,g({},e,{templateKey:"reset",rootTagName:"span"})))))},eo=function(e){var t=e.refine,e=e.mapInstance;return t({northEast:e.getBounds().getNorthEast().toJSON(),southWest:e.getBounds().getSouthWest().toJSON()})},to=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)]},[[],[]])},no=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()}},ro=function(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0},io=["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"],ao=["item"],so=["item"],oo=l({name:"geo-search"}),co=i("GeoSearch"),Za={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},uo=function(){B(i,Mt);var r=V(i);function i(){var a;D(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=t.__.length&&t.__.push({__V:Yo}),t.__[e]}function ic(e){Jo=1;var a,t=dc,n=void 0,s=rc(qo++,2);return s.t=t,s.__c||(s.__=[n?n(e):dc(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 ac(e){return Jo=5,t=function(){return{current:e}},n=[],lc((r=rc(qo++,7)).__H,n)?(r.__V=t(),r.i=n,r.__h=t,r.__V):r.__;var t,n,r}function sc(){for(var t;t=Zo.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(cc),t.__H.__h.forEach(uc),t.__H.__h=[]}catch(e){t.__H.__h=[],N.__e(e,t.__v)}}N.__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,Xo&&Xo(e)},N.__r=function(e){Go&&Go(e),qo=0;e=(m=e.__c).__H;e&&(Uo===m?(e.__h=[],m.__h=[],e.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Yo,e.__N=e.i=void 0})):(e.__h.forEach(cc),e.__h.forEach(uc),e.__h=[])),Uo=m},N.diffed=function(e){ec&&ec(e);e=e.__c;e&&e.__H&&(!e.__H.__h.length||1!==Zo.push(e)&&Qo===N.requestAnimationFrame||((Qo=N.requestAnimationFrame)||function(e){function t(){clearTimeout(r),oc&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);oc&&(n=requestAnimationFrame(t))})(sc),e.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Yo&&(e.__=e.__V),e.i=void 0,e.__V=Yo})),Uo=m=null},N.__c=function(e,n){n.some(function(t){try{t.__h.forEach(cc),t.__h=t.__h.filter(function(e){return!e.__||uc(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],N.__e(e,t.__v)}}),tc&&tc(e,n)},N.unmount=function(e){nc&&nc(e);var t,e=e.__c;e&&e.__H&&(e.__H.__.forEach(function(e){try{cc(e)}catch(e){t=e}}),e.__H=void 0,t)&&N.__e(t,e.__v)};var oc="function"==typeof requestAnimationFrame;function cc(e){var t=m,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),m=t}function uc(e){var t=m;e.__c=e.__(),m=t}function lc(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function dc(e,t){return"function"==typeof t?t(e):t}function hc(t){var e,n,r=k(ic(t.isCollapsed),2),i=r[0],a=r[1],r=k(ic(!1),2),s=r[0],o=r[1],c=ac(null);return r=function(){var e=c.current;if(e)return e.appendChild(t.bodyElement),function(){e.removeChild(t.bodyElement)}},e=[c,t.bodyElement],n=rc(qo++,3),!N.__s&&lc(n.__H,e)&&(n.__=r,n.i=e,m.__H.__h.push(n)),s||t.isCollapsed===i||a(t.isCollapsed),L("div",{className:C(t.cssClasses.root,t.hidden&&t.cssClasses.noRefinementRoot,t.collapsible&&t.cssClasses.collapsibleRoot,i&&t.cssClasses.collapsedRoot),hidden:t.hidden},t.templates.header&&L("div",{className:t.cssClasses.header},L(S,{templates:t.templates,templateKey:"header",rootTagName:"span",data:t.data}),t.collapsible&&L("button",{className:t.cssClasses.collapseButton,"aria-expanded":!i,onClick:function(e){e.preventDefault(),o(!0),a(function(e){return!e})}},L(S,{templates:t.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:i}}))),L("div",{className:t.cssClasses.body,ref:c}),t.templates.footer&&L(S,{templates:t.templates,templateKey:"footer",rootProps:{className:t.cssClasses.footer},data:t.data}))}var fc,mc,pc=l({name:"panel"}),gc=i("Panel"),vc=["placesReference","defaultPosition"],yc=["places"],Za=Z(function(e){var t=e||{},n=t.placesReference,r=t.defaultPosition,i=void 0===r?[]:r,r=j(t,vc);if("function"!=typeof n)throw new Error("The `placesReference` option requires a valid Places.js reference.");var a=n(r),s={query:"",initialLatLngViaIP:void 0,isInitialLatLngViaIPSet:!1};return{$$type:"ais.places",$$widgetType:"ais.places",init:function(e){var r=e.helper;a.on("change",function(e){var e=e.suggestion,t=e.value,e=e.latlng,n=e.lat,e=e.lng;s.query=t,r.setQueryParameter("insideBoundingBox",void 0).setQueryParameter("aroundLatLngViaIP",!1).setQueryParameter("aroundLatLng","".concat(n,",").concat(e)).search()}),a.on("clear",function(){s.query="",r.setQueryParameter("insideBoundingBox",void 0),1=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,e=e.max,n=(e-t)/34;return[t].concat(w(Ge({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(w(Ge({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(Yc,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:s,max:a,pitComponent:Fc,pitPoints:r,snap:!0,snapPoints:n,values:this.isDisabled?[s,a]:i,disabled:this.isDisabled}))}}]),a}()),Gc=l({name:"range-slider"}),eu=i("RangeSlider");function tu(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 nu={item:function(e){var t=e.count,n=e.value,r=e.url,i=e.stars,a=e.cssClasses;return L(tu,{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",{className:C(a.label)},"& Up"),t&&L("span",{className:C(a.count)},Ra(t)))}},ru=l({name:"rating-menu"}),T=i("RatingMenu"),iu=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"}),au=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"}),su=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"}),ou=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"}),cu=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"})))),uu={reset:function(e){return L("svg",{className:e.cssClasses.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},su)},submit:function(e){return L("svg",{className:e.cssClasses.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},ou)},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"},cu)}},lu={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)},Ra(n)))},showMoreText:function(e){return e.isShowingMore?"Show less":"Show more"},searchableNoResults:function(){return"No results"}},du=l({name:"refinement-list"}),A=i("RefinementList"),hu=i("SearchBox"),fu=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},mu={text:function(){return""},button:function(e){return e.isRelevantSorted?"See all results":"See relevant results"}},pu=l({name:"relevant-sort"}),gu=i("RelevantSort"),vu=l({name:"search-box"}),yu=i("SearchBox"),bu=l({name:"sort-by"}),Ru=i("SortBy"),Su=["nbHits","nbSortedHits","cssClasses","templateProps"],_u=function(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,e=j(e,Su);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(Ws("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:C(qs(),e.root),noRefinementRoot:C(qs({modifierName:"noRefinement"}),e.noRefinementRoot),list:C(qs({descendantName:"list"}),e.list),item:C(qs({descendantName:"item"}),e.item),selectedItem:C(qs({descendantName:"item",modifierName:"selected"}),e.selectedItem),separator:C(qs({descendantName:"separator"}),e.separator),link:C(qs({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({},qn(function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,e=e.refine;t?c.templateProps=H({defaultTemplates:$s,templatesConfig:i.templatesConfig,templates:u}):M(L(Ds,{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(Bs("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:C(Ks(),e.root),button:C(Ks({descendantName:"button"}),e.button),disabledButton:C(Ks({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({},ot(function(e,t){var n=e.refine,r=e.canRefine,e=e.instantSearchInstance;t?s.templateProps=H({defaultTemplates:Qs,templatesConfig:e.templatesConfig,templates:o}):M(L(Us,{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(Vs("The `container` option is required."))},configure:function(e){return F(F({},Yr(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=P(n),n={root:C(Zs(),a.root),noRefinementRoot:C(Zs({modifierName:"noRefinement"}),a.noRefinementRoot),list:C(Zs({descendantName:"list"}),a.list),item:C(Zs({descendantName:"item"}),a.item),label:C(Zs({descendantName:"label"}),a.label),category:C(Zs({descendantName:"category"}),a.category),categoryLabel:C(Zs({descendantName:"categoryLabel"}),a.categoryLabel),delete:C(Zs({descendantName:"delete"}),a.delete)},F(F({},dt(Ls,function(){return M(null,t)})({container:t,cssClasses:n,includedAttributes:r,excludedAttributes:i,transformItems:e})),{},{$$widgetType:"ais.currentRefinements"});throw new Error(Js("The `container` option is required."))},EXPERIMENTAL_configureRelatedItems:function(e){return F(F({},ei(R)(e)),{},{$$widgetType:"ais.configureRelatedItems"})},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,io);if(!g)throw new Error(oo("The `container` option is required."));if(v)return t=P(g),g={root:C(co(),l.root),tree:co({descendantName:"tree"}),map:C(co({descendantName:"map"}),l.map),control:C(co({descendantName:"control"}),l.control),label:C(co({descendantName:"label"}),l.label),selectedLabel:C(co({descendantName:"label",modifierName:"selected"}),l.selectedLabel),input:C(co({descendantName:"input"}),l.input),redo:C(co({descendantName:"redo"}),l.redo),disabledRedo:C(co({descendantName:"redo",modifierName:"disabled"}),l.disabledRedo),reset:C(co({descendantName:"reset"}),l.reset)},n=F(F({},Xs),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,so);return new a(F(F(F({},i.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc,className:C(co({descendantName:"marker"})),template:Ps({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({},Xn(As,function(){return M(null,t)})(F(F({},e),{},{renderState:{},container:t,googleReference:v,initialZoom:s,initialPosition:o,templates:n,cssClasses:g,createMarker:l,markerOptions:d,enableRefine:f,enableClearMapRefinement:m,enableRefineControl:p}))),{},{$$widgetType:"ais.geoSearch"});throw new Error(oo("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: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({},vt(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:vo,templatesConfig:a.templatesConfig,templates:d}):M(L(go,{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(yo("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({},Pt(St)(function(e,t){var i,n=e.hits,r=e.results,a=e.instantSearchInstance,s=e.insights,o=e.bindEvent,c=e.sendEvent,e=e.banner;t?u.templateProps=H({defaultTemplates:bo,templatesConfig:a.templatesConfig,templates:h}):(i=Yt({insights:s,sendEvent:c}),M(L(_o,{hits:n,itemComponent:function(e){var t=e.hit,n=e.index,r=j(e,Ro);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(So("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:C(xo(),s.root),select:C(xo({descendantName:"select"}),s.select),option:C(xo({descendantName:"option"}),s.option)},r=(s={containerNode:t,cssClasses:n}).containerNode,i=s.cssClasses,F(F({},Gt(function(e,t){var n=e.items,e=e.refine;t||(t=(_e(n,function(e){return e.isRefined})||{}).value,M(L("div",{className:i.root},L(Po,{cssClasses:i,currentValue:t,options:n,setValue:e})),r))},function(){return M(null,t)})({items:a,transformItems:e})),{},{$$widgetType:"ais.hitsPerPage"});throw new Error(No("The `container` option is required."))},index:ya,infiniteHits:function(e){var t,d,h,f,m,p,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:C(Fo(),s.root),emptyRoot:C(Fo({modifierName:"empty"}),s.emptyRoot),item:C(Fo({descendantName:"item"}),s.item),list:C(Fo({descendantName:"list"}),s.list),loadPrevious:C(Fo({descendantName:"loadPrevious"}),s.loadPrevious),disabledLoadPrevious:C(Fo({descendantName:"loadPrevious",modifierName:"disabled"}),s.disabledLoadPrevious),loadMore:C(Fo({descendantName:"loadMore"}),s.loadMore),disabledLoadMore:C(Fo({descendantName:"loadMore",modifierName:"disabled"}),s.disabledLoadMore)},d=(s={containerNode:t,cssClasses:n,templates:a,showPrevious:o,renderState:{}}).containerNode,h=s.cssClasses,f=s.renderState,m=s.templates,p=s.showPrevious,F(F({},Pt(cn)(function(e,t){var n=e.hits,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent,e=e.sendEvent;t?f.templateProps=H({defaultTemplates:Co,templatesConfig:c.templatesConfig,templates:m}):M(L(Io,{cssClasses:h,hits:n,results:r,hasShowPrevious:p,showPrevious:a,showMore:i,templateProps:f.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:e,bindEvent:l}),d)},function(){return M(null,t)})({escapeHTML:r,transformItems:i,showPrevious:o,cache:e})),{},{$$widgetType:"ais.infiniteHits"});throw new Error(To("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:C(ko(),f.root),noRefinementRoot:C(ko({modifierName:"noRefinement"}),f.noRefinementRoot),list:C(ko({descendantName:"list"}),f.list),item:C(ko({descendantName:"item"}),f.item),selectedItem:C(ko({descendantName:"item",modifierName:"selected"}),f.selectedItem),link:C(ko({descendantName:"link"}),f.link),label:C(ko({descendantName:"label"}),f.label),count:C(ko({descendantName:"count"}),f.count),showMore:C(ko({descendantName:"showMore"}),f.showMore),disabledShowMore:C(ko({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({},un(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:Eo,templatesConfig:a.templatesConfig,templates:d}):(t=r.map(function(e){return F(F({},e),{},{url:i(e.value)})}),M(L(go,{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(jo("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:C(Ho(),l.root),noRefinementRoot:C(Ho({modifierName:"noRefinement"}),l.noRefinementRoot),select:C(Ho({descendantName:"select"}),l.select),option:C(Ho({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({},un(function(e,t){var n=e.refine,r=e.items,e=e.instantSearchInstance;t?s.templateProps=H({defaultTemplates:Lo,templatesConfig:e.templatesConfig,templates:o}):M(L(Oo,{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(Mo("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:C(Do(),l.root),noRefinementRoot:C(Do({modifierName:"noRefinement"}),l.noRefinementRoot),list:C(Do({descendantName:"list"}),l.list),item:C(Do({descendantName:"item"}),l.item),selectedItem:C(Do({descendantName:"item",modifierName:"selected"}),l.selectedItem),label:C(Do({descendantName:"label"}),l.label),radio:C(Do({descendantName:"radio"}),l.radio),labelText:C(Do({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({},mn(function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,e=e.items;t?c.templateProps=H({defaultTemplates:Ao,templatesConfig:r.templatesConfig,templates:u}):M(L(go,{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(Wo("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:C(Vo(),i.root),noRefinementRoot:C(Vo({modifierName:"noRefinement"}),i.noRefinementRoot),list:C(Vo({descendantName:"list"}),i.list),item:C(Vo({descendantName:"item"}),i.item),firstPageItem:C(Vo({descendantName:"item",modifierName:"firstPage"}),i.firstPageItem),lastPageItem:C(Vo({descendantName:"item",modifierName:"lastPage"}),i.lastPageItem),previousPageItem:C(Vo({descendantName:"item",modifierName:"previousPage"}),i.previousPageItem),nextPageItem:C(Vo({descendantName:"item",modifierName:"nextPage"}),i.nextPageItem),pageItem:C(Vo({descendantName:"item",modifierName:"page"}),i.pageItem),selectedItem:C(Vo({descendantName:"item",modifierName:"selected"}),i.selectedItem),disabledItem:C(Vo({descendantName:"item",modifierName:"disabled"}),i.disabledItem),link:C(Vo({descendantName:"link"}),i.link)},i=F(F({},zo),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({},bn(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($o,{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(Ko("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(gc(),e.root),noRefinementRoot:C(gc({modifierName:"noRefinement"}),e.noRefinementRoot),collapsibleRoot:C(gc({modifierName:"collapsible"}),e.collapsibleRoot),collapsedRoot:C(gc({modifierName:"collapsed"}),e.collapsedRoot),collapseButton:C(gc({descendantName:"collapseButton"}),e.collapseButton),collapseIcon:C(gc({descendantName:"collapseIcon"}),e.collapseIcon),body:C(gc({descendantName:"body"}),e.body),header:C(gc({descendantName:"header"}),e.header),footer:C(gc({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'\n \n ')}}),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(hc,{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