1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f5c88980-4b20-42c8-a374-a54b45807113",e._sentryDebugIdIdentifier="sentry-dbid-f5c88980-4b20-42c8-a374-a54b45807113")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9298],{84:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{_:()=>i})},1431:(e,t,r)=>{"use strict";r.d(t,{Y:()=>f});var n=r(82994),i=r(17591),a=r(99989),s=r(35029),c=r(63203),o=r(88177),u=r(12115),l=r(53867),h=r(73569);function d(e){var t=e.classNames,r=void 0===t?{}:t,i=(0,a._)(e,["classNames"]);return u.createElement(h.G,(0,n._)({classNames:{root:(0,l.cx)("ais-Snippet",r.root),highlighted:(0,l.cx)("ais-Snippet-highlighted",r.highlighted),nonHighlighted:(0,l.cx)("ais-Snippet-nonHighlighted",r.nonHighlighted),separator:(0,l.cx)("ais-Snippet-separator",r.separator)}},i))}function f(e){var t=e.hit,r=e.attribute,l=e.highlightedTagName,h=e.nonHighlightedTagName,f=e.separator,m=(0,a._)(e,["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"]),g=(0,s.E)(t._snippetResult,r)||[],p=(Array.isArray(g)?g:[g]).map(function(e){return(0,c.I)((0,o.x)(e.value||""))});return u.createElement(d,(0,i._)((0,n._)({},m),{parts:p,highlightedTagName:l,nonHighlightedTagName:h,separator:f}))}},3142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={StaticGenBailoutError:function(){return a},isStaticGenBailoutError:function(){return s}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="NEXT_STATIC_GEN_BAILOUT";class a extends Error{constructor(...e){super(...e),this.code=i}}function s(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===i}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6431:(e,t,r)=>{"use strict";var n=r(95273),i=r(27355),a=r(21605),s=r(91733),c=r(17523);function o(e,t,r,i){return new n(e,t,r,i)}o.version=r(18110),o.AlgoliaSearchHelper=n,o.SearchParameters=s,o.RecommendParameters=i,o.SearchResults=c,o.RecommendResults=a,e.exports=o},8105:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},8135:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){var n="number"==typeof e[r]?e[r]:0,i=t[r];void 0!==i&&i>=n&&(void 0!==e[r]&&delete e[r],e[r]=i)}),e},{})}},9334:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var n=(0,r(12115).createContext)(null)},9603:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}}},10484:(e,t,r)=>{"use strict";e.exports=r(25499)},14097:(e,t,r)=>{"use strict";var n=r(29792),i=r(8105),a=r(27685),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],c={};return c[t]=a,n(c,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,function(e,r){return t===r});var n=""+r;return s.clearRefinement(e,function(e,r){return t===r&&n===e})},toggleRefinement:function(e,t,r){if(void 0===r)throw Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return a(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce(function(i,a){var s=e[a]||[],c=s.filter(function(e){return!t(e,a,r)});return c.length!==s.length&&(n=!0),i[a]=c,i},{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}};e.exports=s},15252:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n=r(82994),i=r(99989),a=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=(0,i._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)}
1,s=function(e,t){var r=[].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean).filter(function(e,t,r){return r.indexOf(e)===t});return r.length>0?e.setQueryParameters({ruleContexts:r}):e},c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r,i,c,o,u,l,h,d;return a((d=s((r=e.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)}),i=r.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}(e,function(e){return e.name===t.name});if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n},r.hierarchicalFacets)}),c=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},i),o=c.setQueryParameters({numericRefinements:(0,n._)({},c.numericRefinements,t.numericRefinements)}),u=o.setQueryParameters({disjunctiveFacetsRefinements:(0,n._)({},o.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)}),l=u.setQueryParameters({facetsExcludes:(0,n._)({},u.facetsExcludes,t.facetsExcludes)}),h=l.setQueryParameters({facetsRefinements:(0,n._)({},l.facetsRefinements,t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},h)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},d)),t)})}},15570:(e,t,r)=>{"use strict";r.d(t,{G:()=>ew});var n=r(99989),i=r(12115),a=r(78699),s=r(91964),c=r(82994),o=r(90063);function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var h=r(84785),d=r(69961),f=r(84),m=r(29356);function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=r(32789),v=r(85668),y=r(50605),R=r(6431),_=r(17591);function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}var b="4.114.0",E=r(29454),w="ais.usage.sessionId",x=null,P="u">typeof performance?function(){return performance.now()}:function(){return Date.now()},j=r(59218),O=r(90704);function T(e){var t=[];return Object.keys(e).forEach(function(r){var n=e[r];if(void 0!==n){var i=function(e){if(null==e)return null;var t=void 0===e?"undefined":(0,h._)(e);if("string"===t||"number"===t||"boolean"===t)return{value:String(e),type:t};if(Array.isArray(e)||"object"===t){var r=Array.isArray(e)?"array":"object";try{return{value:JSON.stringify(e),type:r}}catch(e){return{type:r}}}return"function"===t?{value:e.name,type:"function"}:null}(n);i?t.push((0,c._)({name:r},i)):t.push({name:r})}}),t}var F=r(96964);function A(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(!e.transporter)return[e.applicationID,e.apiKey];var t=e.transporter,r=t.headers||t.baseHeaders,n=t.queryParameters||t.baseQueryParameters,i="x-algolia-application-id",a="x-algolia-api-key";return[r[i]||n[i],r[a]||n[a]]}function I(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}var k=r(60602);function D(e){return e.transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua}var C="2.17.2",N="https://cdn.jsdelivr.net/npm/search-insights@".concat(C,"/dist/search-insights.min.js"),H=["searchClient","insightsClient","initialUiState"];function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=void 0!==i&&i,s=e.$$automatic,u=void 0!==s&&s,l=t;t||null===t||(0,F.x)(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(l=t[r]),l||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t[r].queue||(t[r].queue=[]),t[r].queue.push(n)},t[r].version=C,t[r].shouldAddScript=!0),l=t[r])});var d=l||k.l;return function(e){var t,i,s,l=e.instantSearchInstance,f=l.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});l.unuse.apply(l,(0,o._)(f));var m=(0,v._)(A(l.client),2),g=m[0],p=m[1],y=void 0,R=void 0,E=void 0,C=d.queue;Array.isArray(C)&&(R=(t=(0,v._)(["setUserToken","init"].map(function(e){return(0,v._)(I(C.slice().reverse(),function(t){return(0,v._)(t,1)[0]===e})||[],2)[1]}),2))[0],y=t[1]),d("getUserToken",null,function(e,t){E=L(t)}),(r||!$(d))&&d("init",(0,c._)({appId:g,apiKey:p,partial:!0},r));var W=null;return{$$type:"ais.insights",$$internal:a,$$automatic:u,onStateChange:function(){},subscribe:function(){if(d.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var t=document.createElement("script");t.async=!0,t.src=N,t.onerror=function(){l.emit("error",Error(e))},document.body.appendChild(t),d.shouldAddScript=!1}catch(t){d.shouldAddScript=!1,l.emit("error",Error(e))}}},started:function(){d("addAlgoliaAgent","insights-middleware"),s=l.mainHelper;var e,t,f,m,p,k,C,N,U,M,Q,q,B=d.queue;Array.isArray(B)&&(R=(M=(0,v._)(["setUserToken","init"].map(function(e){return(0,v._)(I(B.slice().reverse(),function(t){return(0,v._)(t,1)[0]===e})||[],2)[1]}),2))[0],y=M[1]),m=(null==(f=(e=l)._initialResults)||null==(t=f[e.indexName])?void 0:t.state)||{},p=e.mainHelper.state,i={userToken:m.userToken||p.userToken,clickAnalytics:m.clickAnalytics||p.clickAnalytics},u||s.overrideStateWithoutTriggeringChangeEvent((0,_._)((0,c._)({},s.state),{clickAnalytics:!0})),a||l.scheduleSearch();var X=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=L(e);if(r){var n=s.state.userToken;t?i():setTimeout(i,0)}function i(){s.overrideStateWithoutTriggeringChangeEvent((0,_._)((0,c._)({},s.state),{userToken:r})),n&&n!==r&&(s._recommendCache={},l.scheduleSearch())}};function V(e){X(e,!0),d("setUserToken",e)}var J=void 0,G=function(){if(("u"<typeof document?"undefined":(0,h._)(document))==="object"&&"string"==typeof document.cookie)for(var e="".concat("_ALGOLIA","="),t=document.cookie.split(";"),r=0;r<t.length;r++){for(var n=t[r];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return n.substring(e.length,n.length)}}();J=G||"anonymous-".concat(S());var z=i.userToken;(null==r?void 0:r.userToken)&&(Q=r.userToken),Q?V(Q):z?V(z):E?V(E):R?V(R):J&&(V(J),((null==r?void 0:r.useCookie)||(null==y?void 0:y.useCookie))&&(k=J,C=(null==r?void 0:r.cookieDuration)||(null==y?void 0:y.cookieDuration),(N=new Date).setTime(N.getTime()+(C||15552e6)),U="expires=".concat(N.toUTCString()),document.cookie="_ALGOLIA=".concat(k,";").concat(U,";path=/"))),d("onUserTokenChange",function(e){return X(e,!0)},{immediate:!0});var Y=d;$(d)&&(Y=function(e,t){var r=(0,v._)(A(l.client),2);return d(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var K=new Set;l.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==q)&&(q=t.queryID,K.clear())}),l.sendEventToInsights=function(e){if(n)n(e,Y);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=function(e){return t.queryID?"".concat(t.queryID,":").concat(e):e},i=t.objectIDs.filter(function(e){return!K.has(r(e))});if(0===i.length)return;
1i.forEach(function(e){return K.add(r(e))}),t.objectIDs=i}e.payload.algoliaSource=["instantsearch"],u&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),Y(e.insightsMethod,e.payload)}},(0,F.x)(function(){var e=function(){if(x)return x;try{var e=sessionStorage.getItem(w);if(e)return x=e;return x=S(),sessionStorage.setItem(w,x),x}catch(e){return x=S()}}(),t=function(){try{var t,r,n,i,a,u=Math.round(P()-l._createdAt);n={eventName:"__start__",algoliaAgent:D(l.client),version:b,applicationId:g,performance:{bootstrapMs:u},widgets:[{type:"ais.instantSearch",params:l._initialOptions?T((t=l._initialOptions,r=(0,o._)(H),null==t?t:Object.keys(t).reduce(function(e,n){return r.indexOf(n)>=0||(e[n]=t[n]),e},{}))):[],children:function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.mainIndex,i=(0,O.eX)(r,n,r._initialUiState);return t.map(function(t){var n={};if(t.getWidgetRenderState){var a=t.getWidgetRenderState(i);a&&a.widgetParams&&(n=a.widgetParams)}var s=T(n),c=(0,j.l)(t)?e(t.getWidgets(),r,t):[];return{type:t.$$widgetType||t.$$type||"unknown",params:s,children:c}})}(l.mainIndex.getWidgets(),l)}]},a=null==(i=s.state)?void 0:i.userToken,Y("sendEvents",[(0,c._)({eventType:"instantsearch",timestamp:Date.now(),sessionID:e,userToken:a?String(a):void 0},n)])}catch(e){}};l.once("render",t),W=function(){return l.removeListener("render",t)}})},unsubscribe:function(){W&&W(),d("onUserTokenChange",void 0),l.sendEventToInsights=k.l,s&&i&&(s.overrideStateWithoutTriggeringChangeEvent((0,c._)({},s.state,i)),l.scheduleSearch())}}}}function $(e){var t=(0,v._)((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function L(e){if(e)return"number"==typeof e?e.toString():e}var U=r(90537);function M(e){return e.configure,(0,n._)(e,["configure"])}function Q(e){return e!==Object(e)}var q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?(0,U.A)():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,_._)((0,c._)({},t),(0,m._)({},r,M(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return(void 0===n?"undefined":(0,h._)(n))!=="object"||null===n?t:(0,_._)((0,c._)({},t),(0,m._)({},r,M(n)))},{})}}:n,a=e.$$internal,s=void 0!==a&&a;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var n=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),a=Object.keys(e).reduce(function(t,r){return(0,_._)((0,c._)({},t),(0,m._)({},r,e[r]))},n),s=i.stateToRoute(a);return r.createURL(s)};var n=void 0,a=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:s,onStateChange:function(e){var t=e.uiState,a=i.stateToRoute(t);(void 0===n||!function e(t,r){if(t===r)return!0;if(Q(t)||Q(r)||"function"==typeof t||"function"==typeof r)return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;var n=!0,i=!1,a=void 0;try{for(var s,c=Object.keys(t)[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var o=s.value;if(!(o in r)||!e(t[o],r[o]))return!1}}catch(e){i=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return!0}(n,a))&&(r.write(a),n=a)},subscribe:function(){t._initialUiState=(0,c._)({},a,i.routeToState(r.read())),r.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;null==(e=r.start)||e.call(r)},unsubscribe:function(){r.dispose()}}}}
1,B=r(88686),X=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName;return"".concat("ais","-").concat(e).concat(r?"-".concat(r):"").concat(n?"--".concat(n):"")}},V=r(35029),J=r(45667),G=X("Highlight");function z(e){var t=J.sn.highlightPreTag,r=J.sn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}var Y=r(88177),K=new RegExp(/\w/i);function Z(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,s,o,u,l;return(0,_._)((0,c._)({},t),{isHighlighted:(o=e[r],u=null==(n=null==(a=e[r+1])?void 0:a.isHighlighted)||n,l=null==(i=null==(s=e[r-1])?void 0:s.isHighlighted)||i,K.test((0,Y.x)(o.value))||l!==u?!o.isHighlighted:!l)})}):e.map(function(e){return(0,_._)((0,c._)({},e),{isHighlighted:!1})})}var ee=r(63203),et=X("ReverseHighlight"),er=X("Snippet"),en=X("ReverseSnippet");function ei(e){var t;return(null==(t=e.compositionFeedsResults)?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function ea(e){var t=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})};return Object.keys(e).map(function(r){var n;return t("%s=%s",r,(n=e[r],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n))?JSON.stringify(e[r]):e[r])}).join("&")}function es(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(j.l).forEach(function(t){return es(e,t)})}var ec=r(77824),eo=r(48270),eu=(0,ec.V)({name:"instantsearch"});function el(){return"#"}var eh={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},ed=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){(0,d._)(this,t),r=function(e,t){t=u(t);var r=l()?Reflect.construct(t,[],u(e).constructor):t.apply(e,void 0);if(r&&("object"===(0,h._)(r)||"function"==typeof r))return r;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t),(0,m._)(r,"client",void 0),(0,m._)(r,"indexName",void 0),(0,m._)(r,"compositionID",void 0),(0,m._)(r,"insightsClient",void 0),(0,m._)(r,"onStateChange",null),(0,m._)(r,"future",void 0),(0,m._)(r,"helper",void 0),(0,m._)(r,"mainHelper",void 0),(0,m._)(r,"mainIndex",void 0),(0,m._)(r,"started",void 0),(0,m._)(r,"templatesConfig",void 0),(0,m._)(r,"renderState",{}),(0,m._)(r,"_stalledSearchDelay",void 0),(0,m._)(r,"_searchStalledTimer",void 0),(0,m._)(r,"_initialUiState",void 0),(0,m._)(r,"_initialResults",void 0),(0,m._)(r,"_manuallyResetScheduleSearch",!1),(0,m._)(r,"_resetScheduleSearch",void 0),(0,m._)(r,"_createURL",void 0),(0,m._)(r,"_searchFunction",void 0),(0,m._)(r,"_mainHelperSearch",void 0),(0,m._)(r,"_hasSearchWidget",!1),(0,m._)(r,"_hasRecommendWidget",!1),(0,m._)(r,"_insights",void 0),(0,m._)(r,"_initialOptions",void 0),(0,m._)(r,"middleware",[]),(0,m._)(r,"sendEventToInsights",void 0),(0,m._)(r,"_createdAt",P()),(0,m._)(r,"status","idle"),(0,m._)(r,"error",void 0),(0,m._)(r,"scheduleSearch",(0,eo.v)(function(){r.started&&r.mainHelper.search()})),(0,m._)(r,"scheduleRender",(0,eo.v)(function(){var e,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(null==(e=r.mainHelper)?void 0:e.hasPendingRequests())||(clearTimeout(r._searchStalledTimer),r._searchStalledTimer=null,t&&(r.status="idle",r.error=void 0)),r.mainIndex.render({instantSearchInstance:r}),r.emit("render")},function(e,t){var r=(0,v._)(e,1)[0],n=(0,v._)(t,1)[0];return[void 0===r||r||void 0===n||n]})),(0,m._)(r,"onInternalStateChange",(0,eo.v)(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var r,n=e.indexName,i=e.compositionID,a=e.numberLocale,s=e.initialUiState,o=e.routing,f=void 0===o?null:o,g=e.insights,p=void 0===g?void 0:g,y=e.searchFunction,R=e.stalledSearchDelay,S=e.searchClient,w=void 0===S?null:S,x=e.insightsClient,T=void 0===x?null:x,A=e.onStateChange,I=e.future,C=void 0===I?(0,c._)({},eh,e.future||{}):I;if(null===w)throw Error(eu("The `searchClient` option is required."));if("function"!=typeof w.search)throw Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof w.addAlgoliaAgent&&w.addAlgoliaAgent("instantsearch.js (".concat(b,")")),T&&"function"!=typeof T)throw Error(eu("The `insightsClient` option should be a function."));if(r._initialOptions=e,r.client=w,r.future=C,r.insightsClient=T,r.indexName=void 0===n?"":n,r.compositionID=i,r.helper=null,r.mainHelper=null,r.mainIndex=(0,B.A)({indexName:r.compositionID||r.indexName}),r.onStateChange=void 0===A?null:A,r.started=!1,r.templatesConfig={helpers:{formatNumber:function(e,t){var r;
1return r=Number(t(e)),r.toLocaleString(a)},highlight:function(e,t){try{var r,n,i,a,s,o,u,l,h,d=JSON.parse(e);return t((n=(r=(0,_._)((0,c._)({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,u=void 0===o?{}:o,l=((0,V.E)(s._highlightResult,n)||{}).value,h=G({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(J.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(J.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r,n,i,a,s,o,u,l,h,d=JSON.parse(e);return t((n=(r=(0,_._)((0,c._)({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,u=void 0===o?{}:o,l=((0,V.E)(s._highlightResult,n)||{}).value,h=et({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),z(Z((0,ee.I)(void 0===l?"":l))).replace(RegExp(J.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(J.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n The reverseHighlight helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r,n,i,a,s,o,u,l,h,d=JSON.parse(e);return t((n=(r=(0,_._)((0,c._)({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,u=void 0===o?{}:o,l=((0,V.E)(s._snippetResult,n)||{}).value,h=er({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(J.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(J.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r,n,i,a,s,o,u,l,h,d=JSON.parse(e);return t((n=(r=(0,_._)((0,c._)({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,u=void 0===o?{}:o,l=((0,V.E)(s._snippetResult,n)||{}).value,h=en({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),z(Z((0,ee.I)(void 0===l?"":l))).replace(RegExp(J.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(J.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n The reverseSnippet helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r,n=JSON.parse(e),i=n.method,a=n.payload;return t((r=(0,c._)({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if((void 0===n?"undefined":(0,h._)(n))!=="object")throw Error("The insights helper expects the payload to be an object.");try{t=(0,E.h)(n)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:i,payload:r})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},r._stalledSearchDelay=void 0===R?200:R,r._searchStalledTimer=null,r._createURL=el,r._initialUiState=void 0===s?{}:s,r._initialResults=null,r._insights=p,y&&(r._searchFunction=y),r.sendEventToInsights=k.l,f){var N="boolean"==typeof f?{}:f;N.$$internal=!0,r.use(q(N))}if(p){var H="boolean"==typeof p?{}:p;H.$$internal=!0,r.use(W(H))}return(0,F.x)(function(e){var t,r;return(null==(r=e.window.navigator)||null==(t=r.userAgent)?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&r.use(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.$$internal,r=void 0!==t&&t;return function(e){var t=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),a=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){n.ua=D(t.client),function e(t,r,n){var i=arguments.length>
13&&void 0!==arguments[3]?arguments[3]:r.mainIndex,a=(0,O.eX)(r,i,r._initialUiState);t.forEach(function(t){var i={};if(t.getWidgetRenderState){var s=t.getWidgetRenderState(a);s&&s.widgetParams&&(i=s.widgetParams)}var c=Object.keys(i).filter(function(e){return void 0!==i[e]});n.widgets.push({type:t.$$type,widgetType:t.$$widgetType,params:c}),(0,j.l)(t)&&e(t.getWidgets(),r,n,t)})}(t.mainIndex.getWidgets(),t,n),t.middleware.forEach(function(e){return n.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(n),a.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}({$$internal:!0})),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e),(0,f._)(t,[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.map(function(t){var r=(0,c._)({$$type:"__unknown__",$$internal:!1,subscribe:k.l,started:k.l,unsubscribe:k.l,onStateChange:k.l},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.use.apply(this,(0,o._)(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(eu("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,j.l)(e)&&!e._isolated}))throw Error(eu("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw Error(eu("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw Error(eu("The `start` method has already been called once."));var t=this.mainHelper||R(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){var r=e._hasSearchWidget||e._hasRecommendWidget;return r&&(e.status="loading"),e.scheduleRender(!r),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(k.l)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=R(r,n.state.index,n.state);return i.once("search",function(t){var r=t.state;n.overrideStateWithoutTriggeringChangeEvent(r),e._mainHelperSearch()}),i.on("change",function(e){var t=e.state;n.setState(t)}),e._searchFunction(i),t}}if(t.on("error",function(t){var r=t.error;if(!(0,p._)(r,Error)){var n=r;r=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},Error(n.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!e._hasSearchWidget&&!e._hasRecommendWidget),e.emit("error",r)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){!function(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var r=[Object.keys(t).reduce(function(e,r){var n=t[r],i=n.state,a=n.requestParam
1s,s=ei(n),o=s&&i?s.map(function(e,t){return(0,c._)({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:ea((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=(0,v._)(t.split("="),2),n=r[0],i=r[1];return e[n]=i?decodeURIComponent(i):"",e},{}))}:{})}):[];return e.concat(o)},[])],n=Object.keys(t).reduce(function(e,r){var n=ei(t[r]);return n?e.concat(n):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var s=Array.isArray(t)?t.map(function(e){return(0,_._)((0,c._)({},e),{params:ea(e.params)})}):ea(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[s].concat((0,o._)(n))},function(){return i.apply(void 0,[t].concat((0,o._)(n)))})},e.transporter.responsesCache.set({method:"search",args:r},{results:n})}if(!("transporter"in e)){var a="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=(0,_._)((0,c._)({},e.cache),(0,m._)({},a,JSON.stringify({results:Object.keys(t).map(function(e){return ei(t[e])})})))}}}(this.client,this._initialResults),this.mainHelper._recommendCache=Object.keys(n=this._initialResults).reduce(function(e,t){var r=n[t];return r.recommendResults?(0,c._)({},e,r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=(0,eo.v)(k.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:(0,eo.v)(function(){e.scheduleSearch=i})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()}),void 0===this._insights&&t.derivedHelpers[0].once("result",function(){e.mainIndex.getScopedResults().some(function(e){var t=e.results;return null==t?void 0:t._automaticInsights})&&e.use(W({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),null==(e=this.mainHelper)||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()}),this._initialOptions=null}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!this.mainHelper)throw Error(eu("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var n="function"==typeof e?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&r?this.onStateChange({uiState:n,setUiState:function(e){es("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(es(n,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.started)throw Error(eu("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(eu("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(y),ef=r(10484),em="7.47.0",eg=r(95136),ep=r(65159),ev=r(93623),ey=r(52307),eR=r(58668),e_=r(52474),eS=["react (".concat(i.version,")"),"react-instantsearch (".concat(em,")"),"react-instantsearch-core (".concat(em,")")],eb="react-instantsearch-server (".concat(em,")");function eE(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}function ew(e){var t=e.children,r=function(e){var t=(0,ep.C)(),r=(0,ev.r)(),n=(0,ey.m)(),a=(0,eR.t)().waitForResultsRef,s=null==n?void 0:n.initialResults,u=(0,i.useRef)(e),l=r||s||a,h=(0,i.useRef)(null);if((null==n?void 0:n.ssrSearchRef)&&(h=n.ssrSearchRef),null===h.current){var d,f,m=new ed(e);m._schedule=function(e){m._schedule.queue.push(e),clearTimeout(m._schedule.timer),m._schedule.timer=setTimeout(function(){m._schedule.queue.forEach(function(e){e()}),m._schedule.queue=[]},0)},m._schedule.queue=[],l&&(m._initialResults=s||{},m._manuallyResetScheduleSearch=!0),eE(e.searchClient,(0,o._)(eS).concat([r&&eb,(f="u">typeof window&&(null==(d=window.next)?void 0:d.version)||(void 0!==e_?null==e_.env?void 0:"":void 0))?"next.js (".concat(f,")"):null])),l&&m.start(),r&&r.notifyServer({search:m}
1),e.routing,h.current=m}var g,p=h.current,v=u.current;v.indexName!==e.indexName&&(p.helper.setIndex(e.indexName||"").search(),u.current=e),v.searchClient!==e.searchClient&&(eE(e.searchClient,(0,o._)(eS).concat([r&&eb])),p.mainHelper.setClient(e.searchClient).search(),u.current=e),v.onStateChange!==e.onStateChange&&(p.onStateChange=e.onStateChange,u.current=e),v.searchFunction!==e.searchFunction&&(p._searchFunction=e.searchFunction,u.current=e),v.stalledSearchDelay!==e.stalledSearchDelay&&(p._stalledSearchDelay=null!=(g=e.stalledSearchDelay)?g:200,u.current=e),(0,eg.j)(v.future,e.future)||(p.future=(0,c._)({},eh,e.future),u.current=e);var y=(0,i.useRef)(null);return(0,ef.useSyncExternalStore)((0,i.useCallback)(function(){var e=h.current;return null===y.current?e.started||(e.start(),t()):(clearTimeout(y.current),e._preventWidgetCleanup=!1),function(){null!=n&&n.ssrSearchRef||(clearTimeout(e._schedule.timer),y.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,n]),function(){return h.current},function(){return h.current})}((0,n._)(e,["children"]));return r.started?i.createElement(s.t.Provider,{value:r},i.createElement(a.m.Provider,{value:r.mainIndex},t,i.createElement(ex,{search:r}))):null}function ex(e){var t=e.search;return(0,i.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}},16806:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},17523:(e,t,r)=>{"use strict";var n=r(60233),i=r(29792),a=r(92623),s=r(9603),c=r(90109),o=r(89491),u=r(8135),l=r(52941),h=a.escapeFacetValue,d=a.unescapeFacetValue,f=r(67711);function m(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function g(e,t,r){t&&t[r]&&(e.stats=t[r])}function p(e,t,r){var a=t[0]||{};this._rawResults=t;var o=this;Object.keys(a).forEach(function(e){o[e]=a[e]});var l=i(r,{persistHierarchicalRootCount:!1});Object.keys(l).forEach(function(e){o[e]=l[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 h=e.getRefinedDisjunctiveFacets(),p=m(e.facets),v=m(e.disjunctiveFacets),y=1,R=a.facets||{};Object.keys(R).forEach(function(t){var r=R[t],n=(l=e.hierarchicalFacets,s(l,function(e){return(e.attributes||[]).indexOf(t)>-1}));if(n){var i=n.attributes.indexOf(t),u=c(e.hierarchicalFacets,function(e){return e.name===n.name});o.hierarchicalFacets[u][i]={attribute:t,data:r,exhaustive:a.exhaustiveFacetsCount}}else{var l,h,d=-1!==e.disjunctiveFacets.indexOf(t),f=-1!==e.facets.indexOf(t);d&&(h=v[t],o.disjunctiveFacets[h]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},g(o.disjunctiveFacets[h],a.facets_stats,t)),f&&(h=p[t],o.facets[h]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},g(o.facets[h],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),h.forEach(function(r){var n=t[y],s=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);Object.keys(s).forEach(function(t){var r,h=s[t];if(l){r=c(e.hierarchicalFacets,function(e){return e.name===l.name});var f=c(o.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===f)return;o.hierarchicalFacets[r][f].data=o.persistHierarchicalRootCount?u(o.hierarchicalFacets[r][f].data,h):i(h,o.hierarchicalFacets[r][f].data)}else{r=v[t];var m=a.facets&&a.facets[t]||{};o.disjunctiveFacets[r]={name:t,data:u(m,h),exhaustive:n.exhaustiveFacetsCount},g(o.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!o.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(d(n))>-1&&(o.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(a).length<2||t.slice(y).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var u=r[t],l=c(e.hierarchicalFacets,function(e){return e.name===n.name}),h=c(o.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==h){var d={};if(s.length>0&&!o.persistHierarchicalRootCount){var f=s[0].split(a)[0];d[f]=o.hierarchicalFacets[l][h].data[f]}o.hierarchicalFacets[l][h].data=i(d,u,o.hierarchicalFacets[l][h].data)}}),y++})}
1),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=p[t];o.facets[n]={name:t,data:R[t],exhaustive:a.exhaustiveFacetsCount},r.forEach(function(e){o.facets[n]=o.facets[n]||{name:t},o.facets[n].data=o.facets[n].data||{},o.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(f(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function v(e,t){var r=s(e,function(e){return e.name===t});return r&&r.stats}function y(e,t,r,n,i){var a=s(i,function(e){return e.name===r}),c=a&&a.data&&a.data[n]?a.data[n]:0;return{type:t,attributeName:r,name:n,count:c,exhaustive:a&&a.exhaustive||!1}}p.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)},p.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],p.prototype.getFacetValues=function(e,t){var r,n=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=s(e.facets,r);return n?Object.keys(n.data).map(function(r){var i=h(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=s(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(r){var n=h(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var a=s(e.hierarchicalFacets,r);if(!a)return a;var c=e._state.getHierarchicalFacetByName(t),o=e._state._getHierarchicalFacetSeparator(c),u=d(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(c.rootPath)&&(u=u.replace(c.rootPath+o,""));var l=u.split(o);return l.unshift(t),function e(t,r,n){t.isRefined=t.name===(r[n]&&r[n].trim()),t.data&&t.data.forEach(function(t){e(t,r,n+1)})}(a,l,0),a}}(this,e);if(n){var a=i(t,{sortBy:p.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),c=this;return r=Array.isArray(n)?[e]:c._state.getHierarchicalFacetByName(n.name).attributes,function e(t,r,n,a){if(a=a||0,Array.isArray(r))return t(r,n[a]);if(!r.data||0===r.data.length)return r;var s=r.data.map(function(r){return e(t,r,n,a+1)});return i({data:t(s,n[a])},r)}(function(e,t){var r,n,i,s,u,h,d,f=c.renderingContent&&c.renderingContent.facetOrdering&&c.renderingContent.facetOrdering.values&&c.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&f)return n=[],i=[],s=f.hide||[],u=(f.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name,r=s.indexOf(t)>-1;r||void 0===u[t]?r||i.push(e):n[u[t]]=e}),n=n.filter(function(e){return e}),"hidden"===(h=f.sortRemainingBy)?n:(r="alpha"===h?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(l(i,r[0],r[1])));if(Array.isArray(a.sortBy)){var m=o(a.sortBy,p.DEFAULT_SORT),g=l(e,m[0],m[1]),v=f&&f.hide?f.hide:[];if(v.length>0){var y=[];return g.forEach(function(e){var t=e.path||e.name;-1===v.indexOf(t)&&y.push(e)}),y}return g}if("function"==typeof a.sortBy)return d=a.sortBy,e.sort(d);throw Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},n,r)}},p.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?v(this.facets,e):this._state.isDisjunctiveFacet(e)?v(this.disjunctiveFacets,e):void 0},p.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEac
1h(function(i){r.push(y(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(y(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(y(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var a,c,o,u,l,h,d,f,m,g,p;r.push((a=e,c=n,o=i,u=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(c),h=a._getHierarchicalFacetSeparator(l),d=o.split(h),f=s(u,function(e){return e.name===c}),g=(m=d.reduce(function(e,t){var r=e&&s(e.data,function(e){return e.name===t});return void 0!==r?r:e},f))&&m.count||0,p=m&&m.exhaustive||!1,{type:"hierarchical",attributeName:c,name:m&&m.path||"",count:g,exhaustive:p}))})}),Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t];Object.keys(n).forEach(function(e){n[e].forEach(function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})})})}),e.tagRefinements.forEach(function(e){r.push({type:"tag",attributeName:"_tags",name:e})}),r},e.exports=p},17591:(e,t,r)=>{"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},18038:(e,t,r)=>{"use strict";function n(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not valid (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}r.d(t,{t:()=>n})},18110:e=>{"use strict";e.exports="3.29.3"},18184:(e,t,r)=>{"use strict";let n=r(38528),i=r(68863),a=r(44701),s=r(94586),c=r(26818),o=r(3142),u=r(63289),l=r(28391),h=r(66302),d=r(55892);r(80965);new WeakMap;(0,l.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E830",enumerable:!1,configurable:!0})})},18801:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{_:()=>n})},21605:e=>{"use strict";function t(e,t){this._state=e,this._rawResults={};var r=this;e.params.forEach(function(e){var n=e.$$id;r[n]=t[n],r._rawResults[n]=t[n]})}t.prototype={constructor:t},e.exports=t},22431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ACTION_HEADER:function(){return a},FLIGHT_HEADERS:function(){return g},NEXT_ACTION_NOT_FOUND_HEADER:function(){return b},NEXT_ACTION_REVALIDATED_HEADER:function(){return x},NEXT_DID_POSTPONE_HEADER:function(){return y},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return l},NEXT_HMR_REFRESH_HEADER:function(){return u},NEXT_HTML_REQUEST_ID_HEADER:function(){return w},NEXT_INSTANT_PREFETCH_HEADER:function(){return f},NEXT_INSTANT_TEST_COOKIE:function(){return m},NEXT_IS_PRERENDER_HEADER:function(){return S},NEXT_REQUEST_ID_HEADER:function(){return E},NEXT_REWRITTEN_PATH_HEADER:function(){return R},NEXT_REWRITTEN_QUERY_HEADER:function(){return _},NEXT_ROUTER_PREFETCH_HEADER:function(){return c},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return o},NEXT_ROUTER_STALE_TIME_HEADER:function(){return v},NEXT_ROUTER_STATE_TREE_HEADER:function(){return s},NEXT_RSC_UNION_QUERY:function(){return p},NEXT_URL:function(){return h},RSC_CONTENT_TYPE_HEADER:function(){return d},RSC_HEADER:function(){return i}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="rsc",a="next-action",s="next-router-state-tree",c="next-router-prefetch",o="next-router-segment-prefetch",u="next-hmr-refresh",l="__next_hmr_refresh_hash__",h="next-url",d="text/x-component",f="next-instant-navigation-testing-prefetch",m="next-instant-navigation-testing",g=[i,s,c,u,o],p="_rsc",v="x-nextjs-stale-time",y="x-nextjs-postponed",R="x-nextjs-rewritten-path",_="x-nextjs-rewritten-query",S="x-nextjs-prerender",b="x-nextjs-action-not-found",E="x-nextjs-request-id",w="x-nextjs-html-request-id",x="x-action-revalidated";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23308:(e,t,r)=>{"use strict";r.d(t,{V:()=>A});var n=r(82994),i=r(17591),a=r(99989),s=r(85668),c=r(96964),o=r(12115),u=r(15570),l=r(44686),h=r(9334),d=r(59218);function f(e,t){t(e),e.getWidgets().forEach(function(e){(0,d.l)(e)&&f(e,t)})}var m=r(85860),g=r(70645),p=r(39318),v=r(46311),y=r(58668);function R(e){return"status"in e||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}var _={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},S=/[&><\u2028\u2029]/g,b=function(e){var t=e.options,r=e.results,n=e.nonce;return function(){return t.inserted?o.createElement(o.Fragment,null):(t.inserted=!0,o.createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:'window[Symbol.for("InstantSearchInitialResults")] = '.concat(JSON.stringify(r).replace(S,function(e){return _[e]}))}}))}};function E(e){var t,r=e.nonce,a=(0,v.I)(),s=(0,y.t)(),c=s.waitForResultsRef,u=s.resolveWaitForResultsRef,l=(0,o.useContext)(p.ServerInsertedHTMLContext)||function(){throw Error("Missing ServerInsertedHTMLContext")};a.compositionID?a.mainHelper.setClient((0,i._)((0,n._)({},a.mainHelper.getClient()),{search:function(e){return t=[e.requestBody.params],a.client.search(e)}})):a.mainHelper.setClient((0,i._)((0,n._)({},a.mainHelper.getClient()),{search:function(e){return t=e.map(function(e){return e.params}),a.client.search(e)}})),(0,m.M)();var h=function(){return new Promise(function(e){var t=!1,r=!1,n=!1,i=a.mainHelper.derivedHelpers[0],s=function(){n||(n=!0,u&&(u.current=null),e())},c=function(){t=!0,(!a._hasRecommendWidget||r)&&s()},o=function(){r=!0,(!a._hasSearchWidget||t)&&s()};u&&(u.current=function(){i.removeListener("result",c),i.removeListener("recommend:result",o),s()}),i.once("result",c),i.once("recommend:result",o)})},d=function(){l(b({options:{inserted:!1},results:function(e,t){var r={},a=0;if(f(e,function(e){for(var s=e;s;){if(s._isolated)return;s=s.getParent()}var c=e.getResults(),o=null==(u=e.getHelper())?void 0:u.lastRecommendResults;if(c||o){var u,l,h,d,f=(null==c||null==(l=c._rawResults)?void 0:l.length)||0,m=f?null==t?void 0:t.slice(a,a+f):[];a+=f,r[e.getIndexId()]=(0,n._)({},c&&(0,n._)({state:(0,i._)((0,n._)({},c._state),{clickAnalytics:null==m||null==(h=m[0])?void 0:h.clickAnalytics,userToken:null==m||null==(d=m[0])?void 0:d.userToken}),results:c._rawResults},c.feeds&&c.feeds.length>0&&{compositionFeedsResults:c.feeds.map(function(e){return(0,i._)((0,n._)({},e._rawResults[0]),{feedID:e.feedID})})}),o&&{recommendResults:{params:JSON.parse(JSON.stringify(o._state.params)),results:o._rawResults}},m&&{requestParams:m})}}),0===Object.keys(r).length&&(null==t?void 0:t.length)!==0)throw Error("The root index does not have any results. Make sure you have at least one widget that provides results.");return r}(a.mainIndex,a._hasSearchWidget&&t||[]),nonce:r}))};return(null==c?void 0:c.current)===null&&(c.current=R(h().then(function(){var e,t=!1;return f(a.mainIndex,function(e){!function(e){for(var t=e;t;){if(t._isolated)return!0;t=t.getParent()}return!1}(e)&&(t=t||e.getWidgets().some(g.Q))}),t&&(null==(e=a._resetScheduleSearch)||e.call(a),c.current=R(h().then(d))),t}).then(function(e){e||d()}))),null}function w(){var e,t,r,n,i,a=(0,v.I)(),s=(0,y.t)(),c=s.waitForResultsRef,o=s.resolveWaitForResultsRef;return(null==c||null==(e=c.current)?void 0:e.status)==="pending"&&(a._hasSearchWidget&&(a.compositionID?null==(r=a.mainHelper)||r.searchWithComposition():null==(n=a.mainHelper)||n.searchOnlyWithDerivedHelpers()),a._hasRecommendWidget&&(null==(t=a.mainHelper)||t.recommend()),a._hasSearchWidget||a._hasRecommendWidget||null==o||null==(i=o.current)||i.call(o)),null}var x=null,P=r(84785),j=r(90537);r(18184);var O=r(39621);r(74828);var T=function(){if("u"<typeof window){var e=(0,O.b)();return null!==e&&((void 0===e?"undefined":(0,P._)(e))==="object"||"function"==typeof e)&&"function"==typeof e.then?(0,o.use)(e):e}},F=Symbol.for("InstantSearchInitialResults");function A(e){var t,r,l,h,d,f=e.children,m=e.routing,g=e.instance,v=e.ignoreMultipleHooksWarning,y=(0,a._)(e,["children","routing","instance","ignoreMultipleHooksWarning"]),R=(0,o.useRef)(!0),_="u"<typeof window;(0,o.useEffect)(function(){R.current=!1},[]);var S=T(),b=(0,c.x)(function(){},{fallback:function(){return(null==S?void 0:S.get("x-nonce"))||void 0}});r=(t={isServer:_,isMounting:R,instance:g}).isServer,l=t.isMounting,h=t.instance,d=(0,p.useParams)(),r||!l.current||h||(x&&Object.keys(x).length===Object.keys(d).length&&Object.entries(x).some(function(e){var t=(0,s._)(e,2),r=t[0],n=t[1];return d[r]!==n}),x=d);var O=function(e,t){var r="u"<typeof window,i=(0,p.usePathname)(),a=(0,p.useSearchParams)(),s=(0,o.useRef)(null),c=(0,o.useRef)(null),u=(0,o.useRef)(!1),l=(0,o.useRef)(null);(0,o.useEffect)(function(){var e,t="".concat(null!=i?i:"","?").concat(null!=(e=null==a?void 0:a.toString())?e:"");if(l.current!==t){var r=null===l.current;l.current=t,!r&&c.current&&c.current()}},[i,a]),(0,o.useEffect)(function(){return u.current=!1,function(){u.current=!0}});var h=T();if(e&&!s.current){var d={};d.getLocation=function(){return r?new URL("".concat((null==h?void 0:h.get("x-forwarded-proto"))||"http","://").concat(null==h?void 0:h.get("host")).concat(i,"?").concat(a)):t.current?new URL("".concat(window.location.protocol,"//").concat(window.location.host).concat(i,"?").concat(a)):window.location},d.push=function(e){this.isDisposed&&u.current||history.pushState({},"",e)},d.start=function(e){c.current=e},s.current={},(void 0===e?"undefined":(0,P._)(e))==="object"&&(d=(0,n._)({},d,e.router),s.current.stateMapping=e.stateMapping),s.current.router=(0,j.A)(d)}return s.current}(m,R);return o.createElement(I,{isServer:_,instance:g,ignoreMultipleHooksWarning:void 0!==v&&v},o.createElement(u.G,(0,i._)((0,n._)({},y),{routing:O}),_&&o.createElement(E,{nonce:b}),f,_&&o.createElement(w,null)))}function I(e){var t=e.isServer,r=e.children,n=e.instance,i=e.ignoreMultipleHooksWarning,a=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useRef)(0),f=(0,s._)((0,o.useState)(function(){return(0,c.x)(function(e){return e.window[F]})}),1)[0];(0,o.useEffect)(function(){(0,c.x)(function(e){var t=e.window;void 0!==t[F]&&(t[F]=void 0)})},[]);var m=t||f?a:null;return o.createElement(l.V.Provider,{value:{waitForResultsRef:m,resolveWaitForResultsRef:u,countRef:d,ignoreMultipleHooksWarning:i}},o.createElement(h.R.Provider,{value:{initialResults:f,ssrSearchRef:t?void 0:n}},r))}},25499:(e,t,r)=>{"use strict";var n=r(12115),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,c=n.useLayoutEffect,o=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return c(function(){i.value=r,i.getSnapshot=t,u(i)&&l({inst:i})},[e,r,t]),s(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),o(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},26818:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n,i,a,s={DynamicHoleKind:function(){return K},Postpone:function(){return T},PreludeState:function(){return ea},abortAndThrowOnSynchronousRequestDataAccess:function(){return O},abortOnSynchronousPlatformIOAccess:function(){return j},accessedDynamicData:function(){return H},annotateDynamicAccess:function(){return M},consumeDynamicAccess:function(){return W},createDynamicTrackingState:function(){return _},createDynamicValidationState:function(){return S},createHangingInputAbortSignal:function(){return U},createInstantValidationState:function(){return Z},createRenderInBrowserAbortSignal:function(){return L},formatDynamicAPIAccesses:function(){return $},getFirstDynamicReason:function(){return b},getNavigationDisallowedDynamicReasons:function(){return eu},getStaticShellDisallowedDynamicReasons:function(){return eo},isDynamicPostpone:function(){return I},isPrerenderInterruptedError:function(){return N},logDisallowedDynamicError:function(){return es},markCurrentScopeAsDynamic:function(){return E},postponeWithTracking:function(){return F},throwIfDisallowedDynamic:function(){return ec},throwToInterruptStaticGeneration:function(){return w},trackAllowedDynamicAccess:function(){return Y},trackDynamicDataInDynamicRender:function(){return x},trackDynamicHoleInNavigation:function(){return ee},trackDynamicHoleInRuntimeShell:function(){return er},trackDynamicHoleInStaticShell:function(){return en},trackThrownErrorInNavigation:function(){return et},useDynamicRouteParams:function(){return Q},useDynamicSearchParams:function(){return q}};for(var c in s)Object.defineProperty(t,c,{enumerable:!0,get:s[c]});let o=(n=r(12115))&&n.__esModule?n:{default:n},u=r(34958),l=r(3142),h=r(94586),d=r(44701),f=r(63289),m=r(95222),g=r(29426),p=r(72399),v=r(55892),y=r(51712),R="function"==typeof o.default.unstable_postpone;function _(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function S(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function b(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function E(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return F(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new u.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function w(e,t,r){let n=Object.defineProperty(new u.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function x(e){switch(e.type){case"cache":case"unstable-cache":case"private-cache":return}}function P(e,t,r){let n=C(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let i=r.dynamicTracking;i&&i.dynamicAccesses.push({stack:i.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function j(e,t,r,n){let i=n.dynamicTracking;P(e,t,n),i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicErrorWithStack=r)}function O(e,t,r,n){if(!1===n.controller.signal.aborted){P(e,t,n);let i=n.dynamicTracking;i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicErrorWithStack=r)}throw C(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function T({reason:e,route:t}){let r=h.workUnitAsyncStorage.getStore();F(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function F(e,t,r){(function(){if(!R)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,
1configurable:!0})})(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),o.default.unstable_postpone(A(e,t))}function A(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function I(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&k(e.message)}function k(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===k(A("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let D="NEXT_PRERENDER_INTERRUPTED";function C(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=D,t}function N(e){return"object"==typeof e&&null!==e&&e.digest===D&&"name"in e&&"message"in e&&e instanceof Error}function H(e){return e.length>0}function W(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function $(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: 2${t}`))}function L(){let e=new AbortController;return e.abort(Object.defineProperty(new p.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function U(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else if("prerender-runtime"===e.type&&e.stagedRendering){let{stagedRendering:r}=e;r.waitForStage((0,f.getRuntimeStage)(r)).then(()=>(0,g.scheduleOnNextTick)(()=>t.abort()))}else(0,g.scheduleOnNextTick)(()=>t.abort());return t.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function M(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function Q(e){let t=d.workAsyncStorage.getStore(),r=h.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&o.default.use((0,f.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return F(t.route,e,r.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new v.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new v.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new v.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function q(e){let t=d.workAsyncStorage.getStore(),r=h.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,h.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":o.default.use((0,f.makeHangingPromise)(r.render
2Signal,t.route,e));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new p.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new v.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new v.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new v.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let B=/\n\s+at Suspense \(<anonymous>\)/,X=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${m.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),V=RegExp(`\\n\\s+at ${m.METADATA_BOUNDARY_NAME}[\\n\\s]`),J=RegExp(`\\n\\s+at ${m.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),G=RegExp(`\\n\\s+at ${m.OUTLET_BOUNDARY_NAME}[\\n\\s]`),z=RegExp(`\\n\\s+at ${y.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);function Y(e,t,r,n){if(!G.test(t)){if(V.test(t)){r.hasDynamicMetadata=!0;return}if(J.test(t)){r.hasDynamicViewport=!0;return}if(X.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(B.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let i=ei(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1079",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(i)}}}var K=((i={})[i.Runtime=1]="Runtime",i[i.Dynamic=2]="Dynamic",i);function Z(e){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],createInstantStack:e}}function ee(e,t,r,n,i,a){if(G.test(t))return;if(V.test(t)){let n=ei(Object.defineProperty(Error(`Route "${e.route}": ${1===i?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateMetadata` or you have file-based metadata such as icons that depend on dynamic params segments.":"Uncached data or `connection()` was accessed inside `generateMetadata`."} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1076",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicMetadata=n;return}if(J.test(t)){let n=ei(Object.defineProperty(Error(`Route "${e.route}": ${1===i?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateViewport`.":"Uncached data or `connection()` was accessed inside `generateViewport`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1086",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(n);return}let s=z.exec(t);if(s){let e=B.exec(t);if(e&&e.index<s.index){r.hasAllowedDynamic=!0;return}}else if(a.expectedIds.size===a.renderedIds.size){r.hasAllowedClientDynamicAboveBoundary=!0,r.hasAllowedDynamic=!0;return}else{let n=ei(Object.defineProperty(Error(`Route "${e.route}
2": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.`),"__NEXT_ERROR_CODE",{value:"E1082",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.validationPreventingErrors.push(n);return}if(n.syncDynamicErrorWithStack){let e=n.syncDynamicErrorWithStack;null!==r.createInstantStack&&void 0===e.cause&&(e.cause=r.createInstantStack()),r.dynamicErrors.push(e);return}let c=ei(Object.defineProperty(Error(`Route "${e.route}": ${1===i?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed outside of `<Suspense>`.":"Uncached data or `connection()` was accessed outside of `<Suspense>`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1078",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(c)}function et(e,t,r,n){let i=z.exec(n);if(i){let a=B.exec(n);if(a&&a.index<i.index)return;let s=ei(Object.defineProperty(Error(`Route "${e.route}": Could not validate \`unstable_instant\` because an error prevented the target segment from rendering.`,{cause:r}),"__NEXT_ERROR_CODE",{value:"E1112",enumerable:!1,configurable:!0}),n,null);t.validationPreventingErrors.push(s)}else{let e=ei(Object.defineProperty(Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.",{cause:r}),"__NEXT_ERROR_CODE",{value:"E1118",enumerable:!1,configurable:!0}),n,null);t.thrownErrorsOutsideBoundary.push(e)}}function er(e,t,r,n){if(G.test(t))return;if(V.test(t)){r.dynamicMetadata=ei(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1080",enumerable:!1,configurable:!0}),t,null);return}if(J.test(t)){let n=ei(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1077",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(X.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}if(B.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let i=ei(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1084",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(i)}function en(e,t,r,n){if(!G.test(t)){if(V.test(t)){r.dynamicMetadata=ei(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1085",enumerable:!1,configurable:!0}),t,null);return}if(J.test(t)){let n=ei(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1081",enumerable:!1,
2configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(X.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(B.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let i=ei(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1083",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(i)}}}function ei(e,t,r){return null!==r&&(e.cause=r()),e.stack=e.name+": "+e.message+t,e}var ea=((a={})[a.Full=0]="Full",a[a.Empty=1]="Empty",a[a.Errored=2]="Errored",a);function es(e,t){console.error(t),console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following: 3 - Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error. 4 - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function ec(e,t,r,n){if(n.syncDynamicErrorWithStack)throw es(e,n.syncDynamicErrorWithStack),new l.StaticGenBailoutError;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t<n.length;t++)es(e,n[t]);throw new l.StaticGenBailoutError}if(r.hasDynamicViewport)throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new l.StaticGenBailoutError;if(1===t)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new l.StaticGenBailoutError}else if(!1===r.hasAllowedDynamic&&r.hasDynamicMetadata)throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new l.StaticGenBailoutError}function eo(e,t,r,n){if(n||r.hasSuspenseAboveBody)return[];if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return[Object.defineProperty(new v.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(!1===r.hasAllowedDynamic&&0===r.dynamicErrors.length&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function eu(e,t,r,n,i){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:a}=r;if(a.length>0)return a;if(i.renderedIds.size<i.expectedIds.size){let{thrownErrorsOutsideBoundary:t,createInstantStack:n}=r;if(0===t.length){let t=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`,r=null!==n?n():Error();return r.name="Error",r.message=t,[r]}if(1===t.length){let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`,i=null!==n?n():Error();return i.name="Error",i.message=r,[i,t[0]]}{let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,i=null!==n?n():Error();return i.name="Error",i.message=r,[i,...t]}}if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new v.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,
4configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},27355:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var r=this.params.slice();return r.push(e),new t({params:r})},removeParams:function(e){return new t({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter(function(e){return void 0===t[e.$$id]}).map(function(t){var r=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete r.$$id,r})}},e.exports=t},27685:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},28391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return o}});let n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=n?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}(r(12115));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}let a={current:null},s="function"==typeof n.cache?n.cache:e=>e,c=console.warn;function o(e){return function(...t){c(e(...t))}}s(e=>{try{c(a.current)}finally{a.current=null}})},28392:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{_:()=>n})},29e3:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){t(e)||(e={});for(var r=1,n=arguments.length;r<n;r++){var i=arguments[r];t(i)&&function e(r,n){if(r===n)return r;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i&&"constructor"!==i){var a=n[i],s=r[i];(void 0===s||void 0!==a)&&(t(s)&&t(a)?r[i]=e(s,a):r[i]="object"==typeof a&&null!==a?e(Array.isArray(a)?[]:{},a):a)}return r}(e,i)}return e}},29356:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{_:()=>n})},29426:(e,t,r)=>{"use strict";var n=r(52474);Object.defineProperty(t,"__esModule",{value:!0});var i={atLeastOneTask:function(){return o},scheduleImmediate:function(){return c},scheduleOnNextTick:function(){return s},waitAtLeastOneReactRenderTask:function(){return u}};for(var a in i)Object.defineProperty(t,a,{enumerable:!0,get:i[a]});let s=e=>{Promise.resolve().then(()=>{n.nextTick(e)})},c=e=>{setImmediate(e)};function o(){return new Promise(e=>c(e))}function u(){return new Promise(e=>setImmediate(e))}},29454:(e,t,r)=>{"use strict";function n(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{h:()=>n})},29792:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},32020:(e,t,r)=>{"use strict";r.d(t,{R:()=>s});var n=r(12115),i=r(78699),a=r(84568);function s(){var e=(0,n.useContext)(i.m);return(0,a.V)(null!==e),e}},32245:(e,t,r)=>{"use strict";r.d(t,{w:()=>s});var n=r(85668),i=r(12115),a=r(95136);function s(e){var t=(0,n._)((0,i.useState)(function(){return e}),2),r=t[0],s=t[1];return(0,a.j)(r,e)||s(e),r}},32789:(e,t,r)=>{"use strict";function n(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{_:()=>n})},33396:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},34958:(e,t)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0});var r={DynamicServerError:function(){return a},isDynamicServerError:function(){return s}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="DYNAMIC_SERVER_USAGE";class a extends Error{constructor(e){super(`Dynamic server usage: ${e}`),this.description=e,this.digest=i}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===i}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35029:(e,t,r)=>{"use strict";function n(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}r.d(t,{E:()=>n})},37033:(e,t,r)=>{"use strict";r.d(t,{Q:()=>h});var n=r(70645),i=r(12115),a=r.t(i,2),s=r(95136),c=a.use,o=r(46311),u=r(61681),l=r(58668);function h(e){var t,r,a,h=e.widget,d=e.parentIndex,f=e.props,m=e.shouldSsr,g=e.skipSuspense,p=(0,l.t)(),v=p.waitForResultsRef,y=p.countRef;p.ignoreMultipleHooksWarning;var R=(0,i.useRef)(f);(0,i.useEffect)(function(){R.current=f},[f]);var _=(0,i.useRef)(h);(0,i.useEffect)(function(){_.current=h},[h]);var S=(0,i.useRef)(null),b=m&&!d.getWidgets().includes(h),E=(0,o.I)();(0,u.E)(function(){var e=_.current;return S.current?(clearTimeout(S.current),(0,s.j)(f,R.current)||d.updateWidget(e,h)):m||d.addWidgets([h]),function(){S.current=setTimeout(function(){E._schedule(function(){E._preventWidgetCleanup||d.removeWidgets([e])})})}},[d,h,m,E,f]),(b||(null==v||null==(t=v.current)?void 0:t.status)==="pending")&&d.addWidgets([h]),(null==v?void 0:v.current)&&!g&&(c(v.current),!(0,n.Q)(h)&&(null==(a=E.helper)?void 0:a.lastResults)&&c(v.current)),(null==v||null==(r=v.current)?void 0:r.status)==="fulfilled"&&(y.current+=1)}},38528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={MutableRequestCookiesAdapter:function(){return m},ReadonlyRequestCookiesError:function(){return u},RequestCookiesAdapter:function(){return l},appendMutableCookies:function(){return f},areCookiesMutableInCurrentPhase:function(){return p},createCookiesWithMutableAccessCheck:function(){return g},getModifiedCookieValues:function(){return d},responseCookiesToRequestCookies:function(){return y}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(68863),s=r(41850),c=r(44701),o=r(7289);class u extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new u}}class l{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return u.callable;default:return s.ReflectAdapter.get(e,t,r)}}})}}let h=Symbol.for("next.mutated.cookies");function d(e){let t=e[h];return t&&Array.isArray(t)&&0!==t.length?t:[]}function f(e,t){let r=d(t);if(0===r.length)return!1;let n=new a.ResponseCookies(e),i=n.getAll();for(let e of r)n.set(e);for(let e of i)n.set(e);return!0}class m{static wrap(e,t){let r=new a.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],i=new Set,u=()=>{let e=c.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=o.ActionDidRevalidateStaticAndDynamic),n=r.getAll().filter(e=>i.has(e.name)),t){let e=[];for(let t of n){let r=new a.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},l=new Proxy(r,{get(e,t,r){switch(t){case h:return n;case"delete":return function(...t){i.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),l}finally{u()}};case"set":return function(...t){i.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),l}finally{u()}};default:return s.ReflectAdapter.get(e,t,r)}}});return l}}function g(e){let t=new Proxy(e.mutableCookies,{get(r,n,i){switch(n){case"delete":return function(...n){return v(e,"cookies().delete"),r.delete(...n),t};case"set":return function(...n){return v(e,"cookies().set"),r.set(...n),t};default:return s.ReflectAdapter.get(r,n,i)}}});return t}function p(e){return"action"===e.phase}function v(e,t){if(!p(e))throw new u}function y(e){let t=new a.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},39621:(e,t,r)=>{"use strict";Object.defineProperty(t,"b",{enumerable:!0,get:function(){return d}});let n=r(47141),i=r(44701),a=r(94586),s=r(26818),c=r(3142),o=r(63289),u=r(28391),l=r(66302),h=r(55892);function d(){let e="headers",t=i.workAsyncStorage.getStore(),r=a.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,l.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E839",enumerable:!1,
4configurable:!0});if(t.forceStatic)return m(n.HeadersAdapter.seal(new Headers({})));if(r)switch(r.type){case"cache":{let e=Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E833",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,d),t.invalidDynamicUsageError??=e,e}case"unstable-cache":throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E838",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`headers()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1134",enumerable:!1,configurable:!0})}if(t.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E828",enumerable:!1,configurable:!0});if(r)switch(r.type){case"prerender":var u=t,g=r;let i=f.get(g);if(i)return i;let p=(0,o.makeHangingPromise)(g.renderSignal,u.route,"`headers()`");return f.set(g,p),p;case"prerender-client":case"validation-client":let v="`headers`";throw Object.defineProperty(new h.InvariantError(`${v} must not be used within a client component. Next.js should be preventing ${v} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1017",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,s.postponeWithTracking)(t.route,e,r.dynamicTracking);case"prerender-legacy":return(0,s.throwToInterruptStaticGeneration)(e,t,r);case"prerender-runtime":return(0,o.delayUntilRuntimeStage)(r,m(r.headers));case"private-cache":return m(r.headers);case"request":if((0,s.trackDynamicDataInDynamicRender)(r),r.asyncApiPromises)return(0,a.isInEarlyRenderStage)(r)?r.asyncApiPromises.earlyHeaders:r.asyncApiPromises.headers;return m(r.headers)}}(0,a.throwForMissingRequestStore)(e)}r(80965);let f=new WeakMap;function m(e){let t=f.get(e);if(t)return t;let r=Promise.resolve(e);return f.set(e,r),r}(0,u.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E836",enumerable:!1,configurable:!0})})},41850:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},43636:(e,t,r)=>{"use strict";var n=r(50605);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(33396)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},44686:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});var n=(0,r(12115).createContext)({countRef:{current:0},waitForResultsRef:null,resolveWaitForResultsRef:{current:null},ignoreMultipleHooksWarning:!1})},44886:(e,t,r)=>{"use strict";r.d(t,{f:()=>f});var n=r(82994),i=r(17591),a=r(99989),s=r(35029),c=r(63203),o=r(88177),u=r(12115),l=r(53867),h=r(73569);function d(e){var t=e.classNames,r=void 0===t?{}:t,i=(0,a._)(e,["classNames"]);return u.createElement(h.G,(0,n._)({classNames:{root:(0,l.cx)("ais-Highlight",r.root),highlighted:(0,l.cx)("ais-Highlight-highlighted",r.highlighted),nonHighlighted:(0,l.cx)("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:(0,l.cx)("ais-Highlight-separator",r.separator)}},i))}function f(e){var t=e.hit,r=e.attribute,l=e.highlightedTagName,h=e.nonHighlightedTagName,f=e.separator,m=(0,a._)(e,["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"]),g=(0,s.E)(t._highlightResult,r)||[],p=(Array.isArray(g)?g:[g]).map(function(e){return(0,c.I)((0,o.x)(e.value||""))});return u.createElement(d,(0,i._)((0,n._)({},m),{parts:p,highlightedTagName:l,nonHighlightedTagName:h,separator:f}))}},45667:(e,t,r)=>{"use strict";r.d(t,{FU:()=>u,sn:()=>l,S8:()=>d});var n=r(29356);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
4for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=r(82994),s=r(17591),c=r(88177),o=r(98485),u={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},l={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function h(e){var t;return(0,o.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return(0,s._)((0,a._)({},t),(0,n._)({},r,h(e[r])))},{}):Array.isArray(e)?e.map(h):(0,s._)((0,a._)({},e),{value:(t=e.value,(0,c.i)(t).replace(RegExp(u.highlightPreTag,"g"),l.highlightPreTag).replace(RegExp(u.highlightPostTag,"g"),l.highlightPostTag))})}function d(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=e;if(null==t)throw TypeError("Cannot destructure "+t);var r=i({},e);return r._highlightResult&&(r._highlightResult=h(r._highlightResult)),r._snippetResult&&(r._snippetResult=h(r._snippetResult)),r})).__escaped=!0),e}},45802:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(82994),i=r(29356),a=r(17591),s=r(6431),c=r(98485),o=r(77824),u=r(15252),l=r(60602),h=(0,o.V)({name:"configure",connector:!0});function d(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return(0,a._)((0,n._)({},e),(0,i._)({},t,void 0))},{}))}var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.l;return function(r){if(!r||!(0,c.Q)(r.searchParameters))throw Error(h("The `searchParameters` option expects an object."));var i={};return{$$type:"ais.configure",init:function(t){var r=t.instantSearchInstance;e((0,a._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,a._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return t(),d(n,r)},getRenderState:function(e,t){var r,i=this.getWidgetRenderState(t);return(0,a._)((0,n._)({},e),{configure:(0,a._)((0,n._)({},i),{widgetParams:(0,a._)((0,n._)({},i.widgetParams),{searchParameters:(0,u.p)(new s.SearchParameters(null==(r=e.configure)?void 0:r.widgetParams.searchParameters),new s.SearchParameters(i.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return i.refine||(i.refine=function(e){var n=d(t.state,r),i=(0,u.p)(n,new s.SearchParameters(e));r.searchParameters=e,t.setState(i).search()}),{refine:i.refine,widgetParams:r}},getWidgetSearchParameters:function(e,t){var i=t.uiState;return(0,u.p)(e,new s.SearchParameters((0,n._)({},i.configure,r.searchParameters)))},getWidgetUiState:function(e){return(0,a._)((0,n._)({},e),{configure:(0,n._)({},e.configure,r.searchParameters)})}}}},m=r(51721);function g(e){var t,r;return t=(0,n._)({},e),r={$$widgetType:"ais.configure"},(0,m.Z)(f,{searchParameters:t},r),null}},46311:(e,t,r)=>{"use strict";r.d(t,{I:()=>s});var n=r(12115),i=r(91964),a=r(84568);function s(){var e=(0,n.useContext)(i.t);return(0,a.V)(null!==e),e}},47141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={HeadersAdapter:function(){return c},ReadonlyHeadersError:function(){return s}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(41850);class s extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new s}}class c extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return a.ReflectAdapter.get(t,r,n);let i=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===i);if(void 0!==s)return a.ReflectAdapter.get(t,s,n)},set(t,r,n,i){if("symbol"==typeof r)return a.ReflectAdapter.set(t,r,n,i);let s=r.toLowerCase(),c=Object.keys(e).find(e=>e.toLowerCase()===s);return a.ReflectAdapter.set(t,c??r,n,i)},has(t,r){if("symbol"==typeof r)return a.ReflectAdapter.has(t,r);let n=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==i&&a.ReflectAdapter.has(t,i)},deleteProperty(t,r){if("symbol"==typeof r)return a.ReflectAdapter.deleteProperty(t,r);let n=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===i||a.ReflectAdapter.deleteProperty(t,i)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return s.callable;default:return a.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new c(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];
4return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},48270:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(90063),i=Promise.resolve();function a(e,t){var r=null,a=!1,s=null,c=function(){for(var c=arguments.length,o=Array(c),u=0;u<c;u++)o[u]=arguments[u];if(null!==r){t&&null!==s&&(s=t(s,o));return}s=o,r=i.then(function(){r=null;var t=s;if(s=null,a){a=!1;return}e.apply(void 0,(0,n._)(t))})};return c.wait=function(){if(null===r)throw Error("The deferred function should be called before calling `wait()`");return r},c.cancel=function(){null!==r&&(a=!0)},c}},50197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i={RenderStage:function(){return o},StagedRenderingController:function(){return u}};for(var a in i)Object.defineProperty(t,a,{enumerable:!0,get:i[a]});let s=r(71255),c=r(55968);var o=((n={})[n.Before=1]="Before",n[n.EarlyStatic=2]="EarlyStatic",n[n.Static=3]="Static",n[n.EarlyRuntime=4]="EarlyRuntime",n[n.Runtime=5]="Runtime",n[n.Dynamic=6]="Dynamic",n[n.Abandoned=7]="Abandoned",n);class u{constructor(e,t,r){this.abortSignal=e,this.abandonController=t,this.shouldTrackSyncIO=r,this.currentStage=1,this.syncInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.staticStageListeners=[],this.earlyRuntimeStageListeners=[],this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.staticStagePromise=(0,c.createPromiseWithResolvers)(),this.earlyRuntimeStagePromise=(0,c.createPromiseWithResolvers)(),this.runtimeStagePromise=(0,c.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,c.createPromiseWithResolvers)(),e&&e.addEventListener("abort",()=>{let{reason:t}=e;this.staticStagePromise.promise.catch(l),this.staticStagePromise.reject(t),this.earlyRuntimeStagePromise.promise.catch(l),this.earlyRuntimeStagePromise.reject(t),this.runtimeStagePromise.promise.catch(l),this.runtimeStagePromise.reject(t),this.dynamicStagePromise.promise.catch(l),this.dynamicStagePromise.reject(t)},{once:!0}),t&&t.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(e,t){if(this.currentStage>=e)t();else if(3===e)this.staticStageListeners.push(t);else if(4===e)this.earlyRuntimeStageListeners.push(t);else if(5===e)this.runtimeStageListeners.push(t);else if(6===e)this.dynamicStageListeners.push(t);else throw Object.defineProperty(new s.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}shouldTrackSyncInterrupt(){if(!this.shouldTrackSyncIO)return!1;switch(this.currentStage){case 1:case 5:case 6:case 7:default:return!1;case 2:case 3:case 4:return!0}}syncInterruptCurrentStageWithReason(e){if(1!==this.currentStage&&7!==this.currentStage){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=e,this.currentStage=7;return}switch(this.currentStage){case 2:case 3:case 4:this.syncInterruptReason=e,this.advanceStage(6);return;case 5:return}}}getSyncInterruptReason(){return this.syncInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){let{currentStage:e}=this;switch(e){case 2:this.resolveStaticStage();case 3:this.resolveEarlyRuntimeStage();case 4:this.resolveRuntimeStage();case 5:this.currentStage=7;return}}advanceStage(e){if(e<=this.currentStage)return;let t=this.currentStage;if(this.currentStage=e,t<3&&e>=3&&this.resolveStaticStage(),t<4&&e>=4&&this.resolveEarlyRuntimeStage(),t<5&&e>=5&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),t<6&&e>=6){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveStaticStage(){let e=this.staticStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.staticStagePromise.resolve()}resolveEarlyRuntimeStage(){let e=this.earlyRuntimeStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.earlyRuntimeStagePromise.resolve()}resolveRuntimeStage(){let e=this.runtimeStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.runtimeStagePromise.resolve()}resolveDynamicStage(){let e=this.dynamicStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.dynamicStagePromise.resolve()}getStagePromise(e){switch(e){case 3:return this.staticStagePromise.promise;case 4:return this.earlyRuntimeStagePromise.promise;case 5:return this.runtimeStagePromise.promise;case 6:return this.dynamicStagePromise.promise;default:throw Object.defineProperty(new s.InvariantError(`Invalid render stage: ${e}
4`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}}waitForStage(e){return this.getStagePromise(e)}delayUntilStage(e,t,r){var n,i,a;let s,c=(n=this.getStagePromise(e),i=t,a=r,s=new Promise((e,t)=>{n.then(e.bind(null,a),t)}),void 0!==i&&(s.displayName=i),s);return this.abortSignal&&c.catch(l),c}}function l(){}},50605:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,a,s,c,o;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(void 0===(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(n(i))for(c=0,s=Array.prototype.slice.call(arguments,1),a=(o=i.slice()).length;c<a;c++)o[c].apply(this,s);return!0},t.prototype.addListener=function(e,i){var a;if(!r(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(i.listener)?i.listener:i),this._events[e]?n(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,n(this._events[e])&&!this._events[e].warned&&(a=void 0===this._maxListeners?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(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},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,a,s,c;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,a=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(c=s;c-- >0;)if(i[c]===t||i[c].listener&&i[c].listener===t){a=c;break}if(a<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.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(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},51712:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"INSTANT_VALIDATION_BOUNDARY_NAME",{enumerable:!0,get:function(){return r}});let r="__next_instant_validation_boundary__"},51721:(e,t,r)=>{"use strict";r.d(t,{Z:()=>R});var n=r(82994),i=r(99989),a=r(85668),s=r(18801),c=r(99473),o=r(57948),u=r(88249),l=r(12115),h=r(95136),d=r(87444),f=r(32020),m=r(46311),g=r(93623),p=r(52307),v=r(32245),y=r(37033);function R(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,_=(t=[r,R],(0,s._)(t)||(0,c._)(t)||(0,u._)(t)||(0,o._)()),S=_[0],b=_.slice(1),E=(0,a._)(b,1)[0],w=void 0===E?{}:E,x=w.skipSuspense,P=(0,i._)(w,["skipSuspense"]),j=(0,g.r)(),O=(0,p.m)(),T=(0,m.I)(),F=(0,f.R)(),A=(0,v.w)(void 0===S?{}:S),I=(0,v.w)(P),k=(0,l.useRef)(!0),D=(0,l.useRef)(null),C=(0,l.useRef)(T.status),N=(0,l.useMemo)(function(){var t=e(function(e,t){if(t){k.current=!0;return}if(k.current){var r=e.instantSearchInstance;e.widgetParams;var n=(0,i._)(e,["instantSearchInstance","widgetParams"]);(0,h.j)(n,D.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&r.status===C.current||($(n),D.current=n,C.current=r.status)}},function(){k.current=!1});return(0,n._)({},t(A),I)},[e,A,I]),H=(0,a._)((0,l.useState)(function(){if(N.getWidgetRenderState){var e,t=F.getHelper(),r=F.getWidgetUiState({})[F.getIndexId()];t.state=(null==(e=N.getWidgetSearchParameters)?void 0:e.call(N,t.state,{uiState:r}))||t.state;var n=(0,d.J)(F),a=n.results,s=n.scopedResults,c=n.recommendResults,o=N.getWidgetRenderState({helper:t,parent:F,instantSearchInstance:T,results:"recommend"===N.dependsOn&&c&&O?c[O.recommendIdx.current++]:a,scopedResults:s,state:t.state,render
4State:T.renderState,templatesConfig:T.templatesConfig,createURL:F.createURL,searchMetadata:{isSearchStalled:"stalled"===T.status},status:T.status,error:T.error});return o.widgetParams,(0,i._)(o,["widgetParams"])}return{}}),2),W=H[0],$=H[1];return(0,y.Q)({widget:N,parentIndex:F,props:[A,I],shouldSsr:!!j,skipSuspense:void 0!==x&&x}),W}},52307:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(12115),i=r(9334);function a(){return(0,n.useContext)(i.R)}},52713:e=>{"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},52941:e=>{"use strict";e.exports=function(e,t,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var n=e.map(function(e,r){return{criteria:t.map(function(t){return e[t]}),index:r,value:e}});return n.sort(function(e,t){for(var n=-1;++n<e.criteria.length;){var i=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e<t||a&&r||!i)return -1}return 0}(e.criteria[n],t.criteria[n]);if(i){if(n>=r.length)return i;if("desc"===r[n])return-i;return i}}return e.index-t.index}),n.map(function(e){return e.value})}},53101:(e,t,r)=>{"use strict";r.d(t,{V:()=>d});var n=r(82994),i=r(17591),a=r(77824),s=r(18038),c=r(60602),o=(0,a.V)({name:"search-box",connector:!0}),u=function(e,t){return t(e)},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.l;return(0,s.t)(e,o()),function(r){var a,s,c=(r||{}).queryHook,o=void 0===c?u:c;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return(0,i._)((0,n._)({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,n=e.instantSearchInstance,i=e.state;return a||(a=function(e){o(e,function(e){return t.setQuery(e).search()})},s=function(){t.setQuery("").search()}),{query:i.query||"",refine:a,clear:s,widgetParams:r,isSearchStalled:"stalled"===n.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:(0,i._)((0,n._)({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}},h=r(51721);function d(e,t){return(0,h.Z)(l,e,t)}},53867:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])},[]).filter(Boolean).join(" ")}r.d(t,{cx:()=>n})},55458:(e,t,r)=>{"use strict";r.d(t,{J:()=>h});var n=r(90063),i=r(12115),a=r(46311),s=r(61681),c=r(85668),o=r(59218),u=r(87444),l=r(32020);function h(){var e,t,r,h,d,f,m,g,p,v,y,R,_,S,b,E,w,x,P=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catchError,j=(0,a.I)(),O=(e=(0,a.I)(),r=(t=(0,l.R)()).getIndexId(),d=(h=(0,c._)((0,i.useState)(function(){return e.getUiState()}),2))[0],f=h[1],m=d[r],p=(g=(0,c._)((0,i.useState)(function(){return e.renderState}),2))[0],v=g[1],y=p[r]||{},R=(0,i.useCallback)(function(t){e.setUiState(t)},[e]),_=(0,i.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,i.useEffect)(function(){function t(){f(e.getUiState()),v(e.renderState)}return e.addListener("render",t),t(),function(){e.removeListener("render",t)}},[e]),{uiState:d,setUiState:R,indexUiState:m,setIndexUiState:_,renderState:p,indexRenderState:y}),T=O.uiState,F=O.setUiState,A=O.indexUiState,I=O.setIndexUiState,k=O.renderState,D=O.indexRenderState,C=(S=(0,a.I)(),b=(0,l.R)(),w=(E=(0,c._)((0,i.useState)(function(){var e=(0,u.J)(b);return{results:e.results,scopedResults:e.scopedResults}}),2))[0],x=E[1],(0,i.useEffect)(function(){function e(){var e=b.getResults();if(null!==e)x({results:e,scopedResults:b.getScopedResults()});else if(0===S.mainIndex.getIndexName().length){var t=S.mainIndex.getWidgets().find(o.l);t&&x({results:(0,u.J)(b).results,scopedResults:t.getScopedResults()})}}return S.addListener("render",e),e(),function(){S.removeListener("render",e)}},[S,b]),w),N=C.results,H=C.scopedResults,W=(0,i.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return j.use.apply(j,(0,n._)(t)),function(){j.unuse.apply(j,(0,n._)(t))}},[j]),$=(0,i.useCallback)(function(){j.refresh()},[j]);return(0,s.E)(function(){if(P){var e=function(){};return j.addListener("error",e),function(){return j.removeListener("error",e)}}return function(){}},[j,P]),{results:N,scopedResults:H,uiState:T,setUiState:F,indexUiState:A,setIndexUiState:I,renderState:k,indexRenderState:D,addMiddlewares:W,refresh:$,status:j.status,error:j.error}}},55492:(e,t,r)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=r(78893)},55968:(e,t)=>{"use strict";function r(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPromiseWithResolvers",{enumerable:!0,get:function(){return r}})},57948:(e,t,r)=>{"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{_:()=>n})},58668:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(12115),i=r(44686);function a(){return(0,n.useContext)(i.V)}},59218:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=["ais.index","ais.feedContainer"];function i(e){return n.includes(e.$$type)}},60233:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},60602:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]}r.d(t,{l:()=>n})},61298:e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={},s={RequestCookies:()=>f,ResponseCookies:()=>m,parseCookie:()=>u,parseSetCookie:()=>l,stringifyCookie:()=>o};for(var c in s)t(a,c,{get:s[c],enumerable:!0});function o(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function u(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,i]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=i?i:"true"))}catch{}}return t}function l(e){if(!e)return;let[[t,r],...n]=u(e),{domain:i,expires:a,httponly:s,maxage:c,path:o,samesite:l,secure:f,partitioned:m,priority:g}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var p,v,y={name:t,value:decodeURIComponent(r),domain:i,...a&&{expires:new Date(a)},...s&&{httpOnly:!0},..."string"==typeof c&&{maxAge:Number(c)},path:o,...l&&{sameSite:h.includes(p=(p=l).toLowerCase())?p:void 0},...f&&{secure:!0},...g&&{priority:d.includes(v=(v=g).toLowerCase())?v:void 0},...m&&{partitioned:!0}};let e={};for(let t in y)y[t]&&(e[t]=y[t]);return e}}e.exports=((e,a,s,c)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let o of n(a))i.call(e,o)||o===s||t(e,o,{get:()=>a[o],enumerable:!(c=r(a,o))||c.enumerable});return e})(t({},"__esModule",{value:!0}),a);var h=["strict","lax","none"],d=["low","medium","high"],f=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of u(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>o(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>o(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},m=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const i=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(i)?i:function(e){if(!e)return[];var t,r,n,i,a,s=[],c=0;function o(){for(;c<e.length&&/\s/.test(e.charAt(c));)c+=1;return c<e.length}for(;c<e.length;){for(t=c,a=!1;o();)if(","===(r=e.charAt(c))){for(n=c,c+=1,o(),i=c;c<e.length&&"="!==(r=e.charAt(c))&&";"!==r&&","!==r;)c+=1;c<e.length&&"="===e.charAt(c)?(a=!0,c=i,s.push(e.substring(t,n)),t=c):c=n+1}else c+=1;(!a||c>=e.length)&&s.push(e.substring(t,e.length))}return s}(i)){const t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,i=this._parsed;return i.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}
4({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=o(r);t.append("set-cookie",e)}}(i,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(o).join("; ")}}},61681:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(12115),i="u">typeof window?n.useLayoutEffect:n.useEffect},61777:(e,t,r)=>{"use strict";var n=r(9603),i=r(73763);e.exports=function(e,t){var r,a,s={};return t.forEach(function(t){t.forEach(function(t,r){e.includes(t.objectID)||(s[t.objectID]?s[t.objectID]={indexSum:s[t.objectID].indexSum+r,count:s[t.objectID].count+1}:s[t.objectID]={indexSum:r,count:1})})}),(r=t.length,a=[],Object.keys(s).forEach(function(e){s[e].count<2&&(s[e].indexSum+=100),a.push({objectID:e,avgOfIndices:s[e].indexSum/r})}),a.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})).reduce(function(e,r){var a=n(i(t),function(e){return e.objectID===r.objectID});return a?e.concat(a):e},[])}},63203:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(45667);function i(e){var t=n.sn.highlightPostTag,r=n.sn.highlightPreTag,i=e.split(r),a=i.shift(),s=a?[{value:a,isHighlighted:!1}]:[];return i.forEach(function(e){var r=e.split(t);s.push({value:r[0],isHighlighted:!0}),""!==r[1]&&s.push({value:r[1],isHighlighted:!1})}),s}},63289:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={delayUntilRuntimeStage:function(){return m},getRuntimeStage:function(){return f},isHangingPromiseRejectionError:function(){return s},makeDevtoolsIOAwarePromise:function(){return d},makeHangingPromise:function(){return l}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(80965);function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===c}let c="HANGING_PROMISE_REJECTION";class o extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`),this.route=e,this.expression=t,this.digest=c}}let u=new WeakMap;function l(e,t,r){if(e.aborted)return Promise.reject(new o(t,r));{let n=new Promise((n,i)=>{let a=i.bind(null,new o(t,r)),s=u.get(e);if(s)s.push(a);else{let t=[a];u.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e<t.length;e++)t[e]()},{once:!0})}});return n.catch(h),n}}function h(){}function d(e,t,r){return t.stagedRendering?t.stagedRendering.delayUntilStage(r,void 0,e):new Promise(t=>{setTimeout(()=>{t(e)},0)})}function f(e){return e.currentStage===a.RenderStage.EarlyStatic||e.currentStage===a.RenderStage.EarlyRuntime?a.RenderStage.EarlyRuntime:a.RenderStage.Runtime}function m(e,t){let{stagedRendering:r}=e;return r?r.waitForStage(f(r)).then(()=>t):t}},65159:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(85668),i=r(12115);function a(){return(0,n._)((0,i.useReducer)(function(e){return e+1},0),2)[1]}},66302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={isRequestAPICallableInsideAfter:function(){return u},throwForSearchParamsAccessInUseCache:function(){return o},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return c}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(3142),s=r(55492);function c(e,t){throw Object.defineProperty(new a.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function o(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,
4configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function u(){let e=s.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},67711:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n,u,l,h,d,f=e.hierarchicalFacets[r],m=e.hierarchicalFacetsRefinements[f.name]&&e.hierarchicalFacetsRefinements[f.name][0]||"",g=e._getHierarchicalFacetSeparator(f),p=e._getHierarchicalRootPath(f),v=e._getHierarchicalShowParentLevel(f),y=a(e._getHierarchicalFacetSortBy(f)),R=t.every(function(e){return e.exhaustive}),_=(n=y,u=g,l=p,h=v,d=m,function(e,t,r){var a=e;if(r>0){var f=0;for(a=e;f<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),f++}if(a){var m=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r,n,i,s,c;return t=e[0],r=a.path||l,n=d,i=u,s=l,c=h,(!s||0===t.indexOf(s)&&s!==t)&&(!s&&-1===t.indexOf(i)||s&&t.split(i).length-s.split(i).length==1||-1===t.indexOf(i)&&-1===n.indexOf(i)||0===n.indexOf(t)||0===t.indexOf(r+i)&&(c||0===t.indexOf(n)))});a.data=s(m.map(function(e){var r,n,i,a,s,l,h=e[0];return r=e[1],n=h,i=u,a=o(d),s=t.exhaustive,{name:(l=n.split(i))[l.length-1].trim(),path:n,escapedValue:c(n),count:r,isRefined:a===n||0===a.indexOf(n+i),exhaustive:s,data:null}}),n[0],n[1])}return e}),S=t;return p&&(S=t.slice(p.split(g).length)),S.reduce(_,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:R,data:null})}};var n=r(92623),i=r(9603),a=r(89491),s=r(52941),c=n.escapeFacetValue,o=n.unescapeFacetValue},68863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={RequestCookies:function(){return a.RequestCookies},ResponseCookies:function(){return a.ResponseCookies},stringifyCookie:function(){return a.stringifyCookie}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(61298)},69961:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{_:()=>n})},70645:(e,t,r)=>{"use strict";function n(e){return"ais.dynamicWidgets"===e.$$type||"ais.feeds"===e.$$type}r.d(t,{Q:()=>n})},71255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}},73569:(e,t,r)=>{"use strict";r.d(t,{G:()=>o});var n=r(82994),i=r(17591),a=r(99989),s=r(53867),c=r(12115),o=function(e){var t=e.createElement,r=e.Fragment,c=function(e){var r=e.classNames,n=e.children,i=e.highlightedTagName,a=e.isHighlighted,s=e.nonHighlightedTagName;return t(a?i:s,{className:a?r.highlighted:r.nonHighlighted},n)};return function(e){var o=e.parts,u=e.highlightedTagName,l=void 0===u?"mark":u,h=e.nonHighlightedTagName,d=void 0===h?"span":h,f=e.separator,m=void 0===f?", ":f,g=e.className,p=e.classNames,v=void 0===p?{}:p,y=(0,a._)(e,["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"]);return t("span",(0,i._)((0,n._)({},y),{className:(0,s.cx)(v.root,g)}),o.map(function(e,n){var i=n===o.length-1;return t(r,{key:n},e.map(function(e,r){return t(c,{key:r,classNames:v,highlightedTagName:l,nonHighlightedTagName:d,isHighlighted:e.isHighlighted},e.value)}),!i&&t("span",{className:v.separator},m))}))}}({createElement:c.createElement,Fragment:c.Fragment})},73763:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},74828:(e,t,r)=>{"use strict";let n=r(94586),i=r(44701),a=r(26818),s=r(28391),c=r(3142),o=r(34958),u=r(55892),l=r(63289);r(41850);new WeakMap;(0,s.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E835",enumerable:!1,
4configurable:!0})})},74931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},75826:(e,t,r)=>{"use strict";r.d(t,{u:()=>v});var n=r(29356),i=r(82994),a=r(17591),s=r(85668),c=r(84785),o=r(29454);function u(e){var t=e.helper,r=e.widgetType;e.methodName;var n=e.args,a=e.instantSearchInstance;if(1===n.length&&"object"===(0,c._)(n[0]))return[n[0]];var o=(0,s._)(n[0].split(":"),2),u=o[0],l=o[1],h=n[1],d=n[2],f=n[3]||{};if(!h||("click"===u||"conversion"===u)&&!d)return[];var m=Array.isArray(h)?h:[h];if(0===m.length)return[];var g=m[0].__queryID,p=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);n++)r.push(e.slice(n*t,(n+1)*t));return r}(m),v=p.map(function(e){return e.map(function(e){return e.objectID})}),y=p.map(function(e){return e.map(function(e){return e.__position})});return"view"===u?"idle"!==a.status?[]:p.map(function(e,n){var a;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:u,payload:(0,i._)({eventName:d||"Hits Viewed",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,objectIDs:v[n]},f),hits:e,eventModifier:l}}):"click"===u?p.map(function(e,n){var a;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:u,payload:(0,i._)({eventName:d||"Hit Clicked",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,queryID:g,objectIDs:v[n],positions:y[n]},f),hits:e,eventModifier:l}}):"conversion"===u?p.map(function(e,n){var a;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:u,payload:(0,i._)({eventName:d||"Hit Converted",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,queryID:g,objectIDs:v[n]},f),hits:e,eventModifier:l}}):[]}var l=r(77824),h=r(18038),d=r(45667),f=r(60602),m=(0,l.V)({name:"hits",connector:!0}),g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.l;return(0,h.t)(e,m()),function(r){var s,c,l=r||{},h=l.escapeHTML,f=void 0===h||h,m=l.transformItems,g=void 0===m?function(e){return e}:m;return{$$type:"ais.hits",init:function(t){e((0,a._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e((0,a._)((0,i._)({},r),{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return(0,a._)((0,i._)({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,n,l,h,m,p,v,y,R,_,S,b,E,w,x,P,j,O,T=e.results,F=e.helper,A=e.instantSearchInstance;if(s||(n=(t={instantSearchInstance:A,helper:F,widgetType:this.$$type}).instantSearchInstance,l=t.helper,h=t.widgetType,m={},p=void 0,s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];u({widgetType:h,helper:l,methodName:"sendEvent",args:t,instantSearchInstance:n}).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&m[e.eventType]||(m[e.eventType]=!0,n.sendEventToInsights(e))}),clearTimeout(p),p=setTimeout(function(){m={}},0)}),c||(y=(v={helper:F,widgetType:this.$$type,instantSearchInstance:A}).helper,R=v.widgetType,_=v.instantSearchInstance,c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=u({widgetType:R,helper:y,methodName:"bindEvent",args:t,instantSearchInstance:_});return n.length?"data-insights-event=".concat((0,o.h)(n)):""}),!T)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:s,bindEvent:c,widgetParams:r};f&&T.hits.length>0&&(T.hits=(0,d.S8)(T.hits));var I=g((S=T.hits,b=T.page,E=T.hitsPerPage,w=S.map(function(e,t){return(0,a._)((0,i._)({},e),{__position:E*b+t+1})}),(x=T.queryID)?w.map(function(e){return(0,a._)((0,i._)({},e),{__queryID:x})}):w),{results:T}),k=null==(O=T.renderingContent)||null==(j=O.widgets)||null==(P=j.banners)?void 0:P[0];return{hits:I,items:I,results:T,banner:k,sendEvent:s,bindEvent:c,widgetParams:r}},dispose:function(e){var r=e.state;return(t(),f)?r.setQueryParameters(Object.keys(d.FU).reduce(function(e,t){return(0,a._)((0,i._)({},e),(0,n._)({},t,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return f?e.setQueryParameters(d.FU):e}}}},p=r(51721);function v(e,t){return(0,p.Z)(g,e,t)}},77824:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){var t;return"https://www.algolia.com/doc/api-reference/widgets/"+e.name+"/js/"+(void 0!==(t=e.connector)&&t?"#connector":"")}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(
4Boolean).join("\n\n")}}r.d(t,{V:()=>n})},78519:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw Error("The value should be a number, a parsable string or an array of those.")}},78699:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n=(0,r(12115).createContext)(null)},78893:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(94040).createAsyncLocalStorage)()},80965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i={RenderStage:function(){return o},StagedRenderingController:function(){return u}};for(var a in i)Object.defineProperty(t,a,{enumerable:!0,get:i[a]});let s=r(55892),c=r(83407);var o=((n={})[n.Before=1]="Before",n[n.EarlyStatic=2]="EarlyStatic",n[n.Static=3]="Static",n[n.EarlyRuntime=4]="EarlyRuntime",n[n.Runtime=5]="Runtime",n[n.Dynamic=6]="Dynamic",n[n.Abandoned=7]="Abandoned",n);class u{constructor(e,t,r){this.abortSignal=e,this.abandonController=t,this.shouldTrackSyncIO=r,this.currentStage=1,this.syncInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.staticStageListeners=[],this.earlyRuntimeStageListeners=[],this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.staticStagePromise=(0,c.createPromiseWithResolvers)(),this.earlyRuntimeStagePromise=(0,c.createPromiseWithResolvers)(),this.runtimeStagePromise=(0,c.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,c.createPromiseWithResolvers)(),e&&e.addEventListener("abort",()=>{let{reason:t}=e;this.staticStagePromise.promise.catch(l),this.staticStagePromise.reject(t),this.earlyRuntimeStagePromise.promise.catch(l),this.earlyRuntimeStagePromise.reject(t),this.runtimeStagePromise.promise.catch(l),this.runtimeStagePromise.reject(t),this.dynamicStagePromise.promise.catch(l),this.dynamicStagePromise.reject(t)},{once:!0}),t&&t.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(e,t){if(this.currentStage>=e)t();else if(3===e)this.staticStageListeners.push(t);else if(4===e)this.earlyRuntimeStageListeners.push(t);else if(5===e)this.runtimeStageListeners.push(t);else if(6===e)this.dynamicStageListeners.push(t);else throw Object.defineProperty(new s.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}shouldTrackSyncInterrupt(){if(!this.shouldTrackSyncIO)return!1;switch(this.currentStage){case 1:case 5:case 6:case 7:default:return!1;case 2:case 3:case 4:return!0}}syncInterruptCurrentStageWithReason(e){if(1!==this.currentStage&&7!==this.currentStage){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=e,this.currentStage=7;return}switch(this.currentStage){case 2:case 3:case 4:this.syncInterruptReason=e,this.advanceStage(6);return;case 5:return}}}getSyncInterruptReason(){return this.syncInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){let{currentStage:e}=this;switch(e){case 2:this.resolveStaticStage();case 3:this.resolveEarlyRuntimeStage();case 4:this.resolveRuntimeStage();case 5:this.currentStage=7;return}}advanceStage(e){if(e<=this.currentStage)return;let t=this.currentStage;if(this.currentStage=e,t<3&&e>=3&&this.resolveStaticStage(),t<4&&e>=4&&this.resolveEarlyRuntimeStage(),t<5&&e>=5&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),t<6&&e>=6){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveStaticStage(){let e=this.staticStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.staticStagePromise.resolve()}resolveEarlyRuntimeStage(){let e=this.earlyRuntimeStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.earlyRuntimeStagePromise.resolve()}resolveRuntimeStage(){let e=this.runtimeStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.runtimeStagePromise.resolve()}resolveDynamicStage(){let e=this.dynamicStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.dynamicStagePromise.resolve()}getStagePromise(e){switch(e){case 3:return this.staticStagePromise.promise;case 4:return this.earlyRuntimeStagePromise.promise;case 5:return this.runtimeStagePromise.promise;case 6:return this.dynamicStagePromise.promise;default:throw Object.defineProperty(new s.InvariantError(`Invalid render stage: ${e}
4`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}}waitForStage(e){return this.getStagePromise(e)}delayUntilStage(e,t,r){var n,i,a;let s,c=(n=this.getStagePromise(e),i=t,a=r,s=new Promise((e,t)=>{n.then(e.bind(null,a),t)}),void 0!==i&&(s.displayName=i),s);return this.abortSignal&&c.catch(l),c}}function l(){}},82994:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(29356);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){(0,n._)(e,t,r[t])})}return e}},84568:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error("Invariant failed")}r.d(t,{V:()=>n})},84785:(e,t,r)=>{"use strict";function n(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:()=>n})},85668:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(18801),i=r(57948),a=r(88249);function s(e,t){return(0,n._)(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,c=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){c=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(c)throw n}}return a}}(e,t)||(0,a._)(e,t)||(0,i._)()}},85860:(e,t,r)=>{"use strict";r.d(t,{M:()=>a,t:()=>i});var n=0;function i(e){"recommend"===e.dependsOn&&(e.$$id=n++)}function a(){n=0}},87444:(e,t,r)=>{"use strict";r.d(t,{J:()=>c});var n=r(82994),i=r(17591),a=r(6431);function s(e){var t,r,n;return new a.SearchResults(e,[{query:null!=(t=e.query)?t:"",page:null!=(r=e.page)?r:0,hitsPerPage:null!=(n=e.hitsPerPage)?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function c(e){var t=e.getHelper(),r=e.getResults()||s(t.state),a=e.getScopedResults().map(function(t){var a=t.indexId===e.getIndexId()?r:s(t.helper.state);return(0,i._)((0,n._)({},t),{results:t.results||a})});return{results:r,scopedResults:a,recommendResults:t.lastRecommendResults}}},88177:(e,t,r)=>{"use strict";r.d(t,{i:()=>s,x:()=>l});var n={"&":"&","<":"<",">":">",'"':""","'":"'"},i=/[&<>"']/g,a=RegExp(i.source);function s(e){return e&&a.test(e)?e.replace(i,function(e){return n[e]}):e}var c={"&":"&","<":"<",">":">",""":'"',"'":"'"},o=/&(amp|quot|lt|gt|#39);/g,u=RegExp(o.source);function l(e){return e&&u.test(e)?e.replace(o,function(e){return c[e]}):e}},88249:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(28392);function i(e,t){if(e){if("string"==typeof e)return(0,n._)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n._)(e,t)}}},88686:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(29356),i=r(32789),a=r(82994),s=r(17591),c=r(99989),o=r(90063),u=r(6431),l=r(85860),h=r(59218),d=r(48270);function f(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var m=r(77824),g=r(15252),p=r(90704),v=(0,m.V)({name:"index-widget"});function y(e,t){var r=t.state,n=t.recommendState,i=t.isPageReset,a=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:a})),n!==e.recommendState&&(e.recommendState=n)}function R(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!(0,h.l)(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function _(e,t){var r=t.initialSearchParameters,n=(0,c._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,h.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):t.getWidgetSearchParameters(e,n)},r)}function S(e,t){var r=t.initialRecommendParameters,n=(0,c._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!(0,h.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):e},r)}var b=function(e){if(void 0===e||void 0===e.indexName&&!e.isolated&&!e.EXPERIMENTAL_isolated)throw Error(v("The `indexName` option is required."));var t,r,c=e.indexName,m=void 0===c?"":c,b=e.indexId,E=void 0===b?m:b,w=e.isolated,x=void 0===w?null!=(t=e.EXPERIMENTAL_isolated)&&t:w,P=[],j={},O=null,T=null,F=null,A=null,I=null,k=function(){var e,t,r,n;O&&(r=(t=function e(t){return t.reduce(function(t,r){if((0,h.l)(r)){if(r._isolated)return t;var n=e(r.getWidgets());return{hasSearchWidget:t.hasSearchWidget||n.hasSearchWidget,hasRecommendWidget:t.hasRecommendWidget||n.hasRecommendWidget}}return"recommend"===r.dependsOn?(0,s._)((0,a._)({},t),{hasRecommendWidget:!0}):"none"===r.dependsOn?t:(0,s._)((0,a._)({},t),{hasSearchWidget:!0})},{hasSearchWidget:!1,hasRecommendWidget:!1})}((e=O).mainIndex.getWidgets())).hasSearchWidget,n=t.hasRecommendWidget,e._hasSearchWidget=r,e._hasRecommendWidget=n)};return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:x,getIndexName:function(){return m},getIndexId:function(){return E},getHelper:function(){return F},getResults:function(){return(null==A?void 0:A.lastResults)?(A.lastResults._state=F.state,A.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||(0,h.l)(e)||void 0===e.$$id?this.getResults():(null==F?void 0:F.lastRecommendResults)?F.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return I},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(h.l).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat((0,o._)(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===m.length?this.getWidgets():[this])},getParent:function(){return x?null:T},createURL:function(e){return"function"==typeof e?O._createURL((0,n._)({},E,e(j))):O._createURL((0,n._)({},E,R(P,{searchParameters:e,helper:F})))},scheduleLocalSearch:(0,d.v)(function(){x&&(null==F||F.search())}),getWidgets:function(){return P},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(v("The `addWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(v("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){e.parent=t,(0,h.l)(e)||(0,l.t)(e)}),P=P.concat(r),k(),O&&r.length&&(y(F,{state:_(P,{uiState:j,initialSearchParameters:F.state}),recommendState:S(P,{uiState:j,initialRecommendParameters:F.recommendState}),_uiState:j}),r.forEach(function(e){if(e.getRenderState){var r=e.getRenderState(O.render
4State[t.getIndexId()]||{},(0,p.eX)(O,t,O._initialUiState));(0,p.r2)({renderState:r,instantSearchInstance:O,parent:t})}}),r.forEach(function(e){e.init&&e.init((0,p.eX)(O,t,O._initialUiState))}),x?this.scheduleLocalSearch():O.scheduleSearch()),this},updateWidget:function(e,t){if("function"!=typeof e.dispose)throw Error(v("The widget definition expects a `dispose` method."));if("function"!=typeof t.init&&"function"!=typeof t.render)throw Error(v("The widget definition expects a `render` and/or an `init` method."));var r=j;e.parent=void 0,t.parent=this,(0,h.l)(t)||(0,l.t)(t);var n=P.slice(),a=n.indexOf(e);if(-1===a?n.push(t):n[a]=t,P=n,k(),!O)return this;var s=e.dispose({helper:F,state:F.state,recommendState:F.recommendState,parent:this}),c=(0,i._)(s,u.RecommendParameters)?s:F.recommendState,o=s&&!(0,i._)(s,u.RecommendParameters)?s:F.state,d=O.future.preserveSharedStateOnUnmount?new u.SearchParameters({index:this.getIndexName()}):o;j=R(P,{searchParameters:_(P,{uiState:r,initialSearchParameters:d}),helper:F});var f=_(P,{uiState:j,initialSearchParameters:d});if(y(F,{state:f,recommendState:S(P,{uiState:j,initialRecommendParameters:c}),_uiState:j}),t.getRenderState){var m=t.getRenderState(O.renderState[this.getIndexId()]||{},(0,p.eX)(O,this,O._initialUiState));(0,p.r2)({renderState:m,instantSearchInstance:O,parent:this})}return t.init&&t.init((0,p.eX)(O,this,O._initialUiState)),x?this.scheduleLocalSearch():O.scheduleSearch(),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(v("The `removeWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.dispose}))throw Error(v("The widget definition expects a `dispose` method."));if(P=P.filter(function(e){return -1===r.indexOf(e)}),r.forEach(function(e){e.parent=void 0}),k(),O&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:F,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return(0,i._)(n,u.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:F.state,cleanedRecommendState:F.recommendState}),a=n.cleanedSearchState,s=n.cleanedRecommendState,c=O.future.preserveSharedStateOnUnmount?_(P,{uiState:j,initialSearchParameters:new u.SearchParameters({index:this.getIndexName()})}):_(P,{uiState:R(P,{searchParameters:a,helper:F}),initialSearchParameters:a});j=R(P,{searchParameters:c,helper:F}),F.setState(c),F.recommendState=s,P.length&&(x?this.scheduleLocalSearch():O.scheduleSearch())}return this},init:function(e){var t,r=this,n=e.instantSearchInstance,i=e.parent,c=e.uiState;if(null===F){O=n,T=i,j=c[E]||{};var l=n.mainHelper,d=_(P,{uiState:j,initialSearchParameters:new u.SearchParameters({index:m})}),v=S(P,{uiState:j,initialRecommendParameters:new u.RecommendParameters});(F=u(l.getClient(),d.index,d)).recommendState=v,F.search=function(){return x?(n.status="loading",r.render({instantSearchInstance:n}),n.compositionID?F.searchWithComposition():F.searchOnlyWithDerivedHelpers()):n.onStateChange?(n.onStateChange({uiState:n.mainIndex.getWidgetUiState({}),setUiState:function(e){return n.setUiState(e,!1)}}),l):l.search()},F.searchWithoutTriggeringOnStateChange=function(){return l.search()},F.searchForFacetValues=function(e,t,n,i){var a=g.p.apply(void 0,[l.state].concat((0,o._)(f(r)))).setQueryParameters(i);return l.searchForFacetValues(e,t,n,a)};var b=m?F:u({},"__empty_index__",{});A=(x?b:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(i,l)).derive(function(){return g.p.apply(void 0,[l.state].concat((0,o._)(f(r))))},function(){return function(e,t){var r=t.userToken,n=t.clickAnalytics;if(void 0===r&&void 0===n)return e;var i=(0,a._)({},void 0===n?{}:{clickAnalytics:n},void 0===r?{}:{userToken:r});return new u.RecommendParameters({params:e.params.map(function(e){var t=e.queryParameters,r=e.fallbackParameters;return(0,a._)((0,s._)((0,a._)({},e),{queryParameters:(0,a._)({},i,t)}),r&&{fallbackParameters:(0,a._)({},i,r)})})})}(r.getHelper().recommendState,l.state)});var w=null==(t=n._initialResults)?void 0:t[this.getIndexId()];if(null==w?void 0:w.results){var D=new u.SearchResults(new u.SearchParameters(w.state),w.results);A.lastResults=D,F.lastResults=D}if(null==w?void 0:w.recommendResults){var C=new u.RecommendResults(new u.RecommendParameters({params:w.recommendResults.params}),w.recommendResults.results);A.lastRecommendResults=C,F.lastRecommendResults=C}F.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(h.l);0!==r.length&&r.forEach(function(t){var r=t.getHelper();y(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}
4),e(t.getWidgets())})}(P)}),A.on("search",function(){n.scheduleStalledRender()}),A.on("result",function(e){var t=e.results;n.scheduleRender(),F.lastResults=t,I=null==t?void 0:t._state}),A.on("recommend:result",function(e){var t=e.recommend;n.scheduleRender(),F.lastRecommendResults=t.results}),P.forEach(function(e){if(e.getRenderState){var t=e.getRenderState(n.renderState[r.getIndexId()]||{},(0,p.eX)(n,r,c));(0,p.r2)({renderState:t,instantSearchInstance:n,parent:r})}}),P.forEach(function(e){e.init&&e.init((0,p.eX)(n,r,c))}),F.on("change",function(e){var t=e.state,r=e._uiState;j=R(P,{searchParameters:t,helper:F},r||{}),n.onStateChange||n.onInternalStateChange()}),w&&n.scheduleRender(),k()}},render:function(e){var t=this,n=e.instantSearchInstance;"error"!==n.status?r=void 0:n.error!==r&&!n.mainHelper.hasPendingRequests()&&I&&(r=n.error,F.setState(I));var i=this.getResults()||(null==A?void 0:A.lastRecommendResults)||x&&!m?P:P.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})})).forEach(function(e){if(e.getRenderState){var r=e.getRenderState(n.renderState[t.getIndexId()]||{},(0,p.Ah)(n,t,e));(0,p.r2)({renderState:r,instantSearchInstance:n,parent:t})}}
4),i.forEach(function(e){e.render&&e.render((0,p.Ah)(n,t,e))})},dispose:function(){var e=this;P.forEach(function(t){t.dispose&&F&&t.dispose({helper:F,state:F.state,recommendState:F.recommendState,parent:e})}),O=null,T=null,null==F||F.removeAllListeners(),F=null,null==A||A.detach(),A=null},getWidgetUiState:function(e){return P.filter(h.l).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,s._)((0,a._)({},e),(0,n._)({},E,(0,a._)({},e[E],j))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return _(P,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){j=R(P,{searchParameters:this.getHelper().state,helper:this.getHelper()},j)},setIndexUiState:function(e){var t="function"==typeof e?e(j):e;O.setUiState(function(e){return(0,s._)((0,a._)({},e),(0,n._)({},E,t))})}}}},89491:(e,t,r)=>{"use strict";var n=r(9603);e.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),a=n(r,function(e){return e[0]===i[0]});return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1])):(e[0].push(a[0]),e[1].push(a[1])),e},[[],[]])}},90063:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(28392),i=r(99473),a=r(88249);function s(e){return function(e){if(Array.isArray(e))return(0,n._)(e)}(e)||(0,i._)(e)||(0,a._)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},90109:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}},90537:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(69961),i=r(84),a=r(29356),s=r(11037),c=r(96964),o=function(e){e&&(window.document.title=e)},u=function(){function e(t){var r=this,i=t.windowTitle,s=t.writeDelay,u=t.createURL,l=t.parseURL,h=t.getLocation,d=t.start,f=t.dispose,m=t.push,g=t.cleanUrlOnDispose;(0,n._)(this,e),(0,a._)(this,"$$type","ais.browser"),(0,a._)(this,"windowTitle",void 0),(0,a._)(this,"writeDelay",void 0),(0,a._)(this,"_createURL",void 0),(0,a._)(this,"parseURL",void 0),(0,a._)(this,"getLocation",void 0),(0,a._)(this,"writeTimer",void 0),(0,a._)(this,"_onPopState",void 0),(0,a._)(this,"inPopState",!1),(0,a._)(this,"isDisposed",!1),(0,a._)(this,"latestAcknowledgedHistory",0),(0,a._)(this,"_start",void 0),(0,a._)(this,"_dispose",void 0),(0,a._)(this,"_push",void 0),(0,a._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=i,this.writeTimer=void 0,this.writeDelay=void 0===s?400:s,this._createURL=u,this.parseURL=l,this.getLocation=h,this._start=d,this._dispose=f,this._push=m,this._cleanUrlOnDispose=void 0===g||g,(0,c.x)(function(e){var t=e.window;o(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return(0,i._)(e,[{key:"read",value:function(){return this.parseURL({qsModule:s,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;(0,c.x)(function(r){var n=r.window,i=t.createURL(e),a=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){o(a),t.shouldWrite(i)&&(t._push?t._push(i):n.history.pushState(e,a||"",i),t.latestAcknowledgedHistory=n.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}},{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},(0,c.x)(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:s,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,(0,c.x)(function(t){var r=t.window;e._onPopState&&r.removeEventListener("popstate",e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(e){var t=this;return(0,c.x)(function(r){var n=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==n.history.length);return!t.inPopState&&i&&e!==n.location.href})}}]),e}();function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,n=e.location,i=n.protocol,a=n.hostname,s=n.port,c=void 0===s?"":s,o=n.pathname,u=n.hash,l=t.stringify(r),h=""===c?"":":".concat(c);return l?"".concat(i,"//").concat(a).concat(h).concat(o,"?").concat(l).concat(u):"".concat(i,"//").concat(a).concat(h).concat(o).concat(u)}:t,n=e.parseURL,i=void 0===n?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,s=e.windowTitle,o=e.getLocation;return new u({createURL:r,parseURL:i,writeDelay:void 0===a?400:a,windowTitle:s,getLocation:void 0===o?function(){return(0,c.x)(function(e){return e.window.location},{fallback:function(){throw Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:o,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}},90704:(e,t,r)=>{"use strict";r.d(t,{Ah:()=>c,eX:()=>s,r2:()=>o});var n=r(29356),i=r(82994),a=r(17591);function s(e,t,r){var n=t.getHelper();return{uiState:r,helper:n,parent:t,instantSearchInstance:e,state:n.state,render
vendor: 13,882 bytes, line 4
4State:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function c(e,t,r){var n=t.getResultsForWidget(r),i=t.getHelper();return{helper:i,parent:t,instantSearchInstance:e,results:n,scopedResults:t.getScopedResults(),state:n&&"_state"in n?n._state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function o(e){var t=e.renderState,r=e.instantSearchInstance,s=e.parent,c=s?s.getIndexId():r.mainIndex.getIndexId();r.renderState=(0,a._)((0,i._)({},r.renderState),(0,n._)({},c,(0,i._)({},r.renderState[c],t)))}},91733:(e,t,r)=>{"use strict";var n=r(29792),i=r(9603),a=r(52713),s=r(29e3),c=r(8105),o=r(27685),u=r(78519),l=r(16806),h=r(14097);function d(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return d(t[r],e)}):e===t}function f(e){var t=e?f._parseNumbers(e):{};void 0===t.userToken||l(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 r=this;Object.keys(t).forEach(function(e){var n=-1!==f.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function m(e){var t=parseFloat(e);return isFinite(t)?t:null}f.PARAMETERS=Object.keys(new f),f._parseNumbers=function(e){if(e instanceof f)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);isNaN(i)?t[r]=n:isFinite(i)?t[r]=i:t[r]=null}else"number"!=typeof n||isFinite(n)||(t[r]=null)}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null}):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].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return s(e,t)},f.make=function(e){var t=new f(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},f.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&c(r.numericRefinements)?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."):c(e.numericRefinements)&&r.numericFilters?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},f.prototype={constructor:f,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.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,r){var n=u(r);if(this.isNumericRefined(e,t,n))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(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&d(n.val,u(r))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===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 c(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return o(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,i){var a=r[i],s={};return Object.keys(a=a||{}).forEach(function(r){var n=a[r]||[],c=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||c.push(t)}),c.length!==n.length&&(t=!0),s[r]=c}),n[i]=s,n},{});return t?n: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 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 Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.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 Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.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 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 Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(r))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n(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)&&h.isRef
4ined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return!!this.numericRefinements[e];var n,a=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!a)return a;var s=u(r),c=void 0!==(n=this.numericRefinements[e][t],i(n,function(e){return d(e,s)}));return a&&c},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(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()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach(function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=f.validate(this,e);if(t)throw t;var r=this,n=f._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),a=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?o(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(a)},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 i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=f},91793:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(2961),i=r.n(n),a=r(12115),s=r(78829),c=r(56825),o=r(95155);let u=a.forwardRef(({bsPrefix:e,active:t=!1,children:r,className:n,as:a="li",linkAs:u=c.A,linkProps:l={},href:h,title:d,target:f,...m},g)=>{let p=(0,s.oU)(e,"breadcrumb-item");return(0,o.jsx)(a,{ref:g,...m,className:i()(p,n,{active:t}),"aria-current":t?"page":void 0,children:t?r:(0,o.jsx)(u,{...l,href:h,title:d,target:f,children:r})})});u.displayName="BreadcrumbItem";let l=a.forwardRef(({bsPrefix:e,className:t,listProps:r={},children:n,label:a="breadcrumb",as:c="nav",...u},l)=>{let h=(0,s.oU)(e,"breadcrumb");return(0,o.jsx)(c,{"aria-label":a,className:t,ref:l,...u,children:(0,o.jsx)("ol",{...r,className:i()(h,null==r?void 0:r.className),children:n})})});l.displayName="Breadcrumb";let h=Object.assign(l,{Item:u})},91964:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var n=(0,r(12115).createContext)(null)},92623:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},93623:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(12115),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},94040:(e,t)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0});var r={bindSnapshot:function(){return o},createAsyncLocalStorage:function(){return c},createSnapshot:function(){return u}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class a{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}static bind(e){return e}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function c(){return s?new s:new a}function o(e){return s?s.bind(e):a.bind(e)}function u(){return s?s.snapshot():function(e,...t){return e(...t)}}},94586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={getCacheSignal:function(){return y},getDraftModeProviderForCacheScope:function(){return p},getHmrRefreshHash:function(){return f},getPrerenderResumeDataCache:function(){return h},getRenderResumeDataCache:function(){return d},getServerComponentsHmrCache:function(){return g},getStagedRenderingController:function(){return v},isHmrRefresh:function(){return m},isInEarlyRenderStage:function(){return o},throwForMissingRequestStore:function(){return u},throwInvariantForMissingStore:function(){return l},workUnitAsyncStorage:function(){return a.workUnitAsyncStorageInstance}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(74931);r(22431);let s=r(71255),c=r(50197);function o(e){let t=e.stagedRendering;return!!t&&(t.currentStage===c.RenderStage.EarlyStatic||t.currentStage===c.RenderStage.EarlyRuntime)}function u(e){throw Object.defineProperty(Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function l(){throw Object.defineProperty(new s.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function h(e){switch(e.type){case"prerender":case"prerender-runtime":case"prerender-ppr":case"prerender-client":case"validation-client":return e.prerenderResumeDataCache;case"request":if(e.prerenderResumeDataCache)return e.prerenderResumeDataCache;case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function d(e){switch(e.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":if(e.renderResumeDataCache)return e.renderResumeDataCache;case"prerender-ppr":return e.prerenderResumeDataCache??null;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":case"generate-static-params":return null;default:return e}}function f(e){}function m(e){return!1}function g(e){}function p(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return t.draftMode}}function v(e){switch(e.type){case"request":case"prerender-runtime":return e.stagedRendering??null;case"prerender":case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}function y(e){switch(e.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return e.cacheSignal;case"request":if(e.cacheSignal)return e.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return e}}},95136:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r,a){var s,c;if((null==a?void 0:a(t,r))||t===r)return!0;if(t&&r&&(s=t.constructor)===r.constructor){if(s===Date)return t.getTime()===r.getTime();if(s===RegExp)return t.toString()===r.toString();if(s===Array){if((c=t.length)===r.length)for(;c--&&e(t[c],r[c],a););return -1===c}if(!s||(void 0===t?"undefined":(0,n._)(t))==="object"){for(s in c=0,t)if(i.call(t,s)&&++c&&!i.call(r,s)||!(s in r)||!e(t[s],r[s],a))return!1;return Object.keys(r).length===c}}return t!=t&&r!=r}});var n=r(84785),i=Object.prototype.hasOwnProperty},95273:(e,t,r)=>{"use strict";var n=r(50605),i=r(43636),a=r(92623).escapeFacetValue,s=r(33396),c=r(29e3),o=r
4(8105),u=r(27685),l=r(27355),h=r(21605),d=r(96494),f=r(91733),m=r(17523),g=r(61777),p=r(18110);function v(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.setClient(e);var i=r||{};i.index=t,this.state=f.make(i),this.recommendState=new l({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function y(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function R(){return this.state.page}s(v,n),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},v.prototype.recommend=function(){return this._recommend(),this},v.prototype.getQuery=function(){var e=this.state;return d._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=d._getQueries(r.index,r),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t)?void this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new m(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}):this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new m(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},v.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=c({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(d._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(a);var s=this.client.initIndex(n.index);if("function"!=typeof s.findAnswers)throw Error(a);return s.findAnswers(n.query,e.queryLanguages,i)},v.prototype.searchForFacetValues=function(e,t,r,n){var i,s="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,c="function"==typeof this.client.initIndex;if(!s&&!c&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(n||{}),u=o.isDisjunctiveFacet(e),l=d.getSearchForFacetQuery(e,t,r,o);this._currentNbQueries++;var h=this;s?i=this.client.searchForFacetValues([{indexName:o.index,params:l}]):c?i=this.client.initIndex(o.index).searchForFacetValues(l):(delete l.facetName,i=this.client.search([{type:"facet",facet:e,indexName:o.index,params:l}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:o,facet:e,query:t});var f=this.lastResults&&this.lastResults.index===o.index&&this.lastResults.renderingContent&&this.lastResults.renderingContent.facetOrdering&&this.lastResults.renderingContent.facetOrdering.values&&this.lastResults.renderingContent.facetOrdering.values[e]&&this.lastResults.renderingContent.facetOrdering.values[e].hide||[];return i.then(function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=t.facetHits.reduce(function(t,r){return f.indexOf(r.value)>-1||(r.escapedValue=a(r.value),r.isRefined=u?o.isDisjunctiveFacetRefined(e,r.escapedValue):o.isFacetRefined(e,r.escapedValue),t.push(r)),t},[]),t},function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e})},v.prototype.searchForCompositionFacetValues=function(e,t,r,n){if("function"!=typeof this.client.searchForFacetValues)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i,s=this.state.setQueryParameters(n||{}),c=s.isDisjunctiveFacet(e);this._currentNbQueries++;var o=this;return i=this.client.searchForFacetValues({compositionID:s.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:d._getCompositionHitsSearchParams(s)}}}
vendor: 8,568 bytes, line 4
4),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),i.then(function(t){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=a(t.value),t.isRefined=c?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)}),t},function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e})},v.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},v.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},v.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},v.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},v.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},v.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},v.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},v.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},v.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},v.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},v.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},v.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},v.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},v.prototype.setState=function(e){return this._change({state:f.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new f(e),this},v.prototype.hasRefinements=function(e){return!!o(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},v.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},v.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},v.prototype.hasTag=function(e){return this.state.isTagRefined(e)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=R,v.prototype.getPage=R,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach(function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})}),t},v.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},v.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},v.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=d._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?d._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),a=Array.prototype.concat.apply(n,i),s=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(e){this.emit("error",{error:e})}},v.prototype._runComposition=function(){var e=this.state,t=[],r=this.derivedHelpers.map(function(r){var n=r.getModifiedState(e),i=d._getCompositionQueries(n);return t.push({state:n,helper:r}),r.emit("search",{state:n,results:r.lastResults}),i}),n=Array.prototype.concat.apply([],r),i=this._queryId++;if(this._currentNbQueries++,!n.length)return Promise.resolve({results:[]}
4).then(this._dispatchAlgoliaResponse.bind(this,t,i));if(n.length>1)throw Error("Only one query is allowed when using a composition.");var a=n[0];try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,t,i)).catch(this._dispatchAlgoliaError.bind(this,i))}catch(e){this.emit("error",{error:e})}},v.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map(function(e){return e.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var a=this._recommendCache,s=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var s=t.getModifiedRecommendState(new l);return n.push({state:s,index:r,helper:t}),i=Array.prototype.concat.apply(i,s.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:s,results:t.lastRecommendResults}}),s._buildQueries(r,a)}),c=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),s);if(0!==c.length){if(c.length>0&&void 0===this.client.getRecommendations)return void console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");var o=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(c).then(this._dispatchRecommendResponse.bind(this,o,n,i)).catch(this._dispatchRecommendError.bind(this,o))}catch(e){this.emit("error",{error:e})}}},v.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var i=r.results.slice(),a=Object.keys(r).reduce(function(e,t){return"results"!==t&&(e[t]=r[t]),e},{});Object.keys(a).length<=0&&(a=void 0),e.forEach(function(e){var t=e.state,r=e.queriesCount,s=e.helper,c=void 0!==r?i.splice(0,r):i;if(!t.index)return void s.emit("result",{results:null,state:t});if(c.length>0&&c[0].feedID){var o=c.map(function(e){var r=new m(t,[e],n._searchResultsOptions);return void 0!==a&&(r._rawContent=a),r});s.lastResults=new m(t,[c[0]],n._searchResultsOptions),s.lastResults.feeds=o,void 0!==a&&(s.lastResults._rawContent=a)}else s.lastResults=new m(t,c,n._searchResultsOptions),void 0!==a&&(s.lastResults._rawContent=a);s.emit("result",{results:s.lastResults,state:t})})}},v.prototype._dispatchRecommendResponse=function(e,t,r,n){if(!(e<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty");var i=this._recommendCache,a={};r.filter(function(e){return void 0===i[e]}).forEach(function(e,t){a[e]||(a[e]=[]),a[e].push(t)}),Object.keys(a).forEach(function(e){var t=a[e],s=n.results[t[0]];if(1===t.length){i[e]=s;return}i[e]=Object.assign({},s,{hits:g(r,t.map(function(e){return n.results[e].hits}))})});var s={};r.forEach(function(e){s[e]=i[e]}),t.forEach(function(e){var t=e.state,r=e.helper;e.index?(r.lastRecommendResults=new h(t,s),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,state:t}})):r.emit("recommend:result",{results:null,state:t})})}},v.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},v.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},v.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},v.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},v.prototype._change=function(e){var t=e.state,r=e.isPageReset;
vendor: 3,995 bytes, line 4
4t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},v.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=v},96494:(e,t,r)=>{"use strict";var n=r(29e3);function i(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var a={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,n)})}),t.getRefinedHierarchicalFacets().forEach(function(n){var i=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),c=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(c).length>1){var o=s[0].split(c).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(c)})},[]);o.forEach(function(n,s){var c=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===s);function u(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(c.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!u(e)});r.length>0&&e.push(r)}return"string"!=typeof t||u(t)||e.push(t),e},[]),h=o[s-1];s>0?c.facetFilters=l.concat(h.attribute+":"+h.value):l.length>0?c.facetFilters=l:delete c.facetFilters,r.push({indexName:e,params:c})})}}),r},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:a._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),c=a._getTagFilters(e),o={};return t.length>0&&(o.facets=t.indexOf("*")>-1?["*"]:t),c.length>0&&(o.tagFilters=c),r.length>0&&(o.facetFilters=r),s.length>0&&(o.numericFilters=s),i(n({},e.getQueryParams(),o))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map(function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?"disjunctive("+t+")":t})).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),c=a._getTagFilters(e),o={};t.length>0&&(o.facets=t.indexOf("*")>-1?["*"]:t),c.length>0&&(o.tagFilters=c),r.length>0&&(o.facetFilters=r),s.length>0&&(o.numericFilters=s);var u=e.getQueryParams();return delete u.highlightPreTag,delete u.highlightPostTag,delete u.index,i(n({},u,o))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=a._getFacetFilters(e,t,r),c=a._getNumericFilters(e,t),o=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};o.length>0&&(u.tagFilters=o);var l=e.getHierarchicalFacetByName(t);return l?u.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,r):u.facets=t,c.length>0&&(u.numericFilters=c),s.length>0&&(u.facetFilters=s),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};
4Object.keys(i).forEach(function(e){var a=i[e]||[];t!==n&&a.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return n+e+t});r.push(i)}else r.push(n+e+t)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){n.push(e+":"+t)})});var a=e.facetsExcludes||{};Object.keys(a).sort().forEach(function(e){(a[e]||[]).sort().forEach(function(t){n.push(e+":-"+t)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach(function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var c=e.hierarchicalFacetsRefinements||{};return Object.keys(c).sort().forEach(function(i){var a,s,o=(c[i]||[])[0];if(void 0!==o){var u=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(u),h=e._getHierarchicalRootPath(u);if(t===i){if(-1===o.indexOf(l)||!h&&!0===r||h&&h.split(l).length===o.split(l).length)return;h?(s=h.split(l).length-1,o=h):(s=o.split(l).length-2,o=o.slice(0,o.lastIndexOf(l))),a=u.attributes[s]}else s=o.split(l).length-1,a=u.attributes[s];a&&n.push([a+":"+o])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,s){var c=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,o={facetQuery:t,facetName:e};return"number"==typeof r&&(o.maxFacetHits=r),i(n({},a._getHitsSearchParams(c),o))}};e.exports=a},96964:(e,t,r)=>{"use strict";function n(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"u"<typeof window?t():e({window:window})}r.d(t,{x:()=>n})},98485:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(84785);function i(e){if((void 0===e?"undefined":(0,n._)(e))!=="object"||null===e||"[object Object]"!==(null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},99473:(e,t,r)=>{"use strict";function n(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{_:()=>n})},99989:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}r.d(t,{_:()=>n})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.