1import{_ as Ao}from"./HeadingType.vue.1146a9d9.js";import{_ as To}from"./AnchorLink.vue.e3e3c86d.js";import{e as E,f as ce,q as N,h as V,j as re,A as B,k as ee,B as ae,F as Le,i as Ve,a0 as ci,z as I,a4 as $e,p as zr,U as Ho,s as we,a7 as Lo,a8 as Do,_ as Co,d as No,r as ct,c as fi,w as Wo,u as J,n as en,y as ft,a2 as Mo,a3 as Uo,W as Ot,H as ko,I as Qo}from"./swiper-vue.d06afa39.js";import{h as Ya,a as qo,f as Bo,b as Vo}from"./entry.ad64c700.js";import{_ as Ko}from"./ListPagination.dde0e64c.js";import zo from"./icon-chevron-up.f31881ed.js";import Jo from"./icon-close.3a1d27ca.js";import{c as Go}from"./helper.9024b3e4.js";import{g as Bn}from"./_commonjsHelpers.725317a4.js";import"./icon-arrow-right-list-item.a4c93569.js";const Yo={class:"list-card-result"},Xo={class:"list-card-result__content"},Zo={key:0,class:"list-card-result__type"},eu={key:1,class:"list-card-result__title"},tu={key:2,class:"list-card-result__subline"},ru=["innerHTML"],nu={key:4,class:"list-card-result__breadcrumb"},iu={__name:"ListCardResult",props:{blok:{type:Object,required:!0}},setup(e){return(t,r)=>{const n=To;return E(),ce("div",Yo,[e.blok.full_slug?(E(),N(n,{key:0,to:e.blok.full_slug,class:"list-card-result__link","aria-label":e.blok.headline?`Go to ${e.blok.headline}`:"Go to link"},null,8,["to","aria-label"])):V("",!0),re("div",Xo,[e.blok.type?(E(),ce("span",Zo,B(e.blok.type),1)):V("",!0),e.blok.headline?(E(),ce("div",eu,[ee(t.$slots,"title",{},()=>[ae(B(e.blok.headline),1)],!0)])):V("",!0),e.blok.description?(E(),ce("p",tu,B(e.blok.description),1)):e.blok.bio?(E(),ce("div",{key:3,class:"list-card-result__subline",innerHTML:e.blok.bio.substring(0,200)+"..."},null,8,ru)):V("",!0),e.blok.breadcrumb?(E(),ce("ul",nu,[(E(!0),ce(Le,null,Ve(e.blok.breadcrumb,(i,a)=>(E(),ce("li",{key:a},B(i),1))),128))])):V("",!0)])])}}},au=Ya(iu,[["__scopeId","data-v-593076fa"]]),su=()=>qo().$algolia;function ou(e,t,r){if(!e)throw new Error("You need to provide `widgetName` in your data");var n=["ais-"+e];return t&&n.push("-"+t),r&&n.push("--"+r),n.join("")}var q=function(e){var t=e.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(r,n){var i=ou(t,r,n),a=this.classNames&&this.classNames[i];return a?[i,a].join(" "):i}}}};function Lt(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=t[r]!=null?t[r]:{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){uu(e,a,n[a])})}return e}function uu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cu=!1,fu=!0;function Sr(e){function t(r,n,i){if(typeof n=="object"&&(n.attrs||n.props||n.scopedSlots||n.on)){var a=Object.assign({},n,n.attrs,n.props,Object.keys(n.on||{}).reduce(function(s,o){return s["on"+o[0].toUpperCase()+o.slice(1)]=n.on[o],s},{}));return delete a.attrs,delete a.props,delete a.scopedSlots,delete a.on,ci(r,a,n.scopedSlots?Object.assign({default:function(){return i}},n.scopedSlots):i)}return ci(r,n,i)}return function(){return e.call(this,t)}}function Jr(e){return e.$slots.default&&e.$slots.default()}var li=new Set;function vt(e){li.has(e)||(li.add(e),console.warn(e))}var z=function(e,t){var r;e===void 0&&(e={});var n=e.connector;return t===void 0&&(t={}),(r={inject:{instantSearchInstance:{from:"$_ais_instantSearchInstance",default:function(){var i=this.$options._componentTag;throw new TypeError('It looks like you forgot to wrap your Algolia search component "<'+i+'>" inside of an "<ais-instant-search>" component.')}},getParentIndex:{from:"$_ais_getParentIndex",default:function(){var i=this;return function(){return i.instantSearchInstance.mainIndex}}}},data:function(){return{state:null}},created:function(){if(typeof n=="function"){if(this.factory=n(this.updateState,function(){}),this.widget=Lt(this.factory(this.widgetParams),t),this.getParentIndex().addWidgets([this.widget]),this.instantSearchInstance._initialResults&&!this.instantSearchInstance.started){if(typeof this.instantSearchInstance.__forceRender!="function")throw new Error("You are using server side rendering with <ais-instant-search> instead of <ais-instant-search-ssr>.");this.instantSearchInstance.__forceRender(this.widget,this.getParentIndex())}}else n!==!0&&vt(`You are using the InstantSearch widget mixin, but didn't provide a connector. 2While this is technically possible, and will give you access to the Helper, 3it's not the recommended way of making custom components. 4 5If you want to disable this message, pass { connector: true } to the mixin. 6 7Read more on using connectors: https://alg.li/vue-custom`)}}).beforeUnmount=function(){this.widget&&this.getParentIndex().removeWidgets([this.widget])},r.watch={widgetParams:{handler:function(i){this.state=null,this.getParentIndex().removeWidgets([this.widget]),this.widget=Lt(this.factory(i),t),this.getParentIndex().addWidgets([this.widget])},deep:!0}},r.methods={updateState:function(i,a){i===void 0&&(i={}),a||(this.state=i)}},r};function k(){}var wr=function(t,r){return t};function lu(e){return Object.prototype.toString.call(e).slice(8,-1)}function ne(e,t){if(e===void 0||typeof e!="function")throw new Error("The render function is not val
7id (received type ".concat(lu(e),`). 8 9`).concat(t))}function di(e){var t=e.helper,r=e.attributesToClear,n=r===void 0?[]:r,i=t.state.setPage(0);return i=n.reduce(function(a,s){return i.isNumericRefined(s)?a.removeNumericRefinement(s):i.isHierarchicalFacet(s)?a.removeHierarchicalFacetRefinement(s):i.isDisjunctiveFacet(s)?a.removeDisjunctiveFacetRefinement(s):i.isConjunctiveFacet(s)?a.removeFacetRefinement(s):a},i),n.indexOf("query")!==-1&&(i=i.setQuery("")),i}var du={"&":"&","<":"<",">":">",'"':""","'":"'"},Xa=/[&<>"']/g,hu=RegExp(Xa.source);function mu(e){return e&&hu.test(e)?e.replace(Xa,function(t){return du[t]}):e}var gu={"&":"&","<":"<",">":">",""":'"',"'":"'"},Za=/&(amp|quot|lt|gt|#39);/g,pu=RegExp(Za.source);function vu(e){return e&&pu.test(e)?e.replace(Za,function(t){return gu[t]}):e}function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function yu(e){return e===null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function bu(e){return wn(e)==="object"&&e!==null}function es(e){if(!bu(e)||yu(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(e)}function Su(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pn.apply(this,arguments)}function hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hi(Object(r),!0).forEach(function(n){ts(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ts(e,t,r){return t=wu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wu(e){var t=Pu(e,"string");return Dt(t)==="symbol"?t:String(t)}function Pu(e,t){if(Dt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qe={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},ve={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function rs(e){return mu(e).replace(new RegExp(Qe.highlightPreTag,"g"),ve.highlightPreTag).replace(new RegExp(Qe.highlightPostTag,"g"),ve.highlightPostTag)}function kr(e){return es(e)&&typeof e.value!="string"?Object.keys(e).reduce(function(t,r){return pt(pt({},t),{},ts({},r,kr(e[r])))},{}):Array.isArray(e)?e.map(kr):pt(pt({},e),{},{value:rs(e.value)})}function Vn(e){return e.__escaped===void 0&&(e=e.map(function(t){var r=Pn({},(Su(t),t));return r._highlightResult&&(r._highlightResult=kr(r._highlightResult)),r._snippetResult&&(r._snippetResult=kr(r._snippetResult)),r}),e.__escaped=!0),e}function Ru(e){return e.map(function(t){return pt(pt({},t),{},{highlighted:rs(t.highlighted)})})}function ns(e){var t=ve.highlightPreTag,r=ve.highlightPostTag;return e.map(function(n){return n.isHighlighted?t+n.value+r:n.value}).join("")}function Ou(e,t,r){return e.state.isHierarchicalFacet(t)?e.state.isHierarchicalFacetRefined(t,r):e.state.isConjunctiveFacet(t)?e.state.isFacetRefined(t,r):e.state.isDisjunctiveFacetRefined(t,r)}function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function $u(e,t){return xu(e)||Fu(e,t)||ju(e,t)||_u()}
9function _u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 10In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ju(e,t){if(e){if(typeof e=="string")return mi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mi(e,t)}}function mi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fu(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function xu(e){if(Array.isArray(e))return e}function Kn(e){var t=e.instantSearchInstance,r=e.helper,n=e.attribute,i=e.widgetType,a=function(){for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];var f=c[1],p=c[2],d=p===void 0?"Filter Applied":p,g=c[0].split(":"),m=$u(g,2),l=m[0],h=m[1],v=typeof n=="string"?n:n(f);c.length===1&&Rn(c[0])==="object"?t.sendEventToInsights(c[0]):l==="click"&&(c.length===2||c.length===3)&&(Ou(r,v,f)||t.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:i,eventType:l,eventModifier:h,payload:{eventName:d,index:r.getIndex(),filters:["".concat(v,":").concat(f)]},attribute:v}))};return a}function is(e){return btoa(encodeURIComponent(JSON.stringify(e)))}function Iu(e,t){return Hu(e)||Tu(e,t)||Au(e,t)||Eu()}function Eu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Au(e,t){if(e){if(typeof e=="string")return gi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gi(e,t)}}function gi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tu(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function Hu(e){if(Array.isArray(e))return e}function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function Lu(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);n++)r.push(e.slice(n*t,(n+1)*t));return r}function as(e){var t=e.index,r=e.widgetType;e.methodName;var n=e.args,i=e.instantSearchInstance;if(n.length===1&&On(n[0])==="object")return[n[0]];var a=n[0].split(":"),s=Iu(a,2),o=s[0],c=s[1],u=n[1],f=n[2];if(!u)return[];if((o==="click"||o==="conversion")&&!f)return[];var p=Array.isArray(u)?u:[u];if(p.length===0)return[];var d=p[0].__queryID,g=Lu(p),m=g.map(function(h){return h.map(function(v){return v.objectID})}),l=g.map(function(h){return h.map(function(v){return v.__position})});return o==="view"?i.status!=="idle"?[]:g.map(function(h,v){return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:o,payload:{eventName:f||"Hits Viewed",index:t,objectIDs:m[v]},hits:h,eventModifier:c}}):o==="click"?g.map(function(h,v){return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:o,payload:{eventName:f||"Hit Clicked",index:t,queryID:d,objectIDs:m[v],positions:l[v]},hits:h,eventModifier:c}}):o==="conversion"?g.map(function(h,v){return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:o,payload:{eventName:f||"Hit Converted",index:t,queryID:d,objectIDs:m[v]},hits:h,eventModifier:c}}):[]}function zn(e){var t=e.instantSearchInstance,r=e.index,n=e.widgetType,i={},a=void 0,s=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var p=as({widgetType:n,index:r,methodName:"sendEvent",args:u,instantSearchInstance:t});p.forEach(function(d){d.eventType==="click"&&d.eventModifier==="internal"&&i[d.eventType]||(i[d.eventType]=!0,t.sendEventToInsights(d))}),clearTimeout(a),a=setTimeout(function(){i={}},0)};return s}function ss(e){var t=e.index,r=e.widgetType,n=e.instantSearchInstance,i=function(){for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];var u=as({widgetType:r,index:t,methodName:"bindEvent",args:o,instantSearchInstance:n});return u.length?"data-insights-event=".concat(is(u)):""};return i}function nt(e){return e.$$type==="ais.index"}function $n(e,t){var r=e[t.getIndexId()]||{};
11t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(nt).forEach(function(n){return $n(e,n)})}var Du=Promise.resolve();function $t(e){var t=null,r=!1,n=function(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];t===null&&(t=Du.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,s)}))};return n.wait=function(){if(t===null)throw new Error("The deferred function should be called before calling `wait()`");return t},n.cancel=function(){t!==null&&(r=!0)},n}function Cu(e){var t=e.name,r=e.connector,n=r===void 0?!1:r;return["https://www.algolia.com/doc/api-reference/widgets/",t,"/js/",n?"#connector":""].join("")}function X(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(i){return Cu(i)}).join(", ");return function(i){return[i,"See documentation: ".concat(n)].filter(Boolean).join(` 12 13`)}}function Nu(e){return typeof e=="string"?e.replace(/^\\-/,"-"):e}function Ft(e){return typeof e=="number"&&e<0||typeof e=="string"?String(e).replace(/^-/,"\\-"):e}function it(e,t){for(var r,n=0;n<e.length;n++)if(r=e[n],t(r,n,e))return r}function Wu(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function Mu(e){if(e.transporter){var t=e.transporter,r=t.headers,n=t.queryParameters,i="x-algolia-application-id",a="x-algolia-api-key",s=r[i]||n[i],o=r[a]||n[a];return[s,o]}else return[e.applicationID,e.apiKey]}function os(e){var t=ve.highlightPostTag,r=ve.highlightPreTag,n=e.split(r),i=n.shift(),a=i?[{value:i,isHighlighted:!1}]:[];return n.forEach(function(s){var o=s.split(t);a.push({value:o[0],isHighlighted:!0}),o[1]!==""&&a.push({value:o[1],isHighlighted:!1})}),a}var Uu=new RegExp(/\w/i);function ku(e,t){var r,n,i=e[t],a=((r=e[t+1])===null||r===void 0?void 0:r.isHighlighted)||!0,s=((n=e[t-1])===null||n===void 0?void 0:n.isHighlighted)||!0;return!Uu.test(vu(i.value))&&s===a?s:i.isHighlighted}function Pt(e,t){var r=Array.isArray(t)?t:t.split(".");return r.reduce(function(n,i){return n&&n[i]},e)}function tn(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a={type:t,attribute:r,name:n,escapedValue:Ft(n)},s=it(i,function(g){return g.name===r}),o;if(t==="hierarchical"){for(var c=e.getHierarchicalFacetByName(r),u=n.split(c.separator),f=function(m){return function(l){return m[l]}},p=function(m){s=s&&s.data&&it(Object.keys(s.data).map(f(s.data)),function(l){return l.name===u[m]})},d=0;s!==void 0&&d<u.length;++d)p(d);o=s&&s.count}else o=s&&s.data&&s.data[a.name];return o!==void 0&&(a.count=o),s&&s.exhaustive!==void 0&&(a.exhaustive=s.exhaustive),a}function Jn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=[],i=t.facetsRefinements,a=i===void 0?{}:i,s=t.facetsExcludes,o=s===void 0?{}:s,c=t.disjunctiveFacetsRefinements,u=c===void 0?{}:c,f=t.hierarchicalFacetsRefinements,p=f===void 0?{}:f,d=t.numericRefinements,g=d===void 0?{}:d,m=t.tagRefinements,l=m===void 0?[]:m;return Object.keys(a).forEach(function(h){var v=a[h];v.forEach(function(b){n.push(tn(t,"facet",h,b,e.facets))})}),Object.keys(o).forEach(function(h){var v=o[h];v.forEach(function(b){n.push({type:"exclude",attribute:h,name:b,exclude:!0})})}),Object.keys(u).forEach(function(h){var v=u[h];v.forEach(function(b){n.push(tn(t,"disjunctive",h,Nu(b),e.disjunctiveFacets))})}),Object.keys(p).forEach(function(h){var v=p[h];v.forEach(function(b){n.push(tn(t,"hierarchical",h,b,e.hierarchicalFacets))})}),Object.keys(g).forEach(function(h){var v=g[h];Object.keys(v).forEach(function(b){var y=b,w=v[y],P=Array.isArray(w)?w:[w];P.forEach(function(R){n.push({type:"numeric",attribute:h,name:"".concat(R),numericValue:R,operator:y})})})}),l.forEach(function(h){n.push({type:"tag",attribute:"_tags",name:h})}),r&&t.query&&t.query.trim()&&n.push({attribute:"query",type:"query",name:t.query,query:t.query}),n}function Qu(e,t){var r,n=(r=e.getWidgetRenderState)===null||r===void 0?void 0:r.call(e,t),i=null;if(n&&n.widgetParams){var a=n.widgetParams;a.attribute?i=a.attribute:Array.isArray(a.attributes)&&(i=a.attributes[0])}
13if(typeof i!="string")throw new Error(`Could not find the attribute of the widget: 14 15`.concat(JSON.stringify(e),` 16 17Please check whether the widget's getWidgetRenderState returns widgetParams.attribute correctly.`));return i}function Ct(e){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(e)}function pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pi(Object(r),!0).forEach(function(n){qu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qu(e,t,r){return t=Bu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bu(e){var t=Vu(e,"string");return Ct(t)==="symbol"?t:String(t)}function Vu(e,t){if(Ct(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ct(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function us(e,t,r){return e.map(function(n,i){return vi(vi({},n),{},{__position:r*t+i+1})})}function Nt(e){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(e)}function yi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yi(Object(r),!0).forEach(function(n){Ku(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ku(e,t,r){return t=zu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zu(e){var t=Ju(e,"string");return Nt(t)==="symbol"?t:String(t)}function Ju(e,t){if(Nt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cs(e,t){return t?e.map(function(r){return bi(bi({},r),{},{__queryID:t})}):e}function Si(e){return e!==Object(e)}function Pr(e,t){if(e===t)return!0;if(Si(e)||Si(t)||typeof e=="function"||typeof t=="function")return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(!(i in t)||!Pr(e[i],t[i]))return!1}return!0}function K(e){return typeof e=="number"&&isFinite(e)}function fs(e,t){t(e),e.getWidgets().forEach(function(r){nt(r)&&fs(r,t)})}function Gn(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function Wt(e){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(e)}var Gu=["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"];function wi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
17t%2?wi(Object(r),!0).forEach(function(n){Yu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yu(e,t,r){return t=Xu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xu(e){var t=Zu(e,"string");return Wt(t)==="symbol"?t:String(t)}function Zu(e,t){if(Wt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ec(e,t){if(e==null)return{};var r=tc(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tc(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var rc=function(t,r){r.facets,r.disjunctiveFacets,r.facetsRefinements,r.facetsExcludes,r.disjunctiveFacetsRefinements,r.numericRefinements,r.tagRefinements,r.hierarchicalFacets,r.hierarchicalFacetsRefinements,r.ruleContexts;var n=ec(r,Gu);return t.setQueryParameters(n)},nc=function(t,r){return r.facets.reduce(function(n,i){return n.addFacet(i)},t)},ic=function(t,r){return r.disjunctiveFacets.reduce(function(n,i){return n.addDisjunctiveFacet(i)},t)},ac=function(t,r){return t.setQueryParameters({hierarchicalFacets:r.hierarchicalFacets.reduce(function(n,i){var a=Wu(n,function(o){return o.name===i.name});if(a===-1)return n.concat(i);var s=n.slice();return s.splice(a,1,i),s},t.hierarchicalFacets)})},sc=function(t,r){return r.tagRefinements.reduce(function(n,i){return n.addTagRefinement(i)},t)},oc=function(t,r){return t.setQueryParameters({facetsRefinements:qe(qe({},t.facetsRefinements),r.facetsRefinements)})},uc=function(t,r){return t.setQueryParameters({facetsExcludes:qe(qe({},t.facetsExcludes),r.facetsExcludes)})},cc=function(t,r){return t.setQueryParameters({disjunctiveFacetsRefinements:qe(qe({},t.disjunctiveFacetsRefinements),r.disjunctiveFacetsRefinements)})},fc=function(t,r){return t.setQueryParameters({numericRefinements:qe(qe({},t.numericRefinements),r.numericRefinements)})},lc=function(t,r){return t.setQueryParameters({hierarchicalFacetsRefinements:qe(qe({},t.hierarchicalFacetsRefinements),r.hierarchicalFacetsRefinements)})},dc=function(t,r){var n=Gn([].concat(t.ruleContexts).concat(r.ruleContexts).filter(Boolean));return n.length>0?t.setQueryParameters({ruleContexts:n}):t},At=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce(function(i,a){var s=lc(i,a),o=ac(s,a),c=sc(o,a),u=fc(c,a),f=cc(u,a),p=uc(f,a),d=oc(p,a),g=ic(d,a),m=dc(g,a),l=nc(m,a);return rc(l,a)})};function hc(e){return vc(e)||pc(e)||gc(e)||mc()}function mc(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gc(e,t){if(e){if(typeof e=="string")return _n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _n(e,t)}}function pc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vc(e){if(Array.isArray(e))return _n(e)}function _n(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pi(e){var t=e.start,r=t===void 0?0:t,n=e.end,i=e.step,a=i===void 0?1:i,s=a===0?1:a,o=Math.round((n-r)/s);return hc(Array(o)).map(function(c,u){return r+u*s})}function xt(e,t,r){var n=t.getHelper();return{uiState:r,helper:n,parent:t,instantSearchInstance:e,state:n.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:e.status==="stalled"},status:e.status,error:e.error}}function Ri(e,t){var r=t.getResults(),n=t.getHelper();return{helper:n,parent:t,instantSearchInstance:e,results:r,scopedResults:t.getScopedResults(),state:r?r._state:n.state,render
18State:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:e.status==="stalled"},status:e.status,error:e.error}}function yc(e){for(var t=e.getParent(),r=[e.getHelper().state];t!==null;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function Oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oi(Object(r),!0).forEach(function(n){bc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bc(e,t,r){return t=Sc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sc(e){var t=wc(e,"string");return Mt(t)==="symbol"?t:String(t)}function wc(e,t){if(Mt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ls(e){return e.some(function(t){return t.isHighlighted})?e.map(function(t,r){return $r($r({},t),{},{isHighlighted:!ku(e,r)})}):e.map(function(t){return $r($r({},t),{},{isHighlighted:!1})})}function ke(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fallback:function(){}},r=t.fallback;return typeof window>"u"?r():e({window})}function rn(e){return Array.isArray(e)?e:[e]}function $i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$i(Object(r),!0).forEach(function(n){Pc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pc(e,t,r){return t=Rc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rc(e){var t=Oc(e,"string");return yt(t)==="symbol"?t:String(t)}function Oc(e,t){if(yt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yt(e){"@babel/helpers - typeof";return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(e)}var _r=X({name:"dynamic-widgets",connector:!0}),$c=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,_r()),function(n){var i=n.widgets,a=n.maxValuesPerFacet,s=a===void 0?20:a,o=n.facets,c=o===void 0?["*"]:o,u=n.transformItems,f=u===void 0?function(g){return g}:u,p=n.fallbackWidget;if(!(i&&Array.isArray(i)&&i.every(function(g){return yt(g)==="object"})))throw new Error(_r("The `widgets` option expects an array of widgets."));if(!(Array.isArray(c)&&c.length<=1&&(c[0]==="*"||c[0]===void 0)))throw new Error(_r('The `facets` option only accepts [] or ["*"], you passed '.concat(JSON.stringify(c))));var d=new Map;return{$$type:"ais.dynamicWidgets",init:function(m){i.forEach(function(l){var h=Qu(l,m);d.set(h,{widget:l,isMounted:!1})}),t(lt(lt({},this.getWidgetRenderState(m)),{},{instantSearchInstance:m.instantSearchInstance}),!0)},render:function(m){var l=m.parent,h=this.getWidgetRenderState(m),v=[],b=[];p&&h.attributesToRender.forEach(function(y){if(!d.has(y)){var w=p({attribute:y});d.set(y,{widget:w,isMounted:!1})}}),d.forEach(function(y,w){var P=y.widget,R=y.isMounted,S=h.attributesToRender.indexOf(w)>-1;!R&&S?(b.push(P),d.set(w,{widget:P,isMounted:!0})):R&&!S&&(v.push(P),d.set(w,{widget:P,isMounted:!1}))}),l.addWidgets(b),setTimeout(function(){return l.removeWidgets(v)},0),t(lt(lt({},h),{},{instantSearchInstance:m.instantSearchInstance}),!1)},dispose:function(m){var l=m.parent,h=[];d.forEach(function(v){var b=v.widget,y=v.isMounted;y&&h.push(b)}),l.removeWidgets(h),r()},getWidgetSearchParameters:function(m){return c.reduce(function(l,h){return l.addFacet(h)},m.setQueryParameters({maxValuesPerFacet:Math.max(s||0,m.maxValuesPerFacet||0)}))},getRenderState:function(m,l){return lt(lt({},m),{},{dynamicWidgets:this.getWidgetRenderState(l)})},getWidgetRenderState:function(m){var l,h,v,b,y=m.results;if(m.state,!y)return{attributesToRender:[],widgetParams:n};var w=f((l=(h=y.renderingContent)===null||h===void 0||(v=h.facetOrdering)===null||v===void 0||(b=v.facets)===null||b===void 0?void 0:b.order)!==null&&l!==void 0?l:[],{results:y});if(!Array.isArray(w))throw new Error(_r("The `transformItems` option expects a function that returns an Array."));return{attributesToRender:w,widgetParams:n}}}}};const _c=$c;function Ut(e){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut(e)}function jc(e){return Ec(e)||Ic(e)||xc(e)||Fc()}function Fc(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xc(e,t){if(e){if(typeof e=="string")return jn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jn(e,t)}}function Ic(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ec(e){if(Array.isArray(e))return jn(e)}function jn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
19t%2?_i(Object(r),!0).forEach(function(n){Ac(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_i(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ac(e,t,r){return t=Tc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tc(e){var t=Hc(e,"string");return Ut(t)==="symbol"?t:String(t)}function Hc(e,t){if(Ut(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ut(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ji=X({name:"clear-refinements",connector:!0}),Lc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,ji()),function(n){var i=n||{},a=i.includedAttributes,s=a===void 0?[]:a,o=i.excludedAttributes,c=o===void 0?["query"]:o,u=i.transformItems,f=u===void 0?function(m){return m}:u;if(n&&n.includedAttributes&&n.excludedAttributes)throw new Error(ji("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var p={refine:k,createURL:function(){return""},attributesToClear:[]},d=function(){return p.refine()},g=function(){return p.createURL()};return{$$type:"ais.clearRefinements",init:function(l){var h=l.instantSearchInstance;t(dt(dt({},this.getWidgetRenderState(l)),{},{instantSearchInstance:h}),!0)},render:function(l){var h=l.instantSearchInstance;t(dt(dt({},this.getWidgetRenderState(l)),{},{instantSearchInstance:h}),!1)},dispose:function(){r()},getRenderState:function(l,h){return dt(dt({},l),{},{clearRefinements:this.getWidgetRenderState(h)})},getWidgetRenderState:function(l){var h=l.createURL,v=l.scopedResults,b=l.results;p.attributesToClear=v.reduce(function(w,P){return w.concat(Dc({scopedResult:P,includedAttributes:s,excludedAttributes:c,transformItems:f,results:b}))},[]),p.refine=function(){p.attributesToClear.forEach(function(w){var P=w.helper,R=w.items;P.setState(di({helper:P,attributesToClear:R})).search()})},p.createURL=function(){return h(At.apply(void 0,jc(p.attributesToClear.map(function(w){var P=w.helper,R=w.items;return di({helper:P,attributesToClear:R})}))))};var y=p.attributesToClear.some(function(w){return w.items.length>0});return{canRefine:y,hasRefinements:y,refine:d,createURL:g,widgetParams:n}}}}};function Dc(e){var t=e.scopedResult,r=e.includedAttributes,n=e.excludedAttributes,i=e.transformItems,a=e.results,s=r.indexOf("query")!==-1||n.indexOf("query")===-1;return{helper:t.helper,items:i(Gn(Jn(t.results,t.helper.state,s).map(function(o){return o.attribute}).filter(function(o){return r.length===0||r.indexOf(o)!==-1}).filter(function(o){return o==="query"&&s||n.indexOf(o)===-1})),{results:a})}}const Cc=Lc;function kt(e){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kt(e)}function Nc(e){return kc(e)||Uc(e)||Mc(e)||Wc()}function Wc(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mc(e,t){if(e){if(typeof e=="string")return Fn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fn(e,t)}}function Uc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kc(e){if(Array.isArray(e))return Fn(e)}function Fn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
20t%2?Fi(Object(r),!0).forEach(function(n){Qc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qc(e,t,r){return t=qc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qc(e){var t=Bc(e,"string");return kt(t)==="symbol"?t:String(t)}function Bc(e,t){if(kt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xi=X({name:"current-refinements",connector:!0}),Vc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,xi()),function(n){if((n||{}).includedAttributes&&(n||{}).excludedAttributes)throw new Error(xi("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var i=n||{},a=i.includedAttributes,s=i.excludedAttributes,o=s===void 0?["query"]:s,c=i.transformItems,u=c===void 0?function(f){return f}:c;return{$$type:"ais.currentRefinements",init:function(p){var d=p.instantSearchInstance;t(ht(ht({},this.getWidgetRenderState(p)),{},{instantSearchInstance:d}),!0)},render:function(p){var d=p.instantSearchInstance;t(ht(ht({},this.getWidgetRenderState(p)),{},{instantSearchInstance:d}),!1)},dispose:function(){r()},getRenderState:function(p,d){return ht(ht({},p),{},{currentRefinements:this.getWidgetRenderState(d)})},getWidgetRenderState:function(p){var d=p.results,g=p.scopedResults,m=p.createURL,l=p.helper;function h(){return d?g.reduce(function(b,y){return b.concat(u(Ii({results:y.results,helper:y.helper,indexId:y.indexId,includedAttributes:a,excludedAttributes:o}),{results:d}))},[]):u(Ii({results:{},helper:l,indexId:l.state.index,includedAttributes:a,excludedAttributes:o}),{results:d})}var v=h();return{items:v,canRefine:v.length>0,refine:function(y){return hs(l,y)},createURL:function(y){return m(ds(l.state,y))},widgetParams:n}}}}};function Ii(e){var t=e.results,r=e.helper,n=e.indexId,i=e.includedAttributes,a=e.excludedAttributes,s=(i||[]).indexOf("query")!==-1||(a||[]).indexOf("query")===-1,o=i?function(u){return i.indexOf(u.attribute)!==-1}:function(u){return a.indexOf(u.attribute)===-1},c=Jn(t,r.state,s).map(zc).filter(o);return c.reduce(function(u,f){return[].concat(Nc(u.filter(function(p){return p.attribute!==f.attribute})),[{indexName:r.state.index,indexId:n,attribute:f.attribute,label:f.attribute,refinements:c.filter(function(p){return p.attribute===f.attribute}).sort(function(p,d){return p.type==="numeric"?p.value-d.value:0}),refine:function(d){return hs(r,d)}}])},[])}function ds(e,t){switch(e=e.resetPage(),t.type){case"facet":return e.removeFacetRefinement(t.attribute,String(t.value));case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,String(t.value));case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,String(t.value));case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,String(t.value));case"tag":return e.removeTagRefinement(String(t.value));case"query":return e.setQueryParameter("query","");default:return e}}function hs(e,t){e.setState(ds(e.state,t)).search()}function Kc(e){switch(e){case">=":return"â¥";case"<=":return"â¤";default:return e}}function zc(e){var t=Jc(e),r=e.operator?"".concat(Kc(e.operator)," ").concat(e.name):e.name,n={attribute:e.attribute,type:e.type,value:t,label:r};return e.operator!==void 0&&(n.operator=e.operator),e.count!==void 0&&(n.count=e.count),e.exhaustive!==void 0&&(n.exhaustive=e.exhaustive),n}function Jc(e){return e.type==="numeric"?Number(e.name):"escapedValue"in e?e.escapedValue:e.name}const Gc=Vc;function Qt(e){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}var Yc=["name","escapedValue","data","path"];function Ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
20t%2?Ei(Object(r),!0).forEach(function(n){Dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ei(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dr(e,t,r){return t=Xc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xc(e){var t=Zc(e,"string");return Qt(t)==="symbol"?t:String(t)}function Zc(e,t){if(Qt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ef(e,t){if(e==null)return{};var r=tf(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tf(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function rf(e,t){return of(e)||sf(e,t)||af(e,t)||nf()}function nf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function af(e,t){if(e){if(typeof e=="string")return Ai(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ai(e,t)}}function Ai(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sf(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function of(e){if(Array.isArray(e))return e}var nn=X({name:"hierarchical-menu",connector:!0}),Ti=["name:asc"],uf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,nn()),function(n){var i=n||{},a=i.attributes,s=i.separator,o=s===void 0?" > ":s,c=i.rootPath,u=c===void 0?null:c,f=i.showParentLevel,p=f===void 0?!0:f,d=i.limit,g=d===void 0?10:d,m=i.showMore,l=m===void 0?!1:m,h=i.showMoreLimit,v=h===void 0?20:h,b=i.sortBy,y=b===void 0?Ti:b,w=i.transformItems,P=w===void 0?function(L){return L}:w;if(!a||!Array.isArray(a)||a.length===0)throw new Error(nn("The `attributes` option expects an array of strings."));if(l===!0&&v<=g)throw new Error(nn("The `showMoreLimit` option must be greater than `limit`."));var R=rf(a,1),S=R[0],O,$=function(){};function _(){$()}var A,W=!1;function C(L,F){return function(){W=!W,F.render(L)}}function T(){return W?v:g}function H(L){return L.slice(0,T()).map(function(F){var j=F.name,D=F.escapedValue,M=F.data;F.path;var U=ef(F,Yc),Q=me(me({},U),{},{value:D,label:j,data:null});return Array.isArray(M)&&(Q.data=H(M)),Q})}return{$$type:"ais.hierarchicalMenu",init:function(F){var j=F.instantSearchInstance;t(me(me({},this.getWidgetRenderState(F)),{},{instantSearchInstance:j}),!0)},render:function(F){var j=F.instantSearchInstance;$=C(F,this),t(me(me({},this.getWidgetRenderState(F)),{},{instantSearchInstance:j}),!1)},dispose:function(F){var j=F.state;return r(),j.removeHierarchicalFacet(S).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(F,j){return me(me({},F),{},{hierarchicalMenu:me(me({},F.hierarchicalMenu),{},Dr({},S,this.getWidgetRenderState(j)))})},getWidgetRenderState:function(F){var j=F.results,D=F.state,M=F.createURL,U=F.instantSearchInstance,Q=F.helper,se=[],ie=!1;function be(Ie){return M(D.resetPage().toggleFacetRefinement(S,Ie))}if(O||(O=Kn({instantSearchInstance:U,helper:Q,attribute:function(Fe){var Rt=Fe.split(o).length-1;return a[Rt]},widgetType:this.$$type})),A||(A=function(Fe){O("click:internal",Fe),Q.toggleFacetRefinement(S,Fe).search()}),j){var de=j.getFacetValues(S,{sortBy:y,facetOrdering:y===Ti}),Se=de&&!Array.isArray(de)&&de.data?de.data:[],he=(D.maxValuesPerFacet||0)>T()?Se.length<=T():Se.length<T();ie=l&&(W||!he),se=P(H(Se),{results:j})}return{items:se,refine:A,canRefine:se.length>0,createURL:be,sendEvent:O,widgetParams:n,isShowingMore:W,toggleShowMore:_,canToggleShowMore:ie}},getWidgetUiState:function(F,j){var D=j.searchParameters,M=D.getHierarchicalFacetBreadcrumb(S);return M.length?me(me({},F),{},{hierarchicalMenu:me(me({},F.hierarchicalMenu),{},Dr({},S,M))}):F},getWidgetSearchParameters:function(F,j){var D=j.uiState,M=D.hierarchicalMenu&&D.hierarchicalMenu[S];if(F.isConjunctiveFacet(S)||F.isDisjunctiveFacet(S))return F;F.isHierarchicalFacet(S)&&F.getHierarchicalFacetByName(S);var U=F.removeHierarchicalFacet(S).addHierarchicalFacet({name:S,attributes:a,separator:o,rootPath:u,showParentLevel:p}),Q=U.maxValuesPerFacet||0,se=Math.max(Q,l?v:g),ie=U.setQueryParameter("maxValuesPerFacet",se);return M?ie.addHierarchicalFacetRefinement(S,M.join(o)):ie.setQueryParameters({hierarchicalFacetsRefinements:me(me({},ie.hierarchicalFacetsRefinements),{},Dr({},S,[]))})}}}};const cf=uf;function qt(e){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(e)}function Hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
21t%2?Hi(Object(r),!0).forEach(function(n){ms(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ms(e,t,r){return t=ff(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ff(e){var t=lf(e,"string");return qt(t)==="symbol"?t:String(t)}function lf(e,t){if(qt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var df=X({name:"hits",connector:!0}),hf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,df()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,o=i.transformItems,c=o===void 0?function(p){return p}:o,u,f;return{$$type:"ais.hits",init:function(d){t(ze(ze({},this.getWidgetRenderState(d)),{},{instantSearchInstance:d.instantSearchInstance}),!0)},render:function(d){var g=this.getWidgetRenderState(d);t(ze(ze({},g),{},{instantSearchInstance:d.instantSearchInstance}),!1),g.sendEvent("view:internal",g.hits)},getRenderState:function(d,g){return ze(ze({},d),{},{hits:this.getWidgetRenderState(g)})},getWidgetRenderState:function(d){var g=d.results,m=d.helper,l=d.instantSearchInstance;if(u||(u=zn({instantSearchInstance:l,index:m.getIndex(),widgetType:this.$$type})),f||(f=ss({index:m.getIndex(),widgetType:this.$$type,instantSearchInstance:l})),!g)return{hits:[],results:void 0,sendEvent:u,bindEvent:f,widgetParams:n};s&&g.hits.length>0&&(g.hits=Vn(g.hits));var h=us(g.hits,g.page,g.hitsPerPage),v=cs(h,g.queryID),b=c(v,{results:g});return{hits:b,results:g,sendEvent:u,bindEvent:f,widgetParams:n}},dispose:function(d){var g=d.state;return r(),s?g.setQueryParameters(Object.keys(Qe).reduce(function(m,l){return ze(ze({},m),{},ms({},l,void 0))},{})):g},getWidgetSearchParameters:function(d){return s?d.setQueryParameters(Qe):d}}}};const mf=hf;function Bt(e){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(e)}function Li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Li(Object(r),!0).forEach(function(n){gf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gf(e,t,r){return t=pf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pf(e){var t=vf(e,"string");return Bt(t)==="symbol"?t:String(t)}function vf(e,t){if(Bt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yf=function(t,r){return r.map(function(n){var i=it(t,function(a){return a.objectID===n});if(typeof i>"u")throw new Error('Could not find objectID "'.concat(n,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return i})},bf=function(t){var r=Gn(t.map(function(i){return i.__queryID}));if(r.length>1)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var n=r[0];if(typeof n!="string")throw new Error("Could not infer `queryID`. Ensure InstantSearch `clickAnalytics: true` was added with the Configure widget.\n\nSee: https://alg.li/lNiZZ7");return n},Sf=function(t){return t.map(function(r){return r.__position})},wf=function(t){var r=t.method,n=t.results,i=t.hits,a=t.objectIDs,s=n.index,o=yf(i,a),c=bf(o);switch(r){case"clickedObjectIDsAfterSearch":{var u=Sf(o);return{index:s,queryID:c,objectIDs:a,positions:u}}case"convertedObjectIDsAfterSearch":return{index:s,queryID:c,objectIDs:a};default:throw new Error('Unsupported method passed to insights: "'.concat(r,'".'))}},Pf=function(t,r,n){return function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),o=1;o<a;o++)s[o-1]=arguments[o];var c=s[0];
21if(!t){var u=X({name:"instantsearch"});throw new Error(u("The `insightsClient` option has not been provided to `instantsearch`."))}if(!Array.isArray(c.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var f=wf({method:i,results:r,hits:n,objectIDs:c.objectIDs});t(i,Qr(Qr({},f),c))}};function gs(e){return function(t,r){return e(function(n,i){var a=n.results,s=n.hits,o=n.instantSearchInstance;if(a&&s&&o){var c=Pf(o.insightsClient,a,s);return t(Qr(Qr({},n),{},{insights:c}),i)}return t(n,i)},r)}}function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function Rf(e){var t=e.method,r=e.payload;if(xn(r)!=="object")throw new Error("The insights helper expects the payload to be an object.");var n;try{n=is(r)}catch{throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(t,'" data-insights-payload="').concat(n,'"')}function ps(e,t){return Rf({method:e,payload:t})}var Of=gs(mf);const $f=Of;function Vt(e){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(e)}function _f(e){return If(e)||xf(e)||Ff(e)||jf()}function jf(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ff(e,t){if(e){if(typeof e=="string")return In(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return In(e,t)}}function xf(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function If(e){if(Array.isArray(e))return In(e)}function In(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Di(Object(r),!0).forEach(function(n){Ef(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Di(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ef(e,t,r){return t=Af(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Af(e){var t=Tf(e,"string");return Vt(t)==="symbol"?t:String(t)}function Tf(e,t){if(Vt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jr=X({name:"hits-per-page",connector:!0}),Hf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,jr()),function(n){var i=n||{},a=i.items,s=i.transformItems,o=s===void 0?function(g){return g}:s;if(!Array.isArray(a))throw new Error(jr("The `items` option expects an array of objects."));var c=a,u=c.filter(function(g){return g.default===!0});if(u.length===0)throw new Error(jr("A default value must be specified in `items`."));if(u.length>1)throw new Error(jr("More than one default value is specified in `items`."));var f=u[0],p=function(m){var l=m.hitsPerPage;return c.map(function(h){return Ne(Ne({},h),{},{isRefined:Number(h.value)===Number(l)})})},d={getRefine:function(m){return function(l){return!l&&l!==0?m.setQueryParameter("hitsPerPage",void 0).search():m.setQueryParameter("hitsPerPage",l).search()}},createURLFactory:function(m){var l=m.state,h=m.createURL;return function(v){return h(l.resetPage().setQueryParameter("hitsPerPage",!v&&v!==0?void 0:v))}}};return{$$type:"ais.hitsPerPage",init:function(m){var l=m.state,h=m.instantSearchInstance,v=c.some(function(b){return Number(l.hitsPerPage)===Number(b.value)});v||(c=[{value:"",label:""}].concat(_f(c))),t(Ne(Ne({},this.getWidgetRenderState(m)),{},{instantSearchInstance:h}),!0)},render:function(m){var l=m.instantSearchInstance;t(Ne(Ne({},this.getWidgetRenderState(m)),{},{instantSearchInstance:l}),!1)},dispose:function(m){var l=m.state;return r(),l.setQueryParameter("hitsPerPage",void 0)},getRenderState:function(m,l){return Ne(Ne({},m),{},{hitsPerPage:this.getWidgetRenderState(l)})},getWidgetRenderState:function(m){var l=m.state,h=m.results,v=m.createURL,b=m.helper,y=h?h.nbHits>0:!1;return{items:o(p(l),{results:h}),refine:d.getRefine(b),createURL:d.createURLFactory({state:l,createURL:v}),hasNoResults:!y,canRefine:y,widgetParams:n}},getWidgetUiState:function(m,l){var h=l.searchParameters,v=h.hitsPerPage;return v===void 0||v===f.value?m:Ne(Ne({},m),{},{hitsPerPage:v})},getWidgetSearchParameters:function(m,l){var h=l.uiState;return m.setQueryParameters({hitsPerPage:h.hitsPerPage||f.value})}}}};const Lf=Hf;function Kt(e){"@babel/helpers - typeof";return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(e)}var Df=["page"],Cf=["clickAnalytics","userToken"];function Ci(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
22t%2?Ci(Object(r),!0).forEach(function(n){vs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ci(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vs(e,t,r){return t=Nf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nf(e){var t=Wf(e,"string");return Kt(t)==="symbol"?t:String(t)}function Wf(e,t){if(Kt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ni(e){return Qf(e)||kf(e)||Uf(e)||Mf()}function Mf(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uf(e,t){if(e){if(typeof e=="string")return En(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return En(e,t)}}function kf(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qf(e){if(Array.isArray(e))return En(e)}function En(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ys(e,t){if(e==null)return{};var r=qf(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qf(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Bf=X({name:"infinite-hits",connector:!0});function Wi(e){var t=e||{};t.page;var r=ys(t,Df);return r}function Fr(e){var t=e||{};t.clickAnalytics,t.userToken;var r=ys(t,Cf);return r}function Vf(){var e=null,t=null;return{read:function(n){var i=n.state;return Pr(t,Wi(i))?e:null},write:function(n){var i=n.state,a=n.hits;t=Wi(i),e=a}}}function Kf(e){return Object.keys(e).map(Number).sort(function(t,r){return t-r}).reduce(function(t,r){return t.concat(e[r])},[])}var zf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,Bf()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,o=i.transformItems,c=o===void 0?function(y){return y}:o,u=i.cache,f=u===void 0?Vf():u,p,d,g,m,l=function(w,P){var R=w.page,S=R===void 0?0:R,O=Object.keys(P).map(Number);return O.length===0?S:Math.min.apply(Math,[S].concat(Ni(O)))},h=function(w,P){var R=w.page,S=R===void 0?0:R,O=Object.keys(P).map(Number);return O.length===0?S:Math.max.apply(Math,[S].concat(Ni(O)))},v=function(w){return function(){w.overrideStateWithoutTriggeringChangeEvent(Ee(Ee({},w.state),{},{page:l(w.state,f.read({state:Fr(w.state)})||{})-1})).searchWithoutTriggeringOnStateChange()}},b=function(w){return function(){w.setPage(h(w.state,f.read({state:Fr(w.state)})||{})+1).search()}};return{$$type:"ais.infiniteHits",init:function(w){t(Ee(Ee({},this.getWidgetRenderState(w)),{},{instantSearchInstance:w.instantSearchInstance}),!0)},render:function(w){var P=w.instantSearchInstance,R=this.getWidgetRenderState(w);t(Ee(Ee({},R),{},{instantSearchInstance:P}),!1),g("view:internal",R.currentPageHits)},getRenderState:function(w,P){return Ee(Ee({},w),{},{infiniteHits:this.getWidgetRenderState(P)})},getWidgetRenderState:function(w){var P=w.results,R=w.helper,S=w.parent,O=w.state,$=w.instantSearchInstance,_,A=[],W=S.getPreviousState()||O,C=f.read({state:Fr(W)})||{};if(!P)p=v(R),d=b(R),g=zn({instantSearchInstance:$,index:R.getIndex(),widgetType:this.$$type}),m=ss({index:R.getIndex(),widgetType:this.$$type,instantSearchInstance:$}),_=W.page===void 0||l(W,C)===0;else{var T,H,L,F=W.page,j=F===void 0?0:F;s&&P.hits.length>0&&(P.hits=Vn(P.hits));var D=us(P.hits,P.page,P.hitsPerPage),M=cs(D,P.queryID),U=c(M,{results:P}),Q=!1;fs($.mainIndex,function(de){!Q&&de.getWidgets().some(function(Se){var he=Se.$$type;return he==="ais.dynamicWidgets"})&&(Q=!0)});var se=!((T=P.disjunctiveFacets)!==null&&T!==void 0&&T.length)&&!((H=P.facets)!==null&&H!==void 0&&H.length)&&!((L=P.hierarchicalFacets)!==null&&L!==void 0&&L.length);C[j]===void 0&&!P.__isArtificial&&$.status==="idle"&&!(Q&&se)&&(C[j]=U,f.write({state:Fr(W),hits:C})),A=U,_=l(W,C)===0}var ie=Kf(C),be=P?P.nbPages<=h(W,C)+1:!0;return{hits:ie,currentPageHits:A,sendEvent:g,bindEvent:m,results:P,showPrevious:p,showMore:d,isFirstPage:_,isLastPage:be,widgetParams:n}},dispose:function(w){var P=w.state;r();var R=P.setQueryParameter("page",void 0);return s?R.setQueryParameters(Object.keys(Qe).reduce(function(S,O){return Ee(Ee({},S),{},vs({},O,void 0))},{})):R},getWidgetUiState:function(w,P){var R=P.searchParameters,S=R.page||0;return S?Ee(Ee({},w),{},{page:S+1}):w},getWidgetSearchParameters:function(w,P){var R=P.uiState,S=w;s&&(S=w.setQueryParameters(Qe));var O=R.page?R.page-1:0;return S.setQueryParameter("page",O)}}}};const Jf=zf;var Gf=gs(Jf);const Yf=Gf;var Xf=["name","escapedValue","path"];function zt(e){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(e)}function Zf(e,t){if(e==null)return{};var r=el(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function el(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Mi(e,t){return il(e)||nl(e,t)||rl(e,t)||tl()}
23function tl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rl(e,t){if(e){if(typeof e=="string")return Ui(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ui(e,t)}}function Ui(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nl(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function il(e){if(Array.isArray(e))return e}function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ki(Object(r),!0).forEach(function(n){Cr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cr(e,t,r){return t=al(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function al(e){var t=sl(e,"string");return zt(t)==="symbol"?t:String(t)}function sl(e,t){if(zt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var an=X({name:"menu",connector:!0}),Qi=["isRefined","name:asc"],ol=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,an()),function(n){var i=n||{},a=i.attribute,s=i.limit,o=s===void 0?10:s,c=i.showMore,u=c===void 0?!1:c,f=i.showMoreLimit,p=f===void 0?20:f,d=i.sortBy,g=d===void 0?Qi:d,m=i.transformItems,l=m===void 0?function(O){return O}:m;if(!a)throw new Error(an("The `attribute` option is required."));if(u===!0&&p<=o)throw new Error(an("The `showMoreLimit` option must be greater than `limit`."));var h,v,b,y=!1,w=function(){};function P(O,$){return function(){y=!y,$.render(O)}}function R(){w()}function S(){return y?p:o}return{$$type:"ais.menu",init:function($){var _=$.instantSearchInstance;t(ge(ge({},this.getWidgetRenderState($)),{},{instantSearchInstance:_}),!0)},render:function($){var _=$.instantSearchInstance;t(ge(ge({},this.getWidgetRenderState($)),{},{instantSearchInstance:_}),!1)},dispose:function($){var _=$.state;return r(),_.removeHierarchicalFacet(a).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function($,_){return ge(ge({},$),{},{menu:ge(ge({},$.menu),{},Cr({},a,this.getWidgetRenderState(_)))})},getWidgetRenderState:function($){var _=$.results,A=$.createURL,W=$.instantSearchInstance,C=$.helper,T=[],H=!1;if(h||(h=Kn({instantSearchInstance:W,helper:C,attribute:a,widgetType:this.$$type})),v||(v=function(D){return A(C.state.resetPage().toggleFacetRefinement(a,D))}),b||(b=function(D){var M=C.getHierarchicalFacetBreadcrumb(a),U=Mi(M,1),Q=U[0];h("click:internal",D||Q),C.toggleFacetRefinement(a,D||Q).search()}),$.results&&(w=P($,this)),_){var L=_.getFacetValues(a,{sortBy:g,facetOrdering:g===Qi}),F=L&&!Array.isArray(L)&&L.data?L.data:[];H=u&&(y||F.length>S()),T=l(F.slice(0,S()).map(function(j){var D=j.name,M=j.escapedValue;j.path;var U=Zf(j,Xf);return ge(ge({},U),{},{label:D,value:M})}),{results:_})}return{items:T,createURL:v,refine:b,sendEvent:h,canRefine:T.length>0,widgetParams:n,isShowingMore:y,toggleShowMore:R,canToggleShowMore:H}},getWidgetUiState:function($,_){var A=_.searchParameters,W=A.getHierarchicalFacetBreadcrumb(a),C=Mi(W,1),T=C[0];return T?ge(ge({},$),{},{menu:ge(ge({},$.menu),{},Cr({},a,T))}):$},getWidgetSearchParameters:function($,_){var A=_.uiState,W=A.menu&&A.menu[a];if($.isConjunctiveFacet(a)||$.isDisjunctiveFacet(a))return $;var C=$.removeHierarchicalFacet(a).addHierarchicalFacet({name:a,attributes:[a]}),T=C.maxValuesPerFacet||0,H=Math.max(T,u?p:o),L=C.setQueryParameter("maxValuesPerFacet",H);return W?L.addHierarchicalFacetRefinement(a,W):L.setQueryParameters({hierarchicalFacetsRefinements:ge(ge({},L.hierarchicalFacetsRefinements),{},Cr({},a,[]))})}}}};const bs=ol;function Jt(e){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(e)}function ul(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ss(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,o;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return a=u.done,u},e:function(u){s=!0,o=u},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(s)throw o}}}}function cl(e,t){return dl(e)||ll(e,t)||Ss(e,t)||fl()}
25function fl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ss(e,t){if(e){if(typeof e=="string")return qi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qi(e,t)}}function qi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ll(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function dl(e){if(Array.isArray(e))return e}function Bi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bi(Object(r),!0).forEach(function(n){It(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function It(e,t,r){return t=hl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hl(e){var t=ml(e,"string");return Jt(t)==="symbol"?t:String(t)}function ml(e,t){if(Jt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sn=X({name:"numeric-menu",connector:!0}),gl="ais.numericMenu",pl=function(t){var r=t.instantSearchInstance;return function(){if(arguments.length===1){r.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}},vl=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,sn()),function(n){var i=n||{},a=i.attribute,s=a===void 0?"":a,o=i.items,c=o===void 0?[]:o,u=i.transformItems,f=u===void 0?function(g){return g}:u;if(s==="")throw new Error(sn("The `attribute` option is required."));if(!c||c.length===0)throw new Error(sn("The `items` option expects an array of objects."));var p=function(m){return c.map(function(l){var h=l.start,v=l.end,b=l.label;return{label:b,value:encodeURI(JSON.stringify({start:h,end:v})),isRefined:ws(m,s,{start:h,end:v,label:b})}})},d={};return{$$type:gl,init:function(m){var l=m.instantSearchInstance;t(oe(oe({},this.getWidgetRenderState(m)),{},{instantSearchInstance:l}),!0)},render:function(m){var l=m.instantSearchInstance;t(oe(oe({},this.getWidgetRenderState(m)),{},{instantSearchInstance:l}),!1)},dispose:function(m){var l=m.state;return r(),l.clearRefinements(s)},getWidgetUiState:function(m,l){var h=l.searchParameters,v=h.getNumericRefinements(s),b=v["="]&&v["="][0];if(b||b===0)return oe(oe({},m),{},{numericMenu:oe(oe({},m.numericMenu),{},It({},s,"".concat(v["="])))});var y=v[">="]&&v[">="][0]||"",w=v["<="]&&v["<="][0]||"";return y===""&&w===""?m:oe(oe({},m),{},{numericMenu:oe(oe({},m.numericMenu),{},It({},s,"".concat(y,":").concat(w)))})},getWidgetSearchParameters:function(m,l){var h=l.uiState,v=h.numericMenu&&h.numericMenu[s],b=m.clearRefinements(s);if(!v)return b.setQueryParameters({numericRefinements:oe(oe({},b.numericRefinements),{},It({},s,{}))});var y=v.indexOf(":")===-1;if(y)return b.addNumericRefinement(s,"=",Number(v));var w=v.split(":").map(parseFloat),P=cl(w,2),R=P[0],S=P[1],O=K(R)?b.addNumericRefinement(s,">=",R):b,$=K(S)?O.addNumericRefinement(s,"<=",S):O;return $},getRenderState:function(m,l){return oe(oe({},m),{},{numericMenu:oe(oe({},m.numericMenu),{},It({},s,this.getWidgetRenderState(l)))})},getWidgetRenderState:function(m){var l=m.results,h=m.state,v=m.instantSearchInstance,b=m.helper,y=m.createURL;d.refine||(d.refine=function(_){var A=Vi(b.state,s,_);d.sendEvent("click:internal",_),b.setState(A).search()}),d.createURL||(d.createURL=function(_){return function(A){return y(Vi(_,s,A))}}),d.sendEvent||(d.sendEvent=pl({instantSearchInstance:v}));var w=l?l.nbHits===0:!0,P=p(h),R=!0,S=ul(P),O;try{for(S.s();!(O=S.n()).done;){var $=O.value;if($.isRefined&&decodeURI($.value)!=="{}"){R=!1;break}}}catch(_){S.e(_)}finally{S.f()}return{createURL:d.createURL(h),items:f(P,{results:l}),hasNoResults:w,canRefine:!(w&&R),refine:d.refine,sendEvent:d.sendEvent,widgetParams:n}}}}};function ws(e,t,r){var n=e.getNumericRefinements(t);return r.start!==void 0&&r.end!==void 0?r.start===r.end?tt(n,"=",r.start):tt(n,">=",r.start)&&tt(n,"<=",r.end):r.start!==void 0?tt(n,">=",r.start):r.end!==void 0?tt(n,"<=",r.end):r.start===void 0&&r.end===void 0?Object.keys(n).every(function(i){return(n[i]||[]).length===0}):!1}function Vi(e,t,r){var n=e,i=JSON.parse(decodeURI(r)),a=n.getNumericRefinements(t);if(i.start===void 0&&i.end===void 0)return n.removeNumericRefinement(t);if(ws(n,t,i)||(n=n.removeNumericRefinement(t)),i.start!==void 0&&i.end!==void 0){if(i.start>i.end)throw new Error("option.start should be > to option.end");if(i.start===i.end)return tt(a,"=",i.start)?n=n.removeNumericRefinement(t,"=",i.start):n=n.addNumericRefinement(t,"=",i.start),n}return i.start!==void 0&&(tt(a,">=",i.start)&&(n=n.removeNumericRefinement(t,">=",i.start)),n=n.addNumericRefinement(t,">=",i.start)),i.end!==void 0&&(tt(a,"<=",i.end)&&(n=n.removeNumericRefinement(t,"<=",i.end)),n=n.addNumericRefinement(t,"<=",i.end)),typeof n.page=="number"&&(n.page=0),n}function tt(e,t,r){return e[t]!==void 0&&e[t].includes(r)}const yl=vl;function Gt(e){"@babel/helpers - typeof";return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt(e)}function bl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ki(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,Ps(n.key),n)}}function Sl(e,t,r){return t&&Ki(e.prototype,t),r&&Ki(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function on(e,t,r){return t=Ps(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ps(e){var t=wl(e,"string");return Gt(t)==="symbol"?t:String(t)}function wl(e,t){if(Gt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pl=function(){function e(t){bl(this,e),on(this,"currentPage",void 0),on(this,"total",void 0),on(this,"padding",void 0),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}return Sl(e,[{key:"pages",value:function(){var r=this.total,n=this.currentPage,i=this.padding;if(r===0)return[0];var a=this.nbPagesDisplayed(i,r);if(a===r)return Pi({end:r});var s=this.calculatePaddingLeft(n,i,r,a),o=a-s,c=n-s,u=n+o;return Pi({start:c,end:u})}},{key:"nbPagesDisplayed",value:function(r,n){return Math.min(2*r+1,n)}},{key:"calculatePaddingLeft",value:function(r,n,i,a){return r<=n?r:r>=i-n?a-(i-r):n}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1||this.total===0}},{key:"isFirstPage",value:function(){return this.currentPage===0}}]),e}();const Rl=Pl;function Yt(e){"@babel/helpers - typeof";return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(e)}function zi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
26t%2?zi(Object(r),!0).forEach(function(n){Ol(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ol(e,t,r){return t=$l(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(e){var t=_l(e,"string");return Yt(t)==="symbol"?t:String(t)}function _l(e,t){if(Yt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jl=X({name:"pagination",connector:!0}),Fl=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,jl()),function(n){var i=n||{},a=i.totalPages,s=i.padding,o=s===void 0?3:s,c=new Rl({currentPage:0,total:0,padding:o}),u={};function f(p){var d=p.nbPages;return a!==void 0?Math.min(a,d):d}return{$$type:"ais.pagination",init:function(d){var g=d.instantSearchInstance;t(Je(Je({},this.getWidgetRenderState(d)),{},{instantSearchInstance:g}),!0)},render:function(d){var g=d.instantSearchInstance;t(Je(Je({},this.getWidgetRenderState(d)),{},{instantSearchInstance:g}),!1)},dispose:function(d){var g=d.state;return r(),g.setQueryParameter("page",void 0)},getWidgetUiState:function(d,g){var m=g.searchParameters,l=m.page||0;return l?Je(Je({},d),{},{page:l+1}):d},getWidgetSearchParameters:function(d,g){var m=g.uiState,l=m.page?m.page-1:0;return d.setQueryParameter("page",l)},getWidgetRenderState:function(d){var g=d.results,m=d.helper,l=d.state,h=d.createURL;u.refine||(u.refine=function(y){m.setPage(y),m.search()}),u.createURL||(u.createURL=function(y){return function(w){return h(y.setPage(w))}});var v=l.page||0,b=f(g||{nbPages:0});return c.currentPage=v,c.total=b,{createURL:u.createURL(l),refine:u.refine,canRefine:b>1,currentRefinement:v,nbHits:(g==null?void 0:g.nbHits)||0,nbPages:b,pages:g?c.pages():[],isFirstPage:c.isFirstPage(),isLastPage:c.isLastPage(),widgetParams:n}},getRenderState:function(d,g){return Je(Je({},d),{},{pagination:this.getWidgetRenderState(g)})}}}};const xl=Fl;function Xt(e){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(e)}function Ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ji(Object(r),!0).forEach(function(n){Nr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ji(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nr(e,t,r){return t=Il(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Il(e){var t=El(e,"string");return Xt(t)==="symbol"?t:String(t)}function El(e,t){if(Xt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mt(e,t){return Ll(e)||Hl(e,t)||Tl(e,t)||Al()}function Al(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tl(e,t){if(e){if(typeof e=="string")return Gi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gi(e,t)}}function Gi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hl(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}
27finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function Ll(e){if(Array.isArray(e))return e}var un=X({name:"range-input",connector:!0},{name:"range-slider",connector:!0}),Dl="ais.range";function Yi(e){var t=e.min,r=e.max,n=e.precision,i=Math.pow(10,n);return{min:t&&Math.floor(t*i)/i,max:r&&Math.ceil(r*i)/i}}var Cl=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,un()),function(n){var i=n||{},a=i.attribute,s=a===void 0?"":a,o=i.min,c=i.max,u=i.precision,f=u===void 0?0:u;if(!s)throw new Error(un("The `attribute` option is required."));if(K(o)&&K(c)&&o>c)throw new Error(un("The `max` option can't be lower than `min`."));var p=function(y){return Number(Number(y).toFixed(f))},d={from:function(y){return y.toLocaleString()},to:function(y){return p(y).toLocaleString()}},g=function(y,w,P,R){var S=y.state,O=w.min,$=w.max,_=S.getNumericRefinement(s,">=")||[],A=mt(_,1),W=A[0],C=S.getNumericRefinement(s,"<=")||[],T=mt(C,1),H=T[0],L=P===void 0||P==="",F=R===void 0||R==="",j=Yi({min:L?void 0:parseFloat(P),max:F?void 0:parseFloat(R),precision:f}),D=j.min,M=j.max,U;!K(o)&&O===D?U=void 0:K(o)&&L?U=o:U=D;var Q;!K(c)&&$===M?Q=void 0:K(c)&&F?Q=c:Q=M;var se=U===void 0,ie=K(O)&&O<=U,be=se||K(U)&&(!K(O)||ie),de=Q===void 0,Se=K(Q)&&$>=Q,he=de||K(Q)&&(!K($)||Se),Ie=W!==U,Fe=H!==Q;return(Ie||Fe)&&be&&he?(S=S.removeNumericRefinement(s),K(U)&&(S=S.addNumericRefinement(s,">=",U)),K(Q)&&(S=S.addNumericRefinement(s,"<=",Q)),S.resetPage()):null},m=function(y){return function(){if(arguments.length===1){y.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}};function l(b){var y;K(o)?y=o:K(b.min)?y=b.min:y=0;var w;return K(c)?w=c:K(b.max)?w=b.max:w=0,Yi({min:y,max:w,precision:f})}function h(b){var y=b.getNumericRefinement(s,">=")||[],w=mt(y,1),P=w[0],R=b.getNumericRefinement(s,"<=")||[],S=mt(R,1),O=S[0],$=K(P)?P:-1/0,_=K(O)?O:1/0;return[$,_]}function v(b,y){return function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[void 0,void 0],P=mt(w,2),R=P[0],S=P[1],O=g
27(b,y,R,S);O&&b.setState(O).search()}}return{$$type:Dl,init:function(y){t(pe(pe({},this.getWidgetRenderState(y)),{},{instantSearchInstance:y.instantSearchInstance}),!0)},render:function(y){t(pe(pe({},this.getWidgetRenderState(y)),{},{instantSearchInstance:y.instantSearchInstance}),!1)},getRenderState:function(y,w){return pe(pe({},y),{},{range:pe(pe({},y.range),{},Nr({},s,this.getWidgetRenderState(w)))})},getWidgetRenderState:function(y){var w=y.results,P=y.helper,R=y.instantSearchInstance,S=w&&w.disjunctiveFacets||[],O=it(S,function(C){return C.name===s}),$=O&&O.stats||{min:void 0,max:void 0},_=l($),A=h(P),W;return w?W=v(P,_):W=v(P,{min:void 0,max:void 0}),{refine:W,canRefine:_.min!==_.max,format:d,range:_,sendEvent:m(R),widgetParams:pe(pe({},n),{},{precision:f}),start:A}},dispose:function(y){var w=y.state;return r(),w.removeDisjunctiveFacet(s).removeNumericRefinement(s)},getWidgetUiState:function(y,w){var P=w.searchParameters,R=P.getNumericRefinements(s),S=R[">="],O=S===void 0?[]:S,$=R["<="],_=$===void 0?[]:$;return O.length===0&&_.length===0?y:pe(pe({},y),{},{range:pe(pe({},y.range),{},Nr({},s,"".concat(O,":").concat(_)))})},getWidgetSearchParameters:function(y,w){var P=w.uiState,R=y.addDisjunctiveFacet(s).setQueryParameters({numericRefinements:pe(pe({},y.numericRefinements),{},Nr({},s,{}))});K(o)&&(R=R.addNumericRefinement(s,">=",o)),K(c)&&(R=R.addNumericRefinement(s,"<=",c));var S=P.range&&P.range[s];if(!S||S.indexOf(":")===-1)return R;var O=S.split(":").map(parseFloat),$=mt(O,2),_=$[0],A=$[1];return K(_)&&(!K(o)||o<_)&&(R=R.removeNumericRefinement(s,">="),R=R.addNumericRefinement(s,">=",_)),K(A)&&(!K(c)||A<c)&&(R=R.removeNumericRefinement(s,"<="),R=R.addNumericRefinement(s,"<=",A)),R}}}};const Nl=Cl;function Zt(e){"@babel/helpers - typeof";return Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zt(e)}var Wl=["name","escapedValue"],Ml=["escapedValue","value"];function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xi(Object(r),!0).forEach(function(n){Et(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Et(e,t,r){return t=Ul(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ul(e){var t=kl(e,"string");return Zt(t)==="symbol"?t:String(t)}function kl(e,t){if(Zt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zi(e,t){if(e==null)return{};var r=Ql(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ql(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var xr=X({name:"refinement-list",connector:!0}),ea=["isRefined","count:desc","name:asc"],ql=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,xr()),function(n){var i=n||{},a=i.attribute,s=i.operator,o=s===void 0?"or":s,c=i.limit,u=c===void 0?10:c,f=i.showMore,p=f===void 0?!1:f,d=i.showMoreLimit,g=d===void 0?20:d,m=i.sortBy,l=m===void 0?ea:m,h=i.escapeFacetValues,v=h===void 0?!0:h,b=i.transformItems,y=b===void 0?function(F){return F}:b;if(!a)throw new Error(xr("The `attribute` option is required."));if(!/^(and|or)$/.test(o))throw new Error(xr('The `operator` must one of: `"and"`, `"or"` (got "'.concat(o,'").')));if(p===!0&&g<=u)throw new Error(xr("`showMoreLimit` should be greater than `limit`."));var w=function(j){var D=j.name,M=j.escapedValue,U=Zi(j,Wl);return G(G({},U),{},{value:M,label:D,highlighted:D})},P,R=[],S=!0,O,$,_=!1,A=function(){};function W(){A()}function C(F,j){return function(){_=!_,j.render(F)}}function T(){return _?g:u}var H=function(){return function(){}},L=function(j,D){return function(M){return function(U){var Q=M.instantSearchInstance,se=M.results;if(U===""&&R)t(G(G({},D.getWidgetRenderState(G(G({},M),{},{results:P}))),{},{instantSearchInstance:Q}),!1);else{var ie={highlightPreTag:v?Qe.highlightPreTag:ve.highlightPreTag,highlightPostTag:v?Qe.highlightPostTag:ve.highlightPostTag};j.searchForFacetValues(a,U,Math.min(T(),100),ie).then(function(be){var de=v?Ru(be.facetHits):be.facetHits,Se=y(de.map(function(he){var Ie=he.escapedValue,Fe=he.value,Rt=Zi(he,Ml);return G(G({},Rt),{}
27,{value:Ie,label:Fe})}),{results:se});t(G(G({},D.getWidgetRenderState(G(G({},M),{},{results:P}))),{},{items:Se,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:Q}),!1)})}}}};return{$$type:"ais.refinementList",init:function(j){t(G(G({},this.getWidgetRenderState(j)),{},{instantSearchInstance:j.instantSearchInstance}),!0)},render:function(j){t(G(G({},this.getWidgetRenderState(j)),{},{instantSearchInstance:j.instantSearchInstance}),!1)},getRenderState:function(j,D){return G(G({},j),{},{refinementList:G(G({},j.refinementList),{},Et({},a,this.getWidgetRenderState(D)))})},getWidgetRenderState:function(j){var D=j.results,M=j.state,U=j.createURL,Q=j.instantSearchInstance,se=j.helper,ie=[],be=[];if((!$||!O||!H)&&($=Kn({instantSearchInstance:Q,helper:se,attribute:a,widgetType:this.$$type}),O=function(Or){$("click:internal",Or),se.toggleFacetRefinement(a,Or).search()},H=L(se,this)),D){var de=D.getFacetValues(a,{sortBy:l,facetOrdering:l===ea});be=de&&Array.isArray(de)?de:[],ie=y(be.slice(0,T()).map(w),{results:D});var Se=M.maxValuesPerFacet,he=T();S=Se>he?be.length<=he:be.length<he,P=D,R=ie,j.results&&(A=C(j,this))}var Ie=H&&H(j),Fe=_&&R.length>u,Rt=p&&!S,Io=Fe||Rt;return{createURL:function(Or){return U(M.resetPage().toggleFacetRefinement(a,Or))},items:ie,refine:O,searchForItems:Ie,isFromSearch:!1,canRefine:ie.length>0,widgetParams:n,isShowingMore:_,canToggleShowMore:Io,toggleShowMore:W,sendEvent:$,hasExhaustiveItems:S}},dispose:function(j){var D=j.state;r();var M=D.setQueryParameter("maxValuesPerFacet",void 0);return o==="and"?M.removeFacet(a):M.removeDisjunctiveFacet(a)},getWidgetUiState:function(j,D){var M=D.searchParameters,U=o==="or"?M.getDisjunctiveRefinements(a):M.getConjunctiveRefinements(a);return U.length?G(G({},j),{},{refinementList:G(G({},j.refinementList),{},Et({},a,U))}):j},getWidgetSearchParameters:function(j,D){var M=D.uiState,U=o==="or";if(j.isHierarchicalFacet(a)||U&&j.isConjunctiveFacet(a)||!U&&j.isDisjunctiveFacet(a))return j;var Q=M.refinementList&&M.refinementList[a],se=j.clearRefinements(a),ie=U?se.addDisjunctiveFacet(a):se.addFacet(a),be=ie.maxValuesPerFacet||0,de=Math.max(be,p?g:u),Se=ie.setQueryParameter("maxValuesPerFacet",de);if(!Q){var he=U?"disjunctiveFacetsRefinements":"facetsRefinements";return Se.setQueryParameters(Et({},he,G(G({},Se[he]),{},Et({},a,[]))))}return Q.reduce(function(Ie,Fe){return U?Ie.addDisjunctiveFacetRefinement(a,Fe):Ie.addFacetRefinement(a,Fe)},Se)}}}};const Bl=ql;function er(e){"@babel/helpers - typeof";return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(e)}function ta(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ta(Object(r),!0).forEach(function(n){Vl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vl(e,t,r){return t=Kl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kl(e){var t=zl(e,"string");return er(t)==="symbol"?t:String(t)}function zl(e,t){if(er(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(er(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jl=X({name:"search-box",connector:!0}),Gl=function(t,r){return r(t)},Yl=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,Jl()),function(n){var i=n||{},a=i.queryHook,s=a===void 0?Gl:a,o,c;return{$$type:"ais.searchBox",init:function(f){var p=f.instantSearchInstance;t(Ge(Ge({},this.getWidgetRenderState(f)),{},{instantSearchInstance:p}),!0)},render:function(f){var p=f.instantSearchInstance;t(Ge(Ge({},this.getWidgetRenderState(f)),{},{instantSearchInstance:p}),!1)},dispose:function(f){var p=f.state;return r(),p.setQueryParameter("query",void 0)},getRenderState:function(f,p){return Ge(Ge({},f),{},{searchBox:this.getWidgetRenderState(p)})},getWidgetRenderState:function(f){var p=f.helper,d=f.searchMetadata,g=f.
27state;return o||(o=function(l){s(l,function(h){return p.setQuery(h).search()})},c=function(){p.setQuery("").search()}),{query:g.query||"",refine:o,clear:c,widgetParams:n,isSearchStalled:d.isSearchStalled}},getWidgetUiState:function(f,p){var d=p.searchParameters,g=d.query||"";return g===""||f&&f.query===g?f:Ge(Ge({},f),{},{query:g})},getWidgetSearchParameters:function(f,p){var d=p.uiState;return f.setQueryParameter("query",d.query||"")}}}};const Xl=Yl;function tr(e){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tr(e)}function ra(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ra(Object(r),!0).forEach(function(n){Zl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ra(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zl(e,t,r){return t=ed(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ed(e){var t=td(e,"string");return tr(t)==="symbol"?t:String(t)}function td(e,t){if(tr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var na=X({name:"sort-by",connector:!0}),rd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;ne(t,na());var n={};return function(i){var a=i||{},s=a.items,o=a.transformItems,c=o===void 0?function(u){return u}:o;if(!Array.isArray(s))throw new Error(na("The `items` option expects an array of objects."));return{$$type:"ais.sortBy",init:function(f){var p=f.instantSearchInstance,d=this.getWidgetRenderState(f),g=d.currentRefinement;it(s,function(m){return m.value===g}),t(Ye(Ye({},d),{},{instantSearchInstance:p}),!0)},render:function(f){var p=f.instantSearchInstance;t(Ye(Ye({},this.getWidgetRenderState(f)),{},{instantSearchInstance:p}),!1)},dispose:function(f){var p=f.state;return r(),n.initialIndex?p.setIndex(n.initialIndex):p},getRenderState:function(f,p){return Ye(Ye({},f),{},{sortBy:this.getWidgetRenderState(p)})},getWidgetRenderState:function(f){var p=f.results,d=f.helper,g=f.state,m=f.parent;!n.initialIndex&&m&&(n.initialIndex=m.getIndexName()),n.setIndex||(n.setIndex=function(h){d.setIndex(h).search()});var l=p?p.nbHits===0:!0;return{currentRefinement:g.index,options:c(s,{results:p}),refine:n.setIndex,hasNoResults:l,canRefine:!l&&s.length>0,widgetParams:i}},getWidgetUiState:function(f,p){var d=p.searchParameters,g=d.index;return Ye(Ye({},f),{},{sortBy:g!==n.initialIndex?g:void 0})},getWidgetSearchParameters:function(f,p){var d=p.uiState;return f.setQueryParameter("index",d.sortBy||n.initialIndex||f.index)}}}};const nd=rd;function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}function id(e){return od(e)||sd(e)||Os(e)||ad()}function ad(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 28In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function od(e){if(Array.isArray(e))return An(e)}function ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
28t%2?ia(Object(r),!0).forEach(function(n){Wr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ia(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wr(e,t,r){return t=ud(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ud(e){var t=cd(e,"string");return rr(t)==="symbol"?t:String(t)}function cd(e,t){if(rr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rs(e,t){return dd(e)||ld(e,t)||Os(e,t)||fd()}function fd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Os(e,t){if(e){if(typeof e=="string")return An(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return An(e,t)}}function An(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ld(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function dd(e){if(Array.isArray(e))return e}var aa=X({name:"rating-menu",connector:!0}),$s="ais.ratingMenu",Ir=1,hd=function(t){var r=t.instantSearchInstance,n=t.helper,i=t.getRefinedStar,a=t.attribute;return function(){for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];if(o.length===1){r.sendEventToInsights(o[0]);return}var u=o[1],f=o[2],p=f===void 0?"Filter Applied":f,d=o[0].split(":"),g=Rs(d,2),m=g[0],l=g[1];if(m==="click"){var h=i()===Number(u);h||r.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:$s,eventType:m,eventModifier:l,payload:{eventName:p,index:n.getIndex(),filters:["".concat(a,">=").concat(u)]},attribute:a})}}},md=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,aa()),function(n){var i=n||{},a=i.attribute,s=i.max,o=s===void 0?5:s,c;if(!a)throw new Error(aa("The `attribute` option is required."));var u=function(l){var h,v=l.getNumericRefinements(a);if((h=v[">="])!==null&&h!==void 0&&h.length)return v[">="][0]},f=function(l){var h=0;return l.forEach(function(v){var b=v.name.split("."),y=Rs(b,2),w=y[1],P=w===void 0?"":w;h=Math.max(h,P.length)}),h};function p(m,l){var h=u(m)===Number(l),v=m.resetPage().removeNumericRefinement(a);return h?v:v.addNumericRefinement(a,"<=",o).addNumericRefinement(a,">=",Number(l))}var d=function(l,h){c("click:internal",h),l.setState(p(l.state,h)).search()},g={toggleRefinementFactory:function(l){return d.bind(null,l)},createURLFactory:function(l){var h=l.state,v=l.createURL;return function(b){return v(p(h,b))}}};return{$$type:$s,init:function(l){var h=l.instantSearchInstance;t(Pe(Pe({},this.getWidgetRenderState(l)),{},{instantSearchInstance:h}),!0)},render:function(l){var h=l.instantSearchInstance;t(Pe(Pe({},this.getWidgetRenderState(l)),{},{instantSearchInstance:h}),!1)},getRenderState:function(l,h){return Pe(Pe({},l),{},{ratingMenu:Pe(Pe({},l.ratingMenu),{},Wr({},a,this.getWidgetRenderState(h)))})},getWidgetRenderState:function(l){var h=l.helper,v=l.results,b=l.state,y=l.instantSearchInstance,w=l.createURL,P=[];c||(c=hd({instantSearchInstance:y,helper:h,getRefinedStar:function(){return u(h.state)},attribute:a}));var R=!1,S=0,O=v==null?void 0:v.getFacetValues(a,{});if(v&&O){O.length,f(O);for(var $=u(b),_=function(H){var L=$===H;R=R||L;var F=O.filter(function(D){return Number(D.name)>=H&&Number(D.name)<=o}).map(function(D){return D.count}).reduce(function(D,M){return D+M},0);if(S+=F,$&&!L&&F===0)return"continue";var j=id(new Array(Math.floor(o/Ir))).map(function(D,M){return M*Ir<H});P.push({stars:j,name:String(H),label:String(H),value:String(H),count:F,isRefined:L})},A=Ir;A<o;A+=Ir)var W=_(A)}P=P.reverse();var C=v?v.nbHits===0:!0;return{items:P,hasNoResults:C,canRefine:(!C||R)&&S>0,refine:g.toggleRefinementFactory(h),sendEvent:c,createURL:g.createURLFactory({state:b,createURL:w}),widgetParams:n}},dispose:function(l){var h=l.state;return r(),h.removeNumericRefinement(a)},getWidgetUiState:function(l,h){var v=h.searchParameters,b=u(v);return typeof b!="number"?l:Pe(Pe({},l),{},{ratingMenu:Pe(Pe({},l.ratingMenu),{},Wr({},a,b))})},getWidgetSearchParameters:function(l,h){var v=h.uiState,b=v.ratingMenu&&v.ratingMenu[a],y=l.clearRefinements(a),w=y.addDisjunctiveFacet(a);return b?w.addNumericRefinement(a,"<=",o).addNumericRefinement(a,">=",b):w.setQueryParameters({numericRefinements:Pe(Pe({},w.numericRefinements),{},Wr({},a,{}))})}}}};const gd=md;function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(e)}function sa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
29t%2?sa(Object(r),!0).forEach(function(n){pd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pd(e,t,r){return t=vd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vd(e){var t=yd(e,"string");return nr(t)==="symbol"?t:String(t)}function yd(e,t){if(nr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bd=X({name:"stats",connector:!0}),Sd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,bd()),function(n){return{$$type:"ais.stats",init:function(a){var s=a.instantSearchInstance;t(gt(gt({},this.getWidgetRenderState(a)),{},{instantSearchInstance:s}),!0)},render:function(a){var s=a.instantSearchInstance;t(gt(gt({},this.getWidgetRenderState(a)),{},{instantSearchInstance:s}),!1)},dispose:function(){r()},getRenderState:function(a,s){return gt(gt({},a),{},{stats:this.getWidgetRenderState(s)})},getWidgetRenderState:function(a){var s=a.results,o=a.state;return s?{hitsPerPage:s.hitsPerPage,nbHits:s.nbHits,nbSortedHits:s.nbSortedHits,areHitsSorted:typeof s.appliedRelevancyStrictness<"u"&&s.appliedRelevancyStrictness>0&&s.nbSortedHits!==s.nbHits,nbPages:s.nbPages,page:s.page,processingTimeMS:s.processingTimeMS,query:s.query,widgetParams:n}:{hitsPerPage:o.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:o.page||0,processingTimeMS:-1,query:o.query||"",widgetParams:n}}}}};const wd=Sd;function ir(e){"@babel/helpers - typeof";return ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(e)}function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oa(Object(r),!0).forEach(function(n){Mr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mr(e,t,r){return t=Pd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pd(e){var t=Rd(e,"string");return ir(t)==="symbol"?t:String(t)}function Rd(e,t){if(ir(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ir(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Od(e,t){return Fd(e)||jd(e,t)||_d(e,t)||$d()}function $d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 30In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _d(e,t){if(e){if(typeof e=="string")return ua(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ua(e,t)}}function ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jd(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function Fd(e){if(Array.isArray(e))return e}var ca=X({name:"toggle-refinement",connector:!0}),_s="ais.toggleRefinement",xd=function(t){var r=t.instantSearchInstance,n=t.helper,i=t.attribute,a=t.on,s=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];if(u.length===1){r.sendEventToInsights(u[0]);return}var p=u[1],d=u[2],g=d===void 0?"Filter Applied":d,m=u[0].split(":"),l=Od(m,2),h=l[0],v=l[1];h!=="click"||a===void 0||p||r.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:_s,eventType:h,eventModifier:v,payload:{eventName:g,index:n.getIndex(),filters:a.map(function(b){return"".concat(i,":").concat(b)})},attribute:i})};return s},Id=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,ca()),function(n){var i=n||{},a=i.attribute,s=i.on,o=s===void 0?!0:s,c=i.off;if(!a)throw new Error(ca("The `attribute` option is required."));var u=c!==void 0,f=rn(o).map(Ft),p=u?rn(c).map(Ft):void 0,d,g=function(h){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{isRefined:!1},b=v.isRefined;b?(f.forEach(function(y){return h.removeDisjunctiveFacetRefinement(a,y)}),u&&p.forEach(function(y){return h.addDisjunctiveFacetRefinement(a,y)})):(d("click:internal",b),u&&p.forEach(function(y){return h.removeDisjunctiveFacetRefinement(a,y)}),f.forEach(function(y){return h.addDisjunctiveFacetRefinement(a,y)})),h.search()}},m={createURLFactory:function(h,v){var b=v.state,y=v.createURL;return function(){b=b.resetPage();var w=h?f:p;
30w&&w.forEach(function(R){b=b.removeDisjunctiveFacetRefinement(a,R)});var P=h?p:f;return P&&P.forEach(function(R){b=b.addDisjunctiveFacetRefinement(a,R)}),y(b)}}};return{$$type:_s,init:function(h){var v=h.instantSearchInstance;t(Re(Re({},this.getWidgetRenderState(h)),{},{instantSearchInstance:v}),!0)},render:function(h){var v=h.instantSearchInstance;t(Re(Re({},this.getWidgetRenderState(h)),{},{instantSearchInstance:v}),!1)},dispose:function(h){var v=h.state;return r(),v.removeDisjunctiveFacet(a)},getRenderState:function(h,v){return Re(Re({},h),{},{toggleRefinement:Re(Re({},h.toggleRefinement),{},Mr({},a,this.getWidgetRenderState(v)))})},getWidgetRenderState:function(h){var v=h.state,b=h.helper,y=h.results,w=h.createURL,P=h.instantSearchInstance,R=y?f.every(function(T){return v.isDisjunctiveFacetRefined(a,T)}):f.every(function(T){return v.isDisjunctiveFacetRefined(a,T)}),S={isRefined:R,count:0},O={isRefined:u&&!R,count:0};if(y){var $=rn(p||!1),_=y.getFacetValues(a,{})||[],A=f.map(function(T){return it(_,function(H){var L=H.escapedValue;return L===Ft(String(T))})}).filter(function(T){return T!==void 0}),W=u?$.map(function(T){return it(_,function(H){var L=H.escapedValue;return L===Ft(String(T))})}).filter(function(T){return T!==void 0}):[];S={isRefined:A.length?A.every(function(T){return T.isRefined}):!1,count:A.reduce(function(T,H){return T+H.count},0)||null},O={isRefined:W.length?W.every(function(T){return T.isRefined}):!1,count:W.reduce(function(T,H){return T+H.count},0)||_.reduce(function(T,H){var L=H.count;return T+L},0)}}d||(d=xd({instantSearchInstance:P,attribute:a,on:f,helper:b}));var C=R?O:S;return{value:{name:a,isRefined:R,count:y?C.count:null,onFacetValue:S,offFacetValue:O},createURL:m.createURLFactory(R,{state:v,createURL:w}),sendEvent:d,canRefine:!!(y&&C.count),refine:g(b),widgetParams:n}},getWidgetUiState:function(h,v){var b=v.searchParameters,y=f&&f.every(function(w){return b.isDisjunctiveFacetRefined(a,w)});return y?Re(Re({},h),{},{toggle:Re(Re({},h.toggle),{},Mr({},a,y))}):h},getWidgetSearchParameters:function(h,v){var b=v.uiState;if(h.isHierarchicalFacet(a)||h.isConjunctiveFacet(a))return h;var y=h.clearRefinements(a).addDisjunctiveFacet(a),w=!!(b.toggle&&b.toggle[a]);return w?(f&&f.forEach(function(P){y=y.addDisjunctiveFacetRefinement(a,P)}),y):u?(p&&p.forEach(function(P){y=y.addDisjunctiveFacetRefinement(a,P)}),y):y.setQueryParameters({disjunctiveFacetsRefinements:Re(Re({},h.disjunctiveFacetsRefinements),{},Mr({},a,[]))})}}}};const Ed=Id;function ar(e){"@babel/helpers - typeof";return ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(e)}function fa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fa(Object(r),!0).forEach(function(n){js(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function js(e,t,r){return t=Ad(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ad(e){var t=Td(e,"string");return ar(t)==="symbol"?t:String(t)}function Td(e,t){if(ar(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ar(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function la(e,t){return Cd(e)||Dd(e,t)||Ld(e,t)||Hd()}function Hd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 31In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ld(e,t){if(e){if(typeof e=="string")return da(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return da(e,t)}}function da(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dd(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}
31finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function Cd(e){if(Array.isArray(e))return e}var ha=X({name:"breadcrumb",connector:!0}),Nd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;ne(t,ha());var n={};return function(i){var a=i||{},s=a.attributes,o=a.separator,c=o===void 0?" > ":o,u=a.rootPath,f=u===void 0?null:u,p=a.transformItems,d=p===void 0?function(h){return h}:p;if(!s||!Array.isArray(s)||s.length===0)throw new Error(ha("The `attributes` option expects an array of strings."));var g=la(s,1),m=g[0];function l(h,v){if(!v){var b=h.getHierarchicalFacetBreadcrumb(m);return b.length===0?h:h.resetPage().toggleFacetRefinement(m,b[0])}return h.resetPage().toggleFacetRefinement(m,v)}return{$$type:"ais.breadcrumb",init:function(v){t(Xe(Xe({},this.getWidgetRenderState(v)),{},{instantSearchInstance:v.instantSearchInstance}),!0)},render:function(v){t(Xe(Xe({},this.getWidgetRenderState(v)),{},{instantSearchInstance:v.instantSearchInstance}),!1)},dispose:function(){r()},getRenderState:function(v,b){return Xe(Xe({},v),{},{breadcrumb:Xe(Xe({},v.breadcrumb),{},js({},m,this.getWidgetRenderState(b)))})},getWidgetRenderState:function(v){var b=v.helper,y=v.createURL,w=v.results,P=v.state;function R(){if(!w||P.hierarchicalFacets.length===0)return[];var O=la(P.hierarchicalFacets,1),$=O[0].name,_=w.getFacetValues($,{}),A=_&&!Array.isArray(_)&&_.data?_.data:[],W=d(Wd(Fs(A)),{results:w});return W}var S=R();return n.createURL||(n.createURL=function(O){return y(l(b.state,O))}),n.refine||(n.refine=function(O){b.setState(l(b.state,O)).search()}),{canRefine:S.length>0,createURL:n.createURL,items:S,refine:n.refine,widgetParams:i}},getWidgetSearchParameters:function(v){return v.isHierarchicalFacet(m)?(v.getHierarchicalFacetByName(m),v):v.addHierarchicalFacet({name:m,attributes:s,separator:c,rootPath:f})}}}};function Fs(e){return e.reduce(function(t,r){return r.isRefined&&(t.push({label:r.name,value:r.escapedValue}),Array.isArray(r.data)&&(t=t.concat(Fs(r.data)))),t},[])}function Wd(e){return e.map(function(t,r){return{label:t.label,value:r+1===e.length?null:e[r+1].value}})}const Md=Nd;function Ud(e){return typeof e=="object"&&e!==null?Yn(Array.isArray(e)?[]:{},e):e}function qr(e){return typeof e=="function"||Array.isArray(e)||Object.prototype.toString.call(e)==="[object Object]"}function Yn(e,t){if(e===t)return e;for(var r in t)if(!(!Object.prototype.hasOwnProperty.call(t,r)||r==="__proto__"||r==="constructor")){var n=t[r],i=e[r];typeof i<"u"&&typeof n>"u"||(qr(i)&&qr(n)?e[r]=Yn(i,n):e[r]=Ud(n))}return e}function kd(e){qr(e)||(e={});for(var t=1,r=arguments.length;t<r;t++){var n=arguments[t];qr(n)&&Yn(e,n)}return e}var Gr=kd,Xn=function(){var t=Array.prototype.slice.call(arguments);return t.reduceRight(function(r,n){return Object.keys(Object(n)).forEach(function(i){n[i]!==void 0&&(r[i]!==void 0&&delete r[i],r[i]=n[i])}),r},{})};function Qd(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}var qd=Qd,Yr=function(t,r){if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(r(t[n]))return t[n]}};function xs(e){if(typeof e=="number")return e;if(typeof e=="string")return parseFloat(e);if(Array.isArray(e))return e.map(xs);throw new Error("The value should be a number, a parsable string or an array of those.")}var Bd=xs;function Vd(e,t){if(e===null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Zn=Vd;function Kd(e){return e&&Object.keys(e).length>0}var ei=Kd,zd=function(t){return t===null?!1:/^[a-zA-Z0-9_-]{1,64}$/.test(t)},Jd=Xn,Gd=Zn,Yd=ei,st={addRefinement:function(t,r,n){if(st.isRefined(t,r,n))return t;var i=""+n,a=t[r]?t[r].concat(i):[i],s={};return s[r]=a,Jd({},s,t)},removeRefinement:function(t,r,n){if(n===void 0)return st.clearRefinement(t,function(a,s){return r===s});var i=""+n;return st.clearRefinement(t,function(a,s){return r===s&&i===a})},toggleRefinement:function(t,r,n){if(n===void 0)throw new Error("toggleRefinement should be used with a value");return st.isRefined(t,r,n)?st.removeRefinement(t,r,n):st.addRefinement(t,r,n)},clearRefinement:function(t,r,n){if(r===void 0)return Yd(t)?{}:t;if(typeof r=="string")return Gd(t,[r]);if(typeof r=="function"){var i=!1,a=Object.keys(t).reduce(function(s,o){var c=t[o]||[],u=c.filter(function(f){return!r(f,o,n)});return u.length!==c.length&&(i=!0),s[o]=u,s},{});return i?a:t}},isRefined:function(t,r,n){var i=!!t[r]&&t[r].length>0;if(n===void 0||!i)return i;var a=""+n;return t[r].indexOf(a)!==-1}},Xd=st,Tn=Gr,cn=Xn,ma=qd,Is=Yr,fn=Bd,ga=Zn,Hn=ei,Zd=zd,te=Xd;function ti(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(r,n){return ti(t[n],r)}):e===t}function eh(e,t){return Is(e,function(r){return ti(r,t)})}function _e(e){var t=e?_e._parseNumbers(e):{};t.userToken!==void 0&&!Zd(t.userToken)&&console.warn("[algoliasearch-helper] The `userToken` parameter is invali
31d. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(n){var i=_e.PARAMETERS.indexOf(n)!==-1,a=t[n]!==void 0;!i&&a&&(r[n]=t[n])})}_e.PARAMETERS=Object.keys(new _e);_e._parseNumbers=function(e){if(e instanceof _e)return e;var t={},r=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(r.forEach(function(i){var a=e[i];if(typeof a=="string"){var s=parseFloat(a);t[i]=isNaN(s)?a:s}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(i){return Array.isArray(i)?i.map(function(a){return parseFloat(a)}):i})),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach(function(i){var a=e.numericRefinements[i]||{};n[i]={},Object.keys(a).forEach(function(s){var o=a[s],c=o.map(function(u){return Array.isArray(u)?u.map(function(f){return typeof f=="string"?parseFloat(f):f}):typeof u=="string"?parseFloat(u):u});n[i][s]=c})}),t.numericRefinements=n}return Tn({},e,t)};_e.make=function(t){var r=new _e(t),n=t.hierarchicalFacets||[];return n.forEach(function(i){if(i.rootPath){var a=r.getHierarchicalRefinement(i.name);a.length>0&&a[0].indexOf(i.rootPath)!==0&&(r=r.clearRefinements(i.name)),a=r.getHierarchicalRefinement(i.name),a.length===0&&(r=r.toggleHierarchicalFacetRefinement(i.name,i.rootPath))}}),r};_e.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?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."):e.tagRefinements.length>0&&r.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&&r.numericRefinements&&Hn(r.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."):Hn(e.numericRefinements)&&r.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};_e.prototype={constructor:_e,clearRefinements:function(t){var r={numericRefinements:this._clearNumericRefinements(t),facetsRefinements:te.clearRefinement(this.facetsRefinements,t,"conjunctiveFacet"),facetsExcludes:te.clearRefinement(this.facetsExcludes,t,"exclude"),disjunctiveFacetsRefinements:te.clearRefinement(this.disjunctiveFacetsRefinements,t,"disjunctiveFacet"),hierarchicalFacetsRefinements:te.clearRefinement(this.hierarchicalFacetsRefinements,t,"hierarchicalFacet")};return r.numericRefinements===this.numericRefinements&&r.facetsRefinements===this.facetsRefinements&&r.facetsExcludes===this.facetsExcludes&&r.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&r.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(r)},clearTags:function(){return this.tagFilters===void 0&&this.tagRefinements.length===0?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(t){return t===this.index?this:this.setQueryParameters({index:t})},setQuery:function(t){return t===this.query?this:this.setQueryParameters({query:t})},setPage:function(t){return t===this.page?this:this.setQueryParameters({page:t})},setFacets:function(t){return this.setQueryParameters({facets:t})},setDisjunctiveFacets:function(t){return this.setQueryParameters({disjunctiveFacets:t})},setHitsPerPage:function(t){return this.hitsPerPage===t?this:this.setQueryParameters({hitsPerPage:t})},setTypoTolerance:function(t){return this.typoTolerance===t?this:this.setQueryParameters({typoTolerance:t})},addNumericRefinement:function(e,t,r){var n=fn(r);if(this.isNumericRefined(e,t,n))return this;var i=Tn({},this.numericRefinements);return i[e]=Tn({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},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(e,t,r){return r!==void 0?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&ti(n.val,fn(r))})}):this:t!==void 0?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(t){if(t===void 0)return Hn(this.numericRefinements)?{}:this.numericRefinements;if(typeof t=="string")return ga(this.numericRefinements,[t]);if(typeof t=="function"){var r=!1,n=this.numericRefinements,i=Object.keys(n).reduce(function(a,s){var o=n[s],c={};return o=o||{}
31,Object.keys(o).forEach(function(u){var f=o[u]||[],p=[];f.forEach(function(d){var g=t({val:d,op:u},s,"numeric");g||p.push(d)}),p.length!==f.length&&(r=!0),c[u]=p}),a[s]=c,a},{});return r?i:this.numericRefinements}},addFacet:function(t){return this.isConjunctiveFacet(t)?this:this.setQueryParameters({facets:this.facets.concat([t])})},addDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([t])})},addHierarchicalFacet:function(t){if(this.isHierarchicalFacet(t.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+t.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([t])})},addFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return te.isRefined(this.facetsRefinements,t,r)?this:this.setQueryParameters({facetsRefinements:te.addRefinement(this.facetsRefinements,t,r)})},addExcludeRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return te.isRefined(this.facetsExcludes,t,r)?this:this.setQueryParameters({facetsExcludes:te.addRefinement(this.facetsExcludes,t,r)})},addDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return te.isRefined(this.disjunctiveFacetsRefinements,t,r)?this:this.setQueryParameters({disjunctiveFacetsRefinements:te.addRefinement(this.disjunctiveFacetsRefinements,t,r)})},addTagRefinement:function(t){if(this.isTagRefined(t))return this;var r={tagRefinements:this.tagRefinements.concat(t)};return this.setQueryParameters(r)},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter(function(r){return r!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(r){return r!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(r){return r.name!==t})}):this},removeFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return te.isRefined(this.facetsRefinements,t,r)?this.setQueryParameters({facetsRefinements:te.removeRefinement(this.facetsRefinements,t,r)}):this},removeExcludeRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return te.isRefined(this.facetsExcludes,t,r)?this.setQueryParameters({facetsExcludes:te.removeRefinement(this.facetsExcludes,t,r)}):this},removeDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return te.isRefined(this.disjunctiveFacetsRefinements,t,r)?this.setQueryParameters({disjunctiveFacetsRefinements:te.removeRefinement(this.disjunctiveFacetsRefinements,t,r)}):this},removeTagRefinement:function(t){if(!this.isTagRefined(t))return this;var r={tagRefinements:this.tagRefinements.filter(function(n){return n!==t})};return this.setQueryParameters(r)},toggleRefinement:function(t,r){return this.toggleFacetRefinement(t,r)},toggleFacetRefinement:function(t,r){if(this.isHierarchicalFacet(t))return this.toggleHierarchicalFacetRefinement(t,r);if(this.isConjunctiveFacet(t))return this.toggleConjunctiveFacetRefinement(t,r);if(this.isDisjunctiveFacet(t))return this.toggleDisjunctiveFacetRefinement(t,r);throw new Error("Cannot refine the undeclared facet "+t+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:te.toggleRefinement(this.facetsRefinements,t,r)})},toggleExcludeFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:te.toggleRefinement(this.facetsExcludes,t,r)})},toggleDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:te.toggleRefinement(this.disjunctiveFacetsRefinements,t,r)})},toggleHierarchicalFacetRefinement:function(t,r){if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t)),i={},a=this.hierarchicalFacetsRefinements[t]!==void 0&&this.hierarchicalFacetsRefinements[t].length>0&&(this.hierarchicalFacetsRefinements[t][0]===r||this.hierarchicalFacetsRefinements[t][0].indexOf(r+n)===0);return a?r.indexOf(n)===-1?i[t]=[]:i[t]=[r.slice(0,r.lastIndexOf(n))]:i[t]=[r],this.setQueryParameters({hierarchicalFacetsRefinements:cn({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:cn({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:cn({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(t){return this.isTagRefined(t)?this.removeTagRefinement(t):this.addTagRefinement(t)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return this.getHierarchicalFacetByName(e)!==void 0},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(t,r){return this.isConjunctiveFacet(t)?te.isRefined(this.facetsRefinements,t,r):!1},isExcludeRefined:function(t,r){return this.isConjunctiveFacet(t)?te.isRefined(this.facetsExcludes,t,r):!1},isDisjunctiveFacetRefined:function(t,r){return this.isDisjunctiveFacet(t)?te.isRefined(this.disjunctiveFacetsRefinements,t,r):!1},isHierarchicalFacetRefined:function(t,r){if(!this.isHierarchicalFacet(t))return!1;var n=this.getHierarchicalRefinement(t);return r?n.indexOf(r)!==-1:n.length>0},isNumericRefined:function(t,r,n){if(n===void 0&&r===void 0)return!!this.numericRefinements[t];var i=this.numericRefinements[t]&&this.numericRefinements[t][r]!==void 0;if(n===void 0||!i)return i;var a=fn(n),s=eh(this.numericRefinements[t][r],a)!==void 0;return i&&s},isTagRefined:function(t){return this.tagRefinements.indexOf(t)!==-1},getRefinedDisjunctiveFacets:function(){var t=this,r=ma(Object.keys(this.numericRefinements).filter(function(n){return Object.keys(t.numericRefinements[n]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(n){return t.disjunctiveFacetsRefinements[n].length>0}).concat(r).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var t=this;return ma(this.hierarchicalFacets.map(function(r){return r.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(r){return t.hierarchicalFacetsRefinements[r].length>0}))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return e.indexOf(t)===-1})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var t=this.managedParameters,r={},n=this;
31return Object.keys(this).forEach(function(i){var a=n[i];t.indexOf(i)===-1&&a!==void 0&&(r[i]=a)}),r},setQueryParameter:function(t,r){if(this[t]===r)return this;var n={};return n[t]=r,this.setQueryParameters(n)},setQueryParameters:function(t){if(!t)return this;var r=_e.validate(this,t);if(r)throw r;var n=this,i=_e._parseNumbers(t),a=Object.keys(this).reduce(function(o,c){return o[c]=n[c],o},{}),s=Object.keys(i).reduce(function(o,c){var u=o[c]!==void 0,f=i[c]!==void 0;return u&&!f?ga(o,[c]):(f&&(o[c]=i[c]),o)},a);return new this.constructor(s)},resetPage:function(){return this.page===void 0?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 typeof e.showParentLevel=="boolean"?e.showParentLevel:!0},getHierarchicalFacetByName:function(e){return Is(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n=t.split(r);return n.map(function(i){return i.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var Es=_e;function th(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=t!==void 0,a=t===null;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e<t||a&&r||!i)return-1}return 0}function rh(e,t,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var n=e.map(function(i,a){return{criteria:t.map(function(s){return i[s]}),index:a,value:i}});return n.sort(function(a,s){for(var o=-1;++o<a.criteria.length;){var c=th(a.criteria[o],s.criteria[o]);if(c)return o>=r.length?c:r[o]==="desc"?-c:c}return a.index-s.index}),n.map(function(i){return i.value})}var As=rh,nh=function(t){return Array.isArray(t)?t.filter(Boolean):[]},ih=function(t,r){if(!Array.isArray(t))return-1;for(var n=0;n<t.length;n++)if(r(t[n]))return n;return-1},ah=Yr,Ts=function(t,r){var n=(r||[]).map(function(i){return i.split(":")});return t.reduce(function(a,s){var o=s.split(":"),c=ah(n,function(u){return u[0]===o[0]});return o.length>1||!c?(a[0].push(o[0]),a[1].push(o[1]),a):(a[0].push(c[0]),a[1].push(c[1]),a)},[[],[]])};function sh(e){return typeof e!="string"?e:String(e).replace(/^-/,"\\-")}function oh(e){return typeof e!="string"?e:e.replace(/^\\-/,"-")}var ri={escapeFacetValue:sh,unescapeFacetValue:oh},uh=mh,ch=As,fh=Yr,lh=Ts,Hs=ri,dh=Hs.escapeFacetValue,hh=Hs.unescapeFacetValue;function mh(e){return function(r,n){var i=e.hierarchicalFacets[n],a=e.hierarchicalFacetsRefinements[i.name]&&e.hierarchicalFacetsRefinements[i.name][0]||"",s=e._getHierarchicalFacetSeparator(i),o=e._getHierarchicalRootPath(i),c=e._getHierarchicalShowParentLevel(i),u=lh(e._getHierarchicalFacetSortBy(i)),f=r.every(function(g){return g.exhaustive}),p=gh(u,s,o,c,a),d=r;return o&&(d=r.slice(o.split(s).length)),d.reduce(p,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:f,data:null})}}function gh(e,t,r,n,i){return function(s,o,c){var u=s;if(c>0){var f=0;for(u=s;f<c;){var p=u&&Array.isArray(u.data)?u.data:[];u=fh(p,function(g){return g.isRefined}),f++}}if(u){var d=Object.keys(o.data).map(function(g){return[g,o.data[g]]}).filter(function(g){var m=g[0];return ph(m,u.path||r,i,t,r,n)});u.data=ch(d.map(function(g){var m=g[0],l=g[1];return vh(l,m,t,hh(i),o.exhaustive)}),e[0],e[1])}return s}}function ph(e,t,r,n,i,a){return i&&(e.indexOf(i)!==0||i===e)?!1:!i&&e.indexOf(n)===-1||i&&e.split(n).length-i.split(n).length===1||e.indexOf(n)===-1&&r.indexOf(n)===-1||r.indexOf(e)===0||e.indexOf(t+n)===0&&(a||e.indexOf(r)===0)}function vh(e,t,r,n,i){var a=t.split(r);return{name:a[a.length-1].trim(),path:t,escapedValue:dh(t),count:e,isRefined:n===t||n.indexOf(t+r)===0,exhaustive:i,data:null}}var yh=Gr,Br=Xn,Ls=As,ln=nh,De=Yr,_t=ih,bh=Ts,Ds=ri,pa=Ds.escapeFacetValue,Cs=Ds.unescapeFacetValue,Sh=uh;function va(e){var t={};return e.forEach(function(r,n){t[r]=n}),t}function dn(e,t,r){t&&t[r]&&(e.stats=t[r])}function wh(e,t){return De(e,function(n){var i=n.attributes||[];return i.indexOf(t)>-1})}function rt(e,t,r){var n=t[0];this._rawResults=t;var i=this;
31Object.keys(n).forEach(function(f){i[f]=n[f]}),Object.keys(r||{}).forEach(function(f){i[f]=r[f]}),this.processingTimeMS=t.reduce(function(f,p){return p.processingTimeMS===void 0?f:f+p.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var a=e.getRefinedDisjunctiveFacets(),s=va(e.facets),o=va(e.disjunctiveFacets),c=1,u=n.facets||{};Object.keys(u).forEach(function(f){var p=u[f],d=wh(e.hierarchicalFacets,f);if(d){var g=d.attributes.indexOf(f),m=_t(e.hierarchicalFacets,function(b){return b.name===d.name});i.hierarchicalFacets[m][g]={attribute:f,data:p,exhaustive:n.exhaustiveFacetsCount}}else{var l=e.disjunctiveFacets.indexOf(f)!==-1,h=e.facets.indexOf(f)!==-1,v;l&&(v=o[f],i.disjunctiveFacets[v]={name:f,data:p,exhaustive:n.exhaustiveFacetsCount},dn(i.disjunctiveFacets[v],n.facets_stats,f)),h&&(v=s[f],i.facets[v]={name:f,data:p,exhaustive:n.exhaustiveFacetsCount},dn(i.facets[v],n.facets_stats,f))}}),this.hierarchicalFacets=ln(this.hierarchicalFacets),a.forEach(function(f){var p=t[c],d=p&&p.facets?p.facets:{},g=e.getHierarchicalFacetByName(f);Object.keys(d).forEach(function(m){var l=d[m],h;if(g){h=_t(e.hierarchicalFacets,function(y){return y.name===g.name});var v=_t(i.hierarchicalFacets[h],function(y){return y.attribute===m});if(v===-1)return;i.hierarchicalFacets[h][v].data=yh({},i.hierarchicalFacets[h][v].data,l)}else{h=o[m];var b=n.facets&&n.facets[m]||{};i.disjunctiveFacets[h]={name:m,data:Br({},l,b),exhaustive:p.exhaustiveFacetsCount},dn(i.disjunctiveFacets[h],p.facets_stats,m),e.disjunctiveFacetsRefinements[m]&&e.disjunctiveFacetsRefinements[m].forEach(function(y){!i.disjunctiveFacets[h].data[y]&&e.disjunctiveFacetsRefinements[m].indexOf(Cs(y))>-1&&(i.disjunctiveFacets[h].data[y]=0)})}}),c++}),e.getRefinedHierarchicalFacets().forEach(function(f){var p=e.getHierarchicalFacetByName(f),d=e._getHierarchicalFacetSeparator(p),g=e.getHierarchicalRefinement(f);g.length===0||g[0].split(d).length<2||t.slice(c).forEach(function(m){var l=m&&m.facets?m.facets:{};Object.keys(l).forEach(function(h){var v=l[h],b=_t(e.hierarchicalFacets,function(R){return R.name===p.name}),y=_t(i.hierarchicalFacets[b],function(R){return R.attribute===h});if(y!==-1){var w={};if(g.length>0){var P=g[0].split(d)[0];w[P]=i.hierarchicalFacets[b][y].data[P]}i.hierarchicalFacets[b][y].data=Br(w,v,i.hierarchicalFacets[b][y].data)}}),c++})}),Object.keys(e.facetsExcludes).forEach(function(f){var p=e.facetsExcludes[f],d=s[f];i.facets[d]={name:f,data:n.facets[f],exhaustive:n.exhaustiveFacetsCount},p.forEach(function(g){i.facets[d]=i.facets[d]||{name:f},i.facets[d].data=i.facets[d].data||{},i.facets[d].data[g]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(Sh(e)),this.facets=ln(this.facets),this.disjunctiveFacets=ln(this.disjunctiveFacets),this._state=e}rt.prototype.getFacetByName=function(e){function t(r){return r.name===e}return De(this.facets,t)||De(this.disjunctiveFacets,t)||De(this.hierarchicalFacets,t)};function Ph(e,t){function r(c){return c.name===t}if(e._state.isConjunctiveFacet(t)){var n=De(e.facets,r);return n?Object.keys(n.data).map(function(c){var u=pa(c);return{name:c,escapedValue:u,count:n.data[c],isRefined:e._state.isFacetRefined(t,u),isExcluded:e._state.isExcludeRefined(t,c)}}):[]}else if(e._state.isDisjunctiveFacet(t)){var i=De(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(c){var u=pa(c);return{name:c,escapedValue:u,count:i.data[c],isRefined:e._state.isDisjunctiveFacetRefined(t,u)}}):[]}else if(e._state.isHierarchicalFacet(t)){var a=De(e.hierarchicalFacets,r);if(!a)return a;var s=e._state.getHierarchicalFacetByName(t),o=Cs(e._state.getHierarchicalRefinement(t)[0]||"").split(e._state._getHierarchicalFacetSeparator(s));return o.unshift(t),Ns(a,o,0),a}}function Ns(e,t,r){e.isRefined=e.name===t[r],e.data&&e.data.forEach(function(n){Ns(n,t,r+1)})}function Ws(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||t.data.length===0)return t;var i=t.data.map(function(o){return Ws(e,o,r,n+1)}),a=e(i,r[n]),s=Br({data:a},t);return s}
31rt.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"];function Rh(e,t){return t.sort(e)}function Oh(e,t){var r=[],n=[],i=t.order||[],a=i.reduce(function(c,u,f){return c[u]=f,c},{});e.forEach(function(c){var u=c.path||c.name;a[u]!==void 0?r[a[u]]=c:n.push(c)}),r=r.filter(function(c){return c});var s=t.sortRemainingBy,o;return s==="hidden"?r:(s==="alpha"?o=[["path","name"],["asc","asc"]]:o=[["count"],["desc"]],r.concat(Ls(n,o[0],o[1])))}function $h(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}rt.prototype.getFacetValues=function(e,t){var r=Ph(this,e);if(r){var n=Br({},t,{sortBy:rt.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),i=this,a;if(Array.isArray(r))a=[e];else{var s=i._state.getHierarchicalFacetByName(r.name);a=s.attributes}return Ws(function(o,c){if(n.facetOrdering){var u=$h(i,c);if(u)return Oh(o,u)}if(Array.isArray(n.sortBy)){var f=bh(n.sortBy,rt.DEFAULT_SORT);return Ls(o,f[0],f[1])}else if(typeof n.sortBy=="function")return Rh(n.sortBy,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,a)}};rt.prototype.getFacetStats=function(e){if(this._state.isConjunctiveFacet(e))return ya(this.facets,e);if(this._state.isDisjunctiveFacet(e))return ya(this.disjunctiveFacets,e)};function ya(e,t){var r=De(e,function(n){return n.name===t});return r&&r.stats}rt.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEac
31h(function(i){r.push(hn(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(hn(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(hn(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){r.push(_h(e,n,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n];Object.keys(i).forEach(function(a){i[a].forEach(function(s){r.push({type:"numeric",attributeName:n,name:s,numericValue:s,operator:a})})})}),e.tagRefinements.forEach(function(n){r.push({type:"tag",attributeName:"_tags",name:n})}),r};function hn(e,t,r,n,i){var a=De(i,function(c){return c.name===r}),s=a&&a.data&&a.data[n]?a.data[n]:0,o=a&&a.exhaustive||!1;return{type:t,attributeName:r,name:n,count:s,exhaustive:o}}function _h(e,t,r,n){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),s=r.split(a),o=De(n,function(d){return d.name===t}),c=s.reduce(function(d,g){var m=d&&De(d.data,function(l){return l.name===g});return m!==void 0?m:d},o),u=c&&c.count||0,f=c&&c.exhaustive||!1,p=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:p,count:u,exhaustive:f}}var Ms=rt;function ye(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var ni=ye;ye.prototype._events=void 0;ye.prototype._maxListeners=void 0;ye.defaultMaxListeners=10;ye.prototype.setMaxListeners=function(e){if(!jh(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this};ye.prototype.emit=function(e){var t,r,n,i,a,s;if(this._events||(this._events={}),e==="error"&&(!this._events.error||sr(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var o=new Error('Uncaught, unspecified "error" event. ('+t+")");throw o.context=t,o}if(r=this._events[e],Us(r))return!1;if(Ke(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(sr(r))for(i=Array.prototype.slice.call(arguments,1),s=r.slice(),n=s.length,a=0;a<n;a++)s[a].apply(this,i);return!0};ye.prototype.addListener=function(e,t){var r;if(!Ke(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Ke(t.listener)?t.listener:t),this._events[e]?sr(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,sr(this._events[e])&&!this._events[e].warned&&(Us(this._maxListeners)?r=ye.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[e].length>r&&(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),typeof console.trace=="function"&&console.trace())),this};ye.prototype.on=ye.prototype.addListener;ye.prototype.once=function(e,t){if(!Ke(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this};ye.prototype.removeListener=function(e,t){var r,n,i,a;if(!Ke(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,n=-1,r===t||Ke(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(sr(r)){for(a=i;a-- >0;
31)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(n<0)return this;r.length===1?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this};ye.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],Ke(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this};ye.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:Ke(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t};ye.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(Ke(t))return 1;if(t)return t.length}return 0};ye.listenerCount=function(e,t){return e.listenerCount(t)};function Ke(e){return typeof e=="function"}function jh(e){return typeof e=="number"}function sr(e){return typeof e=="object"&&e!==null}function Us(e){return e===void 0}const Fh=Bn(ni);function xh(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}var ks=xh,Ih=ni,Eh=ks;function Xr(e,t){this.main=e,this.fn=t,this.lastResults=null}Eh(Xr,Ih);Xr.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)};Xr.prototype.getModifiedState=function(e){return this.fn(e)};var Ah=Xr,mn=Gr;function gn(e){return Object.keys(e).sort(function(t,r){return t.localeCompare(r)}).reduce(function(t,r){return t[r]=e[r],t},{})}var xe={_getQueries:function(t,r){var n=[];return n.push({indexName:t,params:xe._getHitsSearchParams(r)}),r.getRefinedDisjunctiveFacets().forEach(function(i){n.push({indexName:t,params:xe._getDisjunctiveFacetSearchParams(r,i)})}),r.getRefinedHierarchicalFacets().forEach(function(i){var a=r.getHierarchicalFacetByName(i),s=r.getHierarchicalRefinement(i),o=r._getHierarchicalFacetSeparator(a);if(s.length>0&&s[0].split(o).length>1){var c=s[0].split(o).slice(0,-1).reduce(function(f,p,d){return f.concat({attribute:a.attributes[d],value:d===0?p:[f[f.length-1].value,p].join(o)})},[]);c.forEach(function(u,f){var p=xe._getDisjunctiveFacetSearchParams(r,u.attribute,f===0);function d(l){return a.attributes.some(function(h){return h===l.split(":")[0]})}var g=(p.facetFilters||[]).reduce(function(l,h){if(Array.isArray(h)){var v=h.filter(function(b){return!d(b)});v.length>0&&l.push(v)}return typeof h=="string"&&!d(h)&&l.push(h),l},[]),m=c[f-1];f>0?p.facetFilters=g.concat(m.attribute+":"+m.value):p.facetFilters=g.length>
310?g:void 0,n.push({indexName:t,params:p})})}}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(xe._getHitsHierarchicalFacetsAttributes(e)),r=xe._getFacetFilters(e),n=xe._getNumericFilters(e),i=xe._getTagFilters(e),a={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:i};return r.length>0&&(a.facetFilters=r),n.length>0&&(a.numericFilters=n),gn(mn({},e.getQueryParams(),a))},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=xe._getFacetFilters(e,t,r),i=xe._getNumericFilters(e,t),a=xe._getTagFilters(e),s={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};a.length>0&&(s.tagFilters=a);var o=e.getHierarchicalFacetByName(t);return o?s.facets=xe._getDisjunctiveHierarchicalFacetAttribute(e,o,r):s.facets=t,i.length>0&&(s.numericFilters=i),n.length>0&&(s.facetFilters=n),gn(mn({},e.getQueryParams(),s))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEac
31h(function(a){var s=i[a]||[];t!==n&&s.forEach(function(o){if(Array.isArray(o)){var c=o.map(function(u){return n+a+u});r.push(c)}else r.push(n+a+o)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).forEach(function(c){var u=i[c]||[];u.forEach(function(f){n.push(c+":"+f)})});var a=e.facetsExcludes||{};Object.keys(a).forEach(function(c){var u=a[c]||[];u.forEach(function(f){n.push(c+":-"+f)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).forEach(function(c){var u=s[c]||[];if(!(c===t||!u||u.length===0)){var f=[];u.forEach(function(p){f.push(c+":"+p)}),n.push(f)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).forEach(function(c){var u=o[c]||[],f=u[0];if(f!==void 0){var p=e.getHierarchicalFacetByName(c),d=e._getHierarchicalFacetSeparator(p),g=e._getHierarchicalRootPath(p),m,l;if(t===c){if(f.indexOf(d)===-1||!g&&r===!0||g&&g.split(d).length===f.split(d).length)return;g?(l=g.split(d).length-1,f=g):(l=f.split(d).length-2,f=f.slice(0,f.lastIndexOf(d))),m=p.attributes[l]}else l=f.split(d).length-1,m=p.attributes[l];m&&n.push([m+":"+f])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return e.hierarchicalFacets.reduce(function(n,i){var a=e.getHierarchicalRefinement(i.name)[0];if(!a)return n.push(i.attributes[0]),n;var s=e._getHierarchicalFacetSeparator(i),o=a.split(s).length,c=i.attributes.slice(0,o+1);return n.concat(c)},t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(r===!0){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=e.getHierarchicalRefinement(t.name)[0]||"",o=s.split(n).length-1;return t.attributes.slice(0,o+1)},getSearchForFacetQuery:function(e,t,r,n){var i=n.isDisjunctiveFacet(e)?n.clearRefinements(e):n,a={facetQuery:t,facetName:e};return typeof r=="number"&&(a.maxFacetHits=r),gn(mn({},xe._getHitsSearchParams(i),a))}},Th=xe,Qs="3.13.0",ii=Es,Ln=Ms,Hh=Ah,bt=Th,Lh=ni,Dh=ks,Ch=ei,Nh=Zn,Wh=Gr,qs=Qs,Mh=ri.escapeFacetValue;function x(e,t,r){typeof e.addAlgoliaAgent=="function"&&e.addAlgoliaAgent("JS Helper ("+qs+")"),this.setClient(e);var n=r||{};n.index=t,this.state=ii.make(n),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}Dh(x,Lh);x.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this};x.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this};x.prototype.getQuery=function(){var e=this.state;return bt._getHitsSearchParams(e)};x.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=bt._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t){this.client.search(n).then(function(a){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),t(null,new Ln(r,a.results),r)}).catch(function(a){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),t(a,null,r)});return}return this.client.search(n).then(function(a){return i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),{content:new Ln(r,a.results),state:r,_originalResponse:a}},function(a){throw i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),a})};x.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 n=r.getModifiedState(t),i=Wh({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:Nh(bt._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if(typeof this.client.initIndex!="function")throw new Error(a);var s=this.client.initIndex(n.index);if(typeof s.findAnswers!="function")throw new Error(a);return s.findAnswers(n.query,e.queryLanguages,i)};x.prototype.searchForFacetValues=function(e,t,r,n){var i=typeof this.client.searchForFacetValues=="function",a=typeof this.client.initIndex=="function";if(!i&&!a&&typeof this.client.search!="function")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");var s=this.state.setQueryParameters(n||{}),o=s.isDisjunctiveFacet(e),c=bt.getSearchForFacetQuery(e,t,r,s);this._currentNbQueries++;var u=this,f;return i?f=this.client.searchForFacetValues([{indexName:s.index,params:c}]):a?f=this.client.initIndex(s.index).searchForFacetValues(c):(delete c.facetName,f=this.client.search([{type:"facet",facet:e,indexName:s.index,params:c}]).then(function(d){return d.results[0]}
31)),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),f.then(function(d){return u._currentNbQueries--,u._currentNbQueries===0&&u.emit("searchQueueEmpty"),d=Array.isArray(d)?d[0]:d,d.facetHits.forEach(function(g){g.escapedValue=Mh(g.value),g.isRefined=o?s.isDisjunctiveFacetRefined(e,g.escapedValue):s.isFacetRefined(e,g.escapedValue)}),d},function(p){throw u._currentNbQueries--,u._currentNbQueries===0&&u.emit("searchQueueEmpty"),p})};x.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this};x.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this};x.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this};x.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this};x.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)};x.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this};x.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this};x.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this};x.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)};x.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this};x.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)};x.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this};x.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this};x.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this};x.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)};x.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this};x.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this};x.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)};x.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this};x.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)};x.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this};x.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this};x.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)};x.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)};x.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this};x.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)};x.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this};x.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)};x.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)};function Bs(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}x.prototype.setCurrentPage=Bs;x.prototype.setPage=Bs;x.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this};x.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this};x.prototype.setState=function(e){return this._change({state:ii.make(e),isPageReset:!1}),this};x.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new ii(e),this};
31x.prototype.hasRefinements=function(e){return Ch(this.state.getNumericRefinements(e))?!0:this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):this.state.isHierarchicalFacet(e)?this.state.isHierarchicalFacetRefined(e):!1};x.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)};x.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)};x.prototype.hasTag=function(e){return this.state.isTagRefined(e)};x.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)};x.prototype.getIndex=function(){return this.state.index};function Vs(){return this.state.page}x.prototype.getCurrentPage=Vs;x.prototype.getPage=Vs;x.prototype.getTags=function(){return this.state.tagRefinements};x.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var r=this.state.getConjunctiveRefinements(e);r.forEach(function(s){t.push({value:s,type:"conjunctive"})});var n=this.state.getExcludeRefinements(e);n.forEach(function(s){t.push({value:s,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(e)){var i=this.state.getDisjunctiveRefinements(e);i.forEach(function(s){t.push({value:s,type:"disjunctive"})})}var a=this.state.getNumericRefinements(e);return Object.keys(a).forEach(function(s){var o=a[s];t.push({value:o,operator:s,type:"numeric"})}),t};x.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)};x.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)};x.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=bt._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(o){var c=o.getModifiedState(t),u=c.index?bt._getQueries(c.index,c):[];return r.push({state:c,queriesCount:u.length,helper:o}),o.emit("search",{state:c,results:o.lastResults}),u}),a=Array.prototype.concat.apply(n,i),s=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(o){this.emit("error",{error:o})}};x.prototype._dispatchAlgoliaResponse=function(e,t,r){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,this._currentNbQueries===0&&this.emit("searchQueueEmpty");var n=r.results.slice();e.forEach(function(i){var a=i.state,s=i.queriesCount,o=i.helper,c=n.splice(0,s);
31if(!a.index){o.emit("result",{results:null,state:a});return}var u=o.lastResults=new Ln(a,c);o.emit("result",{results:u,state:a})})}};x.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),this._currentNbQueries===0&&this.emit("searchQueueEmpty"))};x.prototype.containsRefinement=function(e,t,r,n){return e||t.length!==0||r.length!==0||n.length!==0};x.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0};x.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))};x.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this};x.prototype.setClient=function(e){return this.client===e?this:(typeof e.addAlgoliaAgent=="function"&&e.addAlgoliaAgent("JS Helper ("+qs+")"),this.client=e,this)};x.prototype.getClient=function(){return this.client};x.prototype.derive=function(e){var t=new Hh(this,e);return this.derivedHelpers.push(t),t};x.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(t===-1)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)};x.prototype.hasPendingRequests=function(){return this._currentNbQueries>0};var Uh=x,Ks=Uh,kh=Es,Qh=Ms;function Rr(e,t,r){return new Ks(e,t,r)}Rr.version=Qs;Rr.AlgoliaSearchHelper=Ks;Rr.SearchParameters=kh;Rr.SearchResults=Qh;var qh=Rr;const He=Bn(qh);function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}function ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ba(Object(r),!0).forEach(function(n){zs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ba(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zs(e,t,r){return t=Bh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bh(e){var t=Vh(e,"string");return or(t)==="symbol"?t:String(t)}function Vh(e,t){if(or(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(or(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kh=X({name:"configure",connector:!0});function Sa(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(r,n){return ue(ue({},r),{},zs({},n,void 0))},{}))}var zh=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return function(n){if(!n||!es(n.searchParameters))throw new Error(Kh("The `searchParameters` option expects an object."));var i={};function a(s){return function(o){var c=Sa(s.state,n),u=At(c,new He.SearchParameters(o));n.searchParameters=o,s.setState(u).search()}}return{$$type:"ais.configure",init:function(o){var c=o.instantSearchInstance;t(ue(ue({},this.getWidgetRenderState(o)),{},{instantSearchInstance:c}),!0)},render:function(o){var c=o.instantSearchInstance;t(ue(ue({},this.getWidgetRenderState(o)),{},{instantSearchInstance:c}),!1)},dispose:function(o){var c=o.state;return r(),Sa(c,n)},getRenderState:function(o,c){var u,f=this.getWidgetRenderState(c);return ue(ue({},o),{},{configure:ue(ue({},f),{},{widgetParams:ue(ue({},f.widgetParams),{},{searchParameters:At(new He.SearchParameters((u=o.configure)===null||u===void 0?void 0:u.widgetParams.searchParameters),new He.SearchParameters(f.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(o){var c=o.helper;return i.refine||(i.refine=a(c)),{refine:i.refine,widgetParams:n}},getWidgetSearchParameters:function(o,c){var u=c.uiState;return At(o,new He.SearchParameters(ue(ue({},u.configure),n.searchParameters)))},getWidgetUiState:function(o){return ue(ue({},o),{},{configure:ue(ue({},o.configure),n.searchParameters)})}}}};const Js=zh;function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}function wa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
31t%2?wa(Object(r),!0).forEach(function(n){Jh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jh(e,t,r){return t=Gh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gh(e){var t=Yh(e,"string");return ur(t)==="symbol"?t:String(t)}function Yh(e,t){if(ur(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ur(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pa(e){return tm(e)||em(e)||Zh(e)||Xh()}function Xh(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 32In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zh(e,t){if(e){if(typeof e=="string")return Dn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dn(e,t)}}function em(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tm(e){if(Array.isArray(e))return Dn(e)}function Dn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ra=X({name:"configure-related-items",connector:!0});function Oa(e){var t=e.attributeName,r=e.attributeValue,n=e.attributeScore;return"".concat(t,":").concat(r,"<score=").concat(n||1,">")}var rm=function(t,r){return function(n){var i=n||{},a=i.hit,s=i.matchingPatterns,o=i.transformSearchParameters,c=o===void 0?function(d){return d}:o;if(!a)throw new Error(Ra("The `hit` option is required."));if(!s)throw new Error(Ra("The `matchingPatterns` option is required."));var u=Object.keys(s).reduce(function(d,g){var m=s[g],l=Pt(a,g),h=m.score;return Array.isArray(l)?[].concat(Pa(d),[l.map(function(v){return Oa({attributeName:g,attributeValue:v,attributeScore:h})})]):typeof l=="string"?[].concat(Pa(d),[Oa({attributeName:g,attributeValue:l,attributeScore:h})]):d},[]),f=pn({},c(new He.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:u}))),p=Js(t,r);return pn(pn({},p({searchParameters:f})),{},{$$type:"ais.configureRelatedItems"})}};const nm=rm;function cr(e){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(e)}function $a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$a(Object(r),!0).forEach(function(n){Gs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$a(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gs(e,t,r){return t=im(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function im(e){var t=am(e,"string");return cr(t)==="symbol"?t:String(t)}function am(e,t){if(cr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sm=X({name:"autocomplete",connector:!0}),om=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,sm()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,o={};return{$$type:"ais.autocomplete",init:function(u){var f=u.instantSearchInstance;t(Ae(Ae({},this.getWidgetRenderState(u)),{},{instantSearchInstance:f}),!0)},render:function(u){var f=u.instantSearchInstance,p=this.getWidgetRenderState(u);
32p.indices.forEach(function(d){var g=d.sendEvent,m=d.hits;g("view:internal",m)}),t(Ae(Ae({},p),{},{instantSearchInstance:f}),!1)},getRenderState:function(u,f){return Ae(Ae({},u),{},{autocomplete:this.getWidgetRenderState(f)})},getWidgetRenderState:function(u){var f=this,p=u.helper,d=u.state,g=u.scopedResults,m=u.instantSearchInstance;o.refine||(o.refine=function(h){p.setQuery(h).search()});var l=g.map(function(h){h.results.hits=s?Vn(h.results.hits):h.results.hits;var v=zn({instantSearchInstance:m,index:h.results.index,widgetType:f.$$type});return{indexId:h.indexId,indexName:h.results.index,hits:h.results.hits,results:h.results,sendEvent:v}});return{currentRefinement:d.query||"",indices:l,refine:o.refine,widgetParams:n}},getWidgetUiState:function(u,f){var p=f.searchParameters,d=p.query||"";return d===""||u&&u.query===d?u:Ae(Ae({},u),{},{query:d})},getWidgetSearchParameters:function(u,f){var p=f.uiState,d={query:p.query||""};return s?u.setQueryParameters(Ae(Ae({},d),Qe)):u.setQueryParameters(d)},dispose:function(u){var f=u.state;r();var p=f.setQueryParameter("query",void 0);return s?p.setQueryParameters(Object.keys(Qe).reduce(function(d,g){return Ae(Ae({},d),{},Gs({},g,void 0))},{})):p}}}};const um=om;function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function _a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_a(Object(r),!0).forEach(function(n){cm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_a(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cm(e,t,r){return t=fm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fm(e){var t=lm(e,"string");return fr(t)==="symbol"?t:String(t)}function lm(e,t){if(fr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vr(e){return gm(e)||mm(e)||hm(e)||dm()}function dm(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hm(e,t){if(e){if(typeof e=="string")return Cn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cn(e,t)}}function mm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gm(e){if(Array.isArray(e))return Cn(e)}function Cn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ja=X({name:"query-rules",connector:!0});function pm(e){return[e.disjunctiveFacetsRefinements,e.facetsRefinements,e.hierarchicalFacetsRefinements,e.numericRefinements].some(function(t){return!!(t&&Object.keys(t).length>0)})}function vm(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}function ym(e){var t=e.helper,r=e.sharedHelperState,n=e.trackedFilters,i=Object.keys(n).reduce(function(a,s){var o=Jn(t.lastResults||{},r,!0).filter(function(f){return f.attribute===s}).map(function(f){return f.numericValue||f.name}),c=n[s],u=c(o);return[].concat(Vr(a),Vr(o.filter(function(f){return u.includes(f)}).map(function(f){return vm("ais-".concat(s,"-").concat(f))})))},[]);return i}function bm(e){var t=this.helper,r=this.initialRuleContexts,n=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],o=ym({helper:t,sharedHelperState:a,trackedFilters:n}),c=[].concat(Vr(r),Vr(o)),u=i(c).slice(0,10);Pr(s,u)||t.overrideStateWithoutTriggeringChangeEvent(et(et({},a),{},{ruleContexts:u}))}var Sm=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,ja()),function(n){var i=n||{},a=i.trackedFilters,s=a===void 0?{}:a,o=i.transformRuleContexts,c=o===void 0?function(m){return m}:o,u=i.transformItems,f=u===void 0?function(m){return m}:u;
33Object.keys(s).forEach(function(m){if(typeof s[m]!="function")throw new Error(ja(`'The "`.concat(m,'" filter value in the `trackedFilters` option expects a function.')))});var p=Object.keys(s).length>0,d=[],g;return{$$type:"ais.queryRules",init:function(l){var h=l.helper,v=l.state,b=l.instantSearchInstance;d=v.ruleContexts||[],g=bm.bind({helper:h,initialRuleContexts:d,trackedFilters:s,transformRuleContexts:c}),p&&((pm(v)||n.transformRuleContexts)&&g({state:v}),h.on("change",g)),t(et(et({},this.getWidgetRenderState(l)),{},{instantSearchInstance:b}),!0)},render:function(l){var h=l.instantSearchInstance;t(et(et({},this.getWidgetRenderState(l)),{},{instantSearchInstance:h}),!1)},getWidgetRenderState:function(l){var h=l.results,v=h||{},b=v.userData,y=b===void 0?[]:b,w=f(y,{results:h});return{items:w,widgetParams:n}},getRenderState:function(l,h){return et(et({},l),{},{queryRules:this.getWidgetRenderState(h)})},dispose:function(l){var h=l.helper,v=l.state;return r(),p?(h.removeListener("change",g),v.setQueryParameter("ruleContexts",d)):v}}}};const Ys=Sm;function lr(e){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lr(e)}function Fa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fa(Object(r),!0).forEach(function(n){wm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wm(e,t,r){return t=Pm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pm(e){var t=Rm(e,"string");return lr(t)==="symbol"?t:String(t)}function Rm(e,t){if(lr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Om=function(t){var r=t.searchAsYouSpeak,n=t.language,i=t.onQueryChange,a=t.onStateChange,s=window.webkitSpeechRecognition||window.SpeechRecognition,o=function(S){return{status:S,transcript:"",isSpeechFinal:!1,errorCode:void 0}},c=o("initial"),u,f=function(){return!!s},p=function(){return c.status==="askingPermission"||c.status==="waiting"||c.status==="recognizing"},d=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};c=xa(xa({},c),S),a()},g=function(){return c},m=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";d(o(S))},l=function(){d({status:"waiting"})},h=function(S){d({status:"error",errorCode:S.error})},v=function(S){d({status:"recognizing",transcript:S.results[0]&&S.results[0][0]&&S.results[0][0].transcript||"",isSpeechFinal:S.results[0]&&S.results[0].isFinal}),r&&c.transcript&&i(c.transcript)},b=function(){!c.errorCode&&c.transcript&&!r&&i(c.transcript),c.status!=="error"&&d({status:"finished"})},y=function(){u=new s,u&&(m("askingPermission"),u.interimResults=!0,n&&(u.lang=n),u.addEventListener("start",l),u.addEventListener("error",h),u.addEventListener("result",v),u.addEventListener("end",b),u.start())},w=function(){u&&(u.stop(),u.removeEventListener("start",l),u.removeEventListener("error",h),u.removeEventListener("result",v),u.removeEventListener("end",b),u=void 0)},P=function(){w(),m("finished")};return{getState:g,isBrowserSupported:f,isListening:p,startListening:y,stopListening:P,dispose:w}};const $m=Om;function dr(e){"@babel/helpers - typeof";return dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dr(e)}function Ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
33t%2?Ia(Object(r),!0).forEach(function(n){_m(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ia(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _m(e,t,r){return t=jm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jm(e){var t=Fm(e,"string");return dr(t)==="symbol"?t:String(t)}function Fm(e,t){if(dr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xm=X({name:"voice-search",connector:!0}),Im=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return ne(t,xm()),function(n){var i=n.searchAsYouSpeak,a=i===void 0?!1:i,s=n.language,o=n.additionalQueryParameters,c=n.createVoiceSearchHelper,u=c===void 0?$m:c;return{$$type:"ais.voiceSearch",init:function(p){var d=p.instantSearchInstance;t(Te(Te({},this.getWidgetRenderState(p)),{},{instantSearchInstance:d}),!0)},render:function(p){var d=p.instantSearchInstance;t(Te(Te({},this.getWidgetRenderState(p)),{},{instantSearchInstance:d}),!1)},getRenderState:function(p,d){return Te(Te({},p),{},{voiceSearch:this.getWidgetRenderState(d)})},getWidgetRenderState:function(p){var d=this,g=p.helper,m=p.instantSearchInstance;this._refine||(this._refine=function(P){if(P!==g.state.query){var R=s?[s.split("-")[0]]:void 0;g.setQueryParameter("queryLanguages",R),typeof o=="function"&&g.setState(g.state.setQueryParameters(Te({ignorePlurals:!0,removeStopWords:!0,optionalWords:P},o({query:P})))),g.setQuery(P).search()}}),this._voiceSearchHelper||(this._voiceSearchHelper=u({searchAsYouSpeak:a,language:s,onQueryChange:function(R){return d._refine(R)},onStateChange:function(){t(Te(Te({},d.getWidgetRenderState(p)),{},{instantSearchInstance:m}),!1)}}));var l=this._voiceSearchHelper,h=l.isBrowserSupported,v=l.isListening,b=l.startListening,y=l.stopListening,w=l.getState;return{isBrowserSupported:h(),isListening:v(),toggleListening:function(){h()&&(v()?y():b())},voiceListeningState:w(),widgetParams:n}},dispose:function(p){var d=p.state;this._voiceSearchHelper.dispose(),r();var g=d;if(typeof o=="function"){var m=o({query:""}),l=m?Object.keys(m).reduce(function(h,v){return h[v]=void 0,h},{}):{};g=d.setQueryParameters(Te({queryLanguages:void 0,ignorePlurals:void 0,removeStopWords:void 0,optionalWords:void 0},l))}return g.setQueryParameter("query",void 0)},getWidgetUiState:function(p,d){var g=d.searchParameters,m=g.query||"";return m?Te(Te({},p),{},{query:m}):p},getWidgetSearchParameters:function(p,d){var g=d.uiState;return p.setQueryParameter("query",g.query||"")}}}};const Em=Im;function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(e)}function Ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ea(Object(r),!0).forEach(function(n){Am(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ea(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Am(e,t,r){return t=Tm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tm(e){var t=Hm(e,"string");return hr(t)==="symbol"?t:String(t)}function Hm(e,t){if(hr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k;return function(n){var i={};return{$$type:"ais.relevantSort",init:function(s){var o=s.instantSearchInstance;t(Ze(Ze({},this.getWidgetRenderState(s)),{},{instantSearchInstance:o}),!0)},render:function(s){var o=s.instantSearchInstance;t(Ze(Ze({},this.getWidgetRenderState(s)),{},{instantSearchInstance:o}),!1)},dispose:function(s){var o=s.state;return r(),o.setQueryParameter("relevancyStrictness",void 0)},getRenderState:function(s,o){return Ze(Ze({},s),{},{relevantSort:this.getWidgetRenderState(o)})},getWidgetRenderState:function(s){var o=s.results,c=s.helper;i.refine||(i.refine=function(d){c.setQueryParameter("relevancyStrictness",d).search()});var u=o||{},f=u.appliedRelevancyStrictness,p=f!==void 0;return{isRelevantSorted:typeof f<"u"&&f>0,isVirtualReplica:p,canRefine:p,refine:i.refine,widgetParams:n}},getWidgetSearchParameters:function(s,o){var c,u=o.uiState;return s.setQueryParameter("relevancyStrictness",(c=u.relevantSort)!==null&&c!==void 0?c:s.relevancyStrictness)},getWidgetUiState:function(s,o){var c=o.searchParameters;return Ze(Ze({},s),{},{relevantSort:c.relevancyStrictness||s.relevantSort})}}}};const Dm=Lm;z({connector:um},{$$widgetType:"ais.autocomplete"}),q({name:"Autocomplete"});I("p",null," This widget doesn't render anything without a filled in default slot. ",-1);I("p",null,"query, function to refine and results are provided.",-1);I("pre",null,"refine: Function",-1);I("summary",null,[I("code",null,"indices"),ae(":")],-1);function Cm(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n&&n.push(r)||e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&n.splice(n.indexOf(r)>>>0,1)},emit:function(t,r){(e.get(t)||[]).slice().map(function(n){n(r)}),(e.get("*")||[]).slice().map(function(n){n(t,r)}
33)}}}var Nm=function(){var e;return(e={props:{emitter:{type:Object,required:!1,default:function(){return Cm()}}},provide:function(){var t;return(t={}).instantSearchPanelEmitter=this.emitter,t},data:function(){return{canRefine:!0}},created:function(){var t=this;this.emitter.on("PANEL_CHANGE_EVENT",function(r){t.updateCanRefine(r)})}}).beforeUnmount=function(){this.emitter.all.clear()},e.methods={updateCanRefine:function(t){this.canRefine=t}},e},je=function(e){e===void 0&&(e={});var t=e.mapStateToCanRefine;return t===void 0&&(t=function(r){return!!r.canRefine}),{inject:{emitter:{from:"instantSearchPanelEmitter",default:function(){return{emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:{immediate:!0,handler:function(r,n){if(r){var i=t(n||{}),a=t(r);this.hasAlreadyEmitted&&i===a||(this.emitter.emit("PANEL_CHANGE_EVENT",a),this.hasAlreadyEmitted=!0)}}}}}};z({connector:Md},{$$widgetType:"ais.breadcrumb"}),je(),q({name:"Breadcrumb"});ae("Home");ae("Home");ae(">");const Xs={name:"AisClearRefinements",mixins:[z({connector:Cc},{$$widgetType:"ais.clearRefinements"}),je(),q({name:"ClearRefinements"})],props:{excludedAttributes:{type:Array,default:void 0},includedAttributes:{type:Array,default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}},canRefine:function(){return this.state.hasRefinements}}};var Wm=ae(" Clear refinements ");function Mm(e,t,r,n,i,a){return e.state?(E(),N("div",{key:0,class:e.suit()},[ee(e.$slots,"default",{canRefine:a.canRefine,refine:e.state.refine,createURL:e.state.createURL},function(){return[I("button",{type:"reset",class:[e.suit("button"),!a.canRefine&&e.suit("button","disabled")],disabled:!a.canRefine,onClick:t[1]||(t[1]=$e(function(){for(var s,o=[],c=arguments.length;c--;)o[c]=arguments[c];return e.state.refine&&(s=e.state).refine.apply(s,o)},["prevent"]))},[ee(e.$slots,"resetLabel",{},function(){return[Wm]})],10,["disabled"])]})],2)):V("",!0)}Xs.render=Mm;const Um={inheritAttrs:!1,name:"AisConfigure",mixins:[q({name:"Configure"}),z({connector:Js},{$$widgetType:"ais.configure"})],computed:{widgetParams:function(){return{searchParameters:this.$attrs}}},render:Sr(function(e){var t=this.$slots.default;return this.state&&t?e("div",{class:this.suit()},[t({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null})};z({connector:nm},{$$widgetType:"ais.configureRelatedItems"});q({name:"CurrentRefinements"}),z({connector:Gc},{$$widgetType:"ais.currentRefinements"}),je();const Zs={name:"HierarchicalMenuList",props:{items:{type:Array,required:!0},level:{type:Number,required:!0},refine:{type:Function,required:!0},createURL:{type:Function,required:!0},suit:{type:Function,required:!0}}};function km(e,t,r,n,i,a){var s=zr("hierarchical-menu-list",!0);return r.items.length>0?(E(),N("ul",{key:0,class:[r.suit("list"),r.level>0&&r.suit("list","child"),r.suit("list","lvl"+r.level)]},[(E(!0),N(Le,null,Ve(r.items,function(o){return E(),N("li",{key:o.value,class:[r.suit("item"),o.data&&o.data.length>0&&r.suit("item","parent"),o.isRefined&&r.suit("item","selected")]},[I("a",{href:r.createURL(o.value),class:[r.suit("link"),o.isRefined&&r.suit("link","selected")],onClick:$e(function(c){return r.refine(o.value)},["prevent"])},[I("span",{class:r.suit("label")},B(o.label),3),I("span",{class:r.suit("count")},B(o.count),3)],10,["href","onClick"]),o.data?(E(),N(s,{key:0,items:o.data,level:r.level+1,refine:r.refine,createURL:r.createURL,suit:r.suit},null,8,["items","level","refine","createURL","suit"])):V("",!0)],2)}),128))],2)):V("",!0)}Zs.render=km;q({name:"HierarchicalMenu"}),z({connector:cf},{$$widgetType:"ais.hierarchicalMenu"}),je();var Qm={"&":"&","<":"<",">":">",""":'"',"'":"'"},eo=/&(?:amp|lt|gt|quot|#39);/g,qm=RegExp(eo.source);function Aa(e){return e&&qm.test(e)?e.replace(eo,function(t){return Qm[t]}):e}var Ta={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"};
33function Ha(e){var t=e.preTag,r=e.postTag,n=e.highlightedValue;n===void 0&&(n="");var i=n.split(t),a=i.shift(),s=a===""?[]:[{value:a,isHighlighted:!1}];if(r===t){var o=!0;i.forEach(function(c){s.push({value:c,isHighlighted:o}),o=!o})}else i.forEach(function(c){var u=c.split(r);s.push({value:u[0],isHighlighted:!0}),u[1]!==""&&s.push({value:u[1]===" "?" ":u[1],isHighlighted:!1})});return s}function Bm(e){var t=e.preTag;t===void 0&&(t=Ta.highlightPreTag);var r=e.postTag;r===void 0&&(r=Ta.highlightPostTag);var n=e.highlightProperty,i=e.attribute,a=e.hit;if(!a)throw new Error("`hit`, the matching record, must be provided");var s=Pt(a[n],i)||{};return Array.isArray(s)?s.map(function(o){return Ha({preTag:t,postTag:r,highlightedValue:Aa(o.value)})}):Ha({preTag:t,postTag:r,highlightedValue:Aa(s.value)})}var Vm=function(e,t){return t.slots.default()};const ai={name:"AisHighlighter",props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"},suit:{type:Function,required:!0},highlightProperty:{type:String,required:!0},preTag:{type:String,required:!0},postTag:{type:String,required:!0}},data:function(){return{TextNode:Vm}},computed:{parsedHighlights:function(){return Bm({attribute:this.attribute,hit:this.hit,highlightProperty:this.highlightProperty,preTag:this.preTag,postTag:this.postTag})}}};function Km(e,t,r,n,i,a){return E(),N("span",{class:r.suit()},[(E(!0),N(Le,null,Ve(a.parsedHighlights,function(s,o){var c=s.value,u=s.isHighlighted;return E(),N(Ho(u?r.highlightedTagName:i.TextNode),{class:[u&&r.suit("highlighted")],key:o},{default:we(function(){return[ae(B(c),1)]}),_:2},1032,["class"])}),128))],2)}ai.render=Km;const si={name:"AisHighlight",mixins:[q({name:"Highlight"})],components:{AisHighlighter:ai},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}};function zm(e,t,r,n,i,a){var s=zr("ais-highlighter");return E(),N(s,{hit:r.hit,attribute:r.attribute,"highlighted-tag-name":r.highlightedTagName,suit:e.suit,"highlight-property":"_highlightResult","pre-tag":"<mark>","post-tag":"</mark>"},null,8,["hit","attribute","highlighted-tag-name","suit"])}si.render=zm;const to={name:"AisHits",mixins:[z({connector:$f},{$$widgetType:"ais.hits"}),q({name:"Hits"})],props:{escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0}},computed:{items:function(){return this.state.hits},widgetParams:function(){return{escapeHTML:this.escapeHTML,transformItems:this.transformItems}}}};function Jm(e,t,r,n,i,a){return e.state?(E(),N("div",{key:0,class:e.suit()},[ee(e.$slots,"default",{items:a.items,insights:e.state.insights,sendEvent:e.state.sendEvent},function(){return[I("ol",{class:e.suit("list")},[(E(!0),N(Le,null,Ve(a.items,function(s,o){return E(),N("li",{key:s.objectID,class:e.suit("item"),onClick:function(c){return e.state.sendEvent("click:internal",s,"Hit Clicked")},onAuxclick:function(c){return e.state.sendEvent("click:internal",s,"Hit Clicked")}},[ee(e.$slots,"item",{item:s,index:o,insights:e.state.insights,sendEvent:e.state.sendEvent},function(){return[ae(" objectID: "+B(s.objectID)+", index: "+B(o),1)]})],42,["onClick","onAuxclick"])}),128))],2)]})],2)):V("",!0)}to.render=Jm;q({name:"HitsPerPage"}),z({connector:Lf},{$$widgetType:"ais.hitsPerPage"}),je();function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}var Gm=["initialSearchParameters"];function La(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?La(Object(r),!0).forEach(function(n){Tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):La(Object(r)).forEac
33h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tt(e,t,r){return t=Ym(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ym(e){var t=Xm(e,"string");return mr(t)==="symbol"?t:String(t)}function Xm(e,t){if(mr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ro(e){return rg(e)||tg(e)||eg(e)||Zm()}function Zm(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 34In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eg(e,t){if(e){if(typeof e=="string")return Nn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nn(e,t)}}function tg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rg(e){if(Array.isArray(e))return Nn(e)}function Nn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ng(e,t){if(e==null)return{};var r=ig(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ig(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var jt=X({name:"index-widget"});function no(e,t){var r=t.state,n=t.isPageReset,i=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:n,_uiState:i}))}function Er(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.reduce(function(n,i){return nt(i)||!i.getWidgetUiState&&!i.getWidgetState?n:i.getWidgetUiState?i.getWidgetUiState(n,t):i.getWidgetState(n,t)},r)}function Ar(e,t){var r=t.initialSearchParameters,n=ng(t,Gm);return e.filter(function(i){return!nt(i)}).reduce(function(i,a){return a.getWidgetSearchParameters?a.getWidgetSearchParameters(i,n):i},r)}function io(e){var t=e.filter(nt);t.length!==0&&t.forEach(function(r){var n=r.getHelper();no(n,{state:n.state.resetPage(),isPageReset:!0}),io(r.getWidgets())})}function ao(e){var t=e.filter(nt);return t.reduce(function(r,n){return r.concat.apply(r,[{indexId:n.getIndexId(),results:n.getResults(),helper:n.getHelper()}].concat(ro(ao(n.getWidgets()))))},[])}var ag=function(t){if(t===void 0||t.indexName===void 0)throw new Error(jt("The `indexName` option is required."));var r=t.indexName,n=t.indexId,i=n===void 0?r:n,a=[],s={},o=null,c=null,u=null,f=null,p=null;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return u},getResults:function(){var g;return(g=f)!==null&&g!==void 0&&g.lastResults?(f.lastResults._state=u.state,f.lastResults):null},getPreviousState:function(){return p},getScopedResults:function(){var g=this.getParent(),m=g?g.getWidgets():[this];return ao(m)},getParent:function(){return c},createURL:function(g){return o._createURL(Tt({},i,Er(a,{searchParameters:g,helper:u})))},getWidgets:function(){return a},addWidgets:function(g){var m=this;if(!Array.isArray(g))throw new Error(jt("The `addWidgets` method expects an array of widgets."));if(g.some(function(l){return typeof l.init!="function"&&typeof l.render!="function"}))throw new Error(jt("The widget definition expects a `render` and/or an `init` method."));return a=a.concat(g),o&&g.length&&(no(u,{state:Ar(a,{uiState:s,initialSearchParameters:u.state}),_uiState:s}),g.forEach(function(l){if(l.getRenderState){var h=l.getRenderState(o.renderState[m.getIndexId()]||{}
34,xt(o,m,o._initialUiState));vn({renderState:h,instantSearchInstance:o,parent:m})}}),g.forEach(function(l){l.init&&l.init(xt(o,m,o._initialUiState))}),o.scheduleSearch()),this},removeWidgets:function(g){var m=this;if(!Array.isArray(g))throw new Error(jt("The `removeWidgets` method expects an array of widgets."));if(g.some(function(h){return typeof h.dispose!="function"}))throw new Error(jt("The widget definition expects a `dispose` method."));if(a=a.filter(function(h){return g.indexOf(h)===-1}),o&&g.length){var l=g.reduce(function(h,v){var b=v.dispose({helper:u,state:h,parent:m});return b||h},u.state);s=Er(a,{searchParameters:l,helper:u}),u.setState(Ar(a,{uiState:s,initialSearchParameters:l})),a.length&&o.scheduleSearch()}return this},init:function(g){var m=this,l,h=g.instantSearchInstance,v=g.parent,b=g.uiState;if(u===null){o=h,c=v,s=b[i]||{};var y=h.mainHelper,w=Ar(a,{uiState:s,initialSearchParameters:new He.SearchParameters({index:r})});u=He({},w.index,w),u.search=function(){return h.onStateChange?(h.onStateChange({uiState:h.mainIndex.getWidgetUiState({}),setUiState:function(O){return h.setUiState(O,!1)}}),y):y.search()},u.searchWithoutTriggeringOnStateChange=function(){return y.search()},u.searchForFacetValues=function(S,O,$,_){var A=u.state.setQueryParameters(_);return y.searchForFacetValues(S,O,$,A)},f=y.derive(function(){return At.apply(void 0,ro(yc(m)))});var P=(l=h._initialResults)===null||l===void 0?void 0:l[this.getIndexId()];if(P){var R=new He.SearchResults(new He.SearchParameters(P.state),P.results);f.lastResults=R,u.lastResults=R}u.on("change",function(S){var O=S.isPageReset;O&&io(a)}),f.on("search",function(){h.scheduleStalledRender()}),f.on("result",function(S){var O=S.results;h.scheduleRender(),u.lastResults=O,p=O==null?void 0:O._state}),a.forEach(function(S){if(S.getRenderState){var O=S.getRenderState(h.renderState[m.getIndexId()]||{},xt(h,m,b));vn({renderState:O,instantSearchInstance:h,parent:m})}}),a.forEach(function(S){S.init&&S.init(xt(h,m,b))}),u.on("change",function(S){var O=S.state,$=S._uiState;s=Er(a,{searchParameters:O,helper:u},$||{}),h.onStateChange||h.onInternalStateChange()}),P&&h.scheduleRender()}},render:function(g){var m=this,l=g.instantSearchInstance;l.status==="error"&&!l.mainHelper.hasPendingRequests()&&p&&u.setState(p);var h=this.getResults()?a:a.filter(nt);h.forEach(function(v){if(v.getRenderState){var b=v.getRenderState(l.renderState[m.getIndexId()]||{},Ri(l,m));vn({renderState:b,instantSearchInstance:l,parent:m})}}),h.forEach(function(v){v.render&&v.render(Ri(l,m))})},dispose:function(){var g=this,m,l;a.forEach(function(h){h.dispose&&h.dispose({helper:u,state:u.state,parent:g})}),o=null,c=null,(m=u)===null||m===void 0||m.removeAllListeners(),u=null,(l=f)===null||l===void 0||l.detach(),f=null},getWidgetUiState:function(g){return a.filter(nt).reduce(function(m,l){return l.getWidgetUiState(m)},Ue(Ue({},g),{},Tt({},i,Ue(Ue({},g[i]),s))))},getWidgetState:function(g){return this.getWidgetUiState(g)},getWidgetSearchParameters:function(g,m){var l=m.uiState;return Ar(a,{uiState:l,initialSearchParameters:g})},refreshUiState:function(){s=Er(a,{searchParameters:this.getHelper().state,helper:this.getHelper()},s)},setIndexUiState:function(g){var m=typeof g=="function"?g(s):g;o.setUiState(function(l){return Ue(Ue({},l),{},Tt({},i,m))})}}};const so=ag;function vn(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=Ue(Ue({},r.renderState),{},Tt({},i,Ue(Ue({},r.renderState[i]),t)))}q({name:"Index"}),z({connector:function(){return so}},{$$widgetType:"ais.index"}),Sr(function(e){return e("div",{},Jr(this))});var sg="ais",Zr=function(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.descendantName,i=r.modifierName,a=n?"-".concat(n):"",s=i?"--".concat(i):"";return"".concat(sg,"-").concat(t).concat(a).concat(s)}},og=Zr("Highlight");function oo(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,s=a===void 0?{}:a,o=Pt(i._highlightResult,t),c=o||{},u=c.value,f=u===void 0?"":u,p=og({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return f.replace(new RegExp(ve.highlightPreTag,"g"),"<".concat(n,' class="').concat(p,'">')).replace(new RegExp(ve.highlightPostTag,"g"),"</".concat(n,">"))}var ug=Zr("ReverseHighlight");function uo(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasse
34s,s=a===void 0?{}:a,o=Pt(i._highlightResult,t),c=o||{},u=c.value,f=u===void 0?"":u,p=ug({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),d=ns(ls(os(f)));return d.replace(new RegExp(ve.highlightPreTag,"g"),"<".concat(n,' class="').concat(p,'">')).replace(new RegExp(ve.highlightPostTag,"g"),"</".concat(n,">"))}var cg=Zr("Snippet");function co(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,s=a===void 0?{}:a,o=Pt(i._snippetResult,t),c=o||{},u=c.value,f=u===void 0?"":u,p=cg({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return f.replace(new RegExp(ve.highlightPreTag,"g"),"<".concat(n,' class="').concat(p,'">')).replace(new RegExp(ve.highlightPostTag,"g"),"</".concat(n,">"))}var fg=Zr("ReverseSnippet");function fo(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,s=a===void 0?{}:a,o=Pt(i._snippetResult,t),c=o||{},u=c.value,f=u===void 0?"":u,p=fg({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),d=ns(ls(os(f)));return d.replace(new RegExp(ve.highlightPreTag,"g"),"<".concat(n,' class="').concat(p,'">')).replace(new RegExp(ve.highlightPostTag,"g"),"</".concat(n,">"))}function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}var lg="_ALGOLIA";function dg(e){if(!((typeof document>"u"?"undefined":Wn(document))!=="object"||typeof document.cookie!="string"))for(var 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(i.indexOf(t)===0)return i.substring(t.length,i.length)}}function lo(){return dg(lg)}function hg(){return lo()}var mg=["page"];function gg(e,t){if(e==null)return{};var r=pg(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pg(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Da(e){var t=e||{};t.page;var r=gg(t,mg);return r}var yn="ais.infiniteHits";function vg(){return{read:function(t){var r=t.state,n=ke(function(a){var s=a.window;return s.sessionStorage});if(!n)return null;try{var i=JSON.parse(n.getItem(yn));return i&&Pr(i.state,Da(r))?i.hits:null}catch(a){if(a instanceof SyntaxError)try{n.removeItem(yn)}catch{}return null}},write:function(t){var r=t.state,n=t.hits,i=ke(function(a){var s=a.window;return s.sessionStorage});if(i)try{i.setItem(yn,JSON.stringify({state:Da(r),hits:n}))}catch{}}}}function gr(e){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(e)}function Ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ca(Object(r),!0).forEach(function(n){yg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ca(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yg(e,t,r){return t=bg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bg(e){var t=Sg(e,"string");return gr(t)==="symbol"?t:String(t)}function Sg(e,t){if(gr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ur(e,t){return Rg(e)||Pg(e,t)||ho(e,t)||wg()}
34function wg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 35In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pg(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(f){u=!0,i=f}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function Rg(e){if(Array.isArray(e))return e}function Og(e){return jg(e)||_g(e)||ho(e)||$g()}function $g(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 36In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ho(e,t){if(e){if(typeof e=="string")return Mn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mn(e,t)}}function _g(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jg(e){if(Array.isArray(e))return Mn(e)}function Mn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mo="2.6.0",Fg="https://cdn.jsdelivr.net/npm/search-insights@".concat(mo,"/dist/search-insights.min.js");function xg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=i===void 0?!1:i,s=t;!t&&t!==null&&ke(function(c){var u=c.window,f=u.AlgoliaAnalyticsObject||"aa";typeof f=="string"&&(s=u[f]),s||(u.AlgoliaAnalyticsObject=f,u[f]||(u[f]=function(){u[f].queue||(u[f].queue=[]);for(var p=arguments.length,d=new Array(p),g=0;g<p;g++)d[g]=arguments[g];u[f].queue.push(d)},u[f].version=mo,u[f].shouldAddScript=!0),s=u[f])});var o=s||k;return function(c){var u=c.instantSearchInstance,f=u.middleware.filter(function(P){return P.instance.$$type==="ais.insights"&&P.instance.$$internal}).map(function(P){return P.creator});u.unuse.apply(u,Og(f));var p=Mu(u.client),d=Ur(p,2),g=d[0],m=d[1],l=void 0,h=void 0;if(Array.isArray(o.queue)){var v=it(o.queue.slice().reverse(),function(P){var R=Ur(P,1),S=R[0];return S==="setUserToken"})||[],b=Ur(v,2);l=b[1]}o("getUserToken",null,function(P,R){h=R}),(r||!Na(o))&&o("init",at({appId:g,apiKey:m,partial:!0},r));var y,w;return{$$type:"ais.insights",$$internal:a,onStateChange:function(){},subscribe:function(){if(o.shouldAddScript){var R="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var S=document.createElement("script");S.async=!0,S.src=Fg,S.onerror=function(){u.emit("error",new Error(R))},document.body.appendChild(S),o.shouldAddScript=!1}catch{o.shouldAddScript=!1,u.emit("error",new Error(R))}}},started:function(){o("addAlgoliaAgent","insights-middleware"),w=u.helper,y={userToken:w.state.userToken,clickAnalytics:w.state.clickAnalytics},w.overrideStateWithoutTriggeringChangeEvent(at(at({},w.state),{},{clickAnalytics:!0})),a||u.scheduleSearch();var R=function(_){if(_){var A=w.state.userToken;w.overrideStateWithoutTriggeringChangeEvent(at(at({},w.state),{},{userToken:_})),A&&A!==_&&u.scheduleSearch()}},S=lo();S&&R(S),h?(R(h),o("setUserToken",h)):l&&(R(l),o("setUserToken",l)),o("onUserTokenChange",R,{immediate:!0});var O=o;Na(o)&&(O=function(_,A){var W={headers:{"X-Algolia-Application-Id":g,"X-Algolia-API-Key":m}};return o(_,A,W)}),u.sendEventToInsights=function($){n?n($,O):$.insightsMethod&&($.payload.algoliaSource=["instantsearch"],$.eventModifier==="internal"&&$.payload.algoliaSource.push("instantsearch-internal"),O($.insightsMethod,$.payload))}},unsubscribe:function(){o("onUserTokenChange",void 0),u.sendEventToInsights=k,w&&y&&(w.overrideStateWithoutTriggeringChangeEvent(at(at({},w.state),y)),u.scheduleSearch())}}}}function Na(e){var t=(e.version||"").split(".").map(Number),r=Ur(t,2),n=r[0],i=r[1],a=n>=3,s=n===2&&i>=6,o=n===1&&i>=10;return a||s||o}function go(e,t,r){var n=xt(t,t.mainIndex,t._initialUiState);e.forEach(function(i){var a={};if(i.getWidgetRenderState){var s=i.getWidgetRenderState(n);s&&s.widgetParams&&(a=s.widgetParams)}var o=Object.keys(a).filter(function(c){return a[c]!==void 0});r.widgets.push({type:i.$$type,widgetType:i.$$widgetType,params:o}),i.$$type==="ais.index"&&go(i.getWidgets(),t,r)})}function Ig(){return ke(function(e){var t,r,n=e.window;return((t=n.navigator)===null||t===void 0||(r=t.userAgent)===null||r===void 0?void 0:r.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})}function Eg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.$$internal,r=t===void 0?!1:t;return function(n){var i=n.instantSearchInstance,a={widgets:[]},s=document.createElement("meta"),o=document.querySelector("head");return s.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var u=i.client;a.ua=u.transporter&&u.transporter.userAgent?u.transporter.userAgent.value:u._ua,go(i.mainIndex.getWidgets(),i,a),i.middleware.forEach(function(f){return a.widgets.push({middleware:!0,type:f.instance.$$type,internal:f.instance.$$internal})}),s.content=JSON.stringify(a),o.appendChild(s)},0)},started:function(){},unsubscribe:function(){s.remove()}}}}var Ag=String.prototype.replace,Tg=/%20/g,bn={RFC1738:"RFC1738",RFC3986:"RFC3986"},oi={default:bn.RFC3986,formatters:{RFC1738:function(e){return Ag.call(e,Tg,"+")},RFC3986:function(e){return String(e)}},RFC1738:bn.RFC1738,RFC3986:bn.RFC3986},Hg=oi,Sn=Object.prototype.hasOwnProperty,ot=Array.isArray,We=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Lg=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(ot(n)){for(var i=[],a=0;a<n.length;++a)typeof n[a]<"u"&&i.push(n[a]);r.obj[r.prop]=i}}},po=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},Dg=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(ot(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Sn.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return ot(t)&&!ot(r)&&(i=po(t,n)),ot(t)&&ot(r)?(r.forEach(function(a,s){if(Sn.call(t,s)){var o=t[s];o&&typeof o=="object"&&a&&typeof a=="object"?t[s]=e(o,a,n):t.push(a)}else t[s]=a}),t):Object.keys(r).reduce(function(a,s){var o=r[s];return Sn.call(a,s)?a[s]=e(a[s],o,n):a[s]=o,a},i)},Cg=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},Ng=function(e,t,r){var n=e.replace(/\+/g," ");
36if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Wg=function(t,r,n,i,a){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var o="",c=0;c<s.length;++c){var u=s.charCodeAt(c);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===Hg.RFC1738&&(u===40||u===41)){o+=s.charAt(c);continue}if(u<128){o=o+We[u];continue}if(u<2048){o=o+(We[192|u>>6]+We[128|u&63]);continue}if(u<55296||u>=57344){o=o+(We[224|u>>12]+We[128|u>>6&63]+We[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),o+=We[240|u>>18]+We[128|u>>12&63]+We[128|u>>6&63]+We[128|u&63]}return o},Mg=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var a=r[i],s=a.obj[a.prop],o=Object.keys(s),c=0;c<o.length;++c){var u=o[c],f=s[u];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r.push({obj:s,prop:u}),n.push(f))}return Lg(r),t},Ug=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},kg=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Qg=function(t,r){return[].concat(t,r)},qg=function(t,r){if(ot(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},vo={arrayToObject:po,assign:Cg,combine:Qg,compact:Mg,decode:Ng,encode:Wg,isBuffer:kg,isRegExp:Ug,maybeMap:qg,merge:Dg},Un=vo,Ht=oi,Bg=Object.prototype.hasOwnProperty,Wa={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},ut=Array.isArray,Vg=String.prototype.split,Kg=Array.prototype.push,yo=function(e,t){Kg.apply(e,ut(t)?t:[t])},zg=Date.prototype.toISOString,Ma=Ht.default,le={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Un.encode,encodeValuesOnly:!1,format:Ma,formatter:Ht.formatters[Ma],indices:!1,serializeDate:function(t){return zg.call(t)},skipNulls:!1,strictNullHandling:!1},Jg=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Gg=function e(t,r,n,i,a,s,o,c,u,f,p,d,g,m){var l=t;if(typeof o=="function"?l=o(r,l):l instanceof Date?l=f(l):n==="comma"&&ut(l)&&(l=Un.maybeMap(l,function(A){return A instanceof Date?f(A):A})),l===null){if(i)return s&&!g?s(r,le.encoder,m,"key",p):r;l=""}if(Jg(l)||Un.isBuffer(l)){if(s){var h=g?r:s(r,le.encoder,m,"key",p);if(n==="comma"&&g){for(var v=Vg.call(String(l),","),b="",y=0;y<v.length;++y)b+=(y===0?"":",")+d(s(v[y],le.encoder,m,"value",p));return[d(h)+"="+b]}return[d(h)+"="+d(s(l,le.encoder,m,"value",p))]}return[d(r)+"="+d(String(l))]}var w=[];if(typeof l>"u")return w;var P;if(n==="comma"&&ut(l))P=[{value:l.length>0?l.join(",")||null:void 0}];else if(ut(o))P=o;else{var R=Object.keys(l);P=c?R.sort(c):R}for(var S=0;S<P.length;++S){var O=P[S],$=typeof O=="object"&&typeof O.value<"u"?O.value:l[O];if(!(a&&$===null)){var _=ut(l)?typeof n=="function"?n(r,O):r:r+(u?"."+O:"["+O+"]");yo(w,e($,_,n,i,a,s,o,c,u,f,p,d,g,m))}}return w},Yg=function(t){if(!t)return le;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||le.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Ht.default;if(typeof t.format<"u"){if(!Bg.call(Ht.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=Ht.formatters[n],a=le.filter;return(typeof t.filter=="function"||ut(t.filter))&&(a=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:le.addQueryPrefix,allowDots:typeof t.allowDots>"u"?le.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:le.charsetSentinel,delimiter:typeof t.delimiter>"u"?le.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:le.encode,encoder:typeof t.encoder=="function"?t.encoder:le.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:le.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:le.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:le.
36skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:le.strictNullHandling}},Xg=function(e,t){var r=e,n=Yg(t),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):ut(n.filter)&&(a=n.filter,i=a);var s=[];if(typeof r!="object"||r===null)return"";var o;t&&t.arrayFormat in Wa?o=t.arrayFormat:t&&"indices"in t?o=t.indices?"indices":"repeat":o="indices";var c=Wa[o];i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=0;u<i.length;++u){var f=i[u];n.skipNulls&&r[f]===null||yo(s,Gg(r[f],f,c,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset))}var p=s.join(n.delimiter),d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),p.length>0?d+p:""},St=vo,kn=Object.prototype.hasOwnProperty,Zg=Array.isArray,fe={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:St.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ep=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},bo=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},tp="utf8=%26%2310003%3B",rp="utf8=%E2%9C%93",np=function(t,r){var n={},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,a),o=-1,c,u=r.charset;if(r.charsetSentinel)for(c=0;c<s.length;++c)s[c].indexOf("utf8=")===0&&(s[c]===rp?u="utf-8":s[c]===tp&&(u="iso-8859-1"),o=c,c=s.length);for(c=0;c<s.length;++c)if(c!==o){var f=s[c],p=f.indexOf("]="),d=p===-1?f.indexOf("="):p+1,g,m;d===-1?(g=r.decoder(f,fe.decoder,u,"key"),m=r.strictNullHandling?null:""):(g=r.decoder(f.slice(0,d),fe.decoder,u,"key"),m=St.maybeMap(bo(f.slice(d+1),r),function(l){return r.decoder(l,fe.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=ep(m)),f.indexOf("[]=")>-1&&(m=Zg(m)?[m]:m),kn.call(n,g)?n[g]=St.combine(n[g],m):n[g]=m}return n},ip=function(e,t,r,n){for(var i=n?t:bo(t,r),a=e.length-1;a>=0;--a){var s,o=e[a];if(o==="[]"&&r.parseArrays)s=[].concat(i);else{s=r.plainObjects?Object.create(null):{};var c=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(c,10);!r.parseArrays&&c===""?s={0:i}:!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(s=[],s[u]=i):c!=="__proto__"&&(s[c]=i)}i=s}return i},ap=function(t,r,n,i){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(a),u=c?a.slice(0,c.index):a,f=[];if(u){if(!n.plainObjects&&kn.call(Object.prototype,u)&&!n.allowPrototypes)return;f.push(u)}for(var p=0;n.depth>0&&(c=o.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&kn.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(c[1])}return c&&f.push("["+a.slice(c.index)+"]"),ip(f,r,n,i)}},sp=function(t){if(!t)return fe;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?fe.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?fe.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:fe.allowPrototypes,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:fe.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:fe.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:fe.comma,decoder:typeof t.decoder=="function"?t.decoder:fe.decoder,delimiter:typeof t.delimiter=="string"||St.isRegExp(t.delimiter)?t.delimiter:fe.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:fe.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:fe.
36interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:fe.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:fe.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:fe.strictNullHandling}},op=function(e,t){var r=sp(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?np(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),s=0;s<a.length;++s){var o=a[s],c=ap(o,n[o],r,typeof e=="string");i=St.merge(i,c,r)}return St.compact(i)},up=Xg,cp=op,fp=oi,lp={formats:fp,parse:cp,stringify:up};const Ua=Bn(lp);function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function dp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,So(n.key),n)}}function hp(e,t,r){return t&&ka(e.prototype,t),r&&ka(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oe(e,t,r){return t=So(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function So(e){var t=mp(e,"string");return pr(t)==="symbol"?t:String(t)}function mp(e,t){if(pr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qa=function(t){t&&(window.document.title=t)},gp=function(){function e(t){var r=this,n=t.windowTitle,i=t.writeDelay,a=i===void 0?400:i,s=t.createURL,o=t.parseURL,c=t.getLocation,u=t.start,f=t.dispose,p=t.push;dp(this,e),Oe(this,"$$type","ais.browser"),Oe(this,"windowTitle",void 0),Oe(this,"writeDelay",void 0),Oe(this,"_createURL",void 0),Oe(this,"parseURL",void 0),Oe(this,"getLocation",void 0),Oe(this,"writeTimer",void 0),Oe(this,"_onPopState",void 0),Oe(this,"inPopState",!1),Oe(this,"isDisposed",!1),Oe
36(this,"latestAcknowledgedHistory",0),Oe(this,"_start",void 0),Oe(this,"_dispose",void 0),Oe(this,"_push",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=a,this._createURL=s,this.parseURL=o,this.getLocation=c,this._start=u,this._dispose=f,this._push=p,ke(function(d){var g=d.window,m=r.windowTitle&&r.windowTitle(r.read());Qa(m),r.latestAcknowledgedHistory=g.history.length})}return hp(e,[{key:"read",value:function(){return this.parseURL({qsModule:Ua,location:this.getLocation()})}},{key:"write",value:function(r){var n=this;ke(function(i){var a=i.window,s=n.createURL(r),o=n.windowTitle&&n.windowTitle(r);n.writeTimer&&clearTimeout(n.writeTimer),n.writeTimer=setTimeout(function(){Qa(o),n.shouldWrite(s)&&(n._push?n._push(s):a.history.pushState(r,o||"",s),n.latestAcknowledgedHistory=a.history.length),n.inPopState=!1,n.writeTimer=void 0},n.writeDelay)})}},{key:"onUpdate",value:function(r){var n=this;this._start&&this._start(function(){r(n.read())}),this._onPopState=function(){n.writeTimer&&(clearTimeout(n.writeTimer),n.writeTimer=void 0),n.inPopState=!0,r(n.read())},ke(function(i){var a=i.window;a.addEventListener("popstate",n._onPopState)})}},{key:"createURL",value:function(r){var n=this._createURL({qsModule:Ua,routeState:r,location:this.getLocation()});return n}},{key:"dispose",value:function(){var r=this;this._dispose&&this._dispose(),this.isDisposed=!0,ke(function(n){var i=n.window;r._onPopState&&i.removeEventListener("popstate",r._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(r){var n=this;return ke(function(i){var a=i.window,s=!(n.isDisposed&&n.latestAcknowledgedHistory!==a.history.length);return!n.inPopState&&s&&r!==a.location.href})}}]),e}();function pp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.createURL,r=t===void 0?function(g){var m=g.qsModule,l=g.routeState,h=g.location,v=h.protocol,b=h.hostname,y=h.port,w=y===void 0?"":y,P=h.pathname,R=h.hash,S=m.stringify(l),O=w===""?"":":".concat(w);return S?"".concat(v,"//").concat(b).concat(O).concat(P,"?").concat(S).concat(R):"".concat(v,"//").concat(b).concat(O).concat(P).concat(R)}:t,n=e.parseURL,i=n===void 0?function(g){var m=g.qsModule,l=g.location;return m.parse(l.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,s=a===void 0?400:a,o=e.windowTitle,c=e.getLocation,u=c===void 0?function(){return ke(function(g){var m=g.window;return m.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:c,f=e.start,p=e.dispose,d=e.push;return new gp({createURL:r,parseURL:i,writeDelay:s,windowTitle:o,getLocation:u,start:f,dispose:p,push:d})}function vr(e){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(e)}var vp=["configure"];function qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qa(Object(r),!0).forEach(function(n){Qn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qn(e,t,r){return t=yp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yp(e){var t=bp(e,"string");return vr(t)==="symbol"?t:String(t)}function bp(e,t){if(vr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sp(e,t){if(e==null)return{};var r=wp(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wp(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Ba(e){e.configure;var t=Sp(e,vp);return t}function Pp(){return{$$type:"ais.simple",stateToRoute:function(t){return Object.keys(t).reduce(function(r,n){return Tr(Tr({},r),{},Qn({},n,Ba(t[n])))},{})},routeToState:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(r,n){return Tr(Tr({},r),{},Qn({},n,Ba(t[n])))},{})}}}function yr(e){"@babel/helpers - typeof";return yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(e)}function Va(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
36t%2?Va(Object(r),!0).forEach(function(n){wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Va(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wo(e,t,r){return t=Rp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rp(e){var t=Op(e,"string");return yr(t)==="symbol"?t:String(t)}function Op(e,t){if(yr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $p=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.router,n=r===void 0?pp():r,i=t.stateMapping,a=i===void 0?Pp():i,s=t.$$internal,o=s===void 0?!1:s;return function(c){var u=c.instantSearchInstance;function f(g){var m=Object.keys(g).reduce(function(h,v){return Hr(Hr({},h),{},wo({},v,g[v]))},u.mainIndex.getWidgetUiState({})),l=a.stateToRoute(m);return n.createURL(l)}u._createURL=f;var p=void 0,d=u._initialUiState;return{$$type:"ais.router({router:".concat(n.$$type||"__unknown__",", stateMapping:").concat(a.$$type||"__unknown__","})"),$$internal:o,onStateChange:function(m){var l=m.uiState,h=a.stateToRoute(l);(p===void 0||!Pr(p,h))&&(n.write(h),p=h)},subscribe:function(){u._initialUiState=Hr(Hr({},d),a.routeToState(n.read())),n.onUpdate(function(m){u.setUiState(a.routeToState(m))})},started:function(){var m;(m=n.start)===null||m===void 0||m.call(n)},unsubscribe:function(){n.dispose()}}}};function _p(e,t){return e.toLocaleString(t)}function br(e){"@babel/helpers - typeof";return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},br(e)}function Ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ka(Object(r),!0).forEach(function(n){jp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jp(e,t,r){return t=Fp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fp(e){var t=xp(e,"string");return br(t)==="symbol"?t:String(t)}function xp(e,t){if(br(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(br(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ip(e){var t=e.numberLocale;return{formatNumber:function(n,i){return _p(Number(i(n)),t)},highlight:function(n,i){try{var a=JSON.parse(n);return i(oo(Be(Be({},a),{},{hit:this})))}catch{throw new Error(` 37The highlight helper expects a JSON object of the format: 38{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseHighlight:function(n,i){try{var a=JSON.parse(n);return i(uo(Be(Be({},a),{},{hit:this})))}catch{throw new Error(` 39 The reverseHighlight helper expects a JSON object of the format: 40 { "attribute": "name", "highlightedTagName": "mark" }`)}},snippet:function(n,i){try{var a=JSON.parse(n);return i(co(Be(Be({},a),{},{hit:this})))}catch{throw new Error(` 41The snippet helper expects a JSON object of the format: 42{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseSnippet:function(n,i){try{var a=JSON.parse(n);return i(fo(Be(Be({},a),{},{hit:this})))}catch{throw new Error(` 43 The reverseSnippet helper expects a JSON object of the format: 44 { "attribute": "name", "highlightedTagName": "mark" }`)}},insights:function(n,i){try{var a=JSON.parse(n),s=a.method,o=a.payload;return i(ps(s,Be({objectIDs:[this.objectID]},o)))}catch{throw new Error(` 45The insights helper expects a JSON object of the format: 46{ "method": "method-name", "payload": { "eventName": "name of the event" } }`)}}}}const Po="4.56.1";function wt(e){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(e)}function za(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
46t%2?za(Object(r),!0).forEach(function(n){Z(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):za(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ap(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ja(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,Ro(n.key),n)}}function Tp(e,t,r){return t&&Ja(e.prototype,t),r&&Ja(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qn(e,t)}function qn(e,t){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qn(e,t)}function Lp(e){var t=Cp();return function(){var n=Kr(e),i;if(t){var a=Kr(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Dp(this,i)}}function Dp(e,t){if(t&&(wt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}function Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kr(e){return Kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kr(e)}function Z(e,t,r){return t=Ro(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ro(e){var t=Np(e,"string");return wt(t)==="symbol"?t:String(t)}function Np(e,t){if(wt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Me=X({name:"instantsearch"});function Wp(){return"#"}var Mp=function(e){Hp(r,e);var t=Lp(r);function r(n){var i;Ap(this,r),i=t.call(this),Z(Y(i),"client",void 0),Z(Y(i),"indexName",void 0),Z(Y(i),"insightsClient",void 0),Z(Y(i),"onStateChange",null),Z(Y(i),"helper",void 0),Z(Y(i),"mainHelper",void 0),Z(Y(i),"mainIndex",void 0),Z(Y(i),"started",void 0),Z(Y(i),"templatesConfig",void 0),Z(Y(i),"renderState",{}),Z(Y(i),"_stalledSearchDelay",void 0),Z(Y(i),"_searchStalledTimer",void 0),Z(Y(i),"_initialUiState",void 0),Z(Y(i),"_initialResults",void 0),Z(Y(i),"_createURL",void 0),Z(Y(i),"_searchFunction",void 0),Z(Y(i),"_mainHelperSearch",void 0),Z(Y(i),"middleware",[]),Z(Y(i),"sendEventToInsights",void 0),Z(Y(i),"status","idle"),Z(Y(i),"error",void 0),Z(Y(i),"scheduleSearch",$t(function(){i.started&&i.mainHelper.search()})),Z(Y(i),"scheduleRender",$t(function(){var $,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;($=i.mainHelper)!==null&&$!==void 0&&$.hasPendingRequests()||(clearTimeout(i._searchStalledTimer),i._searchStalledTimer=null,_&&(i.status="idle",i.error=void 0)),i.mainIndex.render({instantSearchInstance:Y(i)}),i.emit("render")})),Z(Y(i),"onInternalStateChange",$t(function(){var $=i.mainIndex.getWidgetUiState({});i.middleware.forEach(function(_){var A=_.instance;A.onStateChange({uiState:$})})})),i.setMaxListeners(100);var a=n.indexName,s=a===void 0?"":a,o=n.numberLocale,c=n.initialUiState,u=c===void 0?{}:c,f=n.routing,p=f===void 0?null:f,d=n.insights,g=d===void 0?!1:d,m=n.searchFunction,l=n.stalledSearchDelay,h=l===void 0?200:l,v=n.searchClient,b=v===void 0?null:v,y=n.insightsClient,w=y===void 0?null:y,P=n.onStateChange,R=P===void 0?null:P;if(b===null)throw new Error(Me("The `searchClient` option is required."));if(typeof b.search!="function")throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if(typeof b.addAlgoliaAgent=="function"&&b.addAlgoliaAgent("instantsearch.js (".concat(Po,")")),w&&typeof w!="function")throw new Error(Me("The `insightsClient` option should be a function."));if(i.client=b,i.insightsClient=w,i.indexName=s,i.helper=null,i.mainHelper=null,i.mainIndex=so({indexName:s}),i.onStateChange=R,i.started=!1,i.templatesConfig={helpers:Ip({numberLocale:o}),compileOptions:{}},i._stalledSearchDelay=h,i._searchStalledTimer=null,i._createURL=Wp,i._initialUiState=u,i._initialResults=null,m&&(i._searchFunction=m),i.sendEventToInsights=k,p){var S=typeof p=="boolean"?{}:p;S.$$internal=!0,i.use($p(S))}if(g){var O=typeof g=="boolean"?{}:g;O.$$internal=!0,i.use(xg(O))}return Ig()&&i.use(Eg({$$internal:!0})),i}return Tp(r,[{key:"_isSearchStalled",get:function(){return this.status==="stalled"}},{key:"use",value:function(){for(var i=this,a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];var c=s.map(function(u){var f=Ep({$$type:"__unknown__",$$internal:!1,subscribe:k,started:k,unsubscribe:k,onStateChange:k},u({instantSearchInstance:i}));return i.middleware.push({creator:u,instance:f}),f});
46return this.started&&c.forEach(function(u){u.subscribe(),u.started()}),this}},{key:"unuse",value:function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return this.middleware.filter(function(o){return a.includes(o.creator)}).forEach(function(o){return o.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(o){return!a.includes(o.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){return this.use.apply(this,arguments)}},{key:"addWidget",value:function(i){return this.addWidgets([i])}},{key:"addWidgets",value:function(i){if(!Array.isArray(i))throw new Error(Me("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(i.some(function(a){return typeof a.init!="function"&&typeof a.render!="function"}))throw new Error(Me("The widget definition expects a `render` and/or an `init` method."));return this.mainIndex.addWidgets(i),this}},{key:"removeWidget",value:function(i){return this.removeWidgets([i])}},{key:"removeWidgets",value:function(i){if(!Array.isArray(i))throw new Error(Me("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));if(i.some(function(a){return typeof a.dispose!="function"}))throw new Error(Me("The widget definition expects a `dispose` method."));return this.mainIndex.removeWidgets(i),this}},{key:"start",value:function(){var i=this;if(this.started)throw new Error(Me("The `start` method has already been called once."));var a=this.mainHelper||He(this.client,this.indexName);if(a.search=function(){return i.status="loading",i.scheduleRender(!1),a.searchOnlyWithDerivedHelpers()},this._searchFunction){var s={search:function(){return new Promise(k)}};this._mainHelperSearch=a.search.bind(a),a.search=function(){var c=i.mainIndex.getHelper(),u=He(s,c.state.index,c.state);return u.once("search",function(f){var p=f.state;c.overrideStateWithoutTriggeringChangeEvent(p),i._mainHelperSearch()}),u.on("change",function(f){var p=f.state;c.setState(p)}),i._searchFunction(u),a}}if(a.on("error",function(c){var u=c.error;if(!(u instanceof Error)){var f=u;u=Object.keys(f).reduce(function(p,d){return p[d]=f[d],p},new Error(f.message))}u.error=u,i.error=u,i.status="error",i.scheduleRender(!1),i.emit("error",u)}),this.mainHelper=a,this.middleware.forEach(function(c){var u=c.instance;u.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){var o=this.scheduleSearch;this.scheduleSearch=$t(k),$t(function(){i.scheduleSearch=o})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(c){var u=c.instance;u.started()})}},{key:"dispose",value:function(){var i;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),(i=this.mainHelper)===null||i===void 0||i.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(a){var s=a.instance;s.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var i=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){i.status="stalled",i.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(i){var a=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.mainHelper)throw new Error(Me("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var o=typeof i=="function"?i(this.mainIndex.getWidgetUiState({})):i;this.onStateChange&&s?this.onStateChange({uiState:o,setUiState:function(u){$n(typeof u=="function"?u(o):u,a.mainIndex),a.scheduleSearch(),a.onInternalStateChange()}}):($n(o,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.started)throw new Error(Me("The `start` method needs to be called before `createURL`."));return this._createURL(i)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(Me("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),r}(Fh);const Up=Mp;
46var Ce=function(t){return new Up(t)};Ce.version=Po;Ce.createInfiniteHitsSessionStorageCache=wr(vg);Ce.highlight=wr(oo);Ce.reverseHighlight=wr(uo);Ce.snippet=wr(co);Ce.reverseSnippet=wr(fo);Ce.insights=ps;Ce.getInsightsAnonymousUserToken=hg;Object.defineProperty(Ce,"widgets",{get:function(){throw new ReferenceError(`"instantsearch.widgets" are not available from the ES build. 47 48To import the widgets: 49 50import { searchBox } from 'instantsearch.js/es/widgets'`)}});Object.defineProperty(Ce,"connectors",{get:function(){throw new ReferenceError(`"instantsearch.connectors" are not available from the ES build. 51 52To import the connectors: 53 54import { connectSearchBox } from 'instantsearch.js/es/connectors'`)}});const kp=Ce;var Qp="4.10.1",Oo=function(e){var t;return Lt(((t={mixins:[q({name:"InstantSearch"})],provide:function(){return{$_ais_instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function(r){vt(!1),this.instantSearchInstance.helper.setClient(r).search()},indexName:function(r){this.instantSearchInstance.helper.setIndex(r||"").search()},stalledSearchDelay:function(r){this.instantSearchInstance._stalledSearchDelay=r},routing:function(){throw new Error(`routing configuration can not be changed dynamically at this point. 55 56Please open a new issue: https://github.com/algolia/instantsearch.js/discussions/new?category=ideas&labels=triage%2cLibrary%3A+Vue+InstantSearch&title=Feature%20request%3A%20dynamic%20props`)},onStateChange:function(){throw new Error(`onStateChange configuration can not be changed dynamically at this point. 57 58Please open a new issue: https://github.com/algolia/instantsearch.js/discussions/new?category=ideas&labels=triage%2cLibrary%3A+Vue+InstantSearch&title=Feature%20request%3A%20dynamic%20props`)},searchFunction:function(r){this.instantSearchInstance._searchFunction=r},middlewares:{immediate:!0,handler:function(r,n){var i=this;(n||[]).filter(function(a){return(r||[]).indexOf(a)===-1}).forEach(function(a){i.instantSearchInstance.unuse(a)}),(r||[]).filter(function(a){return(n||[]).indexOf(a)===-1}).forEach(function(a){i.instantSearchInstance.use(a)})}}},created:function(){var r=this.instantSearchInstance.client;typeof r.addAlgoliaAgent=="function"&&(r.addAlgoliaAgent("Vue ("+Lo+")"),r.addAlgoliaAgent("Vue InstantSearch ("+Qp+")"))},mounted:function(){var r=this;this.$nextTick(function(){r.instantSearchInstance.started||r.instantSearchInstance.start()})}}).beforeUnmount=function(){this.instantSearchInstance.started&&this.instantSearchInstance.dispose(),this.instantSearchInstance.__initialSearchResults=void 0},t),e)},Ga=`Vue InstantSearch: You used the prop api-key or app-id. 59These have been replaced by search-client. 60 61See more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client`;const qp=Oo({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,default:void 0},indexName:{type:String,required:!0},routing:{default:void 0,validator:function(e){return!(typeof e=="boolean"||!e.router&&!e.stateMapping)||(vt("The `routing` option expects an object with `router` and/or `stateMapping`.\n\nSee https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},insights:{default:void 0,validator:function(e){return typeof e=="boolean"||typeof e=="object"}},stalledSearchDelay:{type:Number,default:void 0},searchFunction:{type:Function,default:void 0},onStateChange:{type:Function,default:void 0},initialUiState:{type:Object,default:void 0},apiKey:{type:String,default:void 0,validator:function(e){return e&&vt(Ga),!1}},appId:{type:String,default:void 0,validator:function(e){return e&&vt(Ga),!1}},middlewares:{type:Array,default:null}},data:function(){return{instantSearchInstance:kp({searchClient:this.searchClient,insightsClient:this.insightsClient,insights:this.insights,indexName:this.indexName,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction,onStateChange:this.onStateChange,initialUiState:this.initialUiState})}},render:Sr(function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!1,t)},Jr(this))})});
61Oo({name:"AisInstantSearchSsr",inject:{$_ais_ssrInstantSearchInstance:{default:function(){throw new Error("`createServerRootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais_ssrInstantSearchInstance}},render:Sr(function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!0,t)},Jr(this))})});z({connector:Yf},{$$widgetType:"ais.infiniteHits"}),q({name:"InfiniteHits"});const $o={name:"AisMenu",mixins:[q({name:"Menu"}),z({connector:bs},{$$widgetType:"ais.menu"}),je()],props:{attribute:{type:String,required:!0},limit:{type:Number,default:void 0},showMoreLimit:{type:Number,default:void 0},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,transformItems:this.transformItems}},showShowMoreButton:function(){return this.state.canRefine&&this.showMore}}};function Bp(e,t,r,n,i,a){return e.state?(E(),N("div",{key:0,class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[ee(e.$slots,"default",{items:e.state.items,canRefine:e.state.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore,sendEvent:e.state.sendEvent},function(){return[I("ul",{class:e.suit("list")},[(E(!0),N(Le,null,Ve(e.state.items,function(s){return E(),N("li",{key:s.value,class:[e.suit("item"),s.isRefined&&e.suit("item","selected")]},[I("a",{href:e.state.createURL(s.value),class:e.suit("link"),onClick:$e(function(o){return e.state.refine(s.value)},["prevent"])},[I("span",{class:e.suit("label")},B(s.label),3),I("span",{class:e.suit("count")},B(s.count),3)],10,["href","onClick"])],2)}),128))],2),a.showShowMoreButton?(E(),N("button",{key:0,class:[e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")],disabled:!e.state.canToggleShowMore,onClick:t[1]||(t[1]=$e(function(s){return e.state.toggleShowMore()},["prevent"]))},[ee(e.$slots,"showMoreLabel",{isShowingMore:e.state.isShowingMore},function(){return[ae(B(e.state.isShowingMore?"Show less":"Show more"),1)]})],10,["disabled"])):V("",!0)]})],2)):V("",!0)}$o.render=Bp;q({name:"MenuSelect"}),z({connector:bs},{$$widgetType:"ais.menuSelect"}),je();ae(" See all ");z({connector:yl},{$$widgetType:"ais.numericMenu"}),q({name:"NumericMenu"}),je();const _o={name:"AisPagination",mixins:[q({name:"Pagination"}),z({connector:xl},{$$widgetType:"ais.pagination"}),je()],props:{padding:{type:Number,default:void 0,validator:function(e){return e>0}},totalPages:{type:Number,default:void 0,validator:function(e){return e>0}},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!0}},computed:{widgetParams:function(){return{padding:this.padding,totalPages:this.totalPages}}},emits:["page-change"],methods:{refine:function(e){var t=Math.min(Math.max(e,0),this.state.nbPages-1);this.state.refine(t),this.$emit("page-change",t)}}};function Vp(e,t,r,n,i,a){return e.state?(E(),N("div",{key:0,class:e.suit()},[ee(e.$slots,"default",{refine:a.refine,createURL:e.state.createURL,currentRefinement:e.state.currentRefinement,nbHits:e.state.nbHits,nbPages:e.state.nbPages,pages:e.state.pages,isFirstPage:e.state.isFirstPage,isLastPage:e.state.isLastPage},function(){var s,o,c,u;return[I("ul",{class:e.suit("list")},[r.showFirst?(E(),N("li",{key:0,class:(s={},s[e.suit("item")]=!0,s[e.suit("item","firstPage")]=!0,s[e.suit("item","disabled")]=e.state.isFirstPage,s)},[ee(e.$slots,"first",{createURL:function(){return e.state.createURL(0)},isFirstPage:e.state.isFirstPage,refine:function(){return a.refine(0)}},function(){return[e.state.isFirstPage?(E(),N("span",{key:1,class:e.suit("link"),"aria-label":"First"},"â¹â¹",2)):(E(),N("a",{key:0,class:e.suit("link"),"aria-label":"First",href:e.state.createURL(0),onClick:t[1]||(t[1]=$e(function(f){return a.refine(0)},["prevent"]))},"â¹â¹",10,["href"]))]})],2)):V("",!0),r.showPrevious?(E(),N("li",{key:1,class:(o={},o[e.suit("item")]=!0,o[e.suit("item","previousPage")]=!0,o[e.suit("item","disabled")]=e.state.isFirstPage,o)},[ee(e.$slots,"previous",{createURL:function(){return e.state.createURL(e.state.currentRefinement-1)},isFirstPage:e.state.isFirstPage,refine:function(){return a.refine(e.state.currentRefinement-1)}},function(){return[e.state.isFirstPage?(E(),N("span",{key:1,class:e.suit("link"),"aria-label":"Previous"},"â¹",2)):(E(),N("a",{key:0,class:e.suit("link"),"aria-label":"Previous",href:e.state.createURL(e.state.currentRefinement-1),onClick:t[2]||(t[2]=$e(function(f){return a.refine(e.state.currentRefinement-1)},["prevent"]))},"â¹",10,["href"]))]})],2)):V("",!0),(E(!0),N(Le,null,Ve(e.state.pages,function(f){var p;return E(),N("li",{class:(p={},p[e.suit("item")]=!0,p[e.suit("item","page")]=!0,p[e.suit("item","selected")]=e.state.currentRefinement===f,p),key:f},[ee(e.$slots,"item",{page:f,createURL:function(){return e.state.createURL(f)},isFirstPage:e.state.isFirstPage,isLastPage:e.state.isLastPage,refine:function(){return a.refine(f)}},function(){return[I("a",{class:e.suit("link"),href:e.state.createURL(f),"aria-label":"Page "+(f+1),onClick:$e(function(d){return a.refine(f)},["prevent"])},B(f+1),11,["href","aria-label","onClick"])]})],2)}),128)),r.showNext?(E(),N("li",{key:2,class:(c={},c[e.suit("item")]=!0,c[e.suit("item","nextPage")]=!0,c[e.suit("item","disabled")]=e.state.isLastPage,c)},[ee(e.$slots,"next",{createURL:function(){return e.state.createURL(e.state.currentRefinement+1)},isLastPage:e.state.isLastPage,refine:function(){return a.refine(e.state.currentRefinement+1)}},function(){return[e.state.isLastPage?(E(),N("span",{key:1,class:e.suit("link"),"aria-label":"Next"},"âº",2)):(E(),N("a",{key:0,class:e.suit("link"),"aria-label":"Next",href:e.state.createURL(e.state.currentRefinement+1),onClick:t[3]||(t[3]=$e(function(f){return a.refine(e.state.currentRefinement+1)},["prevent"]))},"âº",10,["href"]))]})],2)):V("",!0),r.showLast?(E(),N("li",{key:3,class:(u={},u[e.suit("item")]=!0,u[e.suit("item","lastPage")]=!0,u[e.suit("item","disabled")]=e.state.isLastPage,u)},[ee(e.$slots,"last",{createURL:function(){return e.state.createURL(e.state.nbPages-1)},isLastPage:e.state.isLastPage,refine:function(){return a.refine(e.state.nbPages-1)}},function(){return[e.state.isLastPage?(E(),N("span",{key:1,class:e.suit("link"),"aria-label":"Last"},"âºâº",2)):(E(),N("a",{key:0,class:e.suit("link"),"aria-label":"Last",href:e.state.createURL(e.state.nbPages-1),onClick:t[4]||(t[4]=$e(function(f){return a.refine(e.state.nbPages-1)},["prevent"]))},"âºâº",10,["href"]))]})],2)):V("",!0)],2)]})],2)):V("",!0)}_o.render=Vp;q({name:"Panel"}),Nm();q({name:"PoweredBy"});q({name:"QueryRuleContext"}),z({connector:Ys},{$$widgetType:"ais.queryRuleContext"});q({name:"QueryRuleCustomData"}),z({connector:Ys},{$$widgetType:"ais.queryRuleCustomData"});q({name:"RangeInput"}),z({connector:Nl},{$$widgetType:"ais.rangeInput"}),je();ae("to");ae(" Go ");q({name:"RatingMenu"}),z({connector:gd},{$$widgetType:"ais.ratingMenu"}),je();I("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"}},[I("symbol",{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"},[I("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"})]),I("symbol",{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"},[I("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"})])],-1);I("use",{"xlink:href":"#ais-RatingMenu-starSymbol"},null,-1);I("use",{"xlink:href":"#ais-RatingMenu-starEmptySymbol"},null,-1);ae("& Up");const ui={name:"SearchInput",mixins:[q({name:"SearchBox"})],props:{placeholder:{type:String,default:"Search hereâ¦"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,required:!1,default:void 0},modelValue:{type:String,required:!1,default:void 0}},emits:["input","update:modelValue","blur","focus","reset"],data:function(){return{query:""}},methods:{isFocused:function(){return document.activeElement===this.$refs.input},onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("reset")}}};var Kp=I("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",fillRule:"evenodd"},null,-1),zp=I("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",fillRule:"evenodd"},null,-1),Jp=I("g",{fill:"none","fill-rule":"evenodd"},[I("g",{transform:"translate(1 1)","stroke-width":"2"},[I("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),I("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[I("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indef
61inite"})])])],-1);function Gp(e,t,r,n,i,a){return E(),N("form",{action:"",role:"search",novalidate:"",class:e.suit("form"),onSubmit:t[4]||(t[4]=$e(function(){for(var s=[],o=arguments.length;o--;)s[o]=arguments[o];return a.onFormSubmit&&a.onFormSubmit.apply(a,s)},["prevent"])),onReset:t[5]||(t[5]=$e(function(){for(var s=[],o=arguments.length;o--;)s[o]=arguments[o];return a.onFormReset&&a.onFormReset.apply(a,s)},["prevent"]))},[I("input",{type:"search",autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false",required:"",maxlength:"512","aria-label":"Search",placeholder:r.placeholder,autofocus:r.autofocus,class:e.suit("input"),value:r.value||r.modelValue,onFocus:t[1]||(t[1]=function(s){return e.$emit("focus",s)}),onBlur:t[2]||(t[2]=function(s){return e.$emit("blur",s)}),onInput:t[3]||(t[3]=function(s){e.$emit("input",s.target.value),e.$emit("update:modelValue",s.target.value)}),ref:"input"},null,42,["placeholder","autofocus","value"]),I("button",{type:"submit",title:r.submitTitle,class:e.suit("submit"),hidden:r.showLoadingIndicator&&r.shouldShowLoadingIndicator},[ee(e.$slots,"submit-icon",{},function(){return[(E(),N("svg",{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40",class:e.suit("submitIcon")},[Kp],2))]})],10,["title","hidden"]),I("button",{type:"reset",title:r.resetTitle,class:e.suit("reset"),hidden:!r.value&&!r.modelValue||r.showLoadingIndicator&&r.shouldShowLoadingIndicator},[ee(e.$slots,"reset-icon",{},function(){return[(E(),N("svg",{"aria-hidden":"true",role:"img",xmlns:"http://www.w3.org/2000/svg",style:{width:"1em",height:"1em"},viewBox:"0 0 20 20",class:e.suit("resetIcon")},[zp],2))]})],10,["title","hidden"]),r.showLoadingIndicator?(E(),N("span",{key:0,hidden:!r.shouldShowLoadingIndicator,class:e.suit("loadingIndicator")},[ee(e.$slots,"loading-indicator",{},function(){return[(E(),N("svg",{role:"img","aria-label":"Results are loading",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",viewBox:"0 0 38 38",class:e.suit("loadingIcon")},[Jp],2))]})],10,["hidden"])):V("",!0)],34)}ui.render=Gp;var Yp=function(){};q({name:"RefinementList"}),z({connector:Bl},{$$widgetType:"ais.refinementList"}),je();var Lr;const jo=((Lr={name:"AisStateResults",mixins:[z({connector:!0}),q({name:"StateResults"})],props:{catchError:{type:Boolean,default:!1}},data:function(){var e=this;return{renderFn:function(){var t=e.instantSearchInstance,r=t.status,n=t.error,i=e.getParentIndex().getResults(),a=e.getParentIndex().getHelper(),s=a?a.state:null;e.state={results:i,state:s,status:r,error:n}}}},created:function(){this.instantSearchInstance.addListener("render",this.renderFn),this.renderFn()}}).beforeUnmount=function(){this.widget&&(this.instantSearchInstance.removeListener("render",this.renderFn),this.errorFn&&this.instantSearchInstance.removeListener("error",this.errorFn))},Lr.watch={catchError:{immediate:!0,handler:function(e){e?(this.errorFn=function(){},this.instantSearchInstance.addListener("error",this.errorFn)):this.errorFn&&(this.instantSearchInstance.removeListener("error",this.errorFn),this.errorFn=void 0)}}},Lr.computed={stateResults:function(){var e=this.state,t=e.results,r=e.state,n=e.status,i=e.error;return Lt({},t,{results:t,state:r,status:n,error:i})}},Lr);var Xp=I("p",null," Use this component to have a different layout based on a certain state. ",-1),Zp=I("p",null,"Fill in the slot, and get access to the following things:",-1);function ev(e,t,r,n,i,a){return e.state&&e.state.state&&e.state.results?(E(),N("div",{key:0,class:e.suit()},[ee(e.$slots,"default",a.stateResults,function(){return[Xp,Zp,I("pre",null,"results: "+B(Object.keys(e.state.results)),1),I("pre",null,"state: "+B(Object.keys(e.state.state)),1),I("pre",null,"status: "+B(e.state.status),1),I("pre",null,"error: "+B(e.state.error),1)]})],2)):V("",!0)}jo.render=ev;const Fo={name:"AisSearchBox",mixins:[z({connector:Xl},{$$widgetType:"ais.searchBox"}),q({name:"SearchBox"})],components:{SearchInput:ui},props:{placeholder:{type:String,default:"Search hereâ¦"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},queryHook:{type:Function,default:void 0}},data:function(){return{localValue:"",isVue2:cu,isVue3:fu}},computed:{widgetParams:function(){return{queryHook:this.queryHook}},isControlled:function(){return this.value!==void 0||this.modelValue!==void 0},model:function(){return this.value||this.modelValue},currentRefinement:{get:function(){this.isControlled&&this.model!==this.localValue&&(this.localValue=this.model,this.$emit("input",this.model),this.$emit("update:modelValue",this.model),this.state.refine(this.model));var e=this.$refs.searchInput;return e&&e.isFocused()?this.localValue:this.model||this.state.query||""},set:function(e){this.localValue=e,this.state.refine(e),this.isControlled&&(this.$emit("input",e),this.$emit("update:modelValue",e))}}}};function tv(e,t,r,n,i,a){var s=zr("search-input");return e.state?(E(),N("div",{key:0,class:e.suit()},[ee(e.$slots,"default",{currentRefinement:a.currentRefinement,isSearchStalled:e.state.isSearchStalled,refine:e.state.refine},function(){return[I(s,{onFocus:t[1]||(t[1]=function(o){return e.$emit("focus",o)}),onBlur:t[2]||(t[2]=function(o){return e.$emit("blur",o)}),onReset:t[3]||(t[3]=function(o){return e.$emit("reset")}),placeholder:r.placeholder,autofocus:r.autofocus,"show-loading-indicator":r.showLoadingIndicator,"should-show-loading-indicator":e.state.isSearchStalled,"submit-title":r.submitTitle,"reset-title":r.resetTitle,"class-names":e.classNames,modelValue:a.currentRefinement,"onUpdate:modelValue":t[4]||(t[4]=function(o){return a.currentRefinement=o}),ref:"searchInput"},Do({default:we(function(){return[i.isVue2?ee(e.$slots,"loading-indicator",{key:0,slot:"loading-indicator"}):V("",!0),i.isVue2?ee(e.$slots,"submit-icon",{key:1,slot:"submit-icon"}):V("",!0),i.isVue2?ee(e.$slots,"reset-icon",{key:2,slot:"reset-icon"}):V("",!0)]}),_:2},[i.isVue3?{name:"loading-indicator",fn:we(function(){return[ee(e.$slots,"loading-indicator")]})}:void 0,i.isVue3?{name:"submit-icon",fn:we(function(){return[ee(e.$slots,"submit-icon")]})}:void 0,i.isVue3?{name:"reset-icon",fn:we(function(){return[ee(e.$slots,"reset-icon")]})}:void 0]),1032,["placeholder","autofocus","show-loading-indicator","should-show-loading-indicator","submit-title","reset-title","class-names","modelValue"])]})],2)):V("",!0)}Fo.render=tv;q({name:"Snippet"});q({name:"SortBy"}),z({connector:nd},{$$widgetType:"ais.sortBy"}),je();const xo={name:"AisStats",mixins:[z({connector:wd},{$$widgetType:"ais.stats"}),q({name:"Stats"})],computed:{widgetParams:function(){return{}}}};function rv(e,t,r,n,i,a){return e.state?(E(),N("div",{key:0,class:e.suit()},[ee(e.$slots,"default",Co(e.state,{results:e.state.instantSearchInstance.helper.lastResults}),function(){return[I("span",{class:e.suit("text")},[e.state.areHitsSorted?(E(),N(Le,{key:0}
61,[ae(B(e.state.nbSortedHits.toLocaleString())+" relevant results sorted out of "+B(e.state.nbHits.toLocaleString()),1)],64)):(E(),N(Le,{key:1},[ae(B(e.state.nbHits.toLocaleString())+" results",1)],64)),ae(" found in "+B(e.state.processingTimeMS.toLocaleString())+"ms",1)],2)]})],2)):V("",!0)}xo.render=rv;q({name:"ToggleRefinement"}),z({connector:Ed},{$$widgetType:"ais.toggleRefinement"}),je();z({connector:Em},{$$widgetType:"ais.voiceSearch"}),q({name:"VoiceSearch"});I("line",{x1:"1",y1:"1",x2:"23",y2:"23"},null,-1);I("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"},null,-1);I("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"},null,-1);I("line",{x1:"12",y1:"19",x2:"12",y2:"23"},null,-1);I("line",{x1:"8",y1:"23",x2:"16",y2:"23"},null,-1);I("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"},null,-1);I("line",{x1:"12",y1:"19",x2:"12",y2:"23"},null,-1);I("line",{x1:"8",y1:"23",x2:"16",y2:"23"},null,-1);q({name:"RelevantSort"}),z({connector:Dm},{$$widgetType:"ais.relevantSort"});const nv={name:"AisDynamicWidgets",mixins:[z({connector:_c},{$$widgetType:"ais.dynamicWidgets"}),q({name:"DynamicWidgets"})],props:{transformItems:{type:Function,default:void 0},facets:{type:Array,default:void 0},maxValuesPerFacet:{type:Number,default:void 0}},render:Sr(function(e){var t=this,r=new Map;if((Jr(this)||[]).forEach(function(i){var a=function s(o){var c,u=o.props;if(u){if(u.attribute)return u.attribute;if(Array.isArray(u.attributes))return u.attributes[0]}if(c=o.children&&o.children.default&&o.children.default(),Array.isArray(c))return c.reduce(function(f,p){return f||s(p)},void 0)}(i);a&&r.set(a,e("div",{key:a,class:[t.suit("widget")]},[i]))}),!this.state){var n=[];return r.forEach(function(i){return n.push(i)}),e("div",Lt({class:[this.suit()]},{attrs:{hidden:!0}}),n)}return e("div",{class:[this.suit()]},this.state.attributesToRender.map(function(i){return r.get(i)}))}),computed:{widgetParams:function(){return{transformItems:this.transformItems,facets:this.facets,maxValuesPerFacet:this.maxValuesPerFacet,widgets:[]}}}};Object.assign({},nv,{name:"AisExperimentalDynamicWidgets",mounted:function(){vt("Use AisDynamicWidgets instead of AisExperimentalDynamicWidgets.")}});const iv=e=>(ko("data-v-51759655"),e=e(),Qo(),e),av={class:"global-search__search-container"},sv=["onSubmit"],ov=["placeholder"],uv=["value"],cv=["onClick"],fv={key:0,class:"global-search__status"},lv={key:0,class:"global-search__status-text"},dv={key:0,class:"global-search__popular richtext"},hv={key:0,class:"global-search__popular-list"},mv=["href"],gv={class:"grid-column-container"},pv={class:"global-search__no-results"},vv=iv(()=>re("br",null,null,-1)),yv={class:"global-search__results"},bv={class:"global-search__accordion"},Sv={class:"global-search__btn-list global-search__accordion-wrapper"},wv=["onClick"],Pv=No({__name:"GlobalSearch",props:{blok:{type:Object,required:!0}},setup(e){const t=e,r=su(),n=Vo(),i=ct(""),a=ct(),s=n.public.algoliaIndex,o=ct(!1),c=ct(""),{t:u,locale:f}=Bo(),p=ct(),d=[{label:u("content_types.all"),value:""},{label:u("content_types.article"),value:"article"},{label:u("content_types.download"),value:"download"},{label:u("content_types.news"),value:"news"},{label:u("content_types.press_release"),value:"press-releases"},{label:u("content_types.author"),value:"author"}],g=fi(()=>t.blok.items_per_page?t.blok.items_per_page:9),m=ct({stateMapping:{stateToRoute(S){const O=S[l.value];return h(O.menu&&O.menu.type?O.menu.type:""),{q:O.query,filter:O.menu&&O.menu.type}},routeToState(S){return{[l.value]:{query:S.q,menu:{type:S.filter}}}}}}),l=fi(()=>`${s}${f.value}`),h=S=>{S&&(c.value=S)};function v(S,O){p.value&&window.scrollTo({top:p.value.offsetTop,left:0,behavior:"smooth"}),O(S-1)}function b(S,O){c.value=c.value===S?"":S,O(c.value?c.value:"")}function y(S){c.value="",i.value="",S()}function w(S){return{full_slug:S.url,headline:S.headline,description:S.description,bio:S.type==="author"?S.data:"",type:P(S.type),breadcrumb:R(S.url)}}function P(S){let O="";return S==="press-releases"?O=u("content_types.press_release"):S==="author"?O=u("content_types.author"):S==="article"?O=u("content_types.article"):O=Go(S),O}function R(S){const $=S.replace(/^\/|\/$/g,"").split("/");return $[0]===f.value&&$.shift(),$.unshift("home"),$.map(A=>A.replace(/-/g," ").replace(/\b\w/g,W=>W.toUpperCase()))}return Wo(a,()=>{i.value=a.value.value}),(S,O)=>{const $=Ao,_=zr("strike"),A=au,W=Ko;return E(),ce("div",{ref_key:"top",ref:p,class:"global-search"},[I(J(qp),{"search-client":J(r),"index-name":J(l),routing:J(m),class:"global-search__container"},{default:we(()=>[I(J(Um),{hitsPerPage:J(g)},null,8,["hitsPerPage"]),re("div",av,[I(J(Fo),null,{default:we(({currentRefinement:C,refine:T})=>[re("form",{class:en(["global-search__search-form",{"is-active":C&&J(i)}]),onSubmit:$e(H=>T(J(i)),["prevent"])},[ft(re("input",{"onUpdate:modelValue":O[0]||(O[0]=H=>Mo(i)?i.value=H:null),type:"text",class:"global-search__input",placeholder:e.blok.placeholder},null,8,ov),[[Uo,J(i)]]),re("input",{ref_key:"searchInputHidden",ref:a,type:"hidden",value:C},null,8,uv),ft(re("button",{type:"submit",class:"global-search__submit btn"},B(J(u)("search")),513),[[Ot,!C||C&&!J(i)]])],42,sv)]),_:1}),I(J(Xs),{"included-attributes":["query","type"],class:"global-search__clear"},{default:we(({canRefine:C,refine:T})=>[ft(re("button",{class:"global-search__clear-btn",onClick:$e(H=>y(T),["prevent"])},[I(J(Jo))],8,cv),[[Ot,C&&J(i)]])]),_:1})]),I(J(jo),null,{default:we(({state:{query:C},results:{hits:T}})=>[I(J(xo),null,{default:we(({nbHits:H})=>[H&&C.length>0?(E(),ce("div",fv,[H&&C.length>0?(E(),ce("p",lv,[ae(B(H)+" "+B(S.$t("results_for"))+" ",1),re("em",null,B(C),1
61)])):V("",!0)])):V("",!0)]),_:2},1024),!C.length&&e.blok.most_popular_search_items&&e.blok.most_popular_search_items.length?(E(),ce("div",dv,[I($,{"current-tag":"h4","heading-type":"h1",heading:e.blok.most_popular_title,class:"global-search__popular-title"},null,8,["heading"]),e.blok.most_popular_search_items&&e.blok.most_popular_search_items.length?(E(),ce("ul",hv,[(E(!0),ce(Le,null,Ve(e.blok.most_popular_search_items,H=>(E(),ce("li",{key:H.id},[H.params_to_search&&H.title?(E(),ce("a",{key:0,href:H.params_to_search,class:"btn--link global-search__popular-link"},[re("span",null,B(H.title),1)],8,mv)):V("",!0)]))),128))])):V("",!0)])):V("",!0),re("div",gv,[ft(re("div",pv,[re("h2",null,[ae(B(e.blok.no_results_label),1),vv,I(_,null,{default:we(()=>[ae(B(C),1)]),_:2},1024)]),re("p",null,B(e.blok.no_results_info),1)],512),[[Ot,!T.length&&C.length>0]]),ft(re("div",yv,[I(J(to),null,{default:we(({items:H})=>[(E(!0),ce(Le,null,Ve(H,L=>(E(),N(A,{key:L.id,blok:w(L)},{title:we(()=>[I(J(si),{hit:L,attribute:"headline","highlighted-tag-name":"em"},null,8,["hit"])]),_:2},1032,["blok"]))),128))]),_:1}),I(J(_o),null,{default:we(({currentRefinement:H,nbHits:L,refine:F})=>[re("div",null,[L?(E(),N(W,{key:0,pagination:{page:H+1,total:L,perPage:J(g),items:[]},"dark-foreground":"","onChange:page":j=>v(j,F)},null,8,["pagination","onChange:page"])):V("",!0)])]),_:1})],512),[[Ot,C.length>0&&T.length]]),ft(I(J($o),{class:en(["global-search__sidebar",[{"is-open":J(o)},{"no-results":!T.length&&C.length>0}]]),attribute:"type"},{default:we(({refine:H})=>[re("button",{class:"global-search__btn h5",onClick:O[1]||(O[1]=L=>o.value=!J(o))},[ae(" Suchen nach "),I(J(zo))]),re("div",bv,[re("ul",Sv,[(E(),ce(Le,null,Ve(d,(L,F)=>re("li",{key:F},[re("button",{class:en(["btn",{active:J(c)===L.value}]),onClick:$e(j=>b(L.value,H),["prevent"])},[re("span",null,B(L.label),1)],10,wv)])),64))])])]),_:2},1032,["class"]),[[Ot,C.length>0]])])]),_:1})]),_:1},8,["search-client","index-name","routing"])],512)}}});const Tv=Ya(Pv,[["__scopeId","data-v-51759655"]]);export{Tv as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.