{{/count}}{{^count}}{{/count}}\n {{#stars}}{{/stars}}\n & Up\n {{#count}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}{{/count}}\n{{#count}}{{/count}}{{^count}}
{{/count}}'},Xs=ve({name:"rating-menu"}),Zs=Le("RatingMenu"),eo=mt("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"}),to=mt("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"}),no={reset:'\n\n ',submit:'\n\n ',loadingIndicator:'\n\n '},ro={item:'',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n ",searchableNoResults:"No results"},io=ve({name:"refinement-list"}),ao=Le("RefinementList"),so=Le("SearchBox"),oo={text:"",button:function(e){return e.isRelevantSorted?"See all results":"See relevant results"}},co=ve({name:"relevant-sort"}),uo=Le("RelevantSort"),lo=ve({name:"search-box"}),fo=Le("SearchBox"),ho=ve({name:"sort-by"}),po=Le("SortBy"),mo=ve({name:"stats"}),go=Le("Stats"),vo={text:"\n {{#areHitsSorted}}\n {{#hasNoSortedResults}}No relevant results{{/hasNoSortedResults}}\n {{#hasOneSortedResults}}1 relevant result{{/hasOneSortedResults}}\n {{#hasManySortedResults}}{{#helpers.formatNumber}}{{nbSortedHits}}{{/helpers.formatNumber}} relevant results{{/hasManySortedResults}}\n sorted out of {{#helpers.formatNumber}}{{nbHits}}{{/helpers.formatNumber}}\n {{/areHitsSorted}}\n {{^areHitsSorted}}\n {{#hasNoResults}}No results{{/hasNoResults}}\n {{#hasOneResult}}1 result{{/hasOneResult}}\n {{#hasManyResults}}{{#helpers.formatNumber}}{{nbHits}}{{/helpers.formatNumber}} results{{/hasManyResults}}\n {{/areHitsSorted}}\n found in {{processingTimeMS}}ms"},yo={labelText:"{{name}}"},bo=ve({name:"toggle-refinement"}),Ro=Le("ToggleRefinement"),So={buttonText:function(e){var t=e.status,n=e.errorCode,r=e.isListening;return'")},status:"{{transcript}}
"},_o=ve({name:"voice-search"}),wo=Le("VoiceSearch"),Po=ee(On),Oo=Object.freeze({__proto__:null,dynamicWidgets:On,EXPERIMENTAL_dynamicWidgets:Po,analytics:function(e){function t(e){if(null!==e){var t=[],n=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n].join("+");t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(n),"_").concat(encodeURIComponent(r)))}return t.join("&")}(o(o(o({},e.state.disjunctiveFacetsRefinements),e.state.facetsRefinements),e.state.hierarchicalFacetsRefinements)),r=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r.hasOwnProperty(">=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?t.push("".concat(n,"=").concat(n,"_").concat(r[">="])):t.push("".concat(n,"=").concat(n,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))t.push("".concat(n,"=").concat(n,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))t.push("".concat(n,"=").concat(n,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i=[];for(var a in r["="])r["="].hasOwnProperty(a)&&i.push(r["="][a]);t.push("".concat(n,"=").concat(n,"_").concat(i.join("-")))}}return t.join("&")}(e.state.numericRefinements);""!==n&&t.push(n),""!==r&&t.push(r);var i=t.join("&"),s="Query: ".concat(e.state.query||"",", ").concat(i);!0===p&&(s+=", Page: ".concat(e.state.page||0)),v!==s&&(a(i,e.state,e.results),v=s)}}function n(){t(g)}function r(){t(g)}var i=e||{},a=i.pushFunction,s=i.delay,c=void 0===s?3e3:s,u=i.triggerOnUIInteraction,l=void 0!==u&&u,f=i.pushInitialSearch,h=void 0===f||f,d=i.pushPagination,p=void 0!==d&&d;if(!a)throw new Error(ya("The `pushFunction` option is required."));var m,g=null,v="",y=!0;return!0===h&&(y=!1),{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===l&&(document.addEventListener("click",n),window.addEventListener("beforeunload",r))},render:function(e){var n=e.results,r=e.state;!0!==y?(g={results:n,state:r},m&&clearTimeout(m),m=window.setTimeout(function(){return t(g)},c)):y=!1},dispose:function(){!0===l&&(document.removeEventListener("click",n),window.removeEventListener("beforeunload",r))},getRenderState:function(e,t){return o(o({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}}},breadcrumb:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.transformItems,c=t.templates,u=void 0===c?{}:c,l=t.cssClasses,f=void 0===l?{}:l;if(!n)throw new Error(_a("The `container` option is required."));var h=B(n),d={root:ba(wa(),f.root),noRefinementRoot:ba(wa({modifierName:"noRefinement"}),f.noRefinementRoot),list:ba(wa({descendantName:"list"}),f.list),item:ba(wa({descendantName:"item"}),f.item),selectedItem:ba(wa({descendantName:"item",modifierName:"selected"}),f.selectedItem),separator:ba(wa({descendantName:"separator"}),f.separator),link:ba(wa({descendantName:"link"}),f.link)},p=function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,a){var s=e.canRefine,o=e.createURL,c=e.instantSearchInstance,u=e.items,l=e.refine;a?r.templateProps=U({defaultTemplates:Sa,templatesConfig:c.templatesConfig,templates:i}):At(mt(bn,{canRefine:s,cssClasses:n,createURL:o,items:u,refine:l,templateProps:r.templateProps}),t)}}({containerNode:h,cssClasses:d,renderState:{},templates:u});return o(o({},nn(p,function(){return At(null,h)})({attributes:r,separator:i,rootPath:a,transformItems:s})),{},{$$widgetType:"ais.breadcrumb"})},clearRefinements:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.includedAttributes,s=t.excludedAttributes,c=t.transformItems,u=t.cssClasses,l=void 0===u?{}:u;if(!n)throw new Error(Oa("The `container` option is required."));var f=B(n),h={root:ba(xa(),l.root),button:ba(xa({descendantName:"button"}),l.button),disabledButton:ba(xa({descendantName:"button",modifierName:"disabled"}),l.disabledButton)},d=function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,a){var s=e.refine,o=e.hasRefinements,c=e.instantSearchInstance;a?r.templateProps=U({defaultTemplates:Pa,templatesConfig:c.templatesConfig,templates:i}):At(mt(Rn,{refine:s,cssClasses:n,hasRefinements:o,templateProps:r.templateProps}),t)}}({containerNode:f,cssClasses:h,renderState:{},templates:i});return o(o({},rt(d,function(){return At(null,f)})({includedAttributes:a,excludedAttributes:s,transformItems:c})),{},{$$widgetType:"ais.clearRefinements"})},configure:function(e){return o(o({},un(Z)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t=e||{},n=t.container,r=t.includedAttributes,i=t.excludedAttributes,a=t.cssClasses,s=void 0===a?{}:a,c=t.transformItems;if(!n)throw new Error(ja("The `container` option is required."));var u=B(n),l={root:ba(Ia(),s.root),list:ba(Ia({descendantName:"list"}),s.list),item:ba(Ia({descendantName:"item"}),s.item),label:ba(Ia({descendantName:"label"}),s.label),category:ba(Ia({descendantName:"category"}),s.category),categoryLabel:ba(Ia({descendantName:"categoryLabel"}),s.categoryLabel),delete:ba(Ia({descendantName:"delete"}),s.delete)};return o(o({},it(_n,function(){return At(null,u)})({container:u,cssClasses:l,includedAttributes:r,excludedAttributes:i,transformItems:c})),{},{$$widgetType:"ais.currentRefinements"})},EXPERIMENTAL_answers:function(e){var t=e||{},n=t.container,r=t.attributesForPrediction,i=t.queryLanguages,a=t.nbHits,s=t.searchDebounceTime,c=t.renderDebounceTime,u=t.escapeHTML,l=t.extraParameters,f=t.templates,h=void 0===f?{}:f,d=t.cssClasses,p=void 0===d?{}:d;if(!n)throw new Error(Na("The `container` option is required."));var m=B(n),g={root:ba(Ea(),p.root),emptyRoot:ba(Ea({modifierName:"empty"}),p.emptyRoot),header:ba(Ea({descendantName:"header"}),p.header),loader:ba(Ea({descendantName:"loader"}),p.loader),list:ba(Ea({descendantName:"list"}),p.list),item:ba(Ea({descendantName:"item"}),p.item)},v=function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,a){var s=e.hits,o=e.isLoading,c=e.instantSearchInstance;a?r.templateProps=U({defaultTemplates:Fa,templatesConfig:c.templatesConfig,templates:i}):At(mt(wn,{cssClasses:n,hits:s,isLoading:o,templateProps:r.templateProps}),t)}}({containerNode:m,cssClasses:g,templates:h,renderState:{}});return o(o({},gn(v,function(){return At(null,m)})({attributesForPrediction:r,queryLanguages:i,nbHits:a,searchDebounceTime:s,renderDebounceTime:c,escapeHTML:u,extraParameters:l})),{},{$$widgetType:"ais.answers"})},EXPERIMENTAL_configureRelatedItems:function(e){return o(o({},fn(Z)(e)),{},{$$widgetType:"ais.configureRelatedItems"})},geoSearch:function(e){var n=e||{},a=n.initialZoom,s=void 0===a?1:a,u=n.initialPosition,l=void 0===u?{lat:0,lng:0}:u,p=n.templates,m=void 0===p?{}:p,g=n.cssClasses,v=void 0===g?{}:g,y=n.builtInMarker,b=void 0===y?{}:y,R=n.customHTMLMarker,S=n.enableRefine,_=void 0===S||S,w=n.enableClearMapRefinement,P=void 0===w||w,O=n.enableRefineControl,x=void 0===O||O,j=n.container,I=n.googleReference,F=f(n,["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"]);if(!j)throw new Error(Aa("The `container` option is required."));if(!I)throw new Error(Aa("The `googleReference` option is required."));var N=B(j),E={root:ba(Da(),v.root),tree:Da({descendantName:"tree"}),map:ba(Da({descendantName:"map"}),v.map),control:ba(Da({descendantName:"control"}),v.control),label:ba(Da({descendantName:"label"}),v.label),selectedLabel:ba(Da({descendantName:"label",modifierName:"selected"}),v.selectedLabel),input:ba(Da({descendantName:"input"}),v.input),redo:ba(Da({descendantName:"redo"}),v.redo),disabledRedo:ba(Da({descendantName:"redo",modifierName:"disabled"}),v.disabledRedo),reset:ba(Da({descendantName:"reset"}),v.reset)},C=o(o({},ka),m),T=o(o({},{createOptions:function(){return{}},events:{}}),b),k=(Boolean(R)||Boolean(m.HTMLMarker))&&o(o({},{createOptions:function(){return{}},events:{}}),R),A=function(e){return function(){function n(r){var s,o=r.__id,c=r.position,u=r.map,l=r.template,f=r.className,d=r.anchor,p=void 0===d?{x:0,y:0}:d;return t(this,n),i(h(s=a.call(this)),"__id",void 0),i(h(s),"anchor",void 0),i(h(s),"offset",void 0),i(h(s),"listeners",void 0),i(h(s),"latLng",void 0),i(h(s),"element",void 0),s.__id=o,s.anchor=p,s.listeners={},s.latLng=new e.maps.LatLng(c),s.element=document.createElement("div"),s.element.className=f,s.element.style.position="absolute",s.element.innerHTML=l,s.setMap(u),s}c(n,e.maps.OverlayView);var a=d(n);return r(n,[{key:"onAdd",value:function(){this.getPanes().overlayMouseTarget.appendChild(this.element);var e=this.element.getBoundingClientRect();this.offset={x:this.anchor.x+e.width/2,y:this.anchor.y+e.height},this.element.style.width="".concat(e.width,"px")}},{key:"draw",value:function(){var e=this.getProjection().fromLatLngToDivPixel(this.latLng);this.element.style.left="".concat(Math.round(e.x-this.offset.x),"px"),this.element.style.top="".concat(Math.round(e.y-this.offset.y),"px"),this.element.style.zIndex=String(parseInt(this.element.style.top,10))}},{key:"onRemove",value:function(){var e=this;this.element&&(this.element.parentNode.removeChild(this.element),Object.keys(this.listeners).forEach(function(t){e.element.removeEventListener(t,e.listeners[t])}),delete this.element,delete this.listeners)}},{key:"addListener",value:function(e,t){this.listeners[e]=t;var n=this.element;return n.addEventListener(e,t),{remove:function(){return n.removeEventListener(e,t)}}}},{key:"getPosition",value:function(){return this.latLng}}]),n}()}(I),D=k?function(e){var t=e.item,n=f(e,["item"]);return new A(o(o(o({},k.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc,className:ba(Da({descendantName:"marker"})),template:$({templateKey:"HTMLMarker",templates:C,data:t})}))}:function(e){var t=e.item,n=f(e,["item"]);return new I.maps.Marker(o(o(o({},T.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc}))},L=k||T;return o(o({},sn(En,function(){return At(null,N)})(o(o({},F),{},{renderState:{},container:N,googleReference:I,initialZoom:s,initialPosition:l,templates:C,cssClasses:E,createMarker:D,markerOptions:L,enableRefine:_,enableClearMapRefinement:P,enableRefineControl:x}))),{},{$$widgetType:"ais.geoSearch"})},hierarchicalMenu:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.showParentLevel,c=t.limit,u=t.showMore,l=void 0!==u&&u,f=t.showMoreLimit,h=t.sortBy,d=t.transformItems,p=t.templates,m=void 0===p?{}:p,g=t.cssClasses,v=void 0===g?{}:g;if(!n)throw new Error(Ua("The `container` option is required."));var y=B(n),b=function(e){var t=e.cssClasses,n=e.containerNode,r=e.showMore,i=e.templates,a=e.renderState;return function(e,s){var o=e.createURL,c=e.items,u=e.refine,l=e.instantSearchInstance,f=e.isShowingMore,h=e.toggleShowMore,d=e.canToggleShowMore;s?a.templateProps=U({defaultTemplates:Qa,templatesConfig:l.templatesConfig,templates:i}):At(mt(Ha,{createURL:o,cssClasses:t,facetValues:c,templateProps:a.templateProps,toggleRefinement:u,showMore:r,toggleShowMore:h,isShowingMore:f,canToggleShowMore:d}),n)}}({cssClasses:{root:ba(Va(),v.root),noRefinementRoot:ba(Va({modifierName:"noRefinement"}),v.noRefinementRoot),list:ba(Va({descendantName:"list"}),v.list),childList:ba(Va({descendantName:"list",modifierName:"child"}),v.childList),item:ba(Va({descendantName:"item"}),v.item),selectedItem:ba(Va({descendantName:"item",modifierName:"selected"}),v.selectedItem),parentItem:ba(Va({descendantName:"item",modifierName:"parent"}),v.parentItem),link:ba(Va({descendantName:"link"}),v.link),label:ba(Va({descendantName:"label"}),v.label),count:ba(Va({descendantName:"count"}),v.count),showMore:ba(Va({descendantName:"showMore"}),v.showMore),disabledShowMore:ba(Va({descendantName:"showMore",modifierName:"disabled"}),v.disabledShowMore)},containerNode:y,templates:m,showMore:l,renderState:{}});return o(o({},ut(b,function(){return At(null,y)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:c,showMore:l,showMoreLimit:f,sortBy:h,transformItems:d})),{},{$$widgetType:"ais.hierarchicalMenu"})},hits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,c=t.cssClasses,u=void 0===c?{}:c;if(!n)throw new Error(za("The `container` option is required."));var l=B(n),f={root:ba(Ka(),u.root),emptyRoot:ba(Ka({modifierName:"empty"}),u.emptyRoot),list:ba(Ka({descendantName:"list"}),u.list),item:ba(Ka({descendantName:"item"}),u.item)},h=function(e){var t=e.renderState,n=e.cssClasses,r=e.containerNode,i=e.templates;return function(e,a){var s=e.hits,o=e.results,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent;a?t.templateProps=U({defaultTemplates:$a,templatesConfig:c.templatesConfig,templates:i}):At(mt(Ja,{cssClasses:n,hits:s,results:o,templateProps:t.templateProps,insights:u,sendEvent:function(e){c.sendEventToInsights(e)},bindEvent:l}),r)}}({containerNode:l,cssClasses:f,renderState:{},templates:s});return o(o({},ht(lt)(h,function(){return At(null,l)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"})},hitsPerPage:function(e){var t=e||{},n=t.container,r=t.items,i=t.cssClasses,a=void 0===i?{}:i,s=t.transformItems;if(!n)throw new Error(Ga("The `container` option is required."));var c=B(n),u={root:ba(Ya(),a.root),select:ba(Ya({descendantName:"select"}),a.select),option:ba(Ya({descendantName:"option"}),a.option)},l=function(e){var t=e.containerNode,n=e.cssClasses;return function(e,r){var i=e.items,a=e.refine;if(!r){var s=(z(i,function(e){return e.isRefined})||{}).value;At(mt("div",{className:n.root},mt(kn,{cssClasses:n,currentValue:s,options:i,setValue:a})),t)}}}({containerNode:c,cssClasses:u});return o(o({},Mt(l,function(){return At(null,c)})({items:r,transformItems:s})),{},{$$widgetType:"ais.hitsPerPage"})},index:Ae,infiniteHits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,c=t.cssClasses,u=void 0===c?{}:c,l=t.showPrevious,f=t.cache;if(!n)throw new Error(Za("The `container` option is required."));var h=B(n),d={root:ba(es(),u.root),emptyRoot:ba(es({modifierName:"empty"}),u.emptyRoot),item:ba(es({descendantName:"item"}),u.item),list:ba(es({descendantName:"list"}),u.list),loadPrevious:ba(es({descendantName:"loadPrevious"}),u.loadPrevious),disabledLoadPrevious:ba(es({descendantName:"loadPrevious",modifierName:"disabled"}),u.disabledLoadPrevious),loadMore:ba(es({descendantName:"loadMore"}),u.loadMore),disabledLoadMore:ba(es({descendantName:"loadMore",modifierName:"disabled"}),u.disabledLoadMore)},p=function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates,a=e.showPrevious;return function(e,s){var o=e.hits,c=e.results,u=e.showMore,l=e.showPrevious,f=e.isFirstPage,h=e.isLastPage,d=e.instantSearchInstance,p=e.insights,m=e.bindEvent;s?r.templateProps=U({defaultTemplates:Xa,templatesConfig:d.templatesConfig,templates:i}):At(mt(ts,{cssClasses:n,hits:o,results:c,hasShowPrevious:a,showPrevious:l,showMore:u,templateProps:r.templateProps,isFirstPage:f,isLastPage:h,insights:p,sendEvent:function(e){d.sendEventToInsights(e)},bindEvent:m}),t)}}({containerNode:h,cssClasses:d,templates:s,showPrevious:l,renderState:{}});return o(o({},ht(qt)(p,function(){return At(null,h)})({escapeHTML:r,transformItems:i,showPrevious:l,cache:f})),{},{$$widgetType:"ais.infiniteHits"})},menu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=t.limit,s=t.showMore,c=t.showMoreLimit,u=t.cssClasses,l=void 0===u?{}:u,f=t.templates,h=void 0===f?{}:f,d=t.transformItems;if(!n)throw new Error(rs("The `container` option is required."));var p=B(n),m={root:ba(is(),l.root),noRefinementRoot:ba(is({modifierName:"noRefinement"}),l.noRefinementRoot),list:ba(is({descendantName:"list"}),l.list),item:ba(is({descendantName:"item"}),l.item),selectedItem:ba(is({descendantName:"item",modifierName:"selected"}),l.selectedItem),link:ba(is({descendantName:"link"}),l.link),label:ba(is({descendantName:"label"}),l.label),count:ba(is({descendantName:"count"}),l.count),showMore:ba(is({descendantName:"showMore"}),l.showMore),disabledShowMore:ba(is({descendantName:"showMore",modifierName:"disabled"}),l.disabledShowMore)},g=function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates,a=e.showMore;return function(e,s){var c=e.refine,u=e.items,l=e.createURL,f=e.instantSearchInstance,h=e.isShowingMore,d=e.toggleShowMore,p=e.canToggleShowMore;if(s)r.templateProps=U({defaultTemplates:ns,templatesConfig:f.templatesConfig,templates:i});else{var m=u.map(function(e){return o(o({},e),{},{url:l(e.value)})});At(mt(Ha,{createURL:l,cssClasses:n,facetValues:m,showMore:a,templateProps:r.templateProps,toggleRefinement:c,toggleShowMore:d,isShowingMore:h,canToggleShowMore:p}),t)}}}({containerNode:p,cssClasses:m,renderState:{},templates:h,showMore:s});return o(o({},Bt(g,function(){return At(null,p)})({attribute:r,limit:a,showMore:s,showMoreLimit:c,sortBy:i,transformItems:d})),{},{$$widgetType:"ais.menu"})},menuSelect:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=void 0===i?["name:asc"]:i,s=t.limit,c=void 0===s?10:s,u=t.cssClasses,l=void 0===u?{}:u,f=t.templates,h=void 0===f?{}:f,d=t.transformItems;if(!n)throw new Error(ss("The `container` option is required."));var p=B(n),m={root:ba(os(),l.root),noRefinementRoot:ba(os({modifierName:"noRefinement"}),l.noRefinementRoot),select:ba(os({descendantName:"select"}),l.select),option:ba(os({descendantName:"option"}),l.option)},g=function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,a){var s=e.refine,o=e.items,c=e.instantSearchInstance;a?r.templateProps=U({defaultTemplates:as,templatesConfig:c.templatesConfig,templates:i}):At(mt(An,{cssClasses:n,items:o,refine:s,templateProps:r.templateProps}),t)}}({containerNode:p,cssClasses:m,renderState:{},templates:h});return o(o({},Bt(g,function(){return At(null,p)})({attribute:r,limit:c,sortBy:a,transformItems:d})),{},{$$widgetType:"ais.menuSelect"})},numericMenu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.items,a=t.cssClasses,s=void 0===a?{}:a,c=t.templates,u=void 0===c?{}:c,l=t.transformItems;if(!n)throw new Error(us("The `container` option is required."));var f=B(n),h={root:ba(ls(),s.root),noRefinementRoot:ba(ls({modifierName:"noRefinement"}),s.noRefinementRoot),list:ba(ls({descendantName:"list"}),s.list),item:ba(ls({descendantName:"item"}),s.item),selectedItem:ba(ls({descendantName:"item",modifierName:"selected"}),s.selectedItem),label:ba(ls({descendantName:"label"}),s.label),radio:ba(ls({descendantName:"radio"}),s.radio),labelText:ba(ls({descendantName:"labelText"}),s.labelText)},d=function(e){var t=e.containerNode,n=e.attribute,r=e.cssClasses,i=e.renderState,a=e.templates;return function(e,s){var o=e.createURL,c=e.instantSearchInstance,u=e.refine,l=e.items;s?i.templateProps=U({defaultTemplates:cs,templatesConfig:c.templatesConfig,templates:a}):At(mt(Ha,{createURL:o,cssClasses:r,facetValues:l,templateProps:i.templateProps,toggleRefinement:u,attribute:n}),t)}}({containerNode:f,attribute:r,cssClasses:h,renderState:{},templates:u});return o(o({},Wt(d,function(){return At(null,f)})({attribute:r,items:i,transformItems:l})),{},{$$widgetType:"ais.numericMenu"})},pagination:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.cssClasses,s=void 0===a?{}:a,c=t.totalPages,u=t.padding,l=t.showFirst,f=void 0===l||l,h=t.showLast,d=void 0===h||h,p=t.showPrevious,m=void 0===p||p,g=t.showNext,v=void 0===g||g,y=t.scrollTo,b=void 0===y?"body":y;if(!n)throw new Error(hs("The `container` option is required."));var R=B(n),S=!0===b?"body":b,_=!1!==S&&B(S),w={root:ba(fs(),s.root),noRefinementRoot:ba(fs({modifierName:"noRefinement"}),s.noRefinementRoot),list:ba(fs({descendantName:"list"}),s.list),item:ba(fs({descendantName:"item"}),s.item),firstPageItem:ba(fs({descendantName:"item",modifierName:"firstPage"}),s.firstPageItem),lastPageItem:ba(fs({descendantName:"item",modifierName:"lastPage"}),s.lastPageItem),previousPageItem:ba(fs({descendantName:"item",modifierName:"previousPage"}),s.previousPageItem),nextPageItem:ba(fs({descendantName:"item",modifierName:"nextPage"}),s.nextPageItem),pageItem:ba(fs({descendantName:"item",modifierName:"page"}),s.pageItem),selectedItem:ba(fs({descendantName:"item",modifierName:"selected"}),s.selectedItem),disabledItem:ba(fs({descendantName:"item",modifierName:"disabled"}),s.disabledItem),link:ba(fs({descendantName:"link"}),s.link)},P=o(o({},ds),i),O=function(e){var t=e.containerNode,n=e.cssClasses,r=e.templates,i=e.showFirst,a=e.showLast,s=e.showPrevious,o=e.showNext,c=e.scrollToNode;return function(e,u){var l=e.createURL,f=e.currentRefinement,h=e.nbPages,d=e.pages,p=e.isFirstPage,m=e.isLastPage,g=e.refine;u||At(mt(Dn,{createURL:l,cssClasses:n,currentPage:f,templates:r,nbPages:h,pages:d,isFirstPage:p,isLastPage:m,setCurrentPage:function(e){g(e),!1!==c&&c.scrollIntoView()},showFirst:i,showLast:a,showPrevious:s,showNext:o}),t)}}({containerNode:R,cssClasses:w,templates:P,showFirst:f,showLast:d,showPrevious:m,showNext:v,scrollToNode:_});return o(o({},$t(O,function(){return At(null,R)})({totalPages:c,padding:u})),{},{$$widgetType:"ais.pagination"})},panel:function(e){var t=e||{},n=t.templates,r=void 0===n?{}:n,i=t.hidden,a=void 0===i?function(){return!1}:i,s=t.collapsed,c=t.cssClasses,u=void 0===c?{}:c,l=document.createElement("div"),f=Boolean(s),h="function"==typeof s?s:function(){return!1},d={root:ba(ws(),u.root),noRefinementRoot:ba(ws({modifierName:"noRefinement"}),u.noRefinementRoot),collapsibleRoot:ba(ws({modifierName:"collapsible"}),u.collapsibleRoot),collapsedRoot:ba(ws({modifierName:"collapsed"}),u.collapsedRoot),collapseButton:ba(ws({descendantName:"collapseButton"}),u.collapseButton),collapseIcon:ba(ws({descendantName:"collapseIcon"}),u.collapseIcon),body:ba(ws({descendantName:"body"}),u.body),header:ba(ws({descendantName:"header"}),u.header),footer:ba(ws({descendantName:"footer"}),u.footer)};return function(e){return function(t){if(!t||!t.container)throw new Error(_s("The `container` option is required in the widget within the panel."));
-var n=B(t.container),i=function(e){var t=e.containerNode,n=e.bodyContainerNode,r=e.cssClasses,i=e.templates;return function(e){var a=e.options,s=e.hidden,o=e.collapsible,c=e.collapsed;At(mt($n,{cssClasses:r,hidden:s,collapsible:o,isCollapsed:c,templates:i,data:a,bodyElement:n}),t)}}({containerNode:n,bodyContainerNode:l,cssClasses:d,templates:o(o({},{header:"",footer:"",collapseButtonText:function(e){var t=e.collapsed;return'')}}),r)}),s=e(o(o({},t),{},{container:l}));return o(o({},s),{},{init:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(r=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var n=JSON.stringify(e),r=a()[n];return Promise.all([r||t(),void 0!==r])}).then(function(e){var t=i(e,2),r=t[0],a=t[1];return Promise.all([r,a||n.miss(r)])}).then(function(e){return i(e,1)[0]})},set:function(e,t){return Promise.resolve().then(function(){var i=a();return i[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(i)),t})},delete:function(e){return Promise.resolve().then(function(){var t=a();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function o(e){var t=a(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},r=t();return r.then(function(e){return Promise.all([e,n.miss(e)])}).then(function(e){return i(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch(function(){return o({caches:t}).get(e,r,i)})},set:function(e,r){return n.set(e,r).catch(function(){return o({caches:t}).set(e,r)})},delete:function(e){return n.delete(e).catch(function(){return o({caches:t}).delete(e)})},clear:function(){return n.clear().catch(function(){return o({caches:t}).clear()})}}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var s=r(),o=i&&i.miss||function(){return Promise.resolve()};return s.then(function(e){return o(e)}).then(function(){return s})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===I.WithinHeaders?r:{}},queryParameters:function(){return e===I.WithinQueryParameters?r:{}}}}function l(e){var t=0;return e(function n(){return t++,new Promise(function(r){setTimeout(function(){r(e(n))},Math.min(100*t,1e3))})})}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return Promise.resolve()};return Object.assign(e,{wait:function(n){return f(e.then(function(e){return Promise.all([t(e,n),e])}).then(function(e){return e[1]}))}})}function h(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function d(e,t){return t?(Object.keys(t).forEach(function(n){e[n]=t[n](e)}),e):e}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function v(e){return"string"==typeof e?{protocol:"https",url:e,accept:F.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||F.Any}}function y(e,t){return Promise.all(t.map(function(t){return e.get(t,function(){return Promise.resolve(g(t))})})).then(function(e){var n=e.filter(function(e){return function(e){return e.status===N||Date.now()-e.lastUpdate>12e4}(e)}),r=e.filter(function(e){return function(e){return e.status===C&&Date.now()-e.lastUpdate<=12e4}(e)}),i=[].concat(a(n),a(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map(function(e){return v(e)}):t}})}function b(e,t,r,i){var s=[],o=function(e,t){if(e.method!==k&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),c=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach(function(e){var t=r[e];i[e.toLowerCase()]=t}),i}(e,i),u=r.method,l=r.method!==k?{}:n(n({},r.data),i.data),f=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),l),i.queryParameters),h=0,d=function t(n,a){var l=n.pop();if(void 0===l)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:P(s)};var d={data:o,headers:c,method:u,url:_(l,r.path,f),connectTimeout:a(h,e.timeouts.connect),responseTimeout:a(h,i.timeout)},p=function(e){var t={request:d,response:e,host:l,triesLeft:n.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=p(r);return r.isTimedOut&&h++,Promise.all([e.logger.info("Retryable failure",O(i)),e.hostsCache.set(l,g(l,r.isTimedOut?C:E))]).then(function(){return t(n,a)})},onFail:function(e){throw p(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,P(s))}};return e.requester.send(d).then(function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)})};return y(e.hostsCache,t).then(function(e){return d(a(e.statelessHosts).reverse(),e.getTimeout)})}function R(e){var t=e.hostsCache,n=e.logger,r=e.requester,a=e.requestsCache,s=e.responsesCache,o=e.timeouts,c=e.userAgent,u=e.hosts,l=e.queryParameters,f={hostsCache:t,logger:n,requester:r,requestsCache:a,responsesCache:s,timeouts:o,userAgent:c,headers:e.headers,queryParameters:l,hosts:u.map(function(e){return v(e)}),read:function(e,t){var n=m(t,f.timeouts.read),r=function(){return b(f,f.hosts.filter(function(e){return 0!=(e.accept&F.Read)}),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var a={request:e,mappedRequestOptions:n,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(a,function(){return f.requestsCache.get(a,function(){return f.requestsCache.set(a,r()).then(function(e){return Promise.all([f.requestsCache.delete(a),e])},function(e){return Promise.all([f.requestsCache.delete(a),Promise.reject(e)])}).then(function(e){var t=i(e,2);return t[0],t[1]})})},{miss:function(e){return f.responsesCache.set(a,e)}})},write:function(e,t){return b(f,f.hosts.filter(function(e){return 0!=(e.accept&F.Write)}),e,m(t,f.timeouts.write))}};return f}function S(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function _(e,t,n){var r=w(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function w(e){return Object.keys(e).map(function(t){return p("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n}).join("&")}function P(e){return e.map(function(e){return O(e)})}function O(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}function x(e){return function t(n){return e.request(n).then(function(r){if(void 0!==e.batch&&e.batch(r.hits),!e.shouldStop(r))return t(r.cursor?{cursor:r.cursor}:{page:(n.page||0)+1})})}({})}function j(e,t,r){var i,a={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return n.setRequestHeader(t,e.headers[t])});var r,i=function(e,r){return setTimeout(function(){n.abort(),t({status:0,content:r,isTimedOut:!0})},1e3*e)},a=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(a),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(a),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(a),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})}},logger:(i=vt,{debug:function(e,t){return mt>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return gt>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:c(),requestsCache:c({serializable:!1}),hostsCache:o({caches:[s({key:"".concat("4.14.3","-").concat(e)}),c()]}),userAgent:S("4.14.3").add({segment:"Browser"})},l=n(n({},a),r),f=function(){return function(e){return function(e){
-var t=e.region||"us",r=u(I.WithinHeaders,e.appId,e.apiKey),i=R(n(n({hosts:[{url:"personalization.".concat(t,".algolia.com")}]},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return d({appId:e.appId,transporter:i},e.methods)}(n(n(n({},a),e),{},{methods:{getPersonalizationStrategy:W,setPersonalizationStrategy:Q}}))}};return function(e){var t=e.appId,r=u(void 0!==e.authMode?e.authMode:I.WithinHeaders,t,e.apiKey),i=R(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:F.Read},{url:"".concat(t,".algolia.net"),accept:F.Write}].concat(h([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return d({transporter:i,appId:t,addAlgoliaAgent:function(e,t){i.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then(function(){})}},e.methods)}(n(n({},l),{},{methods:{search:ge,searchForFacetValues:ve,multipleBatch:pe,multipleGetObjects:me,multipleQueries:ge,copyIndex:K,copySettings:G,copySynonyms:Y,copyRules:J,moveIndex:de,listIndices:fe,getLogs:ie,listClusters:le,multipleSearchForFacetValues:ve,getApiKey:te,addApiKey:U,listApiKeys:ue,updateApiKey:Oe,deleteApiKey:Z,restoreApiKey:Re,assignUserID:V,assignUserIDs:$,getUserID:se,searchUserIDs:we,listUserIDs:he,getTopUserIDs:ae,removeUserID:ye,hasPendingMappings:oe,clearDictionaryEntries:z,deleteDictionaryEntries:ee,getDictionarySettings:re,getAppTask:ne,replaceDictionaryEntries:be,saveDictionaryEntries:Se,searchDictionaryEntries:_e,setDictionarySettings:Pe,waitAppTask:xe,customRequest:X,initIndex:function(e){return function(t){return ce(e)(t,{methods:{batch:je,delete:De,findAnswers:We,getObject:Ue,getObjects:$e,saveObject:tt,saveObjects:nt,search:ot,searchForFacetValues:ct,waitTask:ht,setSettings:ft,getSettings:Ke,partialUpdateObject:Ge,partialUpdateObjects:Ye,deleteObject:Le,deleteObjects:Me,deleteBy:Ae,clearObjects:Ce,browseObjects:Ie,getObjectPosition:Ve,findObject:Qe,exists:Be,saveSynonym:at,saveSynonyms:st,getSynonym:Je,searchSynonyms:lt,browseSynonyms:Ne,deleteSynonym:qe,clearSynonyms:ke,replaceAllObjects:Xe,replaceAllSynonyms:et,searchRules:ut,getRule:ze,deleteRule:He,saveRule:rt,saveRules:it,replaceAllRules:Ze,browseRules:Fe,clearRules:Te}})}},initAnalytics:function(){return function(e){return function(e){var t=e.region||"us",r=u(I.WithinHeaders,e.appId,e.apiKey),i=R(n(n({hosts:[{url:"analytics.".concat(t,".algolia.com")}]},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return d({appId:e.appId,transporter:i},e.methods)}(n(n(n({},a),e),{},{methods:{addABTest:L,getABTest:H,getABTests:q,stopABTest:B,deleteABTest:M}}))}},initPersonalization:f,initRecommendation:function(){return function(e){return l.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),f()(e)}}}}))}var I={WithinQueryParameters:0,WithinHeaders:1},F={Read:1,Write:2,Any:3},N=1,E=2,C=3,T="DELETE",k="GET",A="POST",D="PUT",L=function(e){return function(t,n){return e.transporter.write({method:A,path:"2/abtests",data:t},n)}},M=function(e){return function(t,n){return e.transporter.write({method:T,path:p("2/abtests/%s",t)},n)}},H=function(e){return function(t,n){return e.transporter.read({method:k,path:p("2/abtests/%s",t)},n)}},q=function(e){return function(t){return e.transporter.read({method:k,path:"2/abtests"},t)}},B=function(e){return function(t,n){return e.transporter.write({method:A,path:p("2/abtests/%s/stop",t)},n)}},W=function(e){return function(t){return e.transporter.read({method:k,path:"1/strategies/personalization"},t)}},Q=function(e){return function(t,n){return e.transporter.write({method:A,path:"1/strategies/personalization",data:t},n)}},U=function(e){return function(t,i){var a=i||{},s=a.queryParameters,o=r(a,["queryParameters"]),c=n({acl:t},void 0!==s?{queryParameters:s}:{});return f(e.transporter.write({method:A,path:"1/keys",data:c},o),function(t,n){return l(function(r){return te(e)(t.key,n).catch(function(e){if(404!==e.status)throw e;return r()})})})}},V=function(e){return function(t,n,r){var i=m(r);return i.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:A,path:"1/clusters/mapping",data:{cluster:n}},i)}},$=function(e){return function(t,n,r){return e.transporter.write({method:A,path:"1/clusters/mapping/batch",data:{users:t,cluster:n}},r)}},z=function(e){return function(t,n){return f(e.transporter.write({method:A,path:p("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},n),function(t,n){return xe(e)(t.taskID,n)})}},K=function(e){return function(t,n,r){return f(e.transporter.write({method:A,path:p("1/indexes/%s/operation",t),data:{operation:"copy",destination:n}},r),function(n,r){return ce(e)(t,{methods:{waitTask:ht}}).waitTask(n.taskID,r)})}},J=function(e){return function(t,r,i){return K(e)(t,r,n(n({},i),{},{scope:[pt.Rules]}))}},G=function(e){return function(t,r,i){return K(e)(t,r,n(n({},i),{},{scope:[pt.Settings]}))}},Y=function(e){return function(t,r,i){return K(e)(t,r,n(n({},i),{},{scope:[pt.Synonyms]}))}},X=function(e){return function(t,n){return t.method===k?e.transporter.read(t,n):e.transporter.write(t,n)}},Z=function(e){return function(t,n){return f(e.transporter.write({method:T,path:p("1/keys/%s",t)},n),function(n,r){return l(function(n){return te(e)(t,r).then(n).catch(function(e){if(404!==e.status)throw e})})})}},ee=function(e){return function(t,n,r){var i=n.map(function(e){return{action:"deleteEntry",body:{objectID:e}}});return f(e.transporter.write({method:A,path:p("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:i}},r),function(t,n){return xe(e)(t.taskID,n)})}},te=function(e){return function(t,n){return e.transporter.read({method:k,path:p("1/keys/%s",t)},n)}},ne=function(e){return function(t,n){return e.transporter.read({method:k,path:p("1/task/%s",t.toString())},n)}},re=function(e){return function(t){return e.transporter.read({method:k,path:"/1/dictionaries/*/settings"},t)}},ie=function(e){return function(t){return e.transporter.read({method:k,path:"1/logs"},t)}},ae=function(e){return function(t){return e.transporter.read({method:k,path:"1/clusters/mapping/top"},t)}},se=function(e){return function(t,n){return e.transporter.read({method:k,path:p("1/clusters/mapping/%s",t)},n)}},oe=function(e){return function(t){var n=t||{},i=n.retrieveMappings,a=r(n,["retrieveMappings"]);return!0===i&&(a.getClusters=!0),e.transporter.read({method:k,path:"1/clusters/mapping/pending"},a)}},ce=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={transporter:e.transporter,appId:e.appId,indexName:t};return d(r,n.methods)}},ue=function(e){return function(t){return e.transporter.read({method:k,path:"1/keys"},t)}},le=function(e){return function(t){return e.transporter.read({method:k,path:"1/clusters"},t)}},fe=function(e){return function(t){return e.transporter.read({method:k,path:"1/indexes"},t)}},he=function(e){return function(t){return e.transporter.read({method:k,path:"1/clusters/mapping"},t)}},de=function(e){return function(t,n,r){return f(e.transporter.write({method:A,path:p("1/indexes/%s/operation",t),data:{operation:"move",destination:n}},r),function(n,r){return ce(e)(t,{methods:{waitTask:ht}}).waitTask(n.taskID,r)})}},pe=function(e){return function(t,n){return f(e.transporter.write({method:A,path:"1/indexes/*/batch",data:{requests:t}},n),function(t,n){return Promise.all(Object.keys(t.taskID).map(function(r){return ce(e)(r,{methods:{waitTask:ht}}).waitTask(t.taskID[r],n)}))})}},me=function(e){return function(t,n){return e.transporter.read({method:A,path:"1/indexes/*/objects",data:{requests:t}},n)}},ge=function(e){return function(t,r){var i=t.map(function(e){return n(n({},e),{},{params:w(e.params||{})})});return e.transporter.read({method:A,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},ve=function(e){return function(t,i){return Promise.all(t.map(function(t){var a=t.params,s=a.facetName,o=a.facetQuery,c=r(a,["facetName","facetQuery"]);return ce(e)(t.indexName,{methods:{searchForFacetValues:ct}}).searchForFacetValues(s,o,n(n({},i),c))}))}},ye=function(e){return function(t,n){var r=m(n);return r.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:T,path:"1/clusters/mapping"},r)}},be=function(e){return function(t,n,r){var i=n.map(function(e){return{action:"addEntry",body:e}});return f(e.transporter.write({method:A,path:p("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:i}},r),function(t,n){return xe(e)(t.taskID,n)})}},Re=function(e){return function(t,n){return f(e.transporter.write({method:A,path:p("1/keys/%s/restore",t)},n),function(n,r){return l(function(n){return te(e)(t,r).catch(function(e){if(404!==e.status)throw e;return n()})})})}},Se=function(e){return function(t,n,r){var i=n.map(function(e){return{action:"addEntry",body:e}});return f(e.transporter.write({method:A,path:p("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:i}},r),function(t,n){return xe(e)(t.taskID,n)})}},_e=function(e){return function(t,n,r){return e.transporter.read({method:A,path:p("/1/dictionaries/%s/search",t),data:{query:n},cacheable:!0},r)}},we=function(e){return function(t,n){return e.transporter.read({method:A,path:"1/clusters/mapping/search",data:{query:t}},n)}},Pe=function(e){return function(t,n){return f(e.transporter.write({method:D,path:"/1/dictionaries/*/settings",data:t},n),function(t,n){return xe(e)(t.taskID,n)})}},Oe=function(e){return function(t,n){var i=Object.assign({},n),a=n||{},s=a.queryParameters,o=r(a,["queryParameters"]),c=s?{queryParameters:s}:{},u=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return f(e.transporter.write({method:D,path:p("1/keys/%s",t),data:c},o),function(n,r){return l(function(n){return te(e)(t,r).then(function(e){return function(e){return Object.keys(i).filter(function(e){return-1!==u.indexOf(e)}).every(function(t){return e[t]===i[t]})}(e)?Promise.resolve():n()})})})}},xe=function(e){return function(t,n){return l(function(r){return ne(e)(t,n).then(function(e){return"published"!==e.status?r():void 0})})}},je=function(e){return function(t,n){return f(e.transporter.write({method:A,path:p("1/indexes/%s/batch",e.indexName),data:{requests:t}},n),function(t,n){return ht(e)(t.taskID,n)})}},Ie=function(e){return function(t){return x(n(n({shouldStop:function(e){return void 0===e.cursor}},t),{},{request:function(n){return e.transporter.read({method:A,path:p("1/indexes/%s/browse",e.indexName),data:n},t)}}))}},Fe=function(e){return function(t){var r=n({hitsPerPage:1e3},t);return x(n(n({shouldStop:function(e){return e.hits.length0&&void 0!==arguments[0]?arguments[0]:0,u=[];for(i=a;i=e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return r()})}()}},Ue=function(e){return function(t,n){return e.transporter.read({method:k,path:p("1/indexes/%s/%s",e.indexName,t)},n)}},Ve=function(){return function(e,t){for(var n=0,r=Object.entries(e.hits);n0},r.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},r.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},r.prototype.setClient=function(e){return this.client===e?this:("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+m+")"),
-this.client=e,this)},r.prototype.getClient=function(){return this.client},r.prototype.derive=function(e){var t=new c(this,e);return this.derivedHelpers.push(t),t},r.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(t===-1)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},r.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=r},function(e,t,n){"use strict";function r(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return r(t[n],e)}):e===t}function i(e,t){return u(e,function(e){return r(e,t)})}function a(e){var t=e?a._parseNumbers(e):{};void 0===t.userToken||d(t.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=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach(function(e){var r=a.PARAMETERS.indexOf(e)!==-1,i=void 0!==t[e];!r&&i&&(n[e]=t[e])})}var s=n(6),o=n(7),c=n(8),u=n(9),l=n(10),f=n(11),h=n(12),d=n(13),p=n(14);a.PARAMETERS=Object.keys(new a),a._parseNumbers=function(e){if(e instanceof a)return e;var t={},n=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(n.forEach(function(n){var r=e[n];if("string"==typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach(function(e){var i=n[e],a=i.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});r[t][e]=a})}),t.numericRefinements=r}return s({},e,t)},a.make=function(e){var t=new a(e),n=e.hierarchicalFacets||[];return n.forEach(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),n=t.getHierarchicalRefinement(e.name),0===n.length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},a.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&h(n.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."):h(e.numericRefinements)&&n.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},a.prototype={constructor:a,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:p.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:p.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:p.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:p.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=l(n);if(this.isNumericRefined(e,t,r))return this;var i=s({},this.numericRefinements);return i[e]=s({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)?this.facetsRefinements[e]||[]:[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)?this.disjunctiveFacetsRefinements[e]||[]:[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)?this.facetsExcludes[e]||[]:[]},removeNumericRefinement:function(e,t,n){return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,a){return a===e&&i.op===t&&r(i.val,l(n))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,r){return r===e&&n.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,n){return n===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return h(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return f(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce(function(r,i){var a=n[i],s={};return a=a||{},Object.keys(a).forEach(function(n){var r=a[n]||[],o=[];r.forEach(function(t){var r=e({val:t,op:n},i,"numeric");r||o.push(t)}),o.length!==r.length&&(t=!0),s[n]=o}),r[i]=s,r},{});return t?r:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return p.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:p.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return p.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:p.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return p.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:p.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return p.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:p.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return p.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:p.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return p.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:p.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:p.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:p.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:p.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r={},i=void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n));return i?t.indexOf(n)===-1?r[e]=[]:r[e]=[t.slice(0,t.lastIndexOf(n))]:r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:o({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:o({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:o({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&p.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&p.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&p.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?n.indexOf(t)!==-1:n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var a=l(n),s=void 0!==i(this.numericRefinements[e][t],a);return r&&s},isTagRefined:function(e){return this.tagRefinements.indexOf(e)!==-1},getRefinedDisjunctiveFacets:function(){var e=this,t=c(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var e=this;return c(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0}))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return e.indexOf(t)===-1})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;return Object.keys(this).forEach(function(r){var i=n[r];e.indexOf(r)===-1&&void 0!==i&&(t[r]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=a.validate(this,e);if(t)throw t;var n=this,r=a._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=n[t],e},{}),s=Object.keys(r).reduce(function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?f(e,[t]):(i&&(e[t]=r[t]),e)},i);return new this.constructor(s)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return u(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r=t.split(n);return r.map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=a},function(e,t){"use strict";function n(e){return"object"==typeof e&&null!==e?i(Array.isArray(e)?[]:{},e):e}function r(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){if(e===t)return e;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&"__proto__"!==a&&"constructor"!==a){var s=t[a],o=e[a];"undefined"!=typeof o&&"undefined"==typeof s||(r(o)&&r(s)?e[a]=i(o,s):e[a]=n(s))}return e}function a(e){r(e)||(e={});for(var t=1,n=arguments.length;t-1&&e.indexOf(n)===r})}e.exports=n},function(e,t){"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var n=0;n=0||(i[n]=e[n]);return i}e.exports=n},function(e,t){"use strict";function n(e){return e&&Object.keys(e).length>0}e.exports=n},function(e,t){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},function(e,t,n){"use strict";var r=n(7),i=n(11),a=n(12),s={addRefinement:function(e,t,n){if(s.isRefined(e,t,n))return e;var i=""+n,a=e[t]?e[t].concat(i):[i],o={};return o[t]=a,r({},o,e)},removeRefinement:function(e,t,n){if(void 0===n)return s.clearRefinement(e,function(e,n){return t===n});var r=""+n;return s.clearRefinement(e,function(e,n){return t===n&&r===e})},toggleRefinement:function(e,t,n){if(void 0===n)throw new Error("toggleRefinement should be used with a value");return s.isRefined(e,t,n)?s.removeRefinement(e,t,n):s.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return a(e)?{}:e;if("string"==typeof t)return i(e,[t]);if("function"==typeof t){var r=!1,s=Object.keys(e).reduce(function(i,a){var s=e[a]||[],o=s.filter(function(e){return!t(e,a,n)});return o.length!==s.length&&(r=!0),i[a]=o,i},{});return r?s:e}},isRefined:function(e,t,n){var r=!!e[t]&&e[t].length>0;if(void 0===n||!r)return r;var i=""+n;return e[t].indexOf(i)!==-1}};e.exports=s},function(e,t,n){"use strict";function r(e){var t={};return e.forEach(function(e,n){t[e]=n}),t}function i(e,t,n){t&&t[n]&&(e.stats=t[n])}function a(e,t){return b(e,function(e){var n=e.attributes||[];return n.indexOf(t)>-1})}function s(e,t,n){var s=t[0];this._rawResults=t;var o=this;Object.keys(s).forEach(function(e){o[e]=s[e]}),Object.keys(n||{}).forEach(function(e){o[e]=n[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var c=e.getRefinedDisjunctiveFacets(),u=r(e.facets),l=r(e.disjunctiveFacets),f=1,h=s.facets||{};Object.keys(h).forEach(function(t){var n=h[t],r=a(e.hierarchicalFacets,t);if(r){var c=r.attributes.indexOf(t),f=R(e.hierarchicalFacets,function(e){return e.name===r.name});o.hierarchicalFacets[f][c]={attribute:t,data:n,exhaustive:s.exhaustiveFacetsCount}}else{var d,p=e.disjunctiveFacets.indexOf(t)!==-1,m=e.facets.indexOf(t)!==-1;p&&(d=l[t],o.disjunctiveFacets[d]={name:t,data:n,exhaustive:s.exhaustiveFacetsCount},i(o.disjunctiveFacets[d],s.facets_stats,t)),m&&(d=u[t],o.facets[d]={name:t,data:n,exhaustive:s.exhaustiveFacetsCount},i(o.facets[d],s.facets_stats,t))}}),this.hierarchicalFacets=y(this.hierarchicalFacets),c.forEach(function(n){var r=t[f],a=r&&r.facets?r.facets:{},c=e.getHierarchicalFacetByName(n);Object.keys(a).forEach(function(t){var n,u=a[t];if(c){n=R(e.hierarchicalFacets,function(e){return e.name===c.name});var f=R(o.hierarchicalFacets[n],function(e){return e.attribute===t});if(f===-1)return;o.hierarchicalFacets[n][f].data=m({},o.hierarchicalFacets[n][f].data,u)}else{n=l[t];var h=s.facets&&s.facets[t]||{};o.disjunctiveFacets[n]={name:t,data:g({},u,h),exhaustive:r.exhaustiveFacetsCount},i(o.disjunctiveFacets[n],r.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(r){!o.disjunctiveFacets[n].data[r]&&e.disjunctiveFacetsRefinements[t].indexOf(P(r))>-1&&(o.disjunctiveFacets[n].data[r]=0)})}}),f++}),e.getRefinedHierarchicalFacets().forEach(function(n){var r=e.getHierarchicalFacetByName(n),i=e._getHierarchicalFacetSeparator(r),a=e.getHierarchicalRefinement(n);0===a.length||a[0].split(i).length<2||t.slice(f).forEach(function(t){var n=t&&t.facets?t.facets:{};Object.keys(n).forEach(function(t){var s=n[t],c=R(e.hierarchicalFacets,function(e){return e.name===r.name}),u=R(o.hierarchicalFacets[c],function(e){return e.attribute===t});if(u!==-1){var l={};if(a.length>0){var f=a[0].split(i)[0];l[f]=o.hierarchicalFacets[c][u].data[f]}o.hierarchicalFacets[c][u].data=g(l,s,o.hierarchicalFacets[c][u].data)}}),f++})}),Object.keys(e.facetsExcludes).forEach(function(t){var n=e.facetsExcludes[t],r=u[t];o.facets[r]={name:t,data:s.facets[t],exhaustive:s.exhaustiveFacetsCount},n.forEach(function(e){o.facets[r]=o.facets[r]||{name:t},o.facets[r].data=o.facets[r].data||{},o.facets[r].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(O(e)),this.facets=y(this.facets),this.disjunctiveFacets=y(this.disjunctiveFacets),this._state=e}function o(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=b(e.facets,n);return r?Object.keys(r.data).map(function(n){var i=w(n);return{name:n,escapedValue:i,count:r.data[n],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,n)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=b(e.disjunctiveFacets,n);return i?Object.keys(i.data).map(function(n){var r=w(n);return{name:n,escapedValue:r,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}}):[]}if(e._state.isHierarchicalFacet(t))return b(e.hierarchicalFacets,n)}function c(e,t,n,r){if(r=r||0,Array.isArray(t))return e(t,n[r]);if(!t.data||0===t.data.length)return t;var i=t.data.map(function(t){return c(e,t,n,r+1)}),a=e(i,n[r]),s=g({data:a},t);return s}function u(e,t){return t.sort(e)}function l(e,t){var n=[],r=[],i=t.order||[],a=i.reduce(function(e,t,n){return e[t]=n,e},{});e.forEach(function(e){var t=e.path||e.name;void 0!==a[t]?n[a[t]]=e:r.push(e)}),n=n.filter(function(e){return e});var s,o=t.sortRemainingBy;return"hidden"===o?n:(s="alpha"===o?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(v(r,s[0],s[1])))}function f(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}function h(e,t){var n=b(e,function(e){return e.name===t});return n&&n.stats}function d(e,t,n,r,i){var a=b(i,function(e){return e.name===n}),s=a&&a.data&&a.data[r]?a.data[r]:0,o=a&&a.exhaustive||!1;return{type:t,attributeName:n,name:r,count:s,exhaustive:o}}function p(e,t,n,r){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),s=n.split(a),o=b(r,function(e){return e.name===t}),c=s.reduce(function(e,t){var n=e&&b(e.data,function(e){return e.name===t});return void 0!==n?n:e},o),u=c&&c.count||0,l=c&&c.exhaustive||!1,f=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:f,count:u,exhaustive:l}}var m=n(6),g=n(7),v=n(16),y=n(17),b=n(9),R=n(18),S=n(19),_=n(20),w=_.escapeFacetValue,P=_.unescapeFacetValue,O=n(21);s.prototype.getFacetByName=function(e){function t(t){return t.name===e}return b(this.facets,t)||b(this.disjunctiveFacets,t)||b(this.hierarchicalFacets,t)},s.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],s.prototype.getFacetValues=function(e,t){var n=o(this,e);if(n){var r,i=g({},t,{sortBy:s.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),a=this;if(Array.isArray(n))r=[e];else{var h=a._state.getHierarchicalFacetByName(n.name);r=h.attributes}return c(function(e,t){if(i.facetOrdering){var n=f(a,t);if(Boolean(n))return l(e,n)}if(Array.isArray(i.sortBy)){var r=S(i.sortBy,s.DEFAULT_SORT);return v(e,r[0],r[1])}if("function"==typeof i.sortBy)return u(i.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},n,r)}},s.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?h(this.facets,e):this._state.isDisjunctiveFacet(e)?h(this.disjunctiveFacets,e):void 0},s.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach(function(r){e.facetsRefinements[r].forEach(function(i){n.push(d(e,"facet",r,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(r){e.facetsExcludes[r].forEach(function(i){n.push(d(e,"exclude",r,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(r){e.disjunctiveFacetsRefinements[r].forEach(function(i){n.push(d(e,"disjunctive",r,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(r){e.hierarchicalFacetsRefinements[r].forEach(function(i){n.push(p(e,r,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(t){var r=e.numericRefinements[t];Object.keys(r).forEach(function(e){r[e].forEach(function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})})})}),e.tagRefinements.forEach(function(e){n.push({type:"tag",attributeName:"_tags",name:e})}),n},e.exports=s},function(e,t){"use strict";function n(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||r&&i||!n)return 1;if(!r&&e=r.length?a:"desc"===r[i]?-a:a}return e.index-t.index}),i.map(function(e){return e.value})}e.exports=r},function(e,t){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},function(e,t){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n1||!a?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(a[0]),e[1].push(a[1]),e)},[[],[]])}},function(e,t){"use strict";function n(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")}function r(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}e.exports={escapeFacetValue:n,unescapeFacetValue:r}},function(e,t,n){"use strict";function r(e){return function(t,n){var r=e.hierarchicalFacets[n],a=e.hierarchicalFacetsRefinements[r.name]&&e.hierarchicalFacetsRefinements[r.name][0]||"",s=e._getHierarchicalFacetSeparator(r),o=e._getHierarchicalRootPath(r),c=e._getHierarchicalShowParentLevel(r),l=u(e._getHierarchicalFacetSortBy(r)),f=t.every(function(e){return e.exhaustive}),h=i(l,s,o,c,a),d=t;return o&&(d=t.slice(o.split(s).length)),d.reduce(h,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:f,data:null})}}function i(e,t,n,r,i){return function(u,l,f){var d=u;if(f>0){var p=0;for(d=u;p0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,s,o;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){
-for(o=s;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){i=o;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){"use strict";function n(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}e.exports=n},function(e,t,n){"use strict";function r(e){return Object.keys(e).sort(function(e,t){return e.localeCompare(t)}).reduce(function(t,n){return t[n]=e[n],t},{})}var i=n(6),a={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(r){n.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,r)})}),t.getRefinedHierarchicalFacets().forEach(function(r){var i=t.getHierarchicalFacetByName(r),s=t.getHierarchicalRefinement(r),o=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(o).length>1){var c=s[0].split(o).slice(0,-1).reduce(function(e,t,n){return e.concat({attribute:i.attributes[n],value:0===n?t:[e[e.length-1].value,t].join(o)})},[]);c.forEach(function(r,s){function o(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var u=a._getDisjunctiveFacetSearchParams(t,r.attribute,0===s),l=(u.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var n=t.filter(function(e){return!o(e)});n.length>0&&e.push(n)}return"string"!=typeof t||o(t)||e.push(t),e},[]),f=c[s-1];s>0?u.facetFilters=l.concat(f.attribute+":"+f.value):u.facetFilters=l.length>0?l:void 0,n.push({indexName:e,params:u})})}}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)),n=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:o};return n.length>0&&(c.facetFilters=n),s.length>0&&(c.numericFilters=s),r(i({},e.getQueryParams(),c))},_getDisjunctiveFacetSearchParams:function(e,t,n){var s=a._getFacetFilters(e,t,n),o=a._getNumericFilters(e,t),c=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(u.tagFilters=c);var l=e.getHierarchicalFacetByName(t);return l?u.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,n):u.facets=t,o.length>0&&(u.numericFilters=o),s.length>0&&(u.facetFilters=s),r(i({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach(function(r){var i=e.numericRefinements[r]||{};Object.keys(i).forEach(function(e){var a=i[e]||[];t!==r&&a.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return r+e+t});n.push(i)}else n.push(r+e+t)})})}),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).forEach(function(e){var t=i[e]||[];t.forEach(function(t){r.push(e+":"+t)})});var a=e.facetsExcludes||{};Object.keys(a).forEach(function(e){var t=a[e]||[];t.forEach(function(t){r.push(e+":-"+t)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).forEach(function(e){var n=s[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.forEach(function(t){i.push(e+":"+t)}),r.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).forEach(function(i){var a=o[i]||[],s=a[0];if(void 0!==s){var c,u,l=e.getHierarchicalFacetByName(i),f=e._getHierarchicalFacetSeparator(l),h=e._getHierarchicalRootPath(l);if(t===i){if(s.indexOf(f)===-1||!h&&n===!0||h&&h.split(f).length===s.split(f).length)return;h?(u=h.split(f).length-1,s=h):(u=s.split(f).length-2,s=s.slice(0,s.lastIndexOf(f))),c=l.attributes[u]}else u=s.split(f).length-1,c=l.attributes[u];c&&r.push([c+":"+s])}}),r},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return e.hierarchicalFacets.reduce(function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),a=r.split(i).length,s=n.attributes.slice(0,a+1);return t.concat(s)},t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(n===!0){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(r).length),[t.attributes[a]]}var s=e.getHierarchicalRefinement(t.name)[0]||"",o=s.split(r).length-1;return t.attributes.slice(0,o+1)},getSearchForFacetQuery:function(e,t,n,s){var o=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,c={facetQuery:t,facetName:e};return"number"==typeof n&&(c.maxFacetHits=n),r(i({},a._getHitsSearchParams(o),c))}};e.exports=a},function(e,t){"use strict";e.exports="3.11.2"},function(e,t,n){var r=n(28);r.Template=n(29).Template,r.template=r.Template,e.exports=r},function(e,t,n){!function(e){function t(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function n(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function r(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r0;){if(f=t.shift(),l&&"<"==l.tag&&!(f.tag in S))throw new Error("Illegal content in < super tag.");if(e.tags[f.tag]<=e.tags.$||a(f,o))r.push(f),f.nodes=i(t,f.tag,r,o);else{if("/"==f.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+f.n);if(u=r.pop(),f.n!=u.n&&!s(f.n,u.n,o))throw new Error("Nesting error: "+u.n+" vs. "+f.n);return u.end=f.i,c}"\n"==f.tag&&(f.last=0==t.length||"\n"==t[0].tag)}c.push(f)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return c}function a(e,t){for(var n=0,r=t.length;n":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(i,a){function s(){y.length>0&&(b.push({tag:"_t",text:new String(y)}),y="")}function o(){for(var t=!0,n=_;n"==n.tag&&(n.indent=b[r].text.toString()),b.splice(r,1));else t||b.push({tag:"\n"});R=!1,_=b.length}function u(e,t){var r="="+P,i=e.indexOf(r,t),a=n(e.substring(e.indexOf("=",t)+1,i)).split(" ");return w=a[0],P=a[a.length-1],i+r.length-1}var l=i.length,f=0,h=1,d=2,m=f,g=null,v=null,y="",b=[],R=!1,S=0,_=0,w="{{",P="}}";for(a&&(a=a.split(" "),w=a[0],P=a[1]),S=0;S":f,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[f(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+u(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=d('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+l(e.n)+'("'+u(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=d('"'+u(e.text)+'"')},"{":h,"&":h},e.walk=function(t,n){for(var r,i=0,a=t.length;i=0;u--)if(s=n[u],a=t(e,s,c),void 0!==a){o=!0;break}return o?(i||"function"!=typeof a||(a=this.mv(a,n,r)),a):!i&&""},ls:function(e,t,n,i,a){var s=this.options.delimiters;return this.options.delimiters=a,this.b(this.ct(r(e.call(t,i)),t,n)),this.options.delimiters=s,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,a,s){var o,c=t[t.length-1],u=e.call(c);return"function"==typeof u?!!r||(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,c,n,o.substring(i,a),s)):u},mv:function(e,t,n){var i=t[t.length-1],a=e.call(i);return"function"==typeof a?this.ct(r(a.call(i)),i,n):a},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var a=/&/g,s=//g,c=/\'/g,u=/\"/g,l=/[&<>\"\']/,f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],s=!0,o=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(o)throw i}}return a}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n?null===r?null:0:i}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){var n=[];return Promise.resolve(e(t)).then(function(e){return Promise.all(e.filter(function(e){return Boolean(e)}).map(function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function te(e){var t=e.event,n=e.nextState,r=void 0===n?{}:n,i=e.props,a=e.query,s=e.refresh,o=e.store,c=ee(e,Vt);$t&&i.environment.clearTimeout($t);var u=c.setCollections,l=c.setIsOpen,f=c.setQuery,h=c.setActiveItemId,p=c.setStatus;if(f(a),h(i.defaultActiveItemId),!a&&!1===i.openOnFocus){var m,g=o.getState().collections.map(function(e){return X(X({},e),{},{items:[]})});p("idle"),u(g),l(null!==(m=r.isOpen)&&void 0!==m?m:i.shouldPanelOpen({state:o.getState()}));var v=y(zt(g).then(function(){return Promise.resolve()}));return o.pendingRequests.add(v)}p("loading"),$t=i.environment.setTimeout(function(){p("stalled")},i.stallThreshold);var b=y(zt(i.getSources(X({query:a,refresh:s,state:o.getState()},c)).then(function(e){return Promise.all(e.map(function(e){return Promise.resolve(e.getItems(X({query:a,refresh:s,state:o.getState()},c))).then(function(t){return K(t,e.sourceId)})})).then(J).then(function(t){return G(t,e)}).then(function(e){return function(e){var t=e.collections,n=e.props,r=e.state,i=t.reduce(function(e,t){return q(q({},e),{},B({},t.source.sourceId,q(q({},t.source),{},{getItems:function(){return d(t.items)}})))},{});return d(n.reshape({sources:Object.values(i),sourcesBySourceId:i,state:r})).filter(Boolean).map(function(e){return{source:e,items:e.getItems()}})}({collections:e,props:i,state:o.getState()})})}))).then(function(e){var n;p("idle"),u(e);var f=i.shouldPanelOpen({state:o.getState()});l(null!==(n=r.isOpen)&&void 0!==n?n:i.openOnFocus&&!a&&f||f);var h=P(o.getState());if(null!==o.getState().activeItemId&&h){var d=h.item,m=h.itemInputValue,g=h.itemUrl,v=h.source;v.onActive(X({event:t,item:d,itemInputValue:m,itemUrl:g,refresh:s,source:v,state:o.getState()},c))}}).finally(function(){p("idle"),$t&&i.environment.clearTimeout($t)});return o.pendingRequests.add(b)}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function re(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function le(e){var t=e.props,n=e.refresh,r=e.store,i=ue(e,Jt);return{getEnvironmentProps:function(e){var n=e.inputElement,i=e.formElement,a=e.panelElement;return oe({onTouchStart:function(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[i,a].some(function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r})&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())},onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},ue(e,Gt))},getRootProps:function(e){return oe({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){return e.inputElement,oe({action:"",noValidate:!0,role:"search",onSubmit:function(a){var s;a.preventDefault(),t.onSubmit(oe({event:a,refresh:n,state:r.getState()},i)),r.dispatch("submit",null),null===(s=e.inputElement)||void 0===s||s.blur()},onReset:function(a){var s;a.preventDefault(),t.onReset(oe({event:a,refresh:n,state:r.getState()},i)),r.dispatch("reset",null),null===(s=e.inputElement)||void 0===s||s.focus()}},ue(e,Yt))},getLabelProps:function(e){return oe({htmlFor:"".concat(t.id,"-input"),id:"".concat(t.id,"-label")},e)},getInputProps:function(e){function a(e){(t.openOnFocus||Boolean(r.getState().query))&&te(oe({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},i)),r.dispatch("focus",null)}var s,o="ontouchstart"in t.environment,c=e||{};c.inputElement;var u=c.maxLength,l=void 0===u?512:u,f=ue(c,Xt),h=P(r.getState()),d=function(e){return Boolean(e&&e.match(Ut))}(null===(s=t.environment.navigator)||void 0===s?void 0:s.userAgent),p=null!=h&&h.itemUrl&&!d?"go":"search";return oe({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:p,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:l,type:"search",onChange:function(e){te(oe({event:e,props:t,query:e.currentTarget.value.slice(0,l),refresh:n,store:r},i))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,i=e.store,a=ae(e,Kt);if("ArrowUp"===t.key||"ArrowDown"===t.key){var s=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(i.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},o=function(){var e=P(i.getState());if(null!==i.getState().activeItemId&&e){var n=e.item,s=e.itemInputValue,o=e.itemUrl,c=e.source;c.onActive(re({event:t,item:n,itemInputValue:s,itemUrl:o,refresh:r,source:c,state:i.getState()},a))}};t.preventDefault(),!1===i.getState().isOpen&&(n.openOnFocus||Boolean(i.getState().query))?te(re({event:t,props:n,query:i.getState().query,refresh:r,store:i},a)).then(function(){i.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),o(),setTimeout(s,0)}):(i.dispatch(t.key,{}),o(),s())}else if("Escape"===t.key)t.preventDefault(),i.dispatch(t.key,null),i.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===i.getState().activeItemId||i.getState().collections.every(function(e){return 0===e.items.length}))return;t.preventDefault();var c=P(i.getState()),u=c.item,l=c.itemInputValue,f=c.itemUrl,h=c.source;if(t.metaKey||t.ctrlKey)void 0!==f&&(h.onSelect(re({event:t,item:u,itemInputValue:l,itemUrl:f,refresh:r,source:h,state:i.getState()},a)),n.navigator.navigateNewTab({itemUrl:f,item:u,state:i.getState()}));else if(t.shiftKey)void 0!==f&&(h.onSelect(re({event:t,item:u,itemInputValue:l,itemUrl:f,refresh:r,source:h,state:i.getState()},a)),n.navigator.navigateNewWindow({itemUrl:f,item:u,state:i.getState()}));else if(t.altKey);else{if(void 0!==f)return h.onSelect(re({event:t,item:u,itemInputValue:l,itemUrl:f,refresh:r,source:h,state:i.getState()},a)),void n.navigator.navigate({itemUrl:f,item:u,state:i.getState()});te(re({event:t,nextState:{isOpen:!1},props:n,query:l,refresh:r,store:i},a)).then(function(){h.onSelect(re({event:t,item:u,itemInputValue:l,itemUrl:f,refresh:r,source:h,state:i.getState()},a))})}}}(oe({event:e,props:t,refresh:n,store:r},i))},onFocus:a,onBlur:function(){o||(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())},onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||a(n)}},f)},getPanelProps:function(e){return oe({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){return oe({role:"listbox","aria-labelledby":"".concat(t.id,"-label"),id:"".concat(t.id,"-list")},e)},getItemProps:function(e){var a=e.item,s=e.source,o=ue(e,Zt);return oe({id:"".concat(t.id,"-item-").concat(a.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===a.__autocomplete_id,onMouseMove:function(e){if(a.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",a.__autocomplete_id);var t=P(r.getState());if(null!==r.getState().activeItemId&&t){var s=t.item,o=t.itemInputValue,c=t.itemUrl,u=t.source;u.onActive(oe({event:e,item:s,itemInputValue:o,itemUrl:c,refresh:n,source:u,state:r.getState()},i))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var o=s.getItemInputValue({item:a,state:r.getState()}),c=s.getItemUrl({item:a,state:r.getState()});(c?Promise.resolve():te(oe({event:e,nextState:{isOpen:!1},props:t,query:o,refresh:n,store:r},i))).then(function(){s.onSelect(oe({event:e,item:a,itemInputValue:o,itemUrl:c,refresh:n,source:s,state:r.getState()},i))})}},o)}}}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function he(e){for(var t=1;t0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:p(),plugins:i,initialState:L({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),i.forEach(function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)})},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),i.forEach(function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)})},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),i.forEach(function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)})},getSources:function(n){return Promise.all([].concat(k(i.map(function(e){return e.getSources})),[e.getSources]).filter(Boolean).map(function(e){return w(e,n)})).then(function(e){return d(e)}).then(function(e){return e.map(function(e){return L(L({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach(function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)})},onActive:function(n){e.onActive(n),t.forEach(function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)})}})})})},navigator:L({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}(e,n),i=N(en,r,function(e){var n=e.prevState,i=e.state;r.onStateChange(Re({prevState:n,state:i,refresh:t},a))}),a=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var n=0,r=e.map(function(e){return C(C({},e),{},{items:d(e.items).map(function(e){return C(C({},e),{},{__autocomplete_id:n++})})})});t.dispatch("setCollections",r)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:i}),s=le(Re({props:r,refresh:t,store:i},a));return r.plugins.forEach(function(e){var r;return null===(r=e.subscribe)||void 0===r?void 0:r.call(e,Re(Re({},a),{},{refresh:t,onSelect:function(e){n.push({onSelect:e})},onActive:function(e){n.push({onActive:e})}}))}),function(e){var t,n=e.metadata,r=e.environment;if(null===(t=r.navigator)||void 0===t?void 0:t.userAgent.includes("Algolia Crawler")){var i=r.document.createElement("meta"),a=r.document.querySelector("head");i.name="algolia:metadata",setTimeout(function(){i.content=JSON.stringify(n),a.appendChild(i)},0)}}({metadata:pe({plugins:r.plugins,options:e}),environment:r.environment}),Re(Re({refresh:t},s),a)}function we(e){var t=nn.get(this);return t||(t=new Map,nn.set(this,t)),(t=tn(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,r=1,i="",a="",s=[0],o=function(e){1===r&&(e||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(0,e,i):3===r&&(e||i)?(s.push(3,e,i),r=2):2===r&&"..."===i&&e?s.push(4,e,0):2===r&&i&&!e?s.push(5,0,!0,i):r>=5&&((i||!e&&5===r)&&(s.push(r,0,i,n),r=6),e&&(s.push(r,e,0,n),r=6)),i=""},c=0;c"===t?(r=1,i=""):i=t+i[0]:a?t===a?a="":i+=t:'"'===t||"'"===t?a=t:">"===t?(o(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[c][u+1])?(o(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return o(),s}(e)),t),arguments,[])).length>1?t:t[0]}function Pe(e,t){if("string"==typeof t){var n=e.document.querySelector(t);return"The element ".concat(JSON.stringify(t)," is not in the document."),n}return t}function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n2&&(s.children=arguments.length>3?kt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return He(e,s,r,i,null)}function He(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++Dt:i};return null==i&&null!=At.vnode&&At.vnode(a),a}function qe(e){return e.children}function Be(e,t){this.props=e,this.context=t}function We(e,t){if(null==t)return e.__?We(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?He(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(h=v[l])||h&&d.key==h.key&&d.type===h.type)v[l]=void 0;else for(f=0;f0&&void 0!==arguments[0]?arguments[0]:[];return{get:function(){return e},add:function(t){var n=e[e.length-1];(null==n?void 0:n.isHighlighted)===t.isHighlighted?e[e.length-1]={value:n.value+t.value,isHighlighted:n.isHighlighted}:e.push(t)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach(function(e){var t=e.split(mn);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})}),r.get()}function st(e){return function(e){if(Array.isArray(e))return ot(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pt(e){return function(e){if(Array.isArray(e))return Ot(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n \n',t},ln=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},fn={},hn=[],dn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;kt=hn.slice,At={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},Dt=0,Be.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=De({},this.state),"function"==typeof e&&(e=e(De({},n),this.props)),e&&De(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Ue(this))},Be.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ue(this))},Be.prototype.render=qe,Lt=[],Mt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ve.__r=0;var pn="__aa-highlight__",mn="__/aa-highlight__",gn={"&":"&","<":"<",">":">",""":'"',"'":"'"},vn=new RegExp(/\w/i),yn=/&(amp|quot|lt|gt|#39);/g,bn=RegExp(yn.source),Rn=["params"],Sn=["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components","translations"],_n={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},wn=function(e,t){var n=e.children;(0,e.render)(n,t)},Pn={createElement:Me,Fragment:qe,render:function(e,t,n){var r,i,a;At.__&&At.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],Ze(t,e=(!r&&n||t).__k=Me(qe,null,[e]),i||fn,fn,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?kt.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r),et(a,e)}},On=[{segment:"autocomplete-js",version:Wt}],xn=["components"],jn=function(e,t){function n(t){return e({searchClient:t.searchClient,queries:t.requests.map(function(e){return e.query})}).then(function(e){return e.map(function(e,n){var r=t.requests[n];return{items:e,sourceId:r.sourceId,transformResponse:r.transformResponse}})})}return function(e){return function(r){return yt(yt({requesterId:t,execute:n},e),r)}}}(function(e){return function(e){var t=e.searchClient,n=e.queries,r=e.userAgents,i=void 0===r?[]:r;return"function"==typeof t.addAlgoliaAgent&&[].concat(Pt(Qt),Pt(i)).forEach(function(e){var n=e.segment,r=e.version;t.addAlgoliaAgent(n,r)}),t.search(n.map(function(e){var t=e.params;return St(St({},wt(e,Rn)),{},{params:St({hitsPerPage:5,highlightPreTag:pn,highlightPostTag:mn},t)})})).then(function(e){return e.results})}(n(n({},e),{},{userAgents:On}))},"algolia"),In=jn({transformResponse:function(e){return e.hits}});e.autocomplete=function(e){function t(){Ce(E.value.panel,{style:O.value?{}:Nt({panelPlacement:P.value.renderer.panelPlacement,container:E.value.root,form:E.value.form,environment:P.value.core.environment})})}function r(e){j.current=e;var t={autocomplete:x.value,autocompleteScopeApi:F,classNames:P.value.renderer.classNames,components:P.value.renderer.components,container:P.value.renderer.container,html:N.value,dom:E.value,panelContainer:O.value?E.value.detachedContainer:P.value.renderer.panelContainer,propGetters:I,state:j.current,renderer:P.value.renderer.renderer},r=!g(e)&&!S.current&&P.value.renderer.renderNoResults||P.value.renderer.render;!function(e){var t=e.autocomplete,r=e.autocompleteScopeApi,i=e.dom,a=e.propGetters,s=e.state;Te(i.root,a.getRootProps(n({state:s,props:t.getRootProps({})},r))),Te(i.input,a.getInputProps(n({state:s,props:t.getInputProps({inputElement:i.input}),inputElement:i.input},r))),Ce(i.label,{hidden:"stalled"===s.status}),Ce(i.loadingIndicator,{hidden:"stalled"!==s.status}),Ce(i.clearButton,{hidden:!s.query})}(t),function(e,t){var r=t.autocomplete,i=t.autocompleteScopeApi,s=t.classNames,o=t.html,c=t.dom,u=t.panelContainer,l=t.propGetters,f=t.state,h=t.components,d=t.renderer;if(f.isOpen){u.contains(c.panel)||"loading"===f.status||u.appendChild(c.panel),c.panel.classList.toggle("aa-Panel--stalled","stalled"===f.status);var p=f.collections.filter(function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0}).map(function(e,t){var c=e.source,u=e.items;return d.createElement("section",{key:t,className:s.source,"data-autocomplete-source-id":c.sourceId},c.templates.header&&d.createElement("div",{className:s.sourceHeader},c.templates.header({components:h,createElement:d.createElement,Fragment:d.Fragment,items:u,source:c,state:f,html:o})),c.templates.noResults&&0===u.length?d.createElement("div",{className:s.sourceNoResults},c.templates.noResults({components:h,createElement:d.createElement,Fragment:d.Fragment,source:c,state:f,html:o})):d.createElement("ul",a({className:s.list},l.getListProps(n({state:f,props:r.getListProps({})},i))),u.map(function(e){var t=r.getItemProps({item:e,source:c});return d.createElement("li",a({key:t.id,className:s.item},l.getItemProps(n({state:f,props:t},i))),c.templates.item({components:h,createElement:d.createElement,Fragment:d.Fragment,item:e,state:f,html:o}))})),c.templates.footer&&d.createElement("div",{className:s.sourceFooter},c.templates.footer({components:h,createElement:d.createElement,Fragment:d.Fragment,items:u,source:c,state:f,html:o})))}),m=d.createElement(d.Fragment,null,d.createElement("div",{className:s.panelLayout},p),d.createElement("div",{className:"aa-GradientBottom"})),g=p.reduce(function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e},{});e(n(n({children:m,state:f,sections:p,elements:g},d),{},{components:h,html:o},i),c.panel)}else u.contains(c.panel)&&u.removeChild(c.panel)}(r,t)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m();var t=P.value.renderer,n=t.components,i=s(t,xn);_.current=xe(i,P.value.core,{components:je(n,function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")}),initialState:j.current},e),R(),v(),x.value.refresh().then(function(){r(j.current)})}function c(e){requestAnimationFrame(function(){var t=P.value.core.environment.document.body.contains(E.value.detachedOverlay);e!==t&&(e?(P.value.core.environment.document.body.appendChild(E.value.detachedOverlay),P.value.core.environment.document.body.classList.add("aa-Detached"),E.value.input.focus()):(P.value.core.environment.document.body.removeChild(E.value.detachedOverlay),P.value.core.environment.document.body.classList.remove("aa-Detached"),x.value.setQuery(""),x.value.refresh()))})}var u,l=function(){function e(e){t.push(e);var r=e();n.push(r)}var t=[],n=[];return{runEffect:e,cleanupEffects:function(){var e=n;n=[],e.forEach(function(e){e()})},runEffects:function(){var n=t;t=[],n.forEach(function(t){e(t)})}}}(),d=l.runEffect,m=l.cleanupEffects,v=l.runEffects,y=(u=[],{reactive:function(e){var t=e(),n={_fn:e,_ref:{current:t},get value(){return this._ref.current},set value(e){this._ref.current=e}};return u.push(n),n},runReactives:function(){u.forEach(function(e){e._ref.current=e._fn()})}}),b=y.reactive,R=y.runReactives,S=f(!1),_=f(e),w=f(void 0),P=b(function(){return function(e){var t,r=e.classNames,i=e.container,a=e.getEnvironmentProps,o=e.getFormProps,c=e.getInputProps,u=e.getItemProps,l=e.getLabelProps,f=e.getListProps,h=e.getPanelProps,d=e.getRootProps,m=e.panelContainer,g=e.panelPlacement,v=e.render,y=e.renderNoResults,b=e.renderer,R=e.detachedMediaQuery,S=e.components,_=e.translations,w=s(e,Sn),P="undefined"!=typeof window?window:{},O=Pe(P,i);O.tagName;var x=n(n({},Pn),b),j={Highlight:xt(x),ReverseHighlight:jt(x),ReverseSnippet:It(x),Snippet:Ft(x)};return{renderer:{classNames:Oe(_n,null!=r?r:{}),container:O,getEnvironmentProps:null!=a?a:function(e){return e.props},getFormProps:null!=o?o:function(e){return e.props},getInputProps:null!=c?c:function(e){return e.props},getItemProps:null!=u?u:function(e){return e.props},getLabelProps:null!=l?l:function(e){return e.props},getListProps:null!=f?f:function(e){return e.props},getPanelProps:null!=h?h:function(e){return e.props},getRootProps:null!=d?d:function(e){return e.props},panelContainer:m?Pe(P,m):P.document.body,panelPlacement:null!=g?g:"input-wrapper-width",render:null!=v?v:wn,renderNoResults:y,renderer:x,detachedMediaQuery:null!=R?R:getComputedStyle(P.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:n(n({},j),S),translations:n(n({},{clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",submitButtonTitle:"Submit"}),_)},core:n(n({},w),{},{id:null!==(t=w.id)&&void 0!==t?t:p(),environment:P})}}(_.current)}),O=b(function(){return P.value.core.environment.matchMedia(P.value.renderer.detachedMediaQuery).matches}),x=b(function(){return _e(n(n({},P.value.core),{},{onStateChange:function(e){var t,n,r;S.current=e.state.collections.some(function(e){return e.source.templates.noResults}),null===(t=w.current)||void 0===t||t.call(w,e),null===(n=(r=P.value.core).onStateChange)||void 0===n||n.call(r,e)},shouldPanelOpen:_.current.shouldPanelOpen||function(e){var t=e.state;if(O.value)return!0;var n=g(t)>0;if(!P.value.core.openOnFocus&&!t.query)return n;var r=Boolean(S.current||P.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:On,options:e}}))}),j=f(n({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},P.value.core.initialState)),I={getEnvironmentProps:P.value.renderer.getEnvironmentProps,getFormProps:P.value.renderer.getFormProps,getInputProps:P.value.renderer.getInputProps,getItemProps:P.value.renderer.getItemProps,getLabelProps:P.value.renderer.getLabelProps,getListProps:P.value.renderer.getListProps,getPanelProps:P.value.renderer.getPanelProps,getRootProps:P.value.renderer.getRootProps},F={setActiveItemId:x.value.setActiveItemId,setQuery:x.value.setQuery,setCollections:x.value.setCollections,setIsOpen:x.value.setIsOpen,setStatus:x.value.setStatus,setContext:x.value.setContext,refresh:x.value.refresh},N=b(function(){return we.bind(P.value.renderer.renderer.createElement)}),E=b(function(){return Ae({autocomplete:x.value,autocompleteScopeApi:F,classNames:P.value.renderer.classNames,environment:P.value.core.environment,isDetached:O.value,placeholder:P.value.core.placeholder,propGetters:I,setIsModalOpen:c,state:j.current,translations:P.value.renderer.translations})});return d(function(){var e=x.value.getEnvironmentProps({formElement:E.value.form,panelElement:E.value.panel,inputElement:E.value.input});return Ce(P.value.core.environment,e),function(){Ce(P.value.core.environment,Object.keys(e).reduce(function(e,t){return n(n({},e),{},i({},t,void 0))},{}))}}),d(function(){var e=O.value?P.value.core.environment.document.body:P.value.renderer.panelContainer,t=O.value?E.value.detachedOverlay:E.value.panel;return O.value&&j.current.isOpen&&c(!0),r(j.current),function(){e.contains(t)&&e.removeChild(t)}}),d(function(){var e=P.value.renderer.container;return e.appendChild(E.value.root),function(){e.removeChild(E.value.root)}}),d(function(){var e=h(function(e){r(e.state)},0);return w.current=function(n){var r=n.state,i=n.prevState;O.value&&i.isOpen!==r.isOpen&&c(r.isOpen),O.value||!r.isOpen||i.isOpen||t(),r.query!==i.query&&P.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach(function(e){0!==e.scrollTop&&(e.scrollTop=0)}),e({state:r})},function(){w.current=void 0}}),d(function(){var e=h(function(){var e=O.value;O.value=P.value.core.environment.matchMedia(P.value.renderer.detachedMediaQuery).matches,e!==O.value?o({}):requestAnimationFrame(t)},20);return P.value.core.environment.addEventListener("resize",e),function(){P.value.core.environment.removeEventListener("resize",e)}}),d(function(){function e(e){E.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}if(!O.value)return function(){};var n=P.value.core.environment.matchMedia(getComputedStyle(P.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}}),d(function(){return requestAnimationFrame(t),function(){}}),n(n({},F),{},{update:o,destroy:function(){m()}})},e.getAlgoliaFacets=function(e){var t=jn({transformResponse:function(e){return e.facetHits}}),r=e.queries.map(function(e){return n(n({},e),{},{type:"facet"})});return t(n(n({},e),{},{queries:r}))},e.getAlgoliaResults=In,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw s}}}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(l.current)?n(n({},r),{},{facetFilters:[].concat(i(null!==(e=r.facetFilters)&&void 0!==e?e:[]),i(l.current.map(function(e){return["objectID:-".concat(e.label)]}))),hitsPerPage:Math.max(1,(null!==(t=r.hitsPerPage)&&void 0!==t?t:10)-l.current.length)}):r}}),__autocomplete_pluginOptions:e}}function f(e){var t=e.query,n=e.items,r=e.limit;return t?n.filter(function(e){return e.label.toLowerCase().includes(t.toLowerCase())}).slice(0,r).map(function(e){return s({item:e,query:t})}):n.slice(0,r).map(function(e){return s({item:e,query:t})})}function h(e){return n({limit:5,search:f,transformSource:function(e){return e.source}},e)}var d="AUTOCOMPLETE_RECENT_SEARCHES",p="__AUTOCOMPLETE_RECENT_SEARCHES_PLUGIN_TEST_KEY__";e.addHighlightedAttribute=s,e.createLocalStorageRecentSearchesPlugin=function(e){var t=h(e),r=t.key,a=t.limit,s=t.transformSource,c=t.search,u=t.subscribe,f=function(e){var t=e.key,n=e.limit,r=e.search,a=o({key:t});return{onAdd:function(e){a.setItem([e].concat(i(a.getItem())))},onRemove:function(e){a.setItem(a.getItem().filter(function(t){return t.id!==e}))},getAll:function(){return r({query:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",items:a.getItem(),limit:n}).slice(0,n)}}}({key:[d,r].join(":"),limit:a,search:c});return n(n({},l({transformSource:s,storage:f,subscribe:u})),{},{name:"aa.localStorageRecentSearchesPlugin",__autocomplete_pluginOptions:e})},e.createRecentSearchesPlugin=l,e.getTemplates=c,e.search=f,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t.apply(void 0,["clickedObjectIDsAfterSearch"].concat(n))},clickedObjectIDs:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["clickedObjectIDs"].concat(n))},clickedFilters:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["convertedObjectIDsAfterSearch"].concat(n))},convertedObjectIDs:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["convertedObjectIDs"].concat(n))},convertedFilters:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["viewedObjectIDs"].concat(n))},viewedFilters:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["viewedFilters"].concat(n))}}),g={current:[]},v=s(function(e){var t=e.state;if(t.isOpen){var n=t.collections.reduce(function(e,t){return[].concat(i(e),i(t.items))},[]).filter(f);c(g.current.map(function(e){return e.objectID}),n.map(function(e){return e.objectID}))||(g.current=n,n.length>0&&d({onItemsChange:o,items:n,insights:m,state:t}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,r=e.onSelect,i=e.onActive;t({algoliaInsightsPlugin:{insights:m}}),r(function(e){var t=e.item,r=e.state,i=e.event;f(t)&&l({state:r,event:i,insights:m,item:t,insightsEvents:[n({eventName:"Item Selected"},u({item:t,items:g.current}))]})}),i(function(e){var t=e.item,r=e.state,i=e.event;f(t)&&p({state:r,event:i,insights:m,item:t,insightsEvents:[n({eventName:"Item Active"},u({item:t,items:g.current}))]})})},onStateChange:function(e){var t=e.state;v({state:t})},__autocomplete_pluginOptions:e}},Object.defineProperty(e,"__esModule",{value:!0})})}])});
-//# sourceMappingURL=algoliaBundle.min.js.map
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("algoliaBundle",[],t):"object"==typeof exports?exports.algoliaBundle=t():e.algoliaBundle=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports={$:n(1),instantsearch:n(2),algoliasearch:n(3),algoliasearchHelper:n(4),Hogan:n(27),autocomplete:n(30).autocomplete,getAlgoliaResults:n(30).getAlgoliaResults,createQuerySuggestionsPlugin:n(31),createLocalStorageRecentSearchesPlugin:n(32),createAlgoliaInsightsPlugin:n(33)}},function(e,t,n){var r,i;!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,a){function s(e){var t=!!e&&"length"in e&&e.length,n=ue.type(e);return"function"!==n&&!ue.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e,t,n){if(ue.isFunction(t))return ue.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ue.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(be.test(t))return ue.filter(t,e,n);t=ue.filter(t,e)}return ue.grep(e,function(e){return re.call(t,e)>-1!==n})}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){var t={};return ue.each(e.match(xe)||[],function(e,n){t[n]=!0}),t}function l(){Z.removeEventListener("DOMContentLoaded",l),n.removeEventListener("load",l),ue.ready()}function f(){this.expando=ue.expando+f.uid++}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Te,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Fe.test(n)?ue.parseJSON(n):n)}catch(e){}Ee.set(e,t,n)}else n=void 0;return n}function d(e,t,n,r){var i,a=1,s=20,o=r?function(){return r.cur()}:function(){return ue.css(e,t,"")},c=o(),u=n&&n[3]||(ue.cssNumber[t]?"":"px"),l=(ue.cssNumber[t]||"px"!==u&&+c)&&ke.exec(ue.css(e,t));if(l&&l[3]!==u){u=u||l[3],n=n||[],l=+c||1;do a=a||".5",l/=a,ue.style(e,t,l+u);while(a!==(a=o()/c)&&1!==a&&--s)}return n&&(l=+l||+c||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}function p(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&ue.nodeName(e,t)?ue.merge([e],n):n}function m(e,t){for(var n=0,r=e.length;n-1)i&&i.push(a);else if(u=ue.contains(a.ownerDocument,a),s=p(f.appendChild(a),"script"),u&&m(s),n)for(l=0;a=s[l++];)Me.test(a.type||"")&&n.push(a);return f}function v(){return!0}function y(){return!1}function b(){try{return Z.activeElement}catch(e){}}function w(e,t,n,r,i,a){var s,o;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(o in t)w(e,o,n,r,t[o],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=y;else if(!i)return e;return 1===a&&(s=i,i=function(e){return ue().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=ue.guid++)),e.each(function(){ue.event.add(this,t,i,r,n)})}function S(e,t){return ue.nodeName(e,"table")&&ue.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function R(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function _(e){var t=Ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function P(e,t){var n,r,i,a,s,o,c,u;if(1===t.nodeType){if(Ne.hasData(e)&&(a=Ne.access(e),s=Ne.set(t,a),u=a.events)){delete s.handle,s.events={};for(i in u)for(n=0,r=u[i].length;n1&&"string"==typeof d&&!oe.checkClone&&ze.test(d))return e.each(function(i){var a=e.eq(i);m&&(t[0]=d.call(this,i,a.html())),j(a,t,n,r)});if(f&&(i=g(t,e[0].ownerDocument,!1,e,r),a=i.firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=ue.map(p(i,"script"),R),o=s.length;l")).appendTo(t.documentElement),t=Xe[0].contentDocument,t.write(),t.close(),n=I(e,t),Xe.detach()),Ge[e]=n),n}function E(e,t,n){var r,i,a,s,o=e.style;return n=n||et(e),s=n?n.getPropertyValue(t)||n[t]:void 0,""!==s&&void 0!==s||ue.contains(e.ownerDocument,e)||(s=ue.style(e,t)),n&&!oe.pixelMarginRight()&&Ze.test(s)&&Ye.test(t)&&(r=o.width,i=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=r,o.minWidth=i,o.maxWidth=a),void 0!==s?s+"":s}function F(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function T(e){if(e in ot)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=st.length;n--;)if(e=st[n]+t,e in ot)return e}function C(e,t,n){var r=ke.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function k(e,t,n,r,i){for(var a=n===(r?"border":"content")?4:"width"===t?1:0,s=0;a<4;a+=2)"margin"===n&&(s+=ue.css(e,n+Ae[a],!0,i)),r?("content"===n&&(s-=ue.css(e,"padding"+Ae[a],!0,i)),"margin"!==n&&(s-=ue.css(e,"border"+Ae[a]+"Width",!0,i))):(s+=ue.css(e,"padding"+Ae[a],!0,i),"padding"!==n&&(s+=ue.css(e,"border"+Ae[a]+"Width",!0,i)));return s}function A(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,a=et(e),s="border-box"===ue.css(e,"boxSizing",!1,a);if(i<=0||null==i){if(i=E(e,t,a),(i<0||null==i)&&(i=e.style[t]),Ze.test(i))return i;r=s&&(oe.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+k(e,t,n||(s?"border":"content"),r,a)+"px"}function D(e,t){for(var n,r,i,a=[],s=0,o=e.length;s=0&&n=0},isPlainObject:function(e){var t;if("object"!==ue.type(e)||e.nodeType||ue.isWindow(e))return!1;if(e.constructor&&!se.call(e,"constructor")&&!se.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||se.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ie[ae.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=ue.trim(e),e&&(1===e.indexOf("use strict")?(t=Z.createElement("script"),t.text=e,Z.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(fe,"ms-").replace(he,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(s(e))for(n=e.length;rR.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[M]=!0,e}function i(e){var t=T.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=n.length;r--;)R.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||z)-(~e.sourceIndex||z);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function o(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,a=e([],n.length,t),s=a.length;s--;)n[i=a[s]]&&(n[i]=!(r[i]=n[i]))})})}function l(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function h(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,a=n.length;i-1&&(r[u]=!(s[u]=f))}}else b=g(b===s?b.splice(p,b.length):b),a?a(null,s,b,c):Y.apply(s,b)})}function y(e){for(var t,n,r,i=e.length,a=R.relative[e[0].type],s=a||R.relative[" "],o=a?1:0,c=d(function(e){return e===t},s,!0),u=d(function(e){return ee(t,e)>-1},s,!0),l=[function(e,n,r){var i=!a&&(r||n!==I)||((t=n).nodeType?c(e,n,r):u(e,n,r));return t=null,i}];o1&&p(l),o>1&&h(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(oe,"$1"),n,o0,a=e.length>0,s=function(r,s,o,c,u){var l,f,h,d=0,p="0",m=r&&[],v=[],y=I,b=r||a&&R.find.TAG("*",u),w=W+=null==y?1:Math.random()||.1,S=b.length;for(u&&(I=s===T||s||u);p!==S&&null!=(l=b[p]);p++){if(a&&l){for(f=0,s||l.ownerDocument===T||(F(l),o=!k);h=e[f++];)if(h(l,s||T,o)){c.push(l);break}u&&(W=w)}i&&((l=!h&&l)&&d--,r&&m.push(l))}if(d+=p,i&&p!==d){for(f=0;h=n[f++];)h(m,v,s,o);if(r){if(d>0)for(;p--;)m[p]||v[p]||(v[p]=X.call(c));v=g(v)}Y.apply(c,v),u&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(c)}return u&&(W=w,I=y),m};return i?r(s):s}var w,S,R,_,P,x,j,O,I,N,E,F,T,C,k,A,D,L,H,M="sizzle"+1*new Date,q=e.document,W=0,B=0,U=n(),Q=n(),$=n(),V=function(e,t){return e===t&&(E=!0),0},z=1<<31,K={}.hasOwnProperty,J=[],X=J.pop,G=J.push,Y=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(ae),he=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Se=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Re=function(){F()};try{Y.apply(J=Z.call(q.childNodes),q.childNodes),J[q.childNodes.length].nodeType}catch(e){Y={apply:J.length?function(e,t){G.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}S=t.support={},P=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},F=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:q;return r!==T&&9===r.nodeType&&r.documentElement?(T=r,C=T.documentElement,k=!P(T),(n=T.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Re,!1):n.attachEvent&&n.attachEvent("onunload",Re)),S.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),S.getElementsByTagName=i(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),S.getElementsByClassName=ge.test(T.getElementsByClassName),S.getById=i(function(e){return C.appendChild(e).id=M,!T.getElementsByName||!T.getElementsByName(M).length}),S.getById?(R.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&k){var n=t.getElementById(e);return n?[n]:[]}},R.filter.ID=function(e){var t=e.replace(we,Se);return function(e){return e.getAttribute("id")===t}}):(delete R.find.ID,R.filter.ID=function(e){var t=e.replace(we,Se);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),R.find.TAG=S.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):S.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},R.find.CLASS=S.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&k)return t.getElementsByClassName(e)},D=[],A=[],(S.qsa=ge.test(T.querySelectorAll))&&(i(function(e){C.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&A.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||A.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+M+"-]").length||A.push("~="),e.querySelectorAll(":checked").length||A.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||A.push(".#.+[+~]")}),i(function(e){var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&A.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||A.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),A.push(",.*:")})),(S.matchesSelector=ge.test(L=C.matches||C.webkitMatchesSelector||C.mozMatchesSelector||C.oMatchesSelector||C.msMatchesSelector))&&i(function(e){S.disconnectedMatch=L.call(e,"div"),L.call(e,"[s!='']:x"),D.push("!=",ae)}),A=A.length&&new RegExp(A.join("|")),D=D.length&&new RegExp(D.join("|")),t=ge.test(C.compareDocumentPosition),H=t||ge.test(C.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return E=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!S.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument===q&&H(q,e)?-1:t===T||t.ownerDocument===q&&H(q,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return E=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],c=[t];if(!i||!a)return e===T?-1:t===T?1:i?-1:a?1:N?ee(N,e)-ee(N,t):0;if(i===a)return s(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;o[r]===c[r];)r++;return r?s(o[r],c[r]):o[r]===q?-1:c[r]===q?1:0},T):T},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==T&&F(e),n=n.replace(le,"='$1']"),S.matchesSelector&&k&&!$[n+" "]&&(!D||!D.test(n))&&(!A||!A.test(n)))try{var r=L.call(e,n);if(r||S.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,T,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==T&&F(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==T&&F(e);var n=R.attrHandle[t.toLowerCase()],r=n&&K.call(R.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==r?r:S.attributes||!k?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(E=!S.detectDuplicates,N=!S.sortStable&&e.slice(0),e.sort(V),E){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return N=null,e},_=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=_(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=_(t);return n},R=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,Se),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Se),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=x(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,Se).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var a=t.attr(i,e);return null==a?"!="===n:!n||(a+="","="===n?a===r:"!="===n?a!==r:"^="===n?r&&0===a.indexOf(r):"*="===n?r&&a.indexOf(r)>-1:"$="===n?r&&a.slice(-r.length)===r:"~="===n?(" "+a.replace(se," ")+" ").indexOf(r)>-1:"|="===n&&(a===r||a.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var u,l,f,h,d,p,m=a!==s?"nextSibling":"previousSibling",g=t.parentNode,v=o&&t.nodeName.toLowerCase(),y=!c&&!o,b=!1;if(g){if(a){for(;m;){for(h=t;h=h[m];)if(o?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(h=g,f=h[M]||(h[M]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),u=l[e]||[],d=u[0]===W&&u[1],b=d&&u[2],h=d&&g.childNodes[d];h=++d&&h&&h[m]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===t){l[e]=[W,d,b];break}}else if(y&&(h=t,f=h[M]||(h[M]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),u=l[e]||[],d=u[0]===W&&u[1],b=d),b===!1)for(;(h=++d&&h&&h[m]||(b=d=0)||p.pop())&&((o?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&(f=h[M]||(h[M]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),l[e]=[W,b]),h!==t)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,n){var i,a=R.pseudos[e]||R.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[M]?a(n):a.length>1?(i=[e,e,"",n],R.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=a(e,n),s=i.length;s--;)r=ee(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return a(e,0,i)}):a}},pseudos:{not:r(function(e){var t=[],n=[],i=j(e.replace(oe,"$1"));return i[M]?r(function(e,t,n,r){for(var a,s=i(e,null,r,[]),o=e.length;o--;)(a=s[o])&&(e[o]=!(t[o]=a))}):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(we,Se),function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}}),lang:r(function(e){return he.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Se).toLowerCase(),function(t){var n;do if(n=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===C},focus:function(e){return e===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected;
+},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!R.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(s=a[0]).type&&S.getById&&9===t.nodeType&&k&&R.relative[a[1].type]){if(t=(R.find.ID(s.matches[0].replace(we,Se),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=de.needsContext.test(e)?0:a.length;i--&&(s=a[i],!R.relative[o=s.type]);)if((c=R.find[o])&&(r=c(s.matches[0].replace(we,Se),ye.test(a[0].type)&&l(t.parentNode)||t))){if(a.splice(i,1),e=r.length&&h(a),!e)return Y.apply(n,r),n;break}}return(u||j(e,f))(r,t,!k,n,!t||ye.test(e)&&l(t.parentNode)||t),n},S.sortStable=M.split("").sort(V).join("")===M,S.detectDuplicates=!!E,F(),S.sortDetached=i(function(e){return 1&e.compareDocumentPosition(T.createElement("div"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),S.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||a(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(n);ue.find=pe,ue.expr=pe.selectors,ue.expr[":"]=ue.expr.pseudos,ue.uniqueSort=ue.unique=pe.uniqueSort,ue.text=pe.getText,ue.isXMLDoc=pe.isXML,ue.contains=pe.contains;var me=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ue(e).is(n))break;r.push(e)}return r},ge=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ve=ue.expr.match.needsContext,ye=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,be=/^.[^:#\[\.,]*$/;ue.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ue.find.matchesSelector(r,e)?[r]:[]:ue.find.matches(e,ue.grep(t,function(e){return 1===e.nodeType}))},ue.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(ue(e).filter(function(){for(t=0;t1?ue.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&ve.test(e)?ue(e):e||[],!1).length}});var we,Se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Re=ue.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||we,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Se.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ue?t[0]:t,ue.merge(this,ue.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:Z,!0)),ye.test(r[1])&&ue.isPlainObject(t))for(r in t)ue.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=Z.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=Z,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ue.isFunction(e)?void 0!==n.ready?n.ready(e):e(ue):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ue.makeArray(e,this))};Re.prototype=ue.fn,we=ue(Z);var _e=/^(?:parents|prev(?:Until|All))/,Pe={children:!0,contents:!0,next:!0,prev:!0};ue.fn.extend({has:function(e){var t=ue(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&ue.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?ue.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?re.call(ue(e),this[0]):re.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ue.uniqueSort(ue.merge(this.get(),ue(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ue.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return me(e,"parentNode")},parentsUntil:function(e,t,n){return me(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return me(e,"nextSibling")},prevAll:function(e){return me(e,"previousSibling")},nextUntil:function(e,t,n){return me(e,"nextSibling",n)},prevUntil:function(e,t,n){return me(e,"previousSibling",n)},siblings:function(e){return ge((e.parentNode||{}).firstChild,e)},children:function(e){return ge(e.firstChild)},contents:function(e){return e.contentDocument||ue.merge([],e.childNodes)}},function(e,t){ue.fn[e]=function(n,r){var i=ue.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ue.filter(r,i)),this.length>1&&(Pe[e]||ue.uniqueSort(i),_e.test(e)&&i.reverse()),this.pushStack(i)}});var xe=/\S+/g;ue.Callbacks=function(e){e="string"==typeof e?u(e):ue.extend({},e);var t,n,r,i,a=[],s=[],o=-1,c=function(){for(i=e.once,r=t=!0;s.length;o=-1)for(n=s.shift();++o-1;)a.splice(n,1),n<=o&&o--}),this},has:function(e){return e?ue.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=s=[],n||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},ue.extend({Deferred:function(e){var t=[["resolve","done",ue.Callbacks("once memory"),"resolved"],["reject","fail",ue.Callbacks("once memory"),"rejected"],["notify","progress",ue.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ue.Deferred(function(n){ue.each(t,function(t,a){var s=ue.isFunction(e[t])&&e[t];i[a[1]](function(){var e=s&&s.apply(this,arguments);e&&ue.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ue.extend(e,r):r}},i={};return r.pipe=r.then,ue.each(t,function(e,a){var s=a[2],o=a[3];r[a[1]]=s.add,o&&s.add(function(){n=o},t[1^e][2].disable,t[2][2].lock),i[a[0]]=function(){return i[a[0]+"With"](this===i?r:this,arguments),this},i[a[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,a=ee.call(arguments),s=a.length,o=1!==s||e&&ue.isFunction(e.promise)?s:0,c=1===o?e:ue.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ee.call(arguments):i,r===t?c.notifyWith(n,r):--o||c.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);i0||(je.resolveWith(Z,[ue]),ue.fn.triggerHandler&&(ue(Z).triggerHandler("ready"),ue(Z).off("ready"))))}}),ue.ready.promise=function(e){return je||(je=ue.Deferred(),"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?n.setTimeout(ue.ready):(Z.addEventListener("DOMContentLoaded",l),n.addEventListener("load",l))),je.promise(e)},ue.ready.promise();var Oe=function(e,t,n,r,i,a,s){var o=0,c=e.length,u=null==n;if("object"===ue.type(n)){i=!0;for(o in n)Oe(e,t,o,n[o],!0,a,s)}else if(void 0!==r&&(i=!0,ue.isFunction(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(ue(e),n)})),t))for(;o-1&&void 0!==n&&Ee.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ee.remove(this,e)})}}),ue.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Ne.get(e,t),n&&(!r||ue.isArray(n)?r=Ne.access(e,t,ue.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ue.queue(e,t),r=n.length,i=n.shift(),a=ue._queueHooks(e,t),s=function(){ue.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,s,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ne.get(e,n)||Ne.access(e,n,{empty:ue.Callbacks("once memory").add(function(){Ne.remove(e,[t+"queue",n])})})}}),ue.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length",""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};qe.optgroup=qe.option,qe.tbody=qe.tfoot=qe.colgroup=qe.caption=qe.thead,qe.th=qe.td;var We=/<|?\w+;/;!function(){var e=Z.createDocumentFragment(),t=e.appendChild(Z.createElement("div")),n=Z.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),oe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",oe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Be=/^key/,Ue=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qe=/^([^.]*)(?:\.(.+)|)/;ue.event={global:{},add:function(e,t,n,r,i){var a,s,o,c,u,l,f,h,d,p,m,g=Ne.get(e);if(g)for(n.handler&&(a=n,n=a.handler,i=a.selector),n.guid||(n.guid=ue.guid++),(c=g.events)||(c=g.events={}),(s=g.handle)||(s=g.handle=function(t){return"undefined"!=typeof ue&&ue.event.triggered!==t.type?ue.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(xe)||[""],u=t.length;u--;)o=Qe.exec(t[u])||[],d=m=o[1],p=(o[2]||"").split(".").sort(),d&&(f=ue.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ue.event.special[d]||{},l=ue.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ue.expr.match.needsContext.test(i),namespace:p.join(".")},a),(h=c[d])||(h=c[d]=[],h.delegateCount=0,f.setup&&f.setup.call(e,r,p,s)!==!1||e.addEventListener&&e.addEventListener(d,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),ue.event.global[d]=!0)},remove:function(e,t,n,r,i){var a,s,o,c,u,l,f,h,d,p,m,g=Ne.hasData(e)&&Ne.get(e);if(g&&(c=g.events)){for(t=(t||"").match(xe)||[""],u=t.length;u--;)if(o=Qe.exec(t[u])||[],d=m=o[1],p=(o[2]||"").split(".").sort(),d){for(f=ue.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,h=c[d]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=h.length;a--;)l=h[a],!i&&m!==l.origType||n&&n.guid!==l.guid||o&&!o.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(a,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(e,l));s&&!h.length&&(f.teardown&&f.teardown.call(e,p,g.handle)!==!1||ue.removeEvent(e,d,g.handle),delete c[d])}else for(d in c)ue.event.remove(e,d+t[u],n,r,!0);ue.isEmptyObject(c)&&Ne.remove(e,"handle events")}},dispatch:function(e){e=ue.event.fix(e);var t,n,r,i,a,s=[],o=ee.call(arguments),c=(Ne.get(this,"events")||{})[e.type]||[],u=ue.event.special[e.type]||{};if(o[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(s=ue.event.handlers.call(this,e,c),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(a.namespace)||(e.handleObj=a,e.data=a.data,r=((ue.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,o),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,a,s=[],o=t.delegateCount,c=e.target;if(o&&c.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(c.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n-1:ue.find(i,this,null,[c]).length),r[i]&&r.push(a);r.length&&s.push({elem:c,handlers:r})}return o]*)\/>/gi,Ve=/