vendor: 5,606 bytes, line 1
1import{b as aa,K as pu,A as sa,i as Kc,s as zc,c as Gc,g as ft,e as Yc,f as Jc,p as Xc,G as Zc,_ as el,o as tl}from"./DiJQiUTD.js";import{d as oa,m as ze,c as te,o as X,u as G,Q as ar,f as U,l as ur,F as bt,a0 as On,i as pn,a1 as rl,j as me,r as pe,n as ae,q as _n,t as le,H as vu,a2 as jn,k as Le,a3 as nl,a4 as il,a5 as al,w as He,a as Wn,x as sl,Z as ol,U as ul,a6 as cl,$ as Ua}from"./BC1fSk-i.js";/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:yu,setPrototypeOf:ka,isFrozen:ll,getPrototypeOf:fl,getOwnPropertyDescriptor:dl}=Object;let{freeze:xe,seal:Qe,create:bu}=Object,{apply:Hi,construct:Mi}=typeof Reflect<"u"&&Reflect;xe||(xe=function(t){return t});Qe||(Qe=function(t){return t});Hi||(Hi=function(t,r,n){return t.apply(r,n)});Mi||(Mi=function(t,r){return new t(...r)});const an=Fe(Array.prototype.forEach),hl=Fe(Array.prototype.lastIndexOf),qa=Fe(Array.prototype.pop),Vt=Fe(Array.prototype.push),ml=Fe(Array.prototype.splice),vn=Fe(String.prototype.toLowerCase),Un=Fe(String.prototype.toString),Qa=Fe(String.prototype.match),Bt=Fe(String.prototype.replace),gl=Fe(String.prototype.indexOf),pl=Fe(String.prototype.trim),Ke=Fe(Object.prototype.hasOwnProperty),$e=Fe(RegExp.prototype.test),Kt=vl(TypeError);function Fe(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Hi(e,t,n)}}function vl(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Mi(e,r)}}function J(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vn;ka&&ka(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(ll(t)||(t[n]=a),i=a)}e[i]=!0}return e}function yl(e){for(let t=0;t<e.length;t++)Ke(e,t)||(e[t]=null);return e}function ot(e){const t=bu(null);for(const[r,n]of yu(e))Ke(e,r)&&(Array.isArray(n)?t[r]=yl(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=ot(n):t[r]=n);return t}function zt(e,t){for(;e!==null;){const n=dl(e,t);if(n){if(n.get)return Fe(n.get);if(typeof n.value=="function")return Fe(n.value)}e=fl(e)}function r(){return null}return r}const Va=xe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),kn=xe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),qn=xe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),bl=xe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Qn=xe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Sl=xe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ba=xe(["#text"]),Ka=xe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Vn=xe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),za=xe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),sn=xe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Rl=Qe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pl=Qe(/<%[\w\W]*|[\w\W]*%>/gm),wl=Qe(/\$\{[\w\W]*/gm),Ol=Qe(/^data-[\-\w.\u00B7-\uFFFF]+$/),_l=Qe(/^aria-[\-\w]+$/),Su=Qe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jl=Qe(/^(?:\w+script|data):/i),El=Qe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ru=Qe(/^html$/i),$l=Qe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ga=Object.freeze({__proto__:null,ARIA_ATTR:_l,ATTR_WHITESPACE:El,CUSTOM_ELEMENT:$l,DATA_ATTR:Ol,DOCTYPE_NAME:Ru,ERB_EXPR:Pl,IS_ALLOWED_URI:Su,IS_SCRIPT_OR_DATA:jl,MUSTACHE_EXPR:Rl,TMPLIT_EXPR:wl});const Gt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tl=function(){return typeof window>"u"?null:window},xl=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;
vendor: 6,260 bytes, line 1
1const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ya=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Pu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tl();const t=V=>Pu(V);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==Gt.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:c,Element:m,NodeFilter:f,NamedNodeMap:v=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:b,DOMParser:g,trustedTypes:l}=e,o=m.prototype,d=zt(o,"cloneNode"),h=zt(o,"remove"),u=zt(o,"nextSibling"),p=zt(o,"childNodes"),y=zt(o,"parentNode");if(typeof s=="function"){const V=r.createElement("template");V.content&&V.content.ownerDocument&&(r=V.content.ownerDocument)}let R,P="";const{implementation:w,createNodeIterator:_,createDocumentFragment:S,getElementsByTagName:O}=r,{importNode:j}=n;let $=Ya();t.isSupported=typeof yu=="function"&&typeof y=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:T,ERB_EXPR:F,TMPLIT_EXPR:x,DATA_ATTR:N,ARIA_ATTR:H,IS_SCRIPT_OR_DATA:C,ATTR_WHITESPACE:A,CUSTOM_ELEMENT:I}=Ga;let{IS_ALLOWED_URI:M}=Ga,D=null;const k=J({},[...Va,...kn,...qn,...Qn,...Ba]);let q=null;const Y=J({},[...Ka,...Vn,...za,...sn]);let W=Object.seal(bu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,z=null,K=!0,ie=!0,de=!1,he=!0,Ie=!1,St=!0,rt=!1,lt=!1,Ut=!1,Rt=!1,Xr=!1,Zr=!1,wa=!0,Oa=!1;const Mc="user-content-";let An=!0,kt=!1,Pt={},wt=null;const _a=J({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ja=null;const Ea=J({},["audio","video","img","source","image","track"]);let Dn=null;const $a=J({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),en="http://www.w3.org/1998/Math/MathML",tn="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let Ot=nt,Cn=!1,Nn=null;const Wc=J({},[en,tn,nt],Un);let rn=J({},["mi","mo","mn","ms","mtext"]),nn=J({},["annotation-xml"]);const Uc=J({},["title","style","font","a","script"]);let qt=null;const kc=["application/xhtml+xml","text/html"],qc="text/html";let ye=null,_t=null;const Qc=r.createElement("form"),Ta=function(E){return E instanceof RegExp||E instanceof Function},Ln=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(_t&&_t===E)){if((!E||typeof E!="object")&&(E={}),E=ot(E),qt=kc.indexOf(E.PARSER_MEDIA_TYPE)===-1?qc:E.PARSER_MEDIA_TYPE,ye=qt==="application/xhtml+xml"?Un:vn,D=Ke(E,"ALLOWED_TAGS")?J({},E.ALLOWED_TAGS,ye):k,q=Ke(E,"ALLOWED_ATTR")?J({},E.ALLOWED_ATTR,ye):Y,Nn=Ke(E,"ALLOWED_NAMESPACES")?J({},E.ALLOWED_NAMESPACES,Un):Wc,Dn=Ke(E,"ADD_URI_SAFE_ATTR")?J(ot($a),E.ADD_URI_SAFE_ATTR,ye):$a,ja=Ke(E,"ADD_DATA_URI_TAGS")?J(ot(Ea),E.ADD_DATA_URI_TAGS,ye):Ea,wt=Ke(E,"FORBID_CONTENTS")?J({},E.FORBID_CONTENTS,ye):_a,B=Ke(E,"FORBID_TAGS")?J({},E.FORBID_TAGS,ye):ot({}),z=Ke(E,"FORBID_ATTR")?J({},E.FORBID_ATTR,ye):ot({}),Pt=Ke(E,"USE_PROFILES")?E.USE_PROFILES:!1,K=E.ALLOW_ARIA_ATTR!==!1,ie=E.ALLOW_DATA_ATTR!==!1,de=E.ALLOW_UNKNOWN_PROTOCOLS||!1,he=E.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=E.SAFE_FOR_TEMPLATES||!1,St=E.SAFE_FOR_XML!==!1,rt=E.WHOLE_DOCUMENT||!1,Rt=E.RETURN_DOM||!1,Xr=E.RETURN_DOM_FRAGMENT||!1,Zr=E.RETURN_TRUSTED_TYPE||!1,Ut=E.FORCE_BODY||!1,wa=E.SANITIZE_DOM!==!1,Oa=E.SANITIZE_NAMED_PROPS||!1,An=E.KEEP_CONTENT!==!1,kt=E.IN_PLACE||!1,M=E.ALLOWED_URI_REGEXP||Su,Ot=E.NAMESPACE||nt,rn=E.MATHML_TEXT_INTEGRATION_POINTS||rn,nn=E.HTML_INTEGRATION_POINTS||nn,W=E.CUSTOM_ELEMENT_HANDLING||{},E.CUSTOM_ELEMENT_HANDLING&&Ta(E.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=E.CUSTOM_ELEMENT_HANDLING.tagNameCheck),E.CUSTOM_ELEMENT_HANDLING&&Ta(E.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=E.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),E.CUSTOM_ELEMENT_HANDLING&&typeof E.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=E.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(ie=!1),Xr&&(Rt=!0),Pt&&(D=J({},Ba),q=[],Pt.html===!0&&(J(D,Va),J(q,Ka)),Pt.svg===!0&&(J(D,kn),J(q,Vn),J(q,sn)),Pt.svgFilters===!0&&(J(D,qn),J(q,Vn),J(q,sn)),Pt.mathMl===!0&&(J(D,Qn),J(q,za),J(q,sn))),E.ADD_TAGS&&(D===k&&(D=ot(D)),J(D,E.ADD_TAGS,ye)),E.ADD_ATTR&&(q===Y&&(q=ot(q)),J(q,E.ADD_ATTR,ye)),E.ADD_URI_SAFE_ATTR&&J(Dn,E.ADD_URI_SAFE_ATTR,ye),E.FORBID_CONTENTS&&(wt===_a&&(wt=ot(wt)),J(wt,E.FORBID_CONTENTS,ye)),An&&(D["#text"]=!0),rt&&J(D,["html","head","body"]),D.table&&(J(D,["tbody"]),delete B.tbody),E.TRUSTED_TYPES_POLICY){if(typeof E.TRUSTED_TYPES_POLICY.createHTML!="function")throw Kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof E.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=E.TRUSTED_TYPES_POLICY,P=R.createHTML("")}else R===void 0&&(R=xl(l,i)),R!==null&&typeof P=="string"&&(P=R.createHTML(""));xe&&xe(E),_t=E}},xa=J({},[...kn,...qn,...bl]),Fa=J({},[...Qn,...Sl]),Vc=function(E){let L=y(E);(!L||!L.tagName)&&(L={namespaceURI:Ot,tagName:"template"});const Q=vn(E.tagName),fe=vn(L.tagName);return Nn[E.namespaceURI]?E.namespaceURI===tn?L.namespaceURI===nt?Q==="svg":L.namespaceURI===en?Q==="svg"&&(fe==="annotation-xml"||rn[fe]):!!xa[Q]:E.namespaceURI===en?L.namespaceURI===nt?Q==="math":L.namespaceURI===tn?Q==="math"&&nn[fe]:!!Fa[Q]:E.namespaceURI===nt?L.namespaceURI===tn&&!nn[fe]||L.namespaceURI===en&&!rn[fe]?!1:!Fa[Q]&&
vendor: 4,666 bytes, line 1
1(Uc[Q]||!xa[Q]):!!(qt==="application/xhtml+xml"&&Nn[E.namespaceURI]):!1},Ge=function(E){Vt(t.removed,{element:E});try{y(E).removeChild(E)}catch{h(E)}},jt=function(E,L){try{Vt(t.removed,{attribute:L.getAttributeNode(E),from:L})}catch{Vt(t.removed,{attribute:null,from:L})}if(L.removeAttribute(E),E==="is")if(Rt||Xr)try{Ge(L)}catch{}else try{L.setAttribute(E,"")}catch{}},Ia=function(E){let L=null,Q=null;if(Ut)E="<remove></remove>"+E;else{const ve=Qa(E,/^[\r\n\t ]+/);Q=ve&&ve[0]}qt==="application/xhtml+xml"&&Ot===nt&&(E='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+E+"</body></html>");const fe=R?R.createHTML(E):E;if(Ot===nt)try{L=new g().parseFromString(fe,qt)}catch{}if(!L||!L.documentElement){L=w.createDocument(Ot,"template",null);try{L.documentElement.innerHTML=Cn?P:fe}catch{}}const Re=L.body||L.documentElement;return E&&Q&&Re.insertBefore(r.createTextNode(Q),Re.childNodes[0]||null),Ot===nt?O.call(L,rt?"html":"body")[0]:rt?L.documentElement:Re},Aa=function(E){return _.call(E.ownerDocument||E,E,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Hn=function(E){return E instanceof b&&(typeof E.nodeName!="string"||typeof E.textContent!="string"||typeof E.removeChild!="function"||!(E.attributes instanceof v)||typeof E.removeAttribute!="function"||typeof E.setAttribute!="function"||typeof E.namespaceURI!="string"||typeof E.insertBefore!="function"||typeof E.hasChildNodes!="function")},Da=function(E){return typeof c=="function"&&E instanceof c};function it(V,E,L){an(V,Q=>{Q.call(t,E,L,_t)})}const Ca=function(E){let L=null;if(it($.beforeSanitizeElements,E,null),Hn(E))return Ge(E),!0;const Q=ye(E.nodeName);if(it($.uponSanitizeElement,E,{tagName:Q,allowedTags:D}),St&&E.hasChildNodes()&&!Da(E.firstElementChild)&&$e(/<[/\w!]/g,E.innerHTML)&&$e(/<[/\w!]/g,E.textContent)||E.nodeType===Gt.progressingInstruction||St&&E.nodeType===Gt.comment&&$e(/<[/\w]/g,E.data))return Ge(E),!0;if(!D[Q]||B[Q]){if(!B[Q]&&La(Q)&&(W.tagNameCheck instanceof RegExp&&$e(W.tagNameCheck,Q)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Q)))return!1;if(An&&!wt[Q]){const fe=y(E)||E.parentNode,Re=p(E)||E.childNodes;if(Re&&fe){const ve=Re.length;for(let Ae=ve-1;Ae>=0;--Ae){const at=d(Re[Ae],!0);at.__removalCount=(E.__removalCount||0)+1,fe.insertBefore(at,u(E))}}}return Ge(E),!0}return E instanceof m&&!Vc(E)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&$e(/<\/no(script|embed|frames)/i,E.innerHTML)?(Ge(E),!0):(Ie&&E.nodeType===Gt.text&&(L=E.textContent,an([T,F,x],fe=>{L=Bt(L,fe," ")}),E.textContent!==L&&(Vt(t.removed,{element:E.cloneNode()}),E.textContent=L)),it($.afterSanitizeElements,E,null),!1)},Na=function(E,L,Q){if(wa&&(L==="id"||L==="name")&&(Q in r||Q in Qc))return!1;if(!(ie&&!z[L]&&$e(N,L))){if(!(K&&$e(H,L))){if(!q[L]||z[L]){if(!(La(E)&&(W.tagNameCheck instanceof RegExp&&$e(W.tagNameCheck,E)||W.tagNameCheck instanceof Function&&W.tagNameCheck(E))&&(W.attributeNameCheck instanceof RegExp&&$e(W.attributeNameCheck,L)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(L))||L==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&$e(W.tagNameCheck,Q)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Q))))return!1}else if(!Dn[L]){if(!$e(M,Bt(Q,A,""))){if(!((L==="src"||L==="xlink:href"||L==="href")&&E!=="script"&&gl(Q,"data:")===0&&ja[E])){if(!(de&&!$e(C,Bt(Q,A,"")))){if(Q)return!1}}}}}}return!0},La=function(E){return E!=="annotation-xml"&&Qa(E,I)},Ha=function(E){it($.beforeSanitizeAttributes,E,null);const{attributes:L}=E;if(!L||Hn(E))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let fe=L.length;for(;fe--;){const Re=L[fe],{name:ve,namespaceURI:Ae,value:at}=Re,Qt=ye(ve),Mn=at;let Pe=ve==="value"?Mn:pl(Mn);if(Q.attrName=Qt,Q.attrValue=Pe,Q.keepAttr=!0,Q.forceKeepAttr=void 0,it($.uponSanitizeAttribute,E,Q),Pe=Q.attrValue,Oa&&(Qt==="id"||Qt==="name")&&(jt(ve,E),Pe=Mc+Pe),St&&$e(/((--!?|])>)|<\/(style|title)/i,Pe)){jt(ve,E);continue}if(Q.forceKeepAttr)continue;if(!Q.keepAttr){jt(ve,E);continue}if(!he&&$e(/\/>/i,Pe)){jt(ve,E);continue}Ie&&an([T,F,x],Wa=>{Pe=Bt(Pe,Wa," ")});const Ma=ye(E.nodeName);if(!Na(Ma,Qt,Pe)){jt(ve,E);continue}if(R&&typeof l=="object"&&typeof l.getAttributeType=="function"&&!Ae)switch(l.getAttributeType(Ma,Qt)){case"TrustedHTML":{Pe=R.createHTML(Pe);break}case"TrustedScriptURL":{Pe=R.createScriptURL(Pe);break}}if(Pe!==Mn)try{Ae?E.setAttributeNS(Ae,ve,Pe):E.setAttribute(ve,Pe),Hn(E)?Ge(E):qa(t.removed)}catch{jt(ve,E)}}it($.afterSanitizeAttributes,E,null)},Bc=function V(E){let L=null;const Q=Aa(E);for(it($.beforeSanitizeShadowDOM,E,null);L=Q.nextNode();
1)it($.uponSanitizeShadowNode,L,null),Ca(L),Ha(L),L.content instanceof a&&V(L.content);it($.afterSanitizeShadowDOM,E,null)};return t.sanitize=function(V){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=null,Q=null,fe=null,Re=null;if(Cn=!V,Cn&&(V="<!-->"),typeof V!="string"&&!Da(V))if(typeof V.toString=="function"){if(V=V.toString(),typeof V!="string")throw Kt("dirty is not a string, aborting")}else throw Kt("toString is not a function");if(!t.isSupported)return V;if(lt||Ln(E),t.removed=[],typeof V=="string"&&(kt=!1),kt){if(V.nodeName){const at=ye(V.nodeName);if(!D[at]||B[at])throw Kt("root node is forbidden and cannot be sanitized in-place")}}else if(V instanceof c)L=Ia("<!---->"),Q=L.ownerDocument.importNode(V,!0),Q.nodeType===Gt.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?L=Q:L.appendChild(Q);else{if(!Rt&&!Ie&&!rt&&V.indexOf("<")===-1)return R&&Zr?R.createHTML(V):V;if(L=Ia(V),!L)return Rt?null:Zr?P:""}L&&Ut&&Ge(L.firstChild);const ve=Aa(kt?V:L);for(;fe=ve.nextNode();)Ca(fe),Ha(fe),fe.content instanceof a&&Bc(fe.content);if(kt)return V;if(Rt){if(Xr)for(Re=S.call(L.ownerDocument);L.firstChild;)Re.appendChild(L.firstChild);else Re=L;return(q.shadowroot||q.shadowrootmode)&&(Re=j.call(n,Re,!0)),Re}let Ae=rt?L.outerHTML:L.innerHTML;return rt&&D["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&$e(Ru,L.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+L.ownerDocument.doctype.name+`> 2`+Ae),Ie&&an([T,F,x],at=>{Ae=Bt(Ae,at," ")}),R&&Zr?R.createHTML(Ae):Ae},t.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ln(V),lt=!0},t.clearConfig=function(){_t=null,lt=!1},t.isValidAttribute=function(V,E,L){_t||Ln({});const Q=ye(V),fe=ye(E);return Na(Q,fe,L)},t.addHook=function(V,E){typeof E=="function"&&Vt($[V],E)},t.removeHook=function(V,E){if(E!==void 0){const L=hl($[V],E);return L===-1?void 0:ml($[V],L,1)[0]}return qa($[V])},t.removeHooks=function(V){$[V]=[]},t.removeAllHooks=function(){$=Ya()},t}var wu=Pu();const Fl=["innerHTML"],Il=oa({__name:"HighlightAutoLang",props:{item:{},field:{}},setup(e){const t=e,{locale:r}=aa(),n=ze(()=>r.value),i=ze(()=>n.value==="tr"?"en":"tr"),a=ze(()=>{var c,m,f,v,b,g,l,o,d,h,u,p,y,R,P,w,_,S;return t.field=="title"?((b=(v=(f=(m=(c=t.item)==null?void 0:c._highlightResult)==null?void 0:m.meta)==null?void 0:f[n.value])==null?void 0:v[t.field])==null?void 0:b.value)??((h=(d=(o=(l=(g=t.item)==null?void 0:g._highlightResult)==null?void 0:l.meta)==null?void 0:o[i.value])==null?void 0:d[t.field])==null?void 0:h.value)??"":((R=(y=(p=(u=t.item)==null?void 0:u._highlightResult)==null?void 0:p[t.field])==null?void 0:y[n.value])==null?void 0:R.value)??((S=(_=(w=(P=t.item)==null?void 0:P._highlightResult)==null?void 0:w[t.field])==null?void 0:_[i.value])==null?void 0:S.value)??""}),s=ze(()=>{const c=pu.decode(a.value);return wu.sanitize(c,{USE_PROFILES:{html:!0}})});return(c,m)=>(X(),te("span",{innerHTML:G(s)},null,8,Fl))}}),Al=["innerHTML"],Dl=oa({__name:"SnippetAutoLang",props:{item:{},field:{}},setup(e){const t=e,{locale:r}=aa(),n=ze(()=>r.value),i=ze(()=>n.value==="tr"?"en":"tr"),a=ze(()=>{var c,m,f,v,b,g,l,o;return((v=(f=(m=(c=t.item)==null?void 0:c._snippetResult)==null?void 0:m[t.field])==null?void 0:f[n.value])==null?void 0:v.value)??((o=(l=(g=(b=t.item)==null?void 0:b._snippetResult)==null?void 0:g[t.field])==null?void 0:l[i.value])==null?void 0:o.value)??""}),s=ze(()=>{const c=pu.decode(a.value);return wu.sanitize(c,{USE_PROFILES:{html:!0}})});return(c,m)=>(X(),te("span",{innerHTML:G(s)},null,8,Al))}});function Cl(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 re=function(e){var t=e.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(r,n){var i=Cl(t,r,n),a=this.classNames&&this.classNames[i];return a?[i,a].join(" "):i}}}};function cr(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}
2))),i.forEach(function(a){Nl(e,a,n[a])})}return e}function Nl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ll=!1,Hl=!0;function Fn(e){function t(r,n){for(var i=[],a=arguments.length-2;a-- >0;)i[a]=arguments[a+2];var s=i.length>0?i:void 0;if(typeof n=="object"&&(n.attrs||n.props||n.scopedSlots||n.on)){var c=Object.keys(n.on||{}),m=Object.assign({},n,n.attrs,n.props,c.reduce(function(f,v){return f["on"+v[0].toUpperCase()+v.slice(1)]=n.on[v],f},{}));return delete m.attrs,delete m.props,delete m.scopedSlots,c.forEach(function(f){return delete m.on[f]}),m.on&&Object.keys(m.on).length===0&&delete m.on,ar(r,m,n.scopedSlots?Object.assign({default:function(){return s}},n.scopedSlots):s)}return ar(r,n,s)}return function(){return e.call(this,t)}}function ua(e){var t=e.$slots||e.slots;return typeof t.default=="function"?t.default():t.default}var Ja=new Set;function Dt(e){Ja.has(e)||(Ja.add(e),console.warn(e))}var oe=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=cr(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&&Dt(`You are using the InstantSearch widget mixin, but didn't provide a connector. 3While this is technically possible, and will give you access to the Helper, 4it's not the recommended way of making custom components. 5 6If you want to disable this message, pass { connector: true } to the mixin. 7 8Read 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=cr(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},Ml=0;function Wl(e){e.dependsOn==="recommend"&&(e.$$id=Ml++)}function Z(){}var Mt=function(t,r){return t};function Ul(e){return Object.prototype.toString.call(e).slice(8,-1)}function ge(e,t){if(e===void 0||typeof e!="function")throw new Error("The render function is not valid (received type ".concat(Ul(e),`). 9 10`).concat(t))}function Xa(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 kl={"&":"&","<":"<",">":">",'"':""","'":"'"},Ou=/[&<>"']/g,ql=RegExp(Ou.source);function Ql(e){return e&&ql.test(e)?e.replace(Ou,function(t){return kl[t]}):e}var Vl={"&":"&","<":"<",">":">",""":'"',"'":"'"},_u=/&(amp|quot|lt|gt|#39);/g,Bl=RegExp(_u.source);function ju(e){return e&&Bl.test(e)?e.replace(_u,function(t){return Vl[t]}):e}function Wi(e){"@babel/helpers - typeof";return Wi=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},Wi(e)}
10function Kl(e){return e===null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function zl(e){return Wi(e)==="object"&&e!==null}function Eu(e){if(!zl(e)||Kl(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 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 Gl(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Ui(){return Ui=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},Ui.apply(this,arguments)}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 It(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Za(Object(r),!0).forEach(function(n){$u(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 $u(e,t,r){return t=Yl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(e){var t=Jl(e,"string");return lr(t)=="symbol"?t:String(t)}function Jl(e,t){if(lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var et={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},Ee={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function Tu(e){return Ql(e).replace(new RegExp(et.highlightPreTag,"g"),Ee.highlightPreTag).replace(new RegExp(et.highlightPostTag,"g"),Ee.highlightPostTag)}function En(e){return Eu(e)&&typeof e.value!="string"?Object.keys(e).reduce(function(t,r){return It(It({},t),{},$u({},r,En(e[r])))},{}):Array.isArray(e)?e.map(En):It(It({},e),{},{value:Tu(e.value)})}function ca(e){return e.__escaped===void 0&&(e=e.map(function(t){var r=Ui({},(Gl(t),t));return r._highlightResult&&(r._highlightResult=En(r._highlightResult)),r._snippetResult&&(r._snippetResult=En(r._snippetResult)),r}),e.__escaped=!0),e}function Xl(e){return e.map(function(t){return It(It({},t),{},{highlighted:Tu(t.highlighted)})})}function xu(e){var t=Ee.highlightPreTag,r=Ee.highlightPostTag;return e.map(function(n){return n.isHighlighted?t+n.value+r:n.value}).join("")}function Zl(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 es(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 ef(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?es(Object(r),!0).forEach(function(n){tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tf(e,t,r){return t=rf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rf(e){var t=nf(e,"string");return Ct(t)=="symbol"?t:String(t)}function nf(e,t){if(Ct(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}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 af(e,t){return cf(e)||uf(e,t)||of(e,t)||sf()}
10function sf(){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 of(e,t){if(e){if(typeof e=="string")return ts(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 ts(e,t)}}function ts(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 uf(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function cf(e){if(Array.isArray(e))return e}function la(e){var t=e.instantSearchInstance,r=e.helper,n=e.attribute,i=e.widgetType,a=function(){for(var c=arguments.length,m=new Array(c),f=0;f<c;f++)m[f]=arguments[f];var v=m[1],b=m[2],g=b===void 0?"Filter Applied":b,l=m[3],o=l===void 0?{}:l,d=m[0].split(":"),h=af(d,2),u=h[0],p=h[1],y=typeof n=="string"?n:n(v);if(m.length===1&&Ct(m[0])==="object")t.sendEventToInsights(m[0]);else if(u==="click"&&m.length>=2&&m.length<=4&&!Zl(r,y,v)){var R;t.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:i,eventType:u,eventModifier:p,payload:ef({eventName:g,index:((R=r.lastResults)===null||R===void 0?void 0:R.index)||r.state.index,filters:["".concat(y,":").concat(v)]},o),attribute:y})}};return a}function Fu(e){return btoa(encodeURIComponent(JSON.stringify(e)))}function rs(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 Bn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rs(Object(r),!0).forEach(function(n){lf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lf(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=df(e,"string");return Nt(t)=="symbol"?t:String(t)}function df(e,t){if(Nt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hf(e,t){return vf(e)||pf(e,t)||gf(e,t)||mf()}function mf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gf(e,t){if(e){if(typeof e=="string")return ns(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 ns(e,t)}}function ns(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 pf(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function vf(e){if(Array.isArray(e))return e}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 yf(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);
12n++)r.push(e.slice(n*t,(n+1)*t));return r}function Iu(e){var t=e.helper,r=e.widgetType;e.methodName;var n=e.args,i=e.instantSearchInstance;if(n.length===1&&Nt(n[0])==="object")return[n[0]];var a=n[0].split(":"),s=hf(a,2),c=s[0],m=s[1],f=n[1],v=n[2],b=n[3]||{};if(!f)return[];if((c==="click"||c==="conversion")&&!v)return[];var g=Array.isArray(f)?f:[f];if(g.length===0)return[];var l=g[0].__queryID,o=yf(g),d=o.map(function(u){return u.map(function(p){return p.objectID})}),h=o.map(function(u){return u.map(function(p){return p.__position})});return c==="view"?i.status!=="idle"?[]:o.map(function(u,p){var y;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:c,payload:Bn({eventName:v||"Hits Viewed",index:((y=t.lastResults)===null||y===void 0?void 0:y.index)||t.state.index,objectIDs:d[p]},b),hits:u,eventModifier:m}}):c==="click"?o.map(function(u,p){var y;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:c,payload:Bn({eventName:v||"Hit Clicked",index:((y=t.lastResults)===null||y===void 0?void 0:y.index)||t.state.index,queryID:l,objectIDs:d[p],positions:h[p]},b),hits:u,eventModifier:m}}):c==="conversion"?o.map(function(u,p){var y;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:c,payload:Bn({eventName:v||"Hit Converted",index:((y=t.lastResults)===null||y===void 0?void 0:y.index)||t.state.index,queryID:l,objectIDs:d[p]},b),hits:u,eventModifier:m}}):[]}function fa(e){var t=e.instantSearchInstance,r=e.helper,n=e.widgetType,i={},a=void 0,s=function(){for(var m=arguments.length,f=new Array(m),v=0;v<m;v++)f[v]=arguments[v];var b=Iu({widgetType:n,helper:r,methodName:"sendEvent",args:f,instantSearchInstance:t});b.forEach(function(g){g.eventType==="click"&&g.eventModifier==="internal"&&i[g.eventType]||(i[g.eventType]=!0,t.sendEventToInsights(g))}),clearTimeout(a),a=setTimeout(function(){i={}},0)};return s}function Au(e){var t=e.helper,r=e.widgetType,n=e.instantSearchInstance,i=function(){for(var s=arguments.length,c=new Array(s),m=0;m<s;m++)c[m]=arguments[m];var f=Iu({widgetType:r,helper:t,methodName:"bindEvent",args:c,instantSearchInstance:n});return f.length?"data-insights-event=".concat(Fu(f)):""};return i}function We(e){return e.$$type==="ais.index"}function ki(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(We).forEach(function(n){return ki(e,n)})}var bf=Promise.resolve();function Yt(e){var t=null,r=!1,n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];t===null&&(t=bf.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 Sf(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 ce(){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 Sf(i)}).join(", ");return function(i){return[i,"See documentation: ".concat(n)].filter(Boolean).join(` 13 14`)}}function Rf(e){return typeof e=="string"?e.replace(/^\\-/,"-"):e}function tr(e){return typeof e=="number"&&e<0||typeof e=="string"?String(e).replace(/^-/,"\\-"):e}function ct(e,t){for(var r,n=0;n<e.length;n++)if(r=e[n],t(r,n,e))return r}function Pf(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 is(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(e.transporter){var t=e.transporter,r=t.headers||t.baseHeaders,n=t.queryParameters||t.baseQueryParameters,i="x-algolia-application-id",a="x-algolia-api-key",s=r[i]||n[i],c=r[a]||n[a];return[s,c]}else return[e.applicationID,e.apiKey]}function da(e){var t=Ee.highlightPostTag,r=Ee.highlightPreTag,n=e.split(r),i=n.shift(),a=i?[{value:i,isHighlighted:!1}]:[];return n.forEach(function(s){var c=s.split(t);a.push({value:c[0],isHighlighted:!0}),c[1]!==""&&a.push({value:c[1],isHighlighted:!1})}),a}var wf=new RegExp(/\w/i);function Of(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!wf.test(ju(i.value))&&s===a?s:i.isHighlighted}function Wt(e,t){var r=Array.isArray(t)?t:t.split(".");return r.reduce(function(n,i){return n&&n[i]},e)}function Kn(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a={type:t,attribute:r,name:n,escapedValue:tr(n)},s=ct(i,function(l){return l.name===r}),c;if(t==="hierarchical"){for(var m=e.getHierarchicalFacetByName(r),f=n.split(m.separator),v=function(o){return function(d){return o[d]}},b=function(o){s=s&&s.data&&ct(Object.keys(s.data).map(v(s.data)),function(d){return d.name===f[o]})},g=0;s!==void 0&&g<f.length;++g)b(g);c=s&&s.count}else c=s&&s.data&&s.data[a.name];return c!==void 0&&(a.count=c),s&&s.exhaustive!==void 0&&(a.exhaustive=s.exhaustive),a}function ha(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e||{},i=[],a=t.facetsRefinements,s=a===void 0?{}:a,c=t.facetsExcludes,m=c===void 0?{}:c,f=t.disjunctiveFacetsRefinements,v=f===void 0?{}
14:f,b=t.hierarchicalFacetsRefinements,g=b===void 0?{}:b,l=t.numericRefinements,o=l===void 0?{}:l,d=t.tagRefinements,h=d===void 0?[]:d;return Object.keys(s).forEach(function(u){var p=s[u];p.forEach(function(y){i.push(Kn(t,"facet",u,y,n.facets))})}),Object.keys(m).forEach(function(u){var p=m[u];p.forEach(function(y){i.push({type:"exclude",attribute:u,name:y,exclude:!0})})}),Object.keys(v).forEach(function(u){var p=v[u];p.forEach(function(y){i.push(Kn(t,"disjunctive",u,Rf(y),n.disjunctiveFacets))})}),Object.keys(g).forEach(function(u){var p=g[u];p.forEach(function(y){i.push(Kn(t,"hierarchical",u,y,n.hierarchicalFacets))})}),Object.keys(o).forEach(function(u){var p=o[u];Object.keys(p).forEach(function(y){var R=y,P=p[R],w=Array.isArray(P)?P:[P];w.forEach(function(_){i.push({type:"numeric",attribute:u,name:"".concat(_),numericValue:_,operator:R})})})}),h.forEach(function(u){i.push({type:"tag",attribute:"_tags",name:u})}),r&&t.query&&t.query.trim()&&i.push({attribute:"query",type:"query",name:t.query,query:t.query}),i}function _f(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])}if(typeof i!="string")throw new Error(`Could not find the attribute of the widget: 15 16`.concat(JSON.stringify(e),` 17 18Please check whether the widget's getWidgetRenderState returns widgetParams.attribute correctly.`));return i}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 as(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 ss(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?as(Object(r),!0).forEach(function(n){jf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):as(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jf(e,t,r){return t=Ef(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ef(e){var t=$f(e,"string");return fr(t)=="symbol"?t:String(t)}function $f(e,t){if(fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Du(e,t,r){return e.map(function(n,i){return ss(ss({},n),{},{__position:r*t+i+1})})}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 os(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 us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?os(Object(r),!0).forEach(function(n){Tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):os(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tf(e,t,r){return t=xf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xf(e){var t=Ff(e,"string");return dr(t)=="symbol"?t:String(t)}function Ff(e,t){if(dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cu(e,t){return t?e.map(function(r){return us(us({},r),{},{__queryID:t})}):e}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 cs(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 ls(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
18t%2?cs(Object(r),!0).forEach(function(n){If(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function If(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=Df(e,"string");return hr(t)=="symbol"?t:String(t)}function Df(e,t){if(hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cf(e,t){var r=Object.keys(t).reduce(function(n,i){var a=t[i];return a.recommendResults?ls(ls({},n),a.recommendResults.results):n},{});e._recommendCache=r}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)}function Nf(e,t){return Wf(e)||Mf(e,t)||Hf(e,t)||Lf()}function Lf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hf(e,t){if(e){if(typeof e=="string")return fs(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 fs(e,t)}}function fs(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 Mf(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function Wf(e){if(Array.isArray(e))return e}function ds(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 Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ds(Object(r),!0).forEach(function(n){Nu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nu(e,t,r){return t=Uf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uf(e){var t=kf(e,"string");return mr(t)=="symbol"?t:String(t)}function kf(e,t){if(mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qf(e,t){if(t&&!((!("transporter"in e)||e._cacheHydrated)&&(!e._useCache||typeof e.addAlgoliaAgent!="function"))){var r=[Object.keys(t).reduce(function(s,c){var m=t[c],f=m.state,v=m.requestParams,b=m.results,g=b&&f?b.map(function(l,o){return Jt({indexName:f.index||l.index},v!=null&&v[o]||l.params?{params:zn((v==null?void 0:v[o])||Qf(l.params))}:{})}):[];return s.concat(g)},[])],n=Object.keys(t).reduce(function(s,c){var m=t[c].results;return m?s.concat(m):s},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(s){for(var c=arguments.length,m=new Array(c>1?c-1:0),f=1;f<c;f++)m[f-1]=arguments[f];var v=Array.isArray(s)?s.map(function(b){return Jt(Jt({},b),{},{params:zn(b.params)})}):zn(s.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[v].concat(m)},function(){return i.apply(void 0,[s].concat(m))})},e.transporter.responsesCache.set({method:"search",args:r},{results:n})}if(!("transporter"in e)){var a="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=Jt(Jt({},e.cache),{},Nu({},a,JSON.stringify({results:Object.keys(t).map(function(s){return t[s].results})})))}}}function Qf(e){return e.split("&").reduce(function(t,r){var n=r.split("="),i=Nf(n,2),a=i[0],s=i[1];
19return t[a]=s?decodeURIComponent(s):"",t},{})}function zn(e){var t=function(i){return Object.prototype.toString.call(i)==="[object Object]"||Object.prototype.toString.call(i)==="[object Array]"},r=function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];var m=0;return i.replace(/%s/g,function(){return encodeURIComponent(s[m++])})};return Object.keys(e).map(function(n){return r("%s=%s",n,t(e[n])?JSON.stringify(e[n]):e[n])}).join("&")}function hs(e){return e!==Object(e)}function Yr(e,t){if(e===t)return!0;if(hs(e)||hs(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)||!Yr(e[i],t[i]))return!1}return!0}function se(e){return typeof e=="number"&&isFinite(e)}function Lu(e,t){t(e),e.getWidgets().forEach(function(r){We(r)&&Lu(r,t)})}function ma(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}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)}var Vf=["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"];function ms(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 tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ms(Object(r),!0).forEach(function(n){Bf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ms(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bf(e,t,r){return t=Kf(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kf(e){var t=zf(e,"string");return gr(t)=="symbol"?t:String(t)}function zf(e,t){if(gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gf(e,t){if(e==null)return{};var r=Yf(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 Yf(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 Jf=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=Gf(r,Vf);return t.setQueryParameters(n)},Xf=function(t,r){return r.facets.reduce(function(n,i){return n.addFacet(i)},t)},Zf=function(t,r){return r.disjunctiveFacets.reduce(function(n,i){return n.addDisjunctiveFacet(i)},t)},ed=function(t,r){return t.setQueryParameters({hierarchicalFacets:r.hierarchicalFacets.reduce(function(n,i){var a=Pf(n,function(c){return c.name===i.name});if(a===-1)return n.concat(i);var s=n.slice();return s.splice(a,1,i),s},t.hierarchicalFacets)})},td=function(t,r){return r.tagRefinements.reduce(function(n,i){return n.addTagRefinement(i)},t)},rd=function(t,r){return t.setQueryParameters({facetsRefinements:tt(tt({},t.facetsRefinements),r.facetsRefinements)})},nd=function(t,r){return t.setQueryParameters({facetsExcludes:tt(tt({},t.facetsExcludes),r.facetsExcludes)})},id=function(t,r){return t.setQueryParameters({disjunctiveFacetsRefinements:tt(tt({},t.disjunctiveFacetsRefinements),r.disjunctiveFacetsRefinements)})},ad=function(t,r){return t.setQueryParameters({numericRefinements:tt(tt({},t.numericRefinements),r.numericRefinements)})},sd=function(t,r){return t.setQueryParameters({hierarchicalFacetsRefinements:tt(tt({},t.hierarchicalFacetsRefinements),r.hierarchicalFacetsRefinements)})},od=function(t,r){var n=ma([].concat(t.ruleContexts).concat(r.ruleContexts).filter(
19Boolean));return n.length>0?t.setQueryParameters({ruleContexts:n}):t},sr=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=sd(i,a),c=ed(s,a),m=td(c,a),f=ad(m,a),v=id(f,a),b=nd(v,a),g=rd(b,a),l=Zf(g,a),o=od(l,a),d=Xf(o,a);return Jf(d,a)})};function ud(e){return dd(e)||fd(e)||ld(e)||cd()}function cd(){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 ld(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 fd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dd(e){if(Array.isArray(e))return qi(e)}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 gs(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,c=Math.round((n-r)/s);return ud(Array(c)).map(function(m,f){return r+f*s})}function rr(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 ps(e,t,r){var n=t.getResultsForWidget(r),i=t.getHelper();return{helper:i,parent:t,instantSearchInstance:e,results:n,scopedResults:t.getScopedResults(),state:n&&"_state"in n?n._state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:e.status==="stalled"},status:e.status,error:e.error}}function hd(e){for(var t=e.getParent(),r=[e.getHelper().state];t!==null;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}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 vs(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 on(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vs(Object(r),!0).forEach(function(n){md(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function md(e,t,r){return t=gd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gd(e){var t=pd(e,"string");return pr(t)=="symbol"?t:String(t)}function pd(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hu(e){return e.some(function(t){return t.isHighlighted})?e.map(function(t,r){return on(on({},t),{},{isHighlighted:!Of(e,r)})}):e.map(function(t){return on(on({},t),{},{isHighlighted:!1})})}function Ze(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 Gn(e){return Array.isArray(e)?e:[e]}var Yn,ys;function ga(){if(ys)return Yn;ys=1;function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}Yn=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(a){if(!r(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},e.prototype.emit=function(a){var s,c,m,f,v,b;if(this._events||(this._events={}),a==="error"&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(s=arguments[1],s instanceof Error)throw s;var g=new Error('Uncaught, unspecified "error" event. ('+s+")");throw g.context=s,g}if(c=this._events[a],i(c))return!1;if(t(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;
20default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(n(c))for(f=Array.prototype.slice.call(arguments,1),b=c.slice(),m=b.length,v=0;v<m;v++)b[v].apply(this,f);return!0},e.prototype.addListener=function(a,s){var c;if(!t(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,t(s.listener)?s.listener:s),this._events[a]?n(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,n(this._events[a])&&!this._events[a].warned&&(i(this._maxListeners)?c=e.defaultMaxListeners:c=this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace())),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(a,s){if(!t(s))throw TypeError("listener must be a function");var c=!1;function m(){this.removeListener(a,m),c||(c=!0,s.apply(this,arguments))}return m.listener=s,this.on(a,m),this},e.prototype.removeListener=function(a,s){var c,m,f,v;if(!t(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,m=-1,c===s||t(c.listener)&&c.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(n(c)){for(v=f;v-- >0;)if(c[v]===s||c[v].listener&&c[v].listener===s){m=v;break}if(m<0)return this;c.length===1?(c.length=0,delete this._events[a]):c.splice(m,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},e.prototype.removeAllListeners=function(a){var s,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],t(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},e.prototype.listeners=function(a){var s;return!this._events||!this._events[a]?s=[]:t(this._events[a])?s=[this._events[a]]:s=this._events[a].slice(),s},e.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(t(s))return 1;if(s)return s.length}return 0},e.listenerCount=function(a,s){return a.listenerCount(s)};function t(a){return typeof a=="function"}function r(a){return typeof a=="number"}function n(a){return typeof a=="object"&&a!==null}function i(a){return a===void 0}return Yn}var Jn,bs;function Mu(){if(bs)return Jn;bs=1;function e(t,r){t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}return Jn=e,Jn}var Xn,Ss;function vd(){if(Ss)return Xn;Ss=1;var e=ga(),t=Mu();function r(n,i,a){this.main=n,this.fn=i,this.recommendFn=a,this.lastResults=null,this.lastRecommendResults=null}return t(r,e),r.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},r.prototype.getModifiedState=function(n){return this.fn(n)},r.prototype.getModifiedRecommendState=function(n){return this.recommendFn(n)},Xn=r,Xn}var Zn,Rs;function pa(){if(Rs)return Zn;Rs=1;function e(r){return typeof r!="string"?r:String(r).replace(/^-/,"\\-")}function t(r){return typeof r!="string"?r:r.replace(/^\\-/,"-")}return Zn={escapeFacetValue:e,unescapeFacetValue:t},Zn}var ei,Ps;function va(){if(Ps)return ei;Ps=1;function e(i){return typeof i=="object"&&i!==null?r(Array.isArray(i)?[]:{},i):i}function t(i){return typeof i=="function"||Array.isArray(i)||Object.prototype.toString.call(i)==="[object Object]"}function r(i,a){if(i===a)return i;for(var s in a)if(!(!Object.prototype.hasOwnProperty.call(a,s)||s==="__proto__"||s==="constructor")){var c=a[s],m=i[s];typeof m<"u"&&typeof c>"u"||(t(m)&&t(c)?i[s]=r(m,c):i[s]=e(c))}return i}function n(i){t(i)||(i={});for(var a=1,s=arguments.length;a<s;a++){var c=arguments[a];t(c)&&r(i,c)}return i}return ei=n,ei}var ti,ws;function ya(){if(ws)return ti;ws=1;function e(t){return t&&Object.keys(t).length>0}return ti=e,ti}var ri,Os;function ba(){if(Os)return ri;Os=1;function e(t,r){if(t===null)return{};var n={},i=Object.keys(t),a,s;for(s=0;s<i.length;s++)a=i[s],!(r.indexOf(a)>=0)&&(n[a]=t[a]);return n}return ri=e,ri}var ni,_s;function Wu(){if(_s)return ni;_s=1;function e(t){t=t||{},this.params=t.params||[]}return e.prototype={constructor:e,addParams:function(t){var r=this.params.slice();return r.push(t),new e({params:r})}
20,removeParams:function(t){return new e({params:this.params.filter(function(r){return r.$$id!==t})})},addFrequentlyBoughtTogether:function(t){return this.addParams(Object.assign({},t,{model:"bought-together"}))},addRelatedProducts:function(t){return this.addParams(Object.assign({},t,{model:"related-products"}))},addTrendingItems:function(t){return this.addParams(Object.assign({},t,{model:"trending-items"}))},addTrendingFacets:function(t){return this.addParams(Object.assign({},t,{model:"trending-facets"}))},addLookingSimilar:function(t){return this.addParams(Object.assign({},t,{model:"looking-similar"}))},_buildQueries:function(t,r){return this.params.filter(function(n){return r[n.$$id]===void 0}).map(function(n){var i=Object.assign({},n,{indexName:t,threshold:n.threshold||0});return delete i.$$id,i})}},ni=e,ni}var ii,js;function Uu(){if(js)return ii;js=1;function e(t,r){this._state=t,this._rawResults={};var n=this;t.params.forEach(function(i){var a=i.$$id;n[a]=r[a],n._rawResults[a]=r[a]})}return e.prototype={constructor:e},ii=e,ii}var ai,Es;function yd(){if(Es)return ai;Es=1;var e=va();function t(n){return Object.keys(n).sort().reduce(function(i,a){return i[a]=n[a],i},{})}var r={_getQueries:function(i,a){var s=[];return s.push({indexName:i,params:r._getHitsSearchParams(a)}),a.getRefinedDisjunctiveFacets().forEach(function(c){s.push({indexName:i,params:r._getDisjunctiveFacetSearchParams(a,c)})}),a.getRefinedHierarchicalFacets().forEach(function(c){var m=a.getHierarchicalFacetByName(c),f=a.getHierarchicalRefinement(c),v=a._getHierarchicalFacetSeparator(m);if(f.length>0&&f[0].split(v).length>1){var b=f[0].split(v).slice(0,-1).reduce(function(l,o,d){return l.concat({attribute:m.attributes[d],value:d===0?o:[l[l.length-1].value,o].join(v)})},[]);b.forEach(function(g,l){var o=r._getDisjunctiveFacetSearchParams(a,g.attribute,l===0);function d(p){return m.attributes.some(function(y){return y===p.split(":")[0]})}var h=(o.facetFilters||[]).reduce(function(p,y){if(Array.isArray(y)){var R=y.filter(function(P){return!d(P)});R.length>0&&p.push(R)}return typeof y=="string"&&!d(y)&&p.push(y),p},[]),u=b[l-1];l>0?o.facetFilters=h.concat(u.attribute+":"+u.value):h.length>0?o.facetFilters=h:delete o.facetFilters,s.push({indexName:i,params:o})})}}),s},_getCompositionQueries:function(i){return[{compositionID:i.index,requestBody:{params:r._getCompositionHitsSearchParams(i)}}]},_getHitsSearchParams:function(n){var i=n.facets.concat(n.disjunctiveFacets).concat(r._getHitsHierarchicalFacetsAttributes(n)).sort(),a=r._getFacetFilters(n),s=r._getNumericFilters(n),c=r._getTagFilters(n),m={};return i.length>0&&(m.facets=i.indexOf("*")>-1?["*"]:i),c.length>0&&(m.tagFilters=c),a.length>0&&(m.facetFilters=a),s.length>0&&(m.numericFilters=s),t(e({},n.getQueryParams(),m))},_getCompositionHitsSearchParams:function(n){var i=n.facets.concat(n.disjunctiveFacets.map(function(v){return n.disjunctiveFacetsRefinements&&n.disjunctiveFacetsRefinements[v]&&n.disjunctiveFacetsRefinements[v].length>0?"disjunctive("+v+")":v})).concat(r._getHitsHierarchicalFacetsAttributes(n)).sort(),a=r._getFacetFilters(n),s=r._getNumericFilters(n),c=r._getTagFilters(n),m={};i.length>0&&(m.facets=i.indexOf("*")>-1?["*"]:i),c.length>0&&(m.tagFilters=c),a.length>0&&(m.facetFilters=a),s.length>0&&(m.numericFilters=s);var f=n.getQueryParams();return delete f.highlightPreTag,delete f.highlightPostTag,delete f.index,t(e({},f,m))},_getDisjunctiveFacetSearchParams:function(n,i,a){var s=r._getFacetFilters(n,i,a),c=r._getNumericFilters(n,i),m=r._getTagFilters(n),f={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};m.length>0&&(f.tagFilters=m);var v=n.getHierarchicalFacetByName(i);return v?f.facets=r._getDisjunctiveHierarchicalFacetAttribute(n,v,a):f.facets=i,c.length>0&&(f.numericFilters=c),s.length>0&&(f.facetFilters=s),t(e({},n.getQueryParams(),f))},_getNumericFilters:function(n,i){if(n.numericFilters)return n.numericFilters;var a=[];return Object.keys(n.numericRefinements).forEach(function(s){var c=n.numericRefinements[s]||{};Object.keys(c).forEach(function(m){var f=c[m]||[];i!==s&&f.forEach(function(v){if(Array.isArray(v)){var b=v.map(function(g){return s+m+g});a.push(b)}else a.push(s+m+v)})})}),a},_getTagFilters:function(n){return n.tagFilters?n.tagFilters:n.tagRefinements.join(",")},_getFacetFilters:function(n,i,a){var s=[],c=n.facetsRefinements||{};
20Object.keys(c).sort().forEach(function(b){var g=c[b]||[];g.slice().sort().forEach(function(l){s.push(b+":"+l)})});var m=n.facetsExcludes||{};Object.keys(m).sort().forEach(function(b){var g=m[b]||[];g.sort().forEach(function(l){s.push(b+":-"+l)})});var f=n.disjunctiveFacetsRefinements||{};Object.keys(f).sort().forEach(function(b){var g=f[b]||[];if(!(b===i||!g||g.length===0)){var l=[];g.slice().sort().forEach(function(o){l.push(b+":"+o)}),s.push(l)}});var v=n.hierarchicalFacetsRefinements||{};return Object.keys(v).sort().forEach(function(b){var g=v[b]||[],l=g[0];if(l!==void 0){var o=n.getHierarchicalFacetByName(b),d=n._getHierarchicalFacetSeparator(o),h=n._getHierarchicalRootPath(o),u,p;if(i===b){if(l.indexOf(d)===-1||!h&&a===!0||h&&h.split(d).length===l.split(d).length)return;h?(p=h.split(d).length-1,l=h):(p=l.split(d).length-2,l=l.slice(0,l.lastIndexOf(d))),u=o.attributes[p]}else p=l.split(d).length-1,u=o.attributes[p];u&&s.push([u+":"+l])}}),s},_getHitsHierarchicalFacetsAttributes:function(n){var i=[];return n.hierarchicalFacets.reduce(function(s,c){var m=n.getHierarchicalRefinement(c.name)[0];if(!m)return s.push(c.attributes[0]),s;var f=n._getHierarchicalFacetSeparator(c),v=m.split(f).length,b=c.attributes.slice(0,v+1);return s.concat(b)},i)},_getDisjunctiveHierarchicalFacetAttribute:function(n,i,a){var s=n._getHierarchicalFacetSeparator(i);if(a===!0){var c=n._getHierarchicalRootPath(i),m=0;return c&&(m=c.split(s).length),[i.attributes[m]]}var f=n.getHierarchicalRefinement(i.name)[0]||"",v=f.split(s).length-1;return i.attributes.slice(0,v+1)},getSearchForFacetQuery:function(n,i,a,s){var c=s.isDisjunctiveFacet(n)?s.clearRefinements(n):s,m={facetQuery:i,facetName:n};return typeof a=="number"&&(m.maxFacetHits=a),t(e({},r._getHitsSearchParams(c),m))}};return ai=r,ai}var si,$s;function Sa(){return $s||($s=1,si=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},{})}),si}var oi,Ts;function Jr(){return Ts||(Ts=1,oi=function(t,r){if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(r(t[n]))return t[n]}}),oi}var ui,xs;function bd(){if(xs)return ui;xs=1;function e(t,r){return t.filter(function(n,i){return r.indexOf(n)>-1&&t.indexOf(n)===i})}return ui=e,ui}var ci,Fs;function Sd(){if(Fs)return ci;Fs=1;function e(t){if(typeof t=="number")return t;if(typeof t=="string")return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}return ci=e,ci}var li,Is;function Rd(){return Is||(Is=1,li=function(t){return t===null?!1:/^[a-zA-Z0-9_-]{1,64}$/.test(t)}),li}var fi,As;function Pd(){if(As)return fi;As=1;var e=Sa(),t=ya(),r=ba(),n={addRefinement:function(a,s,c){if(n.isRefined(a,s,c))return a;var m=""+c,f=a[s]?a[s].concat(m):[m],v={};return v[s]=f,e(v,a)},removeRefinement:function(a,s,c){if(c===void 0)return n.clearRefinement(a,function(f,v){return s===v});var m=""+c;return n.clearRefinement(a,function(f,v){return s===v&&m===f})},toggleRefinement:function(a,s,c){if(c===void 0)throw new Error("toggleRefinement should be used with a value");return n.isRefined(a,s,c)?n.removeRefinement(a,s,c):n.addRefinement(a,s,c)},clearRefinement:function(a,s,c){if(s===void 0)return t(a)?{}:a;if(typeof s=="string")return r(a,[s]);if(typeof s=="function"){var m=!1,f=Object.keys(a).reduce(function(v,b){var g=a[b]||[],l=g.filter(function(o){return!s(o,b,c)});return l.length!==g.length&&(m=!0),v[b]=l,v},{});return m?f:a}},isRefined:function(a,s,c){var m=!!a[s]&&a[s].length>0;if(c===void 0||!m)return m;var f=""+c;return a[s].indexOf(f)!==-1}};return fi=n,fi}var di,Ds;function ku(){if(Ds)return di;Ds=1;
20var e=Sa(),t=Jr(),r=bd(),n=va(),i=ya(),a=ba(),s=Sd(),c=Rd(),m=Pd();function f(g,l){return Array.isArray(g)&&Array.isArray(l)?g.length===l.length&&g.every(function(o,d){return f(l[d],o)}):g===l}function v(g,l){return t(g,function(o){return f(o,l)})}function b(g){var l=g?b._parseNumbers(g):{};l.userToken!==void 0&&!c(l.userToken)&&console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=l.facets||[],this.disjunctiveFacets=l.disjunctiveFacets||[],this.hierarchicalFacets=l.hierarchicalFacets||[],this.facetsRefinements=l.facetsRefinements||{},this.facetsExcludes=l.facetsExcludes||{},this.disjunctiveFacetsRefinements=l.disjunctiveFacetsRefinements||{},this.numericRefinements=l.numericRefinements||{},this.tagRefinements=l.tagRefinements||[],this.hierarchicalFacetsRefinements=l.hierarchicalFacetsRefinements||{};var o=this;Object.keys(l).forEach(function(d){var h=b.PARAMETERS.indexOf(d)!==-1,u=l[d]!==void 0;!h&&u&&(o[d]=l[d])})}return b.PARAMETERS=Object.keys(new b),b._parseNumbers=function(g){if(g instanceof b)return g;var l={},o=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(o.forEach(function(h){var u=g[h];if(typeof u=="string"){var p=parseFloat(u);l[h]=isNaN(p)?u:p}}),Array.isArray(g.insideBoundingBox)&&(l.insideBoundingBox=g.insideBoundingBox.map(function(h){return Array.isArray(h)?h.map(function(u){return parseFloat(u)}):h})),g.numericRefinements){var d={};Object.keys(g.numericRefinements).forEach(function(h){var u=g.numericRefinements[h]||{};d[h]={},Object.keys(u).forEach(function(p){var y=u[p],R=y.map(function(P){return Array.isArray(P)?P.map(function(w){return typeof w=="string"?parseFloat(w):w}):typeof P=="string"?parseFloat(P):P});d[h][p]=R})}),l.numericRefinements=d}return n(g,l)},b.make=function(l){var o=new b(l),d=l.hierarchicalFacets||[];return d.forEach(function(h){if(h.rootPath){var u=o.getHierarchicalRefinement(h.name);u.length>0&&u[0].indexOf(h.rootPath)!==0&&(o=o.clearRefinements(h.name)),u=o.getHierarchicalRefinement(h.name),u.length===0&&(o=o.toggleHierarchicalFacetRefinement(h.name,h.rootPath))}}),o},b.validate=function(g,l){var o=l||{};return g.tagFilters&&o.tagRefinements&&o.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."):g.tagRefinements.length>0&&o.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."):g.numericFilters&&o.numericRefinements&&i(o.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."):i(g.numericRefinements)&&o.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},b.prototype={constructor:b,clearRefinements:function(l){var o={numericRefinements:this._clearNumericRefinements(l),facetsRefinements:m.clearRefinement(this.facetsRefinements,l,"conjunctiveFacet"),facetsExcludes:m.clearRefinement(this.facetsExcludes,l,"exclude"),disjunctiveFacetsRefinements:m.clearRefinement(this.disjunctiveFacetsRefinements,l,"disjunctiveFacet"),hierarchicalFacetsRefinements:m.clearRefinement(this.hierarchicalFacetsRefinements,l,"hierarchicalFacet")};return o.numericRefinements===this.numericRefinements&&o.facetsRefinements===this.facetsRefinements&&o.facetsExcludes===this.facetsExcludes&&o.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&o.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(o)},clearTags:function(){return this.tagFilters===void 0&&this.tagRefinements.length===0?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(l){return l===this.index?this:this.setQueryParameters({index:l})},setQuery:function(l){return l===this.query?this:this.setQueryParameters({query:l})},setPage:function(l){return l===this.page?this:this.setQueryParameters({page:l})},setFacets:function(l){return this.setQueryParameters({facets:l})},setDisjunctiveFacets:function(l){return this.setQueryParameters({disjunctiveFacets:l})},setHitsPerPage:function(l){return this.hitsPerPage===l?this:this.setQueryParameters({hitsPerPage:l})},setTypoTolerance:function(l){return this.typoTolerance===l?this:this.setQueryParameters({typoTolerance:l})},addNumericRefinement:function(g,l,o){var d=s(o);if(this.isNumericRefined(g,l,d))return this;var h=n({},this.numericRefinements);return h[g]=n({},h[g]),h[g][l]?(h[g][l]=h[g][l].slice(),h[g][l].push(d)):h[g][l]=[d],this.setQueryParameters({numericRefinements:h})},getConjunctiveRefinements:function(g){return this.isConjunctiveFacet(g)?this.facetsRefinements[g]||[]:[]},getDisjunctiveRefinements:function(g){return this.isDisjunctiveFacet(g)?this.disjunctiveFacetsRefinements[g]||[]:[]},getHierarchicalRefinement:function(g){return this.hierarchicalFacetsRefinements[g]||[]},getExcludeRefinements:function(g){return this.isConjunctiveFacet(g)?this.facetsExcludes[g]||[]:[]},removeNumericRefinement:function(g,l,o){var d=o;return d!==void 0?this.isNumericRefined(g,l,d)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(h,u){return u===g&&h.op===l&&f(h.val,s(d))})}):this:l!==void 0?this.isNumericRefined(g,l)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(h,u){return u===g&&h.op===l})}):this:this.isNumericRefined(g)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(h,u){return u===g})}):this},getNumericRefinements:function(g){return this.numericRefinements[g]||{}},getNumericRefinement:function(g,l){return this.numericRefinements[g]&&this.numericRefinements[g][l]},_clearNumericRefinements:function(l){if(l===void 0)return i(this.numericRefinements)?{}:this.numericRefinements;if(typeof l=="string")return a(this.numericRefinements,[l]);if(typeof l=="function"){var o=!1,d=this.numericRefinements,h=Object.keys(d).reduce(function(u,p){var y=d[p],R={};return y=y||{}
20,Object.keys(y).forEach(function(P){var w=y[P]||[],_=[];w.forEach(function(S){var O=l({val:S,op:P},p,"numeric");O||_.push(S)}),_.length!==w.length&&(o=!0),R[P]=_}),u[p]=R,u},{});return o?h:this.numericRefinements}},addFacet:function(l){return this.isConjunctiveFacet(l)?this:this.setQueryParameters({facets:this.facets.concat([l])})},addDisjunctiveFacet:function(l){return this.isDisjunctiveFacet(l)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([l])})},addHierarchicalFacet:function(l){if(this.isHierarchicalFacet(l.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+l.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([l])})},addFacetRefinement:function(l,o){if(!this.isConjunctiveFacet(l))throw new Error(l+" is not defined in the facets attribute of the helper configuration");return m.isRefined(this.facetsRefinements,l,o)?this:this.setQueryParameters({facetsRefinements:m.addRefinement(this.facetsRefinements,l,o)})},addExcludeRefinement:function(l,o){if(!this.isConjunctiveFacet(l))throw new Error(l+" is not defined in the facets attribute of the helper configuration");return m.isRefined(this.facetsExcludes,l,o)?this:this.setQueryParameters({facetsExcludes:m.addRefinement(this.facetsExcludes,l,o)})},addDisjunctiveFacetRefinement:function(l,o){if(!this.isDisjunctiveFacet(l))throw new Error(l+" is not defined in the disjunctiveFacets attribute of the helper configuration");return m.isRefined(this.disjunctiveFacetsRefinements,l,o)?this:this.setQueryParameters({disjunctiveFacetsRefinements:m.addRefinement(this.disjunctiveFacetsRefinements,l,o)})},addTagRefinement:function(l){if(this.isTagRefined(l))return this;var o={tagRefinements:this.tagRefinements.concat(l)};return this.setQueryParameters(o)},removeFacet:function(l){return this.isConjunctiveFacet(l)?this.clearRefinements(l).setQueryParameters({facets:this.facets.filter(function(o){return o!==l})}):this},removeDisjunctiveFacet:function(l){return this.isDisjunctiveFacet(l)?this.clearRefinements(l).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(o){return o!==l})}):this},removeHierarchicalFacet:function(l){return this.isHierarchicalFacet(l)?this.clearRefinements(l).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(o){return o.name!==l})}):this},removeFacetRefinement:function(l,o){if(!this.isConjunctiveFacet(l))throw new Error(l+" is not defined in the facets attribute of the helper configuration");return m.isRefined(this.facetsRefinements,l,o)?this.setQueryParameters({facetsRefinements:m.removeRefinement(this.facetsRefinements,l,o)}):this},removeExcludeRefinement:function(l,o){if(!this.isConjunctiveFacet(l))throw new Error(l+" is not defined in the facets attribute of the helper configuration");return m.isRefined(this.facetsExcludes,l,o)?this.setQueryParameters({facetsExcludes:m.removeRefinement(this.facetsExcludes,l,o)}):this},removeDisjunctiveFacetRefinement:function(l,o){if(!this.isDisjunctiveFacet(l))throw new Error(l+" is not defined in the disjunctiveFacets attribute of the helper configuration");return m.isRefined(this.disjunctiveFacetsRefinements,l,o)?this.setQueryParameters({disjunctiveFacetsRefinements:m.removeRefinement(this.disjunctiveFacetsRefinements,l,o)}):this},removeTagRefinement:function(l){if(!this.isTagRefined(l))return this;var o={tagRefinements:this.tagRefinements.filter(function(d){return d!==l})};return this.setQueryParameters(o)},toggleRefinement:function(l,o){return this.toggleFacetRefinement(l,o)},toggleFacetRefinement:function(l,o){if(this.isHierarchicalFacet(l))return this.toggleHierarchicalFacetRefinement(l,o);if(this.isConjunctiveFacet(l))return this.toggleConjunctiveFacetRefinement(l,o);if(this.isDisjunctiveFacet(l))return this.toggleDisjunctiveFacetRefinement(l,o);throw new Error("Cannot refine the undeclared facet "+l+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(l,o){if(!this.isConjunctiveFacet(l))throw new Error(l+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:m.toggleRefinement(this.facetsRefinements,l,o)})},toggleExcludeFacetRefinement:function(l,o){if(!this.isConjunctiveFacet(l))throw new Error(l+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:m.toggleRefinement(this.facetsExcludes,l,o)})},toggleDisjunctiveFacetRefinement:function(l,o){if(!this.isDisjunctiveFacet(l))throw new Error(l+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:m.toggleRefinement(this.disjunctiveFacetsRefinements,l,o)})},toggleHierarchicalFacetRefinement:function(l,o){if(!this.isHierarchicalFacet(l))throw new Error(l+" is not defined in the hierarchicalFacets attribute of the helper configuration");var d=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(l)),h={},u=this.hierarchicalFacetsRefinements[l]!==void 0&&this.hierarchicalFacetsRefinements[l].length>0&&(this.hierarchicalFacetsRefinements[l][0]===o||this.hierarchicalFacetsRefinements[l][0].indexOf(o+d)===0);return u?o.indexOf(d)===-1?h[l]=[]:h[l]=[o.slice(0,o.lastIndexOf(d))]:h[l]=[o],this.setQueryParameters({hierarchicalFacetsRefinements:e(h,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(g,l){if(this.isHierarchicalFacetRefined(g))throw new Error(g+" is already refined.");if(!this.isHierarchicalFacet(g))throw new Error(g+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var o={};return o[g]=[l],this.setQueryParameters({hierarchicalFacetsRefinements:e(o,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(g){if(!this.isHierarchicalFacetRefined(g))return this;var l={};return l[g]=[],this.setQueryParameters({hierarchicalFacetsRefinements:e(l,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(l){return this.isTagRefined(l)?this.removeTagRefinement(l):this.addTagRefinement(l)},isDisjunctiveFacet:function(g){return this.disjunctiveFacets.indexOf(g)>-1},isHierarchicalFacet:function(g){return this.getHierarchicalFacetByName(g)!==void 0},isConjunctiveFacet:function(g){return this.facets.indexOf(g)>-1},isFacetRefined:function(l,o){return this.isConjunctiveFacet(l)?m.isRefined(this.facetsRefinements,l,o):!1},isExcludeRefined:function(l,o){return this.isConjunctiveFacet(l)?m.isRefined(this.facetsExcludes,l,o):!1},isDisjunctiveFacetRefined:function(l,o){return this.isDisjunctiveFacet(l)?m.isRefined(this.disjunctiveFacetsRefinements,l,o):!1},isHierarchicalFacetRefined:function(l,o){if(!this.isHierarchicalFacet(l))return!1;var d=this.getHierarchicalRefinement(l);return o?d.indexOf(o)!==-1:d.length>0},isNumericRefined:function(l,o,d){if(d===void 0&&o===void 0)return!!this.numericRefinements[l];var h=this.numericRefinements[l]&&this.numericRefinements[l][o]!==void 0;if(d===void 0||!h)return h;var u=s(d),p=v(this.numericRefinements[l][o],u)!==void 0;return h&&p},isTagRefined:function(l){return this.tagRefinements.indexOf(l)!==-1},getRefinedDisjunctiveFacets:function(){var l=this,o=r(Object.keys(this.numericRefinements).filter(function(d){return Object.keys(l.numericRefinements[d]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(d){return l.disjunctiveFacetsRefinements[d].length>0}).concat(o).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var l=this;return r(this.hierarchicalFacets.map(function(o){return o.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(o){return l.hierarchicalFacetsRefinements[o].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var g=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(l){return g.indexOf(l)===-1})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var l=this.managedParameters,o={},d=this;
20return Object.keys(this).forEach(function(h){var u=d[h];l.indexOf(h)===-1&&u!==void 0&&(o[h]=u)}),o},setQueryParameter:function(l,o){if(this[l]===o)return this;var d={};return d[l]=o,this.setQueryParameters(d)},setQueryParameters:function(l){if(!l)return this;var o=b.validate(this,l);if(o)throw o;var d=this,h=b._parseNumbers(l),u=Object.keys(this).reduce(function(y,R){return y[R]=d[R],y},{}),p=Object.keys(h).reduce(function(y,R){var P=y[R]!==void 0,w=h[R]!==void 0;return P&&!w?a(y,[R]):(w&&(y[R]=h[R]),y)},u);return new this.constructor(p)},resetPage:function(){return this.page===void 0?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(g){return g.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(g){return g.separator||" > "},_getHierarchicalRootPath:function(g){return g.rootPath||null},_getHierarchicalShowParentLevel:function(g){return typeof g.showParentLevel=="boolean"?g.showParentLevel:!0},getHierarchicalFacetByName:function(g){return t(this.hierarchicalFacets,function(l){return l.name===g})},getHierarchicalFacetBreadcrumb:function(g){if(!this.isHierarchicalFacet(g))return[];var l=this.getHierarchicalRefinement(g)[0];if(!l)return[];var o=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(g)),d=l.split(o);return d.map(function(h){return h.trim()})},toString:function(){return JSON.stringify(this,null,2)}},di=b,di}var hi,Cs;function wd(){return Cs||(Cs=1,hi=function(t){return Array.isArray(t)?t.filter(Boolean):[]}),hi}var mi,Ns;function Od(){return Ns||(Ns=1,mi=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}),mi}var gi,Ls;function qu(){if(Ls)return gi;Ls=1;var e=Jr();return gi=function(r,n){var i=(n||[]).map(function(a){return a.split(":")});return r.reduce(function(s,c){var m=c.split(":"),f=e(i,function(v){return v[0]===m[0]});return m.length>1||!f?(s[0].push(m[0]),s[1].push(m[1]),s):(s[0].push(f[0]),s[1].push(f[1]),s)},[[],[]])},gi}var pi,Hs;function _d(){if(Hs)return pi;Hs=1;function e(){var t=Array.prototype.slice.call(arguments);return t.reduceRight(function(r,n){return Object.keys(Object(n)).forEach(function(i){var a=typeof r[i]=="number"?r[i]:0,s=n[i];s!==void 0&&s>=a&&(r[i]!==void 0&&delete r[i],r[i]=s)}),r},{})}return pi=e,pi}var vi,Ms;function Qu(){if(Ms)return vi;Ms=1;function e(r,n){if(r!==n){var i=r!==void 0,a=r===null,s=n!==void 0,c=n===null;if(!c&&r>n||a&&s||!i)return 1;if(!a&&r<n||c&&i||!s)return-1}return 0}function t(r,n,i){if(!Array.isArray(r))return[];Array.isArray(i)||(i=[]);var a=r.map(function(s,c){return{criteria:n.map(function(m){return s[m]}),index:c,value:s}});return a.sort(function(c,m){for(var f=-1;++f<c.criteria.length;){var v=e(c.criteria[f],m.criteria[f]);if(v)return f>=i.length?v:i[f]==="desc"?-v:v}return c.index-m.index}),a.map(function(s){return s.value})}return vi=t,vi}var yi,Ws;
20function jd(){if(Ws)return yi;Ws=1,yi=s;var e=pa(),t=Jr(),r=qu(),n=Qu(),i=e.escapeFacetValue,a=e.unescapeFacetValue;function s(v){return function(g,l){var o=v.hierarchicalFacets[l],d=v.hierarchicalFacetsRefinements[o.name]&&v.hierarchicalFacetsRefinements[o.name][0]||"",h=v._getHierarchicalFacetSeparator(o),u=v._getHierarchicalRootPath(o),p=v._getHierarchicalShowParentLevel(o),y=r(v._getHierarchicalFacetSortBy(o)),R=g.every(function(_){return _.exhaustive}),P=c(y,h,u,p,d),w=g;return u&&(w=g.slice(u.split(h).length)),w.reduce(P,{name:v.hierarchicalFacets[l].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:R,data:null})}}function c(v,b,g,l,o){return function(h,u,p){var y=h;if(p>0){var R=0;for(y=h;R<p;){var P=y&&Array.isArray(y.data)?y.data:[];y=t(P,function(_){return _.isRefined}),R++}}if(y){var w=Object.keys(u.data).map(function(_){return[_,u.data[_]]}).filter(function(_){var S=_[0];return m(S,y.path||g,o,b,g,l)});y.data=n(w.map(function(_){var S=_[0],O=_[1];return f(O,S,b,a(o),u.exhaustive)}),v[0],v[1])}return h}}function m(v,b,g,l,o,d){return o&&(v.indexOf(o)!==0||o===v)?!1:!o&&v.indexOf(l)===-1||o&&v.split(l).length-o.split(l).length===1||v.indexOf(l)===-1&&g.indexOf(l)===-1||g.indexOf(v)===0||v.indexOf(b+l)===0&&(
20d||v.indexOf(g)===0)}function f(v,b,g,l,o){var d=b.split(g);return{name:d[d.length-1].trim(),path:b,escapedValue:i(b),count:v,isRefined:l===b||l.indexOf(b+g)===0,exhaustive:o,data:null}}return yi}var bi,Us;function Vu(){if(Us)return bi;Us=1;var e=wd(),t=Sa(),r=pa(),n=Jr(),i=Od(),a=qu(),s=_d(),c=Qu(),m=r.escapeFacetValue,f=r.unescapeFacetValue,v=jd();function b(S){var O={};return S.forEach(function(j,$){O[j]=$}),O}function g(S,O,j){O&&O[j]&&(S.stats=O[j])}function l(S,O){return n(S,function($){var T=$.attributes||[];return T.indexOf(O)>-1})}function o(S,O,j){var $=O[0]||{};this._rawResults=O;var T=this;Object.keys($).forEach(function(I){T[I]=$[I]});var F=t(j,{persistHierarchicalRootCount:!1});Object.keys(F).forEach(function(I){T[I]=F[I]}),this.processingTimeMS=O.reduce(function(I,M){return M.processingTimeMS===void 0?I:I+M.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=S.hierarchicalFacets.map(function(){return[]}),this.facets=[];var x=S.getRefinedDisjunctiveFacets(),N=b(S.facets),H=b(S.disjunctiveFacets),C=1,A=$.facets||{};Object.keys(A).forEach(function(I){var M=A[I],D=l(S.hierarchicalFacets,I);if(D){var k=D.attributes.indexOf(I),q=i(S.hierarchicalFacets,function(z){return z.name===D.name});T.hierarchicalFacets[q][k]={attribute:I,data:M,exhaustive:$.exhaustiveFacetsCount}}else{var Y=S.disjunctiveFacets.indexOf(I)!==-1,W=S.facets.indexOf(I)!==-1,B;Y&&(B=H[I],T.disjunctiveFacets[B]={name:I,data:M,exhaustive:$.exhaustiveFacetsCount},g(T.disjunctiveFacets[B],$.facets_stats,I)),W&&(B=N[I],T.facets[B]={name:I,data:M,exhaustive:$.exhaustiveFacetsCount},g(T.facets[B],$.facets_stats,I))}}),this.hierarchicalFacets=e(this.hierarchicalFacets),x.forEach(function(I){var M=O[C],D=M&&M.facets?M.facets:{},k=S.getHierarchicalFacetByName(I);Object.keys(D).forEach(function(q){var Y=D[q],W;if(k){W=i(S.hierarchicalFacets,function(K){return K.name===k.name});var B=i(T.hierarchicalFacets[W],function(K){return K.attribute===q});if(B===-1)return;T.hierarchicalFacets[W][B].data=T.persistHierarchicalRootCount?s(T.hierarchicalFacets[W][B].data,Y):t(Y,T.hierarchicalFacets[W][B].data)}else{W=H[q];var z=$.facets&&$.facets[q]||{};T.disjunctiveFacets[W]={name:q,data:s(z,Y),exhaustive:M.exhaustiveFacetsCount},g(T.disjunctiveFacets[W],M.facets_stats,q),S.disjunctiveFacetsRefinements[q]&&S.disjunctiveFacetsRefinements[q].forEach(function(K){!T.disjunctiveFacets[W].data[K]&&S.disjunctiveFacetsRefinements[q].indexOf(f(K))>-1&&(T.disjunctiveFacets[W].data[K]=0)})}}),C++}),S.getRefinedHierarchicalFacets().forEach(function(I){var M=S.getHierarchicalFacetByName(I),D=S._getHierarchicalFacetSeparator(M),k=S.getHierarchicalRefinement(I);k.length===0||k[0].split(D).length<2||O.slice(C).forEach(function(q){var Y=q&&q.facets?q.facets:{};Object.keys(Y).forEach(function(W){var B=Y[W],z=i(S.hierarchicalFacets,function(he){return he.name===M.name}),K=i(T.hierarchicalFacets[z],function(he){return he.attribute===W});if(K!==-1){var ie={};if(k.length>0&&!T.persistHierarchicalRootCount){var de=k[0].split(D)[0];ie[de]=T.hierarchicalFacets[z][K].data[de]}T.hierarchicalFacets[z][K].data=t(ie,B,T.hierarchicalFacets[z][K].data)}}),C++})}),Object.keys(S.facetsExcludes).forEach(function(I){var M=S.facetsExcludes[I],D=N[I];T.facets[D]={name:I,data:A[I],exhaustive:$.exhaustiveFacetsCount},M.forEach(function(k){T.facets[D]=T.facets[D]||{name:I},T.facets[D].data=T.facets[D].data||{},T.facets[D].data[k]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(v(S)),this.facets=e(this.facets),this.disjunctiveFacets=e(this.disjunctiveFacets),this._state=S}o.prototype.getFacetByName=function(S){function O(j){return j.name===S}return n(this.facets,O)||n(this.disjunctiveFacets,O)||n(this.hierarchicalFacets,O)};function d(S,O){function j(A){return A.name===O}if(S._state.isConjunctiveFacet(O)){var $=n(S.facets,j);return $?Object.keys($.data).map(function(A){var I=m(A);return{name:A,escapedValue:I,count:$.data[A],isRefined:S._state.isFacetRefined(O,I),isExcluded:S._state.isExcludeRefined(O,A)}}):[]}else if(S._state.isDisjunctiveFacet(O)){var T=n(S.disjunctiveFacets,j);return T?Object.keys(T.data).map(function(A){var I=m(A);return{name:A,escapedValue:I,count:T.data[A],isRefined:S._state.isDisjunctiveFacetRefined(O,I)}}):[]}else if(S._state.isHierarchicalFacet(O)){var F=n(S.hierarchicalFacets,j);if(!F)return F;var x=S._state.getHierarchicalFacetByName(O),N=S._state._getHierarchicalFacetSeparator(x),H=f(S._state.getHierarchicalRefinement(O)[0]||"");H.indexOf(x.rootPath)===0&&(H=H.replace(x.rootPath+N,""));
20var C=H.split(N);return C.unshift(O),h(F,C,0),F}}function h(S,O,j){S.isRefined=S.name===(O[j]&&O[j].trim()),S.data&&S.data.forEach(function($){h($,O,j+1)})}function u(S,O,j,$){if($=$||0,Array.isArray(O))return S(O,j[$]);if(!O.data||O.data.length===0)return O;var T=O.data.map(function(N){return u(S,N,j,$+1)}),F=S(T,j[$]),x=t({data:F},O);return x}o.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"];function p(S,O){return O.sort(S)}function y(S,O){var j=[],$=[],T=O.hide||[],F=O.order||[],x=F.reduce(function(C,A,I){return C[A]=I,C},{});S.forEach(function(C){var A=C.path||C.name,I=T.indexOf(A)>-1;!I&&x[A]!==void 0?j[x[A]]=C:I||$.push(C)}),j=j.filter(function(C){return C});var N=O.sortRemainingBy,H;return N==="hidden"?j:(N==="alpha"?H=[["path","name"],["asc","asc"]]:H=[["count"],["desc"]],j.concat(c($,H[0],H[1])))}function R(S,O){return S.renderingContent&&S.renderingContent.facetOrdering&&S.renderingContent.facetOrdering.values&&S.renderingContent.facetOrdering.values[O]}o.prototype.getFacetValues=function(S,O){var j=d(this,S);if(j){var $=t(O,{sortBy:o.DEFAULT_SORT,facetOrdering:!(O&&O.sortBy)}),T=this,F;if(Array.isArray(j))F=[S];else{var x=T._state.getHierarchicalFacetByName(j.name);F=x.attributes}return u(function(N,H){if($.facetOrdering){var C=R(T,H);if(C)return y(N,C)}if(Array.isArray($.sortBy)){var A=a($.sortBy,o.DEFAULT_SORT);return c(N,A[0],A[1])}else if(typeof $.sortBy=="function")return p($.sortBy,N);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},j,F)}},o.prototype.getFacetStats=function(S){if(this._state.isConjunctiveFacet(S))return P(this.facets,S);if(this._state.isDisjunctiveFacet(S))return P(this.disjunctiveFacets,S)};function P(S,O){var j=n(S,function($){return $.name===O});return j&&j.stats}o.prototype.getRefinements=function(){var S=this._state,O=this,j=[];return Object.keys(S.facetsRefinements).forEach(function($){S.facetsRefinements[$].forEach(function(T){j.push(w(S,"facet",$,T,O.facets))})}),Object.keys(S.facetsExcludes).forEach(function($){S.facetsExcludes[$].forEach(function(T){j.push(w(S,"exclude",$,T,O.facets))})}),Object.keys(S.disjunctiveFacetsRefinements).forEach(function($){S.disjunctiveFacetsRefinements[$].forEach(function(T){j.push(w(S,"disjunctive",$,T,O.disjunctiveFacets))})}),Object.keys(S.hierarchicalFacetsRefinements).forEach(function($){S.hierarchicalFacetsRefinements[$].forEach(function(T){j.push(_(S,$,T,O.hierarchicalFacets))})}),Object.keys(S.numericRefinements).forEach(function($){var T=S.numericRefinements[$];Object.keys(T).forEach(function(F){T[F].forEach(function(x){j.push({type:"numeric",attributeName:$,name:x,numericValue:x,operator:F})})})}),S.tagRefinements.forEach(function($){j.push({type:"tag",attributeName:"_tags",name:$})}),j};function w(S,O,j,$,T){var F=n(T,function(H){return H.name===j}),x=F&&F.data&&F.data[$]?F.data[$]:0,N=F&&F.exhaustive||!1;return{type:O,attributeName:j,name:$,count:x,exhaustive:N}}function _(S,O,j,$){var T=S.getHierarchicalFacetByName(O),F=S._getHierarchicalFacetSeparator(T),x=j.split(F),N=n($,function(M){return M.name===O}),H=x.reduce(function(M,D){var k=M&&n(M.data,function(q){return q.name===D});return k!==void 0?k:M},N),C=H&&H.count||0,A=H&&H.exhaustive||!1,I=H&&H.path||"";return{type:"hierarchical",attributeName:O,name:I,count:C,exhaustive:A}}return bi=o,bi}var Si,ks;function Ed(){return ks||(ks=1,Si=function(t){return t.reduce(function(r,n){return r.concat(n)},[])}),Si}var Ri,qs;function $d(){if(qs)return Ri;qs=1;var e=Jr(),t=Ed();function r(i,a){var s=[];
20return Object.keys(i).forEach(function(c){i[c].count<2&&(i[c].indexSum+=100),s.push({objectID:c,avgOfIndices:i[c].indexSum/a})}),s.sort(function(c,m){return c.avgOfIndices>m.avgOfIndices?1:-1})}function n(i,a){var s={};a.forEach(function(f){f.forEach(function(v,b){i.includes(v.objectID)||(s[v.objectID]?s[v.objectID]={indexSum:s[v.objectID].indexSum+b,count:s[v.objectID].count+1}:s[v.objectID]={indexSum:b,count:1})})});var c=r(s,a.length),m=c.reduce(function(f,v){var b=e(t(a),function(g){return g.objectID===v.objectID});return b?f.concat(b):f},[]);return m}return Ri=n,Ri}var Pi,Qs;function Bu(){return Qs||(Qs=1,Pi="3.26.0"),Pi}var wi,Vs;function Td(){if(Vs)return wi;Vs=1;var e=ga(),t=vd(),r=pa().escapeFacetValue,n=Mu(),i=va(),a=ya(),s=ba(),c=Wu(),m=Uu(),f=yd(),v=ku(),b=Vu(),g=$d(),l=Bu();function o(u,p,y,R){typeof u.addAlgoliaAgent=="function"&&u.addAlgoliaAgent("JS Helper ("+l+")"),this.setClient(u);var P=y||{};P.index=p,this.state=v.make(P),this.recommendState=new c({params:P.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=R,this._recommendCache={}}n(o,e),o.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},o.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},o.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},o.prototype.recommend=function(){return this._recommend(),this},o.prototype.getQuery=function(){var u=this.state;return f._getHitsSearchParams(u)},o.prototype.searchOnce=function(u,p){var y=u?this.state.setQueryParameters(u):this.state,R=f._getQueries(y.index,y),P=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:y}),p){this.client.search(R).then(function(w){P._currentNbQueries--,P._currentNbQueries===0&&P.emit("searchQueueEmpty"),p(null,new b(y,w.results),y)}).catch(function(w){P._currentNbQueries--,P._currentNbQueries===0&&P.emit("searchQueueEmpty"),p(w,null,y)});return}return this.client.search(R).then(function(w){return P._currentNbQueries--,P._currentNbQueries===0&&P.emit("searchQueueEmpty"),{content:new b(y,w.results),state:y,_originalResponse:w}},function(w){throw P._currentNbQueries--,P._currentNbQueries===0&&P.emit("searchQueueEmpty"),w})},o.prototype.findAnswers=function(u){console.warn("[algoliasearch-helper] answers is no longer supported");var p=this.state,y=this.derivedHelpers[0];if(!y)return Promise.resolve([]);var R=y.getModifiedState(p),P=i({attributesForPrediction:u.attributesForPrediction,nbHits:u.nbHits},{params:s(f._getHitsSearchParams(R),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),w="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(w);var _=this.client.initIndex(R.index);if(typeof _.findAnswers!="function")throw new Error(w);return _.findAnswers(R.query,u.queryLanguages,P)},o.prototype.searchForFacetValues=function(u,p,y,R){var P=typeof this.client.searchForFacetValues=="function"&&typeof this.client.searchForFacets!="function",w=typeof this.client.initIndex=="function";if(!P&&!w&&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 _=this.state.setQueryParameters(R||{}),S=_.isDisjunctiveFacet(u),O=f.getSearchForFacetQuery(u,p,y,_);this._currentNbQueries++;var j=this,$;P?$=this.client.searchForFacetValues([{indexName:_.index,params:O}]):w?$=this.client.initIndex(_.index).searchForFacetValues(O):(delete O.facetName,$=this.client.search([{type:"facet",facet:u,indexName:_.index,params:O}]).then(function(x){return x.results[0]})),this.emit("searchForFacetValues",{state:_,facet:u,query:p});var T=this.lastResults&&this.lastResults.index===_.index&&this.lastResults.renderingContent&&this.lastResults.renderingContent.facetOrdering&&this.lastResults.renderingContent.facetOrdering.values&&this.lastResults.renderingContent.facetOrdering.values[u]&&this.lastResults.renderingContent.facetOrdering.values[u].hide||[];return $.then(function(x){return j._currentNbQueries--,j._currentNbQueries===0&&j.emit("searchQueueEmpty"),x=Array.isArray(x)?x[0]:x,x.facetHits.forEac
20h(function(N,H){if(T.indexOf(N.value)>-1){x.facetHits.splice(H,1);return}N.escapedValue=r(N.value),N.isRefined=S?_.isDisjunctiveFacetRefined(u,N.escapedValue):_.isFacetRefined(u,N.escapedValue)}),x},function(F){throw j._currentNbQueries--,j._currentNbQueries===0&&j.emit("searchQueueEmpty"),F})},o.prototype.searchForCompositionFacetValues=function(u,p,y,R){if(typeof this.client.searchForFacetValues!="function")throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var P=this.state.setQueryParameters(R||{}),w=P.isDisjunctiveFacet(u);this._currentNbQueries++;var _=this,S;return S=this.client.searchForFacetValues({compositionID:P.index,facetName:u,searchForFacetValuesRequest:{params:{query:p,maxFacetHits:y,searchQuery:f._getCompositionHitsSearchParams(P)}}}),this.emit("searchForFacetValues",{state:P,facet:u,query:p}),S.then(function(j){return _._currentNbQueries--,_._currentNbQueries===0&&_.emit("searchQueueEmpty"),j=j.results[0],j.facetHits.forEach(function($){$.escapedValue=r($.value),$.isRefined=w?P.isDisjunctiveFacetRefined(u,$.escapedValue):P.isFacetRefined(u,$.escapedValue)}),j},function(O){throw _._currentNbQueries--,_._currentNbQueries===0&&_.emit("searchQueueEmpty"),O})},o.prototype.setQuery=function(u){return this._change({state:this.state.resetPage().setQuery(u),isPageReset:!0}),this},o.prototype.clearRefinements=function(u){return this._change({state:this.state.resetPage().clearRefinements(u),isPageReset:!0}),this},o.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},o.prototype.addDisjunctiveFacetRefinement=function(u,p){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(u,p),isPageReset:!0}),this},o.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},o.prototype.addHierarchicalFacetRefinement=function(u,p){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(u,p),isPageReset:!0}),this},o.prototype.addNumericRefinement=function(u,p,y){return this._change({state:this.state.resetPage().addNumericRefinement(u,p,y),isPageReset:!0}),this},o.prototype.addFacetRefinement=function(u,p){return this._change({state:this.state.resetPage().addFacetRefinement(u,p),isPageReset:!0}),this},o.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},o.prototype.addFacetExclusion=function(u,p){return this._change({state:this.state.resetPage().addExcludeRefinement(u,p),isPageReset:!0}),this},o.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},o.prototype.addTag=function(u){return this._change({state:this.state.resetPage().addTagRefinement(u),isPageReset:!0}),this},o.prototype.addFrequentlyBoughtTogether=function(u){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(u)}),this},o.prototype.addRelatedProducts=function(u){return this._recommendChange({state:this.recommendState.addRelatedProducts(u)}),this},o.prototype.addTrendingItems=function(u){return this._recommendChange({state:this.recommendState.addTrendingItems(u)}),this},o.prototype.addTrendingFacets=function(u){return this._recommendChange({state:this.recommendState.addTrendingFacets(u)}),this},o.prototype.addLookingSimilar=function(u){return this._recommendChange({state:this.recommendState.addLookingSimilar(u)}),this},o.prototype.removeNumericRefinement=function(u,p,y){return this._change({state:this.state.resetPage().removeNumericRefinement(u,p,y),isPageReset:!0}),this},o.prototype.removeDisjunctiveFacetRefinement=function(u,p){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(u,p),isPageReset:!0}),this},o.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},o.prototype.removeHierarchicalFacetRefinement=function(u){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(u),isPageReset:!0}),this},o.prototype.removeFacetRefinement=function(u,p){return this._change({state:this.state.resetPage().removeFacetRefinement(u,p),isPageReset:!0}),this},o.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},o.prototype.removeFacetExclusion=function(u,p){return this._change({state:this.state.resetPage().removeExcludeRefinement(u,p),isPageReset:!0}),this},o.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},o.prototype.removeTag=function(u){return this._change({state:this.state.resetPage().removeTagRefinement(u),isPageReset:!0}),this},o.prototype.removeFrequentlyBoughtTogether=function(u){return this._recommendChange({state:this.recommendState.removeParam
20s(u)}),this},o.prototype.removeRelatedProducts=function(u){return this._recommendChange({state:this.recommendState.removeParams(u)}),this},o.prototype.removeTrendingItems=function(u){return this._recommendChange({state:this.recommendState.removeParams(u)}),this},o.prototype.removeTrendingFacets=function(u){return this._recommendChange({state:this.recommendState.removeParams(u)}),this},o.prototype.removeLookingSimilar=function(u){return this._recommendChange({state:this.recommendState.removeParams(u)}),this},o.prototype.toggleFacetExclusion=function(u,p){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(u,p),isPageReset:!0}),this},o.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},o.prototype.toggleRefinement=function(u,p){return this.toggleFacetRefinement(u,p)},o.prototype.toggleFacetRefinement=function(u,p){return this._change({state:this.state.resetPage().toggleFacetRefinement(u,p),isPageReset:!0}),this},o.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},o.prototype.toggleTag=function(u){return this._change({state:this.state.resetPage().toggleTagRefinement(u),isPageReset:!0}),this},o.prototype.nextPage=function(){var u=this.state.page||0;return this.setPage(u+1)},o.prototype.previousPage=function(){var u=this.state.page||0;return this.setPage(u-1)};function d(u){if(u<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(u),isPageReset:!1}),this}o.prototype.setCurrentPage=d,o.prototype.setPage=d,o.prototype.setIndex=function(u){return this._change({state:this.state.resetPage().setIndex(u),isPageReset:!0}),this},o.prototype.setQueryParameter=function(u,p){return this._change({state:this.state.resetPage().setQueryParameter(u,p),isPageReset:!0}),this},o.prototype.setState=function(u){return this._change({state:v.make(u),isPageReset:!1}),this},o.prototype.overrideStateWithoutTriggeringChangeEvent=function(u){return this.state=new v(u),this},o.prototype.hasRefinements=function(u){return a(this.state.getNumericRefinements(u))?!0:this.state.isConjunctiveFacet(u)?this.state.isFacetRefined(u):this.state.isDisjunctiveFacet(u)?this.state.isDisjunctiveFacetRefined(u):this.state.isHierarchicalFacet(u)?this.state.isHierarchicalFacetRefined(u):!1},o.prototype.isExcluded=function(u,p){return this.state.isExcludeRefined(u,p)},o.prototype.isDisjunctiveRefined=function(u,p){return this.state.isDisjunctiveFacetRefined(u,p)},o.prototype.hasTag=function(u){return this.state.isTagRefined(u)},o.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},o.prototype.getIndex=function(){return this.state.index};function h(){return this.state.page}return o.prototype.getCurrentPage=h,o.prototype.getPage=h,o.prototype.getTags=function(){return this.state.tagRefinements},o.prototype.getRefinements=function(u){var p=[];if(this.state.isConjunctiveFacet(u)){var y=this.state.getConjunctiveRefinements(u);y.forEach(function(_){p.push({value:_,type:"conjunctive"})});var R=this.state.getExcludeRefinements(u);R.forEach(function(_){p.push({value:_,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(u)){var P=this.state.getDisjunctiveRefinements(u);P.forEach(function(_){p.push({value:_,type:"disjunctive"})})}var w=this.state.getNumericRefinements(u);
20return Object.keys(w).forEach(function(_){var S=w[_];p.push({value:S,operator:_,type:"numeric"})}),p},o.prototype.getNumericRefinement=function(u,p){return this.state.getNumericRefinement(u,p)},o.prototype.getHierarchicalFacetBreadcrumb=function(u){return this.state.getHierarchicalFacetBreadcrumb(u)},o.prototype._search=function(u){var p=this.state,y=[],R=[];u.onlyWithDerivedHelpers||(R=f._getQueries(p.index,p),y.push({state:p,queriesCount:R.length,helper:this}),this.emit("search",{state:p,results:this.lastResults}));var P=this.derivedHelpers.map(function(S){var O=S.getModifiedState(p),j=O.index?f._getQueries(O.index,O):[];return y.push({state:O,queriesCount:j.length,helper:S}),S.emit("search",{state:O,results:S.lastResults}),j}),w=Array.prototype.concat.apply(R,P),_=this._queryId++;if(this._currentNbQueries++,!w.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,y,_));try{this.client.search(w).then(this._dispatchAlgoliaResponse.bind(this,y,_)).catch(this._dispatchAlgoliaError.bind(this,_))}catch(S){this.emit("error",{error:S})}},o.prototype._runComposition=function(){var u=this.state,p=[],y=[],R=this.derivedHelpers.map(function(S){var O=S.getModifiedState(u),j=f._getCompositionQueries(O);return p.push({state:O,queriesCount:j.length,helper:S}),S.emit("search",{state:O,results:S.lastResults}),j}),P=Array.prototype.concat.apply(y,R),w=this._queryId++;if(this._currentNbQueries++,!P.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,p,w));if(P.length>1)throw new Error("Only one query is allowed when using a composition.");var _=P[0];try{this.client.search(_).then(this._dispatchAlgoliaResponse.bind(this,p,w)).catch(this._dispatchAlgoliaError.bind(this,w))}catch(S){this.emit("error",{error:S})}},o.prototype._recommend=function(){var u=this.state,p=this.recommendState,y=this.getIndex(),R=[{state:p,index:y,helper:this}],P=p.params.map(function(j){return j.$$id});this.emit("fetch",{recommend:{state:p,results:this.lastRecommendResults}});var w=this._recommendCache,_=this.derivedHelpers.map(function(j){var $=j.getModifiedState(u).index;if(!$)return[];var T=j.getModifiedRecommendState(new c);return R.push({state:T,index:$,helper:j}),P=Array.prototype.concat.apply(P,T.params.map(function(F){return F.$$id})),j.emit("fetch",{recommend:{state:T,results:j.lastRecommendResults}}),T._buildQueries($,w)}),S=Array.prototype.concat.apply(this.recommendState._buildQueries(y,w),_);if(S.length!==0){if(S.length>0&&typeof this.client.getRecommendations>"u"){console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");return}var O=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(S).then(this._dispatchRecommendResponse.bind(this,O,R,P)).catch(this._dispatchRecommendError.bind(this,O))}catch(j){this.emit("error",{error:j})}}},o.prototype._dispatchAlgoliaResponse=function(u,p,y){var R=this;if(!(p<this._lastQueryIdReceived)){this._currentNbQueries-=p-this._lastQueryIdReceived,this._lastQueryIdReceived=p,this._currentNbQueries===0&&this.emit("searchQueueEmpty");var P=y.results.slice(),w=Object.keys(y).reduce(function(_,S){return S!=="results"&&(_[S]=y[S]),_},{});Object.keys(w).length<=0&&(w=void 0),u.forEach(function(_){var S=_.state,O=_.queriesCount,j=_.helper,$=P.splice(0,O);if(!S.index){j.emit("result",{results:null,state:S});return}j.lastResults=new b(S,$,R._searchResultsOptions),w!==void 0&&(j.lastResults._rawContent=w),j.emit("result",{results:j.lastResults,state:S})})}},o.prototype._dispatchRecommendResponse=function(u,p,y,R){if(!(u<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=u-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=u,this._currentNbRecommendQueries===0&&this.emit("recommendQueueEmpty");var P=this._recommendCache,w={};y.filter(function(S){return P[S]===void 0}).forEach(function(S,O){w[S]||(w[S]=[]),w[S].push(O)}
20),Object.keys(w).forEach(function(S){var O=w[S],j=R.results[O[0]];if(O.length===1){P[S]=j;return}P[S]=Object.assign({},j,{hits:g(y,O.map(function($){return R.results[$].hits}))})});var _={};y.forEach(function(S){_[S]=P[S]}),p.forEach(function(S){var O=S.state,j=S.helper;if(!S.index){j.emit("recommend:result",{results:null,state:O});return}j.lastRecommendResults=new m(O,_),j.emit("recommend:result",{recommend:{results:j.lastRecommendResults,state:O}})})}},o.prototype._dispatchAlgoliaError=function(u,p){u<this._lastQueryIdReceived||(this._currentNbQueries-=u-this._lastQueryIdReceived,this._lastQueryIdReceived=u,this.emit("error",{error:p}),this._currentNbQueries===0&&this.emit("searchQueueEmpty"))},o.prototype._dispatchRecommendError=function(u,p){u<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=u-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=u,this.emit("error",{error:p}),this._currentNbRecommendQueries===0&&this.emit("recommendQueueEmpty"))},o.prototype.containsRefinement=function(u,p,y,R){return u||p.length!==0||y.length!==0||R.length!==0},o.prototype._hasDisjunctiveRefinements=function(u){return this.state.disjunctiveRefinements[u]&&this.state.disjunctiveRefinements[u].length>0},o.prototype._change=function(u){var p=u.state,y=u.isPageReset;p!==this.state&&(this.state=p,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:y}))},o.prototype._recommendChange=function(u){var p=u.state;p!==this.recommendState&&(this.recommendState=p,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},o.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},o.prototype.setClient=function(u){return this.client===u?this:(typeof u.addAlgoliaAgent=="function"&&u.addAlgoliaAgent("JS Helper ("+l+")"),this.client=u,this)},o.prototype.getClient=function(){return this.client},o.prototype.derive=function(u,p){var y=new t(this,u,p);return this.derivedHelpers.push(y),y},o.prototype.detachDerivedHelper=function(u){var p=this.derivedHelpers.indexOf(u);if(p===-1)throw new Error("Derived helper already detached");this.derivedHelpers.splice(p,1)},o.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},wi=o,wi}var Oi,Bs;function xd(){if(Bs)return Oi;Bs=1;var e=Td(),t=Wu(),r=Uu(),n=ku(),i=Vu();function a(s,c,m,f){return new e(s,c,m,f)}return a.version=Bu(),a.AlgoliaSearchHelper=e,a.SearchParameters=n,a.RecommendParameters=t,a.SearchResults=i,a.RecommendResults=r,Oi=a,Oi}var Fd=xd();const je=sa(Fd);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)}function Ks(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 Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ks(Object(r),!0).forEach(function(n){Ku(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ks(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ku(e,t,r){return t=Id(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Id(e){var t=Ad(e,"string");return vr(t)=="symbol"?t:String(t)}function Ad(e,t){if(vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dd=ce({name:"configure",connector:!0});function zs(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(r,n){return Se(Se({},r),{},Ku({},n,void 0))},{}))}var zu=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return function(n){if(!n||!Eu(n.searchParameters))throw new Error(Dd("The `searchParameters` option expects an object."));var i={};function a(s){return function(c){var m=zs(s.state,n),f=sr(m,new je.SearchParameters(c));n.searchParameters=c,s.setState(f).search()}}return{$$type:"ais.configure",init:function(c){var m=c.instantSearchInstance;t(Se(Se({},this.getWidgetRenderState(c)),{},{instantSearchInstance:m}),!0)},render:function(c){var m=c.instantSearchInstance;t(Se(Se({},this.getWidgetRenderState(c)),{},{instantSearchInstance:m}),!1)},dispose:function(c){var m=c.state;return r(),zs(m,n)},getRenderState:function(c,m){var f,v=this.getWidgetRenderState(m);return Se(Se({},c),{},{configure:Se(Se({},v),{},{widgetParams:Se(Se({},v.widgetParams),{}
20,{searchParameters:sr(new je.SearchParameters((f=c.configure)===null||f===void 0?void 0:f.widgetParams.searchParameters),new je.SearchParameters(v.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(c){var m=c.helper;return i.refine||(i.refine=a(m)),{refine:i.refine,widgetParams:n}},getWidgetSearchParameters:function(c,m){var f=m.uiState;return sr(c,new je.SearchParameters(Se(Se({},f.configure),n.searchParameters)))},getWidgetUiState:function(c){return Se(Se({},c),{},{configure:Se(Se({},c.configure),n.searchParameters)})}}}};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 Gs(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 _i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gs(Object(r),!0).forEach(function(n){Cd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cd(e,t,r){return t=Nd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nd(e){var t=Ld(e,"string");return yr(t)=="symbol"?t:String(t)}function Ld(e,t){if(yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ys(e){return Ud(e)||Wd(e)||Md(e)||Hd()}function Hd(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Md(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 Wd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ud(e){if(Array.isArray(e))return Qi(e)}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}var Js=ce({name:"configure-related-items",connector:!0});function Xs(e){var t=e.attributeName,r=e.attributeValue,n=e.attributeScore;return"".concat(t,":").concat(r,"<score=").concat(n||1,">")}var kd=function(t,r){return function(n){var i=n||{},a=i.hit,s=i.matchingPatterns,c=i.transformSearchParameters,m=c===void 0?function(g){return g}:c;if(!a)throw new Error(Js("The `hit` option is required."));if(!s)throw new Error(Js("The `matchingPatterns` option is required."));var f=Object.keys(s).reduce(function(g,l){var o=s[l],d=Wt(a,l),h=o.score;return Array.isArray(d)?[].concat(Ys(g),[d.map(function(u){return Xs({attributeName:l,attributeValue:u,attributeScore:h})})]):typeof d=="string"?[].concat(Ys(g),[Xs({attributeName:l,attributeValue:d,attributeScore:h})]):g},[]),v=_i({},m(new je.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:f}))),b=zu(t,r);return _i(_i({},b({searchParameters:v})),{},{$$type:"ais.configureRelatedItems"})}};function Zs(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?Zs(Object(r),!0).forEach(function(n){qd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qd(e,t,r){return t=Qd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qd(e){var t=Vd(e,"string");return Lt(t)=="symbol"?t:String(t)}function Vd(e,t){if(Lt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lt(e){"@babel/helpers - typeof";return Lt=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},Lt(e)}var un=ce({name:"dynamic-widgets",connector:!0}),Bd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,un()),function(n){var i=n.widgets,a=n.maxValuesPerFacet,s=a===void 0?20:a,c=n.facets,m=c===void 0?["*"]:c,f=n.transformItems,v=f===void 0?function(l){return l}:f,b=n.fallbackWidget;if(!(i&&Array.isArray(i)&&i.every(function(l){return Lt(l)==="object"})))throw new Error(un("The `widgets` option expects an array of widgets."));if(!Array.isArray(m))throw new Error(un("The `facets` option only accepts an array of facets, you passed ".concat(JSON.stringify(m))));var g=new Map;
21return{$$type:"ais.dynamicWidgets",init:function(o){i.forEach(function(d){var h=_f(d,o);g.set(h,{widget:d,isMounted:!1})}),t(Et(Et({},this.getWidgetRenderState(o)),{},{instantSearchInstance:o.instantSearchInstance}),!0)},render:function(o){var d=o.parent,h=this.getWidgetRenderState(o),u=[],p=[];b&&h.attributesToRender.forEach(function(y){if(!g.has(y)){var R=b({attribute:y});g.set(y,{widget:R,isMounted:!1})}}),g.forEach(function(y,R){var P=y.widget,w=y.isMounted,_=h.attributesToRender.indexOf(R)>-1;!w&&_?(p.push(P),g.set(R,{widget:P,isMounted:!0})):w&&!_&&(u.push(P),g.set(R,{widget:P,isMounted:!1}))}),d.addWidgets(p),setTimeout(function(){return d.removeWidgets(u)},0),t(Et(Et({},h),{},{instantSearchInstance:o.instantSearchInstance}),!1)},dispose:function(o){var d=o.parent,h=[];g.forEach(function(u){var p=u.widget,y=u.isMounted;y&&h.push(p)}),d.removeWidgets(h),r()},getWidgetSearchParameters:function(o){return m.reduce(function(d,h){return d.addFacet(h)},o.setQueryParameters({maxValuesPerFacet:Math.max(s||0,o.maxValuesPerFacet||0)}))},getRenderState:function(o,d){return Et(Et({},o),{},{dynamicWidgets:this.getWidgetRenderState(d)})},getWidgetRenderState:function(o){var d,h,u,p,y=o.results;if(o.state,!y)return{attributesToRender:[],widgetParams:n};var R=v((d=(h=y.renderingContent)===null||h===void 0||(u=h.facetOrdering)===null||u===void 0||(p=u.facets)===null||p===void 0?void 0:p.order)!==null&&d!==void 0?d:[],{results:y});if(!Array.isArray(R))throw new Error(un("The `transformItems` option expects a function that returns an Array."));return{attributesToRender:R,widgetParams:n}}}}};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 Kd(e){return Jd(e)||Yd(e)||Gd(e)||zd()}function zd(){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 Gd(e,t){if(e){if(typeof e=="string")return Vi(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 Vi(e,t)}}function Yd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jd(e){if(Array.isArray(e))return Vi(e)}function Vi(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 eo(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 $t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eo(Object(r),!0).forEach(function(n){Xd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xd(e,t,r){return t=Zd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zd(e){var t=eh(e,"string");return br(t)=="symbol"?t:String(t)}function eh(e,t){if(br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var to=ce({name:"clear-refinements",connector:!0}),th=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,to()),function(n){var i=n||{},a=i.includedAttributes,s=a===void 0?[]:a,c=i.excludedAttributes,m=c===void 0?["query"]:c,f=i.transformItems,v=f===void 0?function(o){return o}:f;if(n&&n.includedAttributes&&n.excludedAttributes)throw new Error(to("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var b={refine:Z,createURL:function(){return""},attributesToClear:[]},g=function(){return b.refine()},l=function(){return b.createURL()};return{$$type:"ais.clearRefinements",init:function(d){var h=d.instantSearchInstance;t($t($t({},this.getWidgetRenderState(d)),{},{instantSearchInstance:h}),!0)},render:function(d){var h=d.instantSearchInstance;t($t($t({},this.getWidgetRenderState(d)),{},{instantSearchInstance:h}),!1)},dispose:function(){r()},getRenderState:function(d,h){return $t($t({},d),{},{clearRefinements:this.getWidgetRenderState(h)})},getWidgetRenderState:function(d){var h=d.createURL,u=d.scopedResults,p=d.results;b.attributesToClear=u.reduce(function(R,P){return R.concat(rh({scopedResult:P,includedAttributes:s,excludedAttributes:m,transformItems:v,results:p}))},[]),b.refine=function(){b.attributesToClear.forEach(function(R){var P=R.helper,w=R.items;P.setState(Xa({helper:P,attributesToClear:w})).search()})},b.createURL=function(){return h(sr.apply(void 0,Kd(b.attributesToClear.map(function(R){var P=R.helper,w=R.items;return Xa({helper:P,attributesToClear:w})}
22))))};var y=b.attributesToClear.some(function(R){return R.items.length>0});return{canRefine:y,hasRefinements:y,refine:g,createURL:l,widgetParams:n}}}}};function rh(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(ma(ha(t.results,t.helper.state,s).map(function(c){return c.attribute}).filter(function(c){return r.length===0||r.indexOf(c)!==-1}).filter(function(c){return c==="query"&&s||n.indexOf(c)===-1})),{results:a})}}function Sr(e){"@babel/helpers - typeof";return Sr=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},Sr(e)}function nh(e){return oh(e)||sh(e)||ah(e)||ih()}function ih(){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 ah(e,t){if(e){if(typeof e=="string")return Bi(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 Bi(e,t)}}function sh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oh(e){if(Array.isArray(e))return Bi(e)}function Bi(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 ro(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 Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ro(Object(r),!0).forEach(function(n){uh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uh(e,t,r){return t=ch(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ch(e){var t=lh(e,"string");return Sr(t)=="symbol"?t:String(t)}function lh(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var no=ce({name:"current-refinements",connector:!0}),fh=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,no()),function(n){if((n||{}).includedAttributes&&(n||{}).excludedAttributes)throw new Error(no("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var i=n||{},a=i.includedAttributes,s=i.excludedAttributes,c=s===void 0?["query"]:s,m=i.transformItems,f=m===void 0?function(v){return v}:m;return{$$type:"ais.currentRefinements",init:function(b){var g=b.instantSearchInstance;t(Tt(Tt({},this.getWidgetRenderState(b)),{},{instantSearchInstance:g}),!0)},render:function(b){var g=b.instantSearchInstance;t(Tt(Tt({},this.getWidgetRenderState(b)),{},{instantSearchInstance:g}),!1)},dispose:function(){r()},getRenderState:function(b,g){return Tt(Tt({},b),{},{currentRefinements:this.getWidgetRenderState(g)})},getWidgetRenderState:function(b){var g=b.results,l=b.scopedResults,o=b.createURL,d=b.helper;function h(){return g?l.reduce(function(p,y){return p.concat(f(io({results:y.results,helper:y.helper,indexId:y.indexId,includedAttributes:a,excludedAttributes:c}),{results:g}))},[]):f(io({results:null,helper:d,indexId:d.state.index,includedAttributes:a,excludedAttributes:c}),{results:g})}var u=h();return{items:u,canRefine:u.length>0,refine:function(y){return Yu(d,y)},createURL:function(y){return o(Gu(d.state,y))},widgetParams:n}}}}};function io(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,c=i?function(f){return i.indexOf(f.attribute)!==-1}:function(f){return a.indexOf(f.attribute)===-1},m=ha(t,r.state,s).map(hh).filter(c);return m.reduce(function(f,v){return[].concat(nh(f.filter(function(b){return b.attribute!==v.attribute})),[{indexName:r.state.index,indexId:n,attribute:v.attribute,label:v.attribute,refinements:m.filter(function(b){return b.attribute===v.attribute}).sort(function(b,g){return b.type==="numeric"?b.value-g.value:0}),refine:function(g){return Yu(r,g)}}])},[])}function Gu(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 Yu(e,t){e.setState(Gu(e.state,t)).search()}function dh(e){switch(e){case">=":return"â¥";case"<=":return"â¤";default:return e}}function hh(e){var t=mh(e),r=e.operator?"".concat(dh(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 mh(e){return e.type==="numeric"?Number(e.name):"escapedValue"in e?e.escapedValue:e.name}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)}var gh=["name","escapedValue","data","path"];function ao(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 we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
23t%2?ao(Object(r),!0).forEach(function(n){yn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ao(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yn(e,t,r){return t=ph(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ph(e){var t=vh(e,"string");return Rr(t)=="symbol"?t:String(t)}function vh(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yh(e,t){if(e==null)return{};var r=bh(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 bh(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 Sh(e,t){return Oh(e)||wh(e,t)||Ph(e,t)||Rh()}function Rh(){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 Ph(e,t){if(e){if(typeof e=="string")return so(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 so(e,t)}}function so(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 wh(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function Oh(e){if(Array.isArray(e))return e}var ji=ce({name:"hierarchical-menu",connector:!0}),oo=["name:asc"],_h=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,ji()),function(n){var i=n||{},a=i.attributes,s=i.separator,c=s===void 0?" > ":s,m=i.rootPath,f=m===void 0?null:m,v=i.showParentLevel,b=v===void 0?!0:v,g=i.limit,l=g===void 0?10:g,o=i.showMore,d=o===void 0?!1:o,h=i.showMoreLimit,u=h===void 0?20:h,p=i.sortBy,y=p===void 0?oo:p,R=i.transformItems,P=R===void 0?function(H){return H}:R;if(!a||!Array.isArray(a)||a.length===0)throw new Error(ji("The `attributes` option expects an array of strings."));if(d===!0&&u<=l)throw new Error(ji("The `showMoreLimit` option must be greater than `limit`."));var w=Sh(a,1),_=w[0],S,O=function(){};function j(){O()}var $,T=!1;function F(H,C){return function(){T=!T,C.render(H)}}function x(){return T?u:l}function N(H){return H.slice(0,x()).map(function(C){var A=C.name,I=C.escapedValue,M=C.data;C.path;var D=yh(C,gh),k=we(we({},D),{},{value:I,label:A,data:null});return Array.isArray(M)&&(k.data=N(M)),k})}return{$$type:"ais.hierarchicalMenu",init:function(C){var A=C.instantSearchInstance;t(we(we({},this.getWidgetRenderState(C)),{},{instantSearchInstance:A}),!0)},render:function(C){var A=C.instantSearchInstance;O=F(C,this),t(we(we({},this.getWidgetRenderState(C)),{},{instantSearchInstance:A}),!1)},dispose:function(C){var A=C.state;return r(),A.removeHierarchicalFacet(_).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(C,A){return we(we({},C),{},{hierarchicalMenu:we(we({},C.hierarchicalMenu),{},yn({},_,this.getWidgetRenderState(A)))})},getWidgetRenderState:function(C){var A=this,I=C.results,M=C.state,D=C.createURL,k=C.instantSearchInstance,q=C.helper,Y=[],W=!1,B=function(he){return D(function(Ie){return A.getWidgetUiState(Ie,{searchParameters:M.resetPage().toggleFacetRefinement(_,he),helper:q})})};if(S||(S=la({instantSearchInstance:k,helper:q,attribute:function(he){var Ie=he.split(c).length-1;return a[Ie]},widgetType:this.$$type})),$||($=function(he){S("click:internal",he),q.toggleFacetRefinement(_,he).search()}),I){var z=I.getFacetValues(_,{sortBy:y,facetOrdering:y===oo}),K=z&&!Array.isArray(z)&&z.data?z.data:[],ie=(M.maxValuesPerFacet||0)>x()?K.length<=x():K.length<x();W=d&&(T||!ie),Y=P(N(K),{results:I})}return{items:Y,refine:$,canRefine:Y.length>0,createURL:B,sendEvent:S,widgetParams:n,isShowingMore:T,toggleShowMore:j,canToggleShowMore:W}},getWidgetUiState:function(C,A){var I=A.searchParameters,M=I.getHierarchicalFacetBreadcrumb(_);return jh(we(we({},C),{},{hierarchicalMenu:we(we({},C.hierarchicalMenu),{},yn({},_,M))}),_)},getWidgetSearchParameters:function(C,A){var I=A.uiState,M=I.hierarchicalMenu&&I.hierarchicalMenu[_];if(C.isConjunctiveFacet(_)||C.isDisjunctiveFacet(_))return C;C.isHierarchicalFacet(_)&&C.getHierarchicalFacetByName(_);var D=C.removeHierarchicalFacet(_).addHierarchicalFacet({name:_,attributes:a,separator:c,rootPath:f,showParentLevel:b}),k=D.maxValuesPerFacet||0,q=Math.max(k,d?u:l),Y=D.setQueryParameter("maxValuesPerFacet",q);return M?Y.addHierarchicalFacetRefinement(_,M.join(c)):Y.setQueryParameters({hierarchicalFacetsRefinements:we(we({},Y.hierarchicalFacetsRefinements),{},yn({},_,[]))})}}}};function jh(e,t){return e.hierarchicalMenu&&((!e.hierarchicalMenu[t]||e.hierarchicalMenu[t].length===0)&&delete e.hierarchicalMenu[t],Object.keys(e.hierarchicalMenu).length===0&&delete e.hierarchicalMenu),e}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 uo(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]:{};
24t%2?uo(Object(r),!0).forEach(function(n){Ju(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ju(e,t,r){return t=Eh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eh(e){var t=$h(e,"string");return Pr(t)=="symbol"?t:String(t)}function $h(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Th=ce({name:"hits",connector:!0});const xh=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,Th()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,c=i.transformItems,m=c===void 0?function(b){return b}:c,f,v;return{$$type:"ais.hits",init:function(g){t(dt(dt({},this.getWidgetRenderState(g)),{},{instantSearchInstance:g.instantSearchInstance}),!0)},render:function(g){var l=this.getWidgetRenderState(g);t(dt(dt({},l),{},{instantSearchInstance:g.instantSearchInstance}),!1),l.sendEvent("view:internal",l.items)},getRenderState:function(g,l){return dt(dt({},g),{},{hits:this.getWidgetRenderState(l)})},getWidgetRenderState:function(g){var l,o,d,h=g.results,u=g.helper,p=g.instantSearchInstance;if(f||(f=fa({instantSearchInstance:p,helper:u,widgetType:this.$$type})),v||(v=Au({helper:u,widgetType:this.$$type,instantSearchInstance:p})),!h)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:f,bindEvent:v,widgetParams:n};s&&h.hits.length>0&&(h.hits=ca(h.hits));var y=Du(h.hits,h.page,h.hitsPerPage),R=Cu(y,h.queryID),P=m(R,{results:h}),w=(l=h.renderingContent)===null||l===void 0||(o=l.widgets)===null||o===void 0||(d=o.banners)===null||d===void 0?void 0:d[0];return{hits:P,items:P,results:h,banner:w,sendEvent:f,bindEvent:v,widgetParams:n}},dispose:function(g){var l=g.state;return r(),s?l.setQueryParameters(Object.keys(et).reduce(function(o,d){return dt(dt({},o),{},Ju({},d,void 0))},{})):l},getWidgetSearchParameters:function(g,l){return s?g.setQueryParameters(et):g}}}};function wr(e){"@babel/helpers - typeof";return wr=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},wr(e)}function co(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 $n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?co(Object(r),!0).forEach(function(n){Fh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):co(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fh(e,t,r){return t=Ih(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ih(e){var t=Ah(e,"string");return wr(t)=="symbol"?t:String(t)}function Ah(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dh=function(t,r){return r.map(function(n){var i=ct(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})},Ch=function(t){var r=ma(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},Nh=function(t){return t.map(function(r){return r.__position})},Lh=function(t){var r=t.method,n=t.results,i=t.hits,a=t.objectIDs,s=n.index,c=Dh(i,a),m=Ch(c);switch(r){case"clickedObjectIDsAfterSearch":{var f=Nh(c);return{index:s,queryID:m,objectIDs:a,positions:f}}case"convertedObjectIDsAfterSearch":return{index:s,queryID:m,objectIDs:a};default:throw new Error('Unsupported method passed to insights: "'.concat(r,'".'))}},Hh=function(t,r,n){return function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];var m=s[0];if(!t){var f=ce({name:"instantsearch"});throw new Error(f("The `insightsClient` option has not been provided to `instantsearch`."))}if(!Array.isArray(m.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var v=Lh({method:i,results:r,hits:n,objectIDs:m.objectIDs});t(i,$n($n({},v),m))}};function Xu(e){return function(t,r){return e(function(n,i){var a=n.results,s=n.hits,c=n.instantSearchInstance;if(a&&s&&c){var m=Hh(c.insightsClient,a,s);return t($n($n({},n),{},{insights:m}),i)}return t(n,i)},r)}}function Ki(e){"@babel/helpers - typeof";return Ki=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},Ki(e)}function Mh(e){var t=e.method,r=e.payload;if(Ki(r)!=="object")throw new Error("The insights helper expects the payload to be an object.");var n;try{n=Fu(r)}catch{throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(t,'" data-insights-payload="').concat(n,'"')}function Zu(e,t){return Mh({method:e,payload:t})}var Wh=Xu(xh);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 Uh(e){return Vh(e)||Qh(e)||qh(e)||kh()}function kh(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qh(e,t){if(e){if(typeof e=="string")return zi(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 zi(e,t)}}function Qh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vh(e){if(Array.isArray(e))return zi(e)}function zi(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 lo(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]:{};
25t%2?lo(Object(r),!0).forEach(function(n){Bh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bh(e,t,r){return t=Kh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kh(e){var t=zh(e,"string");return Or(t)=="symbol"?t:String(t)}function zh(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cn=ce({name:"hits-per-page",connector:!0}),Gh=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,cn()),function(n){var i=n||{},a=i.items,s=i.transformItems,c=s===void 0?function(l){return l}:s;if(!Array.isArray(a))throw new Error(cn("The `items` option expects an array of objects."));var m=a,f=m.filter(function(l){return l.default===!0});if(f.length===0)throw new Error(cn("A default value must be specified in `items`."));if(f.length>1)throw new Error(cn("More than one default value is specified in `items`."));var v=f[0],b=function(o){var d=o.hitsPerPage;return m.map(function(h){return Ye(Ye({},h),{},{isRefined:Number(h.value)===Number(d)})})},g={getRefine:function(o){return function(d){return!d&&d!==0?o.setQueryParameter("hitsPerPage",void 0).search():o.setQueryParameter("hitsPerPage",d).search()}},createURLFactory:function(o){var d=o.state,h=o.createURL,u=o.getWidgetUiState,p=o.helper;return function(y){return h(function(R){return u(R,{searchParameters:d.resetPage().setQueryParameter("hitsPerPage",!y&&y!==0?void 0:y),helper:p})})}}};return{$$type:"ais.hitsPerPage",init:function(o){var d=o.state,h=o.instantSearchInstance,u=m.some(function(p){return Number(d.hitsPerPage)===Number(p.value)});u||(m=[{value:"",label:""}].concat(Uh(m))),t(Ye(Ye({},this.getWidgetRenderState(o)),{},{instantSearchInstance:h}),!0)},render:function(o){var d=o.instantSearchInstance;t(Ye(Ye({},this.getWidgetRenderState(o)),{},{instantSearchInstance:d}),!1)},dispose:function(o){var d=o.state;return r(),d.setQueryParameter("hitsPerPage",void 0)},getRenderState:function(o,d){return Ye(Ye({},o),{},{hitsPerPage:this.getWidgetRenderState(d)})},getWidgetRenderState:function(o){var d=o.state,h=o.results,u=o.createURL,p=o.helper,y=h?h.nbHits>0:!1;return{items:c(b(d),{results:h}),refine:g.getRefine(p),createURL:g.createURLFactory({state:d,createURL:u,getWidgetUiState:this.getWidgetUiState,helper:p}),hasNoResults:!y,canRefine:y,widgetParams:n}},getWidgetUiState:function(o,d){var h=d.searchParameters,u=h.hitsPerPage;return u===void 0||u===v.value?o:Ye(Ye({},o),{},{hitsPerPage:u})},getWidgetSearchParameters:function(o,d){var h=d.uiState;return o.setQueryParameters({hitsPerPage:h.hitsPerPage||v.value})}}}};function _r(e){"@babel/helpers - typeof";return _r=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},_r(e)}var Yh=["page"],Jh=["clickAnalytics","userToken"];function fo(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?fo(Object(r),!0).forEach(function(n){ec(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ec(e,t,r){return t=Xh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xh(e){var t=Zh(e,"string");return _r(t)=="symbol"?t:String(t)}function Zh(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ho(e){return nm(e)||rm(e)||tm(e)||em()}function em(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(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 rm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nm(e){if(Array.isArray(e))return Gi(e)}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 tc(e,t){if(e==null)return{};var r=im(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 im(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 am=ce({name:"infinite-hits",connector:!0});function mo(e){var t=e||{};t.page;var r=tc(t,Yh);return r}function ln(e){var t=e||{};t.clickAnalytics,t.userToken;var r=tc(t,Jh);return r}function sm(){var e=null,t=null;return{read:function(n){var i=n.state;return Yr(t,mo(i))?e:null},write:function(n){var i=n.state,a=n.hits;t=mo(i),e=a}}}function om(e){return Object.keys(e).map(Number).sort(function(t,r){return t-r}).reduce(function(t,r){return t.concat(e[r])},[])}const um=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,am()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,c=i.transformItems,m=c===void 0?function(y){return y}:c,f=i.cache,v=f===void 0?sm():f,b,g,l,o,d=function(R,P){var w=R.page,_=w===void 0?0:w,S=Object.keys(P).map(Number);
26return S.length===0?_:Math.min.apply(Math,[_].concat(ho(S)))},h=function(R,P){var w=R.page,_=w===void 0?0:w,S=Object.keys(P).map(Number);return S.length===0?_:Math.max.apply(Math,[_].concat(ho(S)))},u=function(R){return function(){R.overrideStateWithoutTriggeringChangeEvent(Ue(Ue({},R.state),{},{page:d(R.state,v.read({state:ln(R.state)})||{})-1})).searchWithoutTriggeringOnStateChange()}},p=function(R){return function(){R.setPage(h(R.state,v.read({state:ln(R.state)})||{})+1).search()}};return{$$type:"ais.infiniteHits",init:function(R){t(Ue(Ue({},this.getWidgetRenderState(R)),{},{instantSearchInstance:R.instantSearchInstance}),!0)},render:function(R){var P=R.instantSearchInstance,w=this.getWidgetRenderState(R);t(Ue(Ue({},w),{},{instantSearchInstance:P}),!1),l("view:internal",w.currentPageHits)},getRenderState:function(R,P){return Ue(Ue({},R),{},{infiniteHits:this.getWidgetRenderState(P)})},getWidgetRenderState:function(R){var P,w,_,S=R.results,O=R.helper,j=R.parent,$=R.state,T=R.instantSearchInstance,F,x=[],N=j.getPreviousState()||$,H=v.read({state:ln(N)})||{},C=S==null||(P=S.renderingContent)===null||P===void 0||(w=P.widgets)===null||w===void 0||(_=w.banners)===null||_===void 0?void 0:_[0];if(b||(b=u(O),g=p(O)),l||(l=fa({instantSearchInstance:T,helper:O,widgetType:this.$$type}),o=Au({helper:O,widgetType:this.$$type,instantSearchInstance:T})),!S)F=N.page===void 0||d(N,H)===0;else{var A,I,M=N.page,D=M===void 0?0:M;s&&S.hits.length>0&&(S.hits=ca(S.hits));var k=Du(S.hits,S.page,S.hitsPerPage),q=Cu(k,S.queryID),Y=m(q,{results:S}),W=!1;Lu(T.mainIndex,function(ie){!W&&ie.getWidgets().some(function(de){var he=de.$$type;return he==="ais.dynamicWidgets"})&&(W=!0)});var B=!((A=N.disjunctiveFacets)!==null&&A!==void 0&&A.length)&&!(N.facets||[]).filter(function(ie){return ie!=="*"}).length&&!((I=N.hierarchicalFacets)!==null&&I!==void 0&&I.length);H[D]===void 0&&!S.__isArtificial&&T.status==="idle"&&!(W&&B)&&(H[D]=Y,v.write({state:ln(N),hits:H})),x=Y,F=d(N,H)===0}var z=om(H),K=S?S.nbPages<=h(N,H)+1:!0;return{hits:z,items:z,currentPageHits:x,sendEvent:l,bindEvent:o,banner:C,results:S||void 0,showPrevious:b,showMore:g,isFirstPage:F,isLastPage:K,widgetParams:n}},dispose:function(R){var P=R.state;r();var w=P.setQueryParameter("page",void 0);return s?w.setQueryParameters(Object.keys(et).reduce(function(_,S){return Ue(Ue({},_),{},ec({},S,void 0))},{})):w},getWidgetUiState:function(R,P){var w=P.searchParameters,_=w.page||0;return _?Ue(Ue({},R),{},{page:_+1}):R},getWidgetSearchParameters:function(R,P){var w=P.uiState,_=R;s&&(_=R.setQueryParameters(et));var S=w.page?w.page-1:0;return _.setQueryParameter("page",S)}}}};var cm=Xu(um),lm=["name","escapedValue","path"];function jr(e){"@babel/helpers - typeof";return jr=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},jr(e)}function fm(e,t){if(e==null)return{};var r=dm(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 dm(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 go(e,t){return pm(e)||gm(e,t)||mm(e,t)||hm()}function hm(){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 mm(e,t){if(e){if(typeof e=="string")return po(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 po(e,t)}}function po(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 gm(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;
27!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function pm(e){if(Array.isArray(e))return e}function vo(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?vo(Object(r),!0).forEach(function(n){bn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bn(e,t,r){return t=vm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vm(e){var t=ym(e,"string");return jr(t)=="symbol"?t:String(t)}function ym(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ei=ce({name:"menu",connector:!0}),yo=["isRefined","name:asc"],rc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,Ei()),function(n){var i=n||{},a=i.attribute,s=i.limit,c=s===void 0?10:s,m=i.showMore,f=m===void 0?!1:m,v=i.showMoreLimit,b=v===void 0?20:v,g=i.sortBy,l=g===void 0?yo:g,o=i.transformItems,d=o===void 0?function(S){return S}:o;if(!a)throw new Error(Ei("The `attribute` option is required."));if(f===!0&&b<=c)throw new Error(Ei("The `showMoreLimit` option must be greater than `limit`."));var h,u,p,y=!1,R=function(){};function P(S,O){return function(){y=!y,O.render(S)}}function w(){R()}function _(){return y?b:c}return{$$type:"ais.menu",init:function(O){var j=O.instantSearchInstance;t(Oe(Oe({},this.getWidgetRenderState(O)),{},{instantSearchInstance:j}),!0)},render:function(O){var j=O.instantSearchInstance;t(Oe(Oe({},this.getWidgetRenderState(O)),{},{instantSearchInstance:j}),!1)},dispose:function(O){var j=O.state;return r(),j.removeHierarchicalFacet(a).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(O,j){return Oe(Oe({},O),{},{menu:Oe(Oe({},O.menu),{},bn({},a,this.getWidgetRenderState(j)))})},getWidgetRenderState:function(O){var j=this,$=O.results,T=O.createURL,F=O.instantSearchInstance,x=O.helper,N=[],H=!1;if(h||(h=la({instantSearchInstance:F,helper:x,attribute:a,widgetType:this.$$type})),u||(u=function(M){return T(function(D){return j.getWidgetUiState(D,{searchParameters:x.state.resetPage().toggleFacetRefinement(a,M),helper:x})})}),p||(p=function(M){var D=x.getHierarchicalFacetBreadcrumb(a),k=go(D,1),q=k[0];h("click:internal",M||q),x.toggleFacetRefinement(a,M||q).search()}),O.results&&(R=P(O,this)),$){var C=$.getFacetValues(a,{sortBy:l,facetOrdering:l===yo}),A=C&&!Array.isArray(C)&&C.data?C.data:[];H=f&&(y||A.length>_()),N=d(A.slice(0,_()).map(function(I){var M=I.name,D=I.escapedValue;I.path;var k=fm(I,lm);return Oe(Oe({},k),{},{label:M,value:D})}),{results:$})}return{items:N,createURL:u,refine:p,sendEvent:h,canRefine:N.length>0,widgetParams:n,isShowingMore:y,toggleShowMore:w,canToggleShowMore:H}},getWidgetUiState:function(O,j){var $=j.searchParameters,T=$.getHierarchicalFacetBreadcrumb(a),F=go(T,1),x=F[0];return bm(Oe(Oe({},O),{},{menu:Oe(Oe({},O.menu),{},bn({},a,x))}),a)},getWidgetSearchParameters:function(O,j){var $=j.uiState,T=$.menu&&$.menu[a];if(O.isConjunctiveFacet(a)||O.isDisjunctiveFacet(a))return O;var F=O.removeHierarchicalFacet(a).addHierarchicalFacet({name:a,attributes:[a]}),x=F.maxValuesPerFacet||0,N=Math.max(x,f?b:c),H=F.setQueryParameter("maxValuesPerFacet",N);return T?H.addHierarchicalFacetRefinement(a,T):H.setQueryParameters({hierarchicalFacetsRefinements:Oe(Oe({},H.hierarchicalFacetsRefinements),{},bn({},a,[]))})}}}};function bm(e,t){return e.menu&&(e.menu[t]===void 0&&delete e.menu[t],Object.keys(e.menu).length===0&&delete e.menu),e}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 Sm(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=nc(e))||t){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(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 28In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,c;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return a=f.done,f},e:function(f){s=!0,c=f},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(s)throw c}}}}function Rm(e,t){return Om(e)||wm(e,t)||nc(e,t)||Pm()}
28function Pm(){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 nc(e,t){if(e){if(typeof e=="string")return bo(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 bo(e,t)}}function bo(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 wm(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function Om(e){if(Array.isArray(e))return e}function So(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?So(Object(r),!0).forEach(function(n){nr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):So(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nr(e,t,r){return t=_m(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _m(e){var t=jm(e,"string");return Er(t)=="symbol"?t:String(t)}function jm(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $i=ce({name:"numeric-menu",connector:!0}),Em="ais.numericMenu",$m=function(t){var r=t.instantSearchInstance;return function(){if(arguments.length===1){r.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}},Tm=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,$i()),function(n){var i=n||{},a=i.attribute,s=a===void 0?"":a,c=i.items,m=c===void 0?[]:c,f=i.transformItems,v=f===void 0?function(l){return l}:f;if(s==="")throw new Error($i("The `attribute` option is required."));if(!m||m.length===0)throw new Error($i("The `items` option expects an array of objects."));var b=function(o){return m.map(function(d){var h=d.start,u=d.end,p=d.label;return{label:p,value:encodeURI(JSON.stringify({start:h,end:u})),isRefined:ic(o,s,{start:h,end:u})}})},g={};return{$$type:Em,init:function(o){var d=o.instantSearchInstance;t(be(be({},this.getWidgetRenderState(o)),{},{instantSearchInstance:d}),!0)},render:function(o){var d=o.instantSearchInstance;t(be(be({},this.getWidgetRenderState(o)),{},{instantSearchInstance:d}),!1)},dispose:function(o){var d=o.state;return r(),d.removeNumericRefinement(s)},getWidgetUiState:function(o,d){var h=d.searchParameters,u=h.getNumericRefinements(s),p=u["="]&&u["="][0];if(p||p===0)return be(be({},o),{},{numericMenu:be(be({},o.numericMenu),{},nr({},s,"".concat(u["="])))});var y=u[">="]&&u[">="][0]||"",R=u["<="]&&u["<="][0]||"";return xm(be(be({},o),{},{numericMenu:be(be({},o.numericMenu),{},nr({},s,"".concat(y,":").concat(R)))}),s)},getWidgetSearchParameters:function(o,d){var h=d.uiState,u=h.numericMenu&&h.numericMenu[s],p=o.setQueryParameters({numericRefinements:be(be({},o.numericRefinements),{},nr({},s,{}))});if(!u)return p;var y=u.indexOf(":")===-1;if(y)return p.addNumericRefinement(s,"=",Number(u));var R=u.split(":").map(parseFloat),P=Rm(R,2),w=P[0],_=P[1],S=se(w)?p.addNumericRefinement(s,">=",w):p,O=se(_)?S.addNumericRefinement(s,"<=",_):S;return O},getRenderState:function(o,d){return be(be({},o),{},{numericMenu:be(be({},o.numericMenu),{},nr({},s,this.getWidgetRenderState(d)))})},getWidgetRenderState:function(o){var d=this,h=o.results,u=o.state,p=o.instantSearchInstance,y=o.helper,R=o.createURL;
29g.refine||(g.refine=function($){var T=Ro(y.state,s,$);g.sendEvent("click:internal",$),y.setState(T).search()}),g.createURL||(g.createURL=function($){return function(T){return R(function(F){return d.getWidgetUiState(F,{searchParameters:Ro($,s,T),helper:y})})}}),g.sendEvent||(g.sendEvent=$m({instantSearchInstance:p}));var P=h?h.nbHits===0:!0,w=b(u),_=!0,S=Sm(w),O;try{for(S.s();!(O=S.n()).done;){var j=O.value;if(j.isRefined&&decodeURI(j.value)!=="{}"){_=!1;break}}}catch($){S.e($)}finally{S.f()}return{createURL:g.createURL(u),items:v(w,{results:h}),hasNoResults:P,canRefine:!(P&&_),refine:g.refine,sendEvent:g.sendEvent,widgetParams:n}}}}};function ic(e,t,r){var n=e.getNumericRefinements(t);return r.start!==void 0&&r.end!==void 0?r.start===r.end?vt(n,"=",r.start):vt(n,">=",r.start)&&vt(n,"<=",r.end):r.start!==void 0?vt(n,">=",r.start):r.end!==void 0?vt(n,"<=",r.end):r.start===void 0&&r.end===void 0?Object.keys(n).every(function(i){return(n[i]||[]).length===0}):!1}function Ro(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(ic(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 vt(a,"=",i.start)?n=n.removeNumericRefinement(t,"=",i.start):n=n.addNumericRefinement(t,"=",i.start),n}return i.start!==void 0&&(vt(a,">=",i.start)&&(n=n.removeNumericRefinement(t,">=",i.start)),n=n.addNumericRefinement(t,">=",i.start)),i.end!==void 0&&(vt(a,"<=",i.end)&&(n=n.removeNumericRefinement(t,"<=",i.end)),n=n.addNumericRefinement(t,"<=",i.end)),typeof n.page=="number"&&(n.page=0),n}function vt(e,t,r){return e[t]!==void 0&&e[t].includes(r)}function xm(e,t){return e.numericMenu&&(e.numericMenu[t]===":"&&delete e.numericMenu[t],Object.keys(e.numericMenu).length===0&&delete e.numericMenu),e}function $r(e){"@babel/helpers - typeof";return $r=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},$r(e)}function Fm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Im(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,ac(n.key),n)}}function Am(e,t,r){return t&&Im(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ti(e,t,r){return t=ac(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ac(e){var t=Dm(e,"string");return $r(t)=="symbol"?t:String(t)}function Dm(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cm=function(){function e(t){Fm(this,e),Ti(this,"currentPage",void 0),Ti(this,"total",void 0),Ti(this,"padding",void 0),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}return Am(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 gs({end:r});var s=this.calculatePaddingLeft(n,i,r,a),c=a-s,m=n-s,f=n+c;return gs({start:m,end:f})}},{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}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),e}();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 Po(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]:{};
29t%2?Po(Object(r),!0).forEach(function(n){Nm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nm(e,t,r){return t=Lm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lm(e){var t=Hm(e,"string");return Tr(t)=="symbol"?t:String(t)}function Hm(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mm=ce({name:"pagination",connector:!0}),Wm=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,Mm()),function(n){var i=n||{},a=i.totalPages,s=i.padding,c=s===void 0?3:s,m=new Cm({currentPage:0,total:0,padding:c}),f={};function v(b){var g=b.nbPages;return a!==void 0?Math.min(a,g):g}return{$$type:"ais.pagination",init:function(g){var l=g.instantSearchInstance;t(Je(Je({},this.getWidgetRenderState(g)),{},{instantSearchInstance:l}),!0)},render:function(g){var l=g.instantSearchInstance;t(Je(Je({},this.getWidgetRenderState(g)),{},{instantSearchInstance:l}),!1)},dispose:function(g){var l=g.state;return r(),l.setQueryParameter("page",void 0)},getWidgetUiState:function(g,l){var o=l.searchParameters,d=o.page||0;return d?Je(Je({},g),{},{page:d+1}):g},getWidgetSearchParameters:function(g,l){var o=l.uiState,d=o.page?o.page-1:0;return g.setQueryParameter("page",d)},getWidgetRenderState:function(g){var l=g.results,o=g.helper,d=g.state,h=g.createURL;f.refine||(f.refine=function(y){o.setPage(y),o.search()}),f.createURL||(f.createURL=function(y){return h(function(R){return Je(Je({},R),{},{page:y+1})})});var u=d.page||0,p=v(l||{nbPages:0});return m.currentPage=u,m.total=p,{createURL:f.createURL,refine:f.refine,canRefine:p>1,currentRefinement:u,nbHits:(l==null?void 0:l.nbHits)||0,nbPages:p,pages:l?m.pages():[],isFirstPage:m.isFirstPage(),isLastPage:m.isLastPage(),widgetParams:n}},getRenderState:function(g,l){return Je(Je({},g),{},{pagination:this.getWidgetRenderState(l)})}}}};function xr(e){"@babel/helpers - typeof";return xr=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},xr(e)}function wo(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 _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wo(Object(r),!0).forEach(function(n){Sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sn(e,t,r){return t=Um(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Um(e){var t=km(e,"string");return xr(t)=="symbol"?t:String(t)}function km(e,t){if(xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xt(e,t){return Bm(e)||Vm(e,t)||Qm(e,t)||qm()}function qm(){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 Qm(e,t){if(e){if(typeof e=="string")return Oo(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 Oo(e,t)}}function Oo(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 Vm(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;m=!1}else for(;
30!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function Bm(e){if(Array.isArray(e))return e}var xi=ce({name:"range-input",connector:!0},{name:"range-slider",connector:!0}),Km="ais.range";function _o(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 zm=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,xi()),function(n){var i=n||{},a=i.attribute,s=a===void 0?"":a,c=i.min,m=i.max,f=i.precision,v=f===void 0?0:f;if(!s)throw new Error(xi("The `attribute` option is required."));if(se(c)&&se(m)&&c>m)throw new Error(xi("The `max` option can't be lower than `min`."));var b=function(y){return Number(Number(y).toFixed(v))},g={from:function(y){return y.toLocaleString()},to:function(y){return b(y).toLocaleString()}},l=function(y,R,P,w){var _=y.state,S=R.min,O=R.max,j=_.getNumericRefinement(s,">=")||[],$=xt(j,1),T=$[0],F=_.getNumericRefinement(s,"<=")||[],x=xt(F,1),N=x[0],H=P===void 0||P==="",C=w===void 0||w==="",A=_o({min:H?void 0:parseFloat(P),max:C?void 0:parseFloat(w),precision:v}),I=A.min,M=A.max,D;!se(c)&&S===I?D=void 0:se(c)&&H?D=c:D=I;var k;!se(m)&&O===M?k=void 0:se(m)&&C?k=m:k=M;var q=D===void 0,Y=se(S)&&S<=D,W=q||se(D)&&(!se(S)||Y),B=k===void 0,z=se(k)&&O>=k,K=B||se(k)&&(!se(O)||z),ie=T!==D,de=N!==k;return(ie||de)&&W&&K?(_=_.removeNumericRefinement(s),se(D)&&(_=_.addNumericRefinement(s,">=",D)),se(k)&&(_=_.addNumericRefinement(s,"<=",k)),_.resetPage()):null},o=function(y){return function(){if(arguments.length===1){y.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}};function d(p){var y;se(c)?y=c:se(p.min)?y=p.min:y=0;var R;return se(m)?R=m:se(p.max)?R=p.max:R=0,_o({min:y,max:R,precision:v})}function h(p){var y=p.getNumericRefinement(s,">=")||[],R=xt(y,1),P=R[0],w=p.getNumericRefinement(s,"<=")||[],_=xt(w,1),S=_[0],O=se(P)?P:-1/0,j=se(S)?S:1/0;return[O,j]}function u(p,y){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[void 0,void 0],P=xt(R,2),w=P[0],_=P[1],S=l(p,y,w,_);S&&p.setState(S).search()}}return{$$type:Km,init:function(y){t(_e(_e({},this.getWidgetRenderState(y)),{},{instantSearchInstance:y.instantSearchInstance}),!0)},render:function(y){t(_e(_e({},this.getWidgetRenderState(y)),{},{instantSearchInstance:y.instantSearchInstance}),!1)},getRenderState:function(y,R){return _e(_e({},y),{},{range:_e(_e({},y.range),{},Sn({},s,this.getWidgetRenderState(R)))})},getWidgetRenderState:function(y){var R=y.results,P=y.helper,w=y.instantSearchInstance,_=R&&R.disjunctiveFacets||[],S=ct(_,function(F){return F.name===s}),O=S&&S.stats||{min:void 0,max:void 0},j=d(O),$=h(P),T;return R?T=u(P,j):T=u(P,{min:void 0,max:void 0}),{refine:T,canRefine:j.min!==j.max,format:g,range:j,sendEvent:o(w),widgetParams:_e(_e({},n),{},{precision:v}),start:$}},dispose:function(y){var R=y.state;return r(),R.removeDisjunctiveFacet(s).removeNumericRefinement(s)},getWidgetUiState:function(y,R){var P=R.searchParameters,w=P.getNumericRefinements(s),_=w[">="],S=_===void 0?[]:_,O=w["<="],j=O===void 0?[]:O;return S.length===0&&j.length===0?y:_e(_e({},y),{},{range:_e(_e({},y.range),{},Sn({},s,"".concat(S,":").concat(j)))})},getWidgetSearchParameters:function(y,R){var P=R.uiState,w=y.addDisjunctiveFacet(s).setQueryParameters({numericRefinements:_e(_e({},y.numericRefinements),{},Sn({},s,{}))});se(c)&&(w=w.addNumericRefinement(s,">=",c)),se(m)&&(w=w.addNumericRefinement(s,"<=",m));var _=P.range&&P.range[s];if(!_||_.indexOf(":")===-1)return w;var S=_.split(":").map(parseFloat),O=xt(S,2),j=O[0],$=O[1];return se(j)&&(!se(c)||c<j)&&(w=w.removeNumericRefinement(s,">="),w=w.addNumericRefinement(s,">=",j)),se($)&&(!se(m)||$<m)&&(w=w.removeNumericRefinement(s,"<="),w=w.addNumericRefinement(s,"<=",$)),w}}}};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)}var Gm=["name","escapedValue"],Ym=["escapedValue","value"];function jo(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]:{};
30t%2?jo(Object(r),!0).forEach(function(n){ir(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ir(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=Xm(e,"string");return Fr(t)=="symbol"?t:String(t)}function Xm(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eo(e,t){if(e==null)return{};var r=Zm(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 Zm(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 fn=ce({name:"refinement-list",connector:!0}),$o=["isRefined","count:desc","name:asc"],eg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,fn()),function(n){var i=n||{},a=i.attribute,s=i.operator,c=s===void 0?"or":s,m=i.limit,f=m===void 0?10:m,v=i.showMore,b=v===void 0?!1:v,g=i.showMoreLimit,l=g===void 0?20:g,o=i.sortBy,d=o===void 0?$o:o,h=i.escapeFacetValues,u=h===void 0?!0:h,p=i.transformItems,y=p===void 0?function(C){return C}:p;if(!a)throw new Error(fn("The `attribute` option is required."));if(!/^(and|or)$/.test(c))throw new Error(fn('The `operator` must one of: `"and"`, `"or"` (got "'.concat(c,'").')));if(b===!0&&l<=f)throw new Error(fn("`showMoreLimit` should be greater than `limit`."));var R=function(A){var I=A.name,M=A.escapedValue,D=Eo(A,Gm);return ue(ue({},D),{},{value:M,label:I,highlighted:I})},P,w=[],_=!0,S,O,j=!1,$=function(){};function T(){$()}function F(C,A){return function(){j=!j,A.render(C)}}function x(){return j?l:f}var N=function(){return function(){}},H=function(A,I){return function(M){return function(D){var k=M.instantSearchInstance,q=M.results;if(D===""&&w)t(ue(ue({},I.getWidgetRenderState(ue(ue({},M),{},{results:P}))),{},{instantSearchInstance:k}),!1);else{var Y={highlightPreTag:u?et.highlightPreTag:Ee.highlightPreTag,highlightPostTag:u?et.highlightPostTag:Ee.highlightPostTag};A.searchForFacetValues(a,D,Math.min(x(),100),Y).then(function(W){var B=u?Xl(W.facetHits):W.facetHits,z=y(B.map(function(K){var ie=K.escapedValue,de=K.value,he=Eo(K,Ym);return ue(ue({},he),{},{value:ie,label:de})}),{results:q});t(ue(ue({},I.getWidgetRenderState(ue(ue({},M),{},{results:P}))),{},{items:z,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:k}),!1)})}}}};return{$$type:"ais.refinementList",init:function(A){t(ue(ue({},this.getWidgetRenderState(A)),{},{instantSearchInstance:A.instantSearchInstance}),!0)},render:function(A){t(ue(ue({},this.getWidgetRenderState(A)),{},{instantSearchInstance:A.instantSearchInstance}),!1)},getRenderState:function(A,I){return ue(ue({},A),{},{refinementList:ue(ue({},A.refinementList),{},ir({},a,this.getWidgetRenderState(I)))})},getWidgetRenderState:function(A){var I=this,M=A.results,D=A.state,k=A.createURL,q=A.instantSearchInstance,Y=A.helper,W=[],B=[];if((!O||!S||!N)&&(O=la({instantSearchInstance:q,helper:Y,attribute:a,widgetType:this.$$type}),S=function(lt){O("click:internal",lt),Y.toggleFacetRefinement(a,lt).search()},N=H(Y,this)),M){var z=M.getFacetValues(a,{sortBy:d,facetOrdering:d===$o});B=z&&Array.isArray(z)?z:[],W=y(B.slice(0,x()).map(R),{results:M});var K=D.maxValuesPerFacet,ie=x();_=K>ie?B.length<=ie:B.length<ie,P=M,w=W,A.results&&($=F(A,this))}var de=N&&N(A),he=j&&w.length>f,Ie=b&&!_,St=he||Ie;return{createURL:function(lt){return k(function(Ut){return I.getWidgetUiState(Ut,{searchParameters:D.resetPage().toggleFacetRefinement(a,lt),helper:Y})})},items:W,refine:S,searchForItems:de,isFromSearch:!1,canRefine:W.length>0,widgetParams:n,isShowingMore:j,canToggleShowMore:St,toggleShowMore:T,sendEvent:O,hasExhaustiveItems:_}},dispose:function(A){var I=A.state;r();var M=I.setQueryParameter("maxValuesPerFacet",void 0);return c==="and"?M.removeFacet(a):M.removeDisjunctiveFacet(a)},getWidgetUiState:function(A,I){var M=I.searchParameters,D=c==="or"?M.getDisjunctiveRefinements(a):M.getConjunctiveRefinements(a);return tg(ue(ue({},A),{},{refinementList:ue(ue({},A.refinementList),{},ir({},a,D))}),a)},getWidgetSearchParameters:function(A,I){var M=I.uiState,D=c==="or";if(A.isHierarchicalFacet(a)||D&&A.isConjunctiveFacet(a)||!D&&A.isDisjunctiveFacet(a))return A;
30var k=M.refinementList&&M.refinementList[a],q=D?A.addDisjunctiveFacet(a).removeDisjunctiveFacetRefinement(a):A.addFacet(a).removeFacetRefinement(a),Y=q.maxValuesPerFacet||0,W=Math.max(Y,b?l:f),B=q.setQueryParameter("maxValuesPerFacet",W);if(!k){var z=D?"disjunctiveFacetsRefinements":"facetsRefinements";return B.setQueryParameters(ir({},z,ue(ue({},B[z]),{},ir({},a,[]))))}return k.reduce(function(K,ie){return D?K.addDisjunctiveFacetRefinement(a,ie):K.addFacetRefinement(a,ie)},B)}}}};function tg(e,t){return e.refinementList&&((!e.refinementList[t]||e.refinementList[t].length===0)&&delete e.refinementList[t],Object.keys(e.refinementList).length===0&&delete e.refinementList),e}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 To(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]:{};t%2?To(Object(r),!0).forEach(function(n){rg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rg(e,t,r){return t=ng(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ng(e){var t=ig(e,"string");return Ir(t)=="symbol"?t:String(t)}function ig(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ag=ce({name:"search-box",connector:!0}),sg=function(t,r){return r(t)},og=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,ag()),function(n){var i=n||{},a=i.queryHook,s=a===void 0?sg:a,c,m;return{$$type:"ais.searchBox",init:function(v){var b=v.instantSearchInstance;t(ht(ht({},this.getWidgetRenderState(v)),{},{instantSearchInstance:b}),!0)},render:function(v){var b=v.instantSearchInstance;t(ht(ht({},this.getWidgetRenderState(v)),{},{instantSearchInstance:b}),!1)},dispose:function(v){var b=v.state;return r(),b.setQueryParameter("query",void 0)},getRenderState:function(v,b){return ht(ht({},v),{},{searchBox:this.getWidgetRenderState(b)})},getWidgetRenderState:function(v){var b=v.helper,g=v.instantSearchInstance,l=v.state;return c||(c=function(d){s(d,function(h){return b.setQuery(h).search()})},m=function(){b.setQuery("").search()}),{query:l.query||"",refine:c,clear:m,widgetParams:n,isSearchStalled:g.status==="stalled"}},getWidgetUiState:function(v,b){var g=b.searchParameters,l=g.query||"";return l===""||v&&v.query===l?v:ht(ht({},v),{},{query:l})},getWidgetSearchParameters:function(v,b){var g=b.uiState;return v.setQueryParameter("query",g.query||"")}}}};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 xo(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 mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xo(Object(r),!0).forEach(function(n){ug(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ug(e,t,r){return t=cg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cg(e){var t=lg(e,"string");return Ar(t)=="symbol"?t:String(t)}function lg(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fo=ce({name:"sort-by",connector:!0}),fg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;ge(t,Fo());var n={};return function(i){var a=i||{},s=a.items,c=a.transformItems,m=c===void 0?function(f){return f}:c;if(!Array.isArray(s))throw new Error(Fo("The `items` option expects an array of objects."));return{$$type:"ais.sortBy",init:function(v){var b=v.instantSearchInstance,g=this.getWidgetRenderState(v),l=g.currentRefinement;ct(s,function(o){return o.value===l}),t(mt(mt({},g),{},{instantSearchInstance:b}),!0)},render:function(v){var b=v.instantSearchInstance;t(mt(mt({},this.getWidgetRenderState(v)),{},{instantSearchInstance:b}),!1)},dispose:function(v){var b=v.state;return r(),n.initialIndex?b.setIndex(n.initialIndex):b},getRenderState:function(v,b){return mt(mt({},v),{},{sortBy:this.getWidgetRenderState(b)})},getWidgetRenderState:function(v){var b=v.results,g=v.helper,l=v.state,o=v.parent;!n.initialIndex&&o&&(n.initialIndex=o.getIndexName()),n.setIndex||(n.setIndex=function(h){g.setIndex(h).search()});var d=b?b.nbHits===0:!0;return{currentRefinement:l.index,options:m(s,{results:b}),refine:n.setIndex,hasNoResults:d,canRefine:!d&&s.length>0,widgetParams:i}},getWidgetUiState:function(v,b){var g=b.searchParameters,l=g.index;return mt(mt({},v),{},{sortBy:l!==n.initialIndex?l:void 0})},getWidgetSearchParameters:function(v,b){var g=b.uiState;return v.setQueryParameter("index",g.sortBy||n.initialIndex||v.index)}}}};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 dg(e){return gg(e)||mg(e)||oc(e)||hg()}function hg(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 31In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gg(e){if(Array.isArray(e))return Yi(e)}function Io(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 De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
31t%2?Io(Object(r),!0).forEach(function(n){Rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Io(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rn(e,t,r){return t=pg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pg(e){var t=vg(e,"string");return Dr(t)=="symbol"?t:String(t)}function vg(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sc(e,t){return Sg(e)||bg(e,t)||oc(e,t)||yg()}function yg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 32In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oc(e,t){if(e){if(typeof e=="string")return Yi(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 Yi(e,t)}}function Yi(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 bg(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function Sg(e){if(Array.isArray(e))return e}var Ao=ce({name:"rating-menu",connector:!0}),uc="ais.ratingMenu",dn=1,Rg=function(t){var r=t.instantSearchInstance,n=t.helper,i=t.getRefinedStar,a=t.attribute;return function(){for(var s=arguments.length,c=new Array(s),m=0;m<s;m++)c[m]=arguments[m];if(c.length===1){r.sendEventToInsights(c[0]);return}var f=c[1],v=c[2],b=v===void 0?"Filter Applied":v,g=c[0].split(":"),l=sc(g,2),o=l[0],d=l[1];if(o==="click"){var h=i()===Number(f);if(!h){var u;r.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:uc,eventType:o,eventModifier:d,payload:{eventName:b,index:((u=n.lastResults)===null||u===void 0?void 0:u.index)||n.state.index,filters:["".concat(a,">=").concat(f)]},attribute:a})}}}},Pg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,Ao()),function(n){var i=n||{},a=i.attribute,s=i.max,c=s===void 0?5:s,m;if(!a)throw new Error(Ao("The `attribute` option is required."));var f=function(d){var h,u=d.getNumericRefinements(a);if((h=u[">="])!==null&&h!==void 0&&h.length)return u[">="][0]},v=function(d){var h=0;return d.forEach(function(u){var p=u.name.split("."),y=sc(p,2),R=y[1],P=R===void 0?"":R;h=Math.max(h,P.length)}),h};function b(o,d){var h=f(o)===Number(d),u=o.resetPage().removeNumericRefinement(a);return h?u:u.addNumericRefinement(a,"<=",c).addNumericRefinement(a,">=",Number(d))}var g=function(d,h){m("click:internal",h),d.setState(b(d.state,h)).search()},l={toggleRefinementFactory:function(d){return g.bind(null,d)},createURLFactory:function(d){var h=d.state,u=d.createURL,p=d.getWidgetUiState,y=d.helper;return function(R){return u(function(P){return p(P,{searchParameters:b(h,R),helper:y})})}}};return{$$type:uc,init:function(d){var h=d.instantSearchInstance;t(De(De({},this.getWidgetRenderState(d)),{},{instantSearchInstance:h}),!0)},render:function(d){var h=d.instantSearchInstance;t(De(De({},this.getWidgetRenderState(d)),{},{instantSearchInstance:h}),!1)},getRenderState:function(d,h){return De(De({},d),{},{ratingMenu:De(De({},d.ratingMenu),{},Rn({},a,this.getWidgetRenderState(h)))})},getWidgetRenderState:function(d){var h=d.helper,u=d.results,p=d.state,y=d.instantSearchInstance,R=d.createURL,P=[];m||(m=Rg({instantSearchInstance:y,helper:h,getRefinedStar:function(){return f(h.state)},attribute:a}));var w=!1,_=0,S=u==null?void 0:u.getFacetValues(a,{});if(u&&S){S.length,v(S);for(var O=f(p),j=function(N){var H=O===N;w=w||H;var C=S.filter(function(I){return Number(I.name)>=N&&Number(I.name)<=c}).map(function(I){return I.count}).reduce(function(I,M){return I+M},0);if(_+=C,O&&!H&&C===0)return"continue";var A=dg(new Array(Math.floor(c/dn))).map(function(I,M){return M*dn<N});P.push({stars:A,name:String(N),label:String(N),value:String(N),count:C,isRefined:H})},$=dn;$<c;$+=dn)var T=j($)}P=P.reverse();var F=u?u.nbHits===0:!0;return{items:P,hasNoResults:F,canRefine:(!F||w)&&_>0,refine:l.toggleRefinementFactory(h),sendEvent:m,createURL:l.createURLFactory({state:p,createURL:R,helper:h,getWidgetUiState:this.getWidgetUiState}),widgetParams:n}},dispose:function(d){var h=d.state;return r(),h.removeNumericRefinement(a)},getWidgetUiState:function(d,h){var u=h.searchParameters,p=f(u);return wg(De(De({},d),{},{ratingMenu:De(De({},d.ratingMenu),{},Rn({},a,typeof p=="number"?p:void 0))}),a)},getWidgetSearchParameters:function(d,h){var u=h.uiState,p=u.ratingMenu&&u.ratingMenu[a],y=d.addDisjunctiveFacet(a).removeNumericRefinement(a).removeDisjunctiveFacetRefinement(a);return p?y.addNumericRefinement(a,"<=",c).addNumericRefinement(a,">=",p):y.setQueryParameters({numericRefinements:De(De({},y.numericRefinements),{},Rn({},a,{}))})}}}};function wg(e,t){return e.ratingMenu&&(typeof e.ratingMenu[t]!="number"&&delete e.ratingMenu[t],Object.keys(e.ratingMenu).length===0&&delete e.ratingMenu),e}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 Do(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 Ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
32t%2?Do(Object(r),!0).forEach(function(n){Og(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Do(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Og(e,t,r){return t=_g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _g(e){var t=jg(e,"string");return Cr(t)=="symbol"?t:String(t)}function jg(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eg=ce({name:"stats",connector:!0}),$g=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,Eg()),function(n){return{$$type:"ais.stats",init:function(a){var s=a.instantSearchInstance;t(Ft(Ft({},this.getWidgetRenderState(a)),{},{instantSearchInstance:s}),!0)},render:function(a){var s=a.instantSearchInstance;t(Ft(Ft({},this.getWidgetRenderState(a)),{},{instantSearchInstance:s}),!1)},dispose:function(){r()},getRenderState:function(a,s){return Ft(Ft({},a),{},{stats:this.getWidgetRenderState(s)})},getWidgetRenderState:function(a){var s=a.results,c=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:c.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:c.page||0,processingTimeMS:-1,query:c.query||"",widgetParams:n}}}}};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 Co(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 Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Co(Object(r),!0).forEach(function(n){Pn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Co(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pn(e,t,r){return t=Tg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tg(e){var t=xg(e,"string");return Nr(t)=="symbol"?t:String(t)}function xg(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fg(e,t){return Cg(e)||Dg(e,t)||Ag(e,t)||Ig()}function Ig(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ag(e,t){if(e){if(typeof e=="string")return No(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 No(e,t)}}function No(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 Dg(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function Cg(e){if(Array.isArray(e))return e}var Lo=ce({name:"toggle-refinement",connector:!0}),cc="ais.toggleRefinement",Ng=function(t){var r=t.instantSearchInstance,n=t.helper,i=t.attribute,a=t.on,s=function(){for(var m=arguments.length,f=new Array(m),v=0;v<m;v++)f[v]=arguments[v];if(f.length===1){r.sendEventToInsights(f[0]);return}var b=f[1],g=f[2],l=g===void 0?"Filter Applied":g,o=f[0].split(":"),d=Fg(o,2),h=d[0],u=d[1];if(!(h!=="click"||a===void 0)&&!b){var p;r.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:cc,eventType:h,eventModifier:u,payload:{eventName:l,index:((p=n.lastResults)===null||p===void 0?void 0:p.index)||n.state.index,filters:a.map(function(y){return"".concat(i,":").concat(y)})},attribute:i})}};return s},Lg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,Lo()),function(n){var i=n||{},a=i.attribute,s=i.on,c=s===void 0?!0:s,m=i.off;if(!a)throw new Error(Lo("The `attribute` option is required."));var f=m!==void 0,v=Gn(c).map(tr),b=f?Gn(m).map(tr):void 0,g,l=function(h){return function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{isRefined:!1},p=u.isRefined;p?(v.forEach(function(y){return h.removeDisjunctiveFacetRefinement(a,y)}),f&&b.forEach(function(y){return h.addDisjunctiveFacetRefinement(a,y)})):(g("click:internal",p),f&&b.forEach(function(y){return h.removeDisjunctiveFacetRefinement(a,y)}),v.forEach(function(y){return h.addDisjunctiveFacetRefinement(a,y)})),h.search()}},o={createURLFactory:function(h,u){var p=u.state,y=u.createURL,R=u.getWidgetUiState,P=u.helper;return function(){p=p.resetPage();var w=h?v:b;
33w&&w.forEach(function(S){p=p.removeDisjunctiveFacetRefinement(a,S)});var _=h?b:v;return _&&_.forEach(function(S){p=p.addDisjunctiveFacetRefinement(a,S)}),y(function(S){return R(S,{searchParameters:p,helper:P})})}}};return{$$type:cc,init:function(h){var u=h.instantSearchInstance;t(Ce(Ce({},this.getWidgetRenderState(h)),{},{instantSearchInstance:u}),!0)},render:function(h){var u=h.instantSearchInstance;t(Ce(Ce({},this.getWidgetRenderState(h)),{},{instantSearchInstance:u}),!1)},dispose:function(h){var u=h.state;return r(),u.removeDisjunctiveFacet(a)},getRenderState:function(h,u){return Ce(Ce({},h),{},{toggleRefinement:Ce(Ce({},h.toggleRefinement),{},Pn({},a,this.getWidgetRenderState(u)))})},getWidgetRenderState:function(h){var u=h.state,p=h.helper,y=h.results,R=h.createURL,P=h.instantSearchInstance,w=y?v.every(function(x){return u.isDisjunctiveFacetRefined(a,x)}):v.every(function(x){return u.isDisjunctiveFacetRefined(a,x)}),_={isRefined:w,count:0},S={isRefined:f&&!w,count:0};if(y){var O=Gn(b||!1),j=y.getFacetValues(a,{})||[],$=v.map(function(x){return ct(j,function(N){var H=N.escapedValue;return H===tr(String(x))})}).filter(function(x){return x!==void 0}),T=f?O.map(function(x){return ct(j,function(N){var H=N.escapedValue;return H===tr(String(x))})}).filter(function(x){return x!==void 0}):[];_={isRefined:$.length?$.every(function(x){return x.isRefined}):!1,count:$.reduce(function(x,N){return x+N.count},0)||null},S={isRefined:T.length?T.every(function(x){return x.isRefined}):!1,count:T.reduce(function(x,N){return x+N.count},0)||j.reduce(function(x,N){var H=N.count;return x+H},0)}}g||(g=Ng({instantSearchInstance:P,attribute:a,on:v,helper:p}));var F=w?S:_;return{value:{name:a,isRefined:w,count:y?F.count:null,onFacetValue:_,offFacetValue:S},createURL:o.createURLFactory(w,{state:u,createURL:R,helper:p,getWidgetUiState:this.getWidgetUiState}),sendEvent:g,canRefine:!!(y&&F.count),refine:l(p),widgetParams:n}},getWidgetUiState:function(h,u){var p=u.searchParameters,y=v&&v.every(function(P){return p.isDisjunctiveFacetRefined(a,P)});if(!y){var R;return(R=h.toggle)===null||R===void 0||delete R[a],h}return Ce(Ce({},h),{},{toggle:Ce(Ce({},h.toggle),{},Pn({},a,y))})},getWidgetSearchParameters:function(h,u){var p=u.uiState;if(h.isHierarchicalFacet(a)||h.isConjunctiveFacet(a))return h;var y=h.addDisjunctiveFacet(a).removeDisjunctiveFacetRefinement(a),R=!!(p.toggle&&p.toggle[a]);return R?(v&&v.forEach(function(P){y=y.addDisjunctiveFacetRefinement(a,P)}),y):f?(b&&b.forEach(function(P){y=y.addDisjunctiveFacetRefinement(a,P)}),y):y.setQueryParameters({disjunctiveFacetsRefinements:Ce(Ce({},h.disjunctiveFacetsRefinements),{},Pn({},a,[]))})}}}};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 Ho(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?Ho(Object(r),!0).forEach(function(n){wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ho(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wn(e,t,r){return t=Hg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hg(e){var t=Mg(e,"string");return Lr(t)=="symbol"?t:String(t)}function Mg(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wg(e,t){return Qg(e)||qg(e,t)||kg(e,t)||Ug()}function Ug(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 34In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kg(e,t){if(e){if(typeof e=="string")return Mo(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 Mo(e,t)}}function Mo(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 qg(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;
34!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function Qg(e){if(Array.isArray(e))return e}var Wo=ce({name:"breadcrumb",connector:!0}),Vg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;ge(t,Wo());var n={};return function(i){var a=i||{},s=a.attributes,c=a.separator,m=c===void 0?" > ":c,f=a.rootPath,v=f===void 0?null:f,b=a.transformItems,g=b===void 0?function(h){return h}:b;if(!s||!Array.isArray(s)||s.length===0)throw new Error(Wo("The `attributes` option expects an array of strings."));var l=Wg(s,1),o=l[0];function d(h,u){if(!u){var p=h.getHierarchicalFacetBreadcrumb(o);return p.length===0?h:h.resetPage().toggleFacetRefinement(o,p[0])}return h.resetPage().toggleFacetRefinement(o,u)}return{$$type:"ais.breadcrumb",init:function(u){t(Ne(Ne({},this.getWidgetRenderState(u)),{},{instantSearchInstance:u.instantSearchInstance}),!0)},render:function(u){t(Ne(Ne({},this.getWidgetRenderState(u)),{},{instantSearchInstance:u.instantSearchInstance}),!1)},dispose:function(){r()},getRenderState:function(u,p){return Ne(Ne({},u),{},{breadcrumb:Ne(Ne({},u.breadcrumb),{},wn({},o,this.getWidgetRenderState(p)))})},getWidgetRenderState:function(u){var p=this,y=u.helper,R=u.createURL,P=u.results,w=u.state;function _(){if(!P||w.hierarchicalFacets.length===0)return[];var O=P.getFacetValues(o,{}),j=O&&!Array.isArray(O)&&O.data?O.data:[],$=g(Bg(lc(j)),{results:P});return $}var S=_();return n.createURL||(n.createURL=function(O){return R(function(j){return p.getWidgetUiState(j,{searchParameters:d(y.state,O),helper:y})})}),n.refine||(n.refine=function(O){y.setState(d(y.state,O)).search()}),{canRefine:S.length>0,createURL:n.createURL,items:S,refine:n.refine,widgetParams:i}},getWidgetUiState:function(u,p){var y=p.searchParameters,R=y.getHierarchicalFacetBreadcrumb(o);return Kg(Ne(Ne({},u),{},{hierarchicalMenu:Ne(Ne({},u.hierarchicalMenu),{},wn({},o,R))}),o)},getWidgetSearchParameters:function(u,p){var y=p.uiState,R=y.hierarchicalMenu&&y.hierarchicalMenu[o];if(u.isConjunctiveFacet(o)||u.isDisjunctiveFacet(o))return u;u.isHierarchicalFacet(o)&&u.getHierarchicalFacetByName(o);var P=u.removeHierarchicalFacet(o).addHierarchicalFacet({name:o,attributes:s,separator:m,rootPath:v});return R?P.addHierarchicalFacetRefinement(o,R.join(m)):P.setQueryParameters({hierarchicalFacetsRefinements:Ne(Ne({},P.hierarchicalFacetsRefinements),{},wn({},o,[]))})}}}};function lc(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(lc(r.data)))),t},[])}function Bg(e){return e.map(function(t,r){return{label:t.label,value:r+1===e.length?null:e[r+1].value}})}function Kg(e,t){return e.hierarchicalMenu&&((!e.hierarchicalMenu[t]||!e.hierarchicalMenu[t].length)&&delete e.hierarchicalMenu[t],Object.keys(e.hierarchicalMenu).length===0&&delete e.hierarchicalMenu),e}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 Uo(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 ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uo(Object(r),!0).forEach(function(n){fc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fc(e,t,r){return t=zg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zg(e){var t=Gg(e,"string");return Hr(t)=="symbol"?t:String(t)}function Gg(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yg=ce({name:"autocomplete",connector:!0}),Jg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,Yg()),function(n){var i=n||{},a=i.escapeHTML,s=a===void 0?!0:a,c={};return{$$type:"ais.autocomplete",init:function(f){var v=f.instantSearchInstance;t(ke(ke({},this.getWidgetRenderState(f)),{},{instantSearchInstance:v}),!0)},render:function(f){var v=f.instantSearchInstance,b=this.getWidgetRenderState(f);
34b.indices.forEach(function(g){var l=g.sendEvent,o=g.hits;l("view:internal",o)}),t(ke(ke({},b),{},{instantSearchInstance:v}),!1)},getRenderState:function(f,v){return ke(ke({},f),{},{autocomplete:this.getWidgetRenderState(v)})},getWidgetRenderState:function(f){var v=this,b=f.helper,g=f.state,l=f.scopedResults,o=f.instantSearchInstance;c.refine||(c.refine=function(h){b.setQuery(h).search()});var d=l.map(function(h){var u,p;h.results&&(h.results.hits=s?ca(h.results.hits):h.results.hits);var y=fa({instantSearchInstance:o,helper:h.helper,widgetType:v.$$type});return{indexId:h.indexId,indexName:((u=h.results)===null||u===void 0?void 0:u.index)||"",hits:((p=h.results)===null||p===void 0?void 0:p.hits)||[],results:h.results||{},sendEvent:y}});return{currentRefinement:g.query||"",indices:d,refine:c.refine,widgetParams:n}},getWidgetUiState:function(f,v){var b=v.searchParameters,g=b.query||"";return g===""||f&&f.query===g?f:ke(ke({},f),{},{query:g})},getWidgetSearchParameters:function(f,v){var b=v.uiState,g={query:b.query||""};return s?f.setQueryParameters(ke(ke({},g),et)):f.setQueryParameters(g)},dispose:function(f){var v=f.state;r();var b=v.setQueryParameter("query",void 0);return s?b.setQueryParameters(Object.keys(et).reduce(function(g,l){return ke(ke({},g),{},fc({},l,void 0))},{})):b}}}};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)}function ko(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?ko(Object(r),!0).forEach(function(n){Xg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ko(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xg(e,t,r){return t=Zg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zg(e){var t=ep(e,"string");return Mr(t)=="symbol"?t:String(t)}function ep(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tn(e){return ip(e)||np(e)||rp(e)||tp()}function tp(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 35In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rp(e,t){if(e){if(typeof e=="string")return Ji(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 Ji(e,t)}}function np(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ip(e){if(Array.isArray(e))return Ji(e)}function Ji(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 qo=ce({name:"query-rules",connector:!0});function ap(e){return[e.disjunctiveFacetsRefinements,e.facetsRefinements,e.hierarchicalFacetsRefinements,e.numericRefinements].some(function(t){return!!(t&&Object.keys(t).length>0)})}function sp(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}function op(e){var t=e.helper,r=e.sharedHelperState,n=e.trackedFilters,i=Object.keys(n).reduce(function(a,s){var c=ha(t.lastResults||{},r,!0).filter(function(v){return v.attribute===s}).map(function(v){return v.numericValue||v.name}),m=n[s],f=m(c);return[].concat(Tn(a),Tn(c.filter(function(v){return f.includes(v)}).map(function(v){return sp("ais-".concat(s,"-").concat(v))})))},[]);return i}function up(e){var t=this.helper,r=this.initialRuleContexts,n=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],c=op({helper:t,sharedHelperState:a,trackedFilters:n}),m=[].concat(Tn(r),Tn(c)),f=i(m).slice(0,10);Yr(s,f)||t.overrideStateWithoutTriggeringChangeEvent(pt(pt({},a),{},{ruleContexts:f}))}var dc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,qo()),function(n){var i=n||{},a=i.trackedFilters,s=a===void 0?{}:a,c=i.transformRuleContexts,m=c===void 0?function(o){return o}:c,f=i.transformItems,v=f===void 0?function(o){return o}:f;
35Object.keys(s).forEach(function(o){if(typeof s[o]!="function")throw new Error(qo(`'The "`.concat(o,'" filter value in the `trackedFilters` option expects a function.')))});var b=Object.keys(s).length>0,g=[],l;return{$$type:"ais.queryRules",init:function(d){var h=d.helper,u=d.state,p=d.instantSearchInstance;g=u.ruleContexts||[],l=up.bind({helper:h,initialRuleContexts:g,trackedFilters:s,transformRuleContexts:m}),b&&((ap(u)||n.transformRuleContexts)&&l({state:u}),h.on("change",l)),t(pt(pt({},this.getWidgetRenderState(d)),{},{instantSearchInstance:p}),!0)},render:function(d){var h=d.instantSearchInstance;t(pt(pt({},this.getWidgetRenderState(d)),{},{instantSearchInstance:h}),!1)},getWidgetRenderState:function(d){var h=d.results,u=h||{},p=u.userData,y=p===void 0?[]:p,R=v(y,{results:h});return{items:R,widgetParams:n}},getRenderState:function(d,h){return pt(pt({},d),{},{queryRules:this.getWidgetRenderState(h)})},dispose:function(d){var h=d.helper,u=d.state;return r(),b?(h.removeListener("change",l),u.setQueryParameter("ruleContexts",g)):u}}}};function Wr(e){"@babel/helpers - typeof";return Wr=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},Wr(e)}function Qo(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 Vo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qo(Object(r),!0).forEach(function(n){cp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cp(e,t,r){return t=lp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lp(e){var t=fp(e,"string");return Wr(t)=="symbol"?t:String(t)}function fp(e,t){if(Wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dp=function(t){var r=t.searchAsYouSpeak,n=t.language,i=t.onQueryChange,a=t.onStateChange,s=window.webkitSpeechRecognition||window.SpeechRecognition,c=function(_){return{status:_,transcript:"",isSpeechFinal:!1,errorCode:void 0}},m=c("initial"),f,v=function(){return!!s},b=function(){return m.status==="askingPermission"||m.status==="waiting"||m.status==="recognizing"},g=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};m=Vo(Vo({},m),_),a()},l=function(){return m},o=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";g(c(_))},d=function(){g({status:"waiting"})},h=function(_){g({status:"error",errorCode:_.error})},u=function(_){g({status:"recognizing",transcript:_.results[0]&&_.results[0][0]&&_.results[0][0].transcript||"",isSpeechFinal:_.results[0]&&_.results[0].isFinal}),r&&m.transcript&&i(m.transcript)},p=function(){!m.errorCode&&m.transcript&&!r&&i(m.transcript),m.status!=="error"&&g({status:"finished"})},y=function(){f=new s,f&&(o("askingPermission"),f.interimResults=!0,n&&(f.lang=n),f.addEventListener("start",d),f.addEventListener("error",h),f.addEventListener("result",u),f.addEventListener("end",p),f.start())},R=function(){f&&(f.stop(),f.removeEventListener("start",d),f.removeEventListener("error",h),f.removeEventListener("result",u),f.removeEventListener("end",p),f=void 0)},P=function(){R(),o("finished")};return{getState:l,isBrowserSupported:v,isListening:b,startListening:y,stopListening:P,dispose:R}};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 Bo(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]:{};
35t%2?Bo(Object(r),!0).forEach(function(n){hp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hp(e,t,r){return t=mp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mp(e){var t=gp(e,"string");return Ur(t)=="symbol"?t:String(t)}function gp(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pp=ce({name:"voice-search",connector:!0}),vp=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return ge(t,pp()),function(n){var i=n.searchAsYouSpeak,a=i===void 0?!1:i,s=n.language,c=n.additionalQueryParameters,m=n.createVoiceSearchHelper,f=m===void 0?dp:m;return{$$type:"ais.voiceSearch",init:function(b){var g=b.instantSearchInstance;t(qe(qe({},this.getWidgetRenderState(b)),{},{instantSearchInstance:g}),!0)},render:function(b){var g=b.instantSearchInstance;t(qe(qe({},this.getWidgetRenderState(b)),{},{instantSearchInstance:g}),!1)},getRenderState:function(b,g){return qe(qe({},b),{},{voiceSearch:this.getWidgetRenderState(g)})},getWidgetRenderState:function(b){var g=this,l=b.helper,o=b.instantSearchInstance;this._refine||(this._refine=function(P){if(P!==l.state.query){var w=s?[s.split("-")[0]]:void 0;l.setQueryParameter("queryLanguages",w),typeof c=="function"&&l.setState(l.state.setQueryParameters(qe({ignorePlurals:!0,removeStopWords:!0,optionalWords:P},c({query:P})))),l.setQuery(P).search()}}),this._voiceSearchHelper||(this._voiceSearchHelper=f({searchAsYouSpeak:a,language:s,onQueryChange:function(w){return g._refine(w)},onStateChange:function(){t(qe(qe({},g.getWidgetRenderState(b)),{},{instantSearchInstance:o}),!1)}}));var d=this._voiceSearchHelper,h=d.isBrowserSupported,u=d.isListening,p=d.startListening,y=d.stopListening,R=d.getState;return{isBrowserSupported:h(),isListening:u(),toggleListening:function(){h()&&(u()?y():p())},voiceListeningState:R(),widgetParams:n}},dispose:function(b){var g=b.state;this._voiceSearchHelper.dispose(),r();var l=g;if(typeof c=="function"){var o=c({query:""}),d=o?Object.keys(o).reduce(function(h,u){return h[u]=void 0,h},{}):{};l=g.setQueryParameters(qe({queryLanguages:void 0,ignorePlurals:void 0,removeStopWords:void 0,optionalWords:void 0},d))}return l.setQueryParameter("query",void 0)},getWidgetUiState:function(b,g){var l=g.searchParameters,o=l.query||"";return o?qe(qe({},b),{},{query:o}):b},getWidgetSearchParameters:function(b,g){var l=g.uiState;return b.setQueryParameter("query",l.query||"")}}}};function kr(e){"@babel/helpers - typeof";return kr=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},kr(e)}function Ko(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]:{};t%2?Ko(Object(r),!0).forEach(function(n){yp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yp(e,t,r){return t=bp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bp(e){var t=Sp(e,"string");return kr(t)=="symbol"?t:String(t)}function Sp(e,t){if(kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rp=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z;return function(n){var i={};return{$$type:"ais.relevantSort",init:function(s){var c=s.instantSearchInstance;t(gt(gt({},this.getWidgetRenderState(s)),{},{instantSearchInstance:c}),!0)},render:function(s){var c=s.instantSearchInstance;t(gt(gt({},this.getWidgetRenderState(s)),{},{instantSearchInstance:c}),!1)},dispose:function(s){var c=s.state;return r(),c.setQueryParameter("relevancyStrictness",void 0)},getRenderState:function(s,c){return gt(gt({},s),{},{relevantSort:this.getWidgetRenderState(c)})},getWidgetRenderState:function(s){var c=s.results,m=s.helper;i.refine||(i.refine=function(g){m.setQueryParameter("relevancyStrictness",g).search()});var f=c||{},v=f.appliedRelevancyStrictness,b=v!==void 0;return{isRelevantSorted:typeof v<"u"&&v>0,isVirtualReplica:b,canRefine:b,refine:i.refine,widgetParams:n}},getWidgetSearchParameters:function(s,c){var m,f=c.uiState;return s.setQueryParameter("relevancyStrictness",(m=f.relevantSort)!==null&&m!==void 0?m:s.relevancyStrictness)},getWidgetUiState:function(s,c){var m=c.searchParameters;return gt(gt({},s),{},{relevantSort:m.relevancyStrictness||s.relevantSort})}}}},Pp=Mt(kd);oe({connector:Jg},{$$widgetType:"ais.autocomplete"}),re({name:"Autocomplete"});U("p",null," This widget doesn't render anything without a filled in default slot. ",-1);U("p",null,"query, function to refine and results are provided.",-1);U("pre",null,"refine: Function",-1);U("summary",null,[U("code",null,"indices"),ur(":")],-1);function wp(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)}
35)}}}var Op=function(){var e;return(e={props:{emitter:{type:Object,required:!1,default:function(){return wp()}}},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},Me=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)}}}}}};oe({connector:Vg},{$$widgetType:"ais.breadcrumb"}),Me(),re({name:"Breadcrumb"});oe({connector:th},{$$widgetType:"ais.clearRefinements"}),Me(),re({name:"ClearRefinements"});
35const _p={inheritAttrs:!1,name:"AisConfigure",mixins:[re({name:"Configure"}),oe({connector:zu},{$$widgetType:"ais.configure"})],computed:{widgetParams:function(){return{searchParameters:Object.assign({},this.$attrs)}}},render:Fn(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})};oe({connector:Pp},{$$widgetType:"ais.configureRelatedItems"});re({name:"CurrentRefinements"}),oe({connector:fh},{$$widgetType:"ais.currentRefinements"}),Me();re({name:"HierarchicalMenu"}),oe({connector:_h},{$$widgetType:"ais.hierarchicalMenu"}),Me();function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(null,arguments)}function jp(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ep(e,t){if(e==null)return{};var r,n,i=jp(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function $p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(n,i){return Array.isArray(i)?n.concat(i):n.concat([i])},[]).filter(Boolean).join(" ")}var Tp=["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"];function xp(e){var t=e.createElement;return function(n){var i=n.classNames,a=n.children,s=n.highlightedTagName,c=n.isHighlighted,m=n.nonHighlightedTagName,f=c?s:m;return t(f,{className:c?i.highlighted:i.nonHighlighted},a)}}function Fp(e){var t=e.createElement,r=e.Fragment,n=xp({createElement:t});return function(a){var s=a.parts,c=a.highlightedTagName,m=c===void 0?"mark":c,f=a.nonHighlightedTagName,v=f===void 0?"span":f,b=a.separator,g=b===void 0?", ":b,l=a.className,o=a.classNames,d=o===void 0?{}:o,h=Ep(a,Tp);return t("span",Xi({},h,{className:$p(d.root,l)}),s.map(function(u,p){var y=p===s.length-1;return t(r,{key:p},u.map(function(R,P){return t(n,{key:P,classNames:d,highlightedTagName:m,nonHighlightedTagName:v,isHighlighted:R.isHighlighted},R.value)}),!y&&t("span",{className:d.separator},g))}))}}var hc=function(e,t,r){if(!r)return ar(e,t);if(e===bt)return ar(e,Array.isArray(r)?r:[r]);var n=typeof r=="string"?{default:function(){return r}}:r,i=typeof e=="string"?t:Object.assign(t,{children:r});return ar(e,i,n)},Ip=Fp({createElement:hc,Fragment:bt});const Ap={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}},render:function(){var e=Wt(this.hit[this.highlightProperty],this.attribute)||[],t=(Array.isArray(e)?e:[e]).map(function(r){return da(ju(r.value||"")).map(function(n){var i=n.value;return{value:i===" "?" ":i,isHighlighted:n.isHighlighted}})});return hc(Ip,{classNames:{root:this.suit(),highlighted:this.suit("highlighted")},highlightedTagName:this.highlightedTagName,nonHighlightedTagName:bt,parts:t})}}
35,or={name:"AisHighlight",mixins:[re({name:"Highlight"})],components:{AisHighlighter:Ap},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}};function Dp(e,t,r,n,i,a){var s=On("ais-highlighter");return X(),pn(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"])}or.render=Dp;oe({connector:Wh},{$$widgetType:"ais.hits"}),re({name:"Hits"});re({name:"HitsPerPage"}),oe({connector:Gh},{$$widgetType:"ais.hitsPerPage"}),Me();function qr(e){"@babel/helpers - typeof";return qr=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},qr(e)}var Cp=["initialSearchParameters"],Np=["initialRecommendParameters"];function zo(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?zo(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function At(e,t,r){return t=Lp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lp(e){var t=Hp(e,"string");return qr(t)=="symbol"?t:String(t)}function Hp(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mc(e){return kp(e)||Up(e)||Wp(e)||Mp()}function Mp(){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 Wp(e,t){if(e){if(typeof e=="string")return Zi(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 Zi(e,t)}}function Up(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kp(e){if(Array.isArray(e))return Zi(e)}function Zi(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 gc(e,t){if(e==null)return{};var r=qp(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 qp(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 Xt=ce({name:"index-widget"});function pc(e,t){var r=t.state,n=t.recommendState,i=t.isPageReset,a=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:a})),n!==e.recommendState&&(e.recommendState=n)}function Zt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.reduce(function(n,i){return We(i)||!i.getWidgetUiState&&!i.getWidgetState?n:i.getWidgetUiState?i.getWidgetUiState(n,t):i.getWidgetState(n,t)},r)}function er(e,t){var r=t.initialSearchParameters,n=gc(t,Cp);return e.reduce(function(i,a){return!a.getWidgetSearchParameters||We(a)?i:a.dependsOn==="search"&&a.getWidgetParameters?a.getWidgetParameters(i,n):a.getWidgetSearchParameters(i,n)},r)}function Go(e,t){var r=t.initialRecommendParameters,n=gc(t,Np);return e.reduce(function(i,a){return!We(a)&&a.dependsOn==="recommend"&&a.getWidgetParameters?a.getWidgetParameters(i,n):i},r)}function vc(e){var t=e.filter(We);t.length!==0&&t.forEach(function(r){var n=r.getHelper();pc(n,{state:n.state.resetPage(),recommendState:n.recommendState,isPageReset:!0}),vc(r.getWidgets())})}function yc(e){var t=e.filter(We);return t.reduce(function(r,n){return r.concat.apply(r,[{indexId:n.getIndexId(),results:n.getResults(),helper:n.getHelper()}].concat(mc(yc(n.getWidgets()))))},[])}var bc=function(t){if(t===void 0||t.indexName===void 0)throw new Error(Xt("The `indexName` option is required."));var r=t.indexName,n=t.indexId,i=n===void 0?r:n,a=[],s={},c=null,m=null,f=null,v=null,b=null,g=!1,l=!1;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return f},getResults:function(){var d;return(d=v)!==null&&d!==void 0&&d.lastResults?(v.lastResults._state=f.state,v.lastResults):null},getResultsForWidget:function(d){var h;
36return d.dependsOn!=="recommend"||We(d)||d.$$id===void 0?this.getResults():(h=f)!==null&&h!==void 0&&h.lastRecommendResults?f.lastRecommendResults[d.$$id]:null},getPreviousState:function(){return b},getScopedResults:function(){var d=this.getParent(),h;return d?h=d.getWidgets():r.length===0?h=this.getWidgets():h=[this],yc(h)},getParent:function(){return m},createURL:function(d){return typeof d=="function"?c._createURL(At({},i,d(s))):c._createURL(At({},i,Zt(a,{searchParameters:d,helper:f})))},getWidgets:function(){return a},addWidgets:function(d){var h=this;if(!Array.isArray(d))throw new Error(Xt("The `addWidgets` method expects an array of widgets."));if(d.some(function(u){return typeof u.init!="function"&&typeof u.render!="function"}))throw new Error(Xt("The widget definition expects a `render` and/or an `init` method."));return d.forEach(function(u){We(u)||(c&&u.dependsOn==="recommend"?c._hasRecommendWidget=!0:c?c._hasSearchWidget=!0:u.dependsOn==="recommend"?g=!0:l=!0,Wl(u))}),a=a.concat(d),c&&d.length&&(pc(f,{state:er(a,{uiState:s,initialSearchParameters:f.state}),recommendState:Go(a,{uiState:s,initialRecommendParameters:f.recommendState}),_uiState:s}),d.forEach(function(u){if(u.getRenderState){var p=u.getRenderState(c.renderState[h.getIndexId()]||{},rr(c,h,c._initialUiState));Fi({renderState:p,instantSearchInstance:c,parent:h})}}),d.forEach(function(u){u.init&&u.init(rr(c,h,c._initialUiState))}),c.scheduleSearch()),this},removeWidgets:function(d){var h=this;if(!Array.isArray(d))throw new Error(Xt("The `removeWidgets` method expects an array of widgets."));if(d.some(function(P){return typeof P.dispose!="function"}))throw new Error(Xt("The widget definition expects a `dispose` method."));if(a=a.filter(function(P){return d.indexOf(P)===-1}),a.forEach(function(P){We(P)||(c&&P.dependsOn==="recommend"?c._hasRecommendWidget=!0:c?c._hasSearchWidget=!0:P.dependsOn==="recommend"?g=!0:l=!0)}),c&&d.length){var u=d.reduce(function(P,w){var _=w.dispose({helper:f,state:P.cleanedSearchState,recommendState:P.cleanedRecommendState,parent:h});return _ instanceof je.RecommendParameters?P.cleanedRecommendState=_:_&&(P.cleanedSearchState=_),P},{cleanedSearchState:f.state,cleanedRecommendState:f.recommendState}),p=u.cleanedSearchState,y=u.cleanedRecommendState,R=c.future.preserveSharedStateOnUnmount?er(a,{uiState:s,initialSearchParameters:new je.SearchParameters({index:this.getIndexName()})}):er(a,{uiState:Zt(a,{searchParameters:p,helper:f}),initialSearchParameters:p});s=Zt(a,{searchParameters:R,helper:f}),f.setState(R),f.recommendState=y,a.length&&c.scheduleSearch()}return this},init:function(d){var h=this,u,p=d.instantSearchInstance,y=d.parent,R=d.uiState;if(f===null){c=p,m=y,s=R[i]||{};var P=p.mainHelper,w=er(a,{uiState:s,initialSearchParameters:new je.SearchParameters({index:r})}),_=Go(a,{uiState:s,initialRecommendParameters:new je.RecommendParameters});f=je({},w.index,w),f.recommendState=_,f.search=function(){return p.onStateChange?(p.onStateChange({uiState:p.mainIndex.getWidgetUiState({}),setUiState:function(T){return p.setUiState(T,!1)}}),P):P.search()},f.searchWithoutTriggeringOnStateChange=function(){return P.search()},f.searchForFacetValues=function($,T,F,x){var N=f.state.setQueryParameters(x);return P.searchForFacetValues($,T,F,N)},v=P.derive(function(){return sr.apply(void 0,[P.state].concat(mc(hd(h))))},function(){return h.getHelper().recommendState});var S=(u=p._initialResults)===null||u===void 0?void 0:u[this.getIndexId()];if(S!=null&&S.results){var O=new je.SearchResults(new je.SearchParameters(S.state),S.results);v.lastResults=O,f.lastResults=O}if(S!=null&&S.recommendResults){var j=new je.RecommendResults(new je.RecommendParameters({params:S.recommendResults.params}),S.recommendResults.results);v.lastRecommendResults=j,f.lastRecommendResults=j}f.on("change",function($){var T=$.isPageReset;T&&vc(a)}),v.on("search",function(){p.scheduleStalledRender()}),v.on("result",function($){var T=$.results;p.scheduleRender(),f.lastResults=T,b=T==null?void 0:T._state}),v.on("recommend:result",function($){var T=$.recommend;p.scheduleRender(),f.lastRecommendResults=T.results}),a.forEach(function($){if($.getRenderState){var T=$.getRenderState(p.renderState[h.getIndexId()]||{},rr(p,h,R));Fi({renderState:T,instantSearchInstance:p,parent:h})}}),a.forEach(function($){$.init&&$.init(rr(p,h,R))}),f.on("change",function($){var T=$.state,F=$._uiState;s=Zt(a,{searchParameters:T,helper:f},F||{}),p.onStateChange||p.onInternalStateChange()}),S&&p.scheduleRender(),g&&(p._hasRecommendWidget=!0),l&&(p._hasSearchWidget=!0)}},render:function(d){var h,u=this,p=d.instantSearchInstance;p.status==="error"&&!p.mainHelper.hasPendingRequests()&&b&&f.setState(b);var y=this.getResults()||(h=v)!==null&&h!==void 0&&h.lastRecommendResults?a:a.filter(We);y=y.filter(function(R){return R.shouldRender?R.shouldRender({instantSearchInstance:p}):!0}
36),y.forEach(function(R){if(R.getRenderState){var P=R.getRenderState(p.renderState[u.getIndexId()]||{},ps(p,u,R));Fi({renderState:P,instantSearchInstance:p,parent:u})}}),y.forEach(function(R){R.render&&R.render(ps(p,u,R))})},dispose:function(){var d=this,h,u;a.forEach(function(p){p.dispose&&f&&p.dispose({helper:f,state:f.state,recommendState:f.recommendState,parent:d})}),c=null,m=null,(h=f)===null||h===void 0||h.removeAllListeners(),f=null,(u=v)===null||u===void 0||u.detach(),v=null},getWidgetUiState:function(d){return a.filter(We).reduce(function(h,u){return u.getWidgetUiState(h)},Xe(Xe({},d),{},At({},i,Xe(Xe({},d[i]),s))))},getWidgetState:function(d){return this.getWidgetUiState(d)},getWidgetSearchParameters:function(d,h){var u=h.uiState;return er(a,{uiState:u,initialSearchParameters:d})},refreshUiState:function(){s=Zt(a,{searchParameters:this.getHelper().state,helper:this.getHelper()},s)},setIndexUiState:function(d){var h=typeof d=="function"?d(s):d;c.setUiState(function(u){return Xe(Xe({},u),{},At({},i,h))})}}};function Fi(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=Xe(Xe({},r.renderState),{},At({},i,Xe(Xe({},r.renderState[i]),t)))}re({name:"Index"}),oe({connector:function(){return bc}},{$$widgetType:"ais.index"});var Qp="ais",In=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(Qp,"-").concat(t).concat(a).concat(s)}},Vp=In("Highlight");function Sc(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,c=Wt(i._highlightResult,t),m=c||{},f=m.value,v=f===void 0?"":f,b=Vp({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return v.replace(new RegExp(Ee.highlightPreTag,"g"),"<".concat(n,' class="').concat(b,'">')).replace(new RegExp(Ee.highlightPostTag,"g"),"</".concat(n,">"))}var Bp=In("ReverseHighlight");function Rc(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,c=Wt(i._highlightResult,t),m=c||{}
36,f=m.value,v=f===void 0?"":f,b=Bp({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),g=xu(Hu(da(v)));return g.replace(new RegExp(Ee.highlightPreTag,"g"),"<".concat(n,' class="').concat(b,'">')).replace(new RegExp(Ee.highlightPostTag,"g"),"</".concat(n,">"))}var Kp=In("Snippet");function Pc(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,c=Wt(i._snippetResult,t),m=c||{},f=m.value,v=f===void 0?"":f,b=Kp({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return v.replace(new RegExp(Ee.highlightPreTag,"g"),"<".concat(n,' class="').concat(b,'">')).replace(new RegExp(Ee.highlightPostTag,"g"),"</".concat(n,">"))}var zp=In("ReverseSnippet");function wc(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,c=Wt(i._snippetResult,t),m=c||{},f=m.value,v=f===void 0?"":f,b=zp({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):""),g=xu(Hu(da(v)));return g.replace(new RegExp(Ee.highlightPreTag,"g"),"<".concat(n,' class="').concat(b,'">')).replace(new RegExp(Ee.highlightPostTag,"g"),"</".concat(n,">"))}function ea(e){"@babel/helpers - typeof";return ea=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},ea(e)}var Gp="_ALGOLIA";function Yp(e){if(!((typeof document>"u"?"undefined":ea(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 Oc(){return Yp(Gp)}function Jp(){return Oc()}var Xp=["page"];function Zp(e,t){if(e==null)return{};var r=ev(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 ev(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 Yo(e){var t=e||{};t.page;var r=Zp(t,Xp);return r}function tv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.key,r=["ais.infiniteHits",t].filter(Boolean).join(":");return{read:function(i){var a=i.state,s=Ze(function(m){var f=m.window;return f.sessionStorage});if(!s)return null;try{var c=JSON.parse(s.getItem(r));return c&&Yr(c.state,Yo(a))?c.hits:null}catch(m){if(m instanceof SyntaxError)try{s.removeItem(r)}catch{}return null}},write:function(i){var a=i.state,s=i.hits,c=Ze(function(m){var f=m.window;return f.sessionStorage});if(c)try{c.setItem(r,JSON.stringify({state:Yo(a),hits:s}))}catch{}}}}var rv=ga();const nv=sa(rv);function iv(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function Qr(e){"@babel/helpers - typeof";return Qr=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},Qr(e)}function Jo(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 yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jo(Object(r),!0).forEach(function(n){av(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function av(e,t,r){return t=sv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sv(e){var t=ov(e,"string");return Qr(t)=="symbol"?t:String(t)}function ov(e,t){if(Qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ut(e,t){return lv(e)||cv(e,t)||_c(e,t)||uv()}
36function uv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 37In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cv(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],m=!0,f=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;m=!1}else for(;!(m=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);m=!0);}catch(v){f=!0,i=v}finally{try{if(!m&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(f)throw i}}return c}}function lv(e){if(Array.isArray(e))return e}function fv(e){return mv(e)||hv(e)||_c(e)||dv()}function dv(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 38In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _c(e,t){if(e){if(typeof e=="string")return ta(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 ta(e,t)}}function hv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mv(e){if(Array.isArray(e))return ta(e)}function ta(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 jc="2.17.2",gv="https://cdn.jsdelivr.net/npm/search-insights@".concat(jc,"/dist/search-insights.min.js");function Xo(){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=e.$$automatic,c=s===void 0?!1:s,m=t;!t&&t!==null&&Ze(function(v){var b=v.window,g=b.AlgoliaAnalyticsObject||"aa";typeof g=="string"&&(m=b[g]),m||(b.AlgoliaAnalyticsObject=g,b[g]||(b[g]=function(){b[g].queue||(b[g].queue=[]);for(var l=arguments.length,o=new Array(l),d=0;d<l;d++)o[d]=arguments[d];b[g].queue.push(o)},b[g].version=jc,b[g].shouldAddScript=!0),m=b[g])});var f=m||Z;return function(v){var b=v.instantSearchInstance,g=b.middleware.filter(function(O){return O.instance.$$type==="ais.insights"&&O.instance.$$internal}).map(function(O){return O.creator});b.unuse.apply(b,fv(g));var l=is(b.client),o=ut(l,2),d=o[0],h=o[1],u=void 0,p=void 0,y=void 0,R=f.queue;if(Array.isArray(R)){var P=["setUserToken","init"].map(function(O){var j=ct(R.slice().reverse(),function(F){var x=ut(F,1),N=x[0];return N===O})||[],$=ut(j,2),T=$[1];return T}),w=ut(P,2);p=w[0],u=w[1]}f("getUserToken",null,function(O,j){y=eu(j)}),(r||!Zo(f))&&f("init",yt({appId:d,apiKey:h,partial:!0},r));var _,S;return{$$type:"ais.insights",$$internal:a,$$automatic:c,onStateChange:function(){},subscribe:function(){if(f.shouldAddScript){var j="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var $=document.createElement("script");$.async=!0,$.src=gv,$.onerror=function(){b.emit("error",new Error(j))},document.body.appendChild($),f.shouldAddScript=!1}catch{f.shouldAddScript=!1,b.emit("error",new Error(j))}}},started:function(){f("addAlgoliaAgent","insights-middleware"),S=b.mainHelper;var j=f.queue;if(Array.isArray(j)){var $=["setUserToken","init"].map(function(W){var B=ct(j.slice().reverse(),function(ie){var de=ut(ie,1),he=de[0];return he===W})||[],z=ut(B,2),K=z[1];return K}),T=ut($,2);p=T[0],u=T[1]}_=pv(b),c||S.overrideStateWithoutTriggeringChangeEvent(yt(yt({},S.state),{},{clickAnalytics:!0})),a||b.scheduleSearch();var F=function(B){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=eu(B);if(!K)return;var ie=S.state.userToken;function de(){S.overrideStateWithoutTriggeringChangeEvent(yt(yt({},S.state),{},{userToken:K})),ie&&ie!==B&&b.scheduleSearch()}z?de():setTimeout(de,0)};function x(W){F(W,!0),f("setUserToken",W)}var N=void 0,H=Oc();if(H)N=H;else{var C="anonymous-".concat(iv());N=C}var A,I=_.userToken;if(r!=null&&r.userToken&&(A=r.userToken),A)x(A);else if(I)x(I);else if(y)x(y);else if(p)x(p);else if(N){var M;if(x(N),r!=null&&r.useCookie||(M=u)!==null&&M!==void 0&&M.useCookie){var D;vv(N,(r==null?void 0:r.cookieDuration)||((D=u)===null||D===void 0?void 0:D.cookieDuration))}}f("onUserTokenChange",function(W){return F(W,!0)},{immediate:!0});var k=f;Zo(f)&&(k=function(B,z){var K=is(b.client),ie=ut(K,2),de=ie[0],he=ie[1],Ie={headers:{"X-Algolia-Application-Id":de,"X-Algolia-API-Key":he}};return f(B,z,Ie)});var q=new Set,Y;b.mainHelper.derivedHelpers[0].on("result",function(W){var B=W.results;B&&(!B.queryID||B.queryID!==Y)&&(Y=B.queryID,q.clear())}),b.sendEventToInsights=function(W){if(n)n(W,k);else if(W.insightsMethod){if(W.insightsMethod==="viewedObjectIDs"){var B=W.payload,z=B.objectIDs.filter(function(K){return!q.has(K)});if(z.length===0)return;z.forEach(function(K){return q.add(K)}),B.objectIDs=z}W.payload.algoliaSource=["instantsearch"],c&&W.payload.algoliaSource.pu
38sh("instantsearch-automatic"),W.eventModifier==="internal"&&W.payload.algoliaSource.push("instantsearch-internal"),k(W.insightsMethod,W.payload)}}},unsubscribe:function(){f("onUserTokenChange",void 0),b.sendEventToInsights=Z,S&&_&&(S.overrideStateWithoutTriggeringChangeEvent(yt(yt({},S.state),_)),b.scheduleSearch())}}}}function pv(e){var t,r,n=((t=e._initialResults)===null||t===void 0||(r=t[e.indexName])===null||r===void 0?void 0:r.state)||{},i=e.mainHelper.state;return{userToken:n.userToken||i.userToken,clickAnalytics:n.clickAnalytics||i.clickAnalytics}}function vv(e,t){var r=2592e6,n=new Date;n.setTime(n.getTime()+(t||r*6));var i="expires=".concat(n.toUTCString());document.cookie="_ALGOLIA=".concat(e,";").concat(i,";path=/")}function Zo(e){var t=(e.version||"").split(".").map(Number),r=ut(t,2),n=r[0],i=r[1],a=n>=3,s=n===2&&i>=6,c=n===1&&i>=10;return a||s||c}function eu(e){if(e)return typeof e=="number"?e.toString():e}function Ec(e,t,r){var n=rr(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 c=Object.keys(a).filter(function(m){return a[m]!==void 0});r.widgets.push({type:i.$$type,widgetType:i.$$widgetType,params:c}),i.$$type==="ais.index"&&Ec(i.getWidgets(),t,r)})}function yv(){return Ze(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 bv(){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"),c=document.querySelector("head");return s.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var f=i.client;a.ua=f.transporter&&f.transporter.userAgent?f.transporter.userAgent.value:f._ua,Ec(i.mainIndex.getWidgets(),i,a),i.middleware.forEach(function(v){return a.widgets.push({middleware:!0,type:v.instance.$$type,internal:v.instance.$$internal})}),s.content=JSON.stringify(a),c.appendChild(s)},0)},started:function(){},unsubscribe:function(){s.remove()}}}}var Ii,tu;function Ra(){if(tu)return Ii;tu=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Ii={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Ii}var Ai,ru;function $c(){if(ru)return Ai;ru=1;var e=Ra(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var d=[],h=0;h<256;++h)d.push("%"+((h<16?"0":"")+h.toString(16)).toUpperCase());return d}(),i=function(h){for(;h.length>1;){var u=h.pop(),p=u.obj[u.prop];if(r(p)){for(var y=[],R=0;R<p.length;++R)typeof p[R]<"u"&&y.push(p[R]);u.obj[u.prop]=y}}},a=function(h,u){for(var p=u&&u.plainObjects?Object.create(null):{},y=0;y<h.length;++y)typeof h[y]<"u"&&(p[y]=h[y]);return p},s=function d(h,u,p){if(!u)return h;if(typeof u!="object"){if(r(h))h.push(u);else if(h&&typeof h=="object")(p&&(p.plainObjects||p.allowPrototypes)||!t.call(Object.prototype,u))&&(h[u]=!0);else return[h,u];return h}if(!h||typeof h!="object")return[h].concat(u);var y=h;return r(h)&&!r(u)&&(y=a(h,p)),r(h)&&r(u)?(u.forEach(function(R,P){if(t.call(h,P)){var w=h[P];w&&typeof w=="object"&&R&&typeof R=="object"?h[P]=d(w,R,p):h.push(R)}else h[P]=R}),h):Object.keys(u).reduce(function(R,P){var w=u[P];return t.call(R,P)?R[P]=d(R[P],w,p):R[P]=w,R},y)},c=function(h,u){return Object.keys(u).reduce(function(p,y){return p[y]=u[y],p},h)},m=function(d,h,u){var p=d.replace(/\+/g," ");if(u==="iso-8859-1")return p.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(p)}catch{return p}},f=function(h,u,p,y,R){if(h.length===0)return h;var P=h;if(typeof h=="symbol"?P=Symbol.prototype.toString.call(h):typeof h!="string"&&(P=String(h)),p==="iso-8859-1")return escape(P).replace(/%u[0-9a-f]{4}/gi,function(O){return"%26%23"+parseInt(O.slice(2),16)+"%3B"});for(var w="",_=0;_<P.length;++_){var S=P.charCodeAt(_);if(S===45||S===46||S===95||S===126||S>=48&&S<=57||S>=65&&S<=90||S>
vendor: 6,270 bytes, line 38
38=97&&S<=122||R===e.RFC1738&&(S===40||S===41)){w+=P.charAt(_);continue}if(S<128){w=w+n[S];continue}if(S<2048){w=w+(n[192|S>>6]+n[128|S&63]);continue}if(S<55296||S>=57344){w=w+(n[224|S>>12]+n[128|S>>6&63]+n[128|S&63]);continue}_+=1,S=65536+((S&1023)<<10|P.charCodeAt(_)&1023),w+=n[240|S>>18]+n[128|S>>12&63]+n[128|S>>6&63]+n[128|S&63]}return w},v=function(h){for(var u=[{obj:{o:h},prop:"o"}],p=[],y=0;y<u.length;++y)for(var R=u[y],P=R.obj[R.prop],w=Object.keys(P),_=0;_<w.length;++_){var S=w[_],O=P[S];typeof O=="object"&&O!==null&&p.indexOf(O)===-1&&(u.push({obj:P,prop:S}),p.push(O))}return i(u),h},b=function(h){return Object.prototype.toString.call(h)==="[object RegExp]"},g=function(h){return!h||typeof h!="object"?!1:!!(h.constructor&&h.constructor.isBuffer&&h.constructor.isBuffer(h))},l=function(h,u){return[].concat(h,u)},o=function(h,u){if(r(h)){for(var p=[],y=0;y<h.length;y+=1)p.push(u(h[y]));return p}return u(h)};return Ai={arrayToObject:a,assign:c,combine:l,compact:v,decode:m,encode:f,isBuffer:g,isRegExp:b,maybeMap:o,merge:s},Ai}var Di,nu;function Sv(){if(nu)return Di;nu=1;var e=$c(),t=Ra(),r=Object.prototype.hasOwnProperty,n={brackets:function(d){return d+"[]"},comma:"comma",indices:function(d,h){return d+"["+h+"]"},repeat:function(d){return d}},i=Array.isArray,a=String.prototype.split,s=Array.prototype.push,c=function(o,d){s.apply(o,i(d)?d:[d])},m=Date.prototype.toISOString,f=t.default,v={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:e.encode,encodeValuesOnly:!1,format:f,formatter:t.formatters[f],indices:!1,serializeDate:function(d){return m.call(d)},skipNulls:!1,strictNullHandling:!1},b=function(d){return typeof d=="string"||typeof d=="number"||typeof d=="boolean"||typeof d=="symbol"||typeof d=="bigint"},g=function o(d,h,u,p,y,R,P,w,_,S,O,j,$,T){var F=d;if(typeof P=="function"?F=P(h,F):F instanceof Date?F=S(F):u==="comma"&&i(F)&&(F=e.maybeMap(F,function(W){return W instanceof Date?S(W):W})),F===null){if(p)return R&&!$?R(h,v.encoder,T,"key",O):h;F=""}if(b(F)||e.isBuffer(F)){if(R){var x=$?h:R(h,v.encoder,T,"key",O);if(u==="comma"&&$){for(var N=a.call(String(F),","),H="",C=0;C<N.length;++C)H+=(C===0?"":",")+j(R(N[C],v.encoder,T,"value",O));return[j(x)+"="+H]}return[j(x)+"="+j(R(F,v.encoder,T,"value",O))]}return[j(h)+"="+j(String(F))]}var A=[];if(typeof F>"u")return A;var I;if(u==="comma"&&i(F))I=[{value:F.length>0?F.join(",")||null:void 0}];else if(i(P))I=P;else{var M=Object.keys(F);I=w?M.sort(w):M}for(var D=0;D<I.length;++D){var k=I[D],q=typeof k=="object"&&typeof k.value<"u"?k.value:F[k];if(!(y&&q===null)){var Y=i(F)?typeof u=="function"?u(h,k):h:h+(_?"."+k:"["+k+"]");c(A,o(q,Y,u,p,y,R,P,w,_,S,O,j,$,T))}}return A},l=function(d){if(!d)return v;if(d.encoder!==null&&typeof d.encoder<"u"&&typeof d.encoder!="function")throw new TypeError("Encoder has to be a function.");var h=d.charset||v.charset;if(typeof d.charset<"u"&&d.charset!=="utf-8"&&d.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var u=t.default;if(typeof d.format<"u"){if(!r.call(t.formatters,d.format))throw new TypeError("Unknown format option provided.");u=d.format}var p=t.formatters[u],y=v.filter;return(typeof d.filter=="function"||i(d.filter))&&(y=d.filter),{addQueryPrefix:typeof d.addQueryPrefix=="boolean"?d.addQueryPrefix:v.addQueryPrefix,allowDots:typeof d.allowDots>"u"?v.allowDots:!!d.allowDots,charset:h,charsetSentinel:typeof d.charsetSentinel=="boolean"?d.charsetSentinel:v.charsetSentinel,delimiter:typeof d.delimiter>"u"?v.delimiter:d.delimiter,encode:typeof d.encode=="boolean"?d.encode:v.encode,encoder:typeof d.encoder=="function"?d.encoder:v.encoder,encodeValuesOnly:typeof d.encodeValuesOnly=="boolean"?d.encodeValuesOnly:v.encodeValuesOnly,filter:y,format:u,formatter:p,serializeDate:typeof d.serializeDate=="function"?d.serializeDate:v.serializeDate,skipNulls:typeof d.skipNulls=="boolean"?d.skipNulls:v.skipNulls,sort:typeof d.sort=="function"?d.sort:null,strictNullHandling:typeof d.strictNullHandling=="boolean"?d.strictNullHandling:v.strictNullHandling}};return Di=function(o,d){var h=o,u=l(d),p,y;typeof u.filter=="function"?(y=u.filter,h=y("",h)):i(u.filter)&&(y=u.filter,p=y);var R=[];if(typeof h!="object"||h===null)return"";var P;d&&d.arrayFormat in n?P=d.arrayFormat:d&&"indices"in d?P=d.indices?"indices":"repeat":P="indices";var w=n[P];p||(p=Object.keys(h)),u.sort&&p.sort(u.sort);for(var _=0;_<p.length;++_){var S=p[_];u.skipNulls&&h[S]===null||c(R,g(h[S],S,w,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset))}var O=R.join(u.delimiter),j=u.addQueryPrefix===!0?"?":"";return u.charsetSentinel&&(u.charset==="iso-8859-1"?j+="utf8=%26%2310003%3B&":j+="utf8=%E2%9C%93&"),O.length>0?j+O:""},Di}var Ci,iu;function Rv(){if(iu)return Ci;iu=1;var e=$c(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:e.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(g){return g.replace(/&#(\d+);/g,function(l,o){return String.fromCharCode(parseInt(o,10))})},a=function(g,l){return g&&typeof g=="string"&&l.comma&&g.indexOf(",")>-1?g.split(","):g},s="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",m=function(l,o){var d={},h=o.ignoreQueryPrefix?l.replace(/^\?/,""):l,u=o.parameterLimit===1/0?void 0:o.parameterLimit,p=h.split(o.delimiter,u),y=-1,R,P=o.charset;if(o.charsetSentinel)for(R=0;R<p.length;++R)p[R].indexOf("utf8=")===0&&(p[R]===c?P="utf-8":p[R]===s&&(P="iso-8859-1"),y=R,R=p.length);for(R=0;R<p.length;++R)if(R!==y){var w=p[R],_=w.indexOf("]="),S=_===-1?w.indexOf("="):_+1,O,j;S===-1?(O=o.decoder(w,n.decoder,P,"key"),j=o.strictNullHandling?null:""):(O=o.decoder(w.slice(0,S),n.decoder,P,"key"),j=e.maybeMap(a(w.slice(S+1),o),function($){return o.decoder($,n.decoder,P,"value")})),j&&o.interpretNumericEntities&&P==="iso-8859-1"&&(j=i(j)),w.indexOf("[]=")>-1&&(j=r(j)?[j]:j),t.call(d,O)?d[O]=e.combine(d[O],j):d[O]=j}return d},f=function(g,l,o,d){for(var h=d?l:a(l,o),u=g.length-1;u>=0;--u){var p,y=g[u];
38if(y==="[]"&&o.parseArrays)p=[].concat(h);else{p=o.plainObjects?Object.create(null):{};var R=y.charAt(0)==="["&&y.charAt(y.length-1)==="]"?y.slice(1,-1):y,P=parseInt(R,10);!o.parseArrays&&R===""?p={0:h}:!isNaN(P)&&y!==R&&String(P)===R&&P>=0&&o.parseArrays&&P<=o.arrayLimit?(p=[],p[P]=h):R!=="__proto__"&&(p[R]=h)}h=p}return h},v=function(l,o,d,h){if(l){var u=d.allowDots?l.replace(/\.([^.[]+)/g,"[$1]"):l,p=/(\[[^[\]]*])/,y=/(\[[^[\]]*])/g,R=d.depth>0&&p.exec(u),P=R?u.slice(0,R.index):u,w=[];if(P){if(!d.plainObjects&&t.call(Object.prototype,P)&&!d.allowPrototypes)return;w.push(P)}for(var _=0;d.depth>0&&(R=y.exec(u))!==null&&_<d.depth;){if(_+=1,!d.plainObjects&&t.call(Object.prototype,R[1].slice(1,-1))&&!d.allowPrototypes)return;w.push(R[1])}return R&&w.push("["+u.slice(R.index)+"]"),f(w,o,d,h)}},b=function(l){if(!l)return n;if(l.decoder!==null&&l.decoder!==void 0&&typeof l.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof l.charset<"u"&&l.charset!=="utf-8"&&l.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=typeof l.charset>"u"?n.charset:l.charset;return{allowDots:typeof l.allowDots>"u"?n.allowDots:!!l.allowDots,allowPrototypes:typeof l.allowPrototypes=="boolean"?l.allowPrototypes:n.allowPrototypes,arrayLimit:typeof l.arrayLimit=="number"?l.arrayLimit:n.arrayLimit,charset:o,charsetSentinel:typeof l.charsetSentinel=="boolean"?l.charsetSentinel:n.charsetSentinel,comma:typeof l.comma=="boolean"?l.comma:n.comma,decoder:typeof l.decoder=="function"?l.decoder:n.decoder,delimiter:typeof l.delimiter=="string"||e.isRegExp(l.delimiter)?l.delimiter:n.delimiter,depth:typeof l.depth=="number"||l.depth===!1?+l.depth:n.depth,ignoreQueryPrefix:l.ignoreQueryPrefix===!0,interpretNumericEntities:typeof l.interpretNumericEntities=="boolean"?l.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof l.parameterLimit=="number"?l.parameterLimit:n.parameterLimit,parseArrays:l.parseArrays!==!1,plainObjects:typeof l.plainObjects=="boolean"?l.plainObjects:n.plainObjects,strictNullHandling:typeof l.strictNullHandling=="boolean"?l.strictNullHandling:n.strictNullHandling}};return Ci=function(g,l){var o=b(l);if(g===""||g===null||typeof g>"u")return o.plainObjects?Object.create(null):{};for(var d=typeof g=="string"?m(g,o):g,h=o.plainObjects?Object.create(null):{},u=Object.keys(d),p=0;p<u.length;++p){var y=u[p],R=v(y,d[y],o,typeof g=="string");h=e.merge(h,R,o)}return e.compact(h)},Ci}var Ni,au;function Pv(){if(au)return Ni;au=1;var e=Sv(),t=Rv(),r=Ra();return Ni={formats:r,parse:t,stringify:e},Ni}var wv=Pv();const su=sa(wv);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)}function Ov(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _v(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,Tc(n.key),n)}}function jv(e,t,r){return t&&_v(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Te(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=Ev(e,"string");return Vr(t)=="symbol"?t:String(t)}function Ev(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ou=function(t){t&&(window.document.title=t)},$v=function(){function e(t){var r=this,n=t.windowTitle,i=t.writeDelay,a=i===void 0?400:i,s=t.createURL,c=t.parseURL,m=t.getLocation,f=t.start,v=t.dispose,b=t.push,g=t.cleanUrlOnDispose;Ov(this,e),Te(this,"$$type","ais.browser"),Te(this,"windowTitle",void 0),Te(this,"writeDelay",void 0),Te(this,"_createURL",void 0),Te(this,"parseURL",void 0),Te(this,"getLocation",void 0),Te(this,"writeTimer",void 0),Te(this,"_onPopState",void 0),Te(this,"inPopState",!1),Te(this,"isDisposed",!1),Te(this,"latestAcknowledgedHistory",0),Te(this,"_start",void 0),Te(this,"_dispose",void 0),Te(this,"_push",void 0),Te(this,"_cleanUrlOnDispose",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=a,this._createURL=s,this.parseURL=c,this.getLocation=m,this._start=f,this._dispose=v,this._push=b,this._cleanUrlOnDispose=typeof g>"u"?!0:g,Ze(function(l){var o=l.window,d=r.windowTitle&&r.windowTitle(r.read());ou(d),r.latestAcknowledgedHistory=o.history.length})}return jv(e,[{key:"read",value:function(){return this.parseURL({qsModule:su,location:this.getLocation()})}},{key:"write",value:function(r){var n=this;Ze(function(i){var a=i.window,s=n.createURL(r),c=n.windowTitle&&n.windowTitle(r);n.writeTimer&&clearTimeout(n.writeTimer),n.writeTimer=setTimeout(function(){ou(c),n.shouldWrite(s)&&(n._push?n._push(s):a.history.pushState(r,c||"",s),n.latestAcknowledgedHistory=a.history.length),n.inPopState=!1,n.writeTimer=void 0},n.writeDelay)})}}
38,{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())},Ze(function(i){var a=i.window;a.addEventListener("popstate",n._onPopState)})}},{key:"createURL",value:function(r){var n=this._createURL({qsModule:su,routeState:r,location:this.getLocation()});return n}},{key:"dispose",value:function(){var r=this;this._dispose&&this._dispose(),this.isDisposed=!0,Ze(function(n){var i=n.window;r._onPopState&&i.removeEventListener("popstate",r._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(r){var n=this;return Ze(function(i){var a=i.window;if(n.isDisposed&&!n._cleanUrlOnDispose)return!1;var s=!(n.isDisposed&&n.latestAcknowledgedHistory!==a.history.length);return!n.inPopState&&s&&r!==a.location.href})}}]),e}();function xc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.createURL,r=t===void 0?function(o){var d=o.qsModule,h=o.routeState,u=o.location,p=u.protocol,y=u.hostname,R=u.port,P=R===void 0?"":R,w=u.pathname,_=u.hash,S=d.stringify(h),O=P===""?"":":".concat(P);return S?"".concat(p,"//").concat(y).concat(O).concat(w,"?").concat(S).concat(_):"".concat(p,"//").concat(y).concat(O).concat(w).c
38oncat(_)}:t,n=e.parseURL,i=n===void 0?function(o){var d=o.qsModule,h=o.location;return d.parse(h.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,s=a===void 0?400:a,c=e.windowTitle,m=e.getLocation,f=m===void 0?function(){return Ze(function(o){var d=o.window;return d.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:m,v=e.start,b=e.dispose,g=e.push,l=e.cleanUrlOnDispose;return new $v({createURL:r,parseURL:i,writeDelay:s,windowTitle:c,getLocation:f,start:v,dispose:b,push:g,cleanUrlOnDispose:l})}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)}var Tv=["configure"];function uu(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 hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uu(Object(r),!0).forEach(function(n){ra(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ra(e,t,r){return t=xv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xv(e){var t=Fv(e,"string");return Br(t)=="symbol"?t:String(t)}function Fv(e,t){if(Br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iv(e,t){if(e==null)return{};var r=Av(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 Av(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 cu(e){e.configure;var t=Iv(e,Tv);return t}function Dv(){return{$$type:"ais.simple",stateToRoute:function(t){return Object.keys(t).reduce(function(r,n){return hn(hn({},r),{},ra({},n,cu(t[n])))},{})},routeToState:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(r,n){return hn(hn({},r),{},ra({},n,cu(t[n])))},{})}}}function Kr(e){"@babel/helpers - typeof";return Kr=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},Kr(e)}function lu(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 mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lu(Object(r),!0).forEach(function(n){Fc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fc(e,t,r){return t=Cv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cv(e){var t=Nv(e,"string");return Kr(t)=="symbol"?t:String(t)}function Nv(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.router,n=r===void 0?xc():r,i=t.stateMapping,a=i===void 0?Dv():i,s=t.$$internal,c=s===void 0?!1:s;return function(m){var f=m.instantSearchInstance;function v(l){var o=f.mainIndex.getWidgets().length===0?f._initialUiState:f.mainIndex.getWidgetUiState({}),d=Object.keys(l).reduce(function(u,p){return mn(mn({},u),{},Fc({},p,l[p]))},o),h=a.stateToRoute(d);return n.createURL(h)}f._createURL=v;var b=void 0,g=f._initialUiState;return{$$type:"ais.router({router:".concat(n.$$type||"__unknown__",", stateMapping:").concat(a.$$type||"__unknown__","})"),$$internal:c,onStateChange:function(o){var d=o.uiState,h=a.stateToRoute(d);(b===void 0||!Yr(b,h))&&(n.write(h),b=h)},subscribe:function(){f._initialUiState=mn(mn({},g),a.routeToState(n.read())),n.onUpdate(function(o){f.mainIndex.getWidgets().length>0&&f.setUiState(a.routeToState(o))})},started:function(){var o;(o=n.start)===null||o===void 0||o.call(n)},unsubscribe:function(){n.dispose()}}}};
38function Hv(e,t){return e.toLocaleString(t)}function zr(e){"@babel/helpers - typeof";return zr=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},zr(e)}function fu(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 st(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fu(Object(r),!0).forEach(function(n){Mv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mv(e,t,r){return t=Wv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wv(e){var t=Uv(e,"string");return zr(t)=="symbol"?t:String(t)}function Uv(e,t){if(zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kv(e){var t=e.numberLocale;return{formatNumber:function(n,i){return Hv(Number(i(n)),t)},highlight:function(n,i){try{var a=JSON.parse(n);return i(Sc(st(st({},a),{},{hit:this})))}catch{throw new Error(` 39The highlight helper expects a JSON object of the format: 40{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseHighlight:function(n,i){try{var a=JSON.parse(n);return i(Rc(st(st({},a),{},{hit:this})))}catch{throw new Error(` 41 The reverseHighlight helper expects a JSON object of the format: 42 { "attribute": "name", "highlightedTagName": "mark" }`)}},snippet:function(n,i){try{var a=JSON.parse(n);return i(Pc(st(st({},a),{},{hit:this})))}catch{throw new Error(` 43The snippet helper expects a JSON object of the format: 44{ "attribute": "name", "highlightedTagName": "mark" }`)}},reverseSnippet:function(n,i){try{var a=JSON.parse(n);return i(wc(st(st({},a),{},{hit:this})))}catch{throw new Error(` 45 The reverseSnippet helper expects a JSON object of the format: 46 { "attribute": "name", "highlightedTagName": "mark" }`)}},insights:function(n,i){try{var a=JSON.parse(n),s=a.method,c=a.payload;return i(Zu(s,st({objectIDs:[this.objectID]},c)))}catch{throw new Error(` 47The insights helper expects a JSON object of the format: 48{ "method": "method-name", "payload": { "eventName": "name of the event" } }`)}}}}const Ic="4.79.0";function Ht(e){"@babel/helpers - typeof";return Ht=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},Ht(e)}function du(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 Li(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?du(Object(r),!0).forEach(function(n){ne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):du(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qv(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,Ac(n.key),n)}}function Vv(e,t,r){return t&&Qv(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bv(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&&na(e,t)}
48function na(e,t){return na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},na(e,t)}function Kv(e){var t=Gv();return function(){var n=xn(e),i;if(t){var a=xn(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return zv(this,i)}}function zv(e,t){if(t&&(Ht(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(e)}function ee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gv(){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 xn(e){return xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xn(e)}function ne(e,t,r){return t=Ac(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ac(e){var t=Yv(e,"string");return Ht(t)=="symbol"?t:String(t)}function Yv(e,t){if(Ht(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ht(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Be=ce({name:"instantsearch"});function Jv(){return"#"}var Dc={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},Xv=function(e){Bv(r,e);var t=Kv(r);function r(n){var i;qv(this,r),i=t.call(this),ne(ee(i),"client",void 0),ne(ee(i),"indexName",void 0),ne(ee(i),"compositionID",void 0),ne(ee(i),"insightsClient",void 0),ne(ee(i),"onStateChange",null),ne(ee(i),"future",void 0),ne(ee(i),"helper",void 0),ne(ee(i),"mainHelper",void 0),ne(ee(i),"mainIndex",void 0),ne(ee(i),"started",void 0),ne(ee(i),"templatesConfig",void 0),ne(ee(i),"renderState",{}),ne(ee(i),"_stalledSearchDelay",void 0),ne(ee(i),"_searchStalledTimer",void 0),ne(ee(i),"_initialUiState",void 0),ne(ee(i),"_initialResults",void 0),ne(ee(i),"_manuallyResetScheduleSearch",!1),ne(ee(i),"_resetScheduleSearch",void 0),ne(ee(i),"_createURL",void 0),ne(ee(i),"_searchFunction",void 0),ne(ee(i),"_mainHelperSearch",void 0),ne(ee(i),"_hasSearchWidget",!1),ne(ee(i),"_hasRecommendWidget",!1),ne(ee(i),"_insights",void 0),ne(ee(i),"middleware",[]),ne(ee(i),"sendEventToInsights",void 0),ne(ee(i),"status","idle"),ne(ee(i),"error",void 0),ne(ee(i),"scheduleSearch",Yt(function(){i.started&&i.mainHelper.search()})),ne(ee(i),"scheduleRender",Yt(function(){var T,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(T=i.mainHelper)!==null&&T!==void 0&&T.hasPendingRequests()||(clearTimeout(i._searchStalledTimer),i._searchStalledTimer=null,F&&(i.status="idle",i.error=void 0)),i.mainIndex.render({instantSearchInstance:ee(i)}),i.emit("render")})),ne(ee(i),"onInternalStateChange",Yt(function(){var T=i.mainIndex.getWidgetUiState({});i.middleware.forEach(function(F){var x=F.instance;x.onStateChange({uiState:T})})})),i.setMaxListeners(100);var a=n.indexName,s=a===void 0?"":a,c=n.compositionID,m=n.numberLocale,f=n.initialUiState,v=f===void 0?{}:f,b=n.routing,g=b===void 0?null:b,l=n.insights,o=l===void 0?void 0:l,d=n.searchFunction,h=n.stalledSearchDelay,u=h===void 0?200:h,p=n.searchClient,y=p===void 0?null:p,R=n.insightsClient,P=R===void 0?null:R,w=n.onStateChange,_=w===void 0?null:w,S=n.future,O=S===void 0?Li(Li({},Dc),n.future||{}):S;if(y===null)throw new Error(Be("The `searchClient` option is required."));if(typeof y.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 y.addAlgoliaAgent=="function"&&y.addAlgoliaAgent("instantsearch.js (".concat(Ic,")")),P&&typeof P!="function")throw new Error(Be("The `insightsClient` option should be a function."));if(i.client=y,i.future=O,i.insightsClient=P,i.indexName=s,i.compositionID=c,i.helper=null,i.mainHelper=null,i.mainIndex=bc({indexName:i.compositionID||i.indexName}),i.onStateChange=_,i.started=!1,i.templatesConfig={helpers:kv({numberLocale:m}),compileOptions:{}},i._stalledSearchDelay=u,i._searchStalledTimer=null,i._createURL=Jv,i._initialUiState=v,i._initialResults=null,i._insights=o,d&&(i._searchFunction=d),i.sendEventToInsights=Z,g){var j=typeof g=="boolean"?{}:g;j.$$internal=!0,i.use(Lv(j))}if(o){var $=typeof o=="boolean"?{}:o;$.$$internal=!0,i.use(Xo($))}return yv()&&i.use(bv({$$internal:!0})),i}return Vv(r,[{key:"_isSearchStalled",get:function(){return this.status==="stalled"}},{key:"use",value:function(){for(var i=this,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var m=s.map(function(f){var v=Li({$$type:"__unknown__",$$internal:!1,subscribe:Z,started:Z,unsubscribe:Z,onStateChange:Z},f({instantSearchInstance:i}));return i.middleware.push({creator:f,instance:v}),v});return this.started&&m.forEach(function(f){f.subscribe(),f.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(c){return a.includes(c.creator)}
48).forEach(function(c){return c.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(c){return!a.includes(c.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(Be("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(Be("The widget definition expects a `render` and/or an `init` method."));if(this.compositionID&&i.some(We))throw new Error(Be("The `index` widget cannot be used with a composition-based InstantSearch implementation."));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(Be("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));if(i.some(function(a){return typeof a.dispose!="function"}))throw new Error(Be("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(Be("The `start` method has already been called once."));var a=this.mainHelper||je(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(a.searchForFacetValues=a.searchForCompositionFacetValues.bind(a)),a.search=function(){return i.status="loading",i.scheduleRender(!1),i._hasSearchWidget&&(i.compositionID?a.searchWithComposition():a.searchOnlyWithDerivedHelpers()),i._hasRecommendWidget&&a.recommend(),a},this._searchFunction){var s={search:function(){return new Promise(Z)}};this._mainHelperSearch=a.search.bind(a),a.search=function(){var m=i.mainIndex.getHelper(),f=je(s,m.state.index,m.state);return f.once("search",function(v){var b=v.state;m.overrideStateWithoutTriggeringChangeEvent(b),i._mainHelperSearch()}),f.on("change",function(v){var b=v.state;m.setState(b)}),i._searchFunction(f),a}}if(a.on("error",function(m){var f=m.error;if(!(f instanceof Error)){var v=f;f=Object.keys(v).reduce(function(b,g){return b[g]=v[g],b},new Error(v.message))}f.error=f,i.error=f,i.status="error",i.scheduleRender(!1),i.emit("error",f)}),this.mainHelper=a,this.middleware.forEach(function(m){var f=m.instance;f.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){qf(this.client,this._initialResults),Cf(this.mainHelper,this._initialResults);var c=this.scheduleSearch;this.scheduleSearch=Yt(Z),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){i.scheduleSearch=c}:Yt(function(){i.scheduleSearch=c})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(m){var f=m.instance;f.started()}),typeof this._insights>"u"&&a.derivedHelpers[0].once("result",function(){var m=i.mainIndex.getScopedResults().some(function(f){var v=f.results;return v==null?void 0:v._automaticInsights});m&&i.use(Xo({$$internal:!0,$$automatic:!0}))})}},{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(Be("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var c=typeof i=="function"?i(this.mainIndex.getWidgetUiState({})):i;this.onStateChange&&s?this.onStateChange({uiState:c,setUiState:function(f){ki(typeof f=="function"?f(c):f,a.mainIndex),a.scheduleSearch(),a.onInternalStateChange()}}):(ki(c,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(Be("The `start` method needs to be called before `createURL`."));return this._createURL(i)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(Be("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),r}(nv),Ve=function(t){return new Xv(t)};Ve.version=Ic;Ve.createInfiniteHitsSessionStorageCache=Mt(tv);Ve.highlight=Mt(Sc);Ve.reverseHighlight=Mt(Rc);Ve.snippet=Mt(Pc);Ve.reverseSnippet=Mt(wc);Ve.insights=Zu;Ve.getInsightsAnonymousUserToken=Jp;Object.defineProperty(Ve,"widgets",{get:function(){throw new ReferenceError(`"instantsearch.widgets" are not available from the ES build. 49 50To import the widgets: 51 52import { searchBox } from 'instantsearch.js/es/widgets'`)}});Object.defineProperty(Ve,"connectors",{get:function(){throw new ReferenceError(`"instantsearch.connectors" are not available from the ES build. 53 54To import the connectors: 55 56import { connectSearchBox } from 'instantsearch.js/es/connectors'`)}});Object.defineProperty(Ve,"templates",{get:function(){throw new ReferenceError(`"instantsearch.templates" are not available from the ES build. 57 58To import the templates: 59 60import { carousel } from 'instantsearch.js/es/templates'`)}});var Zv="4.21.0",Cc=function(e){var t;
60return cr(((t={mixins:[re({name:"InstantSearch"})],provide:function(){return{$_ais_instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function(r){Dt(!1),this.instantSearchInstance.helper.setClient(r).search()},indexName:function(r){this.instantSearchInstance.helper.setIndex(r||"").search()},compositionID: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. 61 62Please open a new issue: https://github.com/algolia/instantsearch/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. 63 64Please open a new issue: https://github.com/algolia/instantsearch/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)})}},future:function(r){this.instantSearchInstance.future=Object.assign(Dc,r)}},created:function(){var r=this.instantSearchInstance.client;typeof r.addAlgoliaAgent=="function"&&(r.addAlgoliaAgent("Vue ("+rl+")"),r.addAlgoliaAgent("Vue InstantSearch ("+Zv+")"))},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)},hu=`Vue InstantSearch: You used the prop api-key or app-id. 65These have been replaced by search-client. 66 67See more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client`;const ey=Cc({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,default:void 0},indexName:{type:String,required:!1},compositionID:{type:String,required:!1},routing:{default:void 0,validator:function(e){return!(typeof e=="boolean"||!e.router&&!e.stateMapping)||(Dt("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 e===void 0||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&&Dt(hu),!1}},appId:{type:String,default:void 0,validator:function(e){return e&&Dt(hu),!1}},middlewares:{type:Array,default:null},future:{type:Object,default:void 0}},data:function(){return{instantSearchInstance:Ve({searchClient:this.searchClient,insightsClient:this.insightsClient,insights:this.insights,indexName:this.indexName,compositionID:this.compositionID,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction,onStateChange:this.onStateChange,initialUiState:this.initialUiState,future:this.future})}},render:Fn(function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!1,t)},ua(this))})});Cc({name:"AisInstantSearchSsr",inject:{$_ais_ssrInstantSearchInstance:{default:function(){throw new Error("`createServerRootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais_ssrInstantSearchInstance}},render:Fn(function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!0,t)},ua(this))})});const Nc={name:"AisInfiniteHits",mixins:[oe({connector:cm},{$$widgetType:"ais.infiniteHits"}
67),re({name:"InfiniteHits"})],props:{showBanner:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!1},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0},cache:{type:Object,default:void 0}},computed:{widgetParams:function(){return{showBanner:this.showBanner,showPrevious:this.showPrevious,escapeHTML:this.escapeHTML,transformItems:this.transformItems,cache:this.cache}}},methods:{refinePrevious:function(){this.state.showPrevious()},refineNext:function(){this.state.showMore()}}};var ty=["disabled"],ry=["href","target"],ny=["src","alt"],iy=["src","alt"],ay=["onClick","onAuxclick"],sy=["disabled"];function oy(e,t,r,n,i,a){return e.state?(X(),te("div",{key:0,class:ae(e.suit())},[r.showPrevious?pe(e.$slots,"loadPrevious",{key:0,refinePrevious:a.refinePrevious,page:e.state.results.page,isFirstPage:e.state.isFirstPage},function(){return[U("button",{class:ae([e.suit("loadPrevious"),e.state.isFirstPage&&e.suit("loadPrevious","disabled")]),disabled:e.state.isFirstPage,onClick:t[0]||(t[0]=function(s){return a.refinePrevious()})}," Show previous results ",10,ty)]}):me("",!0),pe(e.$slots,"default",{items:e.state.items,results:e.state.results,banner:e.state.banner,isLastPage:e.state.isLastPage,refinePrevious:a.refinePrevious,refineNext:a.refineNext,refine:a.refineNext,insights:e.state.insights,sendEvent:e.state.sendEvent},function(){return[r.showBanner&&e.state.banner&&e.state.banner.image.urls[0].url?pe(e.$slots,"banner",{key:0,banner:e.state.banner},function(){return[U("aside",{class:ae(e.suit("banner"))},[e.state.banner.link?(X(),te("a",{key:0,href:e.state.banner.link.url,target:e.state.banner.link.target,class:ae(e.suit("banner-link"))},[U("img",{src:e.state.banner.image.urls[0].url,alt:e.state.banner.image.title,class:ae(e.suit("banner-image"))},null,10,ny)],10,ry)):(X(),te("img",{key:1,src:e.state.banner.image.urls[0].url,alt:e.state.banner.image.title,class:ae(e.suit("banner-image"))},null,10,iy))],2)]}):me("",!0),U("ol",{class:ae(e.suit("list"))},[(X(!0),te(bt,null,_n(e.state.items,function(s,c){return X(),te("li",{class:ae(e.suit("item")),key:s.objectID,onClick:function(m){return e.state.sendEvent("click:internal",s,"Hit Clicked")},onAuxclick:function(m){return e.state.sendEvent("click:internal",s,"Hit Clicked")}},[pe(e.$slots,"item",{item:s,index:c,insights:e.state.insights,sendEvent:e.state.sendEvent},function(){return[ur(" objectID: "+le(s.objectID)+", index: "+le(c),1)]})],42,ay)}),128))],2),pe(e.$slots,"loadMore",{refineNext:a.refineNext,refine:a.refineNext,page:e.state.results.page,isLastPage:e.state.isLastPage},function(){return[U("button",{class:ae([e.suit("loadMore"),e.state.isLastPage&&e.suit("loadMore","disabled")]),disabled:e.state.isLastPage,onClick:t[1]||(t[1]=function(s){return a.refineNext()})}," Show more results ",10,sy)]})]})],2)):me("",!0)}Nc.render=oy;re({name:"Menu"}),oe({connector:rc},{$$widgetType:"ais.menu"}),Me();re({name:"MenuSelect"}),oe({connector:rc},{$$widgetType:"ais.menuSelect"}),Me();oe({connector:Tm},{$$widgetType:"ais.numericMenu"}),re({name:"NumericMenu"}),Me();re({name:"Pagination"}),oe({connector:Wm},{$$widgetType:"ais.pagination"}),Me();re({name:"Panel"}),Op();re({name:"PoweredBy"});re({name:"QueryRuleContext"}),oe({connector:dc},{$$widgetType:"ais.queryRuleContext"});re({name:"QueryRuleCustomData"}),oe({connector:dc},{$$widgetType:"ais.queryRuleCustomData"});re({name:"RangeInput"}),oe({connector:zm},{$$widgetType:"ais.rangeInput"}),Me();re({name:"RatingMenu"}),oe({connector:Pg},{$$widgetType:"ais.ratingMenu"}),Me();U("symbol",{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"},[U("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"})],-1),U("symbol",{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"},[U("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);U("use",{"xlink:href":"#ais-RatingMenu-starSymbol"},null,-1);U("use",{"xlink:href":"#ais-RatingMenu-starEmptySymbol"},null,-1);
67const Pa={name:"SearchInput",mixins:[re({name:"SearchBox"})],props:{placeholder:{type:String,default:"Search hereâ¦"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},ignoreCompositionEvents:{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},onInput:function(e){this.ignoreCompositionEvents&&e.isComposing||(this.$emit("input",e.target.value),this.$emit("update:modelValue",e.target.value))},onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("reset")}}};var uy=["placeholder","autofocus","value"],cy=["title","hidden"],ly=[U("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"},null,-1)],fy=["title","hidden"],dy=[U("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"},null,-1)],hy=["hidden"],my=["aria-hidden"],gy=[vu('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".5" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"></animateTransform></path></g></g>',1)];function py(e,t,r,n,i,a){return X(),te("form",{action:"",role:"search",novalidate:"",class:ae(e.suit("form")),onSubmit:t[4]||(t[4]=jn(function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];return a.onFormSubmit&&a.onFormSubmit.apply(a,s)},["prevent"])),onReset:t[5]||(t[5]=jn(function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];return a.onFormReset&&a.onFormReset.apply(a,s)},["prevent"]))},[U("input",{type:"search",autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false",maxlength:"512","aria-label":"Search",placeholder:r.placeholder,autofocus:r.autofocus,class:ae(e.suit("input")),value:r.value||r.modelValue,onFocus:t[0]||(t[0]=function(s){return e.$emit("focus",s)}),onBlur:t[1]||(t[1]=function(s){return e.$emit("blur",s)}),onInput:t[2]||(t[2]=function(s){return a.onInput(s)}),onCompositionend:t[3]||(t[3]=function(s){return a.onInput(s)}),ref:"input"},null,42,uy),U("button",{type:"submit",title:r.submitTitle,class:ae(e.suit("submit")),hidden:r.showLoadingIndicator&&r.shouldShowLoadingIndicator},[pe(e.$slots,"submit-icon",{},function(){return[(X(),te("svg",{"aria-hidden":"true",width:"10",height:"10",viewBox:"0 0 40 40",class:ae(e.suit("submitIcon"))},ly,2))]})],10,cy),U("button",{type:"reset",title:r.resetTitle,class:ae(e.suit("reset")),hidden:!r.value&&!r.modelValue||r.showLoadingIndicator&&r.shouldShowLoadingIndicator},[pe(e.$slots,"reset-icon",{},function(){return[(X(),te("svg",{"aria-hidden":"true",height:"10",viewBox:"0 0 20 20",class:ae(e.suit("resetIcon")),width:"10"},dy,2))]})],10,fy),r.showLoadingIndicator?(X(),te("span",{key:0,hidden:!r.shouldShowLoadingIndicator,class:ae(e.suit("loadingIndicator"))},[pe(e.$slots,"loading-indicator",{},function(){return[(X(),te("svg",{"aria-hidden":!r.shouldShowLoadingIndicator,"aria-label":"Results are loading",width:"16",height:"16",stroke:"#444",viewBox:"0 0 38 38",class:ae(e.suit("loadingIcon"))},gy,10,my))]})],10,hy)):me("",!0)],34)}Pa.render=py;var vy=function(){};const ia={name:"AisRefinementList",components:{SearchInput:Pa,AisHighlight:or}
67,mixins:[re({name:"RefinementList"}),oe({connector:eg},{$$widgetType:"ais.refinementList"}),Me()],props:{attribute:{type:String,required:!0},searchable:{type:Boolean,default:void 0},searchablePlaceholder:{type:String,required:!1,default:"Search hereâ¦"},operator:{default:"or",validator:function(e){return e==="and"||e==="or"},required:!1},limit:{type:Number,required:!1,default:void 0},showMoreLimit:{type:Number,required:!1,default:void 0},showMore:{type:Boolean,required:!1,default:!1},sortBy:{type:[Array,Function],required:!1,default:void 0},transformItems:{type:Function,required:!1,default:void 0}},data:function(){return{searchForFacetValuesQuery:""}},computed:{searchForFacetValues:{get:function(){return this.searchForFacetValuesQuery},set:function(e){this.state.searchForItems(e),this.searchForFacetValuesQuery=e}},toggleShowMore:function(){return this.state.toggleShowMore||vy},items:function(){return this.state.items.map(function(e){return Object.assign({},e,{_highlightResult:{item:{value:e.highlighted}}})})},widgetParams:function(){return{attribute:this.attribute,operator:this.operator,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,escapeFacetValues:!0,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e),this.searchForFacetValuesQuery=""}}};var yy=["value","checked","onChange"],by=["disabled"];function Sy(e,t,r,n,i,a){var s=On("search-input"),c=On("ais-highlight");return e.state?(X(),te("div",{key:0,class:ae([e.suit(),a.items.length===0&&e.suit("","noRefinement")])},[pe(e.$slots,"default",{items:a.items,refine:a.refine,searchForItems:e.state.searchForItems,searchForItemsQuery:i.searchForFacetValuesQuery,toggleShowMore:a.toggleShowMore,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,createURL:e.state.createURL,isFromSearch:e.state.isFromSearch,canRefine:e.state.canRefine,sendEvent:e.state.sendEvent},function(){var m;return[r.searchable?(X(),te("div",{key:0,class:ae(e.suit("searchBox"))},[Le(s,{modelValue:a.searchForFacetValues,"onUpdate:modelValue":t[0]||(t[0]=function(f){return a.searchForFacetValues=f}),"show-loading-indicator":!0,placeholder:r.searchablePlaceholder,"class-names":e.classNames},null,8,["modelValue","placeholder","class-names"])],2)):me("",!0),e.state.isFromSearch&&a.items.length===0?pe(e.$slots,"noResults",{key:1,query:a.searchForFacetValues},function(){return[U("div",{class:ae(e.suit("noResults"))},"No results.",2)]}):me("",!0),a.items.length>0?(X(),te("ul",{key:2,class:ae(e.suit("list"))},[(X(!0),te(bt,null,_n(a.items,function(f){return X(),te("li",{class:ae([e.suit("item"),f.isRefined&&e.suit("item","selected")]),key:f.value},[pe(e.$slots,"item",{item:f,refine:a.refine,createURL:e.state.createURL},function(){return[U("label",{class:ae(e.suit("label"))},[U("input",{class:ae(e.suit("checkbox")),type:"checkbox",value:f.value,checked:f.isRefined,onChange:function(v){return a.refine(f.value)}},null,42,yy),r.searchable?(X(),te("span",{key:0,class:ae(e.suit("labelText"))},[Le(c,{attribute:"item",hit:f},null,8,["hit"])],2)):(X(),te("span",{key:1,class:ae(e.suit("labelText"))},le(f.label),3)),U("span",{class:ae(e.suit("count"))},le(f.count),3)],2)]})],2)}),128))],2)):me("",!0),r.showMore?(X(),te("button",{key:3,class:ae([e.suit("showMore"),(m={},m[e.suit("showMore","disabled")]=!e.state.canToggleShowMore,m)]),onClick:t[1]||(t[1]=function(){for(var f=[],v=arguments.length;v--;)f[v]=arguments[v];return a.toggleShowMore&&a.toggleShowMore.apply(a,f)}),disabled:!e.state.canToggleShowMore},[pe(e.$slots,"showMoreLabel",{isShowingMore:e.state.isShowingMore},function(){return[ur(" Show "+le(e.state.isShowingMore?"less":"more"),1)]})],10,by)):me("",!0)]})],2)):me("",!0)}ia.render=Sy;var gn;const Lc=((gn={name:"AisStateResults",mixins:[oe({connector:!0}),re({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))},gn.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)}}},gn.computed={stateResults:function(){var e=this.state,t=e.results,r=e.state,n=e.status,i=e.error;return cr({},t,{results:t,state:r,status:n,error:i})}},gn);var Ry=U("p",null," Use this component to have a different layout based on a certain state. ",-1),Py=U("p",null,"Fill in the slot, and get access to the following things:",-1);function wy(e,t,r,n,i,a){return e.state&&e.state.state&&e.state.results?(X(),te("div",{key:0,class:ae(e.suit())},[pe(e.$slots,"default",nl(il(a.stateResults)),function(){return[Ry,Py,U("pre",null,"results: "+le(Object.keys(e.state.results)),1),U("pre",null,"state: "+le(Object.keys(e.state.state)),1
67),U("pre",null,"status: "+le(e.state.status),1),U("pre",null,"error: "+le(e.state.error),1)]})],2)):me("",!0)}Lc.render=wy;const Hc={name:"AisSearchBox",mixins:[oe({connector:og},{$$widgetType:"ais.searchBox"}),re({name:"SearchBox"})],components:{SearchInput:Pa},props:{placeholder:{type:String,default:""},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!0},ignoreCompositionEvents:{type:Boolean,default:!1},submitTitle:{type:String,default:"Submit the search query"},resetTitle:{type:String,default:"Clear the search query"},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},queryHook:{type:Function,default:void 0}},data:function(){return{localValue:"",isVue2:Ll,isVue3:Hl}},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 Oy(e,t,r,n,i,a){var s=On("search-input");return e.state?(X(),te("div",{key:0,class:ae(e.suit())},[pe(e.$slots,"default",{currentRefinement:a.currentRefinement,isSearchStalled:e.state.isSearchStalled,refine:e.state.refine},function(){return[Le(s,{onFocus:t[0]||(t[0]=function(c){return e.$emit("focus",c)}),onBlur:t[1]||(t[1]=function(c){return e.$emit("blur",c)}),onReset:t[2]||(t[2]=function(c){return e.$emit("reset")}),placeholder:r.placeholder,autofocus:r.autofocus,"show-loading-indicator":r.showLoadingIndicator,"should-show-loading-indicator":e.state.isSearchStalled,"ignore-composition-events":r.ignoreCompositionEvents,"submit-title":r.submitTitle,"reset-title":r.resetTitle,"class-names":e.classNames,modelValue:a.currentRefinement,"onUpdate:modelValue":t[3]||(t[3]=function(c){return a.currentRefinement=c}),ref:"searchInput"},al({default:He(function(){return[i.isVue2?pe(e.$slots,"loading-indicator",{key:0,slot:"loading-indicator"}):me("",!0),i.isVue2?pe(e.$slots,"submit-icon",{key:1,slot:"submit-icon"}):me("",!0),i.isVue2?pe(e.$slots,"reset-icon",{key:2,slot:"reset-icon"}):me("",!0)]}),_:2},[i.isVue3?{name:"loading-indicator",fn:He(function(){return[pe(e.$slots,"loading-indicator")]}),key:"0"}:void 0,i.isVue3?{name:"submit-icon",fn:He(function(){return[pe(e.$slots,"submit-icon")]}),key:"1"}:void 0,i.isVue3?{name:"reset-icon",fn:He(function(){return[pe(e.$slots,"reset-icon")]}),key:"2"}:void 0]),1032,["placeholder","autofocus","show-loading-indicator","should-show-loading-indicator","ignore-composition-events","submit-title","reset-title","class-names","modelValue"])]})],2)):me("",!0)}Hc.render=Oy;re({name:"Snippet"});re({name:"SortBy"}),oe({connector:fg},{$$widgetType:"ais.sortBy"}),Me();oe({connector:$g},{$$widgetType:"ais.stats"}),re({name:"Stats"});re({name:"ToggleRefinement"}),oe({connector:Lg},{$$widgetType:"ais.toggleRefinement"}),Me();oe({connector:vp},{$$widgetType:"ais.voiceSearch"}
67),re({name:"VoiceSearch"});vu('<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',5);U("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"},null,-1);U("line",{x1:"12",y1:"19",x2:"12",y2:"23"},null,-1);U("line",{x1:"8",y1:"23",x2:"16",y2:"23"},null,-1);re({name:"RelevantSort"}),oe({connector:Rp},{$$widgetType:"ais.relevantSort"});const _y={name:"AisDynamicWidgets",mixins:[oe({connector:Bd},{$$widgetType:"ais.dynamicWidgets"}),re({name:"DynamicWidgets"})],props:{transformItems:{type:Function,default:void 0},facets:{type:Array,default:void 0},maxValuesPerFacet:{type:Number,default:void 0}},render:Fn(function(e){var t=this,r=new Map;if((ua(this)||[]).forEach(function(i){var a=function s(c){var m,f=c.props;if(f){if(f.attribute)return f.attribute;if(Array.isArray(f.attributes))return f.attributes[0]}if(m=c.children&&c.children.default&&c.children.default(),Array.isArray(m))return m.reduce(function(v,b){return v||s(b)},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",cr({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({},_y,{name:"AisExperimentalDynamicWidgets",mounted:function(){Dt("Use AisDynamicWidgets instead of AisExperimentalDynamicWidgets.")}});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)}var jy=["configure"];function Ey(e,t,r){return t=$y(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $y(e){var t=Ty(e,"string");return Gr(t)=="symbol"?t:String(t)}function Ty(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xy(e,t){if(e==null)return{};var r=Fy(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 Fy(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 mu(e){e.configure;var t=xy(e,jy);return t}function Iy(e){return{$$type:"ais.singleIndex",stateToRoute:function(r){return mu(r[e]||{})},routeToState:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ey({},e,mu(r))}}}const Ay=()=>Kc().$algolia,Dy={class:"bg-primary-800 py-7"},Cy={class:"container mx-auto max-w-screen-xl p-4 text-white"},Ny={class:"text-2xl mb-2"},Ly={class:"relative"},Hy=["placeholder","model-value","onInput"],My=["refine"],Wy=["hidden"],Uy={key:0,class:"mt-2 text-sm text-primary-100"},ky={class:"flex-1"},qy={class:"container mx-auto max-w-screen-xl md:flex block"},Qy={class:"py-10 max-w-56 px-4 text-wrap flex-wrap"},Vy={class:"text-xl font-semibold text-gray-500 mb-2"},By=["placeholder","onInput"],Ky={key:0,class:"mb-2 flex items-center justify-between text-xs text-gray-500"},zy=["href","onClick"],Gy={class:"bg-gray-400 rounded-lg text-xs text-white px-2"},Yy=["onClick"],Jy={class:"text-xl font-semibold text-gray-500 mb-2 mt-10"},Xy=["placeholder","onInput"],Zy={key:0,class:"mb-2 flex items-center justify-between text-xs text-gray-500"},eb=["href","onClick"],tb={class:"bg-gray-400 rounded-lg text-xs text-white px-2"},rb=["onClick"],nb={class:"flex-1 my-10 pe-4 ps-8 md:me-7 me-0 border-s border-gray-100"},ib={class:""},ab={class:"border-b border-gray-300 pb-7 mb-7"},sb={class:"mt-0 text-gray-500 text-sm"},ob={class:"mt-3 whitespace-pre-line"},ub={key:0,class:"text-sm"},cb={class:"text-center"},lb=["disabled","onClick"],fb={class:"text-center text-gray-500"},db={key:1},gu="articles",gb=oa({__name:"index",setup(e){var P;
67const{journalId:t,title:r,description:n,keywords:i}=zc(Gc()),{locale:a,t:s}=aa();ft().set({title:s("searchResults"),description:n.value,keywords:((P=i.value)==null?void 0:P.split(", "))||[]}),Yc({title:`${ft().title} - ${r.value}`,meta:[{name:"description",content:ft().description},{name:"keywords",content:`${ft().keywords}`}]}),Jc({title:`${ft().title} - ${r.value}`,ogTitle:`${ft().title} - ${r.value}`,description:ft().description??n.value,keywords:`${ft().keywords}`});const c=Ay(),m=Xc();Zc();const f=ze(()=>a.value);ze(()=>`abstract.${a.value}`);const v=ze(()=>`meta.${f.value}.keywords`),b=Wn(m.query.query||""),g=Wn(()=>{}),l=w=>{g.value=w},o=Wn(null);sl(()=>m.query.query,w=>{b.value=w,g.value&&g.value(w)});const d=Iy(gu),h={router:xc({cleanUrlOnDispose:!0}),stateMapping:d},u=w=>w.articleId||w.objectID,p=w=>{var O,j,$,T,F,x;const _=a.value,S=_==="tr"?"en":"tr";return w.pdfUrl||((j=(O=w.meta)==null?void 0:O[_])==null?void 0:j.pdfUrl)||((T=($=w.meta)==null?void 0:$[S])==null?void 0:T.pdfUrl)||((x=(F=w.meta)==null?void 0:F.en)==null?void 0:x.pdfUrl)},y=w=>{const _=u(w),S=p(w);return`/pdf/${t.value}/articles/${_}/${S}`},R=w=>{var S,O,j,$;const _=u(w);if(w.isOnlyPdf&&p(w))return y(w);{const F=(((O=(S=w.meta)==null?void 0:S[a.value])==null?void 0:O.title)||(($=(j=w.meta)==null?void 0:j.en)==null?void 0:$.title)||"").toLowerCase().replace(/ /g,"-").replace(/[^a-zA-Z0-9-]/g,"");return`${a.value=="tr"?"/tr/makaleler/":"/articles/"}${F}/doi/${_}`}};return(w,_)=>{const S=Il,O=el,j=Dl,$=tl;return X(),pn(G(ey),{"index-name":gu,"search-client":G(c),routing:h,future:{preserveSharedStateOnUnmount:!1},analytics:!0,analyticsTags:[G(t)]},{default:He(()=>[Le(G(_p),{hitsPerPage:5,attributesToSnippet:["abstract:50"],snippetEllipsisText:"...",filters:`journalId:${G(t)}`,analytics:!0,analyticsTags:[G(t)]},null,8,["filters","analyticsTags"]),U("div",Dy,[U("div",Cy,[U("h1",Ny,le(G(s)("search")),1),Le(G(Hc),{autofocus:"",ref:"sb"},{default:He(({currentRefinement:T,isSearchStalled:F,refine:x})=>[U("div",Ly,[_[1]||(_[1]=U("div",{class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},[U("svg",{class:"h-5 w-5 text-gray-700",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[U("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-4.35-4.35m0 0A7.5 7.5 0 104.5 4.5a7.5 7.5 0 0012.15 12.15z"})])],-1)),ol(U("input",{type:"search",placeholder:`${G(s)("search")}...`,"onUpdate:modelValue":_[0]||(_[0]=N=>ul(b)?b.value=N:null),"model-value":T,autofocus:"",ref_key:"searchInput",ref:o,onInput:N=>{var H;return x((H=N.target)==null?void 0:H.value)},class:"bg-gray-100 h-12 pl-10 pe-5 text-gray-700 border border-primary-400 rounded-xl text-sm focus:outline-none bg-opacity-75 focus:bg-opacity-100 focus:border-primary-300 w-[70%] focus:w-full transition-all duration-200 ease-in-out"},null,40,Hy),[[cl,G(b)]]),U("input",{type:"hidden",refine:l(x)},null,8,My)]),U("span",{hidden:!F},le(G(s)("loading")),9,Wy)]),_:1},512),G(b)?(X(),te("p",Uy,le(G(s)("resultsFor",{query:G(b)})),1)):me("",!0)])]),U("div",ky,[U("div",qy,[U("div",Qy,[U("div",Vy,le(G(s)("authors")),1),Le(G(ia),{attribute:"authors.full_name","show-more":!0},{default:He(({items:T,isShowingMore:F,isFromSearch:x,canToggleShowMore:N,refine:H,createURL:C,toggleShowMore:A,searchForItems:I,sendEvent:M})=>[U("input",{type:"search",placeholder:`${G(s)("searchAuthor")}...`,onInput:D=>I(D.target.value),class:"w-full mb-3 border rounded px-2 py-1 text-sm"},null,40,By),U("ul",null,[x&&!T.length?(X(),te("li",Ky,le(G(s)("noResults")),1)):me("",!0),(X(!0),te(bt,null,_n(T,D=>(X(),te("li",{key:D.value,class:"mb-2 flex items-center justify-between"},[U("a",{href:C(D),style:Ua({fontWeight:D.isRefined?"bold":""}),onClick:jn(k=>H(D.value),["prevent"]),class:"text-sm text-gray-700"},[Le(G(or),{attribute:"item",hit:D},null,8,["hit"])],12,zy),U("div",Gy,le(D.count.toLocaleString()),1)]))),128)),N?(X(),te("li",{key:1,class:"text-sm text-gray-500 cursor-pointer",onClick:A},le(F?G(s)("showLess"):G(s)("showMore")),9,Yy)):me("",!0)])]),_:1}),U("div",Jy,le(G(s)("Keywords")),1),Le(G(ia),{attribute:G(v),"show-more":!0},{default:He(({items:T,isFromSearch:F,refine:x,createURL:N,isShowingMore:H,canToggleShowMore:C,toggleShowMore:A,searchForItems:I,sendEvent:M})=>[U("input",{type:"search",placeholder:`${G(s)("searchKeyword")}...`,onInput:D=>I(D.target.value),class:"w-full mb-3 border rounded px-2 py-1 text-sm"},null,40,Xy),U("ul",null,[F&&!T.length?(X(),te("li",Zy,le(G(s)("noResults")),1)):me("",!0),(X(!0),te(bt,null,_n(T,D=>(X(),te("li",{key:D.value,class:"mb-2 flex items-center justify-between"},[U("a",{href:N(D),style:Ua({fontWeight:D.isRefined?"bold":""}),onClick:jn(k=>x(D.value),["prevent"]),class:"text-sm text-gray-700"},[Le(G(or),{attribute:"item",hit:D}
67,null,8,["hit"])],12,eb),U("div",tb,le(D.count.toLocaleString()),1)]))),128)),C?(X(),te("li",{key:1,class:"text-sm text-gray-500 cursor-pointer",onClick:A},le(H?G(s)("showLess"):G(s)("showMore")),9,rb)):me("",!0)])]),_:1},8,["attribute"])]),U("div",nb,[U("div",ib,[Le(G(Lc),null,{default:He(({results:{hits:T,query:F}})=>[T.length>0?(X(),pn(G(Nc),{key:0},{item:He(({item:x,index:N,insights:H})=>[U("div",ab,[Le(O,{to:R(x),target:x.isOnlyPdf&&p(x)?"_blank":"",class:"font-semibold text-lg text-sky-700 hover:text-sky-600"},{default:He(()=>[Le(S,{item:x,field:"title"},null,8,["item"])]),_:2},1032,["to","target"]),U("div",sb,[Le(G(or),{attribute:"doi",hit:x},null,8,["hit"])]),U("div",ob,[Le(j,{item:x,field:"abstract"},null,8,["item"])]),x.isOnlyPdf?(X(),te("div",ub,[ur(le(G(s)("articleDetailIsOnlyPdf"))+" ",1),p(x)?(X(),pn($,{key:0,to:y(x),class:"mt-3 text-sm border border-gray-200 text-sky-600 rounded-md px-2 py-1 hover:bg-primary-600 hover:text-white transition-colors",target:"_blank"},{default:He(()=>[ur(le(G(s)("showPDF")),1)]),_:2}
67,1032,["to"])):me("",!0)])):me("",!0)])]),loadMore:He(({page:x,isLastPage:N,refineNext:H})=>[U("div",cb,[U("button",{disabled:N,onClick:H,class:ae(["bg-gray-200 text-gray-700 px-4 py-2 rounded-md",N?"hidden":""])},le(G(s)("loadMore")),11,lb)])]),noResults:He(()=>[U("div",fb,le(G(s)("noResults")),1)]),_:1})):(X(),te("div",db,le(G(s)("noResults")),1))]),_:1})])])])])]),_:1},8,["search-client","analyticsTags"])}}});export{gb 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.