react-instantsearch 6.40.2 → 6.40.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +5 -5
- package/dist/umd/Connectors.js +3583 -2574
- package/dist/umd/Connectors.js.map +1 -1
- package/dist/umd/Connectors.min.js +1 -1
- package/dist/umd/Connectors.min.js.map +1 -1
- package/dist/umd/Core.js +26 -26
- package/dist/umd/Core.js.map +1 -1
- package/dist/umd/Core.min.js +1 -1
- package/dist/umd/Core.min.js.map +1 -1
- package/dist/umd/Dom.js +4015 -2999
- package/dist/umd/Dom.js.map +1 -1
- package/dist/umd/Dom.min.js +1 -1
- package/dist/umd/Dom.min.js.map +1 -1
- package/package.json +5 -5
package/dist/umd/Dom.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! React InstantSearch UNRELEASED | © Algolia, inc. | https://github.com/algolia/instantsearch.js */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((e=e||self).ReactInstantSearch=e.ReactInstantSearch||{},e.ReactInstantSearch.Dom={}),e.React)}(this,function(e,o){"use strict";var d="default"in o?o.default:o,A="undefined"!=typeof Element,M="function"==typeof Map,D="function"==typeof Set,q="function"==typeof ArrayBuffer;var H=function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1}else if(M&&t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a=t.entries();!(i=a.next()).done;)if(!r.has(i.value[0]))return!1;for(a=t.entries();!(i=a.next()).done;)if(!e(i.value[1],r.get(i.value[0])))return!1}else if(D&&t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a=t.entries();!(i=a.next()).done;)if(!r.has(i.value[0]))return!1}else if(q&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1}else{if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;if(A&&t instanceof Element)return!1;for(i=n;0!=i--;)if(!("_owner"===o[i]&&t.$$typeof||e(t[o[i]],r[o[i]])))return!1}return!0}return t!=t&&r!=r}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function B(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function L(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?B(Object(i),!0).forEach(function(e){var t,r;t=n,r=i[e=e],(e=function(e){e=function(e,t){if("object"!==$(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===$(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e){Y.then(e)}var U=Object.prototype.hasOwnProperty,W=function(e,t){if(e!==t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!U.call(t,r[i])||e[r[i]]!==t[r[i]])return!1}return!0},z=function(e){return e.displayName||e.name||"UnknownComponent"},Y=Promise.resolve(),Z=function n(i){return Object.keys(i).forEach(function(e){var t,r=i[e];"object"!==$(t=r)||null===t||Array.isArray(t)||((t=r)&&0<Object.keys(t).length?n(r):delete i[e])}),i};function J(e,r,n){return e.map(function(e,t){return L(L({},e),{},{__position:r*n+t+1})})}function K(e,t){return t?e.map(function(e){return L(L({},e),{},{__queryID:t})}):e}function G(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function X(e,t){if(null==e)return{};for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];0<=t.indexOf(o)||(r[o]=e[o])}return r}var ee=function(e,t){return(Array.isArray(t)?t:t.replace(/\[(\d+)]/g,".$1").split(".")).reduce(function(e,t){return e?e[t]:void 0},e)};function te(e){return e.replace(/^\\-/,"-")}var re=o.createContext({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),ne=re.Consumer,ie=re.Provider,re=o.createContext(void 0),oe=re.Consumer,ae=re.Provider,ce=["contextValue"];function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(){return(se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function le(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function fe(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function pe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,be(n.key),n)}}function he(e,t){return(he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ye(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=de(r),t=(e=n?(e=de(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ue(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t,r){(t=be(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function be(e){e=function(e,t){if("object"!==ue(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ue(e)?e:String(e)}function ve(s){var a;if(s.displayName)return a="function"==typeof s.getSearchParameters||"function"==typeof s.getMetadata||"function"==typeof s.transitionState,function(i){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&he(t,e);var r,n=ye(o);function o(e){var i;if(this instanceof o)return u(c(i=n.call(this,e)),"unsubscribe",void 0),u(c(i),"unregisterWidget",void 0),u(c(i),"cleanupTimerRef",null),u(c(i),"isUnmounting",!1),u(c(i),"state",{providedProps:i.getProvidedProps(i.props)}),u(c(i),"refine",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i.props.contextValue.onInternalStateUpdate((e=s.refine).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),u(c(i),"createURL",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i.props.contextValue.createHrefForState((e=s.refine).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),u(c(i),"searchForFacetValues",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i.props.contextValue.onSearchForFacetValues((e=s.searchForFacetValues).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),s.getSearchParameters&&i.props.contextValue.onSearchParameters(s.getSearchParameters.bind(c(i)),{ais:i.props.contextValue,multiIndexContext:i.props.indexContextValue},i.props,s.getMetadata&&s.getMetadata.bind(c(i)),s.displayName),i;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentDidMount",value:function(){var e=this;this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),this.unsubscribe=this.props.contextValue.store.subscribe(function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})}),a&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(e,t){return"function"==typeof s.shouldComponentUpdate?s.shouldComponentUpdate.call(this,this.props,e,this.state,t):(e=W(this.props,e),null===this.state.providedProps||null===t.providedProps?this.state.providedProps!==t.providedProps||!e:!e||!W(this.state.providedProps,t.providedProps))}},{key:"componentDidUpdate",value:function(e){H(e,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),a&&(this.props.contextValue.widgetsManager.update(),"function"==typeof s.transitionState)&&this.props.contextValue.onSearchStateChange(s.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets)))}},{key:"componentWillUnmount",value:function(){var t=this;this.cleanupTimerRef=setTimeout(function(){var e;t.isUnmounting=!0,t.unsubscribe&&t.unsubscribe(),t.unregisterWidget&&(t.unregisterWidget(),"function"==typeof s.cleanUp)&&(e=s.cleanUp.call(t,t.props,t.props.contextValue.store.getState().widgets),t.props.contextValue.store.setState(pe(pe({},t.props.contextValue.store.getState()),{},{widgets:e})),t.props.contextValue.onSearchStateChange(Z(e)))})}},{key:"getProvidedProps",value:function(e){var t=this.props.contextValue.store.getState(),r=t.widgets,n=t.results,i=t.resultsFacetValues,o=t.searching,a=t.searchingForFacetValues,c=t.isSearchStalled,u=t.metadata,t=t.error;return s.getProvidedProps.call(this,e,r,{results:n,searching:o,searchingForFacetValues:a,isSearchStalled:c,error:t},u,i)}},{key:"getSearchParameters",value:function(e){return"function"==typeof s.getSearchParameters?s.getSearchParameters.call(this,e,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(e){return"function"==typeof s.getMetadata?s.getMetadata.call(this,this.props,e):{}}},{key:"transitionState",value:function(e,t){return"function"==typeof s.transitionState?s.transitionState.call(this,this.props,e,t):t}},{key:"render",value:function(){var e,t,r=this.props,r=(r.contextValue,le(r,ce)),n=this.state.providedProps;return null===n?null:(e="function"==typeof s.refine?{refine:this.refine,createURL:this.createURL}:{},t="function"==typeof s.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{},d.createElement(i,se({},r,n,e,t)))}}])&&me(t.prototype,e),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Component);return u(t,"displayName","".concat(s.displayName,"(").concat(z(i),")")),u(t,"$$type",s.$$type),u(t,"$$widgetType",e.$$widgetType),u(t,"propTypes",s.propTypes),u(t,"defaultProps",s.defaultProps),u(t,"_connectorDesc",s),t};throw new Error("`createConnector` requires you to provide a `displayName` property.")}function t(r){return function(e,t){var n=ve(r)(e,t);return function(r){return d.createElement(ne,null,function(t){return d.createElement(oe,null,function(e){return d.createElement(n,se({contextValue:t,indexContextValue:e},r))})})}}}var ge={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};function xe(e){var t,r=e.preTag,n=e.postTag,e=e.highlightedValue,e=(void 0===e?"":e).split(r),i=e.shift(),o=""===i?[]:[{value:i,isHighlighted:!1}];return n===r?(t=!0,e.forEach(function(e){o.push({value:e,isHighlighted:t}),t=!t})):e.forEach(function(e){e=e.split(n);o.push({value:e[0],isHighlighted:!0}),""!==e[1]&&o.push({value:e[1],isHighlighted:!1})}),o}var we="6.40.2";function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(){return(Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_e(n.key),n)}}function Se(e,t){return(Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function je(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Fe(r),t=(e=n?(e=Fe(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Oe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ee(t)}}function Ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e){e=function(e,t){if("object"!==Oe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Oe(e)?e:String(e)}function r(s){return function(n){var e=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Se(t,e);var r,c=je(u);function u(){var o,e=this,t=u;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=c.call.apply(c,[this].concat(i)),e=Ee(o),t=function(e){var t=o.props.translations,t=(t&&t.hasOwnProperty(e)?t:s)[e];if("function"!=typeof t)return t;for(var r=arguments.length,n=new Array(1<r?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.apply(void 0,n)},(r=_e(r="translate"))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,o}return t=u,(e=[{key:"render",value:function(){return d.createElement(n,Re({translate:this.translate},this.props))}}])&&Pe(t.prototype,e),r&&Pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Component),t=n.displayName||n.name||"UnknownComponent";return e.displayName="Translatable(".concat(t,")"),e}}function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ce(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ce(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return Te(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function y(e,t){if(e.results){if(e.results.hits)return e.results;t=h(t);if(e.results[t])return e.results[t]}return null}function Te(e){return e&&e.multiIndexContext}function b(t,e,r,n,i){var o,a,c,u,s,l,f;return Te(r)?(r=h(r),i?(c=e,u=r,l=i,s=(s=n)?{page:1}:void 0,f=(a=t).indices&&a.indices[u]?p(p({},a.indices),{},m({},u,p(p({},a.indices[u]),{},(m(f={},l,p(p({},a.indices[u][l]),c)),m(f,"page",1),f)))):p(p({},a.indices),{},m({},u,p(m({},l,c),s))),p(p({},a),{},{indices:f})):(u=e,l=r,c=(c=n)?{page:1}:void 0,l=(s=t).indices&&s.indices[l]?p(p({},s.indices),{},m({},l,p(p(p({},s.indices[l]),u),c))):p(p({},s.indices),{},m({},l,p(p({},u),c))),p(p({},s),{},{indices:l}))):(t.indices&&n&&Object.keys(t.indices).forEach(function(e){t=b(t,{page:1},{multiIndexContext:{targetedIndex:e}},!0,i)}),i?(a=e,f=i,r=(r=n)?{page:1}:void 0,p(p({},o=t),{},m({},f,p(p({},o[f]),a)),r)):(o=e,r=(r=n)?{page:1}:void 0,p(p(p({},t),o),r)))}function Ve(e){e=e.match(/^([^.]*)\.(.*)/);return{namespace:e&&e[1],attributeName:e&&e[2]}}function a(e,t,r,n,i){var o,a=h(r),c=Ve(n),u=c.namespace,c=c.attributeName,r={multiIndex:Te(r),indexId:a,namespace:u,attributeName:c,id:n,searchState:t};return u=(a=r).multiIndex,c=a.indexId,n=a.namespace,t=a.attributeName,o=a.id,a=a.searchState,(u&&n?a.indices&&a.indices[c]&&a.indices[c][n]&&Object.hasOwnProperty.call(a.indices[c][n],t):u?a.indices&&a.indices[c]&&Object.hasOwnProperty.call(a.indices[c],o):n?a[n]&&Object.hasOwnProperty.call(a[n],t):Object.hasOwnProperty.call(a,o))?(c=(u=r).multiIndex,n=u.indexId,t=u.namespace,a=u.attributeName,o=u.id,u=u.searchState,c&&t?u.indices[n][t][a]:c?u.indices[n][o]:t?u[t][a]:u[o]):e.defaultRefinement||i}function n(e,t,r){var n,i,o,a,c=h(t),u=Ve(r),s=u.namespace,u=u.attributeName;return Te(t)&&Boolean(e.indices)?(c=(t={attribute:u,searchState:e,indexId:c,id:r,namespace:s}).searchState,i=t.indexId,n=t.id,a=t.namespace,t=t.attribute,o=c.indices[i],a&&o?p(p({},c),{},{indices:p(p({},c.indices),{},m({},i,p(p({},o),{},m({},a,X(o[a],[t])))))}):o?p(p({},c),{},{indices:p(p({},c.indices),{},m({},i,X(o,[n])))}):c):(t=(a={attribute:u,searchState:e,id:r,namespace:s}).searchState,i=a.id,o=a.namespace,a=a.attribute,o?p(p({},t),{},m({},o,X(t[o],[a]))):X(t,[i]))}function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ke=["children","contextValue","indexContextValue"],Ae=["children","contextValue","indexContextValue"];function Me(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function De(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(r),!0).forEach(function(e){qe(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function qe(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ie(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ie(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function He(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Be(){return"configure"}var re=t({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;t=He(t,ke);return e.setQueryParameters(t)},transitionState:function(e,t,r){var n=Be(),i=(e.children,e.contextValue,e.indexContextValue,He(e,Ae)),o=Object.keys(e),a=this._props?Object.keys(this._props).filter(function(e){return-1===o.indexOf(e)}):[];return this._props=e,b(r,qe({},n,De(De({},X(r[n],a)),i)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(r,e){var n=Be(),t=h({ais:r.contextValue,multiIndexContext:r.indexContextValue}),i=Te({ais:r.contextValue,multiIndexContext:r.indexContextValue})&&e.indices?e.indices[t]:e,t=(i&&i[n]?Object.keys(i[n]):[]).reduce(function(e,t){return r[t]||(e[t]=i[n][t]),e},{});return b(e,qe({},n,t),{ais:r.contextValue,multiIndexContext:r.indexContextValue})}})(function(){return null},{$$widgetType:"ais.configure"}),i=("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).performance||{};i.now||i.mozNow||i.msNow||i.oNow||i.webkitNow;function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $e(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function Qe(e,t){var r,n;if(e!==t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"__proto__"!==i&&"constructor"!==i&&(r=t[i],void 0!==(n=e[i])&&void 0===r||($e(n)&&$e(r)?e[i]=Qe(n,r):e[i]="object"===Le(n=r)&&null!==n?Qe(Array.isArray(n)?[]:{},n):n));return e}module.exports=function(e){$e(e)||(e={});for(var t=1,r=arguments.length;t<r;t++){var n=arguments[t];$e(n)&&Qe(e,n)}return e};function Ue(){return Array.prototype.slice.call(arguments).reduceRight(function(t,r){return Object.keys(Object(r)).forEach(function(e){void 0!==r[e]&&(void 0!==t[e]&&delete t[e],t[e]=r[e])}),t},{})}var We=Object.freeze({__proto__:null});var ze=function(r,n){return r.filter(function(e,t){return-1<n.indexOf(e)&&r.indexOf(e)===t})},v=function(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]};var Ye=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")};var Ze=function(e,t){if(null===e)return{};for(var r,n={},i=Object.keys(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||(n[r]=e[r]);return n};var Je=function(e){return e&&0<Object.keys(e).length},Ke={addRefinement:function(e,t,r){var n;return Ke.isRefined(e,t,r)?e:(r=""+r,r=e[t]?e[t].concat(r):[r],(n={})[t]=r,Ue({},n,e))},removeRefinement:function(e,r,t){var n;return void 0===t?Ke.clearRefinement(e,function(e,t){return r===t}):(n=""+t,Ke.clearRefinement(e,function(e,t){return r===t&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return Ke.isRefined(e,t,r)?Ke.removeRefinement(e,t,r):Ke.addRefinement(e,t,r)},clearRefinement:function(i,o,a){var c,e;return void 0===o?Je(i)?{}:i:"string"==typeof o?Ze(i,[o]):"function"==typeof o?(c=!1,e=Object.keys(i).reduce(function(e,t){var r=i[t]||[],n=r.filter(function(e){return!o(e,t,a)});return n.length!==r.length&&(c=!0),e[t]=n,e},{}),c?e:i):void 0},isRefined:function(e,t,r){var n=Boolean(e[t])&&0<e[t].length;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}},s=Ke;function Ge(e,r){return Array.isArray(e)&&Array.isArray(r)?e.length===r.length&&e.every(function(e,t){return Ge(r[t],e)}):e===r}function l(e){var n=e?l._parseNumbers(e):{},i=(void 0===n.userToken||null!==(e=n.userToken)&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=n.facets||[],this.disjunctiveFacets=n.disjunctiveFacets||[],this.hierarchicalFacets=n.hierarchicalFacets||[],this.facetsRefinements=n.facetsRefinements||{},this.facetsExcludes=n.facetsExcludes||{},this.disjunctiveFacetsRefinements=n.disjunctiveFacetsRefinements||{},this.numericRefinements=n.numericRefinements||{},this.tagRefinements=n.tagRefinements||[],this.hierarchicalFacetsRefinements=n.hierarchicalFacetsRefinements||{},this);Object.keys(n).forEach(function(e){var t=-1!==l.PARAMETERS.indexOf(e),r=void 0!==n[e];!t&&r&&(i[e]=n[e])})}l.PARAMETERS=Object.keys(new l),l._parseNumbers=function(i){var n,o;return i instanceof l?i:(n={},["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(e){var t,r=i[e];"string"==typeof r&&(t=parseFloat(r),n[e]=isNaN(t)?r:t)}),Array.isArray(i.insideBoundingBox)&&(n.insideBoundingBox=i.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),i.numericRefinements&&(o={},Object.keys(i.numericRefinements).forEach(function(r){var n=i.numericRefinements[r]||{};o[r]={},Object.keys(n).forEach(function(e){var t=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});o[r][e]=t})}),n.numericRefinements=o),We({},i,n))},l.make=function(e){var r=new l(e);return(e.hierarchicalFacets||[]).forEach(function(e){var t;e.rootPath&&0===(t=(r=0<(t=r.getHierarchicalRefinement(e.name)).length&&0!==t[0].indexOf(e.rootPath)?r.clearRefinements(e.name):r).getHierarchicalRefinement(e.name)).length&&(r=r.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}),r},l.validate=function(e,t){t=t||{};return e.tagFilters&&t.tagRefinements&&0<t.tagRefinements.length?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):0<e.tagRefinements.length&&t.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&t.numericRefinements&&Je(t.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):Je(e.numericRefinements)&&t.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},l.prototype={constructor:l,clearRefinements:function(e){e={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:s.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:s.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:s.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:s.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return e.numericRefinements===this.numericRefinements&&e.facetsRefinements===this.facetsRefinements&&e.facetsExcludes===this.facetsExcludes&&e.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&e.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(e)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n,r=Ye(r);return this.isNumericRefined(e,t,r)?this:((n=We({},this.numericRefinements))[e]=We({},n[e]),n[e][t]?(n[e][t]=n[e][t].slice(),n[e][t].push(r)):n[e][t]=[r],this.setQueryParameters({numericRefinements:n}))},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(r,n,e){var i=e;return void 0!==i?this.isNumericRefined(r,n,i)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r&&e.op===n&&Ge(e.val,Ye(i))})}):this:void 0!==n?this.isNumericRefined(r,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r&&e.op===n})}):this:this.isNumericRefined(r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(a){var c,t,e;return void 0===a?Je(this.numericRefinements)?{}:this.numericRefinements:"string"==typeof a?Ze(this.numericRefinements,[a]):"function"==typeof a?(c=!1,t=this.numericRefinements,e=Object.keys(t).reduce(function(e,n){var i=t[n],o={},i=i||{};return Object.keys(i).forEach(function(t){var e=i[t]||[],r=[];e.forEach(function(e){a({val:e,op:t},n,"numeric")||r.push(e)}),r.length!==e.length&&(c=!0),o[t]=r}),e[n]=o,e},{}),c?e:this.numericRefinements):void 0},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:s.addRefinement(this.facetsRefinements,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},addExcludeRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:s.addRefinement(this.facetsExcludes,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},addDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return s.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:s.addRefinement(this.disjunctiveFacetsRefinements,e,t)});throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},addTagRefinement:function(e){return this.isTagRefined(e)?this:(e={tagRefinements:this.tagRefinements.concat(e)},this.setQueryParameters(e))},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter(function(e){return e!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(e){return e!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(e){return e.name!==t})}):this},removeFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:s.removeRefinement(this.facetsRefinements,e,t)}):this;throw new Error(e+" is not defined in the facets attribute of the helper configuration")},removeExcludeRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:s.removeRefinement(this.facetsExcludes,e,t)}):this;throw new Error(e+" is not defined in the facets attribute of the helper configuration")},removeDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return s.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:s.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this;throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},removeTagRefinement:function(t){var e;return this.isTagRefined(t)?(e={tagRefinements:this.tagRefinements.filter(function(e){return e!==t})},this.setQueryParameters(e)):this},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return this.setQueryParameters({facetsRefinements:s.toggleRefinement(this.facetsRefinements,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},toggleExcludeFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return this.setQueryParameters({facetsExcludes:s.toggleRefinement(this.facetsExcludes,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},toggleDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return this.setQueryParameters({disjunctiveFacetsRefinements:s.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)});throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},toggleHierarchicalFacetRefinement:function(e,t){var r,n;if(this.isHierarchicalFacet(e))return r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n={},void 0!==this.hierarchicalFacetsRefinements[e]&&0<this.hierarchicalFacetsRefinements[e].length&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?n[e]=[]:n[e]=[t.slice(0,t.lastIndexOf(r))]:n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:Ue({},n,this.hierarchicalFacetsRefinements)});throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration")},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");var r;if(this.isHierarchicalFacet(e))return(r={})[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:Ue({},r,this.hierarchicalFacetsRefinements)});throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.")},removeHierarchicalFacetRefinement:function(e){var t;return this.isHierarchicalFacetRefined(e)?((t={})[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:Ue({},t,this.hierarchicalFacetsRefinements)})):this},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return-1<this.disjunctiveFacets.indexOf(e)},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return-1<this.facets.indexOf(e)},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&s.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&s.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&s.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){return!!this.isHierarchicalFacet(e)&&(e=this.getHierarchicalRefinement(e),t?-1!==e.indexOf(t):0<e.length)},isNumericRefined:function(e,t,r){var n,i;return void 0===r&&void 0===t?Boolean(this.numericRefinements[e]):(n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t],void 0!==r&&n?(r=Ye(r),t=void 0!==(e=this.numericRefinements[e][t],i=r,v(e,function(e){return Ge(e,i)})),n&&t):n)},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var t=this,e=ze(Object.keys(this.numericRefinements).filter(function(e){return 0<Object.keys(t.numericRefinements[e]).length}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(e){return 0<t.disjunctiveFacetsRefinements[e].length}).concat(e).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var t=this;return ze(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(e){return 0<t.hierarchicalFacetsRefinements[e].length}))},getUnrefinedDisjunctiveFacets:function(){var t=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(e){return-1===t.indexOf(e)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var r=this.managedParameters,n={},i=this;return Object.keys(this).forEach(function(e){var t=i[e];-1===r.indexOf(e)&&void 0!==t&&(n[e]=t)}),n},setQueryParameter:function(e,t){var r;return this[e]===t?this:((r={})[e]=t,this.setQueryParameters(r))},setQueryParameters:function(e){if(!e)return this;var t=l.validate(this,e);if(t)throw t;var r=this,i=l._parseNumbers(e),t=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),e=Object.keys(i).reduce(function(e,t){var r=void 0!==e[t],n=void 0!==i[t];return r&&!n?Ze(e,[t]):(n&&(e[t]=i[t]),e)},t);return new this.constructor(e)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return v(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)}};var Xe=l;function et(e){return Array.isArray(e)?e.filter(Boolean):[]}function tt(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function rt(e,t){var n=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var r=t.split(":"),t=v(n,function(e){return e[0]===r[0]});return 1<r.length||!t?(e[0].push(r[0]),e[1].push(r[1])):(e[0].push(t[0]),e[1].push(t[1])),e},[[],[]])}var nt=function(e,r,i){return Array.isArray(e)?(Array.isArray(i)||(i=[]),(e=e.map(function(t,e){return{criteria:r.map(function(e){return t[e]}),index:e,value:t}})).sort(function(e,t){for(var r=-1;++r<e.criteria.length;){var n=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,o=null===t;if(!o&&t<e||n&&i||!r)return 1;if(!n&&e<t||o&&r||!i)return-1}return 0}(e.criteria[r],t.criteria[r]);if(n)return!(r>=i.length)&&"desc"===i[r]?-n:n}return e.index-t.index}),e.map(function(e){return e.value})):[]};var i=function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},f=function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")},it=function(h){return function(e,t){function r(e,a,t){var r,c=e;if(0<t){var n=0;for(c=e;n<t;){var i=c&&Array.isArray(c.data)?c.data:[],c=v(i,function(e){return e.isRefined});n++}}return c&&(r=Object.keys(a.data).map(function(e){return[e,a.data[e]]}).filter(function(e){var t,r,n,i,o,e=e[0];return e=e,t=c.path||s,r=f,n=u,o=l,(!(i=s)||0===e.indexOf(i)&&i!==e)&&(!i&&-1===e.indexOf(n)||i&&e.split(n).length-i.split(n).length==1||-1===e.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(e)||0===e.indexOf(t+n)&&(o||0===e.indexOf(r)))}),c.data=nt(r.map(function(e){var t,r,n,i,o=e[0],e=e[1];return e=e,o=o,t=u,r=at(f),n=a.exhaustive,{name:(i=o.split(t))[i.length-1].trim(),path:o,escapedValue:ot(o),count:e,isRefined:r===o||0===r.indexOf(o+t),exhaustive:n,data:null}}),o[0],o[1])),e}var o,u,s,l,f,n=h.hierarchicalFacets[t],i=h.hierarchicalFacetsRefinements[n.name]&&h.hierarchicalFacetsRefinements[n.name][0]||"",a=h._getHierarchicalFacetSeparator(n),c=h._getHierarchicalRootPath(n),p=h._getHierarchicalShowParentLevel(n),n=rt(h._getHierarchicalFacetSortBy(n)),m=e.every(function(e){return e.exhaustive}),n=(o=n,u=a,l=p,f=i,e);return(n=(s=c)?e.slice(c.split(a).length):n).reduce(r,{name:h.hierarchicalFacets[t].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:m,data:null})}},ot=i,at=f;var ct=i,ut=f;function st(e){var r={};return e.forEach(function(e,t){r[e]=t}),r}function lt(e,t,r){t&&t[r]&&(e.stats=t[r])}function ft(l,t,r){var c=t[0],f=(this._rawResults=t,this),e=(Object.keys(c).forEach(function(e){f[e]=c[e]}),Object.keys(r||{}).forEach(function(e){f[e]=r[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=l.hierarchicalFacets.map(function(){return[]}),this.facets=[],l.getRefinedDisjunctiveFacets()),u=st(l.facets),s=st(l.disjunctiveFacets),n=1,p=c.facets||{};Object.keys(p).forEach(function(e){var t,r,n,i,o=p[e],a=(n=l.hierarchicalFacets,t=e,v(n,function(e){return-1<(e.attributes||[]).indexOf(t)}));a?(n=a.attributes.indexOf(e),r=tt(l.hierarchicalFacets,function(e){return e.name===a.name}),f.hierarchicalFacets[r][n]={attribute:e,data:o,exhaustive:c.exhaustiveFacetsCount}):(r=-1!==l.disjunctiveFacets.indexOf(e),n=-1!==l.facets.indexOf(e),r&&(i=s[e],f.disjunctiveFacets[i]={name:e,data:o,exhaustive:c.exhaustiveFacetsCount},lt(f.disjunctiveFacets[i],c.facets_stats,e)),n&&(i=u[e],f.facets[i]={name:e,data:o,exhaustive:c.exhaustiveFacetsCount},lt(f.facets[i],c.facets_stats,e)))}),this.hierarchicalFacets=et(this.hierarchicalFacets),e.forEach(function(e){var i=t[n],o=i&&i.facets?i.facets:{},a=l.getHierarchicalFacetByName(e);Object.keys(o).forEach(function(t){var r,e,n=o[t];a?(r=tt(l.hierarchicalFacets,function(e){return e.name===a.name}),-1!==(e=tt(f.hierarchicalFacets[r],function(e){return e.attribute===t}))&&(f.hierarchicalFacets[r][e].data=We({},f.hierarchicalFacets[r][e].data,n))):(r=s[t],e=c.facets&&c.facets[t]||{},f.disjunctiveFacets[r]={name:t,data:Ue({},n,e),exhaustive:i.exhaustiveFacetsCount},lt(f.disjunctiveFacets[r],i.facets_stats,t),l.disjunctiveFacetsRefinements[t]&&l.disjunctiveFacetsRefinements[t].forEach(function(e){!f.disjunctiveFacets[r].data[e]&&-1<l.disjunctiveFacetsRefinements[t].indexOf(ut(e))&&(f.disjunctiveFacets[r].data[e]=0)}))}),n++}),l.getRefinedHierarchicalFacets().forEach(function(e){var c=l.getHierarchicalFacetByName(e),u=l._getHierarchicalFacetSeparator(c),s=l.getHierarchicalRefinement(e);0===s.length||s[0].split(u).length<2||t.slice(n).forEach(function(e){var a=e&&e.facets?e.facets:{};Object.keys(a).forEach(function(t){var e,r,n=a[t],i=tt(l.hierarchicalFacets,function(e){return e.name===c.name}),o=tt(f.hierarchicalFacets[i],function(e){return e.attribute===t});-1!==o&&(e={},0<s.length&&(e[r=s[0].split(u)[0]]=f.hierarchicalFacets[i][o].data[r]),f.hierarchicalFacets[i][o].data=Ue(e,n,f.hierarchicalFacets[i][o].data))}),n++})}),Object.keys(l.facetsExcludes).forEach(function(t){var e=l.facetsExcludes[t],r=u[t];f.facets[r]={name:t,data:p[t],exhaustive:c.exhaustiveFacetsCount},e.forEach(function(e){f.facets[r]=f.facets[r]||{name:t},f.facets[r].data=f.facets[r].data||{},f.facets[r].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(it(l)),this.facets=et(this.facets),this.disjunctiveFacets=et(this.disjunctiveFacets),this._state=l}function pt(r,n){function e(e){return e.name===n}var i,o,t,a,c,u;return r._state.isConjunctiveFacet(n)?(i=v(r.facets,e))?Object.keys(i.data).map(function(e){var t=ct(e);return{name:e,escapedValue:t,count:i.data[e],isRefined:r._state.isFacetRefined(n,t),isExcluded:r._state.isExcludeRefined(n,e)}}):[]:r._state.isDisjunctiveFacet(n)?(o=v(r.disjunctiveFacets,e))?Object.keys(o.data).map(function(e){var t=ct(e);return{name:e,escapedValue:t,count:o.data[e],isRefined:r._state.isDisjunctiveFacetRefined(n,t)}}):[]:r._state.isHierarchicalFacet(n)?((t=v(r.hierarchicalFacets,e))&&(u=r._state.getHierarchicalFacetByName(n),a=r._state._getHierarchicalFacetSeparator(u),(u=(c=0===(c=ut(r._state.getHierarchicalRefinement(n)[0]||"")).indexOf(u.rootPath)?c.replace(u.rootPath+a,""):c).split(a)).unshift(n),function t(e,r,n){e.isRefined=e.name===r[n];e.data&&e.data.forEach(function(e){t(e,r,n+1)})}(t,u,0)),t):void 0}function mt(e,t){e=v(e,function(e){return e.name===t});return e&&e.stats}function ht(e,t,r,n,i){var i=v(i,function(e){return e.name===r}),o=i&&i.data&&i.data[n]?i.data[n]:0,i=i&&i.exhaustive||!1;return{type:t,attributeName:r,name:n,count:o,exhaustive:i}}ft.prototype.getFacetByName=function(t){function e(e){return e.name===t}return v(this.facets,e)||v(this.disjunctiveFacets,e)||v(this.hierarchicalFacets,e)},ft.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],ft.prototype.getFacetValues=function(e,t){var a,c,r=pt(this,e);if(r)return a=Ue({},t,{sortBy:ft.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),c=this,function t(r,e,n,i){var o;return i=i||0,Array.isArray(e)?r(e,n[i]):e.data&&0!==e.data.length?(o=e.data.map(function(e){return t(r,e,n,i+1)}),o=r(o,n[i]),Ue({data:o},e)):e}(function(e,t){if(a.facetOrdering){t=t;o=(o=c).renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(o)return t=e,r=[],n=[],i=((o=o).order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),t.forEach(function(e){var t=e.path||e.name;void 0!==i[t]?r[i[t]]=e:n.push(e)}),r=r.filter(function(e){return e}),"hidden"===(t=o.sortRemainingBy)?r:r.concat(nt(n,(o="alpha"===t?[["path","name"],["asc","asc"]]:[["count"],["desc"]])[0],o[1]))}var r,n,i,o;if(Array.isArray(a.sortBy))return t=rt(a.sortBy,ft.DEFAULT_SORT),nt(e,t[0],t[1]);if("function"==typeof a.sortBy)return o=a.sortBy,e.sort(o);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,Array.isArray(r)?[e]:c._state.getHierarchicalFacetByName(r.name).attributes)},ft.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?mt(this.facets,e):this._state.isDisjunctiveFacet(e)?mt(this.disjunctiveFacets,e):void 0},ft.prototype.getRefinements=function(){var a=this._state,c=this,u=[];return Object.keys(a.facetsRefinements).forEach(function(t){a.facetsRefinements[t].forEach(function(e){u.push(ht(0,"facet",t,e,c.facets))})}),Object.keys(a.facetsExcludes).forEach(function(t){a.facetsExcludes[t].forEach(function(e){u.push(ht(0,"exclude",t,e,c.facets))})}),Object.keys(a.disjunctiveFacetsRefinements).forEach(function(t){a.disjunctiveFacetsRefinements[t].forEach(function(e){u.push(ht(0,"disjunctive",t,e,c.disjunctiveFacets))})}),Object.keys(a.hierarchicalFacetsRefinements).forEach(function(o){a.hierarchicalFacetsRefinements[o].forEach(function(e){var t,r,n,i;u.push((t=a,r=o,e=e,n=c.hierarchicalFacets,i=t.getHierarchicalFacetByName(r),t=t._getHierarchicalFacetSeparator(i),i=e.split(t),e=v(n,function(e){return e.name===r}),t=i.reduce(function(e,t){var r=e&&v(e.data,function(e){return e.name===t});return void 0!==r?r:e},e),n=t&&t.count||0,i=t&&t.exhaustive||!1,e=t&&t.path||"",{type:"hierarchical",attributeName:r,name:e,count:n,exhaustive:i}))})}),Object.keys(a.numericRefinements).forEach(function(r){var e=a.numericRefinements[r];Object.keys(e).forEach(function(t){e[t].forEach(function(e){u.push({type:"numeric",attributeName:r,name:e,numericValue:e,operator:t})})})}),a.tagRefinements.forEach(function(e){u.push({type:"tag",attributeName:"_tags",name:e})}),u};var yt=ft;function g(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}f=g;function x(e){return"function"==typeof e}function dt(e){return"object"==typeof e&&null!==e}function bt(e){return void 0===e}g.prototype._events=void 0,g.prototype._maxListeners=void 0,g.defaultMaxListeners=10,g.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},g.prototype.emit=function(e){var t,r,n,i,o,a,c;if((this._events||(this._events={}),"error"===e)&&(!this._events.error||dt(this._events.error)&&!this._events.error.length))throw(c=arguments[1])instanceof Error?c:((a=new Error('Uncaught, unspecified "error" event. ('+c+")")).context=c,a);if(bt(t=this._events[e]))return!1;if(x(t))switch(arguments.length){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),t.apply(this,n)}else if(dt(t))for(n=Array.prototype.slice.call(arguments,1),r=(o=t.slice()).length,i=0;i<r;i++)o[i].apply(this,n);return!0},g.prototype.on=g.prototype.addListener=function(e,t){if(x(t))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,x(t.listener)?t.listener:t),this._events[e]?dt(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,dt(this._events[e])&&!this._events[e].warned&&(t=bt(this._maxListeners)?g.defaultMaxListeners:this._maxListeners)&&0<t&&this._events[e].length>t&&(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")},g.prototype.once=function(e,t){var r;if(x(t))return r=!1,n.listener=t,this.on(e,n),this;throw TypeError("listener must be a function");function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}},g.prototype.removeListener=function(e,t){var r,n,i,o;if(!x(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(i=(r=this._events[e]).length,n=-1,r===t||x(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(dt(r)){for(o=i;0<o--;)if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},g.prototype.removeAllListeners=function(e){var t,r;if(this._events)if(this._events.removeListener)if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);this.removeAllListeners("removeListener"),this._events={}}else{if(x(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);delete this._events[e]}else 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e];return this},g.prototype.listeners=function(e){e=this._events&&this._events[e]?x(this._events[e])?[this._events[e]]:this._events[e].slice():[];return e},g.prototype.listenerCount=function(e){if(this._events){e=this._events[e];if(x(e))return 1;if(e)return e.length}return 0},g.listenerCount=function(e,t){return e.listenerCount(t)};var w=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})};function vt(e,t){this.main=e,this.fn=t,this.lastResults=null}w(vt,f),vt.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},vt.prototype.getModifiedState=function(e){return this.fn(e)};var gt=vt;function xt(r){return Object.keys(r).sort(function(e,t){return e.localeCompare(t)}).reduce(function(e,t){return e[t]=r[t],e},{})}var O={_getQueries:function(c,u){var s=[];return s.push({indexName:c,params:O._getHitsSearchParams(u)}),u.getRefinedDisjunctiveFacets().forEach(function(e){s.push({indexName:c,params:O._getDisjunctiveFacetSearchParams(u,e)})}),u.getRefinedHierarchicalFacets().forEach(function(e){var o,a=u.getHierarchicalFacetByName(e),e=u.getHierarchicalRefinement(e),n=u._getHierarchicalFacetSeparator(a);0<e.length&&1<e[0].split(n).length&&(o=e[0].split(n).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:a.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(n)})},[])).forEach(function(e,t){e=O._getDisjunctiveFacetSearchParams(u,e.attribute,0===t);function n(t){return a.attributes.some(function(e){return e===t.split(":")[0]})}var r=(e.facetFilters||[]).reduce(function(e,t){var r;return Array.isArray(t)&&0<(r=t.filter(function(e){return!n(e)})).length&&e.push(r),"string"!=typeof t||n(t)||e.push(t),e},[]),i=o[t-1];e.facetFilters=0<t?r.concat(i.attribute+":"+i.value):0<r.length?r:void 0,s.push({indexName:c,params:e})})}),s},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(O._getHitsHierarchicalFacetsAttributes(e)),r=O._getFacetFilters(e),n=O._getNumericFilters(e),i=O._getTagFilters(e),t={facets:-1<t.indexOf("*")?["*"]:t,tagFilters:i};return 0<r.length&&(t.facetFilters=r),0<n.length&&(t.numericFilters=n),xt(We({},e.getQueryParams(),t))},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=O._getFacetFilters(e,t,r),i=O._getNumericFilters(e,t),o=O._getTagFilters(e),a={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1},o=(0<o.length&&(a.tagFilters=o),e.getHierarchicalFacetByName(t));return a.facets=o?O._getDisjunctiveHierarchicalFacetAttribute(e,o,r):t,0<i.length&&(a.numericFilters=i),0<n.length&&(a.facetFilters=n),xt(We({},e.getQueryParams(),a))},_getNumericFilters:function(e,i){var o;return e.numericFilters||(o=[],Object.keys(e.numericRefinements).forEach(function(n){var t=e.numericRefinements[n]||{};Object.keys(t).forEach(function(r){var e=t[r]||[];i!==n&&e.forEach(function(e){var t;Array.isArray(e)?(t=e.map(function(e){return n+r+e}),o.push(t)):o.push(n+r+e)})})}),o)},_getTagFilters:function(e){return e.tagFilters||e.tagRefinements.join(",")},_getFacetFilters:function(a,c,u){var s=[],e=a.facetsRefinements||{},r=(Object.keys(e).forEach(function(t){(e[t]||[]).forEach(function(e){s.push(t+":"+e)})}),a.facetsExcludes||{}),n=(Object.keys(r).forEach(function(t){(r[t]||[]).forEach(function(e){s.push(t+":-"+e)})}),a.disjunctiveFacetsRefinements||{}),l=(Object.keys(n).forEach(function(t){var r,e=n[t]||[];t!==c&&e&&0!==e.length&&(r=[],e.forEach(function(e){r.push(t+":"+e)}),s.push(r))}),a.hierarchicalFacetsRefinements||{});return Object.keys(l).forEach(function(e){var t=(l[e]||[])[0];if(void 0!==t){var r,n=a.getHierarchicalFacetByName(e),i=a._getHierarchicalFacetSeparator(n),o=a._getHierarchicalRootPath(n);if(c===e){if(-1===t.indexOf(i)||!o&&!0===u||o&&o.split(i).length===t.split(i).length)return;t=o?(r=o.split(i).length-1,o):(r=t.split(i).length-2,t.slice(0,t.lastIndexOf(i)))}else r=t.split(i).length-1;(e=n.attributes[r])&&s.push([e+":"+t])}}),s},_getHitsHierarchicalFacetsAttributes:function(i){return i.hierarchicalFacets.reduce(function(e,t){var r,n=i.getHierarchicalRefinement(t.name)[0];return n?(r=i._getHierarchicalFacetSeparator(t),n=n.split(r).length,r=t.attributes.slice(0,n+1),e.concat(r)):(e.push(t.attributes[0]),e)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n,i=e._getHierarchicalFacetSeparator(t);return!0===r?(r=0,(n=e._getHierarchicalRootPath(t))&&(r=n.split(i).length),[t.attributes[r]]):(n=(e.getHierarchicalRefinement(t.name)[0]||"").split(i).length-1,t.attributes.slice(0,1+n))},getSearchForFacetQuery:function(e,t,r,n){n=n.isDisjunctiveFacet(e)?n.clearRefinements(e):n,t={facetQuery:t,facetName:e};return"number"==typeof r&&(t.maxFacetHits=r),xt(We({},O._getHitsSearchParams(n),t))}},wt=O,R="3.13.3",Ot=i;function P(e,t,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.13.3)"),this.setClient(e);e=r||{};e.index=t,this.state=Xe.make(e),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function Rt(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Pt(){return this.state.page}w(P,f),P.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},P.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},P.prototype.getQuery=function(){var e=this.state;return wt._getHitsSearchParams(e)},P.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,e=wt._getQueries(r.index,r),n=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(e).then(function(e){return n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),{content:new yt(r,e.results),state:r,_originalResponse:e}},function(e){throw n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),e});this.client.search(e).then(function(e){n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),t(null,new yt(r,e.results),r)}).catch(function(e){n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),t(e,null,r)})},P.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var r=r.getModifiedState(t),t=We({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:Ze(wt._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),n="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(n);var i=this.client.initIndex(r.index);if("function"!=typeof i.findAnswers)throw new Error(n);return i.findAnswers(r.query,e.queryLanguages,t)},P.prototype.searchForFacetValues=function(t,e,r,n){var i,o,a,c="function"==typeof this.client.searchForFacetValues,u="function"==typeof this.client.initIndex;if(c||u||"function"==typeof this.client.search)return i=this.state.setQueryParameters(n||{}),o=i.isDisjunctiveFacet(t),n=wt.getSearchForFacetQuery(t,e,r,i),this._currentNbQueries++,a=this,r=c?this.client.searchForFacetValues([{indexName:i.index,params:n}]):u?this.client.initIndex(i.index).searchForFacetValues(n):(delete n.facetName,this.client.search([{type:"facet",facet:t,indexName:i.index,params:n}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:i,facet:t,query:e}),r.then(function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits.forEach(function(e){e.escapedValue=Ot(e.value),e.isRefined=o?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.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")},P.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},P.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},P.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},P.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},P.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},P.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},P.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},P.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},P.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},P.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},P.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},P.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},P.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},P.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},P.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},P.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},P.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},P.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},P.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},P.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},P.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},P.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},P.prototype.setCurrentPage=Rt,P.prototype.setPage=Rt,P.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},P.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},P.prototype.setState=function(e){return this._change({state:Xe.make(e),isPageReset:!1}),this},P.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Xe(e),this},P.prototype.hasRefinements=function(e){return!!Je(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))},P.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},P.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},P.prototype.hasTag=function(e){return this.state.isTagRefined(e)},P.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},P.prototype.getIndex=function(){return this.state.index},P.prototype.getCurrentPage=Pt,P.prototype.getPage=Pt,P.prototype.getTags=function(){return this.state.tagRefinements},P.prototype.getRefinements=function(e){var r=[],n=(this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){r.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){r.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){r.push({value:e,type:"disjunctive"})}),this.state.getNumericRefinements(e));return Object.keys(n).forEach(function(e){var t=n[e];r.push({value:t,operator:e,type:"numeric"})}),r},P.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},P.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},P.prototype._search=function(e){var n=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=wt._getQueries(n.index,n),i.push({state:n,queriesCount:t.length,helper:this}),this.emit("search",{state:n,results:this.lastResults})),this.derivedHelpers.map(function(e){var t=e.getModifiedState(n),r=t.index?wt._getQueries(t.index,t):[];return i.push({state:t,queriesCount:r.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),r})),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})}},P.prototype._dispatchAlgoliaResponse=function(e,t,r){var n;t<this._lastQueryIdReceived||(this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty"),n=r.results.slice(),e.forEach(function(e){var t=e.state,r=e.queriesCount,e=e.helper,r=n.splice(0,r);t.index?(e.lastResults=new yt(t,r),e.emit("result",{results:e.lastResults,state:t})):e.emit("result",{results:null,state:t})}))},P.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},P.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},P.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&0<this.state.disjunctiveRefinements[e].length},P.prototype._change=function(e){var t=e.state,e=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:e}))},P.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},P.prototype.setClient=function(e){return this.client!==e&&("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.13.3)"),this.client=e),this},P.prototype.getClient=function(){return this.client},P.prototype.derive=function(e){e=new gt(this,e);return this.derivedHelpers.push(e),e},P.prototype.detachDerivedHelper=function(e){e=this.derivedHelpers.indexOf(e);if(-1===e)throw new Error("Derived helper already detached");this.derivedHelpers.splice(e,1)},P.prototype.hasPendingRequests=function(){return 0<this._currentNbQueries};var St=P;function jt(e,t,r){return new St(e,t,r)}jt.version=R,jt.AlgoliaSearchHelper=St,jt.SearchParameters=Xe,jt.SearchResults=yt;var Et=jt;function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?Ct(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ct(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nt(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(r),!0).forEach(function(e){Vt(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nt(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Vt(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ft(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ft(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function It(e){var t=e.attributeName,r=e.attributeValue,e=e.attributeScore;return"".concat(t,":").concat(r,"<score=").concat(e||1,">")}function kt(){return"configure"}function At(o){var e=Object.keys(o.matchingPatterns).reduce(function(e,t){var r=o.matchingPatterns[t],n=ee(o.hit,t),i=r.score;return Array.isArray(n)?[].concat(_t(e),[n.map(function(e){return It({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof n?[].concat(_t(e),[It({attributeName:t,attributeValue:n,attributeScore:i})]):e},[]);return o.transformSearchParameters(new Et.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(o.hit.objectID)],optionalFilters:e}))}i=t({displayName:"AlgoliaConfigureRelatedItems",$$type:"ais.configureRelatedItems",defaultProps:{transformSearchParameters:function(e){return Tt({},e)}},getProvidedProps:function(){return{}},getSearchParameters:function(e,t){return e.setQueryParameters(At(t))},transitionState:function(e,t,r){var n,i=kt(),o=(n=Z(At(e)),Object.keys(n).forEach(function(e){var t=n[e];Array.isArray(t)&&0===t.length&&delete n[e]}),n),a=Object.keys(o),c=this._searchParameters?Object.keys(this._searchParameters).filter(function(e){return-1===a.indexOf(e)}):[];return this._searchParameters=o,b(r,Vt({},i,Tt(Tt({},X(r[i],c)),o)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var r=this,n=kt(),i=h({ais:e.contextValue,multiIndexContext:e.indexContextValue}),o=Te({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[i]:t,i=(o&&o[n]?Object.keys(o[n]):[]).reduce(function(e,t){return r._searchParameters[t]||(e[t]=o[n][t]),e},{});return b(t,Vt({},n,i),{ais:e.contextValue,multiIndexContext:e.indexContextValue})}});function Mt(e,t){return e(t={exports:{}},t.exports),t.exports}var w="function"==typeof Symbol&&Symbol.for,Dt=w?Symbol.for("react.element"):60103,qt=w?Symbol.for("react.portal"):60106,Ht=w?Symbol.for("react.fragment"):60107,Bt=w?Symbol.for("react.strict_mode"):60108,Lt=w?Symbol.for("react.profiler"):60114,$t=w?Symbol.for("react.provider"):60109,Qt=w?Symbol.for("react.context"):60110,Ut=w?Symbol.for("react.async_mode"):60111,Wt=w?Symbol.for("react.concurrent_mode"):60111,zt=w?Symbol.for("react.forward_ref"):60112,Yt=w?Symbol.for("react.suspense"):60113,Zt=w?Symbol.for("react.suspense_list"):60120,Jt=w?Symbol.for("react.memo"):60115,Kt=w?Symbol.for("react.lazy"):60116,Gt=w?Symbol.for("react.block"):60121,Xt=w?Symbol.for("react.fundamental"):60117,er=w?Symbol.for("react.responder"):60118,tr=w?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Dt:switch(e=e.type){case Ut:case Wt:case Ht:case Lt:case Bt:case Yt:return e;default:switch(e=e&&e.$$typeof){case Qt:case zt:case Kt:case Jt:case $t:return e;default:return t}}case qt:return t}}}function rr(e){return S(e)===Wt}var nr={AsyncMode:Ut,ConcurrentMode:Wt,ContextConsumer:Qt,ContextProvider:$t,Element:Dt,ForwardRef:zt,Fragment:Ht,Lazy:Kt,Memo:Jt,Portal:qt,Profiler:Lt,StrictMode:Bt,Suspense:Yt,isAsyncMode:function(e){return rr(e)||S(e)===Ut},isConcurrentMode:rr,isContextConsumer:function(e){return S(e)===Qt},isContextProvider:function(e){return S(e)===$t},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Dt},isForwardRef:function(e){return S(e)===zt},isFragment:function(e){return S(e)===Ht},isLazy:function(e){return S(e)===Kt},isMemo:function(e){return S(e)===Jt},isPortal:function(e){return S(e)===qt},isProfiler:function(e){return S(e)===Lt},isStrictMode:function(e){return S(e)===Bt},isSuspense:function(e){return S(e)===Yt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Ht||e===Wt||e===Lt||e===Bt||e===Yt||e===Zt||"object"==typeof e&&null!==e&&(e.$$typeof===Kt||e.$$typeof===Jt||e.$$typeof===$t||e.$$typeof===Qt||e.$$typeof===zt||e.$$typeof===Xt||e.$$typeof===er||e.$$typeof===tr||e.$$typeof===Gt)},typeOf:S},f=Mt(function(e,t){});f.AsyncMode,f.ConcurrentMode,f.ContextConsumer,f.ContextProvider,f.Element,f.ForwardRef,f.Fragment,f.Lazy,f.Memo,f.Portal,f.Profiler,f.StrictMode,f.Suspense,f.isAsyncMode,f.isConcurrentMode,f.isContextConsumer,f.isContextProvider,f.isElement,f.isForwardRef,f.isFragment,f.isLazy,f.isMemo,f.isPortal,f.isProfiler,f.isStrictMode,f.isSuspense,f.isValidElementType,f.typeOf,Mt(function(e){e.exports=nr});function ir(){}function or(){}or.resetWarningCache=ir;R=Mt(function(e){function t(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function r(){return t}e.exports=(e={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:or,resetWarningCache:ir}).PropTypes=e});function ar(){return null}ar.propTypes={hit:R.object.isRequired,matchingPatterns:R.object.isRequired,transformSearchParameters:R.func};w=i(ar,{$$widgetType:"ais.configureRelatedItems"});function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ur(e){var t;if("object"===cr(t=e)&&t.props)return e.props.attribute||(Array.isArray(e.props.attributes)?e.props.attributes[0]:e.props.children?ur(d.Children.only(e.props.children)):void 0)}var sr=t({displayName:"AlgoliaDynamicWidgets",$$type:"ais.dynamicWidgets",defaultProps:{transformItems:function(e){return e},maxValuesPerFacet:20},propTypes:{transformItems:R.func,facets:R.arrayOf(R.string),maxValuesPerFacet:R.number},getProvidedProps:function(e,t,r){var n,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!e.facets||Array.isArray(e.facets)&&e.facets.length<=1&&("*"===e.facets[0]||void 0===e.facets[0]))return r?(n=r.renderingContent&&r.renderingContent.facetOrdering&&r.renderingContent.facetOrdering.facets&&r.renderingContent.facetOrdering.facets.order||[],20<(n=e.transformItems(n,{results:r})).length&&!e.facets&&console.warn("More than ".concat(20," facets are requested to be displayed without explicitly setting which facets to retrieve. This could have a performance impact. Set \"facets\" to [] to do two smaller network requests, or explicitly to ['*'] to avoid this warning.")),e.maxValuesPerFacet<r._state.maxValuesPerFacet&&console.warn("The maxValuesPerFacet set by dynamic widgets (".concat(e.maxValuesPerFacet,") is smaller than one of the limits set by a widget (").concat(r._state.maxValuesPerFacet,"). This causes a mismatch in query parameters and thus an extra network request when that widget is mounted.")),{attributesToRender:n}):{attributesToRender:[]};throw new Error('The `facets` prop only accepts [] or ["*"], you passed '.concat(JSON.stringify(e.facets)))},getSearchParameters:function(e,t){return(t.facets||["*"]).reduce(function(e,t){return e.addFacet(t)},e.setQueryParameters({maxValuesPerFacet:Math.max(t.maxValuesPerFacet||0,e.maxValuesPerFacet||0)}))}})(function(e){var t=e.children,r=e.attributesToRender,n=void 0===(e=e.fallbackComponent)?function(){return null}:e,i=new Map;return d.Children.forEach(t,function(e){var t=ur(e);if(!t)throw new Error('Could not find "attribute" prop for '.concat(z(e),"."));i.set(t,e)}),d.createElement(d.Fragment,null,r.map(function(e){return d.createElement(o.Fragment,{key:e},i.get(e)||d.createElement(n,{attribute:e}))}))},{$$widgetType:"ais.dynamicWidgets"});function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fr(){return(fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vr(n.key),n)}}function mr(e,t){return(mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hr(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=dr(r),t=(e=n?(e=dr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===lr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yr(t)}}function yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dr(e){return(dr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function br(e,t,r){(t=vr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function vr(e){e=function(e,t){if("object"!==lr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===lr(e)?e:String(e)}function gr(e){return{targetedIndex:e.indexId}}var xr=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mr(t,e);var r,n=hr(i);function i(e){if(this instanceof i)return br(yr(e=n.call(this,e)),"state",{indexContext:gr(e.props)}),br(yr(e),"unregisterWidget",void 0),e.props.contextValue.onSearchParameters(e.getSearchParameters.bind(yr(e)),{ais:e.props.contextValue,multiIndexContext:e.state.indexContext},e.props,void 0,i.displayName),e;throw new TypeError("Cannot call a class as a function")}return t=i,e=[{key:"getDerivedStateFromProps",value:function(e){return{indexContext:gr(e)}}}],(r=[{key:"componentDidMount",value:function(){this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this)}},{key:"componentDidUpdate",value:function(e){this.props.indexName!==e.indexName&&this.props.contextValue.widgetsManager.update()}},{key:"componentWillUnmount",value:function(){"function"==typeof this.unregisterWidget&&this.unregisterWidget()}},{key:"getSearchParameters",value:function(e,t){return e.setIndex((this.props||t).indexName)}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:d.createElement(ae,{value:this.state.indexContext},this.props.children)}}])&&pr(t.prototype,r),e&&pr(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);br(xr,"propTypes",{indexName:R.string.isRequired,indexId:R.string.isRequired,children:R.node}),br(xr,"displayName","AlgoliaIndex"),br(xr,"$$type","ais.index"),br(xr,"$$widgetType","ais.index");var wr=["resultsFacetValues"],Or=["resultsFacetValues"],Rr=["resultsFacetValues"];function Pr(e){return(Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sr(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function jr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jr(Object(r),!0).forEach(function(e){Er(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Er(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Pr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Pr(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fr(e){"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(o.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat(we,")")))}var _r=function(e){return Te({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},Cr=function(e,t){return e.props.indexContextValue.targetedIndex===t},Nr=function(e){return Boolean(e.props.indexId)},Tr=function(e,t){return e.props.indexId===t},Vr=function(e,t){e=Nr(e),t=Nr(t);return e&&!t?-1:!e&&t?1:0};function Ir(r){return Object.keys(r).map(function(e){return function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})}("%s=%s",e,(t=r[e],"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(r[e]):r[e]));var t}).join("&")}function kr(e){var i,t,r,n,o,a,c,u,s,l=e.indexName,f=e.initialState,f=void 0===f?{}:f,p=e.searchClient,m=e.resultsState,h=e.stalledSearchDelay,y=Et(p,l,_({},ge)),d=(Fr(p),y.on("search",function(){b=b||setTimeout(function(){var e=R.getState(),e=(e.resultsFacetValues,Sr(e,Rr));R.setState(_(_({},e),{},{isSearchStalled:!0}))},h)}).on("result",E({indexId:l})).on("error",F),!1),b=null,v=y.state,g=(t=function(){var e=P(R.getState().widgets);R.setState(_(_({},R.getState()),{},{metadata:e,searching:!0})),j()},n=!(r=[]),{registerWidget:function(e){return r.push(e),x(),function(){r.splice(r.indexOf(e),1),x()}},update:x,getWidgets:function(){return r}});function x(){n||(n=!0,Q(function(){n=!1,t()}))}o=p,(e=m)&&(o.transporter&&!o._cacheHydrated||o._useCache&&"function"==typeof o.addAlgoliaAgent)&&(o.transporter&&!o._cacheHydrated&&(o._cacheHydrated=!0,a=o.search,o.search=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=e.map(function(e){return _(_({},e),{},{params:Ir(e.params)})});return o.transporter.responsesCache.get({method:"search",args:[i].concat(r)},function(){return a.apply(void 0,[e].concat(r))})}),Array.isArray(e.results)?(s=o,c=e.results,s.transporter?s.transporter.responsesCache.set({method:"search",args:[c.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])]},{results:c.reduce(function(e,t){return e.concat(t.rawResults)},[])}):(u="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:c.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])})),s.cache=_(_({},s.cache),{},Er({},u,JSON.stringify({results:c.reduce(function(e,t){return e.concat(t.rawResults)},[])}))))):(s=e,(u=o).transporter?u.transporter.responsesCache.set({method:"search",args:[s.rawResults.map(function(e){return{indexName:e.index,params:e.params}})]},{results:s.rawResults}):(c="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:s.rawResults.map(function(e){return{indexName:e.index,params:e.params}})})),u.cache=_(_({},u.cache),{},Er({},c,JSON.stringify({results:s.rawResults}))))));e={widgets:f,metadata:(p=m)?p.metadata.map(function(e){return _(_({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _(_({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _({value:function(){return{}}},e)})})})})}):[],results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce(function(e,t){return _(_({},e),{},Er({},t._internalIndexId,new Et.SearchResults(new Et.SearchParameters(t.state),t.rawResults)))},{});return new Et.SearchResults(new Et.SearchParameters(e.state),e.rawResults)}(m),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1},w=e,O=[];var w,O,R={getState:function(){return w},setState:function(e){w=e,O.forEach(function(e){return e()})},subscribe:function(e){return O.push(e),function(){O.splice(O.indexOf(e),1)}}};function P(t){return g.getWidgets().filter(function(e){return Boolean(e.getMetadata)}).map(function(e){return e.getMetadata(t)})}function S(){var t=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){return!_r(e)&&!Nr(e)}).reduce(function(e,t){return t.getSearchParameters(e)},v),e=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){var t=_r(e)&&Cr(e,l),e=Nr(e)&&Tr(e,l);return t||e}).sort(Vr).reduce(function(e,t){return t.getSearchParameters(e)},t),r=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){var t=_r(e)&&!Cr(e,l),e=Nr(e)&&!Tr(e,l);return t||e}).sort(Vr).reduce(function(e,t){var r=_r(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,n=e[r]||[];return _(_({},e),{},Er({},r,n.concat(t)))},{});return{mainParameters:e,derivedParameters:Object.keys(r).map(function(e){return{parameters:r[e].reduce(function(e,t){return t.getSearchParameters(e)},t),indexId:e}})}}function j(){var e,t;d||(e=(t=S()).mainParameters,t=t.derivedParameters,i=t.length+1,y.derivedHelpers.slice().forEach(function(e){e.detach()}),t.forEach(function(e){var t=e.indexId,r=e.parameters;y.derive(function(){return r}).on("result",E({indexId:t})).on("error",F)}),y.setState(e),y.search())}function E(e){var n=e.indexId;return function(e){i--;var t=R.getState(),r=!y.derivedHelpers.length,t=t.results||{},t=!r&&t.getFacetByName?{}:t,r=(t=r?e.results:_(_({},t),{},Er({},n,e.results)),R.getState()),e=r.isSearchStalled,r=(y.hasPendingRequests()||(clearTimeout(b),b=null,e=!1),r.resultsFacetValues,Sr(r,wr));R.setState(_(_({},r),{},{results:t,isSearchStalled:e,searching:0<i,error:null}))}}function F(e){var e=e.error,t=R.getState(),r=t.isSearchStalled,t=(y.hasPendingRequests()||(clearTimeout(b),r=!1),t.resultsFacetValues,Sr(t,Or));R.setState(_(_({},t),{},{isSearchStalled:r,error:e,searching:!1}))}return{store:R,widgetsManager:g,getWidgetsIds:function(){return R.getState().metadata.reduce(function(e,t){return void 0!==t.id?e.concat(t.id):e},[])},getSearchParameters:S,onSearchForFacetValues:function(e){var r=e.facetName,n=e.query,e=e.maxFacetHits,e=Math.max(1,Math.min(void 0===e?10:e,100));R.setState(_(_({},R.getState()),{},{searchingForFacetValues:!0})),y.searchForFacetValues(r,n,e).then(function(e){var t;R.setState(_(_({},R.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:_(_({},R.getState().resultsFacetValues),{},(Er(t={},r,e.facetHits),Er(t,"query",n),t))}))},function(e){R.setState(_(_({},R.getState()),{},{searchingForFacetValues:!1,error:e}))}).catch(function(e){setTimeout(function(){throw e})})},onExternalStateUpdate:function(e){var t=P(e);R.setState(_(_({},R.getState()),{},{widgets:e,metadata:t,searching:!0})),j()},transitionState:function(e){var r=R.getState().widgets;return g.getWidgets().filter(function(e){return Boolean(e.transitionState)}).reduce(function(e,t){return t.transitionState(r,e)},e)},updateClient:function(e){Fr(e),y.setClient(e),j()},updateIndex:function(e){v=v.setIndex(e)},clearCache:function(){y.clearCache(),j()},skipSearch:function(){d=!0}}}function Ar(e){return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mr(e,t){var o,r=document.createElement("meta"),n=document.querySelector("head"),t=(r.name="algolia:metadata",t=t,o=["contextValue","indexContextValue"],e=(e=e).map(function(e){var t=e.props,e=e.constructor,r=e._connectorDesc||{},n=r.defaultProps,i=void 0===n?{}:n,n=r.displayName;return{displayName:void 0===n?e.displayName:n,$$type:e.$$type,$$widgetType:e.$$widgetType,params:Object.keys(t).filter(function(e){return!o.includes(e)&&i[e]!==t[e]&&void 0!==t[e]})}}),{ua:t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua,widgets:e});r.content=JSON.stringify(t),n.appendChild(r)}function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Hr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qr(Object(r),!0).forEach(function(e){Wr(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Br(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zr(n.key),n)}}function Lr(e,t){return(Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $r(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ur(r),t=(e=n?(e=Ur(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Dr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qr(t)}}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ur(e){return(Ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wr(e,t,r){(t=zr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function zr(e){e=function(e,t){if("object"!==Dr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Dr(e)?e:String(e)}function Yr(e){return Boolean(e.searchState)}f=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lr(t,e);var r,n=$r(i);function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");Wr(Qr(e=n.call(this,e)),"cleanupTimerRef",null),Wr(Qr(e),"isUnmounting",!1);var t=kr({indexName:e.props.indexName,searchClient:e.props.searchClient,initialState:e.props.searchState||{},resultsState:e.props.resultsState,stalledSearchDelay:e.props.stalledSearchDelay}),r={store:t.store,widgetsManager:t.widgetsManager,mainTargetedIndex:e.props.indexName,onInternalStateUpdate:e.onWidgetsInternalStateUpdate.bind(Qr(e)),createHrefForState:e.createHrefForState.bind(Qr(e)),onSearchForFacetValues:e.onSearchForFacetValues.bind(Qr(e)),onSearchStateChange:e.onSearchStateChange.bind(Qr(e)),onSearchParameters:e.onSearchParameters.bind(Qr(e))};return e.state={isControlled:Yr(e.props),instantSearchManager:t,contextValue:r},e}return t=i,e=[{key:"getDerivedStateFromProps",value:function(e,t){var r=Yr(e),n=t.instantSearchManager.store.getState().widgets,i=e.searchState;return r&&!H(n,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:r,contextValue:Hr(Hr({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}],(r=[{key:"componentDidUpdate",value:function(e){var t=Yr(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),"object"===("undefined"==typeof window?"undefined":Ar(window))&&"object"===Ar(window.navigator)&&"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===Ar(window.document)&&Mr(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){var e=this;this.cleanupTimerRef=setTimeout(function(){e.isUnmounting=!0,e.state.instantSearchManager.skipSearch()})}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,r,n,i){var o;this.props.onSearchParameters&&(o=this.props.searchState||{},this.props.onSearchParameters(e,t,r,o)),this.props.widgetsCollector&&(o=this.props.searchState||{},this.props.widgetsCollector({getSearchParameters:e,getMetadata:n,context:t,props:r,searchState:o,displayName:i}))}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:d.createElement(ie,{value:this.state.contextValue},this.props.children)}}])&&Br(t.prototype,r),e&&Br(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);function Zr(e){return(Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jr(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Zr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Zr(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Wr(f,"defaultProps",{stalledSearchDelay:200,refresh:!1}),Wr(f,"propTypes",{indexName:R.string.isRequired,searchClient:R.shape({search:R.func.isRequired,searchForFacetValues:R.func,addAlgoliaAgent:R.func,clearCache:R.func}).isRequired,createURL:R.func,refresh:R.bool,searchState:R.object,onSearchStateChange:R.func,onSearchParameters:R.func,widgetsCollector:R.func,resultsState:R.oneOfType([R.object,R.array]),children:R.node,stalledSearchDelay:R.number});function Kr(e){return e.attributes[0]}i=t({displayName:"AlgoliaBreadcrumb",$$type:"ais.breadcrumb",propTypes:{attributes:function(e,t,r){if(!Array.isArray(e[t])||e[t].some(function(e){return"string"!=typeof e})||e[t].length<1)return new Error("Invalid prop ".concat(t," supplied to ").concat(r,". Expected an Array of Strings"))},transformItems:R.func},getProvidedProps:function(e,t,r){var n=Kr(e),r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return Boolean(r)&&Boolean(r.getFacetByName(n))?(n=(r=r.getFacetValues(n)).data?function r(e){return e.reduce(function(e,t){return e=t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),t.data)?e.concat(r(t.data)):e},[])}(r.data):[],{canRefine:0<(r=e.transformItems?e.transformItems(n):n).length,items:r}):{items:[],canRefine:!1}},refine:function(e,t,r){return n={ais:e.contextValue,multiIndexContext:e.indexContextValue},b(t,Jr({},Kr(e),r||""),n,!0,"hierarchicalMenu");var n}});function Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function en(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Xr(Object(i),!0).forEach(function(e){var t,r;t=n,r=i[e=e],(e=function(e){e=function(e,t){if("object"!==Gr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Gr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Gr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Xr(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}var tn=t({displayName:"AlgoliaCurrentRefinements",$$type:"ais.currentRefinements",propTypes:{transformItems:R.func},getProvidedProps:function(r,e,t,n){n=n.reduce(function(e,t){return void 0===t.items||!r.clearsQuery&&"query"===t.id||r.clearsQuery&&"query"===t.id&&""===t.items[0].currentRefinement?e:e.concat(t.items.map(function(e){return en(en({},e),{},{id:t.id,index:t.index})}))},[]),n=r.transformItems?r.transformItems(n):n;return{items:n,canRefine:0<n.length}},refine:function(e,t,r){return(r instanceof Array?r.map(function(e){return e.value}):[r]).reduce(function(e,t){return t(e)},t)}});function rn(e){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nn(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function on(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nn(Object(r),!0).forEach(function(e){an(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function an(e,t,r){return(t=function(e){e=function(e,t){if("object"!==rn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===rn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cn(e){return e.attributes[0]}var un="hierarchicalMenu";function sn(e,t,r){t=a(e,t,r,"".concat(un,".").concat(cn(e)),null);return""===t?null:t}function ln(e,u,s,l){return e.map(function(e){return{label:e.name,value:(t=e.escapedValue,n=(r=u).id,i=u.attributes,o=u.separator,a=u.rootPath,c=u.showParentLevel,null===(r=sn(u,s,l))?t:new Et.SearchParameters({hierarchicalFacets:[{name:n,attributes:i,separator:o,rootPath:a,showParentLevel:c}]}).toggleHierarchicalFacetRefinement(n,r).toggleHierarchicalFacetRefinement(n,t).getHierarchicalRefinement(n)[0]),count:e.count,isRefined:e.isRefined,items:e.data&&ln(e.data,u,s,l)};var t,r,n,i,o,a,c})}function fn(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e.slice(0,t).map(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e.items)?on(on({},e),{},{items:fn(e.items,t)}):e})}function pn(e,t,r,n){return b(t,an({},cn(e),r||""),n,!0,un)}function mn(e){var t=e.attribute,r=e.hit,n=e.highlightProperty,i=void 0===(i=e.preTag)?ge.highlightPreTag:i,e=e.postTag,t={attribute:t,highlightProperty:n,hit:r,preTag:i,postTag:void 0===e?ge.highlightPostTag:e},o=void 0===(n=t.preTag)?"<em>":n,a=void 0===(n=t.postTag)?"</em>":n,n=t.highlightProperty,r=t.attribute;if(t=t.hit)return t=ee(t[n],r)||{},Array.isArray(t)?t.map(function(e){return xe({preTag:o,postTag:a,highlightedValue:e.value})}):xe({preTag:o,postTag:a,highlightedValue:t.value});throw new Error("`hit`, the matching record, must be provided")}var hn=["name:asc"],yn=t({displayName:"AlgoliaHierarchicalMenu",$$type:"ais.hierarchicalMenu",propTypes:{attributes:function(e,t,r){if(!Array.isArray(e[t])||e[t].some(function(e){return"string"!=typeof e})||e[t].length<1)return new Error("Invalid prop ".concat(t," supplied to ").concat(r,". Expected an Array of Strings"))},separator:R.string,rootPath:R.string,showParentLevel:R.bool,defaultRefinement:R.string,showMore:R.bool,limit:R.number,showMoreLimit:R.number,transformItems:R.func,facetOrdering:R.bool},defaultProps:{showMore:!1,limit:10,showMoreLimit:20,separator:" > ",rootPath:null,showParentLevel:!0,facetOrdering:!0},getProvidedProps:function(e,t,r){var n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.facetOrdering,c=cn(e),r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return Boolean(r)&&Boolean(r.getFacetByName(c))?(n=n?o:i,i=(o=r.getFacetValues(c,{sortBy:hn,facetOrdering:a})).data?ln(o.data,e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}):[],r=e.transformItems?e.transformItems(i):i,{items:fn(r,n),currentRefinement:sn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:0<r.length}):{items:[],currentRefinement:sn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:!1}},refine:function(e,t,r){return pn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(un,".").concat(cn(r)));var r},getSearchParameters:function(e,t,r){var n=t.attributes,i=t.separator,o=t.rootPath,a=t.showParentLevel,c=t.showMore,u=t.limit,s=t.showMoreLimit,l=t.contextValue,f=cn(t),c=c?s:u,s=(e=e.addHierarchicalFacet({name:f,attributes:n,separator:i,rootPath:o,showParentLevel:a}).setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,c)}),sn(t,r,{ais:l,multiIndexContext:t.indexContextValue}));return e=null!==s?e.toggleHierarchicalFacetRefinement(f,s):e},getMetadata:function(t,e){var r=t.attributes[0],n=cn(t),e=sn(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),r=e?[{label:"".concat(r,": ").concat(te(e)),attribute:r,value:function(e){return pn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]:[];return{id:n,index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:r}}}),dn=t({displayName:"AlgoliaHighlighter",$$type:"ais.highlighter",propTypes:{},getProvidedProps:function(){return{highlight:mn}}}),bn=t({displayName:"AlgoliaHits",$$type:"ais.hits",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{hits:K(J(r.hits,r.hitsPerPage,r.page),r.queryID)}:{hits:[]}},getSearchParameters:function(e){return e}});function vn(e){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function xn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gn(Object(r),!0).forEach(function(e){wn(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function wn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==vn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==vn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===vn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function On(){return"hitsPerPage"}function Rn(e,t,r){e=a(e,t,r,"hitsPerPage",null);return"string"==typeof e?parseInt(e,10):e}var j=t({displayName:"AlgoliaHitsPerPage",$$type:"ais.hitsPerPage",propTypes:{defaultRefinement:R.number.isRequired,items:R.arrayOf(R.shape({label:R.string,value:R.number.isRequired})).isRequired,transformItems:R.func},getProvidedProps:function(e,t){var r=Rn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=e.items.map(function(e){return e.value===r?xn(xn({},e),{},{isRefined:!0}):xn(xn({},e),{},{isRefined:!1})});return{items:e.transformItems?e.transformItems(t):t,currentRefinement:r}},refine:function(e,t,r){return b(t,wn({},"hitsPerPage",r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},On())},getSearchParameters:function(e,t,r){return e.setHitsPerPage(Rn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(){return{id:On()}}});function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Sn=["page"];function jn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Pn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Pn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function En(e){return function(e){if(Array.isArray(e))return Fn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?Fn(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fn(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _n(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Cn(e){e=e||{};e.page;return _n(e,Sn)}var Nn=t({displayName:"AlgoliaInfiniteHits",$$type:"ais.infiniteHits",getProvidedProps:function(e,t,r){var n,i,o,a,c,u,s,l,f,p,m=this,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?(n=r.page,u=r.hits,f=r.hitsPerPage,i=r.nbPages,o=r._state,this._cache=e.cache||this._cache||(c=a=void 0,{read:function(e){e=e.state;return H(c,Cn(e))?a:null},write:function(e){var t=e.state,e=e.hits;c=Cn(t),a=e}}),e=this._cache.read({state:o})||{},u=K(J(u,f,n),r.queryID),e[n]=u,this._cache.write({state:o,hits:e}),s=Math.min.apply(Math,En(Object.keys(e).map(Number))),l=Math.max.apply(Math,En(Object.keys(e).map(Number))),f=0<s,r=l<i-1,{hits:(p=e,Object.keys(p).map(Number).sort(function(e,t){return e-t}).reduce(function(e,t){return e.concat(p[t])},[])),hasPrevious:f,hasMore:r,refinePrevious:function(e){return m.refine(e,s-1)},refineNext:function(e){return m.refine(e,l+1)}}):{hits:[],hasPrevious:!1,hasMore:!1,refine:function(){},refinePrevious:function(){},refineNext:function(){}}},getSearchParameters:function(e,t,r){return e.setQueryParameters({page:(t={ais:(e=t).contextValue,multiIndexContext:t.indexContextValue},("string"==typeof(e=a(e,r,t,"page",1))?parseInt(e,10):e)-1)})},refine:function(e,t,r,n){return b(t,jn({},"page",n+1),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!1)}});function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Tn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Tn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var In="menu";function kn(e){return e.attribute}function An(e,t,r){t=a(e,t,r,"".concat(In,".").concat(kn(e)),null);return""===t?null:t}function Mn(e,t,r,n){return e===An(t,r,n)?"":e}function Dn(e){var t=e.showMore,r=e.limit,e=e.showMoreLimit;return t?e:r}function qn(e,t,r,n){return b(t,Vn({},kn(e),r||""),n,!0,In)}var Hn=["count:desc","name:asc"],E=t({displayName:"AlgoliaMenu",$$type:"ais.menu",propTypes:{attribute:R.string.isRequired,showMore:R.bool,limit:R.number,showMoreLimit:R.number,defaultRefinement:R.string,transformItems:R.func,searchable:R.bool,facetOrdering:R.bool},defaultProps:{showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(t,r,e,n,i){var o=t.attribute,a=t.searchable,c=t.indexContextValue,u=t.facetOrdering,e=y(e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),s=Boolean(e)&&Boolean(e.getFacetByName(o)),l=Boolean(i&&i[o]&&""!==i.query);if(a&&c)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");return s?(c=l?i[o].map(function(e){return{label:e.value,value:Mn(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),_highlightResult:{label:{value:e.highlighted}},count:e.count,isRefined:e.isRefined}}):e.getFacetValues(o,{sortBy:a?void 0:Hn,facetOrdering:u}).map(function(e){return{label:e.name,value:Mn(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),count:e.count,isRefined:e.isRefined}}),{items:(i=t.transformItems?t.transformItems(c):c).slice(0,Dn(t)),currentRefinement:An(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:0<i.length}):{items:[],currentRefinement:An(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:s}},refine:function(e,t,r){return qn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,r){return{facetName:e.attribute,query:r,maxFacetHits:Dn(e)}},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(In,".").concat(kn(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,r=(e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,Dn(t))})).addDisjunctiveFacet(n),An(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}));return e=null!==r?e.addDisjunctiveFacetRefinement(n,r):e},getMetadata:function(t,e){var r=kn(t),e=An(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return{id:r,index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:null===e?[]:[{label:"".concat(t.attribute,": ").concat(te(e)),attribute:t.attribute,value:function(e){return qn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]}}});function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ln(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Bn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Bn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){var r;if(e)return"string"==typeof e?Qn(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qn(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Un(e){var t;return void 0===e.start&&void 0===e.end?"":(t=void 0!==e.start?e.start:"",e=void 0!==e.end?e.end:"","".concat(t,":").concat(e))}var Wn="multiRange";function zn(e){return e.attribute}function Yn(e,t,r){return a(e,t,r,"".concat(Wn,".").concat(zn(e)),"")}function Zn(e,t,r,n){return b(t,Ln({},zn(e),r),n,!0,Wn)}var Jn=t({displayName:"AlgoliaNumericMenu",$$type:"ais.numericMenu",propTypes:{id:R.string,attribute:R.string.isRequired,items:R.arrayOf(R.shape({label:R.node,start:R.number,end:R.number})).isRequired,transformItems:R.func},getProvidedProps:function(a,e,t){var r=a.attribute,c=Yn(a,e,{ais:a.contextValue,multiIndexContext:a.indexContextValue}),u=y(t,{ais:a.contextValue,multiIndexContext:a.indexContextValue}),e=a.items.map(function(e){var t,r,n,i,o=Un(e);return{label:e.label,value:o,isRefined:o===c,noRefinement:!(!u||(e=zn(a),o=o,t=(t=u).getFacetByName(e)?t.getFacetStats(e):null,e=o.split(":"),i=0===Number(e[0])||""===o?Number.NEGATIVE_INFINITY:Number(e[0]),o=0===Number(e[1])||""===o?Number.POSITIVE_INFINITY:Number(e[1]),Boolean(t)&&(e=i,n=o,(r=t).min>=e&&r.min<=n||r.max>=e&&r.max<=n||(e=o,(r=i)>=(n=t).min&&r<=n.max)||e>=n.min&&e<=n.max)))}}),t=u&&u.getFacetByName(r)?u.getFacetStats(r):null,r=G(e,function(e){return!0===e.isRefined}),r=(e.some(function(e){return""===e.value})||e.push({value:"",isRefined:void 0===r,noRefinement:!t,label:"All"}),a.transformItems?a.transformItems(e):e);return{items:r,currentRefinement:c,canRefine:0<r.length&&r.some(function(e){return!1===e.noRefinement})}},refine:function(e,t,r){return Zn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Wn,".").concat(zn(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,t=0===(r=Yn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue})).length?{start:null,end:null}:(t=(r=$n(r.split(":"),2))[0],r=r[1],{start:0<t.length?parseFloat(t):null,end:0<r.length?parseFloat(r):null}),r=t.start,t=t.end;return e=e.addDisjunctiveFacet(n),"number"==typeof r&&(e=e.addNumericRefinement(n,">=",r)),e="number"==typeof t?e.addNumericRefinement(n,"<=",t):e},getMetadata:function(t,e){var r,n=zn(t),i=Yn(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),e=[],o=h({ais:t.contextValue,multiIndexContext:t.indexContextValue});return""!==i&&(r=G(t.items,function(e){return Un(e)===i}).label,e.push({label:"".concat(t.attribute,": ").concat(r),attribute:t.attribute,currentRefinement:r,value:function(e){return Zn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})}})),{id:n,index:o,items:e}}});function Kn(e){return(Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Kn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Kn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xn(){return"page"}function ei(e,t,r){e=a(e,t,r,"page",1);return"string"==typeof e?parseInt(e,10):e}var ti=t({displayName:"AlgoliaPagination",$$type:"ais.pagination",getProvidedProps:function(e,t,r){var r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{nbPages:r=r.nbPages,currentRefinement:ei(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:1<r}:null},refine:function(e,t,r){return e={ais:e.contextValue,multiIndexContext:e.indexContextValue},b(t,Gn({},"page",r),e,!1)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},Xn())},getSearchParameters:function(e,t,r){return e.setPage(ei(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue})-1)},getMetadata:function(){return{id:Xn()}}}),ri=t({displayName:"AlgoliaPoweredBy",$$type:"ais.poweredBy",getProvidedProps:function(){var e="undefined"==typeof window||void 0===window.location?"":window.location.hostname;return{url:"https://www.algolia.com/?utm_source=react-instantsearch&utm_medium=website&"+"utm_content=".concat(e,"&")+"utm_campaign=poweredby"}}});function ni(e){return(ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ii(e,t,r){return(t=function(e){e=function(e,t){if("object"!==ni(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ni(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oi(e){return e.attribute}var ai="range";function ci(e,t,r,n){var t=a(e,t,n,"".concat(ai,".").concat(oi(e)),{}),n=t.min,t=t.max,i=Boolean(e.precision),n={min:n="string"==typeof n?i?parseFloat(n):parseInt(n,10):n,max:t="string"==typeof t?i?parseFloat(t):parseInt(t,10):t},i=void 0!==e.min,t=void 0!==e.max,e=void 0!==n.min,o=void 0!==n.max;if(i&&e&&n.min<r.min)throw Error("You can't provide min value lower than range.");if(t&&o&&n.max>r.max)throw Error("You can't provide max value greater than range.");return i&&!e&&(n.min=r.min),t&&!o&&(n.max=r.max),n}function ui(e,t){return{min:(void 0!==e.min?e:t).min,max:(void 0!==e.max?e:t).max}}function si(e,t,r,n){e=e||r!==n?e&&t?r:n:void 0;return e}function li(e,t,r,n,i){var o=r.min,r=r.max,a=n.min,n=n.max,c=void 0===o||""===o,u=void 0===r||""===r,o=c?void 0:parseFloat(o),r=u?void 0:parseFloat(r),s=c||isFinite(o),l=u||isFinite(r);if(!s||!l)throw Error("You can't provide non finite values to the range connector.");if(o<a)throw Error("You can't provide min value lower than range.");if(n<r)throw Error("You can't provide max value greater than range.");return b(t,ii({},oi(e),{min:si(void 0!==e.min,c,a,o),max:si(void 0!==e.max,u,n,r)}),i,!0,ai)}var fi=t({displayName:"AlgoliaRange",$$type:"ais.range",propTypes:{id:R.string,attribute:R.string.isRequired,defaultRefinement:R.shape({min:R.number,max:R.number}),min:R.number,max:R.number,precision:R.number,header:R.node,footer:R.node},defaultProps:{precision:0},getProvidedProps:function(e,t,r){var n=e.attribute,i=e.precision,o=e.min,a=e.max,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),c=r&&r.getFacetByName(n),u=c&&r.getFacetStats(n)||{},c=(c?r.getFacetValues(n):[]).map(function(e){return{value:e.name,count:e.count}}),u=(r={min:o,max:a},n=u,o=i,o=Math.pow(10,o),a="number"==typeof r.min&&isFinite(r.min)?r.min:"number"==typeof n.min&&isFinite(n.min)?n.min:void 0,r="number"==typeof r.max&&isFinite(r.max)?r.max:"number"==typeof n.max&&isFinite(n.max)?n.max:void 0,{min:void 0!==a?Math.floor(a*o)/o:a,max:void 0!==r?Math.ceil(r*o)/o:r}),n=u.min,a=u.max,o=(this._currentRange={min:n,max:a},ci(e,t,this._currentRange,{ais:e.contextValue,multiIndexContext:e.indexContextValue}));return{min:n,max:a,canRefine:0<c.length,currentRefinement:ui(o,this._currentRange),count:c,precision:i}},refine:function(e,t,r){return li(e,t,r,this._currentRange,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(ai,".").concat(oi(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,r=ci(t,r,this._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),t=r.min,r=r.max;return e=e.addDisjunctiveFacet(n),void 0!==t&&(e=e.addNumericRefinement(n,">=",t)),e=void 0!==r?e.addNumericRefinement(n,"<=",r):e},getMetadata:function(t,e){var r=this,n=this._currentRange,i=n.min,n=n.max,e=ci(t,e,this._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),o=e.min,e=e.max,a=[],c=void 0!==o,u=void 0!==e;return(c&&o!==i||u&&e!==n)&&(c=[c?"".concat(o," <= "):"",t.attribute,u?" <= ".concat(e):""],a.push({label:c.join(""),attribute:t.attribute,value:function(e){return li(t,e,{},r._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:ui({min:o,max:e},{min:i,max:n})})),{id:oi(t),index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:a}}});function pi(e){return(pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==pi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==pi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===pi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hi="refinementList";function yi(e){return e.attribute}function di(e,t,r){t=a(e,t,r,"".concat(hi,".").concat(yi(e)),[]);return"string"!=typeof t?t:t?[t]:[]}function bi(t,e,r,n){e=di(e,r,n);return-1===e.indexOf(t)?e.concat([t]):e.filter(function(e){return e!==t})}function vi(e){var t=e.showMore,r=e.limit,e=e.showMoreLimit;return t?e:r}function gi(e,t,r,n){return b(t,mi({},yi(e),0<r.length?r:""),n,!0,hi)}var xi=["isRefined","count:desc","name:asc"],wi=t({displayName:"AlgoliaRefinementList",$$type:"ais.refinementList",propTypes:{id:R.string,attribute:R.string.isRequired,operator:R.oneOf(["and","or"]),showMore:R.bool,limit:R.number,showMoreLimit:R.number,defaultRefinement:R.arrayOf(R.oneOfType([R.string,R.number])),searchable:R.bool,transformItems:R.func,facetOrdering:R.bool},defaultProps:{operator:"or",showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(t,r,e,n,i){var o=t.attribute,a=t.searchable,c=t.indexContextValue,u=t.facetOrdering,e=y(e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),s=Boolean(e)&&Boolean(e.getFacetByName(o)),l=Boolean(i&&i[o]&&""!==i.query);if(a&&c)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");return s?(c=l?i[o].map(function(e){return{label:e.value,value:bi(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),_highlightResult:{label:{value:e.highlighted}},count:e.count,isRefined:e.isRefined}}):e.getFacetValues(o,{sortBy:xi,facetOrdering:u}).map(function(e){return{label:e.name,value:bi(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),count:e.count,isRefined:e.isRefined}}),{items:(i=t.transformItems?t.transformItems(c):c).slice(0,vi(t)),currentRefinement:di(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:0<i.length}):{items:[],currentRefinement:di(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),canRefine:s,isFromSearch:l,searchable:a}},refine:function(e,t,r){return gi(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,r){return{facetName:e.attribute,query:r,maxFacetHits:vi(e)}},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(hi,".").concat(yi(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,i="and"===t.operator?"addFacet":"addDisjunctiveFacet",o="".concat(i,"Refinement");return e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,vi(t))}))[i](n),di(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}).reduce(function(e,t){return e[o](n,t)},e)},getMetadata:function(r,n){var e=yi(r),i={ais:r.contextValue,multiIndexContext:r.indexContextValue};return{id:e,index:h(i),items:0<di(r,n,i).length?[{attribute:r.attribute,label:"".concat(r.attribute,": "),currentRefinement:di(r,n,i),value:function(e){return gi(r,e,[],i)},items:di(r,n,i).map(function(t){return{label:te("".concat(t)),value:function(e){e=di(r,e,i).filter(function(e){return e!==t});return gi(r,n,e,i)}}})}]:[]}}}),Oi=t({displayName:"AlgoliaScrollTo",$$type:"ais.scrollTo",propTypes:{scrollOn:R.string},defaultProps:{scrollOn:"page"},getProvidedProps:function(e,t){var r=e.scrollOn,n=a(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},r,null),e=(this._prevSearchState||(this._prevSearchState={}),X(t=Te({ais:e.contextValue,multiIndexContext:e.indexContextValue})?t.indices?t.indices[h({ais:e.contextValue,multiIndexContext:e.indexContextValue})]:{}:t,["configure",r])),t=W(this._prevSearchState,e);return this._prevSearchState=e,{value:n,hasNotChanged:t}}});function Ri(e){return(Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ri(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ri(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ri(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Si(){return"query"}function ji(e,t,r){e=a(e,t,r,"query","");return e||""}function Ei(e,t,r,n){return b(t,Pi({},"query",r),n,!0)}var Fi=t({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:R.string},getProvidedProps:function(e,t,r){return{currentRefinement:ji(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:r.isSearchStalled}},refine:function(e,t,r){return Ei(0,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:e.contextValue,multiIndexContext:e.indexContextValue},n(t,e,Si())},getSearchParameters:function(e,t,r){return e.setQuery(ji(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(t,e){e=ji(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return{id:"query",index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:null===e?[]:[{label:"".concat("query",": ").concat(e),value:function(e){return Ei(0,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]}}});function _i(e){return(_i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ci(e,t,r){return(t=function(e){e=function(e,t){if("object"!==_i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==_i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===_i(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ni(){return"relevancyStrictness"}var Ti=t({displayName:"AlgoliaRelevantSort",$$type:"ais.relevantSort",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{isVirtualReplica:void 0!==r.appliedRelevancyStrictness,isRelevantSorted:void 0!==r.appliedRelevancyStrictness&&0<r.appliedRelevancyStrictness}:{isVirtualReplica:!1,isRelevantSorted:!1}},getSearchParameters:function(e,t,r){return e.setQueryParameter("relevancyStrictness",(e={ais:t.contextValue,multiIndexContext:t.indexContextValue},a(t,r,e,"relevancyStrictness")))},refine:function(e,t,r){return b(t,Ci({},Ni(),r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)}});function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ii(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function ki(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ii(Object(r),!0).forEach(function(e){Ai(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ii(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ai(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Vi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Vi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Vi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mi(){return"sortBy"}function Di(e,t,r){e=a(e,t,r,"sortBy",null);return e||null}var qi=t({displayName:"AlgoliaSortBy",$$type:"ais.sortBy",propTypes:{defaultRefinement:R.string,items:R.arrayOf(R.shape({label:R.string,value:R.string.isRequired})).isRequired,transformItems:R.func},getProvidedProps:function(e,t){var r=Di(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=e.items.map(function(e){return e.value===r?ki(ki({},e),{},{isRefined:!0}):ki(ki({},e),{},{isRefined:!1})});return{items:e.transformItems?e.transformItems(t):t,currentRefinement:r}},refine:function(e,t,r){return b(t,Ai({},"sortBy",r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},Mi())},getSearchParameters:function(e,t,r){r=Di(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return e.setIndex(r)},getMetadata:function(){return{id:Mi()}}}),Hi=t({displayName:"AlgoliaStats",$$type:"ais.stats",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{areHitsSorted:void 0!==r.appliedRelevancyStrictness&&0<r.appliedRelevancyStrictness&&r.nbHits!==r.nbSortedHits,nbHits:r.nbHits,nbSortedHits:r.nbSortedHits,processingTimeMS:r.processingTimeMS}:null}});function Bi(e){return(Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Li(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Bi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Bi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Bi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $i(e){return e.attribute}var Qi="toggle",Ui=["0","false","null","undefined"];function Wi(e,t,r){t=a(e,t,r,"".concat(Qi,".").concat($i(e)),!1);return-1===Ui.indexOf(t)&&Boolean(t)}function zi(e,t,r,n){return b(t,Li({},$i(e),r||!1),n,!0,Qi)}R=t({displayName:"AlgoliaToggle",$$type:"ais.toggle",propTypes:{label:R.string.isRequired,attribute:R.string.isRequired,value:R.any.isRequired,filter:R.func,defaultRefinement:R.bool},getProvidedProps:function(e,t,r){var n=e.attribute,i=e.value,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=Wi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),e=r&&r.getFacetByName(n)?r.getFacetValues(n):null,r=e&&e.length?G(e,function(e){return e.name===i.toString()}):null,n=r&&r.count,r=e&&e.length?e.reduce(function(e,t){return e+t.count},0):null;return{currentRefinement:t,canRefine:t?null!==r&&0<r:null!==n&&0<n,count:{checked:r,unchecked:n}}},refine:function(e,t,r){return zi(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Qi,".").concat($i(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,i=t.value,o=t.filter,r=Wi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),t=e.addDisjunctiveFacet(n);return t=r&&(t=t.addDisjunctiveFacetRefinement(n,i),o)?o(t):t},getMetadata:function(t,e){var r=$i(t),e=Wi(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),n=[],i=h({ais:t.contextValue,multiIndexContext:t.indexContextValue});return e&&n.push({label:t.label,currentRefinement:e,attribute:t.attribute,value:function(e){return zi(t,e,!1,{ais:t.contextValue,multiIndexContext:t.indexContextValue})}}),{id:r,index:i,items:n}}});function Yi(){}function Zi(){}Zi.resetWarningCache=Yi;var F=Mt(function(e){function t(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function r(){return t}e.exports=(e={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Zi,resetWarningCache:Yi}).PropTypes=e}),C=Mt(function(e){function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n,i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r))r.length&&(n=a.apply(null,r))&&e.push(n);else if("object"==i)if(r.toString===Object.prototype.toString)for(var o in r)c.call(r,o)&&r[o]&&e.push(o);else e.push(r.toString())}}return e.join(" ")}var c;c={}.hasOwnProperty,e.exports?e.exports=a.default=a:window.classNames=a});function Ji(e){return function(e){if(Array.isArray(e))return Ki(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?Ki(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ki(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(i){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(e){return e||""===e}).map(function(e){var t="".concat(o,"-").concat(i);return e?"".concat(t,"-").concat(e):t});return C(n)}}function Gi(e){var t=e.start,r=void 0===t?0:t,t=e.end,e=e.step,e=void 0===e?1:e,n=0===e?1:e,e=Math.round((t-r)/n);return Ji(Array(e)).map(function(e,t){return(r+t)*n})}function Xi(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function to(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,co(n.key),n)}}function ro(e,t){return(ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function no(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=oo(r),t=(e=n?(e=oo(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===eo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return io(t)}}function io(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oo(e){return(oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ao(e,t,r){(t=co(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function co(e){e=function(e,t){if("object"!==eo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===eo(e)?e:String(e)}var uo=N("Panel"),so=o.createContext(function(){}),lo=so.Consumer,fo=so.Provider,so=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ro(t,e);var r,a=no(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return ao(io(t=a.call.apply(a,[this].concat(i))),"state",{canRefine:!0}),ao(io(t),"setCanRefine",function(e){t.setState({canRefine:e})}),t}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=e.header,e=e.footer,i=this.state.canRefine;return d.createElement("div",{className:C(uo("",!i&&"-noRefinement"),r)},n&&d.createElement("div",{className:uo("header")},n),d.createElement("div",{className:uo("body")},d.createElement(fo,{value:this.setCanRefine},t)),e&&d.createElement("div",{className:uo("footer")},e))}}])&&to(t.prototype,e),r&&to(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function po(e){return(po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vo(n.key),n)}}function ho(e,t){return(ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=bo(r),t=(e=n?(e=bo(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===po(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function bo(e){return(bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vo(e){e=function(e,t){if("object"!==po(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==po(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===po(e)?e:String(e)}ao(so,"propTypes",{children:F.node.isRequired,className:F.string,header:F.node,footer:F.node}),ao(so,"defaultProps",{className:"",header:null,footer:null});function T(e){var t=e.canRefine,r=e.children;return d.createElement(lo,null,function(e){return d.createElement(go,{setCanRefine:e,canRefine:t},r)})}var go=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ho(t,e);var r,n=yo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.setCanRefine(this.props.canRefine)}},{key:"componentDidUpdate",value:function(e){e.canRefine!==this.props.canRefine&&this.props.setCanRefine(this.props.canRefine)}},{key:"render",value:function(){return this.props.children}}])&&mo(t.prototype,e),r&&mo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);V=go,Do="propTypes",Ho={children:F.node.isRequired,canRefine:F.bool.isRequired,setCanRefine:F.func.isRequired},(Do=vo(Do))in V?Object.defineProperty(V,Do,{value:Ho,enumerable:!0,configurable:!0,writable:!0}):V[Do]=Ho;function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wo(){return(wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fo(n.key),n)}}function Ro(e,t){return(Ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Po(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=jo(r),t=(e=n?(e=jo(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===xo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return So(t)}}function So(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Eo(e,t,r){(t=Fo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Fo(e){e=function(e,t){if("object"!==xo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===xo(e)?e:String(e)}var _o=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ro(t,e);var r,a=Po(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Eo(So(n=a.call.apply(a,[this].concat(i))),"onClick",function(e){var t,r;r=1===(t=e).button,Boolean(r||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)||(n.props.onClick(),e.preventDefault())}),n}return t=c,(e=[{key:"render",value:function(){return d.createElement("a",wo({},this.props,{onClick:this.onClick}))}}])&&Oo(t.prototype,e),r&&Oo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function Co(e){return(Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function No(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ao(n.key),n)}}function To(e,t){return(To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Io(r),t=(e=n?(e=Io(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Co(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Io(e){return(Io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ko(e,t,r){(t=Ao(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Ao(e){e=function(e,t){if("object"!==Co(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Co(e)?e:String(e)}Eo(_o,"propTypes",{onClick:F.func.isRequired});var Mo=N("Breadcrumb"),V=F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired})),Do=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&To(t,e);var r,n=Vo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.canRefine,n=e.createURL,i=e.items,o=e.refine,r=e.rootURL,a=e.separator,c=e.translate,e=e.className,c=t?d.createElement("li",{className:Mo("item")},d.createElement(_o,{className:Mo("link"),onClick:function(){return r?null:o()},href:r||n()},c("rootLabel"))):null,u=i.map(function(e,t){var r=t===i.length-1;return d.createElement("li",{className:Mo("item",r&&"item--selected"),key:t},d.createElement("span",{className:Mo("separator")},a),r?e.label:d.createElement(_o,{className:Mo("link"),onClick:function(){return o(e.value)},href:n(e.value)},e.label))});return d.createElement("div",{className:C(Mo("",!t&&"-noRefinement"),e)},d.createElement("ul",{className:Mo("list")},c,u))}}])&&No(t.prototype,e),r&&No(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),qo=(ko(Do,"propTypes",{canRefine:F.bool.isRequired,createURL:F.func.isRequired,items:V,refine:F.func.isRequired,rootURL:F.string,separator:F.node,translate:F.func.isRequired,className:F.string}),ko(Do,"defaultProps",{rootURL:null,separator:" > ",className:""}),r({rootLabel:"Home"})(Do)),Ho=i(function(e){return d.createElement(T,e,d.createElement(qo,e))},{$$widgetType:"ais.breadcrumb"});function Bo(e){return(Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zo(n.key),n)}}function $o(e,t){return($o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Uo(r),t=(e=n?(e=Uo(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Bo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Uo(e){return(Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wo(e,t,r){(t=zo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function zo(e){e=function(e,t){if("object"!==Bo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Bo(e)?e:String(e)}function Yo(e){var t=e.items,r=e.canRefine,n=e.refine,i=e.translate,e=e.className;return d.createElement("div",{className:C(Ko("",!r&&"-noRefinement"),e)},d.createElement("ul",{className:Ko("list",!r&&"list--noRefinement")},t.map(function(e){return d.createElement("li",{key:e.label,className:Ko("item")},d.createElement("span",{className:Ko("label")},e.label),e.items?e.items.map(function(e){return d.createElement("span",{key:e.label,className:Ko("category")},d.createElement("span",{className:Ko("categoryLabel")},e.label),d.createElement("button",{className:Ko("delete"),onClick:function(){return n(e.value)}},i("clearFilter",e)))}):d.createElement("span",{className:Ko("category")},d.createElement("button",{className:Ko("delete"),onClick:function(){return n(e.value)}},i("clearFilter",e))))})))}var Zo=N("ClearRefinements"),V=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$o(t,e);var r,n=Qo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.items,r=e.canRefine,n=e.refine,i=e.translate,e=e.className;return d.createElement("div",{className:C(Zo(""),e)},d.createElement("button",{className:Zo("button",!r&&"button--disabled"),onClick:function(){return n(t)},disabled:!r},i("reset")))}}])&&Lo(t.prototype,e),r&&Lo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Jo=(Wo(V,"propTypes",{items:F.arrayOf(F.object).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),Wo(V,"defaultProps",{className:""}),r({reset:"Clear all filters"})(V)),Do=tn(function(e){return d.createElement(T,e,d.createElement(Jo,e))},{$$widgetType:"ais.clearRefinements"}),Ko=N("CurrentRefinements"),Go=F.arrayOf(F.shape({label:F.string.isRequired,value:F.func.isRequired,items:function(){return Go.apply(void 0,arguments)}})),Xo=(Yo.defaultProps={className:""},r({clearFilter:"✕"})(Yo)),i=tn(function(e){return d.createElement(T,e,d.createElement(Xo,e))},{$$widgetType:"ais.currentRefinements"});function ea(e){return(ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ta(){return(ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ra(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function na(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ra(Object(r),!0).forEach(function(e){I(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ra(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ia(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sa(n.key),n)}}function oa(e,t){return(oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function aa(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ua(r),t=(e=n?(e=ua(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ea(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ca(t)}}function ca(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ua(e){return(ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t,r){return(t=sa(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sa(e){e=function(e,t){if("object"!==ea(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ea(e)?e:String(e)}var la=N("SearchBox"),V=d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:la("loadingIcon"),"aria-hidden":"true"},d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},d.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),d.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},d.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),tn=d.createElement("svg",{className:la("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},d.createElement("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"})),fa=d.createElement("svg",{className:la("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},d.createElement("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"})),pa=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oa(t,e);var r,n=aa(i);function i(e){var o;if(this instanceof i)return I(ca(o=n.call(this)),"getQuery",function(){return o.props.searchAsYouType?o.props.currentRefinement:o.state.query}),I(ca(o),"onInputMount",function(e){o.input=e,o.props.inputRef&&("function"==typeof o.props.inputRef?o.props.inputRef(e):o.props.inputRef.current=e)}),I(ca(o),"onKeyDown",function(e){var t,r,n;o.props.focusShortcuts&&(t=o.props.focusShortcuts.map(function(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e}),r=(n=e.target||e.srcElement).tagName,n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||(n=e.which||e.keyCode,-1!==t.indexOf(n)&&(o.input.focus(),e.stopPropagation(),e.preventDefault())))}),I(ca(o),"onSubmit",function(e){e.preventDefault(),e.stopPropagation(),o.input.blur();var e=o.props,t=e.refine;return e.searchAsYouType||t(o.getQuery()),!1}),I(ca(o),"onChange",function(e){var t=o.props,r=t.searchAsYouType,n=t.refine,t=t.onChange,i=e.target.value;r?n(i):o.setState({query:i}),t&&t(e)}),I(ca(o),"onReset",function(e){var t=o.props,r=t.searchAsYouType,n=t.refine,t=t.onReset;n(""),o.input.focus(),r||o.setState({query:""}),t&&t(e)}),o.state={query:e.searchAsYouType?null:e.currentRefinement},o;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var r=this,e=this.props,t=e.className,n=e.inputId,i=e.translate,o=e.autoFocus,a=e.loadingIndicator,c=e.submit,e=e.reset,u=this.getQuery(),s=Object.keys(this.props).reduce(function(e,t){return-1===["onsubmit","onreset","onchange"].indexOf(t.toLowerCase())&&0===t.indexOf("on")?na(na({},e),{},I({},t,r.props[t])):e},{}),l=this.props.showLoadingIndicator&&this.props.isSearchStalled;return d.createElement("div",{className:C(la(""),t)},d.createElement("form",{ref:this.props.formRef,noValidate:!0,onSubmit:this.props.onSubmit||this.onSubmit,onReset:this.onReset,className:la("form",l&&"form--stalledSearch"),action:"",role:"search"},d.createElement("input",ta({ref:this.onInputMount,id:n,type:"search",placeholder:i("placeholder"),autoFocus:o,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:u,onChange:this.onChange},s,{className:la("input")})),d.createElement("button",{type:"submit",title:i("submitTitle"),className:la("submit")},c),d.createElement("button",{type:"reset",title:i("resetTitle"),className:la("reset"),hidden:!u||l},e),this.props.showLoadingIndicator&&d.createElement("span",{hidden:!l,className:la("loadingIndicator")},a)))}}])&&ia(t.prototype,e),r&&ia(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),ma=(I(pa,"propTypes",{currentRefinement:F.string,className:F.string,refine:F.func.isRequired,translate:F.func.isRequired,loadingIndicator:F.node,reset:F.node,submit:F.node,focusShortcuts:F.arrayOf(F.oneOfType([F.string,F.number])),autoFocus:F.bool,searchAsYouType:F.bool,onSubmit:F.func,onReset:F.func,onChange:F.func,isSearchStalled:F.bool,showLoadingIndicator:F.bool,formRef:F.oneOfType([F.func,F.exact({current:F.object})]),inputRef:F.oneOfType([F.func,F.exact({current:F.object})]),inputId:F.string}),I(pa,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:V,reset:tn,submit:fa}),r({resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(pa));function ha(e){return(ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ya(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wa(n.key),n)}}function da(e,t){return(da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ba(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ga(r),t=(e=n?(e=ga(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ha(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return va(t)}}function va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ga(e){return(ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xa(e,t,r){(t=wa(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function wa(e){e=function(e,t){if("object"!==ha(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ha(e)?e:String(e)}var Oa=F.arrayOf(F.shape({value:F.any,label:F.node.isRequired,items:function(){return Oa.apply(void 0,arguments)}})),Ra=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&da(t,e);var r,i=ba(o);function o(){var n;if(this instanceof o)return xa(va(n=i.call(this)),"onShowMoreClick",function(){n.setState(function(e){return{extended:!e.extended}})}),xa(va(n),"getLimit",function(){var e=n.props,t=e.limit,e=e.showMoreLimit;return n.state.extended?e:t}),xa(va(n),"resetQuery",function(){n.setState({query:""})}),xa(va(n),"renderItem",function(t,e){var r=t.items&&Boolean(t.items.length);return d.createElement("li",{key:t.key||t.label,className:n.props.cx("item",t.isRefined&&"item--selected",t.noRefinement&&"item--noRefinement",r&&"item--parent")},n.props.renderItem(t,e),r&&d.createElement("ul",{className:n.props.cx("list","list--child")},t.items.slice(0,n.getLimit()).map(function(e){return n.renderItem(e,t)})))}),n.state={extended:!1,query:""},n;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderShowMore",value:function(){var e=this.props,t=e.showMore,r=e.translate,e=e.cx,n=this.state.extended,i=this.props.limit>=this.props.items.length;return t?d.createElement("button",{disabled:i,className:e("showMore",i&&"showMore--disabled"),onClick:this.onShowMoreClick},r("showMore",n)):null}},{key:"renderSearchBox",value:function(){var t=this,e=this.props,r=e.cx,n=e.searchForItems,i=e.isFromSearch,o=e.translate,a=e.items,c=e.selectItem,e=0===a.length&&""!==this.state.query?d.createElement("div",{className:r("noResults")},o("noResults")):null;return d.createElement("div",{className:r("searchBox")},d.createElement(ma,{currentRefinement:this.state.query,refine:function(e){t.setState({query:e}),n(e)},focusShortcuts:[],translate:o,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),i&&0<a.length&&c(a[0],t.resetQuery)}}),e)}},{key:"render",value:function(){var t=this,e=this.props,r=e.cx,n=e.items,i=e.className,o=e.searchable,e=e.canRefine,o=o?this.renderSearchBox():null,i=C(r("",!e&&"-noRefinement"),i);return 0===n.length?d.createElement("div",{className:i},o):d.createElement("div",{className:i},o,d.createElement("ul",{className:r("list",!e&&"list--noRefinement")},n.slice(0,this.getLimit()).map(function(e){return t.renderItem(e,t.resetQuery)})),this.renderShowMore())}}])&&ya(t.prototype,e),r&&ya(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Component);function Pa(e){return(Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Na(n.key),n)}}function ja(e,t){return(ja=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ea(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=_a(r),t=(e=n?(e=_a(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Pa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Fa(t)}}function Fa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _a(e){return(_a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ca(e,t,r){(t=Na(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Na(e){e=function(e,t){if("object"!==Pa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Pa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Pa(e)?e:String(e)}xa(Ra,"propTypes",{cx:F.func.isRequired,translate:F.func,items:Oa,renderItem:F.func.isRequired,selectItem:F.func,className:F.string,showMore:F.bool,limit:F.number,showMoreLimit:F.number,show:F.func,searchForItems:F.func,searchable:F.bool,isFromSearch:F.bool,canRefine:F.bool}),xa(Ra,"defaultProps",{className:"",isFromSearch:!1});function Ta(e){var t=e.cx,r=e.value,n=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return d.createElement(i?n:e,{className:t(i?"highlighted":"nonHighlighted")},r)}function Va(e){var n=e.cx,t=e.hit,r=e.attribute,i=e.highlight,o=e.highlightProperty,a=e.tagName,c=e.nonHighlightedTagName,u=e.separator,e=e.className,s=i({hit:t,attribute:r,highlightProperty:o});return d.createElement("span",{className:C(n(""),e)},s.map(function(e,t){var r;return Array.isArray(e)?(r=t===s.length-1,d.createElement("span",{key:t},e.map(function(e,t){return d.createElement(Ta,{cx:n,key:t,value:e.value,highlightedTagName:a,nonHighlightedTagName:c,isHighlighted:e.isHighlighted})}),!r&&d.createElement("span",{className:n("separator")},u))):d.createElement(Ta,{cx:n,key:t,value:e.value,highlightedTagName:a,nonHighlightedTagName:c,isHighlighted:e.isHighlighted})}))}var Ia=N("HierarchicalMenu"),ka=F.arrayOf(F.shape({label:F.string.isRequired,value:F.string,count:F.number.isRequired,items:function(){return ka.apply(void 0,arguments)}})),V=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ja(t,e);var r,a=Ea(c);function c(){var i,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Ca(Fa(i=a.call.apply(a,[this].concat(n))),"renderItem",function(e){var t=i.props,r=t.createURL,n=t.refine;return d.createElement(_o,{className:Ia("link",e.isRefined&&"link--selected"),onClick:function(){return n(e.value)},href:r(e.value)},d.createElement("span",{className:Ia("label")},e.label)," ",d.createElement("span",{className:Ia("count")},e.count))}),i}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.canRefine,e=e.className;return d.createElement(Ra,{renderItem:this.renderItem,cx:Ia,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,canRefine:a,className:e})}}])&&Sa(t.prototype,e),r&&Sa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Aa=(Ca(V,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,canRefine:F.bool.isRequired,items:ka,showMore:F.bool,className:F.string,limit:F.number,showMoreLimit:F.number,transformItems:F.func}),Ca(V,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"}})(V)),tn=yn(function(e){return d.createElement(T,e,d.createElement(Aa,e))},{$$widgetType:"ais.hierarchicalMenu"});function Ma(){return(Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Va.defaultProps={tagName:"em",nonHighlightedTagName:"span",className:"",separator:", "};function Da(e){return d.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")}var qa=N("Highlight"),Ha=dn(function(e){return d.createElement(Va,Ma({},e,{highlightProperty:"_highlightResult",cx:qa}))},{$$widgetType:"ais.highlight"}),Ba=N("Hits"),fa=(F.shape({objectID:F.oneOfType([F.string,F.number]).isRequired}),bn(function(e){var t=e.hits,r=e.className,r=void 0===r?"":r,e=e.hitComponent,n=void 0===e?Da:e;return d.createElement("div",{className:C(Ba(""),r)},d.createElement("ul",{className:Ba("list")},t.map(function(e){return d.createElement("li",{className:Ba("item"),key:e.objectID},d.createElement(n,{hit:e}))})))},{$$widgetType:"ais.hits"}));function La(e){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Za(n.key),n)}}function Qa(e,t){return(Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ua(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=za(r),t=(e=n?(e=za(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===La(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wa(t)}}function Wa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function za(e){return(za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ya(e,t,r){(t=Za(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Za(e){e=function(e,t){if("object"!==La(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==La(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===La(e)?e:String(e)}var Ja=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qa(t,e);var r,a=Ua(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Ya(Wa(t=a.call.apply(a,[this].concat(i))),"onChange",function(e){t.props.onSelect(e.target.value)}),t}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.id,n=e.items,e=e.selectedItem;return d.createElement("select",{id:r,className:t("select"),value:e,onChange:this.onChange},n.map(function(e){return d.createElement("option",{className:t("option"),key:void 0===e.key?e.value:e.key,disabled:e.disabled,value:e.value},void 0===e.label?e.value:e.label)}))}}])&&$a(t.prototype,e),r&&$a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function Ka(e){return(Ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ga(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nc(n.key),n)}}function Xa(e,t){return(Xa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ec(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=tc(r),t=(e=n?(e=tc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ka(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function tc(e){return(tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rc(e,t,r){(t=nc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function nc(e){e=function(e,t){if("object"!==Ka(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ka(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ka(e)?e:String(e)}Ya(Ja,"propTypes",{cx:F.func.isRequired,id:F.string,onSelect:F.func.isRequired,items:F.arrayOf(F.shape({value:F.oneOfType([F.string,F.number]).isRequired,key:F.oneOfType([F.string,F.number]),label:F.string,disabled:F.bool})).isRequired,selectedItem:F.oneOfType([F.string,F.number]).isRequired});var ic=N("HitsPerPage"),pa=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xa(t,e);var r,n=ec(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.currentRefinement,i=e.refine,e=e.className;return d.createElement("div",{className:C(ic(""),e)},d.createElement(Ja,{id:t,onSelect:i,selectedItem:n,items:r,cx:ic}))}}])&&Ga(t.prototype,e),r&&Ga(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),V=(rc(pa,"propTypes",{id:F.string,items:F.arrayOf(F.shape({value:F.number.isRequired,label:F.string})).isRequired,currentRefinement:F.number.isRequired,refine:F.func.isRequired,className:F.string}),rc(pa,"defaultProps",{className:""}),j(pa,{$$widgetType:"ais.hitsPerPage"}));function oc(e){return(oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ac(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!==oc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==oc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===oc(e)?e:String(e)}(n.key),n)}}function cc(e,t){return(cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function uc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=sc(r),t=(e=n?(e=sc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===oc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function sc(e){return(sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lc=N("InfiniteHits"),yn=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cc(t,e);var r,n=uc(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.hitComponent,r=e.hits,n=e.showPrevious,i=e.hasPrevious,o=e.hasMore,a=e.refinePrevious,c=e.refineNext,u=e.translate,e=e.className;return d.createElement("div",{className:C(lc(""),e)},n&&d.createElement("button",{className:lc("loadPrevious",!i&&"loadPrevious--disabled"),onClick:function(){return a()},disabled:!i},u("loadPrevious")),d.createElement("ul",{className:lc("list")},r.map(function(e){return d.createElement("li",{key:e.objectID,className:lc("item")},d.createElement(t,{hit:e}))})),d.createElement("button",{className:lc("loadMore",!o&&"loadMore--disabled"),onClick:function(){return c()},disabled:!o},u("loadMore")))}}])&&ac(t.prototype,e),r&&ac(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);yn.defaultProps={className:"",showPrevious:!1,hitComponent:function(e){return d.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")}};bn=Nn(r({loadPrevious:"Load previous",loadMore:"Load more"})(yn),{$$widgetType:"ais.infiniteHits"});function fc(e){return(fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vc(n.key),n)}}function mc(e,t){return(mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=dc(r),t=(e=n?(e=dc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===fc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yc(t)}}function yc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dc(e){return(dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bc(e,t,r){(t=vc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function vc(e){e=function(e,t){if("object"!==fc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===fc(e)?e:String(e)}var gc=N("Menu"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mc(t,e);var r,a=hc(c);function c(){var i,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bc(yc(i=a.call.apply(a,[this].concat(n))),"renderItem",function(e,t){var r=i.props.createURL,n=i.props.isFromSearch?d.createElement(Ha,{attribute:"label",hit:e}):e.label;return d.createElement(_o,{className:gc("link"),onClick:function(){return i.selectItem(e,t)},href:r(e.value)},d.createElement("span",{className:gc("label")},n)," ",d.createElement("span",{className:gc("count")},e.count))}),bc(yc(i),"selectItem",function(e,t){t(),i.props.refine(e.value)}),i}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.isFromSearch,c=e.searchForItems,u=e.searchable,s=e.canRefine,e=e.className;return d.createElement(Ra,{renderItem:this.renderItem,selectItem:this.selectItem,cx:gc,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,isFromSearch:a,searchForItems:c,searchable:u,canRefine:s,className:e})}}])&&pc(t.prototype,e),r&&pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),xc=(bc(j,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,searchForItems:F.func.isRequired,searchable:F.bool,createURL:F.func.isRequired,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired,count:F.number.isRequired,isRefined:F.bool.isRequired})),isFromSearch:F.bool.isRequired,canRefine:F.bool.isRequired,showMore:F.bool,limit:F.number,showMoreLimit:F.number,transformItems:F.func,className:F.string}),bc(j,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(j)),pa=E(function(e){return d.createElement(T,e,d.createElement(xc,e))},{$$widgetType:"ais.menu"});function wc(e){return(wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fc(n.key),n)}}function Rc(e,t){return(Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=jc(r),t=(e=n?(e=jc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===wc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sc(t)}}function Sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jc(e){return(jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ec(e,t,r){(t=Fc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Fc(e){e=function(e,t){if("object"!==wc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===wc(e)?e:String(e)}var _c=N("MenuSelect"),Nn=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rc(t,e);var r,a=Pc(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Ec(Sc(t=a.call.apply(a,[this].concat(i))),"handleSelectChange",function(e){e=e.target.value;t.props.refine("ais__see__all__option"===e?"":e)}),t}return t=c,(e=[{key:"selectedValue",get:function(){return(Xi(this.props.items,function(e){return!0===e.isRefined})||{value:"ais__see__all__option"}).value}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.canRefine,i=e.translate,e=e.className;return d.createElement("div",{className:C(_c("",!n&&"-noRefinement"),e)},d.createElement("select",{id:t,value:this.selectedValue,onChange:this.handleSelectChange,className:_c("select")},d.createElement("option",{value:"ais__see__all__option",className:_c("option")},i("seeAllOption")),r.map(function(e){return d.createElement("option",{key:e.value,value:e.value,className:_c("option")},e.label," (",e.count,")")})))}}])&&Oc(t.prototype,e),r&&Oc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Cc=(Ec(Nn,"propTypes",{id:F.string,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired,count:F.oneOfType([F.number.isRequired,F.string.isRequired]),isRefined:F.bool.isRequired})).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),Ec(Nn,"defaultProps",{className:""}),r({seeAllOption:"See all"})(Nn)),yn=E(function(e){return d.createElement(T,e,d.createElement(Cc,e))},{$$widgetType:"ais.menuSelect"});function Nc(e){return(Nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tc(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Vc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tc(Object(r),!0).forEach(function(e){qc(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tc(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ic(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hc(n.key),n)}}function kc(e,t){return(kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ac(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Dc(r),t=(e=n?(e=Dc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Nc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Mc(t)}}function Mc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dc(e){return(Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qc(e,t,r){(t=Hc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Hc(e){e=function(e,t){if("object"!==Nc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Nc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Nc(e)?e:String(e)}var Bc=N("NumericMenu"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kc(t,e);var r,a=Ac(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return qc(Mc(n=a.call.apply(a,[this].concat(i))),"renderItem",function(e){var t=n.props,r=t.refine,t=t.translate;return d.createElement("label",{className:Bc("label")},d.createElement("input",{className:Bc("radio"),type:"radio",checked:e.isRefined,disabled:e.noRefinement,onChange:function(){return r(e.value)}}),d.createElement("span",{className:Bc("labelText")},""===e.value?t("all"):e.label))}),n}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.items,r=e.canRefine,e=e.className;return d.createElement(Ra,{renderItem:this.renderItem,showMore:!1,canRefine:r,cx:Bc,items:t.map(function(e){return Vc(Vc({},e),{},{key:e.value})}),className:e})}}])&&Ic(t.prototype,e),r&&Ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Lc=(qc(j,"propTypes",{items:F.arrayOf(F.shape({label:F.node.isRequired,value:F.string.isRequired,isRefined:F.bool.isRequired,noRefinement:F.bool.isRequired})).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),qc(j,"defaultProps",{className:""}),r({all:"All"})(j)),Nn=Jn(function(e){return d.createElement(T,e,d.createElement(Lc,e))},{$$widgetType:"ais.numericMenu"});function $c(e){return($c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yc(n.key),n)}}function Uc(e,t){return(Uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=zc(r),t=(e=n?(e=zc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===$c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function zc(e){return(zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yc(e){e=function(e,t){if("object"!==$c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==$c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===$c(e)?e:String(e)}var E=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uc(t,e);var r,n=Wc(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.createURL,n=e.items,i=e.onSelect,e=e.canRefine;return d.createElement("ul",{className:t("list",!e&&"list--noRefinement")},n.map(function(e){return d.createElement("li",{key:void 0===e.key?e.value:e.key,className:t("item",e.selected&&!e.disabled&&"item--selected",e.disabled&&"item--disabled",e.modifier)},e.disabled?d.createElement("span",{className:t("link")},void 0===e.label?e.value:e.label):d.createElement(_o,{className:t("link",e.selected&&"link--selected"),"aria-label":e.ariaLabel,href:r(e.value),onClick:function(){return i(e.value)}},void 0===e.label?e.value:e.label))}))}}])&&Qc(t.prototype,e),r&&Qc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Zc=(j=E,Jn="propTypes",bu={cx:F.func.isRequired,createURL:F.func.isRequired,items:F.arrayOf(F.shape({value:F.oneOfType([F.string,F.number,F.object]).isRequired,key:F.oneOfType([F.string,F.number]),label:F.node,modifier:F.string,ariaLabel:F.string,disabled:F.bool})),onSelect:F.func.isRequired,canRefine:F.bool.isRequired},(Jn=Yc(Jn))in j?Object.defineProperty(j,Jn,{value:bu,enumerable:!0,configurable:!0,writable:!0}):j[Jn]=bu,["listComponent","nbPages","totalPages","currentRefinement","padding","showFirst","showPrevious","showNext","showLast","refine","createURL","canRefine","translate","className"]);function Jc(e){return(Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kc(){return(Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gc(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Xc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iu(n.key),n)}}function eu(e,t){return(eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ru(r),t=(e=n?(e=ru(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Jc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ru(e){return(ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nu(e,t,r){(t=iu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function iu(e){e=function(e,t){if("object"!==Jc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Jc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Jc(e)?e:String(e)}var ou=N("Pagination");function au(e,t,r){var n,i,o=Math.min(2*r+1,t);return o===t?Gi({start:1,end:t+1}):(t=t,i=o,i=(n=e)<=(r=r)?n:t-r<=n?i-(t-n):r+1,Gi({start:1+(e-i),end:e+(o-i)+1}))}var j=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eu(t,e);var r,n=tu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"getItem",value:function(e,t,r){var n=this.props,i=n.nbPages,o=n.totalPages,n=n.translate;return{key:"".concat(e,".").concat(r),modifier:e,disabled:r<1||r>=Math.min(o,i),label:n(t,r),value:r,ariaLabel:n("aria".concat(0===(e=t).length?"":"".concat(e[0].toUpperCase()).concat(e.slice(1))),r)}}},{key:"render",value:function(){var e=this.props,t=e.listComponent,r=e.nbPages,n=e.totalPages,i=e.currentRefinement,o=e.padding,a=e.showFirst,c=e.showPrevious,u=e.showNext,s=e.showLast,l=e.refine,f=e.createURL,p=e.canRefine,m=e.translate,h=e.className,e=Gc(e,Zc),r=Math.min(r,n),n=r,y=[];return a&&y.push({key:"first",modifier:"item--firstPage",disabled:1===i,label:m("first"),value:1,ariaLabel:m("ariaFirst")}),c&&y.push({key:"previous",modifier:"item--previousPage",disabled:1===i,label:m("previous"),value:i-1,ariaLabel:m("ariaPrevious")}),y=y.concat(au(i,r,o).map(function(e){return{key:e,modifier:"item--page",label:m("page",e),value:e,selected:e===i,ariaLabel:m("ariaPage",e)}})),u&&y.push({key:"next",modifier:"item--nextPage",disabled:i===n||n<=1,label:m("next"),value:i+1,ariaLabel:m("ariaNext")}),s&&y.push({key:"last",modifier:"item--lastPage",disabled:i===n||n<=1,label:m("last"),value:n,ariaLabel:m("ariaLast")}),d.createElement("div",{className:C(ou("",!p&&"-noRefinement"),h)},d.createElement(t,Kc({},e,{cx:ou,items:y,onSelect:l,createURL:f,canRefine:p})))}}])&&Xc(t.prototype,e),r&&Xc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),cu=(nu(j,"propTypes",{nbPages:F.number.isRequired,currentRefinement:F.number.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,canRefine:F.bool.isRequired,translate:F.func.isRequired,listComponent:F.func,showFirst:F.bool,showPrevious:F.bool,showNext:F.bool,showLast:F.bool,padding:F.number,totalPages:F.number,className:F.string}),nu(j,"defaultProps",{listComponent:E,showFirst:!0,showPrevious:!0,showNext:!0,showLast:!1,padding:3,totalPages:1/0,className:""}),r({previous:"‹",next:"›",first:"«",last:"»",page:function(e){return e.toString()},ariaPrevious:"Previous page",ariaNext:"Next page",ariaFirst:"First page",ariaLast:"Last page",ariaPage:function(e){return"Page ".concat(e.toString())}})(j)),Jn=ti(function(e){return d.createElement(T,e,d.createElement(cu,e))},{$$widgetType:"ais.pagination"});function uu(e){return(uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function su(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mu(n.key),n)}}function lu(e,t){return(lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=pu(r),t=(e=n?(e=pu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===uu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function pu(e){return(pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mu(e){e=function(e,t){if("object"!==uu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==uu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===uu(e)?e:String(e)}var hu=N("PoweredBy"),yu=d.createElement("path",{fill:"#003DFF",d:"M249.5 64.2V1.4c0-.9-.7-1.5-1.6-1.4L236.2 2a1.4 1.4 0 0 0-1.2 1.3V67c0 3 0 21.6 22.4 22.3a1.4 1.4 0 0 0 1.5-1.4v-9.5c0-.7-.6-1.3-1.2-1.4-8.2-.9-8.2-11-8.2-12.7ZM443.5 24.4h-11.8c-.8 0-1.4.6-1.4 1.4v62c0 .8.6 1.4 1.4 1.4h11.8c.8 0 1.4-.6 1.4-1.4v-62c0-.8-.6-1.4-1.4-1.4ZM431.7 16.6h11.8c.8 0 1.4-.6 1.4-1.3v-14c0-.8-.7-1.4-1.6-1.3L431.5 2a1.4 1.4 0 0 0-1.2 1.3v12c0 .8.6 1.4 1.4 1.4Zm-20.5 47.6V1.4c0-.9-.7-1.5-1.5-1.4L397.9 2a1.4 1.4 0 0 0-1.2 1.3V67c0 3 0 21.6 22.4 22.3a1.4 1.4 0 0 0 1.5-1.4v-9.5c0-.7-.5-1.3-1.2-1.4-8.2-.9-8.2-11-8.2-12.7Zm-30.7-31c-2.6-2.8-5.8-5-9.6-6.5a31.7 31.7 0 0 0-12-2.3c-4.5 0-8.5.7-12.2 2.3A27.9 27.9 0 0 0 331 43.5a39.6 39.6 0 0 0 0 26.3c1.5 4 3.6 7.5 6.2 10.3 2.6 2.9 5.8 5 9.5 6.7a38 38 0 0 0 12.2 2.4c2.8 0 8.6-.9 12.3-2.4a27 27 0 0 0 9.5-6.7 35.1 35.1 0 0 0 8.3-23c0-4.9-.8-9.6-2.4-13.6-1.5-4-3.5-7.4-6.1-10.2ZM370 71.5a13.1 13.1 0 0 1-11.2 5.6 13 13 0 0 1-11.2-5.6c-2.7-3.6-4-7.9-4-14.2 0-6.3 1.3-11.5 4-15.1a13 13 0 0 1 11.1-5.5 13 13 0 0 1 11.3 5.5c2.6 3.6 4 8.8 4 15 0 6.4-1.3 10.6-4 14.3Zm-161.6-47H197a32 32 0 0 0-27 15 33.8 33.8 0 0 0 8.9 45.9 18.8 18.8 0 0 0 11.2 3.1H191.2l.6-.2h.2a21 21 0 0 0 16.5-14.6V87c0 .8.6 1.4 1.4 1.4h11.7c.8 0 1.4-.6 1.4-1.4V25.8c0-.8-.6-1.4-1.4-1.4h-13Zm0 48.3a17.8 17.8 0 0 1-10.4 3.5h-.2a12.5 12.5 0 0 1-.7 0A18.4 18.4 0 0 1 180.4 51c2.7-6.8 9-11.6 16.6-11.6h11.5v33.3Zm289-48.3H486a32 32 0 0 0-27 15 33.8 33.8 0 0 0 8.8 45.9 18.8 18.8 0 0 0 11.3 3.1h1.1l.6-.2h.2a21 21 0 0 0 16.5-14.6V87c0 .8.6 1.4 1.4 1.4h11.7c.8 0 1.4-.6 1.4-1.4V25.8c0-.8-.6-1.4-1.4-1.4h-13.1Zm0 48.3a17.8 17.8 0 0 1-10.5 3.5h-.9A18.4 18.4 0 0 1 469.4 51c2.6-6.8 9-11.6 16.6-11.6h11.5v33.3ZM306.3 24.4h-11.5a32 32 0 0 0-27 15 33.7 33.7 0 0 0-5.1 14.6 34.6 34.6 0 0 0 0 7.6c1 8.9 5.4 16.7 11.8 22a19.5 19.5 0 0 0 2.2 1.7 18.8 18.8 0 0 0 21.6-.6c3.8-2.7 6.7-6.7 8-11.1V87.9c0 5-1.3 8.9-4 11.5-2.7 2.6-7.3 3.9-13.6 3.9-2.6 0-6.7-.2-10.9-.6a1.4 1.4 0 0 0-1.4 1l-3 10a1.4 1.4 0 0 0 1.1 1.8c5 .7 10 1 12.8 1 11.4 0 19.8-2.4 25.3-7.4 5-4.6 7.8-11.4 8.2-20.7V25.8c0-.8-.6-1.4-1.3-1.4h-13.2Zm0 15s.2 32.4 0 33.4a17.5 17.5 0 0 1-10 3.4h-.2a13.6 13.6 0 0 1-1.7 0A18.7 18.7 0 0 1 278.3 51c2.6-6.8 9-11.6 16.5-11.6h11.5ZM58.2 0A58.3 58.3 0 1 0 86 109.5c.9-.5 1-1.6.3-2.2l-5.5-4.9a3.8 3.8 0 0 0-4-.6A47 47 0 0 1 11 57.5 47.3 47.3 0 0 1 58.2 11h47.3v84L78.7 71.2a2 2 0 0 0-3 .3 22 22 0 1 1 4.4-15.2 4 4 0 0 0 1.3 2.6l7 6.2c.8.7 2 .3 2.3-.8a33 33 0 0 0-30.4-39 33 33 0 0 0-35 32 33.3 33.3 0 0 0 32.2 33.9 32.8 32.8 0 0 0 20-6.3l35.1 31c1.5 1.4 3.9.3 3.9-1.7V2.2a2.2 2.2 0 0 0-2.2-2.2h-56Z"}),du=d.createElement(function(){return d.createElement("svg",{viewBox:"0 0 512 117",width:"118",height:"27",className:hu("logo")},yu)},null),bu=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lu(t,e);var r,n=fu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.url,r=e.translate,e=e.className;return d.createElement("div",{className:C(hu(""),e)},d.createElement("span",{className:hu("text")},r("searchBy"))," ",d.createElement("a",{href:t,target:"_blank",className:hu("link"),"aria-label":"Algolia",rel:"noopener noreferrer"},du))}}])&&su(t.prototype,e),r&&su(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);E=bu,j="propTypes",ti={url:F.string.isRequired,translate:F.func.isRequired,className:F.string},(j=mu(j))in E?Object.defineProperty(E,j,{value:ti,enumerable:!0,configurable:!0,writable:!0}):E[j]=ti;E=ri(r({searchBy:"Search by"})(bu),{$$widgetType:"ais.poweredBy"});function vu(e){return(vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Su(n.key),n)}}function xu(e,t){return(xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ru(r),t=(e=n?(e=Ru(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===vu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ou(t)}}function Ou(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ru(e){return(Ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pu(e,t,r){(t=Su(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Su(e){e=function(e,t){if("object"!==vu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==vu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===vu(e)?e:String(e)}var ju=N("RangeInput"),j=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xu(t,e);var r,n=wu(i);function i(e){var t;if(this instanceof i)return Pu(Ou(t=n.call(this,e)),"onSubmit",function(e){e.preventDefault(),t.props.refine({min:t.state.from,max:t.state.to})}),t.state=t.normalizeStateForRendering(e),t;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){!this.props.canRefine||e.currentRefinement.min===this.props.currentRefinement.min&&e.currentRefinement.max===this.props.currentRefinement.max||this.setState(this.normalizeStateForRendering(this.props))}},{key:"normalizeStateForRendering",value:function(e){var t=e.canRefine,r=e.min,n=e.max,e=e.currentRefinement,i=e.min,e=e.max;return{from:t&&void 0!==i&&i!==r?i:"",to:t&&void 0!==e&&e!==n?e:""}}},{key:"normalizeRangeForRendering",value:function(e){var t=e.canRefine,r=e.min,e=e.max,n=void 0!==r,i=void 0!==e;return{min:t&&n&&i?r:"",max:t&&n&&i?e:""}}},{key:"render",value:function(){var t=this,e=this.state,r=e.from,e=e.to,n=this.props,i=n.precision,o=n.translate,a=n.canRefine,n=n.className,c=this.normalizeRangeForRendering(this.props),u=c.min,c=c.max,i=1/Math.pow(10,i);return d.createElement("div",{className:C(ju("",!a&&"-noRefinement"),n)},d.createElement("form",{className:ju("form"),onSubmit:this.onSubmit},d.createElement("input",{className:ju("input","input--min"),type:"number",min:u,max:c,value:r,step:i,placeholder:u,disabled:!a,onChange:function(e){return t.setState({from:e.currentTarget.value})}}),d.createElement("span",{className:ju("separator")},o("separator")),d.createElement("input",{className:ju("input","input--max"),type:"number",min:u,max:c,value:e,step:i,placeholder:c,disabled:!a,onChange:function(e){return t.setState({to:e.currentTarget.value})}}),d.createElement("button",{className:ju("submit"),type:"submit"},o("submit"))))}}])&&gu(t.prototype,e),r&&gu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Eu=(Pu(j,"propTypes",{canRefine:F.bool.isRequired,precision:F.number.isRequired,translate:F.func.isRequired,refine:F.func.isRequired,min:F.number,max:F.number,currentRefinement:F.shape({min:F.number,max:F.number}),className:F.string}),Pu(j,"defaultProps",{currentRefinement:{},className:""}),r({submit:"ok",separator:"to"})(j)),ti=fi(function(e){return d.createElement(T,e,d.createElement(Eu,e))},{$$widgetType:"ais.rangeInput"}),Fu=d.createElement("div",null,"We do not provide any Slider, see the documentation to learn how to connect one easily:",d.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.algolia.com/doc/api-reference/widgets/range-slider/react/"},"https://www.algolia.com/doc/api-reference/widgets/range-slider/react/"));function _u(e){return(_u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cu(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Nu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cu(Object(r),!0).forEach(function(e){Mu(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cu(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Tu(){return(Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Vu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Du(n.key),n)}}function Iu(e,t){return(Iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ku(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Au(r),t=(e=n?(e=Au(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===_u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Au(e){return(Au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mu(e,t,r){(t=Du(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Du(e){e=function(e,t){if("object"!==_u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==_u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===_u(e)?e:String(e)}var k=N("RatingMenu"),qu=d.createElement("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"}),Hu=d.createElement("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"}),ri=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Iu(t,e);var r,n=ku(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"onClick",value:function(e,t,r){r.preventDefault(),r.stopPropagation(),e===this.props.currentRefinement.min&&t===this.props.currentRefinement.max?this.props.refine({min:this.props.min,max:this.props.max}):this.props.refine({min:e,max:t})}},{key:"buildItem",value:function(e){for(var t=e.max,r=e.lowerBound,n=e.count,i=e.translate,o=e.createURL,e=e.isLastSelectableItem,a=!n,c=this.props.currentRefinement.min<r,c=e&&c||!a&&r===this.props.currentRefinement.min&&t===this.props.currentRefinement.max,u=[],s=0,l=0;l<t;l++)l<r&&s++,u.push([d.createElement("svg",{key:l,className:k("starIcon",r<=l?"starIcon--empty":"starIcon--full"),"aria-hidden":"true",width:"24",height:"24"},d.createElement("use",{xlinkHref:"#".concat(k(r<=l?"starEmptySymbol":"starSymbol"))}))," "]);e=a||e&&c?{}:{href:o({min:r,max:t}),onClick:this.onClick.bind(this,r,t)};return d.createElement("li",{key:r,className:k("item",c&&"item--selected",a&&"item--disabled")},d.createElement("a",Tu({className:k("link"),"aria-label":"".concat(s).concat(i("ratingLabel"))},e),u,d.createElement("span",{className:k("label"),"aria-hidden":"true"},i("ratingLabel"))," ",d.createElement("span",{className:k("count")},n)))}},{key:"render",value:function(){var n=this,e=this.props,t=e.min,r=e.max,i=e.translate,o=e.count,a=e.createURL,c=e.canRefine,e=e.className,u=void 0!==t&&0<=t?t:1,s=void 0!==r&&0<=r?r:0,t=s-u+1,l=o.map(function(e){return Nu(Nu({},e),{},{value:parseFloat(e.value)})}).filter(function(e){return e.value>=u&&e.value<=s}),r=Gi({start:0,end:Math.max(t,0)}).map(function(t){return Xi(l,function(e){return e.value===s-t})||{value:s-t,count:0,total:0}}).reduce(function(e,t,r){return e.concat(Nu(Nu({},t),{},{total:0===r?t.count:e[r-1].total+t.count}))},[]).map(function(e,t,r){return n.buildItem({lowerBound:e.value,count:e.total,isLastSelectableItem:r.length-1===t,max:s,translate:i,createURL:a})});return d.createElement("div",{className:C(k("",!c&&"-noRefinement"),e)},d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"}},d.createElement("symbol",{id:k("starSymbol"),viewBox:"0 0 24 24"},qu),d.createElement("symbol",{id:k("starEmptySymbol"),viewBox:"0 0 24 24"},Hu)),d.createElement("ul",{className:k("list",!c&&"list--noRefinement")},r))}}])&&Vu(t.prototype,e),r&&Vu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Bu=(Mu(ri,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,min:F.number,max:F.number,currentRefinement:F.shape({min:F.number,max:F.number}),count:F.arrayOf(F.shape({value:F.string,count:F.number})),canRefine:F.bool.isRequired,className:F.string}),Mu(ri,"defaultProps",{className:""}),r({ratingLabel:" & Up"})(ri)),bu=fi(function(e){return d.createElement(T,e,d.createElement(Bu,e))},{$$widgetType:"ais.ratingMenu"});function Lu(e){return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zu(n.key),n)}}function Qu(e,t){return(Qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Uu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=zu(r),t=(e=n?(e=zu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Lu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wu(t)}}function Wu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zu(e){return(zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yu(e,t,r){(t=Zu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Zu(e){e=function(e,t){if("object"!==Lu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Lu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Lu(e)?e:String(e)}var Ju=N("RefinementList"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qu(t,e);var r,a=Uu(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Yu(Wu(n=a.call.apply(a,[this].concat(i))),"state",{query:""}),Yu(Wu(n),"selectItem",function(e,t){t(),n.props.refine(e.value)}),Yu(Wu(n),"renderItem",function(e,t){var r=n.props.isFromSearch?d.createElement(Ha,{attribute:"label",hit:e}):e.label;return d.createElement("label",{className:Ju("label")},d.createElement("input",{className:Ju("checkbox"),type:"checkbox",checked:e.isRefined,onChange:function(){return n.selectItem(e,t)}}),d.createElement("span",{className:Ju("labelText")},r)," ",d.createElement("span",{className:Ju("count")},e.count.toLocaleString()))}),n}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.isFromSearch,c=e.searchForItems,u=e.searchable,s=e.canRefine,e=e.className;return d.createElement(Ra,{renderItem:this.renderItem,selectItem:this.selectItem,cx:Ju,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,isFromSearch:a,searchForItems:c,searchable:u,canRefine:s,className:e,query:this.state.query})}}])&&$u(t.prototype,e),r&&$u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Ku=(Yu(j,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,searchForItems:F.func.isRequired,searchable:F.bool,createURL:F.func.isRequired,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.arrayOf(F.string).isRequired,count:F.number.isRequired,isRefined:F.bool.isRequired})),isFromSearch:F.bool.isRequired,canRefine:F.bool.isRequired,showMore:F.bool,limit:F.number,showMoreLimit:F.number,transformItems:F.func,className:F.string}),Yu(j,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(j)),ri=wi(function(e){return d.createElement(T,e,d.createElement(Ku,e))},{$$widgetType:"ais.refinementList"});function Gu(e){return(Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ns(n.key),n)}}function es(e,t){return(es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ts(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=rs(r),t=(e=n?(e=rs(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Gu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function rs(e){return(rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ns(e){e=function(e,t){if("object"!==Gu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Gu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Gu(e)?e:String(e)}var is=N("ScrollTo"),fi=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&es(t,e);var r,n=ts(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.value,t=t.hasNotChanged;r!==e.value&&t&&this.el.scrollIntoView()}},{key:"render",value:function(){var t=this;return d.createElement("div",{ref:function(e){return t.el=e},className:is("")},this.props.children)}}])&&Xu(t.prototype,e),r&&Xu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),j=(j=fi,wi="propTypes",us={value:F.any,children:F.node,hasNotChanged:F.bool},(wi=ns(wi))in j?Object.defineProperty(j,wi,{value:us,enumerable:!0,configurable:!0,writable:!0}):j[wi]=us,Oi(fi,{$$widgetType:"ais.scrollTo"})),wi=Fi(ma,{$$widgetType:"ais.searchBox"});function os(){return(os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function as(e){return e=e.isRelevantSorted,d.createElement("span",null,e?"See all results":"See relevant results")}var cs=N("Snippet"),us=dn(function(e){return d.createElement(Va,os({},e,{highlightProperty:"_snippetResult",cx:cs}))},{$$widgetType:"ais.snippet"}),ss=N("RelevantSort"),Oi=Ti(function(e){var t=e.className,t=void 0===t?"":t,r=e.isVirtualReplica,n=e.isRelevantSorted,i=e.buttonTextComponent,i=void 0===i?as:i,o=e.textComponent,a=e.refine;return r?d.createElement("div",{className:C(ss(""),t)},d.createElement("div",{className:ss("text")},o&&d.createElement(o,{isRelevantSorted:n})),d.createElement("button",{className:ss("button"),onClick:function(){return a(n?0:void 0)}},d.createElement(i,{isRelevantSorted:n}))):null},{$$widgetType:"ais.relevantSort"});function ls(e){return(ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ds(n.key),n)}}function ps(e,t){return(ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ms(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=hs(r),t=(e=n?(e=hs(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ls(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function hs(e){return(hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ys(e,t,r){(t=ds(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function ds(e){e=function(e,t){if("object"!==ls(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ls(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ls(e)?e:String(e)}function bs(e){var t=e.currentRefinement,r=e.label,n=e.canRefine,i=e.refine,e=e.className;return d.createElement("div",{className:C(xs("",!n&&"-noRefinement"),e)},d.createElement("label",{className:xs("label")},d.createElement("input",{className:xs("checkbox"),type:"checkbox",checked:t,onChange:function(e){return i(e.target.checked)}}),d.createElement("span",{className:xs("labelText")},r)))}var vs=N("SortBy"),fi=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ps(t,e);var r,n=ms(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.currentRefinement,i=e.refine,e=e.className;return d.createElement("div",{className:C(vs(""),e)},d.createElement(Ja,{id:t,cx:vs,items:r,selectedItem:n,onSelect:i}))}}])&&fs(t.prototype,e),r&&fs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Fi=(ys(fi,"propTypes",{id:F.string,items:F.arrayOf(F.shape({label:F.string,value:F.string.isRequired})).isRequired,currentRefinement:F.string.isRequired,refine:F.func.isRequired,className:F.string}),ys(fi,"defaultProps",{className:""}),qi(fi,{$$widgetType:"ais.sortBy"})),gs=N("Stats"),dn=Hi(r({stats:function(e,t,r,n){return(n&&e!==r?"".concat(r.toLocaleString()," relevant results sorted out of ").concat(e.toLocaleString()," found in "):"".concat(e.toLocaleString()," results found in ")).concat(t.toLocaleString(),"ms")}})(function(e){var t=e.className,t=void 0===t?"":t,r=e.areHitsSorted,n=e.nbHits,i=e.nbSortedHits,o=e.processingTimeMS,e=e.translate;return d.createElement("div",{className:C(gs(""),t)},d.createElement("span",{className:gs("text")},e("stats",n,o,i,r)))}),{$$widgetType:"ais.stats"}),xs=N("ToggleRefinement"),Ti=(bs.defaultProps={className:""},R(bs,{$$widgetType:"ais.toggleRefinement"})),ws=["children","className"];function Os(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}var Rs=N("DynamicWidgets");function Ps(e){var t=e.children,r=e.className,e=Os(e,ws);return d.createElement("div",{className:C(Rs(""),r)},d.createElement(sr,e,t))}F=Ps;e.Breadcrumb=Ho,e.ClearRefinements=Do,e.Configure=re,e.CurrentRefinements=i,e.DynamicWidgets=Ps,e.ExperimentalConfigureRelatedItems=w,e.ExperimentalDynamicWidgets=F,e.HierarchicalMenu=tn,e.Highlight=Ha,e.Hits=fa,e.HitsPerPage=V,e.Index=function(t){var r=t.indexName;return d.createElement(ne,null,function(e){return d.createElement(xr,fr({contextValue:e,indexId:r},t))})},e.InfiniteHits=bn,e.InstantSearch=f,e.Menu=pa,e.MenuSelect=yn,e.NumericMenu=Nn,e.Pagination=Jn,e.Panel=so,e.PoweredBy=E,e.RangeInput=ti,e.RangeSlider=function(){return Fu},e.RatingMenu=bu,e.RefinementList=ri,e.RelevantSort=Oi,e.ScrollTo=j,e.SearchBox=wi,e.Snippet=us,e.SortBy=Fi,e.Stats=dn,e.ToggleRefinement=Ti,e.getInsightsAnonymousUserToken=function(){for(var e="_ALGOLIA",t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((e=e||self).ReactInstantSearch=e.ReactInstantSearch||{},e.ReactInstantSearch.Dom={}),e.React)}(this,function(e,o){"use strict";var d="default"in o?o.default:o,A="undefined"!=typeof Element,M="function"==typeof Map,D="function"==typeof Set,q="function"==typeof ArrayBuffer;var H=function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1}else if(M&&t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a=t.entries();!(i=a.next()).done;)if(!r.has(i.value[0]))return!1;for(a=t.entries();!(i=a.next()).done;)if(!e(i.value[1],r.get(i.value[0])))return!1}else if(D&&t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a=t.entries();!(i=a.next()).done;)if(!r.has(i.value[0]))return!1}else if(q&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1}else{if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;if(A&&t instanceof Element)return!1;for(i=n;0!=i--;)if(!("_owner"===o[i]&&t.$$typeof||e(t[o[i]],r[o[i]])))return!1}return!0}return t!=t&&r!=r}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},B=o.createContext({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),L=B.Consumer,$=B.Provider,B=o.createContext(void 0),Q=B.Consumer,U=B.Provider;function W(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function z(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?W(Object(i),!0).forEach(function(e){var t,r;t=n,r=i[e=e],(e=function(e){e=function(e,t){if("object"!==Y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):W(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Z(e){X.then(e)}var J=Object.prototype.hasOwnProperty,K=function(e,t){if(e!==t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!J.call(t,r[i])||e[r[i]]!==t[r[i]])return!1}return!0},G=function(e){return e.displayName||e.name||"UnknownComponent"},X=Promise.resolve(),ee=function n(i){return Object.keys(i).forEach(function(e){var t,r=i[e];"object"!==Y(t=r)||null===t||Array.isArray(t)||((t=r)&&0<Object.keys(t).length?n(r):delete i[e])}),i};function te(e,r,n){return e.map(function(e,t){return z(z({},e),{},{__position:r*n+t+1})})}function re(e,t){return t?e.map(function(e){return z(z({},e),{},{__queryID:t})}):e}function ne(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function ie(e,t){if(null==e)return{};for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];0<=t.indexOf(o)||(r[o]=e[o])}return r}var oe=function(e,t){return(Array.isArray(t)?t:t.replace(/\[(\d+)]/g,".$1").split(".")).reduce(function(e,t){return e?e[t]:void 0},e)};function ae(e){return e.replace(/^\\-/,"-")}var ce=["contextValue"];function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(){return(se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function le(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function fe(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function pe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,be(n.key),n)}}function he(e,t){return(he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ye(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=de(r),t=(e=n?(e=de(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ue(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t,r){(t=be(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function be(e){e=function(e,t){if("object"!==ue(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ue(e)?e:String(e)}function ve(s){var a;if(s.displayName)return a="function"==typeof s.getSearchParameters||"function"==typeof s.getMetadata||"function"==typeof s.transitionState,function(i){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&he(t,e);var r,n=ye(o);function o(e){var i;if(this instanceof o)return u(c(i=n.call(this,e)),"unsubscribe",void 0),u(c(i),"unregisterWidget",void 0),u(c(i),"cleanupTimerRef",null),u(c(i),"isUnmounting",!1),u(c(i),"state",{providedProps:i.getProvidedProps(i.props)}),u(c(i),"refine",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i.props.contextValue.onInternalStateUpdate((e=s.refine).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),u(c(i),"createURL",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i.props.contextValue.createHrefForState((e=s.refine).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),u(c(i),"searchForFacetValues",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i.props.contextValue.onSearchForFacetValues((e=s.searchForFacetValues).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),s.getSearchParameters&&i.props.contextValue.onSearchParameters(s.getSearchParameters.bind(c(i)),{ais:i.props.contextValue,multiIndexContext:i.props.indexContextValue},i.props,s.getMetadata&&s.getMetadata.bind(c(i)),s.displayName),i;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentDidMount",value:function(){var e=this;this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),this.unsubscribe=this.props.contextValue.store.subscribe(function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})}),a&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(e,t){return"function"==typeof s.shouldComponentUpdate?s.shouldComponentUpdate.call(this,this.props,e,this.state,t):(e=K(this.props,e),null===this.state.providedProps||null===t.providedProps?this.state.providedProps!==t.providedProps||!e:!e||!K(this.state.providedProps,t.providedProps))}},{key:"componentDidUpdate",value:function(e){H(e,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),a&&(this.props.contextValue.widgetsManager.update(),"function"==typeof s.transitionState)&&this.props.contextValue.onSearchStateChange(s.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets)))}},{key:"componentWillUnmount",value:function(){var t=this;this.cleanupTimerRef=setTimeout(function(){var e;t.isUnmounting=!0,t.unsubscribe&&t.unsubscribe(),t.unregisterWidget&&(t.unregisterWidget(),"function"==typeof s.cleanUp)&&(e=s.cleanUp.call(t,t.props,t.props.contextValue.store.getState().widgets),t.props.contextValue.store.setState(pe(pe({},t.props.contextValue.store.getState()),{},{widgets:e})),t.props.contextValue.onSearchStateChange(ee(e)))})}},{key:"getProvidedProps",value:function(e){var t=this.props.contextValue.store.getState(),r=t.widgets,n=t.results,i=t.resultsFacetValues,o=t.searching,a=t.searchingForFacetValues,c=t.isSearchStalled,u=t.metadata,t=t.error;return s.getProvidedProps.call(this,e,r,{results:n,searching:o,searchingForFacetValues:a,isSearchStalled:c,error:t},u,i)}},{key:"getSearchParameters",value:function(e){return"function"==typeof s.getSearchParameters?s.getSearchParameters.call(this,e,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(e){return"function"==typeof s.getMetadata?s.getMetadata.call(this,this.props,e):{}}},{key:"transitionState",value:function(e,t){return"function"==typeof s.transitionState?s.transitionState.call(this,this.props,e,t):t}},{key:"render",value:function(){var e,t,r=this.props,r=(r.contextValue,le(r,ce)),n=this.state.providedProps;return null===n?null:(e="function"==typeof s.refine?{refine:this.refine,createURL:this.createURL}:{},t="function"==typeof s.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{},d.createElement(i,se({},r,n,e,t)))}}])&&me(t.prototype,e),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Component);return u(t,"displayName","".concat(s.displayName,"(").concat(G(i),")")),u(t,"$$type",s.$$type),u(t,"$$widgetType",e.$$widgetType),u(t,"propTypes",s.propTypes),u(t,"defaultProps",s.defaultProps),u(t,"_connectorDesc",s),t};throw new Error("`createConnector` requires you to provide a `displayName` property.")}function t(r){return function(e,t){var n=ve(r)(e,t);return function(r){return d.createElement(L,null,function(t){return d.createElement(Q,null,function(e){return d.createElement(n,se({contextValue:t,indexContextValue:e},r))})})}}}var ge={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};function xe(e){var t,r=e.preTag,n=e.postTag,e=e.highlightedValue,e=(void 0===e?"":e).split(r),i=e.shift(),o=""===i?[]:[{value:i,isHighlighted:!1}];return n===r?(t=!0,e.forEach(function(e){o.push({value:e,isHighlighted:t}),t=!t})):e.forEach(function(e){e=e.split(n);o.push({value:e[0],isHighlighted:!0}),""!==e[1]&&o.push({value:e[1],isHighlighted:!1})}),o}var we="6.40.4";function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(){return(Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_e(n.key),n)}}function Se(e,t){return(Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function je(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Fe(r),t=(e=n?(e=Fe(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Oe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ee(t)}}function Ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e){e=function(e,t){if("object"!==Oe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Oe(e)?e:String(e)}function r(s){return function(n){var e=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Se(t,e);var r,c=je(u);function u(){var o,e=this,t=u;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=c.call.apply(c,[this].concat(i)),e=Ee(o),t=function(e){var t=o.props.translations,t=(t&&t.hasOwnProperty(e)?t:s)[e];if("function"!=typeof t)return t;for(var r=arguments.length,n=new Array(1<r?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.apply(void 0,n)},(r=_e(r="translate"))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,o}return t=u,(e=[{key:"render",value:function(){return d.createElement(n,Re({translate:this.translate},this.props))}}])&&Pe(t.prototype,e),r&&Pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Component),t=n.displayName||n.name||"UnknownComponent";return e.displayName="Translatable(".concat(t,")"),e}}function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ce(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ce(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return Te(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function y(e,t){if(e.results){if(e.results.hits)return e.results;t=h(t);if(e.results[t])return e.results[t]}return null}function Te(e){return e&&e.multiIndexContext}function b(t,e,r,n,i){var o,a,c,u,s,l,f;return Te(r)?(r=h(r),i?(c=e,u=r,l=i,s=(s=n)?{page:1}:void 0,f=(a=t).indices&&a.indices[u]?p(p({},a.indices),{},m({},u,p(p({},a.indices[u]),{},(m(f={},l,p(p({},a.indices[u][l]),c)),m(f,"page",1),f)))):p(p({},a.indices),{},m({},u,p(m({},l,c),s))),p(p({},a),{},{indices:f})):(u=e,l=r,c=(c=n)?{page:1}:void 0,l=(s=t).indices&&s.indices[l]?p(p({},s.indices),{},m({},l,p(p(p({},s.indices[l]),u),c))):p(p({},s.indices),{},m({},l,p(p({},u),c))),p(p({},s),{},{indices:l}))):(t.indices&&n&&Object.keys(t.indices).forEach(function(e){t=b(t,{page:1},{multiIndexContext:{targetedIndex:e}},!0,i)}),i?(a=e,f=i,r=(r=n)?{page:1}:void 0,p(p({},o=t),{},m({},f,p(p({},o[f]),a)),r)):(o=e,r=(r=n)?{page:1}:void 0,p(p(p({},t),o),r)))}function Ve(e){e=e.match(/^([^.]*)\.(.*)/);return{namespace:e&&e[1],attributeName:e&&e[2]}}function a(e,t,r,n,i){var o,a=h(r),c=Ve(n),u=c.namespace,c=c.attributeName,r={multiIndex:Te(r),indexId:a,namespace:u,attributeName:c,id:n,searchState:t};return u=(a=r).multiIndex,c=a.indexId,n=a.namespace,t=a.attributeName,o=a.id,a=a.searchState,(u&&n?a.indices&&a.indices[c]&&a.indices[c][n]&&Object.hasOwnProperty.call(a.indices[c][n],t):u?a.indices&&a.indices[c]&&Object.hasOwnProperty.call(a.indices[c],o):n?a[n]&&Object.hasOwnProperty.call(a[n],t):Object.hasOwnProperty.call(a,o))?(c=(u=r).multiIndex,n=u.indexId,t=u.namespace,a=u.attributeName,o=u.id,u=u.searchState,c&&t?u.indices[n][t][a]:c?u.indices[n][o]:t?u[t][a]:u[o]):e.defaultRefinement||i}function n(e,t,r){var n,i,o,a,c=h(t),u=Ve(r),s=u.namespace,u=u.attributeName;return Te(t)&&Boolean(e.indices)?(c=(t={attribute:u,searchState:e,indexId:c,id:r,namespace:s}).searchState,i=t.indexId,n=t.id,a=t.namespace,t=t.attribute,o=c.indices[i],a&&o?p(p({},c),{},{indices:p(p({},c.indices),{},m({},i,p(p({},o),{},m({},a,ie(o[a],[t])))))}):o?p(p({},c),{},{indices:p(p({},c.indices),{},m({},i,ie(o,[n])))}):c):(t=(a={attribute:u,searchState:e,id:r,namespace:s}).searchState,i=a.id,o=a.namespace,a=a.attribute,o?p(p({},t),{},m({},o,ie(t[o],[a]))):ie(t,[i]))}function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ke=["children","contextValue","indexContextValue"],Ae=["children","contextValue","indexContextValue"];function Me(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function De(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(r),!0).forEach(function(e){qe(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function qe(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ie(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ie(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function He(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Be(){return"configure"}var B=t({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;t=He(t,ke);return e.setQueryParameters(t)},transitionState:function(e,t,r){var n=Be(),i=(e.children,e.contextValue,e.indexContextValue,He(e,Ae)),o=Object.keys(e),a=this._props?Object.keys(this._props).filter(function(e){return-1===o.indexOf(e)}):[];return this._props=e,b(r,qe({},n,De(De({},ie(r[n],a)),i)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(r,e){var n=Be(),t=h({ais:r.contextValue,multiIndexContext:r.indexContextValue}),i=Te({ais:r.contextValue,multiIndexContext:r.indexContextValue})&&e.indices?e.indices[t]:e,t=(i&&i[n]?Object.keys(i[n]):[]).reduce(function(e,t){return r[t]||(e[t]=i[n][t]),e},{});return b(e,qe({},n,t),{ais:r.contextValue,multiIndexContext:r.indexContextValue})}})(function(){return null},{$$widgetType:"ais.configure"}),i=("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).performance||{};i.now||i.mozNow||i.msNow||i.oNow||i.webkitNow;function Le(e,t){return e(t={exports:{}},t.exports),t.exports}var i="function"==typeof Symbol&&Symbol.for,$e=i?Symbol.for("react.element"):60103,Qe=i?Symbol.for("react.portal"):60106,Ue=i?Symbol.for("react.fragment"):60107,We=i?Symbol.for("react.strict_mode"):60108,ze=i?Symbol.for("react.profiler"):60114,Ye=i?Symbol.for("react.provider"):60109,Ze=i?Symbol.for("react.context"):60110,Je=i?Symbol.for("react.async_mode"):60111,Ke=i?Symbol.for("react.concurrent_mode"):60111,Ge=i?Symbol.for("react.forward_ref"):60112,Xe=i?Symbol.for("react.suspense"):60113,et=i?Symbol.for("react.suspense_list"):60120,tt=i?Symbol.for("react.memo"):60115,rt=i?Symbol.for("react.lazy"):60116,nt=i?Symbol.for("react.block"):60121,it=i?Symbol.for("react.fundamental"):60117,ot=i?Symbol.for("react.responder"):60118,at=i?Symbol.for("react.scope"):60119;function s(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case $e:switch(e=e.type){case Je:case Ke:case Ue:case ze:case We:case Xe:return e;default:switch(e=e&&e.$$typeof){case Ze:case Ge:case rt:case tt:case Ye:return e;default:return t}}case Qe:return t}}}function ct(e){return s(e)===Ke}var ut={AsyncMode:Je,ConcurrentMode:Ke,ContextConsumer:Ze,ContextProvider:Ye,Element:$e,ForwardRef:Ge,Fragment:Ue,Lazy:rt,Memo:tt,Portal:Qe,Profiler:ze,StrictMode:We,Suspense:Xe,isAsyncMode:function(e){return ct(e)||s(e)===Je},isConcurrentMode:ct,isContextConsumer:function(e){return s(e)===Ze},isContextProvider:function(e){return s(e)===Ye},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===$e},isForwardRef:function(e){return s(e)===Ge},isFragment:function(e){return s(e)===Ue},isLazy:function(e){return s(e)===rt},isMemo:function(e){return s(e)===tt},isPortal:function(e){return s(e)===Qe},isProfiler:function(e){return s(e)===ze},isStrictMode:function(e){return s(e)===We},isSuspense:function(e){return s(e)===Xe},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Ue||e===Ke||e===ze||e===We||e===Xe||e===et||"object"==typeof e&&null!==e&&(e.$$typeof===rt||e.$$typeof===tt||e.$$typeof===Ye||e.$$typeof===Ze||e.$$typeof===Ge||e.$$typeof===it||e.$$typeof===ot||e.$$typeof===at||e.$$typeof===nt)},typeOf:s},i=Le(function(e,t){});i.AsyncMode,i.ConcurrentMode,i.ContextConsumer,i.ContextProvider,i.Element,i.ForwardRef,i.Fragment,i.Lazy,i.Memo,i.Portal,i.Profiler,i.StrictMode,i.Suspense,i.isAsyncMode,i.isConcurrentMode,i.isContextConsumer,i.isContextProvider,i.isElement,i.isForwardRef,i.isFragment,i.isLazy,i.isMemo,i.isPortal,i.isProfiler,i.isStrictMode,i.isSuspense,i.isValidElementType,i.typeOf,Le(function(e){e.exports=ut});function st(){}function lt(){}lt.resetWarningCache=st;i=Le(function(e){function t(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function r(){return t}e.exports=(e={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:lt,resetWarningCache:st}).PropTypes=e});function l(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var ft=l;function f(e){return"function"==typeof e}function pt(e){return"object"==typeof e&&null!==e}function mt(e){return void 0===e}l.prototype._events=void 0,l.prototype._maxListeners=void 0,l.defaultMaxListeners=10,l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},l.prototype.emit=function(e){var t,r,n,i,o,a,c;if((this._events||(this._events={}),"error"===e)&&(!this._events.error||pt(this._events.error)&&!this._events.error.length))throw(c=arguments[1])instanceof Error?c:((a=new Error('Uncaught, unspecified "error" event. ('+c+")")).context=c,a);if(mt(t=this._events[e]))return!1;if(f(t))switch(arguments.length){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),t.apply(this,n)}else if(pt(t))for(n=Array.prototype.slice.call(arguments,1),r=(o=t.slice()).length,i=0;i<r;i++)o[i].apply(this,n);return!0},l.prototype.on=l.prototype.addListener=function(e,t){if(f(t))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,f(t.listener)?t.listener:t),this._events[e]?pt(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,pt(this._events[e])&&!this._events[e].warned&&(t=mt(this._maxListeners)?l.defaultMaxListeners:this._maxListeners)&&0<t&&this._events[e].length>t&&(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")},l.prototype.once=function(e,t){var r;if(f(t))return r=!1,n.listener=t,this.on(e,n),this;throw TypeError("listener must be a function");function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}},l.prototype.removeListener=function(e,t){var r,n,i,o;if(!f(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(i=(r=this._events[e]).length,n=-1,r===t||f(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(pt(r)){for(o=i;0<o--;)if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},l.prototype.removeAllListeners=function(e){var t,r;if(this._events)if(this._events.removeListener)if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);this.removeAllListeners("removeListener"),this._events={}}else{if(f(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);delete this._events[e]}else 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e];return this},l.prototype.listeners=function(e){e=this._events&&this._events[e]?f(this._events[e])?[this._events[e]]:this._events[e].slice():[];return e},l.prototype.listenerCount=function(e){if(this._events){e=this._events[e];if(f(e))return 1;if(e)return e.length}return 0},l.listenerCount=function(e,t){return e.listenerCount(t)};var ht=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})};function yt(e,t){this.main=e,this.fn=t,this.lastResults=null}ht(yt,ft),yt.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},yt.prototype.getModifiedState=function(e){return this.fn(e)};var dt=yt;var v=function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},bt=function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")};function vt(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function gt(e,t){var r,n;if(e!==t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"__proto__"!==i&&"constructor"!==i&&(r=t[i],void 0!==(n=e[i])&&void 0===r||(vt(n)&&vt(r)?e[i]=gt(n,r):e[i]="object"==typeof(n=r)&&null!==n?gt(Array.isArray(n)?[]:{},n):n));return e}var xt=function(e){vt(e)||(e={});for(var t=1,r=arguments.length;t<r;t++){var n=arguments[t];vt(n)&>(e,n)}return e};var wt=function(e){return e&&0<Object.keys(e).length};var Ot=function(e,t){if(null===e)return{};for(var r,n={},i=Object.keys(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||(n[r]=e[r]);return n};function Rt(r){return Object.keys(r).sort().reduce(function(e,t){return e[t]=r[t],e},{})}function Pt(){return Array.prototype.slice.call(arguments).reduceRight(function(t,r){return Object.keys(Object(r)).forEach(function(e){void 0!==r[e]&&(void 0!==t[e]&&delete t[e],t[e]=r[e])}),t},{})}var g={_getQueries:function(c,u){var s=[];return s.push({indexName:c,params:g._getHitsSearchParams(u)}),u.getRefinedDisjunctiveFacets().forEach(function(e){s.push({indexName:c,params:g._getDisjunctiveFacetSearchParams(u,e)})}),u.getRefinedHierarchicalFacets().forEach(function(e){var o,a=u.getHierarchicalFacetByName(e),e=u.getHierarchicalRefinement(e),n=u._getHierarchicalFacetSeparator(a);0<e.length&&1<e[0].split(n).length&&(o=e[0].split(n).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:a.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(n)})},[])).forEach(function(e,t){e=g._getDisjunctiveFacetSearchParams(u,e.attribute,0===t);function n(t){return a.attributes.some(function(e){return e===t.split(":")[0]})}var r=(e.facetFilters||[]).reduce(function(e,t){var r;return Array.isArray(t)&&0<(r=t.filter(function(e){return!n(e)})).length&&e.push(r),"string"!=typeof t||n(t)||e.push(t),e},[]),i=o[t-1];e.facetFilters=0<t?r.concat(i.attribute+":"+i.value):0<r.length?r:void 0,s.push({indexName:c,params:e})})}),s},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(g._getHitsHierarchicalFacetsAttributes(e)).sort(),r=g._getFacetFilters(e),n=g._getNumericFilters(e),i=g._getTagFilters(e),t={facets:-1<t.indexOf("*")?["*"]:t,tagFilters:i};return 0<r.length&&(t.facetFilters=r),0<n.length&&(t.numericFilters=n),Rt(xt({},e.getQueryParams(),t))},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=g._getFacetFilters(e,t,r),i=g._getNumericFilters(e,t),o=g._getTagFilters(e),a={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1},o=(0<o.length&&(a.tagFilters=o),e.getHierarchicalFacetByName(t));return a.facets=o?g._getDisjunctiveHierarchicalFacetAttribute(e,o,r):t,0<i.length&&(a.numericFilters=i),0<n.length&&(a.facetFilters=n),Rt(xt({},e.getQueryParams(),a))},_getNumericFilters:function(e,i){var o;return e.numericFilters||(o=[],Object.keys(e.numericRefinements).forEach(function(n){var t=e.numericRefinements[n]||{};Object.keys(t).forEach(function(r){var e=t[r]||[];i!==n&&e.forEach(function(e){var t;Array.isArray(e)?(t=e.map(function(e){return n+r+e}),o.push(t)):o.push(n+r+e)})})}),o)},_getTagFilters:function(e){return e.tagFilters||e.tagRefinements.join(",")},_getFacetFilters:function(a,c,u){var s=[],e=a.facetsRefinements||{},r=(Object.keys(e).sort().forEach(function(t){(e[t]||[]).sort().forEach(function(e){s.push(t+":"+e)})}),a.facetsExcludes||{}),n=(Object.keys(r).sort().forEach(function(t){(r[t]||[]).sort().forEach(function(e){s.push(t+":-"+e)})}),a.disjunctiveFacetsRefinements||{}),l=(Object.keys(n).sort().forEach(function(t){var r,e=n[t]||[];t!==c&&e&&0!==e.length&&(r=[],e.sort().forEach(function(e){r.push(t+":"+e)}),s.push(r))}),a.hierarchicalFacetsRefinements||{});return Object.keys(l).sort().forEach(function(e){var t=(l[e]||[])[0];if(void 0!==t){var r,n=a.getHierarchicalFacetByName(e),i=a._getHierarchicalFacetSeparator(n),o=a._getHierarchicalRootPath(n);if(c===e){if(-1===t.indexOf(i)||!o&&!0===u||o&&o.split(i).length===t.split(i).length)return;t=o?(r=o.split(i).length-1,o):(r=t.split(i).length-2,t.slice(0,t.lastIndexOf(i)))}else r=t.split(i).length-1;(e=n.attributes[r])&&s.push([e+":"+t])}}),s},_getHitsHierarchicalFacetsAttributes:function(i){return i.hierarchicalFacets.reduce(function(e,t){var r,n=i.getHierarchicalRefinement(t.name)[0];return n?(r=i._getHierarchicalFacetSeparator(t),n=n.split(r).length,r=t.attributes.slice(0,n+1),e.concat(r)):(e.push(t.attributes[0]),e)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n,i=e._getHierarchicalFacetSeparator(t);return!0===r?(r=0,(n=e._getHierarchicalRootPath(t))&&(r=n.split(i).length),[t.attributes[r]]):(n=(e.getHierarchicalRefinement(t.name)[0]||"").split(i).length-1,t.attributes.slice(0,1+n))},getSearchForFacetQuery:function(e,t,r,n){n=n.isDisjunctiveFacet(e)?n.clearRefinements(e):n,t={facetQuery:t,facetName:e};return"number"==typeof r&&(t.maxFacetHits=r),Rt(xt({},g._getHitsSearchParams(n),t))}},St=g,x=function(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]};var jt=function(r,n){return r.filter(function(e,t){return-1<n.indexOf(e)&&r.indexOf(e)===t})};var Et=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")},Ft={addRefinement:function(e,t,r){var n;return Ft.isRefined(e,t,r)?e:(r=""+r,r=e[t]?e[t].concat(r):[r],(n={})[t]=r,Pt({},n,e))},removeRefinement:function(e,r,t){var n;return void 0===t?Ft.clearRefinement(e,function(e,t){return r===t}):(n=""+t,Ft.clearRefinement(e,function(e,t){return r===t&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return Ft.isRefined(e,t,r)?Ft.removeRefinement(e,t,r):Ft.addRefinement(e,t,r)},clearRefinement:function(i,o,a){var c,e;return void 0===o?wt(i)?{}:i:"string"==typeof o?Ot(i,[o]):"function"==typeof o?(c=!1,e=Object.keys(i).reduce(function(e,t){var r=i[t]||[],n=r.filter(function(e){return!o(e,t,a)});return n.length!==r.length&&(c=!0),e[t]=n,e},{}),c?e:i):void 0},isRefined:function(e,t,r){var n=Boolean(e[t])&&0<e[t].length;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}},w=Ft;function _t(e,r){return Array.isArray(e)&&Array.isArray(r)?e.length===r.length&&e.every(function(e,t){return _t(r[t],e)}):e===r}function O(e){var n=e?O._parseNumbers(e):{},i=(void 0===n.userToken||null!==(e=n.userToken)&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=n.facets||[],this.disjunctiveFacets=n.disjunctiveFacets||[],this.hierarchicalFacets=n.hierarchicalFacets||[],this.facetsRefinements=n.facetsRefinements||{},this.facetsExcludes=n.facetsExcludes||{},this.disjunctiveFacetsRefinements=n.disjunctiveFacetsRefinements||{},this.numericRefinements=n.numericRefinements||{},this.tagRefinements=n.tagRefinements||[],this.hierarchicalFacetsRefinements=n.hierarchicalFacetsRefinements||{},this);Object.keys(n).forEach(function(e){var t=-1!==O.PARAMETERS.indexOf(e),r=void 0!==n[e];!t&&r&&(i[e]=n[e])})}O.PARAMETERS=Object.keys(new O),O._parseNumbers=function(i){var n,o;return i instanceof O?i:(n={},["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(e){var t,r=i[e];"string"==typeof r&&(t=parseFloat(r),n[e]=isNaN(t)?r:t)}),Array.isArray(i.insideBoundingBox)&&(n.insideBoundingBox=i.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),i.numericRefinements&&(o={},Object.keys(i.numericRefinements).forEach(function(r){var n=i.numericRefinements[r]||{};o[r]={},Object.keys(n).forEach(function(e){var t=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});o[r][e]=t})}),n.numericRefinements=o),xt({},i,n))},O.make=function(e){var r=new O(e);return(e.hierarchicalFacets||[]).forEach(function(e){var t;e.rootPath&&0===(t=(r=0<(t=r.getHierarchicalRefinement(e.name)).length&&0!==t[0].indexOf(e.rootPath)?r.clearRefinements(e.name):r).getHierarchicalRefinement(e.name)).length&&(r=r.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}),r},O.validate=function(e,t){t=t||{};return e.tagFilters&&t.tagRefinements&&0<t.tagRefinements.length?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):0<e.tagRefinements.length&&t.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&t.numericRefinements&&wt(t.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):wt(e.numericRefinements)&&t.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},O.prototype={constructor:O,clearRefinements:function(e){e={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:w.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:w.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:w.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:w.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return e.numericRefinements===this.numericRefinements&&e.facetsRefinements===this.facetsRefinements&&e.facetsExcludes===this.facetsExcludes&&e.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&e.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(e)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n,r=Et(r);return this.isNumericRefined(e,t,r)?this:((n=xt({},this.numericRefinements))[e]=xt({},n[e]),n[e][t]?(n[e][t]=n[e][t].slice(),n[e][t].push(r)):n[e][t]=[r],this.setQueryParameters({numericRefinements:n}))},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(r,n,e){var i=e;return void 0!==i?this.isNumericRefined(r,n,i)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r&&e.op===n&&_t(e.val,Et(i))})}):this:void 0!==n?this.isNumericRefined(r,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r&&e.op===n})}):this:this.isNumericRefined(r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(a){var c,t,e;return void 0===a?wt(this.numericRefinements)?{}:this.numericRefinements:"string"==typeof a?Ot(this.numericRefinements,[a]):"function"==typeof a?(c=!1,t=this.numericRefinements,e=Object.keys(t).reduce(function(e,n){var i=t[n],o={},i=i||{};return Object.keys(i).forEach(function(t){var e=i[t]||[],r=[];e.forEach(function(e){a({val:e,op:t},n,"numeric")||r.push(e)}),r.length!==e.length&&(c=!0),o[t]=r}),e[n]=o,e},{}),c?e:this.numericRefinements):void 0},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return w.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:w.addRefinement(this.facetsRefinements,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},addExcludeRefinement:function(e,t){if(this.isConjunctiveFacet(e))return w.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:w.addRefinement(this.facetsExcludes,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},addDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return w.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:w.addRefinement(this.disjunctiveFacetsRefinements,e,t)});throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},addTagRefinement:function(e){return this.isTagRefined(e)?this:(e={tagRefinements:this.tagRefinements.concat(e)},this.setQueryParameters(e))},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter(function(e){return e!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(e){return e!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(e){return e.name!==t})}):this},removeFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return w.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:w.removeRefinement(this.facetsRefinements,e,t)}):this;throw new Error(e+" is not defined in the facets attribute of the helper configuration")},removeExcludeRefinement:function(e,t){if(this.isConjunctiveFacet(e))return w.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:w.removeRefinement(this.facetsExcludes,e,t)}):this;throw new Error(e+" is not defined in the facets attribute of the helper configuration")},removeDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return w.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:w.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this;throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},removeTagRefinement:function(t){var e;return this.isTagRefined(t)?(e={tagRefinements:this.tagRefinements.filter(function(e){return e!==t})},this.setQueryParameters(e)):this},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return this.setQueryParameters({facetsRefinements:w.toggleRefinement(this.facetsRefinements,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},toggleExcludeFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return this.setQueryParameters({facetsExcludes:w.toggleRefinement(this.facetsExcludes,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},toggleDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return this.setQueryParameters({disjunctiveFacetsRefinements:w.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)});throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},toggleHierarchicalFacetRefinement:function(e,t){var r,n;if(this.isHierarchicalFacet(e))return r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n={},void 0!==this.hierarchicalFacetsRefinements[e]&&0<this.hierarchicalFacetsRefinements[e].length&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?n[e]=[]:n[e]=[t.slice(0,t.lastIndexOf(r))]:n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:Pt({},n,this.hierarchicalFacetsRefinements)});throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration")},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");var r;if(this.isHierarchicalFacet(e))return(r={})[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:Pt({},r,this.hierarchicalFacetsRefinements)});throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.")},removeHierarchicalFacetRefinement:function(e){var t;return this.isHierarchicalFacetRefined(e)?((t={})[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:Pt({},t,this.hierarchicalFacetsRefinements)})):this},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return-1<this.disjunctiveFacets.indexOf(e)},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return-1<this.facets.indexOf(e)},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&w.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&w.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&w.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){return!!this.isHierarchicalFacet(e)&&(e=this.getHierarchicalRefinement(e),t?-1!==e.indexOf(t):0<e.length)},isNumericRefined:function(e,t,r){var n,i;return void 0===r&&void 0===t?Boolean(this.numericRefinements[e]):(n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t],void 0!==r&&n?(r=Et(r),t=void 0!==(e=this.numericRefinements[e][t],i=r,x(e,function(e){return _t(e,i)})),n&&t):n)},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var t=this,e=jt(Object.keys(this.numericRefinements).filter(function(e){return 0<Object.keys(t.numericRefinements[e]).length}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(e){return 0<t.disjunctiveFacetsRefinements[e].length}).concat(e).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var t=this;return jt(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(e){return 0<t.hierarchicalFacetsRefinements[e].length})).sort()},getUnrefinedDisjunctiveFacets:function(){var t=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(e){return-1===t.indexOf(e)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var r=this.managedParameters,n={},i=this;return Object.keys(this).forEach(function(e){var t=i[e];-1===r.indexOf(e)&&void 0!==t&&(n[e]=t)}),n},setQueryParameter:function(e,t){var r;return this[e]===t?this:((r={})[e]=t,this.setQueryParameters(r))},setQueryParameters:function(e){if(!e)return this;var t=O.validate(this,e);if(t)throw t;var r=this,i=O._parseNumbers(e),t=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),e=Object.keys(i).reduce(function(e,t){var r=void 0!==e[t],n=void 0!==i[t];return r&&!n?Ot(e,[t]):(n&&(e[t]=i[t]),e)},t);return new this.constructor(e)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return x(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 Ct(e){return Array.isArray(e)?e.filter(Boolean):[]}function Nt(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function Tt(e,t){var n=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var r=t.split(":"),t=x(n,function(e){return e[0]===r[0]});return 1<r.length||!t?(e[0].push(r[0]),e[1].push(r[1])):(e[0].push(t[0]),e[1].push(t[1])),e},[[],[]])}var Vt=O;var It=function(e,r,i){return Array.isArray(e)?(Array.isArray(i)||(i=[]),(e=e.map(function(t,e){return{criteria:r.map(function(e){return t[e]}),index:e,value:t}})).sort(function(e,t){for(var r=-1;++r<e.criteria.length;){var n=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,o=null===t;if(!o&&t<e||n&&i||!r)return 1;if(!n&&e<t||o&&r||!i)return-1}return 0}(e.criteria[r],t.criteria[r]);if(n)return!(r>=i.length)&&"desc"===i[r]?-n:n}return e.index-t.index}),e.map(function(e){return e.value})):[]},kt=function(h){return function(e,t){function r(e,a,t){var r,c=e;if(0<t){var n=0;for(c=e;n<t;){var i=c&&Array.isArray(c.data)?c.data:[],c=x(i,function(e){return e.isRefined});n++}}return c&&(r=Object.keys(a.data).map(function(e){return[e,a.data[e]]}).filter(function(e){var t,r,n,i,o,e=e[0];return e=e,t=c.path||s,r=f,n=u,o=l,(!(i=s)||0===e.indexOf(i)&&i!==e)&&(!i&&-1===e.indexOf(n)||i&&e.split(n).length-i.split(n).length==1||-1===e.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(e)||0===e.indexOf(t+n)&&(o||0===e.indexOf(r)))}),c.data=It(r.map(function(e){var t,r,n,i,o=e[0],e=e[1];return e=e,o=o,t=u,r=Mt(f),n=a.exhaustive,{name:(i=o.split(t))[i.length-1].trim(),path:o,escapedValue:At(o),count:e,isRefined:r===o||0===r.indexOf(o+t),exhaustive:n,data:null}}),o[0],o[1])),e}var o,u,s,l,f,n=h.hierarchicalFacets[t],i=h.hierarchicalFacetsRefinements[n.name]&&h.hierarchicalFacetsRefinements[n.name][0]||"",a=h._getHierarchicalFacetSeparator(n),c=h._getHierarchicalRootPath(n),p=h._getHierarchicalShowParentLevel(n),n=Tt(h._getHierarchicalFacetSortBy(n)),m=e.every(function(e){return e.exhaustive}),n=(o=n,u=a,l=p,f=i,e);return(n=(s=c)?e.slice(c.split(a).length):n).reduce(r,{name:h.hierarchicalFacets[t].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:m,data:null})}},At=v,Mt=bt;var Dt=v,qt=bt;function Ht(e){var r={};return e.forEach(function(e,t){r[e]=t}),r}function Bt(e,t,r){t&&t[r]&&(e.stats=t[r])}function Lt(l,t,r){var c=t[0],f=(this._rawResults=t,this),e=(Object.keys(c).forEach(function(e){f[e]=c[e]}),Object.keys(r||{}).forEach(function(e){f[e]=r[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=l.hierarchicalFacets.map(function(){return[]}),this.facets=[],l.getRefinedDisjunctiveFacets()),u=Ht(l.facets),s=Ht(l.disjunctiveFacets),n=1,p=c.facets||{};Object.keys(p).forEach(function(e){var t,r,n,i,o=p[e],a=(n=l.hierarchicalFacets,t=e,x(n,function(e){return-1<(e.attributes||[]).indexOf(t)}));a?(n=a.attributes.indexOf(e),r=Nt(l.hierarchicalFacets,function(e){return e.name===a.name}),f.hierarchicalFacets[r][n]={attribute:e,data:o,exhaustive:c.exhaustiveFacetsCount}):(r=-1!==l.disjunctiveFacets.indexOf(e),n=-1!==l.facets.indexOf(e),r&&(i=s[e],f.disjunctiveFacets[i]={name:e,data:o,exhaustive:c.exhaustiveFacetsCount},Bt(f.disjunctiveFacets[i],c.facets_stats,e)),n&&(i=u[e],f.facets[i]={name:e,data:o,exhaustive:c.exhaustiveFacetsCount},Bt(f.facets[i],c.facets_stats,e)))}),this.hierarchicalFacets=Ct(this.hierarchicalFacets),e.forEach(function(e){var i=t[n],o=i&&i.facets?i.facets:{},a=l.getHierarchicalFacetByName(e);Object.keys(o).forEach(function(t){var r,e,n=o[t];a?(r=Nt(l.hierarchicalFacets,function(e){return e.name===a.name}),-1!==(e=Nt(f.hierarchicalFacets[r],function(e){return e.attribute===t}))&&(f.hierarchicalFacets[r][e].data=xt({},f.hierarchicalFacets[r][e].data,n))):(r=s[t],e=c.facets&&c.facets[t]||{},f.disjunctiveFacets[r]={name:t,data:Pt({},n,e),exhaustive:i.exhaustiveFacetsCount},Bt(f.disjunctiveFacets[r],i.facets_stats,t),l.disjunctiveFacetsRefinements[t]&&l.disjunctiveFacetsRefinements[t].forEach(function(e){!f.disjunctiveFacets[r].data[e]&&-1<l.disjunctiveFacetsRefinements[t].indexOf(qt(e))&&(f.disjunctiveFacets[r].data[e]=0)}))}),n++}),l.getRefinedHierarchicalFacets().forEach(function(e){var c=l.getHierarchicalFacetByName(e),u=l._getHierarchicalFacetSeparator(c),s=l.getHierarchicalRefinement(e);0===s.length||s[0].split(u).length<2||t.slice(n).forEach(function(e){var a=e&&e.facets?e.facets:{};Object.keys(a).forEach(function(t){var e,r,n=a[t],i=Nt(l.hierarchicalFacets,function(e){return e.name===c.name}),o=Nt(f.hierarchicalFacets[i],function(e){return e.attribute===t});-1!==o&&(e={},0<s.length&&(e[r=s[0].split(u)[0]]=f.hierarchicalFacets[i][o].data[r]),f.hierarchicalFacets[i][o].data=Pt(e,n,f.hierarchicalFacets[i][o].data))}),n++})}),Object.keys(l.facetsExcludes).forEach(function(t){var e=l.facetsExcludes[t],r=u[t];f.facets[r]={name:t,data:p[t],exhaustive:c.exhaustiveFacetsCount},e.forEach(function(e){f.facets[r]=f.facets[r]||{name:t},f.facets[r].data=f.facets[r].data||{},f.facets[r].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(kt(l)),this.facets=Ct(this.facets),this.disjunctiveFacets=Ct(this.disjunctiveFacets),this._state=l}function $t(r,n){function e(e){return e.name===n}var i,o,t,a,c,u;return r._state.isConjunctiveFacet(n)?(i=x(r.facets,e))?Object.keys(i.data).map(function(e){var t=Dt(e);return{name:e,escapedValue:t,count:i.data[e],isRefined:r._state.isFacetRefined(n,t),isExcluded:r._state.isExcludeRefined(n,e)}}):[]:r._state.isDisjunctiveFacet(n)?(o=x(r.disjunctiveFacets,e))?Object.keys(o.data).map(function(e){var t=Dt(e);return{name:e,escapedValue:t,count:o.data[e],isRefined:r._state.isDisjunctiveFacetRefined(n,t)}}):[]:r._state.isHierarchicalFacet(n)?((t=x(r.hierarchicalFacets,e))&&(u=r._state.getHierarchicalFacetByName(n),a=r._state._getHierarchicalFacetSeparator(u),(u=(c=0===(c=qt(r._state.getHierarchicalRefinement(n)[0]||"")).indexOf(u.rootPath)?c.replace(u.rootPath+a,""):c).split(a)).unshift(n),function t(e,r,n){e.isRefined=e.name===r[n];e.data&&e.data.forEach(function(e){t(e,r,n+1)})}(t,u,0)),t):void 0}function Qt(e,t){e=x(e,function(e){return e.name===t});return e&&e.stats}function Ut(e,t,r,n,i){var i=x(i,function(e){return e.name===r}),o=i&&i.data&&i.data[n]?i.data[n]:0,i=i&&i.exhaustive||!1;return{type:t,attributeName:r,name:n,count:o,exhaustive:i}}Lt.prototype.getFacetByName=function(t){function e(e){return e.name===t}return x(this.facets,e)||x(this.disjunctiveFacets,e)||x(this.hierarchicalFacets,e)},Lt.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],Lt.prototype.getFacetValues=function(e,t){var a,c,r=$t(this,e);if(r)return a=Pt({},t,{sortBy:Lt.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),c=this,function t(r,e,n,i){var o;return i=i||0,Array.isArray(e)?r(e,n[i]):e.data&&0!==e.data.length?(o=e.data.map(function(e){return t(r,e,n,i+1)}),o=r(o,n[i]),Pt({data:o},e)):e}(function(e,t){if(a.facetOrdering){t=t;o=(o=c).renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(o)return t=e,r=[],n=[],i=((o=o).order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),t.forEach(function(e){var t=e.path||e.name;void 0!==i[t]?r[i[t]]=e:n.push(e)}),r=r.filter(function(e){return e}),"hidden"===(t=o.sortRemainingBy)?r:r.concat(It(n,(o="alpha"===t?[["path","name"],["asc","asc"]]:[["count"],["desc"]])[0],o[1]))}var r,n,i,o;if(Array.isArray(a.sortBy))return t=Tt(a.sortBy,Lt.DEFAULT_SORT),It(e,t[0],t[1]);if("function"==typeof a.sortBy)return o=a.sortBy,e.sort(o);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,Array.isArray(r)?[e]:c._state.getHierarchicalFacetByName(r.name).attributes)},Lt.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?Qt(this.facets,e):this._state.isDisjunctiveFacet(e)?Qt(this.disjunctiveFacets,e):void 0},Lt.prototype.getRefinements=function(){var a=this._state,c=this,u=[];return Object.keys(a.facetsRefinements).forEach(function(t){a.facetsRefinements[t].forEach(function(e){u.push(Ut(0,"facet",t,e,c.facets))})}),Object.keys(a.facetsExcludes).forEach(function(t){a.facetsExcludes[t].forEach(function(e){u.push(Ut(0,"exclude",t,e,c.facets))})}),Object.keys(a.disjunctiveFacetsRefinements).forEach(function(t){a.disjunctiveFacetsRefinements[t].forEach(function(e){u.push(Ut(0,"disjunctive",t,e,c.disjunctiveFacets))})}),Object.keys(a.hierarchicalFacetsRefinements).forEach(function(o){a.hierarchicalFacetsRefinements[o].forEach(function(e){var t,r,n,i;u.push((t=a,r=o,e=e,n=c.hierarchicalFacets,i=t.getHierarchicalFacetByName(r),t=t._getHierarchicalFacetSeparator(i),i=e.split(t),e=x(n,function(e){return e.name===r}),t=i.reduce(function(e,t){var r=e&&x(e.data,function(e){return e.name===t});return void 0!==r?r:e},e),n=t&&t.count||0,i=t&&t.exhaustive||!1,e=t&&t.path||"",{type:"hierarchical",attributeName:r,name:e,count:n,exhaustive:i}))})}),Object.keys(a.numericRefinements).forEach(function(r){var e=a.numericRefinements[r];Object.keys(e).forEach(function(t){e[t].forEach(function(e){u.push({type:"numeric",attributeName:r,name:e,numericValue:e,operator:t})})})}),a.tagRefinements.forEach(function(e){u.push({type:"tag",attributeName:"_tags",name:e})}),u};var Wt=Lt,bt="3.14.0",zt=v;function R(e,t,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.14.0)"),this.setClient(e);e=r||{};e.index=t,this.state=Vt.make(e),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function Yt(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Zt(){return this.state.page}ht(R,ft),R.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},R.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},R.prototype.getQuery=function(){var e=this.state;return St._getHitsSearchParams(e)},R.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,e=St._getQueries(r.index,r),n=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(e).then(function(e){return n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),{content:new Wt(r,e.results),state:r,_originalResponse:e}},function(e){throw n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),e});this.client.search(e).then(function(e){n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),t(null,new Wt(r,e.results),r)}).catch(function(e){n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),t(e,null,r)})},R.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var r=r.getModifiedState(t),t=xt({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:Ot(St._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),n="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(n);var i=this.client.initIndex(r.index);if("function"!=typeof i.findAnswers)throw new Error(n);return i.findAnswers(r.query,e.queryLanguages,t)},R.prototype.searchForFacetValues=function(t,e,r,n){var i,o,a,c="function"==typeof this.client.searchForFacetValues,u="function"==typeof this.client.initIndex;if(c||u||"function"==typeof this.client.search)return i=this.state.setQueryParameters(n||{}),o=i.isDisjunctiveFacet(t),n=St.getSearchForFacetQuery(t,e,r,i),this._currentNbQueries++,a=this,r=c?this.client.searchForFacetValues([{indexName:i.index,params:n}]):u?this.client.initIndex(i.index).searchForFacetValues(n):(delete n.facetName,this.client.search([{type:"facet",facet:t,indexName:i.index,params:n}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:i,facet:t,query:e}),r.then(function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits.forEach(function(e){e.escapedValue=zt(e.value),e.isRefined=o?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.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")},R.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},R.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},R.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},R.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},R.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},R.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},R.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},R.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},R.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},R.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},R.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},R.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},R.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},R.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},R.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},R.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},R.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},R.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},R.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},R.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},R.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},R.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},R.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},R.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},R.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},R.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},R.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},R.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},R.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},R.prototype.setCurrentPage=Yt,R.prototype.setPage=Yt,R.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},R.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},R.prototype.setState=function(e){return this._change({state:Vt.make(e),isPageReset:!1}),this},R.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Vt(e),this},R.prototype.hasRefinements=function(e){return!!wt(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))},R.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},R.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},R.prototype.hasTag=function(e){return this.state.isTagRefined(e)},R.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},R.prototype.getIndex=function(){return this.state.index},R.prototype.getCurrentPage=Zt,R.prototype.getPage=Zt,R.prototype.getTags=function(){return this.state.tagRefinements},R.prototype.getRefinements=function(e){var r=[],n=(this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){r.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){r.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){r.push({value:e,type:"disjunctive"})}),this.state.getNumericRefinements(e));return Object.keys(n).forEach(function(e){var t=n[e];r.push({value:t,operator:e,type:"numeric"})}),r},R.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},R.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},R.prototype._search=function(e){var n=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=St._getQueries(n.index,n),i.push({state:n,queriesCount:t.length,helper:this}),this.emit("search",{state:n,results:this.lastResults})),this.derivedHelpers.map(function(e){var t=e.getModifiedState(n),r=t.index?St._getQueries(t.index,t):[];return i.push({state:t,queriesCount:r.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),r})),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})}},R.prototype._dispatchAlgoliaResponse=function(e,t,r){var n;t<this._lastQueryIdReceived||(this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty"),n=r.results.slice(),e.forEach(function(e){var t=e.state,r=e.queriesCount,e=e.helper,r=n.splice(0,r);t.index?(e.lastResults=new Wt(t,r),e.emit("result",{results:e.lastResults,state:t})):e.emit("result",{results:null,state:t})}))},R.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},R.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},R.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&0<this.state.disjunctiveRefinements[e].length},R.prototype._change=function(e){var t=e.state,e=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:e}))},R.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},R.prototype.setClient=function(e){return this.client!==e&&("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.14.0)"),this.client=e),this},R.prototype.getClient=function(){return this.client},R.prototype.derive=function(e){e=new dt(this,e);return this.derivedHelpers.push(e),e},R.prototype.detachDerivedHelper=function(e){e=this.derivedHelpers.indexOf(e);if(-1===e)throw new Error("Derived helper already detached");this.derivedHelpers.splice(e,1)},R.prototype.hasPendingRequests=function(){return 0<this._currentNbQueries};var Jt=R;function Kt(e,t,r){return new Jt(e,t,r)}Kt.version=bt,Kt.AlgoliaSearchHelper=Jt,Kt.SearchParameters=Vt,Kt.SearchResults=Wt;var Gt=Kt;function Xt(e){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function er(e){return function(e){if(Array.isArray(e))return tr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?tr(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tr(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function nr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rr(Object(r),!0).forEach(function(e){ir(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ir(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Xt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Xt(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function or(e){var t=e.attributeName,r=e.attributeValue,e=e.attributeScore;return"".concat(t,":").concat(r,"<score=").concat(e||1,">")}function ar(){return"configure"}function cr(o){var e=Object.keys(o.matchingPatterns).reduce(function(e,t){var r=o.matchingPatterns[t],n=oe(o.hit,t),i=r.score;return Array.isArray(n)?[].concat(er(e),[n.map(function(e){return or({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof n?[].concat(er(e),[or({attributeName:t,attributeValue:n,attributeScore:i})]):e},[]);return o.transformSearchParameters(new Gt.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(o.hit.objectID)],optionalFilters:e}))}v=t({displayName:"AlgoliaConfigureRelatedItems",$$type:"ais.configureRelatedItems",defaultProps:{transformSearchParameters:function(e){return nr({},e)}},getProvidedProps:function(){return{}},getSearchParameters:function(e,t){return e.setQueryParameters(cr(t))},transitionState:function(e,t,r){var n,i=ar(),o=(n=ee(cr(e)),Object.keys(n).forEach(function(e){var t=n[e];Array.isArray(t)&&0===t.length&&delete n[e]}),n),a=Object.keys(o),c=this._searchParameters?Object.keys(this._searchParameters).filter(function(e){return-1===a.indexOf(e)}):[];return this._searchParameters=o,b(r,ir({},i,nr(nr({},ie(r[i],c)),o)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var r=this,n=ar(),i=h({ais:e.contextValue,multiIndexContext:e.indexContextValue}),o=Te({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[i]:t,i=(o&&o[n]?Object.keys(o[n]):[]).reduce(function(e,t){return r._searchParameters[t]||(e[t]=o[n][t]),e},{});return b(t,ir({},n,i),{ais:e.contextValue,multiIndexContext:e.indexContextValue})}});function ur(){return null}ur.propTypes={hit:i.object.isRequired,matchingPatterns:i.object.isRequired,transformSearchParameters:i.func};ht=v(ur,{$$widgetType:"ais.configureRelatedItems"});function sr(e){return(sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lr(e){var t;if("object"===sr(t=e)&&t.props)return e.props.attribute||(Array.isArray(e.props.attributes)?e.props.attributes[0]:e.props.children?lr(d.Children.only(e.props.children)):void 0)}var fr=t({displayName:"AlgoliaDynamicWidgets",$$type:"ais.dynamicWidgets",defaultProps:{transformItems:function(e){return e},maxValuesPerFacet:20},propTypes:{transformItems:i.func,facets:i.arrayOf(i.string),maxValuesPerFacet:i.number},getProvidedProps:function(e,t,r){var n,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!e.facets||Array.isArray(e.facets)&&e.facets.length<=1&&("*"===e.facets[0]||void 0===e.facets[0]))return r?(n=r.renderingContent&&r.renderingContent.facetOrdering&&r.renderingContent.facetOrdering.facets&&r.renderingContent.facetOrdering.facets.order||[],20<(n=e.transformItems(n,{results:r})).length&&!e.facets&&console.warn("More than ".concat(20," facets are requested to be displayed without explicitly setting which facets to retrieve. This could have a performance impact. Set \"facets\" to [] to do two smaller network requests, or explicitly to ['*'] to avoid this warning.")),e.maxValuesPerFacet<r._state.maxValuesPerFacet&&console.warn("The maxValuesPerFacet set by dynamic widgets (".concat(e.maxValuesPerFacet,") is smaller than one of the limits set by a widget (").concat(r._state.maxValuesPerFacet,"). This causes a mismatch in query parameters and thus an extra network request when that widget is mounted.")),{attributesToRender:n}):{attributesToRender:[]};throw new Error('The `facets` prop only accepts [] or ["*"], you passed '.concat(JSON.stringify(e.facets)))},getSearchParameters:function(e,t){return(t.facets||["*"]).reduce(function(e,t){return e.addFacet(t)},e.setQueryParameters({maxValuesPerFacet:Math.max(t.maxValuesPerFacet||0,e.maxValuesPerFacet||0)}))}})(function(e){var t=e.children,r=e.attributesToRender,n=void 0===(e=e.fallbackComponent)?function(){return null}:e,i=new Map;return d.Children.forEach(t,function(e){var t=lr(e);if(!t)throw new Error('Could not find "attribute" prop for '.concat(G(e),"."));i.set(t,e)}),d.createElement(d.Fragment,null,r.map(function(e){return d.createElement(o.Fragment,{key:e},i.get(e)||d.createElement(n,{attribute:e}))}))},{$$widgetType:"ais.dynamicWidgets"});function pr(e){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mr(){return(mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xr(n.key),n)}}function yr(e,t){return(yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dr(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=vr(r),t=(e=n?(e=vr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===pr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return br(t)}}function br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vr(e){return(vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gr(e,t,r){(t=xr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function xr(e){e=function(e,t){if("object"!==pr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===pr(e)?e:String(e)}function wr(e){return{targetedIndex:e.indexId}}var Or=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yr(t,e);var r,n=dr(i);function i(e){if(this instanceof i)return gr(br(e=n.call(this,e)),"state",{indexContext:wr(e.props)}),gr(br(e),"unregisterWidget",void 0),e.props.contextValue.onSearchParameters(e.getSearchParameters.bind(br(e)),{ais:e.props.contextValue,multiIndexContext:e.state.indexContext},e.props,void 0,i.displayName),e;throw new TypeError("Cannot call a class as a function")}return t=i,e=[{key:"getDerivedStateFromProps",value:function(e){return{indexContext:wr(e)}}}],(r=[{key:"componentDidMount",value:function(){this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this)}},{key:"componentDidUpdate",value:function(e){this.props.indexName!==e.indexName&&this.props.contextValue.widgetsManager.update()}},{key:"componentWillUnmount",value:function(){"function"==typeof this.unregisterWidget&&this.unregisterWidget()}},{key:"getSearchParameters",value:function(e,t){return e.setIndex((this.props||t).indexName)}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:d.createElement(U,{value:this.state.indexContext},this.props.children)}}])&&hr(t.prototype,r),e&&hr(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);gr(Or,"propTypes",{indexName:i.string.isRequired,indexId:i.string.isRequired,children:i.node}),gr(Or,"displayName","AlgoliaIndex"),gr(Or,"$$type","ais.index"),gr(Or,"$$widgetType","ais.index");var Rr=["resultsFacetValues"],Pr=["resultsFacetValues"],Sr=["resultsFacetValues"];function jr(e){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Er(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Fr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fr(Object(r),!0).forEach(function(e){_r(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _r(e,t,r){return(t=function(e){e=function(e,t){if("object"!==jr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===jr(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cr(e){"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(o.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat(we,")")))}var Nr=function(e){return Te({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},Tr=function(e,t){return e.props.indexContextValue.targetedIndex===t},Vr=function(e){return Boolean(e.props.indexId)},Ir=function(e,t){return e.props.indexId===t},kr=function(e,t){e=Vr(e),t=Vr(t);return e&&!t?-1:!e&&t?1:0};function Ar(r){return Object.keys(r).map(function(e){return function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})}("%s=%s",e,(t=r[e],"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(r[e]):r[e]));var t}).join("&")}function Mr(e){var i,t,r,n,o,a,c,u,s,l=e.indexName,f=e.initialState,f=void 0===f?{}:f,p=e.searchClient,m=e.resultsState,h=e.stalledSearchDelay,y=Gt(p,l,_({},ge)),d=(Cr(p),y.on("search",function(){b=b||setTimeout(function(){var e=R.getState(),e=(e.resultsFacetValues,Er(e,Sr));R.setState(_(_({},e),{},{isSearchStalled:!0}))},h)}).on("result",E({indexId:l})).on("error",F),!1),b=null,v=y.state,g=(t=function(){var e=P(R.getState().widgets);R.setState(_(_({},R.getState()),{},{metadata:e,searching:!0})),j()},n=!(r=[]),{registerWidget:function(e){return r.push(e),x(),function(){r.splice(r.indexOf(e),1),x()}},update:x,getWidgets:function(){return r}});function x(){n||(n=!0,Z(function(){n=!1,t()}))}o=p,(e=m)&&(o.transporter&&!o._cacheHydrated||o._useCache&&"function"==typeof o.addAlgoliaAgent)&&(o.transporter&&!o._cacheHydrated&&(o._cacheHydrated=!0,a=o.search,o.search=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=e.map(function(e){return _(_({},e),{},{params:Ar(e.params)})});return o.transporter.responsesCache.get({method:"search",args:[i].concat(r)},function(){return a.apply(void 0,[e].concat(r))})}),Array.isArray(e.results)?(s=o,c=e.results,s.transporter?s.transporter.responsesCache.set({method:"search",args:[c.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])]},{results:c.reduce(function(e,t){return e.concat(t.rawResults)},[])}):(u="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:c.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])})),s.cache=_(_({},s.cache),{},_r({},u,JSON.stringify({results:c.reduce(function(e,t){return e.concat(t.rawResults)},[])}))))):(s=e,(u=o).transporter?u.transporter.responsesCache.set({method:"search",args:[s.rawResults.map(function(e){return{indexName:e.index,params:e.params}})]},{results:s.rawResults}):(c="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:s.rawResults.map(function(e){return{indexName:e.index,params:e.params}})})),u.cache=_(_({},u.cache),{},_r({},c,JSON.stringify({results:s.rawResults}))))));e={widgets:f,metadata:(p=m)?p.metadata.map(function(e){return _(_({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _(_({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _({value:function(){return{}}},e)})})})})}):[],results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce(function(e,t){return _(_({},e),{},_r({},t._internalIndexId,new Gt.SearchResults(new Gt.SearchParameters(t.state),t.rawResults)))},{});return new Gt.SearchResults(new Gt.SearchParameters(e.state),e.rawResults)}(m),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1},w=e,O=[];var w,O,R={getState:function(){return w},setState:function(e){w=e,O.forEach(function(e){return e()})},subscribe:function(e){return O.push(e),function(){O.splice(O.indexOf(e),1)}}};function P(t){return g.getWidgets().filter(function(e){return Boolean(e.getMetadata)}).map(function(e){return e.getMetadata(t)})}function S(){var t=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){return!Nr(e)&&!Vr(e)}).reduce(function(e,t){return t.getSearchParameters(e)},v),e=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){var t=Nr(e)&&Tr(e,l),e=Vr(e)&&Ir(e,l);return t||e}).sort(kr).reduce(function(e,t){return t.getSearchParameters(e)},t),r=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){var t=Nr(e)&&!Tr(e,l),e=Vr(e)&&!Ir(e,l);return t||e}).sort(kr).reduce(function(e,t){var r=Nr(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,n=e[r]||[];return _(_({},e),{},_r({},r,n.concat(t)))},{});return{mainParameters:e,derivedParameters:Object.keys(r).map(function(e){return{parameters:r[e].reduce(function(e,t){return t.getSearchParameters(e)},t),indexId:e}})}}function j(){var e,t;d||(e=(t=S()).mainParameters,t=t.derivedParameters,i=t.length+1,y.derivedHelpers.slice().forEach(function(e){e.detach()}),t.forEach(function(e){var t=e.indexId,r=e.parameters;y.derive(function(){return r}).on("result",E({indexId:t})).on("error",F)}),y.setState(e),y.search())}function E(e){var n=e.indexId;return function(e){i--;var t=R.getState(),r=!y.derivedHelpers.length,t=t.results||{},t=!r&&t.getFacetByName?{}:t,r=(t=r?e.results:_(_({},t),{},_r({},n,e.results)),R.getState()),e=r.isSearchStalled,r=(y.hasPendingRequests()||(clearTimeout(b),b=null,e=!1),r.resultsFacetValues,Er(r,Rr));R.setState(_(_({},r),{},{results:t,isSearchStalled:e,searching:0<i,error:null}))}}function F(e){var e=e.error,t=R.getState(),r=t.isSearchStalled,t=(y.hasPendingRequests()||(clearTimeout(b),r=!1),t.resultsFacetValues,Er(t,Pr));R.setState(_(_({},t),{},{isSearchStalled:r,error:e,searching:!1}))}return{store:R,widgetsManager:g,getWidgetsIds:function(){return R.getState().metadata.reduce(function(e,t){return void 0!==t.id?e.concat(t.id):e},[])},getSearchParameters:S,onSearchForFacetValues:function(e){var r=e.facetName,n=e.query,e=e.maxFacetHits,e=Math.max(1,Math.min(void 0===e?10:e,100));R.setState(_(_({},R.getState()),{},{searchingForFacetValues:!0})),y.searchForFacetValues(r,n,e).then(function(e){var t;R.setState(_(_({},R.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:_(_({},R.getState().resultsFacetValues),{},(_r(t={},r,e.facetHits),_r(t,"query",n),t))}))},function(e){R.setState(_(_({},R.getState()),{},{searchingForFacetValues:!1,error:e}))}).catch(function(e){setTimeout(function(){throw e})})},onExternalStateUpdate:function(e){var t=P(e);R.setState(_(_({},R.getState()),{},{widgets:e,metadata:t,searching:!0})),j()},transitionState:function(e){var r=R.getState().widgets;return g.getWidgets().filter(function(e){return Boolean(e.transitionState)}).reduce(function(e,t){return t.transitionState(r,e)},e)},updateClient:function(e){Cr(e),y.setClient(e),j()},updateIndex:function(e){v=v.setIndex(e)},clearCache:function(){y.clearCache(),j()},skipSearch:function(){d=!0}}}function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qr(e,t){var o,r=document.createElement("meta"),n=document.querySelector("head"),t=(r.name="algolia:metadata",t=t,o=["contextValue","indexContextValue"],e=(e=e).map(function(e){var t=e.props,e=e.constructor,r=e._connectorDesc||{},n=r.defaultProps,i=void 0===n?{}:n,n=r.displayName;return{displayName:void 0===n?e.displayName:n,$$type:e.$$type,$$widgetType:e.$$widgetType,params:Object.keys(t).filter(function(e){return!o.includes(e)&&i[e]!==t[e]&&void 0!==t[e]})}}),{ua:t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua,widgets:e});r.content=JSON.stringify(t),n.appendChild(r)}function Hr(e){return(Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Lr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Br(Object(r),!0).forEach(function(e){Yr(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Br(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function $r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zr(n.key),n)}}function Qr(e,t){return(Qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ur(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=zr(r),t=(e=n?(e=zr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Hr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wr(t)}}function Wr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zr(e){return(zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yr(e,t,r){(t=Zr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Zr(e){e=function(e,t){if("object"!==Hr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Hr(e)?e:String(e)}function Jr(e){return Boolean(e.searchState)}ft=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qr(t,e);var r,n=Ur(i);function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");Yr(Wr(e=n.call(this,e)),"cleanupTimerRef",null),Yr(Wr(e),"isUnmounting",!1);var t=Mr({indexName:e.props.indexName,searchClient:e.props.searchClient,initialState:e.props.searchState||{},resultsState:e.props.resultsState,stalledSearchDelay:e.props.stalledSearchDelay}),r={store:t.store,widgetsManager:t.widgetsManager,mainTargetedIndex:e.props.indexName,onInternalStateUpdate:e.onWidgetsInternalStateUpdate.bind(Wr(e)),createHrefForState:e.createHrefForState.bind(Wr(e)),onSearchForFacetValues:e.onSearchForFacetValues.bind(Wr(e)),onSearchStateChange:e.onSearchStateChange.bind(Wr(e)),onSearchParameters:e.onSearchParameters.bind(Wr(e))};return e.state={isControlled:Jr(e.props),instantSearchManager:t,contextValue:r},e}return t=i,e=[{key:"getDerivedStateFromProps",value:function(e,t){var r=Jr(e),n=t.instantSearchManager.store.getState().widgets,i=e.searchState;return r&&!H(n,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:r,contextValue:Lr(Lr({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}],(r=[{key:"componentDidUpdate",value:function(e){var t=Jr(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),"object"===("undefined"==typeof window?"undefined":Dr(window))&&"object"===Dr(window.navigator)&&"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===Dr(window.document)&&qr(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){var e=this;this.cleanupTimerRef=setTimeout(function(){e.isUnmounting=!0,e.state.instantSearchManager.skipSearch()})}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,r,n,i){var o;this.props.onSearchParameters&&(o=this.props.searchState||{},this.props.onSearchParameters(e,t,r,o)),this.props.widgetsCollector&&(o=this.props.searchState||{},this.props.widgetsCollector({getSearchParameters:e,getMetadata:n,context:t,props:r,searchState:o,displayName:i}))}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:d.createElement($,{value:this.state.contextValue},this.props.children)}}])&&$r(t.prototype,r),e&&$r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);function Kr(e){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gr(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Kr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Kr(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Yr(ft,"defaultProps",{stalledSearchDelay:200,refresh:!1}),Yr(ft,"propTypes",{indexName:i.string.isRequired,searchClient:i.shape({search:i.func.isRequired,searchForFacetValues:i.func,addAlgoliaAgent:i.func,clearCache:i.func}).isRequired,createURL:i.func,refresh:i.bool,searchState:i.object,onSearchStateChange:i.func,onSearchParameters:i.func,widgetsCollector:i.func,resultsState:i.oneOfType([i.object,i.array]),children:i.node,stalledSearchDelay:i.number});function Xr(e){return e.attributes[0]}bt=t({displayName:"AlgoliaBreadcrumb",$$type:"ais.breadcrumb",propTypes:{attributes:function(e,t,r){if(!Array.isArray(e[t])||e[t].some(function(e){return"string"!=typeof e})||e[t].length<1)return new Error("Invalid prop ".concat(t," supplied to ").concat(r,". Expected an Array of Strings"))},transformItems:i.func},getProvidedProps:function(e,t,r){var n=Xr(e),r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return Boolean(r)&&Boolean(r.getFacetByName(n))?(n=(r=r.getFacetValues(n)).data?function r(e){return e.reduce(function(e,t){return e=t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),t.data)?e.concat(r(t.data)):e},[])}(r.data):[],{canRefine:0<(r=e.transformItems?e.transformItems(n):n).length,items:r}):{items:[],canRefine:!1}},refine:function(e,t,r){return n={ais:e.contextValue,multiIndexContext:e.indexContextValue},b(t,Gr({},Xr(e),r||""),n,!0,"hierarchicalMenu");var n}});function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function rn(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?tn(Object(i),!0).forEach(function(e){var t,r;t=n,r=i[e=e],(e=function(e){e=function(e,t){if("object"!==en(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==en(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===en(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):tn(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}v=t({displayName:"AlgoliaCurrentRefinements",$$type:"ais.currentRefinements",propTypes:{transformItems:i.func},getProvidedProps:function(r,e,t,n){n=n.reduce(function(e,t){return void 0===t.items||!r.clearsQuery&&"query"===t.id||r.clearsQuery&&"query"===t.id&&""===t.items[0].currentRefinement?e:e.concat(t.items.map(function(e){return rn(rn({},e),{},{id:t.id,index:t.index})}))},[]),n=r.transformItems?r.transformItems(n):n;return{items:n,canRefine:0<n.length}},refine:function(e,t,r){return(r instanceof Array?r.map(function(e){return e.value}):[r]).reduce(function(e,t){return t(e)},t)}});function nn(e){return(nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function on(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function an(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?on(Object(r),!0).forEach(function(e){cn(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):on(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==nn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==nn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===nn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function un(e){return e.attributes[0]}var sn="hierarchicalMenu";function ln(e,t,r){t=a(e,t,r,"".concat(sn,".").concat(un(e)),null);return""===t?null:t}function fn(e,u,s,l){return e.map(function(e){return{label:e.name,value:(t=e.escapedValue,n=(r=u).id,i=u.attributes,o=u.separator,a=u.rootPath,c=u.showParentLevel,null===(r=ln(u,s,l))?t:new Gt.SearchParameters({hierarchicalFacets:[{name:n,attributes:i,separator:o,rootPath:a,showParentLevel:c}]}).toggleHierarchicalFacetRefinement(n,r).toggleHierarchicalFacetRefinement(n,t).getHierarchicalRefinement(n)[0]),count:e.count,isRefined:e.isRefined,items:e.data&&fn(e.data,u,s,l)};var t,r,n,i,o,a,c})}function pn(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e.slice(0,t).map(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e.items)?an(an({},e),{},{items:pn(e.items,t)}):e})}function mn(e,t,r,n){return b(t,cn({},un(e),r||""),n,!0,sn)}function hn(e){var t=e.attribute,r=e.hit,n=e.highlightProperty,i=void 0===(i=e.preTag)?ge.highlightPreTag:i,e=e.postTag,t={attribute:t,highlightProperty:n,hit:r,preTag:i,postTag:void 0===e?ge.highlightPostTag:e},o=void 0===(n=t.preTag)?"<em>":n,a=void 0===(n=t.postTag)?"</em>":n,n=t.highlightProperty,r=t.attribute;if(t=t.hit)return t=oe(t[n],r)||{},Array.isArray(t)?t.map(function(e){return xe({preTag:o,postTag:a,highlightedValue:e.value})}):xe({preTag:o,postTag:a,highlightedValue:t.value});throw new Error("`hit`, the matching record, must be provided")}var yn=["name:asc"],dn=t({displayName:"AlgoliaHierarchicalMenu",$$type:"ais.hierarchicalMenu",propTypes:{attributes:function(e,t,r){if(!Array.isArray(e[t])||e[t].some(function(e){return"string"!=typeof e})||e[t].length<1)return new Error("Invalid prop ".concat(t," supplied to ").concat(r,". Expected an Array of Strings"))},separator:i.string,rootPath:i.string,showParentLevel:i.bool,defaultRefinement:i.string,showMore:i.bool,limit:i.number,showMoreLimit:i.number,transformItems:i.func,facetOrdering:i.bool},defaultProps:{showMore:!1,limit:10,showMoreLimit:20,separator:" > ",rootPath:null,showParentLevel:!0,facetOrdering:!0},getProvidedProps:function(e,t,r){var n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.facetOrdering,c=un(e),r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return Boolean(r)&&Boolean(r.getFacetByName(c))?(n=n?o:i,i=(o=r.getFacetValues(c,{sortBy:yn,facetOrdering:a})).data?fn(o.data,e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}):[],r=e.transformItems?e.transformItems(i):i,{items:pn(r,n),currentRefinement:ln(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:0<r.length}):{items:[],currentRefinement:ln(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:!1}},refine:function(e,t,r){return mn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(sn,".").concat(un(r)));var r},getSearchParameters:function(e,t,r){var n=t.attributes,i=t.separator,o=t.rootPath,a=t.showParentLevel,c=t.showMore,u=t.limit,s=t.showMoreLimit,l=t.contextValue,f=un(t),c=c?s:u,s=(e=e.addHierarchicalFacet({name:f,attributes:n,separator:i,rootPath:o,showParentLevel:a}).setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,c)}),ln(t,r,{ais:l,multiIndexContext:t.indexContextValue}));return e=null!==s?e.toggleHierarchicalFacetRefinement(f,s):e},getMetadata:function(t,e){var r=t.attributes[0],n=un(t),e=ln(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),r=e?[{label:"".concat(r,": ").concat(ae(e)),attribute:r,value:function(e){return mn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]:[];return{id:n,index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:r}}}),bn=t({displayName:"AlgoliaHighlighter",$$type:"ais.highlighter",propTypes:{},getProvidedProps:function(){return{highlight:hn}}}),vn=t({displayName:"AlgoliaHits",$$type:"ais.hits",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{hits:re(te(r.hits,r.hitsPerPage,r.page),r.queryID)}:{hits:[]}},getSearchParameters:function(e){return e}});function gn(e){return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function wn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xn(Object(r),!0).forEach(function(e){On(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function On(e,t,r){return(t=function(e){e=function(e,t){if("object"!==gn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==gn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===gn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rn(){return"hitsPerPage"}function Pn(e,t,r){e=a(e,t,r,"hitsPerPage",null);return"string"==typeof e?parseInt(e,10):e}var P=t({displayName:"AlgoliaHitsPerPage",$$type:"ais.hitsPerPage",propTypes:{defaultRefinement:i.number.isRequired,items:i.arrayOf(i.shape({label:i.string,value:i.number.isRequired})).isRequired,transformItems:i.func},getProvidedProps:function(e,t){var r=Pn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=e.items.map(function(e){return e.value===r?wn(wn({},e),{},{isRefined:!0}):wn(wn({},e),{},{isRefined:!1})});return{items:e.transformItems?e.transformItems(t):t,currentRefinement:r}},refine:function(e,t,r){return b(t,On({},"hitsPerPage",r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},Rn())},getSearchParameters:function(e,t,r){return e.setHitsPerPage(Pn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(){return{id:Rn()}}});function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var jn=["page"];function En(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Sn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Sn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fn(e){return function(e){if(Array.isArray(e))return _n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?_n(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_n(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cn(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Nn(e){e=e||{};e.page;return Cn(e,jn)}var Tn=t({displayName:"AlgoliaInfiniteHits",$$type:"ais.infiniteHits",getProvidedProps:function(e,t,r){var n,i,o,a,c,u,s,l,f,p,m=this,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?(n=r.page,u=r.hits,f=r.hitsPerPage,i=r.nbPages,o=r._state,this._cache=e.cache||this._cache||(c=a=void 0,{read:function(e){e=e.state;return H(c,Nn(e))?a:null},write:function(e){var t=e.state,e=e.hits;c=Nn(t),a=e}}),e=this._cache.read({state:o})||{},u=re(te(u,f,n),r.queryID),e[n]=u,this._cache.write({state:o,hits:e}),s=Math.min.apply(Math,Fn(Object.keys(e).map(Number))),l=Math.max.apply(Math,Fn(Object.keys(e).map(Number))),f=0<s,r=l<i-1,{hits:(p=e,Object.keys(p).map(Number).sort(function(e,t){return e-t}).reduce(function(e,t){return e.concat(p[t])},[])),hasPrevious:f,hasMore:r,refinePrevious:function(e){return m.refine(e,s-1)},refineNext:function(e){return m.refine(e,l+1)}}):{hits:[],hasPrevious:!1,hasMore:!1,refine:function(){},refinePrevious:function(){},refineNext:function(){}}},getSearchParameters:function(e,t,r){return e.setQueryParameters({page:(t={ais:(e=t).contextValue,multiIndexContext:t.indexContextValue},("string"==typeof(e=a(e,r,t,"page",1))?parseInt(e,10):e)-1)})},refine:function(e,t,r,n){return b(t,En({},"page",n+1),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!1)}});function Vn(e){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Vn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Vn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Vn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kn="menu";function An(e){return e.attribute}function Mn(e,t,r){t=a(e,t,r,"".concat(kn,".").concat(An(e)),null);return""===t?null:t}function Dn(e,t,r,n){return e===Mn(t,r,n)?"":e}function qn(e){var t=e.showMore,r=e.limit,e=e.showMoreLimit;return t?e:r}function Hn(e,t,r,n){return b(t,In({},An(e),r||""),n,!0,kn)}var Bn=["count:desc","name:asc"],S=t({displayName:"AlgoliaMenu",$$type:"ais.menu",propTypes:{attribute:i.string.isRequired,showMore:i.bool,limit:i.number,showMoreLimit:i.number,defaultRefinement:i.string,transformItems:i.func,searchable:i.bool,facetOrdering:i.bool},defaultProps:{showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(t,r,e,n,i){var o=t.attribute,a=t.searchable,c=t.indexContextValue,u=t.facetOrdering,e=y(e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),s=Boolean(e)&&Boolean(e.getFacetByName(o)),l=Boolean(i&&i[o]&&""!==i.query);if(a&&c)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");return s?(c=l?i[o].map(function(e){return{label:e.value,value:Dn(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),_highlightResult:{label:{value:e.highlighted}},count:e.count,isRefined:e.isRefined}}):e.getFacetValues(o,{sortBy:a?void 0:Bn,facetOrdering:u}).map(function(e){return{label:e.name,value:Dn(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),count:e.count,isRefined:e.isRefined}}),{items:(i=t.transformItems?t.transformItems(c):c).slice(0,qn(t)),currentRefinement:Mn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:0<i.length}):{items:[],currentRefinement:Mn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:s}},refine:function(e,t,r){return Hn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,r){return{facetName:e.attribute,query:r,maxFacetHits:qn(e)}},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(kn,".").concat(An(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,r=(e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,qn(t))})).addDisjunctiveFacet(n),Mn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}));return e=null!==r?e.addDisjunctiveFacetRefinement(n,r):e},getMetadata:function(t,e){var r=An(t),e=Mn(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return{id:r,index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:null===e?[]:[{label:"".concat(t.attribute,": ").concat(ae(e)),attribute:t.attribute,value:function(e){return Hn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]}}});function Ln(e){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $n(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ln(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ln(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){var r;if(e)return"string"==typeof e?Un(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Un(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wn(e){var t;return void 0===e.start&&void 0===e.end?"":(t=void 0!==e.start?e.start:"",e=void 0!==e.end?e.end:"","".concat(t,":").concat(e))}var zn="multiRange";function Yn(e){return e.attribute}function Zn(e,t,r){return a(e,t,r,"".concat(zn,".").concat(Yn(e)),"")}function Jn(e,t,r,n){return b(t,$n({},Yn(e),r),n,!0,zn)}var Kn=t({displayName:"AlgoliaNumericMenu",$$type:"ais.numericMenu",propTypes:{id:i.string,attribute:i.string.isRequired,items:i.arrayOf(i.shape({label:i.node,start:i.number,end:i.number})).isRequired,transformItems:i.func},getProvidedProps:function(a,e,t){var r=a.attribute,c=Zn(a,e,{ais:a.contextValue,multiIndexContext:a.indexContextValue}),u=y(t,{ais:a.contextValue,multiIndexContext:a.indexContextValue}),e=a.items.map(function(e){var t,r,n,i,o=Wn(e);return{label:e.label,value:o,isRefined:o===c,noRefinement:!(!u||(e=Yn(a),o=o,t=(t=u).getFacetByName(e)?t.getFacetStats(e):null,e=o.split(":"),i=0===Number(e[0])||""===o?Number.NEGATIVE_INFINITY:Number(e[0]),o=0===Number(e[1])||""===o?Number.POSITIVE_INFINITY:Number(e[1]),Boolean(t)&&(e=i,n=o,(r=t).min>=e&&r.min<=n||r.max>=e&&r.max<=n||(e=o,(r=i)>=(n=t).min&&r<=n.max)||e>=n.min&&e<=n.max)))}}),t=u&&u.getFacetByName(r)?u.getFacetStats(r):null,r=ne(e,function(e){return!0===e.isRefined}),r=(e.some(function(e){return""===e.value})||e.push({value:"",isRefined:void 0===r,noRefinement:!t,label:"All"}),a.transformItems?a.transformItems(e):e);return{items:r,currentRefinement:c,canRefine:0<r.length&&r.some(function(e){return!1===e.noRefinement})}},refine:function(e,t,r){return Jn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(zn,".").concat(Yn(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,t=0===(r=Zn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue})).length?{start:null,end:null}:(t=(r=Qn(r.split(":"),2))[0],r=r[1],{start:0<t.length?parseFloat(t):null,end:0<r.length?parseFloat(r):null}),r=t.start,t=t.end;return e=e.addDisjunctiveFacet(n),"number"==typeof r&&(e=e.addNumericRefinement(n,">=",r)),e="number"==typeof t?e.addNumericRefinement(n,"<=",t):e},getMetadata:function(t,e){var r,n=Yn(t),i=Zn(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),e=[],o=h({ais:t.contextValue,multiIndexContext:t.indexContextValue});return""!==i&&(r=ne(t.items,function(e){return Wn(e)===i}).label,e.push({label:"".concat(t.attribute,": ").concat(r),attribute:t.attribute,currentRefinement:r,value:function(e){return Jn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})}})),{id:n,index:o,items:e}}});function Gn(e){return(Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Gn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Gn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Gn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ei(){return"page"}function ti(e,t,r){e=a(e,t,r,"page",1);return"string"==typeof e?parseInt(e,10):e}var ri=t({displayName:"AlgoliaPagination",$$type:"ais.pagination",getProvidedProps:function(e,t,r){var r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{nbPages:r=r.nbPages,currentRefinement:ti(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:1<r}:null},refine:function(e,t,r){return e={ais:e.contextValue,multiIndexContext:e.indexContextValue},b(t,Xn({},"page",r),e,!1)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},ei())},getSearchParameters:function(e,t,r){return e.setPage(ti(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue})-1)},getMetadata:function(){return{id:ei()}}}),ni=t({displayName:"AlgoliaPoweredBy",$$type:"ais.poweredBy",getProvidedProps:function(){var e="undefined"==typeof window||void 0===window.location?"":window.location.hostname;return{url:"https://www.algolia.com/?utm_source=react-instantsearch&utm_medium=website&"+"utm_content=".concat(e,"&")+"utm_campaign=poweredby"}}});function ii(e){return(ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==ii(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ii(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ai(e){return e.attribute}var ci="range";function ui(e,t,r,n){var t=a(e,t,n,"".concat(ci,".").concat(ai(e)),{}),n=t.min,t=t.max,i=Boolean(e.precision),n={min:n="string"==typeof n?i?parseFloat(n):parseInt(n,10):n,max:t="string"==typeof t?i?parseFloat(t):parseInt(t,10):t},i=void 0!==e.min,t=void 0!==e.max,e=void 0!==n.min,o=void 0!==n.max;if(i&&e&&n.min<r.min)throw Error("You can't provide min value lower than range.");if(t&&o&&n.max>r.max)throw Error("You can't provide max value greater than range.");return i&&!e&&(n.min=r.min),t&&!o&&(n.max=r.max),n}function si(e,t){return{min:(void 0!==e.min?e:t).min,max:(void 0!==e.max?e:t).max}}function li(e,t,r,n){e=e||r!==n?e&&t?r:n:void 0;return e}function fi(e,t,r,n,i){var o=r.min,r=r.max,a=n.min,n=n.max,c=void 0===o||""===o,u=void 0===r||""===r,o=c?void 0:parseFloat(o),r=u?void 0:parseFloat(r),s=c||isFinite(o),l=u||isFinite(r);if(!s||!l)throw Error("You can't provide non finite values to the range connector.");if(o<a)throw Error("You can't provide min value lower than range.");if(n<r)throw Error("You can't provide max value greater than range.");return b(t,oi({},ai(e),{min:li(void 0!==e.min,c,a,o),max:li(void 0!==e.max,u,n,r)}),i,!0,ci)}var pi=t({displayName:"AlgoliaRange",$$type:"ais.range",propTypes:{id:i.string,attribute:i.string.isRequired,defaultRefinement:i.shape({min:i.number,max:i.number}),min:i.number,max:i.number,precision:i.number,header:i.node,footer:i.node},defaultProps:{precision:0},getProvidedProps:function(e,t,r){var n=e.attribute,i=e.precision,o=e.min,a=e.max,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),c=r&&r.getFacetByName(n),u=c&&r.getFacetStats(n)||{},c=(c?r.getFacetValues(n):[]).map(function(e){return{value:e.name,count:e.count}}),u=(r={min:o,max:a},n=u,o=i,o=Math.pow(10,o),a="number"==typeof r.min&&isFinite(r.min)?r.min:"number"==typeof n.min&&isFinite(n.min)?n.min:void 0,r="number"==typeof r.max&&isFinite(r.max)?r.max:"number"==typeof n.max&&isFinite(n.max)?n.max:void 0,{min:void 0!==a?Math.floor(a*o)/o:a,max:void 0!==r?Math.ceil(r*o)/o:r}),n=u.min,a=u.max,o=(this._currentRange={min:n,max:a},ui(e,t,this._currentRange,{ais:e.contextValue,multiIndexContext:e.indexContextValue}));return{min:n,max:a,canRefine:0<c.length,currentRefinement:si(o,this._currentRange),count:c,precision:i}},refine:function(e,t,r){return fi(e,t,r,this._currentRange,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(ci,".").concat(ai(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,r=ui(t,r,this._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),t=r.min,r=r.max;return e=e.addDisjunctiveFacet(n),void 0!==t&&(e=e.addNumericRefinement(n,">=",t)),e=void 0!==r?e.addNumericRefinement(n,"<=",r):e},getMetadata:function(t,e){var r=this,n=this._currentRange,i=n.min,n=n.max,e=ui(t,e,this._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),o=e.min,e=e.max,a=[],c=void 0!==o,u=void 0!==e;return(c&&o!==i||u&&e!==n)&&(c=[c?"".concat(o," <= "):"",t.attribute,u?" <= ".concat(e):""],a.push({label:c.join(""),attribute:t.attribute,value:function(e){return fi(t,e,{},r._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:si({min:o,max:e},{min:i,max:n})})),{id:ai(t),index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:a}}});function mi(e){return(mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==mi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===mi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yi="refinementList";function di(e){return e.attribute}function bi(e,t,r){t=a(e,t,r,"".concat(yi,".").concat(di(e)),[]);return"string"!=typeof t?t:t?[t]:[]}function vi(t,e,r,n){e=bi(e,r,n);return-1===e.indexOf(t)?e.concat([t]):e.filter(function(e){return e!==t})}function gi(e){var t=e.showMore,r=e.limit,e=e.showMoreLimit;return t?e:r}function xi(e,t,r,n){return b(t,hi({},di(e),0<r.length?r:""),n,!0,yi)}var wi=["isRefined","count:desc","name:asc"],Oi=t({displayName:"AlgoliaRefinementList",$$type:"ais.refinementList",propTypes:{id:i.string,attribute:i.string.isRequired,operator:i.oneOf(["and","or"]),showMore:i.bool,limit:i.number,showMoreLimit:i.number,defaultRefinement:i.arrayOf(i.oneOfType([i.string,i.number])),searchable:i.bool,transformItems:i.func,facetOrdering:i.bool},defaultProps:{operator:"or",showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(t,r,e,n,i){var o=t.attribute,a=t.searchable,c=t.indexContextValue,u=t.facetOrdering,e=y(e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),s=Boolean(e)&&Boolean(e.getFacetByName(o)),l=Boolean(i&&i[o]&&""!==i.query);if(a&&c)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");return s?(c=l?i[o].map(function(e){return{label:e.value,value:vi(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),_highlightResult:{label:{value:e.highlighted}},count:e.count,isRefined:e.isRefined}}):e.getFacetValues(o,{sortBy:wi,facetOrdering:u}).map(function(e){return{label:e.name,value:vi(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),count:e.count,isRefined:e.isRefined}}),{items:(i=t.transformItems?t.transformItems(c):c).slice(0,gi(t)),currentRefinement:bi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:0<i.length}):{items:[],currentRefinement:bi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),canRefine:s,isFromSearch:l,searchable:a}},refine:function(e,t,r){return xi(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,r){return{facetName:e.attribute,query:r,maxFacetHits:gi(e)}},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(yi,".").concat(di(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,i="and"===t.operator?"addFacet":"addDisjunctiveFacet",o="".concat(i,"Refinement");return e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,gi(t))}))[i](n),bi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}).reduce(function(e,t){return e[o](n,t)},e)},getMetadata:function(r,n){var e=di(r),i={ais:r.contextValue,multiIndexContext:r.indexContextValue};return{id:e,index:h(i),items:0<bi(r,n,i).length?[{attribute:r.attribute,label:"".concat(r.attribute,": "),currentRefinement:bi(r,n,i),value:function(e){return xi(r,e,[],i)},items:bi(r,n,i).map(function(t){return{label:ae("".concat(t)),value:function(e){e=bi(r,e,i).filter(function(e){return e!==t});return xi(r,n,e,i)}}})}]:[]}}}),Ri=t({displayName:"AlgoliaScrollTo",$$type:"ais.scrollTo",propTypes:{scrollOn:i.string},defaultProps:{scrollOn:"page"},getProvidedProps:function(e,t){var r=e.scrollOn,n=a(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},r,null),e=(this._prevSearchState||(this._prevSearchState={}),ie(t=Te({ais:e.contextValue,multiIndexContext:e.indexContextValue})?t.indices?t.indices[h({ais:e.contextValue,multiIndexContext:e.indexContextValue})]:{}:t,["configure",r])),t=K(this._prevSearchState,e);return this._prevSearchState=e,{value:n,hasNotChanged:t}}});function Pi(e){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Si(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Pi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Pi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Pi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ji(){return"query"}function Ei(e,t,r){e=a(e,t,r,"query","");return e||""}function Fi(e,t,r,n){return b(t,Si({},"query",r),n,!0)}var _i=t({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:i.string},getProvidedProps:function(e,t,r){return{currentRefinement:Ei(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:r.isSearchStalled}},refine:function(e,t,r){return Fi(0,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:e.contextValue,multiIndexContext:e.indexContextValue},n(t,e,ji())},getSearchParameters:function(e,t,r){return e.setQuery(Ei(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(t,e){e=Ei(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return{id:"query",index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:null===e?[]:[{label:"".concat("query",": ").concat(e),value:function(e){return Fi(0,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]}}});function Ci(e){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ni(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ci(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ci(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ci(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ti(){return"relevancyStrictness"}var Vi=t({displayName:"AlgoliaRelevantSort",$$type:"ais.relevantSort",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{isVirtualReplica:void 0!==r.appliedRelevancyStrictness,isRelevantSorted:void 0!==r.appliedRelevancyStrictness&&0<r.appliedRelevancyStrictness}:{isVirtualReplica:!1,isRelevantSorted:!1}},getSearchParameters:function(e,t,r){return e.setQueryParameter("relevancyStrictness",(e={ais:t.contextValue,multiIndexContext:t.indexContextValue},a(t,r,e,"relevancyStrictness")))},refine:function(e,t,r){return b(t,Ni({},Ti(),r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)}});function Ii(e){return(Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ki(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Ai(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ki(Object(r),!0).forEach(function(e){Mi(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Mi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ii(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ii(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Di(){return"sortBy"}function qi(e,t,r){e=a(e,t,r,"sortBy",null);return e||null}var Hi=t({displayName:"AlgoliaSortBy",$$type:"ais.sortBy",propTypes:{defaultRefinement:i.string,items:i.arrayOf(i.shape({label:i.string,value:i.string.isRequired})).isRequired,transformItems:i.func},getProvidedProps:function(e,t){var r=qi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=e.items.map(function(e){return e.value===r?Ai(Ai({},e),{},{isRefined:!0}):Ai(Ai({},e),{},{isRefined:!1})});return{items:e.transformItems?e.transformItems(t):t,currentRefinement:r}},refine:function(e,t,r){return b(t,Mi({},"sortBy",r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},Di())},getSearchParameters:function(e,t,r){r=qi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return e.setIndex(r)},getMetadata:function(){return{id:Di()}}}),Bi=t({displayName:"AlgoliaStats",$$type:"ais.stats",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{areHitsSorted:void 0!==r.appliedRelevancyStrictness&&0<r.appliedRelevancyStrictness&&r.nbHits!==r.nbSortedHits,nbHits:r.nbHits,nbSortedHits:r.nbSortedHits,processingTimeMS:r.processingTimeMS}:null}});function Li(e){return(Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $i(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Li(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Li(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Li(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qi(e){return e.attribute}var Ui="toggle",Wi=["0","false","null","undefined"];function zi(e,t,r){t=a(e,t,r,"".concat(Ui,".").concat(Qi(e)),!1);return-1===Wi.indexOf(t)&&Boolean(t)}function Yi(e,t,r,n){return b(t,$i({},Qi(e),r||!1),n,!0,Ui)}var i=t({displayName:"AlgoliaToggle",$$type:"ais.toggle",propTypes:{label:i.string.isRequired,attribute:i.string.isRequired,value:i.any.isRequired,filter:i.func,defaultRefinement:i.bool},getProvidedProps:function(e,t,r){var n=e.attribute,i=e.value,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=zi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),e=r&&r.getFacetByName(n)?r.getFacetValues(n):null,r=e&&e.length?ne(e,function(e){return e.name===i.toString()}):null,n=r&&r.count,r=e&&e.length?e.reduce(function(e,t){return e+t.count},0):null;return{currentRefinement:t,canRefine:t?null!==r&&0<r:null!==n&&0<n,count:{checked:r,unchecked:n}}},refine:function(e,t,r){return Yi(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Ui,".").concat(Qi(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,i=t.value,o=t.filter,r=zi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),t=e.addDisjunctiveFacet(n);return t=r&&(t=t.addDisjunctiveFacetRefinement(n,i),o)?o(t):t},getMetadata:function(t,e){var r=Qi(t),e=zi(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),n=[],i=h({ais:t.contextValue,multiIndexContext:t.indexContextValue});return e&&n.push({label:t.label,currentRefinement:e,attribute:t.attribute,value:function(e){return Yi(t,e,!1,{ais:t.contextValue,multiIndexContext:t.indexContextValue})}}),{id:r,index:i,items:n}}}),j=Le(function(e){function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n,i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r))r.length&&(n=a.apply(null,r))&&e.push(n);else if("object"==i)if(r.toString===Object.prototype.toString)for(var o in r)c.call(r,o)&&r[o]&&e.push(o);else e.push(r.toString())}}return e.join(" ")}var c;c={}.hasOwnProperty,e.exports?e.exports=a.default=a:window.classNames=a});function Zi(){}function Ji(){}Ji.resetWarningCache=Zi;var E=Le(function(e){function t(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function r(){return t}e.exports=(e={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Ji,resetWarningCache:Zi}).PropTypes=e});function Ki(e){return function(e){if(Array.isArray(e))return Gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?Gi(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gi(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(i){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(e){return e||""===e}).map(function(e){var t="".concat(o,"-").concat(i);return e?"".concat(t,"-").concat(e):t});return j(n)}}function Xi(e){var t=e.start,r=void 0===t?0:t,t=e.end,e=e.step,e=void 0===e?1:e,n=0===e?1:e,e=Math.round((t-r)/n);return Ki(Array(e)).map(function(e,t){return(r+t)*n})}function eo(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function to(e){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ro(){return(ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function no(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,so(n.key),n)}}function io(e,t){return(io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=co(r),t=(e=n?(e=co(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===to(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ao(t)}}function ao(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uo(e,t,r){(t=so(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function so(e){e=function(e,t){if("object"!==to(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==to(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===to(e)?e:String(e)}var lo=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&io(t,e);var r,a=oo(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return uo(ao(n=a.call.apply(a,[this].concat(i))),"onClick",function(e){var t,r;r=1===(t=e).button,Boolean(r||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)||(n.props.onClick(),e.preventDefault())}),n}return t=c,(e=[{key:"render",value:function(){return d.createElement("a",ro({},this.props,{onClick:this.onClick}))}}])&&no(t.prototype,e),r&&no(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function fo(e){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function po(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vo(n.key),n)}}function mo(e,t){return(mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ho(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=yo(r),t=(e=n?(e=yo(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===fo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function yo(e){return(yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bo(e,t,r){(t=vo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function vo(e){e=function(e,t){if("object"!==fo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==fo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===fo(e)?e:String(e)}uo(lo,"propTypes",{onClick:E.func.isRequired});var go=F("Breadcrumb"),xo=E.arrayOf(E.shape({label:E.string.isRequired,value:E.string.isRequired})),wo=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mo(t,e);var r,n=ho(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.canRefine,n=e.createURL,i=e.items,o=e.refine,r=e.rootURL,a=e.separator,c=e.translate,e=e.className,c=t?d.createElement("li",{className:go("item")},d.createElement(lo,{className:go("link"),onClick:function(){return r?null:o()},href:r||n()},c("rootLabel"))):null,u=i.map(function(e,t){var r=t===i.length-1;return d.createElement("li",{className:go("item",r&&"item--selected"),key:t},d.createElement("span",{className:go("separator")},a),r?e.label:d.createElement(lo,{className:go("link"),onClick:function(){return o(e.value)},href:n(e.value)},e.label))});return d.createElement("div",{className:j(go("",!t&&"-noRefinement"),e)},d.createElement("ul",{className:go("list")},c,u))}}])&&po(t.prototype,e),r&&po(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Oo=(bo(wo,"propTypes",{canRefine:E.bool.isRequired,createURL:E.func.isRequired,items:xo,refine:E.func.isRequired,rootURL:E.string,separator:E.node,translate:E.func.isRequired,className:E.string}),bo(wo,"defaultProps",{rootURL:null,separator:" > ",className:""}),r({rootLabel:"Home"})(wo));function Ro(e){return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Po(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Co(n.key),n)}}function So(e,t){return(So=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Fo(r),t=(e=n?(e=Fo(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ro(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Eo(t)}}function Eo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fo(e){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _o(e,t,r){(t=Co(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Co(e){e=function(e,t){if("object"!==Ro(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ro(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ro(e)?e:String(e)}var No=F("Panel"),xo=o.createContext(function(){}),To=xo.Consumer,Vo=xo.Provider,wo=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&So(t,e);var r,a=jo(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return _o(Eo(t=a.call.apply(a,[this].concat(i))),"state",{canRefine:!0}),_o(Eo(t),"setCanRefine",function(e){t.setState({canRefine:e})}),t}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=e.header,e=e.footer,i=this.state.canRefine;return d.createElement("div",{className:j(No("",!i&&"-noRefinement"),r)},n&&d.createElement("div",{className:No("header")},n),d.createElement("div",{className:No("body")},d.createElement(Vo,{value:this.setCanRefine},t)),e&&d.createElement("div",{className:No("footer")},e))}}])&&Po(t.prototype,e),r&&Po(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function Io(e){return(Io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ko(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qo(n.key),n)}}function Ao(e,t){return(Ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Do(r),t=(e=n?(e=Do(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Io(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Do(e){return(Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qo(e){e=function(e,t){if("object"!==Io(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Io(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Io(e)?e:String(e)}_o(wo,"propTypes",{children:E.node.isRequired,className:E.string,header:E.node,footer:E.node}),_o(wo,"defaultProps",{className:"",header:null,footer:null});function C(e){var t=e.canRefine,r=e.children;return d.createElement(To,null,function(e){return d.createElement(Ho,{setCanRefine:e,canRefine:t},r)})}var Ho=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ao(t,e);var r,n=Mo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.setCanRefine(this.props.canRefine)}},{key:"componentDidUpdate",value:function(e){e.canRefine!==this.props.canRefine&&this.props.setCanRefine(this.props.canRefine)}},{key:"render",value:function(){return this.props.children}}])&&ko(t.prototype,e),r&&ko(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),xo=(xo=Ho,N="propTypes",Ko={children:E.node.isRequired,canRefine:E.bool.isRequired,setCanRefine:E.func.isRequired},(N=qo(N))in xo?Object.defineProperty(xo,N,{value:Ko,enumerable:!0,configurable:!0,writable:!0}):xo[N]=Ko,bt(function(e){return d.createElement(C,e,d.createElement(Oo,e))},{$$widgetType:"ais.breadcrumb"}));function Bo(e){return(Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zo(n.key),n)}}function $o(e,t){return($o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Uo(r),t=(e=n?(e=Uo(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Bo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Uo(e){return(Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wo(e,t,r){(t=zo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function zo(e){e=function(e,t){if("object"!==Bo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Bo(e)?e:String(e)}function Yo(e){var t=e.items,r=e.canRefine,n=e.refine,i=e.translate,e=e.className;return d.createElement("div",{className:j(T("",!r&&"-noRefinement"),e)},d.createElement("ul",{className:T("list",!r&&"list--noRefinement")},t.map(function(e){return d.createElement("li",{key:e.label,className:T("item")},d.createElement("span",{className:T("label")},e.label),e.items?e.items.map(function(e){return d.createElement("span",{key:e.label,className:T("category")},d.createElement("span",{className:T("categoryLabel")},e.label),d.createElement("button",{className:T("delete"),onClick:function(){return n(e.value)}},i("clearFilter",e)))}):d.createElement("span",{className:T("category")},d.createElement("button",{className:T("delete"),onClick:function(){return n(e.value)}},i("clearFilter",e))))})))}var Zo=F("ClearRefinements"),N=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$o(t,e);var r,n=Qo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.items,r=e.canRefine,n=e.refine,i=e.translate,e=e.className;return d.createElement("div",{className:j(Zo(""),e)},d.createElement("button",{className:Zo("button",!r&&"button--disabled"),onClick:function(){return n(t)},disabled:!r},i("reset")))}}])&&Lo(t.prototype,e),r&&Lo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Jo=(Wo(N,"propTypes",{items:E.arrayOf(E.object).isRequired,canRefine:E.bool.isRequired,refine:E.func.isRequired,translate:E.func.isRequired,className:E.string}),Wo(N,"defaultProps",{className:""}),r({reset:"Clear all filters"})(N)),Ko=v(function(e){return d.createElement(C,e,d.createElement(Jo,e))},{$$widgetType:"ais.clearRefinements"}),T=F("CurrentRefinements"),Go=E.arrayOf(E.shape({label:E.string.isRequired,value:E.func.isRequired,items:function(){return Go.apply(void 0,arguments)}})),Xo=(Yo.defaultProps={className:""},r({clearFilter:"✕"})(Yo)),bt=v(function(e){return d.createElement(C,e,d.createElement(Xo,e))},{$$widgetType:"ais.currentRefinements"});function ea(e){return(ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ta(){return(ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ra(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function na(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ra(Object(r),!0).forEach(function(e){V(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ra(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ia(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sa(n.key),n)}}function oa(e,t){return(oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function aa(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ua(r),t=(e=n?(e=ua(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ea(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ca(t)}}function ca(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ua(e){return(ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t,r){return(t=sa(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sa(e){e=function(e,t){if("object"!==ea(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ea(e)?e:String(e)}var I=F("SearchBox"),N=d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:I("loadingIcon"),"aria-hidden":"true"},d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},d.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),d.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},d.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),v=d.createElement("svg",{className:I("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},d.createElement("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"})),la=d.createElement("svg",{className:I("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},d.createElement("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"})),fa=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oa(t,e);var r,n=aa(i);function i(e){var o;if(this instanceof i)return V(ca(o=n.call(this)),"getQuery",function(){return o.props.searchAsYouType?o.props.currentRefinement:o.state.query}),V(ca(o),"onInputMount",function(e){o.input=e,o.props.inputRef&&("function"==typeof o.props.inputRef?o.props.inputRef(e):o.props.inputRef.current=e)}),V(ca(o),"onKeyDown",function(e){var t,r,n;o.props.focusShortcuts&&(t=o.props.focusShortcuts.map(function(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e}),r=(n=e.target||e.srcElement).tagName,n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||(n=e.which||e.keyCode,-1!==t.indexOf(n)&&(o.input.focus(),e.stopPropagation(),e.preventDefault())))}),V(ca(o),"onSubmit",function(e){e.preventDefault(),e.stopPropagation(),o.input.blur();var e=o.props,t=e.refine;return e.searchAsYouType||t(o.getQuery()),!1}),V(ca(o),"onChange",function(e){var t=o.props,r=t.searchAsYouType,n=t.refine,t=t.onChange,i=e.target.value;r?n(i):o.setState({query:i}),t&&t(e)}),V(ca(o),"onReset",function(e){var t=o.props,r=t.searchAsYouType,n=t.refine,t=t.onReset;n(""),o.input.focus(),r||o.setState({query:""}),t&&t(e)}),o.state={query:e.searchAsYouType?null:e.currentRefinement},o;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var r=this,e=this.props,t=e.className,n=e.inputId,i=e.translate,o=e.autoFocus,a=e.loadingIndicator,c=e.submit,e=e.reset,u=this.getQuery(),s=Object.keys(this.props).reduce(function(e,t){return-1===["onsubmit","onreset","onchange"].indexOf(t.toLowerCase())&&0===t.indexOf("on")?na(na({},e),{},V({},t,r.props[t])):e},{}),l=this.props.showLoadingIndicator&&this.props.isSearchStalled;return d.createElement("div",{className:j(I(""),t)},d.createElement("form",{ref:this.props.formRef,noValidate:!0,onSubmit:this.props.onSubmit||this.onSubmit,onReset:this.onReset,className:I("form",l&&"form--stalledSearch"),action:"",role:"search"},d.createElement("input",ta({ref:this.onInputMount,id:n,type:"search",placeholder:i("placeholder"),autoFocus:o,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:u,onChange:this.onChange},s,{className:I("input")})),d.createElement("button",{type:"submit",title:i("submitTitle"),className:I("submit")},c),d.createElement("button",{type:"reset",title:i("resetTitle"),className:I("reset"),hidden:!u||l},e),this.props.showLoadingIndicator&&d.createElement("span",{hidden:!l,className:I("loadingIndicator")},a)))}}])&&ia(t.prototype,e),r&&ia(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),pa=(V(fa,"propTypes",{currentRefinement:E.string,className:E.string,refine:E.func.isRequired,translate:E.func.isRequired,loadingIndicator:E.node,reset:E.node,submit:E.node,focusShortcuts:E.arrayOf(E.oneOfType([E.string,E.number])),autoFocus:E.bool,searchAsYouType:E.bool,onSubmit:E.func,onReset:E.func,onChange:E.func,isSearchStalled:E.bool,showLoadingIndicator:E.bool,formRef:E.oneOfType([E.func,E.exact({current:E.object})]),inputRef:E.oneOfType([E.func,E.exact({current:E.object})]),inputId:E.string}),V(fa,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:N,reset:v,submit:la}),r({resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(fa));function ma(e){return(ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ha(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xa(n.key),n)}}function ya(e,t){return(ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function da(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=va(r),t=(e=n?(e=va(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ma(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ba(t)}}function ba(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function va(e){return(va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ga(e,t,r){(t=xa(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function xa(e){e=function(e,t){if("object"!==ma(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ma(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ma(e)?e:String(e)}var wa=E.arrayOf(E.shape({value:E.any,label:E.node.isRequired,items:function(){return wa.apply(void 0,arguments)}})),Oa=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ya(t,e);var r,i=da(o);function o(){var n;if(this instanceof o)return ga(ba(n=i.call(this)),"onShowMoreClick",function(){n.setState(function(e){return{extended:!e.extended}})}),ga(ba(n),"getLimit",function(){var e=n.props,t=e.limit,e=e.showMoreLimit;return n.state.extended?e:t}),ga(ba(n),"resetQuery",function(){n.setState({query:""})}),ga(ba(n),"renderItem",function(t,e){var r=t.items&&Boolean(t.items.length);return d.createElement("li",{key:t.key||t.label,className:n.props.cx("item",t.isRefined&&"item--selected",t.noRefinement&&"item--noRefinement",r&&"item--parent")},n.props.renderItem(t,e),r&&d.createElement("ul",{className:n.props.cx("list","list--child")},t.items.slice(0,n.getLimit()).map(function(e){return n.renderItem(e,t)})))}),n.state={extended:!1,query:""},n;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderShowMore",value:function(){var e=this.props,t=e.showMore,r=e.translate,e=e.cx,n=this.state.extended,i=this.props.limit>=this.props.items.length;return t?d.createElement("button",{disabled:i,className:e("showMore",i&&"showMore--disabled"),onClick:this.onShowMoreClick},r("showMore",n)):null}},{key:"renderSearchBox",value:function(){var t=this,e=this.props,r=e.cx,n=e.searchForItems,i=e.isFromSearch,o=e.translate,a=e.items,c=e.selectItem,e=0===a.length&&""!==this.state.query?d.createElement("div",{className:r("noResults")},o("noResults")):null;return d.createElement("div",{className:r("searchBox")},d.createElement(pa,{currentRefinement:this.state.query,refine:function(e){t.setState({query:e}),n(e)},focusShortcuts:[],translate:o,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),i&&0<a.length&&c(a[0],t.resetQuery)}}),e)}},{key:"render",value:function(){var t=this,e=this.props,r=e.cx,n=e.items,i=e.className,o=e.searchable,e=e.canRefine,o=o?this.renderSearchBox():null,i=j(r("",!e&&"-noRefinement"),i);return 0===n.length?d.createElement("div",{className:i},o):d.createElement("div",{className:i},o,d.createElement("ul",{className:r("list",!e&&"list--noRefinement")},n.slice(0,this.getLimit()).map(function(e){return t.renderItem(e,t.resetQuery)})),this.renderShowMore())}}])&&ha(t.prototype,e),r&&ha(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Component);function Ra(e){return(Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ca(n.key),n)}}function Sa(e,t){return(Sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ja(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Fa(r),t=(e=n?(e=Fa(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ra(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ea(t)}}function Ea(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fa(e){return(Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _a(e,t,r){(t=Ca(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Ca(e){e=function(e,t){if("object"!==Ra(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ra(e)?e:String(e)}ga(Oa,"propTypes",{cx:E.func.isRequired,translate:E.func,items:wa,renderItem:E.func.isRequired,selectItem:E.func,className:E.string,showMore:E.bool,limit:E.number,showMoreLimit:E.number,show:E.func,searchForItems:E.func,searchable:E.bool,isFromSearch:E.bool,canRefine:E.bool}),ga(Oa,"defaultProps",{className:"",isFromSearch:!1});function Na(e){var t=e.cx,r=e.value,n=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return d.createElement(i?n:e,{className:t(i?"highlighted":"nonHighlighted")},r)}function Ta(e){var n=e.cx,t=e.hit,r=e.attribute,i=e.highlight,o=e.highlightProperty,a=e.tagName,c=e.nonHighlightedTagName,u=e.separator,e=e.className,s=i({hit:t,attribute:r,highlightProperty:o});return d.createElement("span",{className:j(n(""),e)},s.map(function(e,t){var r;return Array.isArray(e)?(r=t===s.length-1,d.createElement("span",{key:t},e.map(function(e,t){return d.createElement(Na,{cx:n,key:t,value:e.value,highlightedTagName:a,nonHighlightedTagName:c,isHighlighted:e.isHighlighted})}),!r&&d.createElement("span",{className:n("separator")},u))):d.createElement(Na,{cx:n,key:t,value:e.value,highlightedTagName:a,nonHighlightedTagName:c,isHighlighted:e.isHighlighted})}))}var Va=F("HierarchicalMenu"),Ia=E.arrayOf(E.shape({label:E.string.isRequired,value:E.string,count:E.number.isRequired,items:function(){return Ia.apply(void 0,arguments)}})),N=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sa(t,e);var r,a=ja(c);function c(){var i,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _a(Ea(i=a.call.apply(a,[this].concat(n))),"renderItem",function(e){var t=i.props,r=t.createURL,n=t.refine;return d.createElement(lo,{className:Va("link",e.isRefined&&"link--selected"),onClick:function(){return n(e.value)},href:r(e.value)},d.createElement("span",{className:Va("label")},e.label)," ",d.createElement("span",{className:Va("count")},e.count))}),i}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.canRefine,e=e.className;return d.createElement(Oa,{renderItem:this.renderItem,cx:Va,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,canRefine:a,className:e})}}])&&Pa(t.prototype,e),r&&Pa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),ka=(_a(N,"propTypes",{translate:E.func.isRequired,refine:E.func.isRequired,createURL:E.func.isRequired,canRefine:E.bool.isRequired,items:Ia,showMore:E.bool,className:E.string,limit:E.number,showMoreLimit:E.number,transformItems:E.func}),_a(N,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"}})(N)),v=dn(function(e){return d.createElement(C,e,d.createElement(ka,e))},{$$widgetType:"ais.hierarchicalMenu"});function Aa(){return(Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Ta.defaultProps={tagName:"em",nonHighlightedTagName:"span",className:"",separator:", "};function Ma(e){return d.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")}var Da=F("Highlight"),qa=bn(function(e){return d.createElement(Ta,Aa({},e,{highlightProperty:"_highlightResult",cx:Da}))},{$$widgetType:"ais.highlight"}),Ha=F("Hits"),la=(E.shape({objectID:E.oneOfType([E.string,E.number]).isRequired}),vn(function(e){var t=e.hits,r=e.className,r=void 0===r?"":r,e=e.hitComponent,n=void 0===e?Ma:e;return d.createElement("div",{className:j(Ha(""),r)},d.createElement("ul",{className:Ha("list")},t.map(function(e){return d.createElement("li",{className:Ha("item"),key:e.objectID},d.createElement(n,{hit:e}))})))},{$$widgetType:"ais.hits"}));function Ba(e){return(Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function La(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ya(n.key),n)}}function $a(e,t){return($a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qa(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Wa(r),t=(e=n?(e=Wa(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ba(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ua(t)}}function Ua(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function za(e,t,r){(t=Ya(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Ya(e){e=function(e,t){if("object"!==Ba(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ba(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ba(e)?e:String(e)}var Za=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$a(t,e);var r,a=Qa(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return za(Ua(t=a.call.apply(a,[this].concat(i))),"onChange",function(e){t.props.onSelect(e.target.value)}),t}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.id,n=e.items,e=e.selectedItem;return d.createElement("select",{id:r,className:t("select"),value:e,onChange:this.onChange},n.map(function(e){return d.createElement("option",{className:t("option"),key:void 0===e.key?e.value:e.key,disabled:e.disabled,value:e.value},void 0===e.label?e.value:e.label)}))}}])&&La(t.prototype,e),r&&La(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function Ja(e){return(Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ka(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rc(n.key),n)}}function Ga(e,t){return(Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xa(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ec(r),t=(e=n?(e=ec(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ja(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ec(e){return(ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tc(e,t,r){(t=rc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function rc(e){e=function(e,t){if("object"!==Ja(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ja(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ja(e)?e:String(e)}za(Za,"propTypes",{cx:E.func.isRequired,id:E.string,onSelect:E.func.isRequired,items:E.arrayOf(E.shape({value:E.oneOfType([E.string,E.number]).isRequired,key:E.oneOfType([E.string,E.number]),label:E.string,disabled:E.bool})).isRequired,selectedItem:E.oneOfType([E.string,E.number]).isRequired});var nc=F("HitsPerPage"),fa=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ga(t,e);var r,n=Xa(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.currentRefinement,i=e.refine,e=e.className;return d.createElement("div",{className:j(nc(""),e)},d.createElement(Za,{id:t,onSelect:i,selectedItem:n,items:r,cx:nc}))}}])&&Ka(t.prototype,e),r&&Ka(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),N=(tc(fa,"propTypes",{id:E.string,items:E.arrayOf(E.shape({value:E.number.isRequired,label:E.string})).isRequired,currentRefinement:E.number.isRequired,refine:E.func.isRequired,className:E.string}),tc(fa,"defaultProps",{className:""}),P(fa,{$$widgetType:"ais.hitsPerPage"}));function ic(e){return(ic="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!==ic(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ic(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ic(e)?e:String(e)}(n.key),n)}}function ac(e,t){return(ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=uc(r),t=(e=n?(e=uc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ic(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function uc(e){return(uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sc=F("InfiniteHits"),dn=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ac(t,e);var r,n=cc(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.hitComponent,r=e.hits,n=e.showPrevious,i=e.hasPrevious,o=e.hasMore,a=e.refinePrevious,c=e.refineNext,u=e.translate,e=e.className;return d.createElement("div",{className:j(sc(""),e)},n&&d.createElement("button",{className:sc("loadPrevious",!i&&"loadPrevious--disabled"),onClick:function(){return a()},disabled:!i},u("loadPrevious")),d.createElement("ul",{className:sc("list")},r.map(function(e){return d.createElement("li",{key:e.objectID,className:sc("item")},d.createElement(t,{hit:e}))})),d.createElement("button",{className:sc("loadMore",!o&&"loadMore--disabled"),onClick:function(){return c()},disabled:!o},u("loadMore")))}}])&&oc(t.prototype,e),r&&oc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);dn.defaultProps={className:"",showPrevious:!1,hitComponent:function(e){return d.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")}};vn=Tn(r({loadPrevious:"Load previous",loadMore:"Load more"})(dn),{$$widgetType:"ais.infiniteHits"});function lc(e){return(lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bc(n.key),n)}}function pc(e,t){return(pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=yc(r),t=(e=n?(e=yc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===lc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hc(t)}}function hc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yc(e){return(yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dc(e,t,r){(t=bc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function bc(e){e=function(e,t){if("object"!==lc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===lc(e)?e:String(e)}var vc=F("Menu"),P=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pc(t,e);var r,a=mc(c);function c(){var i,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dc(hc(i=a.call.apply(a,[this].concat(n))),"renderItem",function(e,t){var r=i.props.createURL,n=i.props.isFromSearch?d.createElement(qa,{attribute:"label",hit:e}):e.label;return d.createElement(lo,{className:vc("link"),onClick:function(){return i.selectItem(e,t)},href:r(e.value)},d.createElement("span",{className:vc("label")},n)," ",d.createElement("span",{className:vc("count")},e.count))}),dc(hc(i),"selectItem",function(e,t){t(),i.props.refine(e.value)}),i}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.isFromSearch,c=e.searchForItems,u=e.searchable,s=e.canRefine,e=e.className;return d.createElement(Oa,{renderItem:this.renderItem,selectItem:this.selectItem,cx:vc,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,isFromSearch:a,searchForItems:c,searchable:u,canRefine:s,className:e})}}])&&fc(t.prototype,e),r&&fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),gc=(dc(P,"propTypes",{translate:E.func.isRequired,refine:E.func.isRequired,searchForItems:E.func.isRequired,searchable:E.bool,createURL:E.func.isRequired,items:E.arrayOf(E.shape({label:E.string.isRequired,value:E.string.isRequired,count:E.number.isRequired,isRefined:E.bool.isRequired})),isFromSearch:E.bool.isRequired,canRefine:E.bool.isRequired,showMore:E.bool,limit:E.number,showMoreLimit:E.number,transformItems:E.func,className:E.string}),dc(P,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(P)),fa=S(function(e){return d.createElement(C,e,d.createElement(gc,e))},{$$widgetType:"ais.menu"});function xc(e){return(xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ec(n.key),n)}}function Oc(e,t){return(Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Sc(r),t=(e=n?(e=Sc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===xc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pc(t)}}function Pc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sc(e){return(Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jc(e,t,r){(t=Ec(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Ec(e){e=function(e,t){if("object"!==xc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==xc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===xc(e)?e:String(e)}var Fc=F("MenuSelect"),Tn=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oc(t,e);var r,a=Rc(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return jc(Pc(t=a.call.apply(a,[this].concat(i))),"handleSelectChange",function(e){e=e.target.value;t.props.refine("ais__see__all__option"===e?"":e)}),t}return t=c,(e=[{key:"selectedValue",get:function(){return(eo(this.props.items,function(e){return!0===e.isRefined})||{value:"ais__see__all__option"}).value}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.canRefine,i=e.translate,e=e.className;return d.createElement("div",{className:j(Fc("",!n&&"-noRefinement"),e)},d.createElement("select",{id:t,value:this.selectedValue,onChange:this.handleSelectChange,className:Fc("select")},d.createElement("option",{value:"ais__see__all__option",className:Fc("option")},i("seeAllOption")),r.map(function(e){return d.createElement("option",{key:e.value,value:e.value,className:Fc("option")},e.label," (",e.count,")")})))}}])&&wc(t.prototype,e),r&&wc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),_c=(jc(Tn,"propTypes",{id:E.string,items:E.arrayOf(E.shape({label:E.string.isRequired,value:E.string.isRequired,count:E.oneOfType([E.number.isRequired,E.string.isRequired]),isRefined:E.bool.isRequired})).isRequired,canRefine:E.bool.isRequired,refine:E.func.isRequired,translate:E.func.isRequired,className:E.string}),jc(Tn,"defaultProps",{className:""}),r({seeAllOption:"See all"})(Tn)),dn=S(function(e){return d.createElement(C,e,d.createElement(_c,e))},{$$widgetType:"ais.menuSelect"});function Cc(e){return(Cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nc(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Tc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nc(Object(r),!0).forEach(function(e){Dc(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nc(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Vc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qc(n.key),n)}}function Ic(e,t){return(Ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Mc(r),t=(e=n?(e=Mc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Cc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ac(t)}}function Ac(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mc(e){return(Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dc(e,t,r){(t=qc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function qc(e){e=function(e,t){if("object"!==Cc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Cc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Cc(e)?e:String(e)}var Hc=F("NumericMenu"),P=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ic(t,e);var r,a=kc(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Dc(Ac(n=a.call.apply(a,[this].concat(i))),"renderItem",function(e){var t=n.props,r=t.refine,t=t.translate;return d.createElement("label",{className:Hc("label")},d.createElement("input",{className:Hc("radio"),type:"radio",checked:e.isRefined,disabled:e.noRefinement,onChange:function(){return r(e.value)}}),d.createElement("span",{className:Hc("labelText")},""===e.value?t("all"):e.label))}),n}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.items,r=e.canRefine,e=e.className;return d.createElement(Oa,{renderItem:this.renderItem,showMore:!1,canRefine:r,cx:Hc,items:t.map(function(e){return Tc(Tc({},e),{},{key:e.value})}),className:e})}}])&&Vc(t.prototype,e),r&&Vc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Bc=(Dc(P,"propTypes",{items:E.arrayOf(E.shape({label:E.node.isRequired,value:E.string.isRequired,isRefined:E.bool.isRequired,noRefinement:E.bool.isRequired})).isRequired,canRefine:E.bool.isRequired,refine:E.func.isRequired,translate:E.func.isRequired,className:E.string}),Dc(P,"defaultProps",{className:""}),r({all:"All"})(P)),Tn=Kn(function(e){return d.createElement(C,e,d.createElement(Bc,e))},{$$widgetType:"ais.numericMenu"});function Lc(e){return(Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zc(n.key),n)}}function Qc(e,t){return(Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Uc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Wc(r),t=(e=n?(e=Wc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Lc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Wc(e){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zc(e){e=function(e,t){if("object"!==Lc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Lc(e)?e:String(e)}var S=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qc(t,e);var r,n=Uc(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.createURL,n=e.items,i=e.onSelect,e=e.canRefine;return d.createElement("ul",{className:t("list",!e&&"list--noRefinement")},n.map(function(e){return d.createElement("li",{key:void 0===e.key?e.value:e.key,className:t("item",e.selected&&!e.disabled&&"item--selected",e.disabled&&"item--disabled",e.modifier)},e.disabled?d.createElement("span",{className:t("link")},void 0===e.label?e.value:e.label):d.createElement(lo,{className:t("link",e.selected&&"link--selected"),"aria-label":e.ariaLabel,href:r(e.value),onClick:function(){return i(e.value)}},void 0===e.label?e.value:e.label))}))}}])&&$c(t.prototype,e),r&&$c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Yc=(P=S,Kn="propTypes",du={cx:E.func.isRequired,createURL:E.func.isRequired,items:E.arrayOf(E.shape({value:E.oneOfType([E.string,E.number,E.object]).isRequired,key:E.oneOfType([E.string,E.number]),label:E.node,modifier:E.string,ariaLabel:E.string,disabled:E.bool})),onSelect:E.func.isRequired,canRefine:E.bool.isRequired},(Kn=zc(Kn))in P?Object.defineProperty(P,Kn,{value:du,enumerable:!0,configurable:!0,writable:!0}):P[Kn]=du,["listComponent","nbPages","totalPages","currentRefinement","padding","showFirst","showPrevious","showNext","showLast","refine","createURL","canRefine","translate","className"]);function Zc(e){return(Zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jc(){return(Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kc(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Gc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nu(n.key),n)}}function Xc(e,t){return(Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=tu(r),t=(e=n?(e=tu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Zc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function tu(e){return(tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ru(e,t,r){(t=nu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function nu(e){e=function(e,t){if("object"!==Zc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Zc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Zc(e)?e:String(e)}var iu=F("Pagination");function ou(e,t,r){var n,i,o=Math.min(2*r+1,t);return o===t?Xi({start:1,end:t+1}):(t=t,i=o,i=(n=e)<=(r=r)?n:t-r<=n?i-(t-n):r+1,Xi({start:1+(e-i),end:e+(o-i)+1}))}var P=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xc(t,e);var r,n=eu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"getItem",value:function(e,t,r){var n=this.props,i=n.nbPages,o=n.totalPages,n=n.translate;return{key:"".concat(e,".").concat(r),modifier:e,disabled:r<1||r>=Math.min(o,i),label:n(t,r),value:r,ariaLabel:n("aria".concat(0===(e=t).length?"":"".concat(e[0].toUpperCase()).concat(e.slice(1))),r)}}},{key:"render",value:function(){var e=this.props,t=e.listComponent,r=e.nbPages,n=e.totalPages,i=e.currentRefinement,o=e.padding,a=e.showFirst,c=e.showPrevious,u=e.showNext,s=e.showLast,l=e.refine,f=e.createURL,p=e.canRefine,m=e.translate,h=e.className,e=Kc(e,Yc),r=Math.min(r,n),n=r,y=[];return a&&y.push({key:"first",modifier:"item--firstPage",disabled:1===i,label:m("first"),value:1,ariaLabel:m("ariaFirst")}),c&&y.push({key:"previous",modifier:"item--previousPage",disabled:1===i,label:m("previous"),value:i-1,ariaLabel:m("ariaPrevious")}),y=y.concat(ou(i,r,o).map(function(e){return{key:e,modifier:"item--page",label:m("page",e),value:e,selected:e===i,ariaLabel:m("ariaPage",e)}})),u&&y.push({key:"next",modifier:"item--nextPage",disabled:i===n||n<=1,label:m("next"),value:i+1,ariaLabel:m("ariaNext")}),s&&y.push({key:"last",modifier:"item--lastPage",disabled:i===n||n<=1,label:m("last"),value:n,ariaLabel:m("ariaLast")}),d.createElement("div",{className:j(iu("",!p&&"-noRefinement"),h)},d.createElement(t,Jc({},e,{cx:iu,items:y,onSelect:l,createURL:f,canRefine:p})))}}])&&Gc(t.prototype,e),r&&Gc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),au=(ru(P,"propTypes",{nbPages:E.number.isRequired,currentRefinement:E.number.isRequired,refine:E.func.isRequired,createURL:E.func.isRequired,canRefine:E.bool.isRequired,translate:E.func.isRequired,listComponent:E.func,showFirst:E.bool,showPrevious:E.bool,showNext:E.bool,showLast:E.bool,padding:E.number,totalPages:E.number,className:E.string}),ru(P,"defaultProps",{listComponent:S,showFirst:!0,showPrevious:!0,showNext:!0,showLast:!1,padding:3,totalPages:1/0,className:""}),r({previous:"‹",next:"›",first:"«",last:"»",page:function(e){return e.toString()},ariaPrevious:"Previous page",ariaNext:"Next page",ariaFirst:"First page",ariaLast:"Last page",ariaPage:function(e){return"Page ".concat(e.toString())}})(P)),Kn=ri(function(e){return d.createElement(C,e,d.createElement(au,e))},{$$widgetType:"ais.pagination"});function cu(e){return(cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pu(n.key),n)}}function su(e,t){return(su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=fu(r),t=(e=n?(e=fu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===cu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function fu(e){return(fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pu(e){e=function(e,t){if("object"!==cu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==cu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===cu(e)?e:String(e)}var mu=F("PoweredBy"),hu=d.createElement("path",{fill:"#003DFF",d:"M249.5 64.2V1.4c0-.9-.7-1.5-1.6-1.4L236.2 2a1.4 1.4 0 0 0-1.2 1.3V67c0 3 0 21.6 22.4 22.3a1.4 1.4 0 0 0 1.5-1.4v-9.5c0-.7-.6-1.3-1.2-1.4-8.2-.9-8.2-11-8.2-12.7ZM443.5 24.4h-11.8c-.8 0-1.4.6-1.4 1.4v62c0 .8.6 1.4 1.4 1.4h11.8c.8 0 1.4-.6 1.4-1.4v-62c0-.8-.6-1.4-1.4-1.4ZM431.7 16.6h11.8c.8 0 1.4-.6 1.4-1.3v-14c0-.8-.7-1.4-1.6-1.3L431.5 2a1.4 1.4 0 0 0-1.2 1.3v12c0 .8.6 1.4 1.4 1.4Zm-20.5 47.6V1.4c0-.9-.7-1.5-1.5-1.4L397.9 2a1.4 1.4 0 0 0-1.2 1.3V67c0 3 0 21.6 22.4 22.3a1.4 1.4 0 0 0 1.5-1.4v-9.5c0-.7-.5-1.3-1.2-1.4-8.2-.9-8.2-11-8.2-12.7Zm-30.7-31c-2.6-2.8-5.8-5-9.6-6.5a31.7 31.7 0 0 0-12-2.3c-4.5 0-8.5.7-12.2 2.3A27.9 27.9 0 0 0 331 43.5a39.6 39.6 0 0 0 0 26.3c1.5 4 3.6 7.5 6.2 10.3 2.6 2.9 5.8 5 9.5 6.7a38 38 0 0 0 12.2 2.4c2.8 0 8.6-.9 12.3-2.4a27 27 0 0 0 9.5-6.7 35.1 35.1 0 0 0 8.3-23c0-4.9-.8-9.6-2.4-13.6-1.5-4-3.5-7.4-6.1-10.2ZM370 71.5a13.1 13.1 0 0 1-11.2 5.6 13 13 0 0 1-11.2-5.6c-2.7-3.6-4-7.9-4-14.2 0-6.3 1.3-11.5 4-15.1a13 13 0 0 1 11.1-5.5 13 13 0 0 1 11.3 5.5c2.6 3.6 4 8.8 4 15 0 6.4-1.3 10.6-4 14.3Zm-161.6-47H197a32 32 0 0 0-27 15 33.8 33.8 0 0 0 8.9 45.9 18.8 18.8 0 0 0 11.2 3.1H191.2l.6-.2h.2a21 21 0 0 0 16.5-14.6V87c0 .8.6 1.4 1.4 1.4h11.7c.8 0 1.4-.6 1.4-1.4V25.8c0-.8-.6-1.4-1.4-1.4h-13Zm0 48.3a17.8 17.8 0 0 1-10.4 3.5h-.2a12.5 12.5 0 0 1-.7 0A18.4 18.4 0 0 1 180.4 51c2.7-6.8 9-11.6 16.6-11.6h11.5v33.3Zm289-48.3H486a32 32 0 0 0-27 15 33.8 33.8 0 0 0 8.8 45.9 18.8 18.8 0 0 0 11.3 3.1h1.1l.6-.2h.2a21 21 0 0 0 16.5-14.6V87c0 .8.6 1.4 1.4 1.4h11.7c.8 0 1.4-.6 1.4-1.4V25.8c0-.8-.6-1.4-1.4-1.4h-13.1Zm0 48.3a17.8 17.8 0 0 1-10.5 3.5h-.9A18.4 18.4 0 0 1 469.4 51c2.6-6.8 9-11.6 16.6-11.6h11.5v33.3ZM306.3 24.4h-11.5a32 32 0 0 0-27 15 33.7 33.7 0 0 0-5.1 14.6 34.6 34.6 0 0 0 0 7.6c1 8.9 5.4 16.7 11.8 22a19.5 19.5 0 0 0 2.2 1.7 18.8 18.8 0 0 0 21.6-.6c3.8-2.7 6.7-6.7 8-11.1V87.9c0 5-1.3 8.9-4 11.5-2.7 2.6-7.3 3.9-13.6 3.9-2.6 0-6.7-.2-10.9-.6a1.4 1.4 0 0 0-1.4 1l-3 10a1.4 1.4 0 0 0 1.1 1.8c5 .7 10 1 12.8 1 11.4 0 19.8-2.4 25.3-7.4 5-4.6 7.8-11.4 8.2-20.7V25.8c0-.8-.6-1.4-1.3-1.4h-13.2Zm0 15s.2 32.4 0 33.4a17.5 17.5 0 0 1-10 3.4h-.2a13.6 13.6 0 0 1-1.7 0A18.7 18.7 0 0 1 278.3 51c2.6-6.8 9-11.6 16.5-11.6h11.5ZM58.2 0A58.3 58.3 0 1 0 86 109.5c.9-.5 1-1.6.3-2.2l-5.5-4.9a3.8 3.8 0 0 0-4-.6A47 47 0 0 1 11 57.5 47.3 47.3 0 0 1 58.2 11h47.3v84L78.7 71.2a2 2 0 0 0-3 .3 22 22 0 1 1 4.4-15.2 4 4 0 0 0 1.3 2.6l7 6.2c.8.7 2 .3 2.3-.8a33 33 0 0 0-30.4-39 33 33 0 0 0-35 32 33.3 33.3 0 0 0 32.2 33.9 32.8 32.8 0 0 0 20-6.3l35.1 31c1.5 1.4 3.9.3 3.9-1.7V2.2a2.2 2.2 0 0 0-2.2-2.2h-56Z"}),yu=d.createElement(function(){return d.createElement("svg",{viewBox:"0 0 512 117",width:"118",height:"27",className:mu("logo")},hu)},null),du=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&su(t,e);var r,n=lu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.url,r=e.translate,e=e.className;return d.createElement("div",{className:j(mu(""),e)},d.createElement("span",{className:mu("text")},r("searchBy"))," ",d.createElement("a",{href:t,target:"_blank",className:mu("link"),"aria-label":"Algolia",rel:"noopener noreferrer"},yu))}}])&&uu(t.prototype,e),r&&uu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);S=du,P="propTypes",ri={url:E.string.isRequired,translate:E.func.isRequired,className:E.string},(P=pu(P))in S?Object.defineProperty(S,P,{value:ri,enumerable:!0,configurable:!0,writable:!0}):S[P]=ri;S=ni(r({searchBy:"Search by"})(du),{$$widgetType:"ais.poweredBy"});function bu(e){return(bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pu(n.key),n)}}function gu(e,t){return(gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ou(r),t=(e=n?(e=Ou(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===bu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wu(t)}}function wu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ou(e){return(Ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ru(e,t,r){(t=Pu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Pu(e){e=function(e,t){if("object"!==bu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==bu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===bu(e)?e:String(e)}var Su=F("RangeInput"),P=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gu(t,e);var r,n=xu(i);function i(e){var t;if(this instanceof i)return Ru(wu(t=n.call(this,e)),"onSubmit",function(e){e.preventDefault(),t.props.refine({min:t.state.from,max:t.state.to})}),t.state=t.normalizeStateForRendering(e),t;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){!this.props.canRefine||e.currentRefinement.min===this.props.currentRefinement.min&&e.currentRefinement.max===this.props.currentRefinement.max||this.setState(this.normalizeStateForRendering(this.props))}},{key:"normalizeStateForRendering",value:function(e){var t=e.canRefine,r=e.min,n=e.max,e=e.currentRefinement,i=e.min,e=e.max;return{from:t&&void 0!==i&&i!==r?i:"",to:t&&void 0!==e&&e!==n?e:""}}},{key:"normalizeRangeForRendering",value:function(e){var t=e.canRefine,r=e.min,e=e.max,n=void 0!==r,i=void 0!==e;return{min:t&&n&&i?r:"",max:t&&n&&i?e:""}}},{key:"render",value:function(){var t=this,e=this.state,r=e.from,e=e.to,n=this.props,i=n.precision,o=n.translate,a=n.canRefine,n=n.className,c=this.normalizeRangeForRendering(this.props),u=c.min,c=c.max,i=1/Math.pow(10,i);return d.createElement("div",{className:j(Su("",!a&&"-noRefinement"),n)},d.createElement("form",{className:Su("form"),onSubmit:this.onSubmit},d.createElement("input",{className:Su("input","input--min"),type:"number",min:u,max:c,value:r,step:i,placeholder:u,disabled:!a,onChange:function(e){return t.setState({from:e.currentTarget.value})}}),d.createElement("span",{className:Su("separator")},o("separator")),d.createElement("input",{className:Su("input","input--max"),type:"number",min:u,max:c,value:e,step:i,placeholder:c,disabled:!a,onChange:function(e){return t.setState({to:e.currentTarget.value})}}),d.createElement("button",{className:Su("submit"),type:"submit"},o("submit"))))}}])&&vu(t.prototype,e),r&&vu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),ju=(Ru(P,"propTypes",{canRefine:E.bool.isRequired,precision:E.number.isRequired,translate:E.func.isRequired,refine:E.func.isRequired,min:E.number,max:E.number,currentRefinement:E.shape({min:E.number,max:E.number}),className:E.string}),Ru(P,"defaultProps",{currentRefinement:{},className:""}),r({submit:"ok",separator:"to"})(P)),ri=pi(function(e){return d.createElement(C,e,d.createElement(ju,e))},{$$widgetType:"ais.rangeInput"}),Eu=d.createElement("div",null,"We do not provide any Slider, see the documentation to learn how to connect one easily:",d.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.algolia.com/doc/api-reference/widgets/range-slider/react/"},"https://www.algolia.com/doc/api-reference/widgets/range-slider/react/"));function Fu(e){return(Fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _u(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Cu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_u(Object(r),!0).forEach(function(e){Au(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Nu(){return(Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Tu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mu(n.key),n)}}function Vu(e,t){return(Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Iu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ku(r),t=(e=n?(e=ku(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Fu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ku(e){return(ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Au(e,t,r){(t=Mu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Mu(e){e=function(e,t){if("object"!==Fu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Fu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Fu(e)?e:String(e)}var k=F("RatingMenu"),Du=d.createElement("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"}),qu=d.createElement("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"}),ni=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vu(t,e);var r,n=Iu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"onClick",value:function(e,t,r){r.preventDefault(),r.stopPropagation(),e===this.props.currentRefinement.min&&t===this.props.currentRefinement.max?this.props.refine({min:this.props.min,max:this.props.max}):this.props.refine({min:e,max:t})}},{key:"buildItem",value:function(e){for(var t=e.max,r=e.lowerBound,n=e.count,i=e.translate,o=e.createURL,e=e.isLastSelectableItem,a=!n,c=this.props.currentRefinement.min<r,c=e&&c||!a&&r===this.props.currentRefinement.min&&t===this.props.currentRefinement.max,u=[],s=0,l=0;l<t;l++)l<r&&s++,u.push([d.createElement("svg",{key:l,className:k("starIcon",r<=l?"starIcon--empty":"starIcon--full"),"aria-hidden":"true",width:"24",height:"24"},d.createElement("use",{xlinkHref:"#".concat(k(r<=l?"starEmptySymbol":"starSymbol"))}))," "]);e=a||e&&c?{}:{href:o({min:r,max:t}),onClick:this.onClick.bind(this,r,t)};return d.createElement("li",{key:r,className:k("item",c&&"item--selected",a&&"item--disabled")},d.createElement("a",Nu({className:k("link"),"aria-label":"".concat(s).concat(i("ratingLabel"))},e),u,d.createElement("span",{className:k("label"),"aria-hidden":"true"},i("ratingLabel"))," ",d.createElement("span",{className:k("count")},n)))}},{key:"render",value:function(){var n=this,e=this.props,t=e.min,r=e.max,i=e.translate,o=e.count,a=e.createURL,c=e.canRefine,e=e.className,u=void 0!==t&&0<=t?t:1,s=void 0!==r&&0<=r?r:0,t=s-u+1,l=o.map(function(e){return Cu(Cu({},e),{},{value:parseFloat(e.value)})}).filter(function(e){return e.value>=u&&e.value<=s}),r=Xi({start:0,end:Math.max(t,0)}).map(function(t){return eo(l,function(e){return e.value===s-t})||{value:s-t,count:0,total:0}}).reduce(function(e,t,r){return e.concat(Cu(Cu({},t),{},{total:0===r?t.count:e[r-1].total+t.count}))},[]).map(function(e,t,r){return n.buildItem({lowerBound:e.value,count:e.total,isLastSelectableItem:r.length-1===t,max:s,translate:i,createURL:a})});return d.createElement("div",{className:j(k("",!c&&"-noRefinement"),e)},d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"}},d.createElement("symbol",{id:k("starSymbol"),viewBox:"0 0 24 24"},Du),d.createElement("symbol",{id:k("starEmptySymbol"),viewBox:"0 0 24 24"},qu)),d.createElement("ul",{className:k("list",!c&&"list--noRefinement")},r))}}])&&Tu(t.prototype,e),r&&Tu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Hu=(Au(ni,"propTypes",{translate:E.func.isRequired,refine:E.func.isRequired,createURL:E.func.isRequired,min:E.number,max:E.number,currentRefinement:E.shape({min:E.number,max:E.number}),count:E.arrayOf(E.shape({value:E.string,count:E.number})),canRefine:E.bool.isRequired,className:E.string}),Au(ni,"defaultProps",{className:""}),r({ratingLabel:" & Up"})(ni)),du=pi(function(e){return d.createElement(C,e,d.createElement(Hu,e))},{$$widgetType:"ais.ratingMenu"});function Bu(e){return(Bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yu(n.key),n)}}function $u(e,t){return($u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Wu(r),t=(e=n?(e=Wu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Bu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Uu(t)}}function Uu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wu(e){return(Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zu(e,t,r){(t=Yu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Yu(e){e=function(e,t){if("object"!==Bu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Bu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Bu(e)?e:String(e)}var Zu=F("RefinementList"),P=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$u(t,e);var r,a=Qu(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return zu(Uu(n=a.call.apply(a,[this].concat(i))),"state",{query:""}),zu(Uu(n),"selectItem",function(e,t){t(),n.props.refine(e.value)}),zu(Uu(n),"renderItem",function(e,t){var r=n.props.isFromSearch?d.createElement(qa,{attribute:"label",hit:e}):e.label;return d.createElement("label",{className:Zu("label")},d.createElement("input",{className:Zu("checkbox"),type:"checkbox",checked:e.isRefined,onChange:function(){return n.selectItem(e,t)}}),d.createElement("span",{className:Zu("labelText")},r)," ",d.createElement("span",{className:Zu("count")},e.count.toLocaleString()))}),n}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.isFromSearch,c=e.searchForItems,u=e.searchable,s=e.canRefine,e=e.className;return d.createElement(Oa,{renderItem:this.renderItem,selectItem:this.selectItem,cx:Zu,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,isFromSearch:a,searchForItems:c,searchable:u,canRefine:s,className:e,query:this.state.query})}}])&&Lu(t.prototype,e),r&&Lu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Ju=(zu(P,"propTypes",{translate:E.func.isRequired,refine:E.func.isRequired,searchForItems:E.func.isRequired,searchable:E.bool,createURL:E.func.isRequired,items:E.arrayOf(E.shape({label:E.string.isRequired,value:E.arrayOf(E.string).isRequired,count:E.number.isRequired,isRefined:E.bool.isRequired})),isFromSearch:E.bool.isRequired,canRefine:E.bool.isRequired,showMore:E.bool,limit:E.number,showMoreLimit:E.number,transformItems:E.func,className:E.string}),zu(P,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(P)),ni=Oi(function(e){return d.createElement(C,e,d.createElement(Ju,e))},{$$widgetType:"ais.refinementList"});function Ku(e){return(Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rs(n.key),n)}}function Xu(e,t){return(Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function es(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ts(r),t=(e=n?(e=ts(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ku(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ts(e){return(ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rs(e){e=function(e,t){if("object"!==Ku(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ku(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ku(e)?e:String(e)}var ns=F("ScrollTo"),pi=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xu(t,e);var r,n=es(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.value,t=t.hasNotChanged;r!==e.value&&t&&this.el.scrollIntoView()}},{key:"render",value:function(){var t=this;return d.createElement("div",{ref:function(e){return t.el=e},className:ns("")},this.props.children)}}])&&Gu(t.prototype,e),r&&Gu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),P=(P=pi,Oi="propTypes",cs={value:E.any,children:E.node,hasNotChanged:E.bool},(Oi=rs(Oi))in P?Object.defineProperty(P,Oi,{value:cs,enumerable:!0,configurable:!0,writable:!0}):P[Oi]=cs,Ri(pi,{$$widgetType:"ais.scrollTo"})),Oi=_i(pa,{$$widgetType:"ais.searchBox"});function is(){return(is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function os(e){return e=e.isRelevantSorted,d.createElement("span",null,e?"See all results":"See relevant results")}var as=F("Snippet"),cs=bn(function(e){return d.createElement(Ta,is({},e,{highlightProperty:"_snippetResult",cx:as}))},{$$widgetType:"ais.snippet"}),us=F("RelevantSort"),Ri=Vi(function(e){var t=e.className,t=void 0===t?"":t,r=e.isVirtualReplica,n=e.isRelevantSorted,i=e.buttonTextComponent,i=void 0===i?os:i,o=e.textComponent,a=e.refine;return r?d.createElement("div",{className:j(us(""),t)},d.createElement("div",{className:us("text")},o&&d.createElement(o,{isRelevantSorted:n})),d.createElement("button",{className:us("button"),onClick:function(){return a(n?0:void 0)}},d.createElement(i,{isRelevantSorted:n}))):null},{$$widgetType:"ais.relevantSort"});function ss(e){return(ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ls(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ys(n.key),n)}}function fs(e,t){return(fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ps(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ms(r),t=(e=n?(e=ms(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ss(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ms(e){return(ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hs(e,t,r){(t=ys(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function ys(e){e=function(e,t){if("object"!==ss(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ss(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ss(e)?e:String(e)}function ds(e){var t=e.currentRefinement,r=e.label,n=e.canRefine,i=e.refine,e=e.className;return d.createElement("div",{className:j(gs("",!n&&"-noRefinement"),e)},d.createElement("label",{className:gs("label")},d.createElement("input",{className:gs("checkbox"),type:"checkbox",checked:t,onChange:function(e){return i(e.target.checked)}}),d.createElement("span",{className:gs("labelText")},r)))}var bs=F("SortBy"),pi=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fs(t,e);var r,n=ps(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.currentRefinement,i=e.refine,e=e.className;return d.createElement("div",{className:j(bs(""),e)},d.createElement(Za,{id:t,cx:bs,items:r,selectedItem:n,onSelect:i}))}}])&&ls(t.prototype,e),r&&ls(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),_i=(hs(pi,"propTypes",{id:E.string,items:E.arrayOf(E.shape({label:E.string,value:E.string.isRequired})).isRequired,currentRefinement:E.string.isRequired,refine:E.func.isRequired,className:E.string}),hs(pi,"defaultProps",{className:""}),Hi(pi,{$$widgetType:"ais.sortBy"})),vs=F("Stats"),bn=Bi(r({stats:function(e,t,r,n){return(n&&e!==r?"".concat(r.toLocaleString()," relevant results sorted out of ").concat(e.toLocaleString()," found in "):"".concat(e.toLocaleString()," results found in ")).concat(t.toLocaleString(),"ms")}})(function(e){var t=e.className,t=void 0===t?"":t,r=e.areHitsSorted,n=e.nbHits,i=e.nbSortedHits,o=e.processingTimeMS,e=e.translate;return d.createElement("div",{className:j(vs(""),t)},d.createElement("span",{className:vs("text")},e("stats",n,o,i,r)))}),{$$widgetType:"ais.stats"}),gs=F("ToggleRefinement"),Vi=(ds.defaultProps={className:""},i(ds,{$$widgetType:"ais.toggleRefinement"})),xs=["children","className"];function ws(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}var Os=F("DynamicWidgets");function Rs(e){var t=e.children,r=e.className,e=ws(e,xs);return d.createElement("div",{className:j(Os(""),r)},d.createElement(fr,e,t))}E=Rs;e.Breadcrumb=xo,e.ClearRefinements=Ko,e.Configure=B,e.CurrentRefinements=bt,e.DynamicWidgets=Rs,e.ExperimentalConfigureRelatedItems=ht,e.ExperimentalDynamicWidgets=E,e.HierarchicalMenu=v,e.Highlight=qa,e.Hits=la,e.HitsPerPage=N,e.Index=function(t){var r=t.indexName;return d.createElement(L,null,function(e){return d.createElement(Or,mr({contextValue:e,indexId:r},t))})},e.InfiniteHits=vn,e.InstantSearch=ft,e.Menu=fa,e.MenuSelect=dn,e.NumericMenu=Tn,e.Pagination=Kn,e.Panel=wo,e.PoweredBy=S,e.RangeInput=ri,e.RangeSlider=function(){return Eu},e.RatingMenu=du,e.RefinementList=ni,e.RelevantSort=Ri,e.ScrollTo=P,e.SearchBox=Oi,e.Snippet=cs,e.SortBy=_i,e.Stats=bn,e.ToggleRefinement=Vi,e.getInsightsAnonymousUserToken=function(){for(var e="_ALGOLIA",t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
3
3
|
//# sourceMappingURL=Dom.min.js.map
|