vendor: 10,991 bytes, line 1
1(()=>{var e,t,r,n,a,i={30:(e,t,r)=>{"use strict";r.d(t,{Ah:()=>o,eX:()=>s,r2:()=>c});var n=r(467),a=r(1893),i=r(5456);function s(e,t,r){var n=t.getHelper();return{uiState:r,helper:n,parent:t,instantSearchInstance:e,state:n.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function o(e,t,r){var n=t.getResultsForWidget(r),a=t.getHelper();return{helper:a,parent:t,instantSearchInstance:e,results:n,scopedResults:t.getScopedResults(),state:n&&"_state"in n?n._state:a.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function c(e){var t=e.renderState,r=e.instantSearchInstance,s=e.parent,o=s?s.getIndexId():r.mainIndex.getIndexId();r.renderState=(0,i._)((0,a._)({},r.renderState),(0,n._)({},o,(0,a._)({},r.renderState[o],t)))}},69:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(9886);function a(e,t){if(void 0===e||"function"!=typeof e)throw new Error("The render function is not valid (received type ".concat((0,n.K)(e),").\n\n").concat(t))}},172:(e,t,r)=>{"use strict";r.d(t,{FK:()=>P,XX:()=>W,_3:()=>x,fF:()=>a,h:()=>b,n:()=>b,uA:()=>S});var n,a,i,s,o,c,l,u,d,h,p,m={},f=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var r in t)e[r]=t[r];return e}function w(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,r){var a,i,s,o={};for(s in t)"key"==s?a=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return _(e,o,a,i,null)}function _(e,t,r,n,s){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=a.vnode&&a.vnode(o),o}function x(){return{current:null}}function P(e){return e.children}function S(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?k(e):null}function R(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return R(e)}}function T(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!E.__r++||o!=a.debounceRendering)&&((o=a.debounceRendering)||c)(E)}function E(){for(var e,t,r,n,i,o,c,u=1;s.length;)s.length>u&&s.sort(l),e=s.shift(),u=s.length,e.__d&&(r=void 0,n=void 0,i=(n=(t=e).__v).__e,o=[],c=[],t.__P&&((r=y({},n)).__v=n.__v+1,a.vnode&&a.vnode(r),j(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,null==i?k(n):i,!!(32&n.__u),c),r.__v=n.__v,r.__.__k[r.__i]=r,M(o,r,c),n.__e=n.__=null,r.__e!=i&&R(r)));E.__r=0}function C(e,t,r,n,a,i,s,o,c,l,u){var d,h,p,g,v,y,w,b=n&&n.__k||f,_=t.length;for(c=I(r,t,b,c,_),d=0;d<_;d++)null!=(p=r.__k[d])&&(h=-1==p.__i?m:b[p.__i]||m,p.__i=d,y=j(e,p,h,a,i,s,o,c,l,u),g=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&$(h.ref,null,p),u.push(p.ref,p.__c||g,p)),null==v&&null!=g&&(v=g),(w=!!(4&p.__u))||h.__k===p.__k?c=q(p,c,e,w):"function"==typeof p.type&&void 0!==y?c=y:g&&(c=g.nextSibling),p.__u&=-7);return r.__e=v,c}function I(e,t,r,n,a){var i,s,o,c,l,u=r.length,d=u,h=0;for(e.__k=new Array(a),i=0;i<a;i++)null!=(s=t[i])&&"boolean"!=typeof s&&"function"!=typeof s?(c=i+h,(s=e.__k[i]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?_(null,s,null,null,null):v(s)?_(P,{children:s},null,null,null):null==s.constructor&&s.__b>0?_(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,o=null,-1!=(l=s.__i=A(s,r,c,d))&&(d--,(o=r[l])&&(o.__u|=2)),null==o||null==o.__v?(-1==l&&(a>u?h--:a<u&&h++),"function"!=typeof s.type&&(s.__u|=4)):l!=c&&(l==c-1?h--:l==c+1?h++:(l>c?h--:h++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)null!=(o=r[i])&&!(2&o.__u)&&(o.__e==n&&(n=k(o)),U(o,o));return n}function q(e,t,r,n){var a,i;if("function"==typeof e.type){for(a=e.__k,i=0;a&&i<a.length;i++)a[i]&&(a[i].__=e,t=q(a[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=k(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function A(e,t,r,n){var a,i,s,o=e.key,c=e.type,l=t[r],u=null!=l&&!(2&l.__u);if(null===l&&null==e.key||u&&o==l.key&&c==l.type)return r;if(n>(u?1:0))for(a=r-1,i=r+1;a>=0||i<t.length;)if(null!=(l=t[s=a>=0?a--:i++])&&!(2&l.__u)&&o==l.key&&c==l.type)return s;return-1}function N(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||g.test(t)?r:r+"px"}function D(e,t,r,n,a){var i,s;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||N(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||N(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(u,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=d,e.addEventListener(t,i?p:h,i)):e.removeEventListener(t,i?p:h,i);else{if("http://www.w3.org/2000/svg"==a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function F(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<r.u)return;return r(a.event?a.event(t):t)}}}function j(e,t,r,n,i,s,o,c,l,u){var d,h,p,m,f,g,b,_,x,k,R,T,E,I,q,A,N,D=t.type;if(null!=t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),s=[c=t.__e=r.__e]),(d=a.__b)&&d(t);e:if("function"==typeof D)try{if(_=t.props,x="prototype"in D&&D.prototype.render,k=(d=D.contextType)&&n[d.__c],R=d?k?k.props.value:d.__:n,r.__c?b=(h=t.__c=r.__c).__=h.__E:(x?t.__c=h=new D(_,R):(t.__c=h=new S(_,R),h.constructor=D,h.render=B),k&&k.sub(h),h.props=_,h.state||(h.state={}),h.context=R,h.__n=n,p=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=D.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=y({},h.__s)),y(h.__s,D.getDerivedStateFromProps(_,h.__s))),m=h.props,f=h.state,h.__v=t,p)x&&null==D.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==D.getDerivedStateFromProps&&_!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(_,R),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(_,h.__s,R)||t.__v==r.__v){for(t.__v!=r.__v&&(h.props=_,h.state=h.__s,h.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[],h.__h.length&&o.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(_,h.__s,R),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(m,f,g)})}if(h.context=R,h.props=_,h.__P=e,h.__e=!1,E=a.__r,I=0,x){for(h.state=h.__s,h.__d=!1,E&&E(t),d=h.render(h.props,h.state,h.context),q=0;q<h._sb.length;q++)h.__h.push(h._sb[q]);h._sb=[]}else do{h.__d=!1,E&&E(t),d=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(n=y(y({},n),h.getChildContext())),x&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(m,f)),A=d,null!=d&&d.type===P&&null==d.key&&(A=L(d.props.children)),c=C(e,v(A)?A:[A],t,r,n,i,s,o,c,l,u),h.base=t.__e,t.__u&=-161,h.__h.length&&o.push(h),b&&(h.__E=h.__=null)}catch(e){if(t.__v=null,l||null!=s)if(e.then){for(t.__u|=l?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,t.__e=c}else{for(N=s.length;N--;)w(s[N]);O(t)}else t.__e=r.__e,t.__k=r.__k,e.then||O(t);a.__e(e,t,r)}else null==s&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):c=t.__e=H(r.__e,t,r,n,i,s,o,l,u);return(d=a.diffed)&&d(t),128&t.__u?void 0:c}function O(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(O)}function M(e,t,r){for(var n=0;n<r.length;n++)$(r[n],r[++n],r[++n]);a.__c&&a.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){a.__e(e,t.__v)}})}function L(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:v(e)?e.map(L):y({},e)}function H(e,t,r,i,s,o,c,l,u){var d,h,p,f,g,y,b,_=r.props,x=t.props,P=t.type;if("svg"==P?s="http://www.w3.org/2000/svg":"math"==P?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=o)for(d=0;d<o.length;d++)if((g=o[d])&&"setAttribute"in g==!!P&&(P?g.localName==P:3==g.nodeType)){e=g,o[d]=null;break}if(null==e){if(null==P)return document.createTextNode(x);e=document.createElementNS(s,P,x.is&&x),l&&(a.__m&&a.__m(t,o),l=!1),o=null}if(null==P)_===x||l&&e.data==x||(e.data=x);else{if(o=o&&n.call(e.childNodes),_=r.props||m,!l&&null!=o)for(_={},d=0;d<e.attributes.length;d++)_[(g=e.attributes[d]).name]=g.value;for(d in _)if(g=_[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=g;else if(!(d in x)){if("value"==d&&"defaultValue"in x||"checked"==d&&"defaultChecked"in x)continue;D(e,d,null,g,s)}for(d in x)g=x[d],"children"==d?f=g:"dangerouslySetInnerHTML"==d?h=g:"value"==d?y=g:"checked"==d?b=g:l&&"function"!=typeof g||_[d]===g||D(e,d,g,_[d],s);if(h)l||p&&(h.__html==p.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(p&&(e.innerHTML=""),C("template"==t.type?e.content:e,v(f)?f:[f],t,r,i,"foreignObject"==P?"http://www.w3.org/1999/xhtml":s,o,c,o?o[0]:r.__k&&k(r,0),l,u),null!=o)for(d=o.length;d--;)w(o[d]);l||(d="value","progress"==P&&null==y?e.removeAttribute("value"):null!=y&&(y!==e[d]||"progress"==P&&!y||"option"==P&&y!=_[d])&&D(e,d,y,_[d],s),d="checked",null!=b&&b!=e[d]&&D(e,d,b,_[d],s))}return e}function $(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){a.__e(e,r)}}function U(e,t,r){var n,i;if(a.unmount&&a.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||$(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){a.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&U(n[i],t,r||"function"!=typeof e.type);r||w(e.__e),e.__c=e.__=e.__e=void 0}function B(e,t,r){return this.constructor(e,r)}function W(e,t,r){var i,s,o,c;t==document&&(t=document.documentElement),a.__&&a.__(e,t),s=(i="function"==typeof r)?null:r&&r.__k||t.__k,o=[],c=[],j(t,e=(!i&&r||t).__k=b(P,null,[e]),s||m,m,t.namespaceURI,!i&&r?[r]:s?null:t.firstChild?n.call(t.childNodes):null,o,!i&&r?r:s?s.__e:t.firstChild,i,c),M(o,e,c)}n=f.slice,a={__e:function(e,t,r,n){for(var a,i,s;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),s=a.__d),null!=a.c
1omponentDidCatch&&(a.componentDidCatch(e,n||{}),s=a.__d),s)return a.__E=a}catch(t){e=t}throw e}},i=0,S.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},r),this.props)),e&&y(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),T(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),T(this))},S.prototype.render=P,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,u=/(PointerCapture)$|Capture$/i,d=0,h=F(!1),p=F(!0)},205:(e,t,r)=>{"use strict";function n(e){return e.filter(function(e,t,r){return r.indexOf(e)===t})}r.d(t,{s:()=>n})},218:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1893),a=r(5456),i=r(7121),s=r(513),o=function(e){var t=(0,i.A)(s.l);return(0,a._)((0,n._)({},t({searchParameters:e})),{$$widgetType:"ais.configure"})}},267:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){return["https://www.algolia.com/doc/api-reference/widgets/",(t=e).name,"/js/",void 0!==(r=t.connector)&&r?"#connector":""].join("");var t,r}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}r.d(t,{V:()=>n})},307:(e,t,r)=>{"use strict";function n(e){return Array.isArray(e)?e:[e]}r.d(t,{$:()=>n})},317:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},353:(e,t,r)=>{"use strict";r.r(t),r.d(t,{apiClientVersion:()=>i,querySuggestionsClient:()=>o});var n=r(4267),a=r(5375),i="5.49.2",s=["eu","us"];function o(e,t,r,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");if(!r||r&&("string"!=typeof r||!s.includes(r)))throw new Error(`\`region\` is required and must be one of the following: ${s.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:s,...o}){const c=(0,n.PA)(e,t,r),l=(0,n.zf)({hosts:(u=s,[{url:"query-suggestions.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"QuerySuggestions",version:i}),baseHeaders:{"content-type":"text/plain",...c.headers(),...o.baseHeaders},baseQueryParameters:{...c.queryParameters(),...o.baseQueryParameters}});var u;return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},createConfig(e,t){if(!e)throw new Error("Parameter `configurationWithIndex` is required when calling `createConfig`.");const r={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e};return l.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},deleteConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const r={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getAllConfigs:e=>l.request({method:"GET",path:"/1/configs",queryParameters:{},headers:{}},e),getConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const r={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getConfigStatus({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const r={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getLogFile({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const r={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},updateConfig({indexName:e,configuration:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!t)throw new Error("Parameter `configuration` is required when calling `updateConfig`.");if(!t.sourceIndices)throw new Error("Parameter `configuration.sourceIndices` is required when calling `updateConfig`.");const n={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...o})}},391:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,a={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}r.d(t,{_:()=>n})},405:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(2735);function a(e){var t=n.s.highlightPreTag,r=n.s.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}},467:(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})},494:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{_:()=>n})},513:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]}r.d(t,{l:()=>n})},561:(e,t,r)=>{"use strict";function n(e){if(null==e)throw new TypeError("Cannot destructure "+e);return e}r.d(t,{_:()=>n})},595:(e,t,r)=>{"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{_:()=>n})},605:(e,t,r)=>{"use strict";r.r(t),r.d(t,{analyticsClient:()=>o,apiClientVersion:()=>i});var n=r(4267),a=r(5375),i="5.49.2",s=["de","us"];function o(e,t,r,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");if(r&&("string"!=typeof r||!s.includes(r)))throw new Error(`\`region\` must be one of the following: ${s.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:s,...o}){const c=(0,n.PA)(e,t,r),l=(0,n.zf)({hosts:(u=s,[{url:u?"analytics.{region}.algolia.com".replace("{region}",u):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"Analytics",version:i}),baseHeaders:{"content-type":"text/plain",...c.headers(),...o.baseHeaders},baseQueryParameters:{...c.queryParameters(),...o.baseQueryParameters}});var u;return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},getAddToCartRate({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getAddToCartRate`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/conversions/addToCartRate",queryParameters:i,headers:{}};return l.request(s,a)},getAverageClickPosition({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getAverageClickPosition`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/clicks/averageClickPosition",queryParameters:i,headers:{}};return l.request(s,a)},getClickPositions({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getClickPositions`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/clicks/positions",queryParameters:i,headers:{}};return l.request(s,a)},getClickThroughRate({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getClickThroughRate`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/clicks/clickThroughRate",queryParameters:i,headers:{}};return l.request(s,a)},getConversionRate({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getConversionRate`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/conversions/conversionRate",queryParameters:i,headers:{}};return l.request(s,a)},getNoClickRate({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getNoClickRate`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/searches/noClickRate",queryParameters:i,headers:{}};return l.request(s,a)},getNoResultsRate({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getNoResultsRate`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/searches/noResultRate",queryParameters:i,headers:{}};return l.request(s,a)},getPurchaseRate({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getPurchaseRate`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/conversions/purchaseRate",queryParameters:i,headers:{}};return l.request(s,a)},getRevenue({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getRevenue`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/conversions/revenue",queryParameters:i,headers:{}};return l.request(s,a)},getSearchesCount({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesCount`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/searches/count",queryParameters:i,headers:{}};return l.request(s,a)},getSearchesNoClicks({index:e,startDate:t,endDate:r,limit:n,offset:a,tags:i},s){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoClicks`.");const o={};void 0!==e&&(o.index=e.toString()),void 0!==t&&(o.startDate=t.toString()),void 0!==r&&(o.endDate=r.toString()),void 0!==n&&(o.limit=n.toString()),void 0!==a&&(o.offset=a.toString()),void 0!==i&&(o.tags=i.toString());const c={method:"GET",path:"/2/searches/noClicks",queryParameters:o,headers:{}};return l.request(c,s)},getSearchesNoResults({index:e,startDate:t,endDate:r,limit:n,offset:a,tags:i},s){if(!e)throw new Error("Parameter `index` is required when calling `getSearchesNoResults`.");const o={};void 0!==e&&(o.index=e.toString()),void 0!==t&&(o.startDate=t.toString()),void 0!==r&&(o.endDate=r.toString()),void 0!==n&&(o.limit=n.toString()),void 0!==a&&(o.offset=a.toString()),void 0!==i&&(o.tags=i.toString());const c={method:"GET",path:"/2/searches/noResults",queryParameters:o,headers:{}};return l.request(c,s)},getStatus({index:e},t){if(!e)throw new Error("Parameter `index` is required when calling `getStatus`.");const r={};void 0!==e&&(r.index=e.toString());const n={method:"GET",path:"/2/status",queryParameters:r,headers:{}};return l.request(n,t)},getTopCountries({index:e,startDate:t,endDate:r,limit:n,offset:a,tags:i},s){if(!e)throw new Error("Parameter `index` is required when calling `getTopCountries`.");const o={};void 0!==e&&(o.index=e.toString()),void 0!==t&&(o.startDate=t.toString()),void 0!==r&&(o.endDate=r.toString()),void 0!==n&&(o.limit=n.toString()),void 0!==a&&(o.offset=a.toString()),void 0!==i&&(o.tags=i.toString());const c={method:"GET",path:"/2/countries",queryParameters:o,headers:{}};return l.request(c,s)},getTopFilterAttributes({index:e,search:t,startDate:r,endDate:n,limit:a,offset:i,tags:s},o){if(!e)throw new Error("Parameter `index` is required when calling `getTopFilterAttributes`.");const c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.search=t.toString()),void 0!==r&&(c.startDate=r.toString()),void 0!==n&&(c.endDate=n.toString()),void 0!==a&&(c.limit=a.toString()),void 0!==i&&(c.offset=i.toString()),void 0!==s&&(c.tags=s.toString());const u={method:"GET",path:"/2/filters",queryParameters:c,headers:{}};return l.request(u,o)},getTopFilterForAttribute({attribute:e,index:t,search:r,startDate:n,endDate:a,limit:i,offset:s,tags:o},c){if(!e)throw new Error("Parameter `attribute` is required when calling `getTopFilterForAttribute`.");if(!t)throw new Error("Parameter `index` is required when calling `getTopFilterForAttribute`.");const u="/2/filters/{attribute}".replace("{attribute}",encodeURIComponent(e)),d={};void 0!==t&&(d.index=t.toString()),void 0!==r&&(d.search=r.toString()),void 0!==n&&(d.startDate=n.toString()),void 0!==a&&(d.endDate=a.toString()),void 0!==i&&(d.limit=i.toString()),void 0!==s&&(d.offset=s.toString()),void 0!==o&&(d.tags=o.toString());const h={method:"GET",path:u,queryParameters:d,headers:{}};return l.request(h,c)},getTopFiltersNoResults({index:e,search:t,startDate:r,endDate:n,limit:a,offset:i,tags:s},o){if(!e)throw new Error("Parameter `index` is required when calling `getTopFiltersNoResults`.");const c={};void 0!==e&&(c.index=e.toString()),void 0!==t&&(c.search=t.toString()),void 0!==r&&(c.startDate=r.toString()),void 0!==n&&(c.endDate=n.toString()),void 0!==a&&(c.limit=a.toString()),void 0!==i&&(c.offset=i.toString()),void 0!==s&&(c.tags=s.toString());const u={method:"GET",path:"/2/filters/noResults",queryParameters:c,headers:{}};return l.request(u,o)},getTopHits({index:e,search:t,clickAnalytics:r,revenueAnalytics:n,startDate:a,endDate:i,limit:s,offset:o,tags:c},u){if(!e)throw new Error("Parameter `index` is required when calling `getTopHits`.");const d={};void 0!==e&&(d.index=e.toString()),void 0!==t&&(d.search=t.toString()),void 0!==r&&(d.clickAnalytics=r.toString()),void 0!==n&&(d.revenueAnalytics=n.toString()),void 0!==a&&(d.startDate=a.toString()),void 0!==i&&(d.endDate=i.toString()),void 0!==s&&(d.limit=s.toString()),void 0!==o&&(d.offset=o.toString()),void 0!==c&&(d.tags=c.toString());const h={method:"GET",path:"/2/hits",queryParameters:d,headers:{}};return l.request(h,u)},getTopSearches({index:e,clickAnalytics:t,revenueAnalytics:r,startDate:n,endDate:a,orderBy:i,direction:s,limit:o,offset:c,tags:u},d){if(!e)throw new Error("Parameter `index` is required when calling `getTopSearches`.");const h={};void 0!==e&&(h.index=e.toString()),void 0!==t&&(h.clickAnalytics=t.toString()),void 0!==r&&(h.revenueAnalytics=r.toString()),void 0!==n&&(h.startDate=n.toString()),void 0!==a&&(h.endDate=a.toString()),void 0!==i&&(h.orderBy=i.toString()),void 0!==s&&(h.direction=s.toString()),void 0!==o&&(h.limit=o.toString()),void 0!==c&&(h.offset=c.toString()),void 0!==u&&(h.tags=u.toString());const p={method:"GET",path:"/2/searches",queryParameters:h,headers:{}};return l.request(p,d)},getUsersCount({index:e,startDate:t,endDate:r,tags:n},a){if(!e)throw new Error("Parameter `index` is required when calling `getUsersCount`.");const i={};void 0!==e&&(i.index=e.toString()),void 0!==t&&(i.startDate=t.toString()),void 0!==r&&(i.endDate=r.toString()),void 0!==n&&(i.tags=n.toString());const s={method:"GET",path:"/2/users/count",queryParameters:i,headers:{}};return l.request(s,a)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...o})}},633:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(8806),a=r(7818),i=r(2615),s=r(5134);function o(e,t){return(0,n._)(e)||(0,a._)(e,t)||(0,s._)(e,t)||(0,i._)()}},648:(e,t,r)=>{"use strict";function n(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}r.d(t,{S:()=>n})},770:(e,t,r)=>{"use strict";r.r(t),r.d(t,{apiClientVersion:()=>i,ingestionClient:()=>u,isOnDemandTrigger:()=>o,isScheduleTrigger:()=>c,isSubscriptionTrigger:()=>l});var n=r(4267),a=r(5375),i="1.49.2",s=["eu","us"];function o(e){return"onDemand"===e.type}function c(e){return"schedule"===e.type}function l(e){return"subscription"===e.type}function u(e,t,r,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");if(!r||r&&("string"!=typeof r||!s.includes(r)))throw new Error(`\`region\` is required and must be one of the following: ${s.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:s,...o}){const c=(0,n.PA)(e,t,r),l=(0,n.zf)({hosts:(u=s,[{url:"data.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"Ingestion",version:i}),baseHeaders:{"content-type":"text/plain",...c.headers(),...o.baseHeaders},baseQueryParameters:{...c.queryParameters(),...o.baseQueryParameters}});var u;return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},async chunkedPush({indexName:e,objects:t,action:r="addObject",waitForTasks:a,batchSize:i=1e3,referenceIndexName:s},o){let c=[],l=0;const u=[],d=Math.floor(i/10)||i,h=t.entries();for(const[p,m]of h)if(c.push(m),c.length!==i&&p!==t.length-1||(u.pu
1sh(await this.push({indexName:e,pushTaskPayload:{action:r,records:c},referenceIndexName:s},o)),c=[]),a&&u.length>0&&(u.length%d===0||p===t.length-1)){for(const e of u.slice(l,l+d)){if(!e.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");let t=0;await(0,n.uU)({func:async()=>{if(void 0===e.eventID||!e.eventID)throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:e.runID,eventID:e.eventID}).catch(e=>{if(404!==e.status)throw e})},validate:e=>void 0!==e,aggregator:()=>t+=1,error:{validate:()=>t>=50,message:()=>`The maximum number of retries exceeded. (${t}/50)`},timeout:()=>Math.min(500*t,5e3)})}l+=d}return u},createAuthentication(e,t){if(!e)throw new Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!e.type)throw new Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!e.name)throw new Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!e.input)throw new Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");const r={method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e};return l.request(r,t)},createDestination(e,t){if(!e)throw new Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!e.type)throw new Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!e.name)throw new Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!e.input)throw new Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");const r={method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e};return l.request(r,t)},createSource(e,t){if(!e)throw new Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!e.type)throw new Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!e.name)throw new Error("Parameter `sourceCreate.name` is required when calling `createSource`.");const r={method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e};return l.request(r,t)},createTask(e,t){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTask`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTask`.");const r={method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e};return l.request(r,t)},createTaskV1(e,t){if(!e)throw new Error("Parameter `taskCreate` is required when calling `createTaskV1`.");if(!e.sourceID)throw new Error("Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.");if(!e.destinationID)throw new Error("Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.");if(!e.trigger)throw new Error("Parameter `taskCreate.trigger` is required when calling `createTaskV1`.");if(!e.action)throw new Error("Parameter `taskCreate.action` is required when calling `createTaskV1`.");const r={method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e};return l.request(r,t)},createTransformation(e,t){if(!e)throw new Error("Parameter `transformationCreate` is required when calling `createTransformation`.");if(!e.name)throw new Error("Parameter `transformationCreate.name` is required when calling `createTransformation`.");const r={method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e};return l.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},deleteAuthentication({authenticationID:e},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");const r={method:"DELETE",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},deleteDestination({destinationID:e},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `deleteDestination`.");const r={method:"DELETE",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},deleteSource({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `deleteSource`.");const r={method:"DELETE",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},deleteTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTask`.");const r={method:"DELETE",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},deleteTaskV1({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `deleteTaskV1`.");const r={method:"DELETE",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},deleteTransformation({transformationID:e},t){if(!e)throw new Error("Parameter `transformationID` is required when calling `deleteTransformation`.");const r={method:"DELETE",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},disableTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTask`.");const r={method:"PUT",path:"/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},disableTaskV1({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `disableTaskV1`.");const r={method:"PUT",path:"/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},enableTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTask`.");const r={method:"PUT",path:"/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},enableTaskV1({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `enableTaskV1`.");const r={method:"PUT",path:"/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getAuthentication({authenticationID:e},t){if(!e)throw new Error("Parameter `authenticationID` is required when calling `getAuthentication`.");const r={method:"GET",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getDestination({destinationID:e},t){if(!e)throw new Error("Parameter `destinationID` is required when calling `getDestination`.");const r={method:"GET",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getEvent({runID:e,eventID:t},r){if(!e)throw new Error("Parameter `runID` is required when calling `getEvent`.");if(!t)throw new Error("Parameter `eventID` is required when calling `getEvent`.");const n={method:"GET",path:"/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return l.request(n,r)},getRun({runID:e},t){if(!e)throw new Error("Parameter `runID` is required when calling `getRun`.");const r={method:"GET",path:"/1/runs/{runID}".replace("{runID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getSource({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `getSource`.");const r={method:"GET",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `getTask`.");const r={method:"GET",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getTaskV1({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `getTaskV1`.");const r={method:"GET",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getTransformation({transformationID:e},t){if(!e)throw new Error("Parameter `transformationID` is required when calling `getTransformation`.");const r={method:"GET",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},listAuthentications({itemsPerPage:e,page:t,type:r,platform:n,sort:
1a,order:i}={},s=void 0){const o={};void 0!==e&&(o.itemsPerPage=e.toString()),void 0!==t&&(o.page=t.toString()),void 0!==r&&(o.type=r.toString()),void 0!==n&&(o.platform=n.toString()),void 0!==a&&(o.sort=a.toString()),void 0!==i&&(o.order=i.toString());const c={method:"GET",path:"/1/authentications",queryParameters:o,headers:{}};return l.request(c,s)},listDestinations({itemsPerPage:e,page:t,type:r,authenticationID:n,transformationID:a,sort:i,order:s}={},o=void 0){const c={};void 0!==e&&(c.itemsPerPage=e.toString()),void 0!==t&&(c.page=t.toString()),void 0!==r&&(c.type=r.toString()),void 0!==n&&(c.authenticationID=n.toString()),void 0!==a&&(c.transformationID=a.toString()),void 0!==i&&(c.sort=i.toString()),void 0!==s&&(c.order=s.toString());const u={method:"GET",path:"/1/destinations",queryParameters:c,headers:{}};return l.request(u,o)},listEvents({runID:e,itemsPerPage:t,page:r,status:n,type:a,sort:i,order:s,startDate:o,endDate:c},u){if(!e)throw new Error("Parameter `runID` is required when calling `listEvents`.");const d="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),h={};void 0!==t&&(h.itemsPerPage=t.toString()),void 0!==r&&(h.page=r.toString()),void 0!==n&&(h.status=n.toString()),void 0!==a&&(h.type=a.toString()),void 0!==i&&(h.sort=i.toString()),void 0!==s&&(h.order=s.toString()),void 0!==o&&(h.startDate=o.toString()),void 0!==c&&(h.endDate=c.toString());const p={method:"GET",path:d,queryParameters:h,headers:{}};return l.request(p,u)},listRuns({itemsPerPage:e,page:t,status:r,type:n,taskID:a,sort:i,order:s,startDate:o,endDate:c}={},u=void 0){const d={};void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==r&&(d.status=r.toString()),void 0!==n&&(d.type=n.toString()),void 0!==a&&(d.taskID=a.toString()),void 0!==i&&(d.sort=i.toString()),void 0!==s&&(d.order=s.toString()),void 0!==o&&(d.startDate=o.toString()),void 0!==c&&(d.endDate=c.toString());const h={method:"GET",path:"/1/runs",queryParameters:d,headers:{}};return l.request(h,u)},listSources({itemsPerPage:e,page:t,type:r,authenticationID:n,sort:a,order:i}={},s=void 0){const o={};void 0!==e&&(o.itemsPerPage=e.toString()),void 0!==t&&(o.page=t.toString()),void 0!==r&&(o.type=r.toString()),void 0!==n&&(o.authenticationID=n.toString()),void 0!==a&&(o.sort=a.toString()),void 0!==i&&(o.order=i.toString());const c={method:"GET",path:"/1/sources",queryParameters:o,headers:{}};return l.request(c,s)},listTasks({itemsPerPage:e,page:t,action:r,enabled:n,sourceID:a,sourceType:i,destinationID:s,triggerType:o,withEmailNotifications:c,sort:u,order:d}={},h=void 0){const p={};void 0!==e&&(p.itemsPerPage=e.toString()),void 0!==t&&(p.page=t.toString()),void 0!==r&&(p.action=r.toString()),void 0!==n&&(p.enabled=n.toString()),void 0!==a&&(p.sourceID=a.toString()),void 0!==i&&(p.sourceType=i.toString()),void 0!==s&&(p.destinationID=s.toString()),void 0!==o&&(p.triggerType=o.toString()),void 0!==c&&(p.withEmailNotifications=c.toString()),void 0!==u&&(p.sort=u.toString()),void 0!==d&&(p.order=d.toString());const m={method:"GET",path:"/2/tasks",queryParameters:p,headers:{}};return l.request(m,h)},listTasksV1({itemsPerPage:e,page:t,action:r,enabled:n,sourceID:a,destinationID:i,triggerType:s,sort:o,order:c}={},u=void 0){const d={};void 0!==e&&(d.itemsPerPage=e.toString()),void 0!==t&&(d.page=t.toString()),void 0!==r&&(d.action=r.toString()),void 0!==n&&(d.enabled=n.toString()),void 0!==a&&(d.sourceID=a.toString()),void 0!==i&&(d.destinationID=i.toString()),void 0!==s&&(d.triggerType=s.toString()),void 0!==o&&(d.sort=o.toString()),void 0!==c&&(d.order=c.toString());const h={method:"GET",path:"/1/tasks",queryParameters:d,headers:{}};return l.request(h,u)},listTransformations({itemsPerPage:e,page:t,sort:r,order:n,type:a}={},i=void 0){const s={};void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==t&&(s.page=t.toString()),void 0!==r&&(s.sort=r.toString()),void 0!==n&&(s.order=n.toString()),void 0!==a&&(s.type=a.toString());const o={method:"GET",path:"/1/transformations",queryParameters:s,headers:{}};return l.request(o,i)},push({indexName:e,pushTaskPayload:t,watch:r,referenceIndexName:n},a){if(!e)throw new Error("Parameter `indexName` is required when calling `push`.");if(!t)throw new Error("Parameter `pushTaskPayload` is required when calling `push`.");if(!t.action)throw new Error("Parameter `pushTaskPayload.action` is required when calling `push`.");if(!t.records)throw new Error("Parameter `pushTaskPayload.records` is required when calling `push`.");const i="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),s={};void 0!==r&&(s.watch=r.toString()),void 0!==n&&(s.referenceIndexName=n.toString());const o={method:"POST",path:i,queryParameters:s,headers:{},data:t};return a={timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},l.request(o,a)},pushTask({taskID:e,pushTaskPayload:t,watch:r},n){if(!e)throw new Error("Parameter `taskID` is required when calling `pushTask`.");if(!t)throw new Error("Parameter `pushTaskPayload` is required when calling `pushTask`.");if(!t.action)throw new Error("Parameter `pushTaskPayload.action` is required when calling `pushTask`.");if(!t.records)throw new Error("Parameter `pushTaskPayload.records` is required when calling `pushTask`.");const a="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),i={};void 0!==r&&(i.watch=r.toString());const s={method:"POST",path:a,queryParameters:i,headers:{},data:t};return n={timeouts:{connect:18e4,read:18e4,write:18e4,...n?.timeouts}},l.request(s,n)},replaceTask({taskID:e,taskReplace:t},r){if(!e)throw new Error("Parameter `taskID` is required when calling `replaceTask`.");if(!t)throw new Error("Parameter `taskReplace` is required when calling `replaceTask`.");if(!t.destinationID)throw new Error("Parameter `taskReplace.destinationID` is required when calling `replaceTask`.");if(!t.action)throw new Error("Parameter `taskReplace.action` is required when calling `replaceTask`.");const n={method:"PUT",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)},runSource({sourceID:e,runSourcePayload:t},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `runSource`.");const n={method:"POST",path:"/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return l.request(n,r)},runTask({taskID:e,runTaskPayload:t},r){if(!e)throw new Error("Parameter `taskID` is required when calling `runTask`.");const n={method:"POST",path:"/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return l.request(n,r)},runTaskV1({taskID:e,runTaskPayload:t},r){if(!e)throw new Error("Parameter `taskID` is required when calling `runTaskV1`.");const n={method:"POST",path:"/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{}};return l.request(n,r)},searchAuthentications(e,t){if(!e)throw new Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!e.authenticationIDs)throw new Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");const r={method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e};return l.request(r,t)},searchDestinations(e,t){if(!e)throw new Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!e.destinationIDs)throw new Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");const r={method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e};return l.request(r,t)},searchSources(e,t){if(!e)throw new Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!e.sourceIDs)throw new Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");const r={method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e};return l.request(r,t)},searchTasks(e,t){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");const r={method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e};return l.request(r,t)},searchTasksV1(e,t){if(!e)throw new Error("Parameter `taskSearch` is required when calling `searchTasksV1`.");if(!e.taskIDs)throw new Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.");const r={method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e};return l.request(r,t)},searchTransformations(e,t){if(!e)throw new Error("Parameter `transformationSearch` is required when calling `searchTransformations`.");if(!e.transformationIDs)throw new Error("Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.");const r={method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e};return l.request(r,t)},triggerDockerSourceDiscover({sourceID:e},t){if(!e)throw new Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");const r={method:"POST",path:"/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return t={timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},l.request(r,t)},tryTransformation(e,t){if(!e)throw new Error("Parameter `transformationTry` is required when calling `tryTransformation`.");if(!e.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.");const r={method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e};return l.request(r,t)},tryTransformationBeforeUpdate({transformationID:e,transformationTry:t},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.");if(!t)throw new Error("Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.");if(!t.sampleRecord)throw new Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`.");const n={method:"POST",path:"/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)},updateAuthentication({authenticationID:e,authenticationUpdate:t},r){if(!e)throw new Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!t)throw new Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");const n={method:"PATCH",path:"/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)},updateDestination({destinationID:e,destinationUpdate:t},r){if(!e)throw new Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!t)throw new Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");const n={method:"PATCH",path:"/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)},updateSource({sourceID:e,sourceUpdate:t},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `updateSource`.");if(!t)throw new Error("Parameter `sourceUpdate` is required when calling `updateSource`.");const n={method:"PATCH",path:"/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)},updateTask({taskID:e,taskUpdate:t},r){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTask`.");
1if(!t)throw new Error("Parameter `taskUpdate` is required when calling `updateTask`.");const n={method:"PATCH",path:"/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)},updateTaskV1({taskID:e,taskUpdate:t},r){if(!e)throw new Error("Parameter `taskID` is required when calling `updateTaskV1`.");if(!t)throw new Error("Parameter `taskUpdate` is required when calling `updateTaskV1`.");const n={method:"PATCH",path:"/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)},updateTransformation({transformationID:e,transformationCreate:t},r){if(!e)throw new Error("Parameter `transformationID` is required when calling `updateTransformation`.");if(!t)throw new Error("Parameter `transformationCreate` is required when calling `updateTransformation`.");if(!t.name)throw new Error("Parameter `transformationCreate.name` is required when calling `updateTransformation`.");const n={method:"PUT",path:"/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return l.request(n,r)},validateSource(e,t=void 0){const r={method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}};return t={timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},l.request(r,t)},validateSourceBeforeUpdate({sourceID:e,sourceUpdate:t},r){if(!e)throw new Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");if(!t)throw new Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");const n={method:"POST",path:"/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},l.request(n,r)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:25e3,read:25e3,write:25e3},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...o})}},793:(e,t,r)=>{"use strict";function n(e){return btoa(encodeURIComponent(JSON.stringify(e)))}function a(e){return JSON.parse(decodeURIComponent(atob(e)))}r.d(t,{h:()=>n,u:()=>a})},830:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(1893),a=r(5456),i=r(6337),s=r(7109),o=r(4243),c=r(69),l=r(4176),u=r(8539),d=r(513),h=r(7520),p=(0,o.V)({name:"clear-refinements",connector:!0}),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.l;return(0,c.t)(e,p()),function(r){var o=r||{},c=o.includedAttributes,m=void 0===c?[]:c,f=o.excludedAttributes,g=void 0===f?["query"]:f,v=o.transformItems,y=void 0===v?function(e){return e}:v;if(r&&r.includedAttributes&&r.excludedAttributes)throw new Error(p("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var w={refine:d.l,createURL:function(){return""},attributesToClear:[]},b=function(){return w.refine()},_=function(){return w.createURL()};return{$$type:"ais.clearRefinements",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(){t()},getRenderState:function(e,t){return(0,a._)((0,n._)({},e),{clearRefinements:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.createURL,n=e.scopedResults,a=e.results;w.attributesToClear=n.reduce(function(e,t){return e.concat(function(e){var t=e.scopedResult,r=e.includedAttributes,n=e.excludedAttributes,a=e.transformItems,i=e.results,s=-1!==r.indexOf("query")||-1===n.indexOf("query");return{helper:t.helper,items:a((0,l.s)((0,u.t)(t.results,t.helper.state,s).map(function(e){return e.attribute}).filter(function(e){return 0===r.length||-1!==r.indexOf(e)}).filter(function(e){return"query"===e&&s||-1===n.indexOf(e)})),{results:i})}}({scopedResult:t,includedAttributes:m,excludedAttributes:g,transformItems:y,results:a}))},[]),w.refine=function(){w.attributesToClear.forEach(function(e){var t=e.helper,r=e.items;t.setState((0,h.A)({helper:t,attributesToClear:r})).search()})},w.createURL=function(){return t(s.p.apply(void 0,(0,i._)(w.attributesToClear.map(function(e){var t=e.helper,r=e.items;return(0,h.A)({helper:t,attributesToClear:r})}))))};var o=w.attributesToClear.some(function(e){return e.items.length>0});return{canRefine:o,hasRefinements:o,refine:b,createURL:_,widgetParams:r}}}}}},849: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]}},879:(e,t,r)=>{"use strict";function n(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{h:()=>n})},882:(e,t,r)=>{"use strict";r.d(t,{n:()=>qe});var n={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function a(e){n=e}var i={exec:()=>null};function s(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let a="string"==typeof t?t:t.source;
vendor: 4,100 bytes, line 1
1return a=a.replace(c.caret,"$1"),r=r.replace(e,a),n},getRegex:()=>new RegExp(r,t)};return n}var o=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),c={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},l=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,u=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,d=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,h=s(d).replace(/bull/g,u).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),p=s(d).replace(/bull/g,u).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),m=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,g=s(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",f).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),v=s(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,u).getRegex(),y="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",w=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,b=s("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>
vendor: 13,620 bytes, line 1
1(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",w).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_=s(m).replace("hr",l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),x={blockquote:s(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:l,html:b,lheading:h,list:v,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:_,table:i,text:/^[^\n]+/},P=s("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),S={...x,lheading:p,table:P,paragraph:s(m).replace("hr",l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",P).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex()},k={...x,html:s("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",w).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:i,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s(m).replace("hr",l).replace("heading"," *#{1,6} *[^\n]").replace("lheading",h).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},R=/^( {2,}|\\)\n(?!\s*$)/,T=/[\p{P}\p{S}]/u,E=/[\s\p{P}\p{S}]/u,C=/[^\s\p{P}\p{S}]/u,I=s(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,E).getRegex(),q=/(?!~)[\p{P}\p{S}]/u,A=s(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",o?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),N=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,D=s(N,"u").replace(/punct/g,T).getRegex(),F=s(N,"u").replace(/punct/g,q).getRegex(),j="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",O=s(j,"gu").replace(/notPunctSpace/g,C).replace(/punctSpace/g,E).replace(/punct/g,T).getRegex(),M=s(j,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,q).getRegex(),L=s("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,C).replace(/punctSpace/g,E).replace(/punct/g,T).getRegex(),H=s(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,T).getRegex(),$=s("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,C).replace(/punctSpace/g,E).replace(/punct/g,T).getRegex(),U=s(/\\(punct)/,"gu").replace(/punct/g,T).getRegex(),B=s(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),W=s(w).replace("(?:--\x3e|$)","--\x3e").getRegex(),z=s("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",W).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,V=s(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=s(/^!?\[(label)\]\[(ref)\]/).replace("label",Q).replace("ref",f).getRegex(),G=s(/^!?\[(ref)\](?:\[\])?/).replace("ref",f).getRegex(),J=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Z={_backpedal:i,anyPunctuation:U,autolink:B,blockSkip:A,br:R,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:i,delLDelim:i,delRDelim:i,emStrongLDelim:D,emStrongRDelimAst:O,emStrongRDelimUnd:L,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:V,nolink:G,punctuation:I,reflink:K,reflinkSearch:s("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",G).getRegex(),tag:z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:i},X={...Z,link:s(/^!?\[(label)\]\((.*?)\)/).replace("label",Q).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Q).getRegex()},Y={...Z,emStrongRDelimAst:M,emStrongLDelim:F,delLDelim:H,delRDelim:$,url:s(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",J).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:s(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",J).getRegex()},ee={...Y,br:s(R).replace("{2,}","*").getRegex(),text:s(Y.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},te={normal:x,gfm:S,pedantic:k},re={normal:Z,gfm:Y,breaks:ee,pedantic:X},ne={"&":"&","<":"<",">":">",'"':""","'":"'"},ae=e=>ne[e];function ie(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,ae)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,ae);return e}function se(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch{return null}return e}function oe(e,t){let r=e.replace(c.findPipe,(e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"}).split(c.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(c.slashPipe,"|");return r}function ce(e,t,r){let n=e.length;if(0===n)return"";let a=0;for(;a<n;){let i=e.charAt(n-a-1);if(i!==t||r){if(i===t||!r)break;a++}else a++}return e.slice(0,n-a)}function le(e,t=0){let r=t,n="";for(let t of e)if("\t"===t){let e=4-r%4;n+=" ".repeat(e),r+=e}else n+=t,r++;return n}function ue(e,t,r,n,a){let i=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let c={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,c}var de=class{options;rules;lexer;constructor(e){this.options=e||n}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ce(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let a=n[1];return t.split("\n").map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=a.length?e.slice(a.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ce(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ce(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ce(t[0],"\n").split("\n"),r="",n="",a=[];for(;e.length>0;){let t,i=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),i=!0;else{if(i)break;s.push(e[t])}e=e.slice(t);let o=s.join("\n"),c=o.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${o}`:o,n=n?`${n}\n${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=l,0===e.length)break;let u=a.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,i=t.raw+"\n"+e.join("\n"),s=this.blockquote(i);a[a.length-1]=s,r=r.substring(0,r.length-t.raw.length)+s.raw,n=n.substring(0,n.length-t.text.length)+s.text;break}if("list"===u?.type){let t=u,i=t.raw+"\n"+e.join("\n"),s=this.list(i);a[a.length-1]=s,r=r.substring(0,r.length-u.raw.length)+s.raw,n=n.substring(0,n.length-t.raw.length)+s.raw,e=i.substring(a.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:a,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,a={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),s=!1;for(;e;){let r=!1,n="",o="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let c=le(t[2].split("\n",1)[0],t[1].length),l=e.split("\n",1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,o=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,o=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(n+=l+"\n",e=e.substring(l.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),a=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d),h=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p,m=e.split("\n",1)[0];if(l=m,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting," "),p=l):p=l.replace(this.rules.other.tabCharGlobal," "),a.test(l)||i.test(l)||s.test(l)||h.test(l)||t.test(l)||r.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())o+="\n"+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||a.test(c)||i.test(c)||r.test(c))break;o+="\n"+l}u=!l.trim(),n+=m+"\n",e=e.substring(m.length+1),c=p.slice(d)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0)),a.items.push({type:"list_item",raw:n,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),a.raw+=n}let o=a.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),a.raw=a.raw.trimEnd();for(let e of a.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let r={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=r.checked,a.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=r.raw+e.tokens[0].raw,e.tokens[0].text=r.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(r)):e.tokens.unshift({type:"paragraph",raw:r.raw,text:r.raw,tokens:[r]}):e.tokens.unshift(r)}}if(!a.loose){let t=e.tokens.filter(e=>
vendor: 4,269 bytes, line 1
1"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));a.loose=r}}if(a.loose)for(let e of a.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=oe(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<r.length;e++)i.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:i.align[e]});for(let e of a)i.rows.push(oe(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ce(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),ue(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return ue(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(n&&(n[1]||n[2]||n[3]||n[4])&&(!n[4]||!r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[3]||!r||this.rules.inline.punctuation.exec(r))){let r,a,i=[...n[0]].length-1,s=i,o=0,
vendor: 11,107 bytes, line 1
1c="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);null!=(n=c.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(a=[...r].length,n[3]||n[4]){s+=a;continue}if((n[5]||n[6])&&i%3&&!((i+a)%3)){o+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s+o);let t=[...n[0]][0].length,c=e.slice(0,i+n.index+t+a);if(Math.min(i,a)%2){let e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let r,a,i=[...n[0]].length-1,s=i,o=this.rules.inline.delRDelim;for(o.lastIndex=0,t=t.slice(-1*e.length+i);null!=(n=o.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r||(a=[...r].length,a!==i))continue;if(n[3]||n[4]){s+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s);let t=[...n[0]][0].length,o=e.slice(0,i+n.index+t+a),c=o.slice(i,-i);return{type:"del",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])e=t[0],r="mailto:"+e;else{let n;do{n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(n!==t[0]);e=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},he=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||n,this.options.tokenizer=this.options.tokenizer||new de,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:c,block:te.normal,inline:re.normal};this.options.pedantic?(t.block=te.pedantic,t.inline=re.pedantic):this.options.gfm&&(t.block=te.gfm,this.options.breaks?t.inline=re.breaks:t.inline=re.gfm),this.tokenizer.rules=t}static get rules(){return{block:te,inline:re}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(c.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(c.tabCharGlobal," ").replace(c.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let r=t.at(-1);1===n.raw.length&&void 0!==r?r.raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let r=t.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.text,this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let r=t.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},t.push(n));continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}let a=e;if(this.options.extensions?.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(a=e.substring(0,r+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let i=t.at(-1);r&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(n),r=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let r,n=e,a=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,a.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(n));)r=a[2]?a[2].length:0,n=n.slice(0,a.index+r)+"["+"a".repeat(a[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,s="";for(;e;){let r;if(i||(s=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,s)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,s)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let a=e;if(this.options.extensions?.startInline){let t,r=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(a=e.substring(0,r+1))}if(r=this.tokenizer.inlineText(a)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),i=!0;let n=t.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},pe=class{options;parser;constructor(e){this.options=e||n}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(c.notSpaceStart)?.[0],a=e.replace(c.endingNewline,"")+"\n";return n?'<pre><code class="language-'+ie(n)+'">'+(r?a:ie(a,!0))+"</code></pre>\n":"<pre><code>"+(r?a:ie(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let t=0;t<e.items.length;t++){let r=e.items[t];n+=this.listitem(r)}let a=t?"ol":"ul";return"<"+a+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+a+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let t=0;t<e.header.length;t++)r+=this.tablecell(e.header[t]);t+=this.tablerow({text:r});let n="";for(let t=0;t<e.rows.length;t++){let a=e.rows[t];r="";for(let e=0;e<a.length;e++)r+=this.tablecell(a[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ie(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),a=se(e);if(null===a)return n;let i='<a href="'+(e=a)+'"';return t&&(i+=' title="'+ie(t)+'"'),i+=">"+n+"</a>",i}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=se(e);if(null===a)return ie(r);let i=`<img src="${e=a}" alt="${ie(r)}"`;return t&&(i+=` title="${ie(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ie(e.text)}},me=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},fe=class e{options;renderer;textRenderer;constructor(e){this.options=e||n,this.options.renderer=this.options.renderer||new pe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new me}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let e=n,r=this.options.extensions.renderers[e.type].call({parser:this},e);
vendor: 7,839 bytes, line 1
1if(!1!==r||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=r||"";continue}}let a=n;switch(a.type){case"space":t+=this.renderer.space(a);break;case"hr":t+=this.renderer.hr(a);break;case"heading":t+=this.renderer.heading(a);break;case"code":t+=this.renderer.code(a);break;case"table":t+=this.renderer.table(a);break;case"blockquote":t+=this.renderer.blockquote(a);break;case"list":t+=this.renderer.list(a);break;case"checkbox":t+=this.renderer.checkbox(a);break;case"html":t+=this.renderer.html(a);break;case"def":t+=this.renderer.def(a);break;case"paragraph":t+=this.renderer.paragraph(a);break;case"text":t+=this.renderer.text(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=e||"";continue}}let i=a;switch(i.type){case"escape":case"text":r+=t.text(i);break;case"html":r+=t.html(i);break;case"link":r+=t.link(i);break;case"image":r+=t.image(i);break;case"checkbox":r+=t.checkbox(i);break;case"strong":r+=t.strong(i);break;case"em":r+=t.em(i);break;case"codespan":r+=t.codespan(i);break;case"br":r+=t.br(i);break;case"del":r+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return r}},ge=class{options;block;constructor(e){this.options=e||n}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?he.lex:he.lexInline}provideParser(){return this.block?fe.parse:fe.parseInline}},ve=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=fe;Renderer=pe;TextRenderer=me;Lexer=he;Tokenizer=de;Hooks=ge;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let e=n;for(let n of e.header)r=r.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)r=r.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=n;r=r.concat(this.walkTokens(e.items,t));break}default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let a=e[n].flat(1/0);r=r.concat(this.walkTokens(a,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new pe(this.defaults);for(let r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=r,a=e.renderer[n],i=t[n];t[n]=(...e)=>{let r=a.apply(t,e);return!1===r&&(r=i.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new de(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=r,a=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let r=a.apply(t,e);return!1===r&&(r=i.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ge;for(let r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=r,a=e.hooks[n],i=t[n];ge.passThroughHooks.has(r)?t[n]=e=>{if(this.defaults.async&&ge.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await a.call(t,e);return i.call(t,r)})();let n=a.call(t,e);return i.call(t,n)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let r=await a.apply(t,e);return!1===r&&(r=await i.apply(t,e)),r})();let r=a.apply(t,e);return!1===r&&(r=i.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return he.lex(e,t??this.defaults)}parser(e,t){return fe.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===n.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let r=a.hooks?await a.hooks.preprocess(t):t,n=await(a.hooks?await a.hooks.provideLexer():e?he.lex:he.lexInline)(r,a),i=a.hooks?await a.hooks.processAllTokens(n):n;a.walkTokens&&await Promise.all(this.walkTokens(i,a.walkTokens));let s=await(a.hooks?await a.hooks.provideParser():e?fe.parse:fe.parseInline)(i,a);return a.hooks?await a.hooks.postprocess(s):s})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let r=(a.hooks?a.hooks.provideLexer():e?he.lex:he.lexInline)(t,a);a.hooks&&(r=a.hooks.processAllTokens(r)),a.walkTokens&&this.walkTokens(r,a.walkTokens);let n=(a.hooks?a.hooks.provideParser():e?fe.parse:fe.parseInline)(r,a);return a.hooks&&(n=a.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ie(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function ye(e,t){return ve.parse(e,t)}ye.options=ye.setOptions=function(e){return ve.setOptions(e),ye.defaults=ve.defaults,a(ye.defaults),ye},ye.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},ye.defaults=n,ye.use=function(...e){return ve.use(...e),ye.defaults=ve.defaults,a(ye.defaults),ye},ye.walkTokens=function(e,t){return ve.walkTokens(e,t)},ye.parseInline=ve.parseInline,ye.Parser=fe,ye.parser=fe.parse,ye.Renderer=pe,ye.TextRenderer=me,ye.Lexer=he,ye.lexer=he.lex,ye.Tokenizer=de,ye.Hooks=ge,ye.parse=ye,ye.options,ye.setOptions,ye.use,ye.walkTokens,ye.parseInline,fe.parse,he.lex;var we=r(7723);const be="https://askai.algolia.com",_e="agent_studio",xe="isfwp_ai_summaries_enabled",Pe=e=>
1e?"string"==typeof e?e:Array.isArray(e)?e.map(Pe).filter(Boolean).join(" "):"object"!=typeof e?"":"text"===e.type&&"string"==typeof e.text?e.text:"text-delta"===e.type&&"string"==typeof e.delta?e.delta:"text"===e.type&&"string"==typeof e.content?e.content:"string"!=typeof e.text||e.type?"string"!=typeof e.delta||e.type?"string"!=typeof e.textDelta||e.type?e.message?Pe(e.message):e.part?Pe(e.part):e.parts?Pe(e.parts):"":e.textDelta:e.delta:e.text:"",Se=(e,t)=>e&&"object"==typeof e&&"string"==typeof e.message&&e.message.trim()?e.message:t,ke=(e="")=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),Re=(e,t)=>{if(!e)return t;let r=t;const n=e=>{"string"==typeof e&&e.length>0&&(r+=e)},a=e.split("\n");for(const e of a){const t=e.trim();if(!t||"[DONE]"===t||t.startsWith(":")||t.startsWith("event:"))continue;if(t.startsWith("data:")){const e=t.replace(/^data:\s*/,"").trim();if(!e||"[DONE]"===e)continue;try{n(Pe(JSON.parse(e)))}catch(e){}continue}const r=t.match(/^(\d+):(.*)$/);if(r){const e=parseInt(r[1],10),t=r[2].trim();if(0!==e)continue;try{const e=JSON.parse(t);n("string"==typeof e?e:Pe(e))}catch(e){}continue}const a=t.match(/^([a-zA-Z]):(.*)$/);if(a){const e=a[1].toLowerCase(),t=a[2].trim();if(["a","d","e","f"].includes(e))continue;if("t"===e)try{const e=JSON.parse(t);n("string"==typeof e?e:Pe(e))}catch(e){}continue}try{n(Pe(JSON.parse(t)))}catch(e){}}return r},Te=(e,t,r=!1)=>{if(!e)return{nextText:t,remainder:""};const n=(r&&!e.endsWith("\n")?`${e}\n`:e).split("\n"),a=r?"":n.pop()||"";let i=t;for(const e of n)i=Re(e,i);return{nextText:i,remainder:a}},Ee=e=>e&&"object"==typeof e?{...e}:{distinct:!0},Ce=e=>Array.isArray(e)?`[${e.map(e=>Ce(e)).join(",")}]`:e&&"object"==typeof e?`{${Object.keys(e).sort().map(t=>`${JSON.stringify(t)}:${Ce(e[t])}`).join(",")}}`:JSON.stringify(e),Ie=(e,t)=>`${e}::${Ce(t)}`,qe=({container:e,frontendConfig:t})=>{const r=t?.aiSummaries||{},n=r?.engine===_e?_e:"ask_ai",a="string"==typeof r?.disclaimer?r.disclaimer.trim():"",i=!0===r?.debugSearchParameters||!0===window?.ISFWP_AI_SUMMARY_DEBUG,s=!!("algolia"===t?.provider&&r?.enabled&&r?.agentId&&t?.appId&&t?.apiKey&&t?.indexName&&e);let o=null,c="",l=null,u=!1,d="",h="",p={distinct:!0},m="",f="",g=!1;try{g="false"===window.localStorage.getItem(xe)}catch(e){g=!1}const v=e=>{g=!e;try{window.localStorage.setItem(xe,e?"true":"false")}catch(e){}},y=()=>{if(!e)return;const t=e.querySelector("[data-isfwp-summary-enable]");t&&t.addEventListener("click",()=>{v(!0),u=!1,c="",h.trim().length>=3&&m!==h?b(h,p):w({text:d})});const r=e.querySelector("[data-isfwp-summary-disable]");r&&r.addEventListener("click",()=>{v(!1),u=!1,o&&(o.abort(),o=null),w()})},w=({loading:t=!1,text:r="",error:n=""}={})=>{if(!e)return;if(g)return e.removeAttribute("hidden"),e.innerHTML=`\n\t\t\t\t<div class="isfwp-site-search-summary__header">\n\t\t\t\t\t<p class="isfwp-site-search-summary__label">${(0,we.__)("AI Summary","instantsearch-for-wp")}</p>\n\t\t\t\t\t<button type="button" class="isfwp-site-search-summary__power-toggle" data-isfwp-summary-enable>\n\t\t\t\t\t\t${(0,we.__)("Turn summaries on","instantsearch-for-wp")}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t\t<div class="isfwp-site-search-summary__body">\n\t\t\t\t\t<p class="isfwp-site-search-summary__status">${(0,we.__)("AI summaries are turned off for this browser.","instantsearch-for-wp")}</p>\n\t\t\t\t</div>\n\t\t\t`,void y();if(!t&&!r&&!n)return u=!1,d="",m="",f="",e.innerHTML="",void e.setAttribute("hidden","hidden");if(e.removeAttribute("hidden"),t)return u=!1,d="",m="",f="",void(e.innerHTML=`\n\t\t\t\t<p class="isfwp-site-search-summary__status">\n\t\t\t\t\t<span>${(0,we.__)("Generating summary","instantsearch-for-wp")}</span>\n\t\t\t\t\t<span class="isfwp-site-search-summary__dots" aria-hidden="true">\n\t\t\t\t\t\t<span></span><span></span><span></span>\n\t\t\t\t\t</span>\n\t\t\t\t</p>\n\t\t\t`);if(n)return u=!1,d="",m="",f="",void(e.innerHTML=`<p class="isfwp-site-search-summary__status isfwp-site-search-summary__status--error">${n}</p>`);d=r,m=h,f=Ie(h,p);const i=(e=>{if(!e)return"";try{const t=ye.parse(e,{breaks:!0,gfm:!0});return"string"!=typeof t?`<p>${ke(e)}</p>`:(e=>{const t=document.createElement("template");t.innerHTML=e;const r=new Set(["P","BR","UL","OL","LI","STRONG","EM","B","I","CODE","PRE","BLOCKQUOTE","A","H1","H2","H3","H4","H5","H6"]),n={A:new Set(["href","target","rel"])},a=document.createTreeWalker(t.content,NodeFilter.SHOW_ELEMENT),i=[];for(;a.nextNode();)i.push(a.currentNode);for(const e of i){const t=e,a=t.tagName;if(!r.has(a)){const e=t.parentNode;if(!e)continue;for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t);continue}const i=n[a]||new Set;for(const e of[...t.attributes])i.has(e.name)||t.removeAttribute(e.name);if("A"===a){const e=(t.getAttribute("href")||"").trim();/^https?:\/\//i.test(e)||e.startsWith("/")||e.startsWith("#")||t.removeAttribute("href"),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener noreferrer")}}return t.innerHTML})(t)}catch(t){return`<p>${ke(e)}</p>`}})(r),s=u?"isfwp-site-search-summary__content--expanded":"isfwp-site-search-summary__content--collapsed",o=u?(0,we.__)("Collapse summary","instantsearch-for-wp"):(0,we.__)("Read full summary","instantsearch-for-wp"),c=(0,we.__)("Tur
1n summaries off","instantsearch-for-wp"),l=a?`<p class="isfwp-site-search-summary__disclaimer">${ke(a)}</p>`:"";e.innerHTML=`\n\t\t\t<div class="isfwp-site-search-summary__header">\n\t\t\t\t<p class="isfwp-site-search-summary__label">${(0,we.__)("AI Summary","instantsearch-for-wp")}</p>\n\t\t\t\t<button\n\t\t\t\t\ttype="button"\n\t\t\t\t\tclass="isfwp-site-search-summary__power-toggle"\n\t\t\t\t\tdata-isfwp-summary-disable\n\t\t\t\t>\n\t\t\t\t\t${c}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<div class="isfwp-site-search-summary__body">\n\t\t\t\t<div class="isfwp-site-search-summary__content ${s}">${i}</div>\n\t\t\t\t${l}\n\t\t\t\t<div class="isfwp-site-search-summary__actions">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype="button"\n\t\t\t\t\t\tclass="isfwp-site-search-summary__toggle"\n\t\t\t\t\t\taria-expanded="${u?"true":"false"}"\n\t\t\t\t\t>\n\t\t\t\t\t\t${o}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`;const v=e.querySelector(".isfwp-site-search-summary__toggle");v&&v.addEventListener("click",()=>{u=!u,w({text:d})}),y()},b=async(e,a={})=>{if(s)if(g)w();else if(o&&o.abort(),!e||e.trim().length<3)w();else{p=Ee(a),i&&console.info("ISFWP AI Summary request payload",{engine:n,query:e,searchParameters:p}),o=new AbortController,w({loading:!0});try{let a;if(n===_e)a=await(async(e,n,a)=>{const i=`https://${t.appId}.algolia.net/agent-studio/1/agents/${encodeURIComponent(r.agentId)}/completions?stream=true&compatibilityMode=ai-sdk-5`,s={messages:[{role:"user",parts:[{type:"text",text:e}]}]};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","X-Algolia-Application-Id":t.appId,"X-Algolia-API-Key":t.apiKey},body:JSON.stringify(s),signal:a})})(e,0,o.signal);else{const n=await(async e=>{const t=await fetch(`${be}/chat/token`,{method:"POST",headers:{"X-Algolia-Assistant-Id":r.agentId},signal:e});if(!t.ok)throw new Error((0,we.__)("Unable to fetch Ask AI token.","instantsearch-for-wp"));const n=await t.json();if(!n?.success||!n?.token)throw new Error(n?.message||(0,we.__)("Invalid Ask AI token response.","instantsearch-for-wp"));return n.token})(o.signal),i=Date.now(),s=`search-${i}`;a=await fetch(`${be}/chat`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","X-Algolia-Application-Id":t.appId,"X-Algolia-API-Key":t.apiKey,"X-Algolia-Index-Name":t.indexName,"X-Algolia-Assistant-Id":r.agentId,"X-AI-SDK-Version":"v4",Authorization:`TOKEN ${n}`},body:JSON.stringify({id:s,messages:[{id:`message-${i}`,role:"user",content:e}],searchParameters:p}),signal:o.signal})}if(!a.ok||!a.body)throw new Error((0,we.__)("Unable to fetch AI summary.","instantsearch-for-wp"));let i="",s="";const c=a.body.getReader(),l=new TextDecoder;for(;;){const{done:e,value:t}=await c.read();if(e)break;s+=l.decode(t,{stream:!0});const r=Te(s,i,!1);i=r.nextText,s=r.remainder,i.trim()&&w({text:i.trim()})}if(s+=l.decode(),i=Te(s,i,!0).nextText,!i.trim())return void w({error:(0,we.__)("No summary generated for this query.","instantsearch-for-wp")});w({text:i.trim()})}catch(e){if("AbortError"===e?.name)return;w({error:Se(e,(0,we.__)("Unable to generate AI summary right now.","instantsearch-for-wp"))})}}};return{isEnabled:s,handleQueryChange:(e,t={})=>{if(!s)return;h=e||"",p=Ee(t);const r=Ie(h,p);g?w():r!==c?(u=!1,c=r,l&&clearTimeout(l),l=setTimeout(()=>{b(h,p)},250)):f!==r&&b(h,p)},reset:()=>{l&&(clearTimeout(l),l=null),o&&(o.abort(),o=null),w(),c="",h="",p={distinct:!0}}}}},884:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(6467);function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,n._)(e,t)}},1026:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n={resetLabel:function(){return"Clear refinements"}}},1119:(e,t,r)=>{"use strict";r.d(t,{Y:()=>c});var n=r(1893),a=r(8542),i=r(4652),s=r(172),o=r(6911);function c(e){var t=e.classNames,r=void 0===t?{}:t,c=(0,a._)(e,["classNames"]);return(0,s.h)(o.G,(0,n._)({classNames:{root:(0,i.cx)("ais-Snippet",r.root),highlighted:(0,i.cx)("ais-Snippet-highlighted",r.highlighted),nonHighlighted:(0,i.cx)("ais-Snippet-nonHighlighted",r.nonHighlighted),separator:(0,i.cx)("ais-Snippet-separator",r.separator)}},c))}},1212:(e,t,r)=>{"use strict";r.d(t,{C:()=>l});var n=r(467),a=r(1893),i=r(5456),s=r(5697),o=r(7810),c=r(4978),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?(0,s.A)():t,l=e.stateMapping,u=void 0===l?
vendor: 6,872 bytes, line 1
1(0,o.A)():l,d=e.$$internal,h=void 0!==d&&d;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var s=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),o=Object.keys(e).reduce(function(t,r){return(0,i._)((0,a._)({},t),(0,n._)({},r,e[r]))},s),c=u.stateToRoute(o);return r.createURL(c)};var s=void 0,o=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(u.$$type||"__unknown__","})"),$$internal:h,onStateChange:function(e){var t=e.uiState,n=u.stateToRoute(t);void 0!==s&&(0,c.n)(s,n)||(r.write(n),s=n)},subscribe:function(){t._initialUiState=(0,a._)({},o,u.routeToState(r.read())),r.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(u.routeToState(e))})},started:function(){var e;null===(e=r.start)||void 0===e||e.call(r)},unsubscribe:function(){r.dispose()}}}}},1230:(e,t,r)=>{"use strict";r.d(t,{U0:()=>c,Zp:()=>l});var n=r(1893),a=r(633),i=r(1642),s=r(793);function o(e){var t=e.helper,r=e.widgetType;e.methodName;var s=e.args,o=e.instantSearchInstance;if(1===s.length&&"object"===(0,i._)(s[0]))return[s[0]];var c=(0,a._)(s[0].split(":"),2),l=c[0],u=c[1],d=s[1],h=s[2],p=s[3]||{};if(!d)return[];if(("click"===l||"conversion"===l)&&!h)return[];var m=Array.isArray(d)?d:[d];if(0===m.length)return[];var f=m[0].__queryID,g=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=g.map(function(e){return e.map(function(e){return e.objectID})}),y=g.map(function(e){return e.map(function(e){return e.__position})});return"view"===l?"idle"!==o.status?[]:g.map(function(e,a){var i;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:l,payload:(0,n._)({eventName:h||"Hits Viewed",index:(null===(i=t.lastResults)||void 0===i?void 0:i.index)||t.state.index,objectIDs:v[a]},p),hits:e,eventModifier:u}}):"click"===l?g.map(function(e,a){var i;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:l,payload:(0,n._)({eventName:h||"Hit Clicked",index:(null===(i=t.lastResults)||void 0===i?void 0:i.index)||t.state.index,queryID:f,objectIDs:v[a],positions:y[a]},p),hits:e,eventModifier:u}}):"conversion"===l?g.map(function(e,a){var i;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:l,payload:(0,n._)({eventName:h||"Hit Converted",index:(null===(i=t.lastResults)||void 0===i?void 0:i.index)||t.state.index,queryID:f,objectIDs:v[a]},p),hits:e,eventModifier:u}}):[]}function c(e){var t=e.instantSearchInstance,r=e.helper,n=e.widgetType,a={},i=void 0;return function(){for(var e=arguments.length,s=new Array(e),c=0;c<e;c++)s[c]=arguments[c];o({widgetType:n,helper:r,methodName:"sendEvent",args:s,instantSearchInstance:t}).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&a[e.eventType]||(a[e.eventType]=!0,t.sendEventToInsights(e))}),clearTimeout(i),i=setTimeout(function(){a={}},0)}}function l(e){var t=e.helper,r=e.widgetType,n=e.instantSearchInstance;return function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];var c=o({widgetType:r,helper:t,methodName:"bindEvent",args:a,instantSearchInstance:n});return c.length?"data-insights-event=".concat((0,s.h)(c)):""}}},1243:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(8411),a=new RegExp(/\w/i);function i(e,t){var r,i,s,o,c=e[t],l=null===(r=null===(s=e[t+1])||void 0===s?void 0:s.isHighlighted)||void 0===r||r,u=null===(i=null===(o=e[t-1])||void 0===o?void 0:o.isHighlighted)||void 0===i||i;return a.test((0,n.x)(c.value))||u!==l?c.isHighlighted:u}},1302:(e,t,r)=>{"use strict";r.d(t,{k:()=>f});var n=r(1893),a=r(5456),i=r(633),s=r(6337),o=r(9057),c=r(7198),l=r(1367),u=r(2865),d=r(7326),h=r(9352),p="2.17.2",m="https://cdn.jsdelivr.net/npm/search-insights@".concat(p,"/dist/search-insights.min.js");function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,f=e.onEvent,y=e.$$internal,w=void 0!==y&&y,b=e.$$automatic,_=void 0!==b&&b,x=t;t||null===t||(0,u.x)(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(x=t[r]),x||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];t[r].queue||(t[r].queue=[]),t[r].queue.push(n)},t[r].version=p,t[r].shouldAddScript=!0),x=t[r])});var P=x||o.l;return function(e){var t,u=e.instantSearchInstance,p=u.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});(t=u).unuse.apply(t,(0,s._)(p));var y,b,x,S=(0,i._)((0,l.j)(u.client),2),k=S[0],R=S[1],T=void 0,E=void 0,C=void 0,I=P.queue;return Array.isArray(I)&&(y=(0,i._)(["setUserToken","init"].map(function(e){var t=(0,i._)((0,c.I)(I.slice().reverse(),function(t){return(0,i._)(t,1)[0]===e})||[],2);return t[1]}),2),E=y[0],T=y[1]),P("getUserToken",null,function(e,t){C=v(t)}),!r&&g(P)||P("init",(0,n._)({appId:k,apiKey:R,partial:!0},r)),{$$type:"ais.insights",$$internal:w,$$automatic:_,onStateChange:function(){},subscribe:function(){if(P.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=m,t.onerror=function(){u.emit("error",new Error(e))},document.body.appendChild(t),P.shouldAddScript=!1}catch(t){P.shouldAddScript=!1,u.emit("error",new Error(e))}}},started:function(){P("addAlgoliaAgent","insights-middleware"),x=u.mainHelper;var e,t=P.queue;Array.isArray(t)&&(e=(0,i._)(["setUserToken","init"].map(function(e){var r=(0,i._)((0,c.I)(t.slice().reverse(),function(t){return(0,i._)(t,1)[0]===e})||[],2);return r[1]}),2),E=e[0],T=e[1]),b=function(e){var t,r,n=(null===(r=e._initialResults)||void 0===r||null===(t=r[e.indexName])||void 0===t?void 0:t.state)||{},a=e.mainHelper.state;return{userToken:n.userToken||a.userToken,clickAnalytics:n.clickAnalytics||a.clickAnalytics}}(u),_||x.overrideStateWithoutTriggeringChangeEvent((0,a._)((0,n._)({},x.state),{clickAnalytics:!0})),w||u.scheduleSearch();var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=v(e);if(r){var i=x.state.userToken;t?s():setTimeout(s,0)}function s(){x.overrideStateWithoutTriggeringChangeEvent((0,a._)((0,n._)({},x.state),{userToken:r})),i&&i!==e&&u.scheduleSearch()}};function o(e){s(e,!0),P("setUserToken",e)}var p,m=void 0,y=(0,d.Si)();m=y||"anonymous-".concat((0,h.G)());var S=b.userToken;(null==r?void 0:r.userToken)&&(p=r.userToken),p?o(p):S?o(S):C?o(C):E?o(E):m&&(o(m),((null==r?void 0:r.useCookie)||(null==T?void 0:T.useCookie))&&function(e,t){var r=new Date;r.setTime(r.getTime()+(t||15552e6));var n="expires=".concat(r.toUTCString());document.cookie="_ALGOLIA=".concat(e,";").concat(n,";path=/")}
1(m,(null==r?void 0:r.cookieDuration)||(null==T?void 0:T.cookieDuration))),P("onUserTokenChange",function(e){return s(e,!0)},{immediate:!0});var k=P;g(P)&&(k=function(e,t){var r=(0,i._)((0,l.j)(u.client),2),n=r[0],a=r[1];return P(e,t,{headers:{"X-Algolia-Application-Id":n,"X-Algolia-API-Key":a}})});var R,I=new Set;u.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;!t||t.queryID&&t.queryID===R||(R=t.queryID,I.clear())}),u.sendEventToInsights=function(e){if(f)f(e,k);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=t.objectIDs.filter(function(e){return!I.has(e)});if(0===r.length)return;r.forEach(function(e){return I.add(e)}),t.objectIDs=r}e.payload.algoliaSource=["instantsearch"],_&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),k(e.insightsMethod,e.payload)}}},unsubscribe:function(){P("onUserTokenChange",void 0),u.sendEventToInsights=o.l,x&&b&&(x.overrideStateWithoutTriggeringChangeEvent((0,n._)({},x.state,b)),u.scheduleSearch())}}}}function g(e){var t=(0,i._)((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function v(e){if(e)return"number"==typeof e?e.toString():e}},1309:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(1893),a=r(633),i=r(1642),s=r(9151);function o(e){var t=e.instantSearchInstance,r=e.helper,o=e.attribute,c=e.widgetType;return function(){for(var e=arguments.length,l=new Array(e),u=0;u<e;u++)l[u]=arguments[u];var d=(0,a._)(l,4),h=d[1],p=d[2],m=void 0===p?"Filter Applied":p,f=d[3],g=void 0===f?{}:f,v=(0,a._)(l[0].split(":"),2),y=v[0],w=v[1],b="string"==typeof o?o:o(h);if(1===l.length&&"object"===(0,i._)(l[0]))t.sendEventToInsights(l[0]);else if("click"===y&&l.length>=2&&l.length<=4){var _;(0,s.f)(r,b,h)||t.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:c,eventType:y,eventModifier:w,payload:(0,n._)({eventName:m,index:(null===(_=r.lastResults)||void 0===_?void 0:_.index)||r.state.index,filters:["".concat(b,":").concat(h)]},g),attribute:b})}}}},1367:(e,t,r)=>{"use strict";function n(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(e.transporter){var t=e.transporter,r=t.headers||t.baseHeaders,n=t.queryParameters||t.baseQueryParameters,a="x-algolia-application-id",i="x-algolia-api-key";return[r[a]||n[a],r[i]||n[i]]}return[e.applicationID,e.apiKey]}r.d(t,{j:()=>n})},1383:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}},1384:(e,t,r)=>{"use strict";r.r(t),r.d(t,{apiClientVersion:()=>i,insightsClient:()=>o});var n=r(4267),a=r(5375),i="5.49.2",s=["de","us"];function o(e,t,r,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");if(r&&("string"!=typeof r||!s.includes(r)))throw new Error(`\`region\` must be one of the following: ${s.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:s,...o}){const c=(0,n.PA)(e,t,r),l=(0,n.zf)({hosts:(u=s,[{url:u?"insights.{region}.algolia.io".replace("{region}",u):"insights.algolia.io",accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"Insights",version:i}),baseHeaders:{"content-type":"text/plain",...c.headers(),...o.baseHeaders},baseQueryParameters:{...c.queryParameters(),...o.baseQueryParameters}});var u;return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},deleteUserToken({userToken:e},t){if(!e)throw new Error("Parameter `userToken` is required when calling `deleteUserToken`.");const r={method:"DELETE",path:"/1/usertokens/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},pushEvents(e,t){if(!e)throw new Error("Parameter `insightsEvents` is required when calling `pushEvents`.");if(!e.events)throw new Error("Parameter `insightsEvents.events` is required when calling `pushEvents`.");const r={method:"POST",path:"/1/events",queryParameters:{},headers:{},data:e};return l.request(r,t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...o})}},1475:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});var n=r(467),a=r(3750),i=r(1893),s=r(5456),o=r(8542),c=r(6337),l=r(4103),u=r(2788),d=r(5118),h=r(6464),p=r(267),m=r(5620),f=r(30),g=r(3711),v=(0,p.V)({name:"index-widget"});function y(e,t){var r=t.state,n=t.recommendState,a=t.isPageReset,i=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:a,_uiState:i})),n!==e.recommendState&&(e.recommendState=n)}function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return(0,d.l)(r)?e:r.getWidgetUiState||r.getWidgetState?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function b(e,t){var r=t.initialSearchParameters,n=(0,o._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,d.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):t.getWidgetSearchParameters(e,n)},r)}function _(e,t){var r=t.initialRecommendParameters,n=(0,o._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!(0,d.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):e},r)}function x(e){var t=e.filter(d.l);0!==t.length&&t.forEach(function(e){var t=e.getHelper();y(t,{state:t.state.resetPage(),recommendState:t.recommendState,isPageReset:!0}),x(e.getWidgets())})}function P(e){return e.filter(d.l).reduce(function(e,t){var r;return(r=e).concat.apply(r,[{indexId:t.getIndexId(),results:t.getResults(),helper:t.getHelper()}
vendor: 10,699 bytes, line 1
1].concat((0,c._)(P(t.getWidgets()))))},[])}var S=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw new Error(v("The `indexName` option is required."));var t=e.indexName,r=void 0===t?"":t,o=e.indexId,p=void 0===o?r:o,S=e.EXPERIMENTAL_isolated,k=void 0!==S&&S,R=[],T={},E=null,C=null,I=null,q=null,A=null,N=!1,D=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:k,getIndexName:function(){return r},getIndexId:function(){return p},getHelper:function(){return I},getResults:function(){return(null==q?void 0:q.lastResults)?(q.lastResults._state=I.state,q.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||(0,d.l)(e)||void 0===e.$$id?this.getResults():(null==I?void 0:I.lastRecommendResults)?I.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return A},getScopedResults:function(){var e=this.getParent();return P(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return k?null:C},createURL:function(e){return"function"==typeof e?E._createURL((0,n._)({},p,e(T))):E._createURL((0,n._)({},p,w(R,{searchParameters:e,helper:I})))},scheduleLocalSearch:(0,h.v)(function(){k&&(null==I||I.search())}),getWidgets:function(){return R},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw new 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 new Error(v("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){e.parent=t,(0,d.l)(e)||(E&&"recommend"===e.dependsOn?E._hasRecommendWidget=!0:E?E._hasSearchWidget=!0:"recommend"===e.dependsOn?N=!0:D=!0,(0,u.t)(e))}),R=R.concat(r),E&&Boolean(r.length)&&(y(I,{state:b(R,{uiState:T,initialSearchParameters:I.state}),recommendState:_(R,{uiState:T,initialRecommendParameters:I.recommendState}),_uiState:T}),r.forEach(function(e){if(e.getRenderState){var r=e.getRenderState(E.renderState[t.getIndexId()]||{},(0,f.eX)(E,t,E._initialUiState));(0,f.r2)({renderState:r,instantSearchInstance:E,parent:t})}}),r.forEach(function(e){e.init&&e.init((0,f.eX)(E,t,E._initialUiState))}),k?this.scheduleLocalSearch():E.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw new 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 new Error(v("The widget definition expects a `dispose` method."));if((R=R.filter(function(e){return-1===r.indexOf(e)})).forEach(function(e){e.parent=void 0,(0,d.l)(e)||(E&&"recommend"===e.dependsOn?E._hasRecommendWidget=!0:E?E._hasSearchWidget=!0:"recommend"===e.dependsOn?N=!0:D=!0)}),E&&Boolean(r.length)){var n=r.reduce(function(e,r){var n=r.dispose({helper:I,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return(0,a._)(n,l.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:I.state,cleanedRecommendState:I.recommendState}),i=n.cleanedSearchState,s=n.cleanedRecommendState,o=E.future.preserveSharedStateOnUnmount?b(R,{uiState:T,initialSearchParameters:new l.SearchParameters({index:this.getIndexName()})}):b(R,{uiState:w(R,{searchParameters:i,helper:I}),initialSearchParameters:i});T=w(R,{searchParameters:o,helper:I}),I.setState(o),I.recommendState=s,R.length&&(k?this.scheduleLocalSearch():E.scheduleSearch())}return this},init:function(e){var t,n=this,a=e.instantSearchInstance,i=e.parent,s=e.uiState;if(null===I){E=a,C=i,T=s[p]||{};var o=a.mainHelper,u=b(R,{uiState:T,initialSearchParameters:new l.SearchParameters({index:r})}),d=_(R,{uiState:T,initialRecommendParameters:new l.RecommendParameters});(I=l(o.getClient(),u.index,u)).recommendState=d,I.search=function(){return k?(a.status="loading",n.render({instantSearchInstance:a}),a.compositionID?I.searchWithComposition():I.searchOnlyWithDerivedHelpers()):a.onStateChange?(a.onStateChange({uiState:a.mainIndex.getWidgetUiState({}),setUiState:function(e){return a.setUiState(e,!1)}}),o):o.search()},I.searchWithoutTriggeringOnStateChange=function(){return o.search()},I.searchForFacetValues=function(e,t,r,a){var i=m.p.apply(void 0,[o.state].concat((0,c._)((0,g.R)(n)))).setQueryParameters(a);return o.searchForFacetValues(e,t,r,i)};var h=r?I:l({},"__empty_index__",{}),v=k?h:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(i,o);q=v.derive(function(){return m.p.apply(void 0,[o.state].concat((0,c._)((0,g.R)(n))))},function(){return n.getHelper().recommendState});var y=null===(t=a._initialResults)||void 0===t?void 0:t[this.getIndexId()];if(null==y?void 0:y.results){var P=new l.SearchResults(new l.SearchParameters(y.state),y.results);q.lastResults=P,I.lastResults=P}if(null==y?void 0:y.recommendResults){var S=new l.RecommendResults(new l.RecommendParameters({params:y.recommendResults.params}),y.recommendResults.results);q.lastRecommendResults=S,I.lastRecommendResults=S}I.on("change",function(e){e.isPageReset&&x(R)}),q.on("search",function(){a.scheduleStalledRender()}),q.on("result",function(e){var t=e.results;a.scheduleRender(),I.lastResults=t,A=null==t?void 0:t._state}),q.on("recommend:result",function(e){var t=e.recommend;a.scheduleRender(),I.lastRecommendResults=t.results}),R.forEach(function(e){if(e.getRenderState){var t=e.getRenderState(a.renderState[n.getIndexId()]||{},(0,f.eX)(a,n,s));(0,f.r2)({renderState:t,instantSearchInstance:a,parent:n})}}),R.forEach(function(e){e.init&&e.init((0,f.eX)(a,n,s))}),I.on("change",function(e){var t=e.state,r=e._uiState;T=w(R,{searchParameters:t,helper:I},r||{}),a.onStateChange||a.onInternalStateChange()}),y&&a.scheduleRender(),N&&(a._hasRecommendWidget=!0),D&&(a._hasSearchWidget=!0)}},render:function(e){var t=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&A&&I.setState(A);var a=this.getResults()||(null==q?void 0:q.lastRecommendResults)||k&&!r?R:R.filter(function(e){return e.shouldRender});(a=a.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,f.Ah)(n,t,e));(0,f.r2)({renderState:r,instantSearchInstance:n,parent:t})}}),a.forEach(function(e){e.render&&e.render((0,f.Ah)(n,t,e))})},dispose:function(){var e=this;R.forEach(function(t){t.dispose&&I&&t.dispose({helper:I,state:I.state,recommendState:I.recommendState,parent:e})}),E=null,C=null,null==I||I.removeAllListeners(),I=null,null==q||q.detach(),q=null},getWidgetUiState:function(e){return R.filter(d.l).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,s._)((0,i._)({},e),(0,n._)({},p,(0,i._)({},e[p],T))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return b(R,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){T=w(R,{searchParameters:this.getHelper().state,helper:this.getHelper()},T)},setIndexUiState:function(e){var t="function"==typeof e?e(T):e;E.setUiState(function(e){return(0,s._)((0,i._)({},e),(0,n._)({},p,t))})}}}},1607:(e,t,r)=>{"use strict";r.d(t,{X:()=>p});var n=r(467),a=r(1893),i=r(5456),s=r(1642),o=r(4714),c=r(6214),l=r(7134),u=r(6850),d=r(9235),h=r(8175);function p(e){var t=e.templates,r=e.templateKey,p=e.compileOptions,m=e.helpers,f=e.data,g=e.bindEvent,v=e.sendEvent,y=t[r];if("string"!=typeof y&&"function"!=typeof y)throw new Error("Template must be 'string' or 'function', was '".concat(void 0===y?"undefined":(0,s._)(y),"' (key: ").concat(r,")"));if("function"==typeof y){var w=g||{};return w.html=c.qy,w.sendEvent=v,w.components={Highlight:l.f,ReverseHighlight:u.R,Snippet:d.Y,ReverseSnippet:h.m},y(f,w)}var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return Object.keys(e).reduce(function(s,c){return(0,i._)((0,a._)({},s),(0,n._)({},c,function(){var n=this;return function(a){return e[c].call(r,a,function(e){return o.compile(e,t).render(n)})}}))},{})}(m,p,f);return o.compile(y,p).render((0,i._)((0,a._)({},f),{helpers:b})).replace(/[ \n\r\t\f\xA0]+/g,function(e){return e.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}).trim()}},1634:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(1893),a=r(5456),i=r(4652),s=r(172),o=r(7527),c=r(7052),l=r(9734),u=r(3944),d=r(3380),h=r(4243),p=r(4182),m=r(9072),f=(0,h.V)({name:"refinement-list"}),g=(0,l.s)("RefinementList"),v=(0,l.s)("SearchBox"),y=function(e){var t=e||{},r=t.container,l=t.attribute,h=t.operator,y=t.sortBy,w=t.limit,b=t.showMore,_=t.showMoreLimit,x=t.searchable,P=void 0!==x&&x,S=t.searchablePlaceholder,k=void 0===S?"Search...":S,R=t.searchableEscapeFacetValues,T=void 0===R||R,E=t.searchableIsAlwaysActive,C=void 0===E||E,I=t.searchableSelectOnSubmit,q=void 0===I||I,A=t.cssClasses,N=void 0===A?{}:A,D=t.templates,F=void 0===D?{}:D,j=t.transformItems;if(!r)throw new Error(f("The `container` option is required."));var O=!!P&&Boolean(T),M=(0,p.e)(r),L={root:(0,i.cx)(g(),N.root),noRefinementRoot:(0,i.cx)(g({modifierName:"noRefinement"}),N.noRefinementRoot),list:(0,i.cx)(g({descendantName:"list"}),N.list),item:(0,i.cx)(g({descendantName:"item"}),N.item),selectedItem:(0,i.cx)(g({descendantName:"item",modifierName:"selected"}),N.selectedItem),searchBox:(0,i.cx)(g({descendantName:"searchBox"}),N.searchBox),label:(0,i.cx)(g({descendantName:"label"}),N.label),checkbox:(0,i.cx)(g({descendantName:"checkbox"}),N.checkbox),labelText:(0,i.cx)(g({descendantName:"labelText"}),N.labelText),count:(0,i.cx)(g({descendantName:"count"}),N.count),noResults:(0,i.cx)(g({descendantName:"noResults"}),N.noResults),showMore:(0,i.cx)(g({descendantName:"showMore"}),N.showMore),disabledShowMore:(0,i.cx)(g({descendantName:"showMore",modifierName:"disabled"}),N.disabledShowMore),searchable:{root:(0,i.cx)(v(),N.searchableRoot),form:(0,i.cx)(v({descendantName:"form"}),N.searchableForm),input:(0,i.cx)(v({descendantName:"input"}),N.searchableInput),submit:(0,i.cx)(v({descendantName:"submit"}),N.searchableSubmit),submitIcon:(0,i.cx)(v({descendantName:"submitIcon"}),N.searchableSubmitIcon),reset:(0,i.cx)(v({descendantName:"reset"}),N.searchableReset),resetIcon:(0,i.cx)(v({descendantName:"resetIcon"}),N.searchableResetIcon),loadingIndicator:(0,i.cx)(v({descendantName:"loadingIndicator"}),N.searchableLoadingIndicator),loadingIcon:(0,i.cx)(v({descendantName:"loadingIcon"}),N.searchableLoadingIcon)}}
1,H=function(e){var t=e.containerNode,r=e.cssClasses,n=e.templates,a=e.searchBoxTemplates,i=e.renderState,c=e.showMore,l=e.searchable,h=e.searchablePlaceholder,p=e.searchableIsAlwaysActive,f=e.searchableSelectOnSubmit;return function(e,g){var v=e.refine,y=e.items,w=e.createURL,b=e.searchForItems,_=e.isFromSearch,x=e.instantSearchInstance,P=e.toggleShowMore,S=e.isShowingMore,k=e.hasExhaustiveItems,R=e.canToggleShowMore;if(g)return i.templateProps=(0,m.C)({defaultTemplates:d.A,templatesConfig:x.templatesConfig,templates:n}),void(i.searchBoxTemplateProps=(0,m.C)({defaultTemplates:u.A,templatesConfig:x.templatesConfig,templates:a}));(0,s.XX)((0,s.h)(o.A,{createURL:w,cssClasses:r,facetValues:y,templateProps:i.templateProps,searchBoxTemplateProps:i.searchBoxTemplateProps,toggleRefinement:v,searchFacetValues:l?b:void 0,searchPlaceholder:h,searchIsAlwaysActive:p,isFromSearch:_,showMore:c&&!_&&y.length>0,toggleShowMore:P,isShowingMore:S,hasExhaustiveItems:k,canToggleShowMore:R,searchableSelectOnSubmit:f}),t)}}({containerNode:M,cssClasse
1s:L,templates:F,searchBoxTemplates:{submit:F.searchableSubmit,reset:F.searchableReset,loadingIndicator:F.searchableLoadingIndicator},renderState:{},searchable:P,searchablePlaceholder:k,searchableIsAlwaysActive:C,searchableSelectOnSubmit:q,showMore:b}),$=(0,c.A)(H,function(){return(0,s.XX)(null,M)});return(0,a._)((0,n._)({},$({attribute:l,operator:h,limit:w,showMore:b,showMoreLimit:_,sortBy:y,escapeFacetValues:O,transformItems:j})),{$$widgetType:"ais.refinementList"})}},1642:(e,t,r)=>{"use strict";function n(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:()=>n})},1810:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(1642);function a(e){if(!function(e){return"object"===(void 0===e?"undefined":(0,n._)(e))&&null!==e}(e)||"[object Object]"!==function(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(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}},1882:(e,t,r)=>{"use strict";r.r(t),r.d(t,{abtestingV3Client:()=>o,apiClientVersion:()=>i});var n=r(4267),a=r(5375),i="1.15.2",s=["de","us"];function o(e,t,r,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");if(r&&("string"!=typeof r||!s.includes(r)))throw new Error(`\`region\` must be one of the following: ${s.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:s,...o}){const c=(0,n.PA)(e,t,r),l=(0,n.zf)({hosts:(u=s,[{url:u?"analytics.{region}.algolia.com".replace("{region}",u):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"AbtestingV3",version:i}),baseHeaders:{"content-type":"text/plain",...c.headers(),...o.baseHeaders},baseQueryParameters:{...c.queryParameters(),...o.baseQueryParameters}});var u;return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},addABTests(e,t){if(!e)throw new Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!e.name)throw new Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!e.variants)throw new Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!e.metrics)throw new Error("Parameter `addABTestsRequest.metrics` is required when calling `addABTests`.");if(!e.endAt)throw new Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");const r={method:"POST",path:"/3/abtests",queryParameters:{},headers:{},data:e};return l.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},deleteABTest({id:e},t){if(!e)throw new Error("Parameter `id` is required when calling `deleteABTest`.");const r={method:"DELETE",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},estimateABTest(e,t){if(!e)throw new Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!e.configuration)throw new Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!e.variants)throw new Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");const r={method:"POST",path:"/3/abtests/estimate",queryParameters:{},headers:{},data:e};return l.request(r,t)},getABTest({id:e},t){if(!e)throw new Error("Parameter `id` is required when calling `getABTest`.");const r={method:"GET",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getTimeseries({id:e,startDate:t,endDate:r,metric:n},a){if(!e)throw new Error("Parameter `id` is required when calling `getTimeseries`.");const i="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),s={};void 0!==t&&(s.startDate=t.toString()),void 0!==r&&(s.endDate=r.toString()),void 0!==n&&(s.metric=n.toString());const o={method:"GET",path:i,queryParameters:s,headers:{}};return l.request(o,a)},listABTests({offset:e,limit:t,indexPrefix:r,indexSuffix:n,direction:a}={},i=void 0){const s={};void 0!==e&&(s.offset=e.toString()),void 0!==t&&(s.limit=t.toString()),void 0!==r&&(s.indexPrefix=r.toString()),void 0!==n&&(s.indexSuffix=n.toString()),void 0!==a&&(s.direction=a.toString());const o={method:"GET",path:"/3/abtests",queryParameters:s,headers:{}};return l.request(o,i)},stopABTest({id:e},t){if(!e)throw new Error("Parameter `id` is required when calling `stopABTest`.");const r={method:"POST",path:"/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...o})}},1893:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(467);function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),a.forEach(function(t){(0,n._)(e,t,r[t])})}return e}},1961:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(1893),a=r(5456),i=r(4652),s=r(172),o=function(e){var t=e.url,r=e.theme,n=e.cssClasse
1s;return(0,s.h)("div",{className:n.root},(0,s.h)("a",{href:t,target:"_blank",className:n.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},(0,s.h)("svg",{height:"1.2em",className:n.logo,viewBox:"0 0 572 64",style:{width:"auto"}},(0,s.h)("path",{fill:"dark"===r?"#FFF":"#36395A",d:"M16 48.3c-3.4 0-6.3-.6-8.7-1.7A12.4 12.4 0 0 1 1.9 42C.6 40 0 38 0 35.4h6.5a6.7 6.7 0 0 0 3.9 6c1.4.7 3.3 1.1 5.6 1.1 2.2 0 4-.3 5.4-1a7 7 0 0 0 3-2.4 6 6 0 0 0 1-3.4c0-1.5-.6-2.8-1.9-3.7-1.3-1-3.3-1.6-5.9-1.8l-4-.4c-3.7-.3-6.6-1.4-8.8-3.4a10 10 0 0 1-3.3-7.9c0-2.4.6-4.6 1.8-6.4a12 12 0 0 1 5-4.3c2.2-1 4.7-1.6 7.5-1.6s5.5.5 7.6 1.6a12 12 0 0 1 5 4.4c1.2 1.8 1.8 4 1.8 6.7h-6.5a6.4 6.4 0 0 0-3.5-5.9c-1-.6-2.6-1-4.4-1s-3.2.3-4.4 1c-1.1.6-2 1.4-2.6 2.4-.5 1-.8 2-.8 3.1a5 5 0 0 0 1.5 3.6c1 1 2.6 1.7 4.7 1.9l4 .3c2.8.2 5.2.8 7.2 1.8 2.1 1 3.7 2.2 4.9 3.8a9.7 9.7 0 0 1 1.7 5.8c0 2.5-.7 4.7-2 6.6a13 13 0 0 1-5.6 4.4c-2.4 1-5.2 1.6-8.4 1.6Zm35.6 0c-2.6 0-4.8-.4-6.7-1.3a13 13 0 0 1-4.7-3.5 17.1 17.1 0 0 1-3.6-10.4v-1c0-2 .3-3.8 1-5.6a13 13 0 0 1 7.3-8.3 15 15 0 0 1 6.3-1.4A13.2 13.2 0 0 1 64 24.3c1 2.2 1.6 4.6 1.6 7.2V34H39.4v-4.3h21.8l-1.8 2.2c0-2-.3-3.7-.9-5.1a7.3 7.3 0 0 0-2.7-3.4c-1.2-.7-2.7-1.1-4.6-1.1s-3.4.4-4.7 1.3a8 8 0 0 0-2.9 3.6c-.6 1.5-.9 3.3-.9 5.4 0 2 .3 3.7 1 5.3a7.9 7.9 0 0 0 2.8 3.7c1.3.8 3 1.3 5 1.3s3.8-.5 5.1-1.3c1.3-1 2.1-2 2.4-3.2h6a11.8 11.8 0 0 1-7 8.7 16 16 0 0 1-6.4 1.2ZM80 48c-2.2 0-4-.3-5.7-1a8.4 8.4 0 0 1-3.7-3.3 9.7 9.7 0 0 1-1.3-5.2c0-2 .5-3.8 1.5-5.2a9 9 0 0 1 4.3-3.1c1.8-.7 4-1 6.7-1H89v4.1h-7.5c-2 0-3.4.5-4.4 1.4-1 1-1.6 2.1-1.6 3.6s.5 2.7 1.6 3.6c1 1 2.5 1.4 4.4 1.4 1.1 0 2.2-.2 3.2-.7 1-.4 1.9-1 2.6-2 .6-1 1-2.4 1-4.2l1.7 2.1c-.2 2-.7 3.8-1.5 5.2a9 9 0 0 1-3.4 3.3 12 12 0 0 1-5.3 1Zm9.5-.7v-8.8h-1v-10c0-1.8-.5-3.2-1.4-4.1-1-1-2.4-1.4-4.2-1.4a142.9 142.9 0 0 0-10.2.4v-5.6a74.8 74.8 0 0 1 8.6-.4c3 0 5.5.4 7.5 1.2s3.4 2 4.4 3.6c1 1.7 1.4 4 1.4 6.7v18.4h-5Zm12.9 0V17.8h5v12.3h-.2c0-4.2 1-7.4 2.8-9.5a11 11 0 0 1 8.3-3.1h1v5.6h-2a9 9 0 0 0-6.3 2.2c-1.5 1.5-2.2 3.6-2.2 6.4v15.6h-6.4Zm34.4 1a15 15 0 0 1-6.6-1.3c-1.9-.9-3.4-2-4.7-3.5a15.5 15.5 0 0 1-2.7-5c-.6-1.7-1-3.6-1-5.4v-1c0-2 .4-3.8 1-5.6a15 15 0 0 1 2.8-4.9c1.3-1.5 2.8-2.6 4.6-3.5a16.4 16.4 0 0 1 13.3.2c2 1 3.5 2.3 4.8 4a12 12 0 0 1 2 6H144c-.2-1.6-1-3-2.2-4.1a7.5 7.5 0 0 0-5.2-1.7 8 8 0 0 0-4.7 1.3 8 8 0 0 0-2.8 3.6 13.8 13.8 0 0 0 0 10.3c.6 1.5 1.5 2.7 2.8 3.6s2.8 1.3 4.8 1.3c1.5 0 2.7-.2 3.8-.8a7 7 0 0 0 2.6-2c.7-1 1-2 1.2-3.2h6.2a11 11 0 0 1-2 6.2 15.1 15.1 0 0 1-11.8 5.5Zm19.7-1v-40h6.4V31h-1.3c0-3 .4-5.5 1.1-7.6a9.7 9.7 0 0 1 3.5-4.8A9.9 9.9 0 0 1 172 17h.3c3.5 0 6 1.1 7.9 3.5 1.7 2.3 2.6 5.7 2.6 10v16.8h-6.4V29.6c0-2.1-.6-3.8-1.8-5a6.4 6.4 0 0 0-4.8-1.8c-2 0-3.7.7-5 2a7.8 7.8 0 0 0-1.9 5.5v17h-6.4Zm63.8 1a12.2 12.2 0 0 1-10.9-6.2 19 19 0 0 1-1.8-7.3h1.4v12.5h-5.1v-40h6.4v19.8l-2 3.5c.2-3.1.8-5.7 1.9-7.7a11 11 0 0 1 4.4-4.5c1.8-1 3.9-1.5 6.1-1.5a13.4 13.4 0 0 1 12.8 9.1c.7 1.9 1 3.8 1 6v1c0 2.2-.3 4.1-1 6a13.6 13.6 0 0 1-13.2 9.4Zm-1.2-5.5a8.4 8.4 0 0 0 7.9-5c.7-1.5 1.1-3.3 1.1-5.3s-.4-3.8-1.1-5.3a8.7 8.7 0 0 0-3.2-3.6 9.6 9.6 0 0 0-9.2-.2 8.5 8.5 0 0 0-3.3 3.2c-.8 1.4-1.3 3-1.3 5v2.3a9 9 0 0 0 1.3 4.8 9 9 0 0 0 3.4 3c1.4.7 2.8 1 4.4 1Zm27.3 3.9-10-28.9h6.5l9.5 28.9h-6Zm-7.5 12.2v-5.7h4.9c1 0 2-.1 2.9-.4a4 4 0 0 0 2-1.4c.4-.7.9-1.6 1.2-2.7l8.6-30.9h6.2l-9.3 32.4a14 14 0 0 1-2.5 5 8.9 8.9 0 0 1-4 2.8c-1.5.6-3.4.9-5.6.9h-4.4Zm9-12.2v-5.2h6.4v5.2H248Z"}),(0,s.h)("path",{fill:"dark"===r?"#FFF":"#003DFF",d:"M534.4 9.1H528a.8.8 0 0 1-.7-.7V1.8c0-.4.2-.7.6-.8l6.5-1c.4 0 .8.2.9.6v7.8c0 .4-.4.7-.8.7zM428 35.2V.8c0-.5-.3-.8-.7-.8h-.2l-6.4 1c-.4 0-.7.4-.7.8v35c0 1.6 0 11.8 12.3 12.2.5 0 .8-.4.8-.8V43c0-.4-.3-.7-.6-.8-4.5-.5-4.5-6-4.5-7zm106.5-21.8H528c-.4 0-.7.4-.7.8v34c0 .4.3.8.7.8h6.5c.4 0 .8-.4.8-.8v-34c0-.5-.4-.8-.8-.8zm-17.7 21.8V.8c0-.5-.3-.8-.8-.8l-6.5 1c-.4 0-.7.4-.7.8v35c0 1.6 0 11.8 12.3 12.2.4 0 .8-.4.8-.8V43c0-.4-.3-.7-.7-.8-4.4-.5-4.4-6-4.4-7zm-22.2-20.6a16.5 16.5 0 0 1 8.6 9.3c.8 2.2 1.3 4.8 1.3 7.5a19.4 19.4 0 0 1-4.6 12.6 14.8 14.8 0 0 1-5.2 3.6c-2 .9-5.2 1.4-6.8 1.4a21 21 0 0 1-6.7-1.4 15.4 15.4 0 0 1-8.6-9.3 21.3 21.3 0 0 1 0-14.4 15.2 15.2 0 0 1 8.6-9.3c2-.8 4.3-1.2 6.7-1.2s4.6.4
16.7 1.2zm-6.7 27.6c2.7 0 4.7-1 6.2-3s2.2-4.3 2.2-7.8-.7-6.3-2.2-8.3-3.5-3-6.2-3-4.7 1-6.1 3c-1.5 2-2.2 4.8-2.2 8.3s.7 5.8 2.2 7.8 3.5 3 6.2 3zm-88.8-28.8c-6.2 0-11.7 3.3-14.8 8.2a18.6 18.6 0 0 0 4.8 25.2c1.8 1.2 4 1.8 6.2 1.7s.1 0 .1 0h.9c4.2-.7 8-4 9.1-8.1v7.4c0 .4.3.7.8.7h6.4a.7.7 0 0 0 .7-.7V14.2c0-.5-.3-.8-.7-.8h-13.5zm6.3 26.5a9.8 9.8 0 0 1-5.7 2h-.5a10 10 0 0 1-9.2-14c1.4-3.7 5-6.3 9-6.3h6.4v18.3zm152.3-26.5h13.5c.5 0 .8.3.8.7v33.7c0 .4-.3.7-.8.7h-6.4a.7.7 0 0 1-.8-.7v-7.4c-1.2 4-4.8 7.4-9 8h-.1a4.2 4.2 0 0 1-.5.1h-.9a10.3 10.3 0 0 1-7-2.6c-4-3.3-6.5-8.4-6.5-14.2 0-3.7 1-7.2 3-10 3-5 8.5-8.3 14.7-8.3zm.6 28.4c2.2-.1 4.2-.6 5.7-2V21.7h-6.3a9.8 9.8 0 0 0-9 6.4 10.2 10.2 0 0 0 9.1 13.9h.5zM452.8 13.4c-6.2 0-11.7 3.3-14.8 8.2a18.5 18.5 0 0 0 3.6 24.3 10.4 10.4 0 0 0 13 .6c2.2-1.5 3.8-3.7 4.5-6.1v7.8c0 2.8-.8 5-2.2 6.3-1.5 1.5-4 2.2-7.5 2.2l-6-.3c-.3 0-.7.2-.8.5l-1.6 5.5c-.1.4.1.8.5 1h.1c2.8.4 5.5.6 7 .6 6.3 0 11-1.4 14-4.1 2.7-2.5 4.2-6.3 4.5-11.4V14.2c0-.5-.4-.8-.8-.8h-13.5zm6.3 8.2v18.3a9.6 9.6 0 0 1-5.6 2h-1a10.3 10.3 0 0 1-8.8-14c1.4-3.7 5-6.3 9-6.3h6.4zM291 31.5A32 32 0 0 1 322.8 0h30.8c.6 0 1.2.5 1.2 1.2v61.5c0 1.1-1.3 1.7-2.2 1l-19.2-17a18 18 0 0 1-11 3.4 18.1 18.1 0 1 1 18.2-14.8c-.1.4-.5.7-.9.6-.1 0-.3 0-.4-.2l-3.8-3.4c-.4-.3-.6-.8-.7-1.4a12 12 0 1 0-2.4 8.3c.4-.4 1-.5 1.6-.2l14.7 13.1v-46H323a26 26 0 1 0 10 49.7c.8-.4 1.6-.2 2.3.3l3 2.7c.3.2.3.7 0 1l-.2.2a32 32 0 0 1-47.2-28.6z"}))))},c=r(4243),l=r(69),u=r(513),d=(0,c.V)({name:"powered-by",connector:!0}),h=r(9734),p=r(4182),m=(0,h.s)("PoweredBy"),f=(0,c.V)({name:"powered-by"}),g=function(e){var t=e||{},r=t.container,c=t.cssClasses,h=void 0===c?{}:c,g=t.theme,v=void 0===g?"light":g;if(!r)throw new Error(f("The `container` option is required."));var y=(0,p.e)(r),w={root:(0,i.cx)(m(),m({modifierName:"dark"===v?"dark":"light"}),h.root),link:(0,i.cx)(m({descendantName:"link"}),h.link),logo:(0,i.cx)(m({descendantName:"logo"}),h.logo)},b=function(e){var t=e.containerNode,r=e.cssClasses;return function(e,n){var a=e.url,i=e.widgetParams;if(n){var c=i.theme,l=void 0===c?"light":c;(0,s.XX)((0,s.h)(o,{cssClasses:r,url:a,theme:l}),t)}}}({containerNode:y,cssClasses:w}),_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.l;(0,l.t)(e,d());var r="https://www.algolia.com/?utm_source=instantsearch.js&utm_medium=website&"+"utm_content=".concat(function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"undefined"==typeof window?t():e({window})}(function(e){var t;return(null===(t=e.window.location)||void 0===t?void 0:t.hostname)||""},{fallback:function(){return""}}),"&")+"utm_campaign=poweredby";return function(i){var s=(i||{}).url,o=void 0===s?r:s;return{$$type:"ais.poweredBy",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)},getRenderState:function(e,t){return(0,a._)((0,n._)({},e),{poweredBy:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{url:o,widgetParams:i}},dispose:function(){t()}}}}(b,function(){return(0,s.XX)(null,y)});return(0,a._)((0,n._)({},_({theme:v})),{$$widgetType:"ais.poweredBy"})}},2183:e=>{"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){var n="number"==typeof e[r]?e[r]:0,a=t[r];void 0!==a&&a>=n&&(void 0!==e[r]&&delete e[r],e[r]=a)}),e},{})}},2208:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},2223: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},2464:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var n=r(4880),a=r(494),i=r(9407),s=r(467),o=r(884),c=r(3750),l=r(1893),u=r(6337),d=r(2733),h=r(4103),p=r(1302),m=r(9493),f=r(1212),g=r(1475),v=r(8130),y=r(9057),w=r(4685),b=r(5118),_=r(6464),x=r(267),P=r(6916),S=r(8257),k=r(6183),R=(0,x.V)({name:"instantsearch"});function T(){return"#"}var E={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},C=function(e){function t(e){var r;(0,a._)(this,t),r=(0,n._)(this,t),(0,s._)(r,"client",void 0),(0,s._)(r,"indexName",void 0),(0,s._)(r,"compositionID",void 0),(0,s._)(r,"insightsClient",void 0),(0,s._)(r,"onStateChange",null),(0,s._)(r,"future",void 0),(0,s._)(r,"helper",void 0),(0,s._)(r,"mainHelper",void 0),(0,s._)(r,"mainIndex",void 0),(0,s._)(r,"started",void 0),(0,s._)(r,"templatesConfig",void 0),(0,s._)(r,"render
1State",{}),(0,s._)(r,"_stalledSearchDelay",void 0),(0,s._)(r,"_searchStalledTimer",void 0),(0,s._)(r,"_initialUiState",void 0),(0,s._)(r,"_initialResults",void 0),(0,s._)(r,"_manuallyResetScheduleSearch",!1),(0,s._)(r,"_resetScheduleSearch",void 0),(0,s._)(r,"_createURL",void 0),(0,s._)(r,"_searchFunction",void 0),(0,s._)(r,"_mainHelperSearch",void 0),(0,s._)(r,"_hasSearchWidget",!1),(0,s._)(r,"_hasRecommendWidget",!1),(0,s._)(r,"_insights",void 0),(0,s._)(r,"middleware",[]),(0,s._)(r,"sendEventToInsights",void 0),(0,s._)(r,"status","idle"),(0,s._)(r,"error",void 0),(0,s._)(r,"scheduleSearch",(0,_.v)(function(){r.started&&r.mainHelper.search()})),(0,s._)(r,"scheduleRender",(0,_.v)(function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(null===(e=r.mainHelper)||void 0===e?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")})),(0,s._)(r,"onInternalStateChange",(0,_.v)(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var i=e.indexName,o=void 0===i?"":i,c=e.compositionID,u=e.numberLocale,d=e.initialUiState,h=void 0===d?{}:d,w=e.routing,b=void 0===w?null:w,x=e.insights,P=void 0===x?void 0:x,S=e.searchFunction,C=e.stalledSearchDelay,I=void 0===C?200:C,q=e.searchClient,A=void 0===q?null:q,N=e.insightsClient,D=void 0===N?null:N,F=e.onStateChange,j=void 0===F?null:F,O
vendor: 6,702 bytes, line 1
1=e.future,M=void 0===O?(0,l._)({},E,e.future||{}):O;if(null===A)throw new Error(R("The `searchClient` option is required."));if("function"!=typeof A.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof A.addAlgoliaAgent&&A.addAlgoliaAgent("instantsearch.js (".concat(k.A,")")),D&&"function"!=typeof D)throw new Error(R("The `insightsClient` option should be a function."));if(r.client=A,r.future=M,r.insightsClient=D,r.indexName=o,r.compositionID=c,r.helper=null,r.mainHelper=null,r.mainIndex=(0,g.A)({indexName:r.compositionID||r.indexName}),r.onStateChange=j,r.started=!1,r.templatesConfig={helpers:(0,v.A)({numberLocale:u}),compileOptions:{}},r._stalledSearchDelay=I,r._searchStalledTimer=null,r._createURL=T,r._initialUiState=h,r._initialResults=null,r._insights=P,S&&(r._searchFunction=S),r.sendEventToInsights=y.l,b){var L="boolean"==typeof b?{}:b;L.$$internal=!0,r.use((0,f.C)(L))}if(P){var H="boolean"==typeof P?{}:P;H.$$internal=!0,r.use((0,p.k)(H))}return(0,m.n)()&&r.use((0,m.Y)({$$internal:!0})),r}return(0,o._)(t,e),(0,i._)(t,[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.map(function(t){var r=(0,l._)({$$type:"__unknown__",$$internal:!1,subscribe:y.l,started:y.l,unsubscribe:y.l,onStateChange:y.l},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&a.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=new 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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.use.apply(this,(0,u._)(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw new Error(R("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,b.l)(e)&&!e._isolated}))throw new Error(R("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 new Error(R("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 new Error(R("The `start` method has already been called once."));var t=this.mainHelper||h(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){return e.status="loading",e.scheduleRender(!1),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(y.l)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),a=h(r,n.state.index,n.state);return a.once("search",function(t){var r=t.state;n.overrideStateWithoutTriggeringChangeEvent(r),e._mainHelperSearch()}),a.on("change",function(e){var t=e.state;n.setState(t)}),e._searchFunction(a),t}}if(t.on("error",function(t){var r=t.error;if(!(0,c._)(r,Error)){var n=r;r=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},new Error(n.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!1),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){(0,S.R)(this.client,this._initialResults),(0,P.I)(this.mainHelper,this._initialResults);var n=this.scheduleSearch;this.scheduleSearch=(0,_.v)(y.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=n}:(0,_.v)(function(){e.scheduleSearch=n})()}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((0,p.k)({$$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)||void 0===e||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()})}},{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 new Error(R("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){(0,w._)("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):((0,w._)(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 new Error(R("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(R("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(d)},2615:(e,t,r)=>{"use strict";
vendor: 4,890 bytes, line 1
1function n(){throw new 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})},2619:e=>{"use strict";e.exports=window.wp.hooks},2642:(e,t,r)=>{"use strict";var n=r(7720),a=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,o=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=o?i.slice(0,o.index):i,u=[];if(l){if(!r.plainObjects&&a.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var d=0;r.depth>0&&null!==(o=s.exec(i))&&d<r.depth;){if(d+=1,!r.plainObjects&&a.call(Object.prototype,o[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(o[1])}return o&&u.push("["+i.slice(o.index)+"]"),function(e,t,r,n){for(var a=n?t:c(t,r),i=e.length-1;i>=0;--i){var s,o=e[i];if("[]"===o&&r.parseArrays)s=[].concat(a);else{s=r.plainObjects?Object.create(null):{};var l="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&o!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(s=[])[u]=a:"__proto__"!==l&&(s[l]=a):s={0:a}}a=s}return a}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?m="utf-8":"utf8=%26%2310003%3B"===h[r]&&(m="iso-8859-1"),p=r,r=h.length);for(r=0;r<h.length;++r)if(r!==p){var f,g,v=h[r],y=v.indexOf("]="),w=-1===y?v.indexOf("="):y+1;-1===w?(f=t.decoder(v,s.decoder,m,"key"),g=t.strictNullHandling?null:""):(f=t.decoder(v.slice(0,w),s.decoder,m,"key"),g=n.maybeMap(c(v.slice(w+1),t),function(e){return t.decoder(e,s.decoder,m,"value")})),g&&t.interpretNumericEntities&&"iso-8859-1"===m&&(g=o(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g),a.call(l,f)?l[f]=n.combine(l[f],g):l[f]=g}return l}(e,r):e,d=r.plainObjects?Object.create(null):{},h=Object.keys(u),p=0;p<h.length;++p){var m=h[p],f=l(m,u[m],r,"string"==typeof e);d=n.merge(d,f,r)}return n.compact(d)}},2713:(e,t,r)=>{"use strict";r.r(t),r.d(t,{apiClientVersion:()=>i,recommendClient:()=>s});var n=r(4267),a=r(5375),i="5.49.2";function s(e,t,r){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,...s}){const o=(0,n.PA)(e,t,r),c=(0,n.zf)({hosts:(l=e,[{url:`${l}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${l}.algolia.net`,accept:"write",protocol:"https"}].concat((0,n.k4)([{url:`${l}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${l}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${l}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))),...s,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"Recommend",ver
1sion:i}),baseHeaders:{"content-type":"text/plain",...o.headers(),...s.baseHeaders},baseQueryParameters:{...o.queryParameters(),...s.baseQueryParameters}});var l;return{transporter:c,appId:e,apiKey:t,clearCache:()=>Promise.all([c.requestsCache.clear(),c.responsesCache.clear()]).then(()=>{}),get _ua(){return c.algoliaAgent.value},addAlgoliaAgent(e,t){c.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?c.baseQueryParameters["x-algolia-api-key"]=e:c.baseHeaders["x-algolia-api-key"]=e},batchRecommendRules({indexName:e,model:t,recommendRule:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `batchRecommendRules`.");if(!t)throw new Error("Parameter `model` is required when calling `batchRecommendRules`.");const a={method:"POST",path:"/1/indexes/{indexName}/{model}/recommend/rules/batch".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)),queryParameters:{},headers:{},data:r||{}};return c.request(a,n)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return c.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return c.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return c.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return c.request(a,n)},deleteRecommendRule({indexName:e,model:t,objectID:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteRecommendRule`.");if(!t)throw new Error("Parameter `model` is required when calling `deleteRecommendRule`.");if(!r)throw new Error("Parameter `objectID` is required when calling `deleteRecommendRule`.");const a={method:"DELETE",path:"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return c.request(a,n)},getRecommendRule({indexName:e,model:t,objectID:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `getRecommendRule`.");if(!t)throw new Error("Parameter `model` is required when calling `getRecommendRule`.");if(!r)throw new Error("Parameter `objectID` is required when calling `getRecommendRule`.");const a={method:"GET",path:"/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{objectID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return c.request(a,n)},getRecommendStatus({indexName:e,model:t,taskID:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `getRecommendStatus`.");if(!t)throw new Error("Parameter `model` is required when calling `getRecommendStatus`.");if(!r)throw new Error("Parameter `taskID` is required when calling `getRecommendStatus`.");const a={method:"GET",path:"/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)).replace("{taskID}",encodeURIComponent(r)),queryParameters:{},headers:{}};return c.request(a,n)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return c.request(r,t)},searchRecommendRules({indexName:e,model:t,searchRecommendRulesParams:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `searchRecommendRules`.");if(!t)throw new Error("Parameter `model` is required when calling `searchRecommendRules`.");const a={method:"POST",path:"/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}",encodeURIComponent(e)).replace("{model}",encodeURIComponent(t)),queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0};return c.request(a,n)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...r})}},2733: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}function a(e){return void 0===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,s,o,c,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(a(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;
vendor: 5,960 bytes, line 1
1default:o=Array.prototype.slice.call(arguments,1),i.apply(this,o)}else if(n(i))for(o=Array.prototype.slice.call(arguments,1),s=(l=i.slice()).length,c=0;c<s;c++)l[c].apply(this,o);return!0},t.prototype.addListener=function(e,i){var s;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&&(s=a(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(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 a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},t.prototype.removeListener=function(e,t){var a,i,s,o;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(a=this._events[e]).length,i=-1,a===t||r(a.listener)&&a.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(a)){for(o=s;o-- >0;)if(a[o]===t||a[o].listener&&a[o].listener===t){i=o;break}if(i<0)return this;1===a.length?(a.length=0,delete this._events[e]):a.splice(i,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)}},2735:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var n={highlightPreTag:"<mark>",highlightPostTag:"</mark>"}},2765:(e,t,r)=>{"use strict";r.d(t,{z:()=>a});var n=r(3750);function a(e){return(0,n._)(e,HTMLElement)||Boolean(e)&&e.nodeType>0}},2783:(e,t,r)=>{"use strict";r.d(t,{FU:()=>u,S8:()=>m,ef:()=>f,sn:()=>d});var n=r(467),a=r(595),i=r(561),s=r(1893),o=r(5456),c=r(8454),l=r(1810),u={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},d={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function h(e){return(0,c.i)(e).replace(new RegExp(u.highlightPreTag,"g"),d.highlightPreTag).replace(new RegExp(u.highlightPostTag,"g"),d.highlightPostTag)}function p(e){return(0,l.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return(0,o._)((0,s._)({},t),(0,n._)({},r,p(e[r])))},{}):Array.isArray(e)?e.map(p):(0,o._)((0,s._)({},e),{value:h(e.value)})}function m(e){return void 0===e.__escaped&&((e=e.map(function(e){(0,i._)(e);var t=(0,a._)({},e);return t._highlightResult&&(t._highlightResult=p(t._highlightResult)),t._snippetResult&&(t._snippetResult=p(t._snippetResult)),t})).__escaped=!0),e}function f(e){return e.map(function(e){return(0,o._)((0,s._)({},e),{highlighted:h(e.highlighted)})})}},2788:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=0;function a(e){"recommend"===e.dependsOn&&(e.$$id=n++)}},2863:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(1893),a=r(5456),i=r(4243),s=r(69),o=r(513),c=(0,i.V)({name:"stats",connector:!0}),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.l;return(0,s.t)(e,c()),function(r){return{$$type:"ais.stats",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(){t()},getRenderState:function(e,t){return(0,a._)((0,n._)({},e),{stats:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,n=e.state;return t?{hitsPerPage:t.hitsPerPage,nbHits:t.nbHits,nbSortedHits:t.nbSortedHits,areHitsSorted:void 0!==t.appliedRelevancyStrictness&&t.appliedRelevancyStrictness>0&&t.nbSortedHits!==t.nbHits,nbPages:t.nbPages,page:t.page,processingTimeMS:t.processingTimeMS,query:t.query,widgetParams:r}:{hitsPerPage:n.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:n.page||0,processingTimeMS:-1,query:n.query||"",widgetParams:r}}}}}},2865:(e,t,r)=>{"use strict";function n(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"undefined"==typeof window?t():e({window})}r.d(t,{x:()=>n})},2909: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(/^\\-/,"-")}}},2991:(e,t,r)=>{"use strict";r.d(t,{f:()=>c});var n=r(1893),a=r(8542),i=r(4652),s=r(172),o=r(6911);function c(e){var t=e.classNames,r=void 0===t?{}:t,c=(0,a._)(e,["classNames"]);return(0,s.h)(o.G,(0,n._)({classNames:{root:(0,i.cx)("ais-Highlight",r.root),highlighted:(0,i.cx)("ais-Highlight-highlighted",r.highlighted),nonHighlighted:(0,i.cx)("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:(0,i.cx)("ais-Highlight-separator",r.separator)}},c))}},2993:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(4354),a=r(2735),i=r(8120),s=(0,n.s)("Highlight");function o(e){var t=e.attribute,r=e.highlightedTagName,n=void 0===r?"mark":r,o=e.hit,c=e.cssClasses,l=void 0===c?{}:c,u=((0,i.E)(o._highlightResult,t)||{}).value,d=void 0===u?"":u,h=s({descendantName:"highlighted"})+(l.highlighted?" ".concat(l.highlighted):"");return d.replace(new RegExp(a.s.highlightPreTag,"g"),"<".concat(n,' class="').concat(h,'">')).replace(new RegExp(a.s.highlightPostTag,"g"),"</".concat(n,">"))}},3014:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},3079:(e,t,r)=>{"use strict";r.d(t,{default:()=>p});var n=r(2993),a=r(3266),i=r(5003),s=r(9124),o=r(3597),c=r(7326),l=r(3767),u=r(2464),d=r(7258),h=r(6183),p=function(e){return new u.A(e)};p.version=h.A,p.createInfiniteHitsSessionStorageCache=(0,d.C)(l.A),p.highlight=(0,d.C)(n.A),p.reverseHighlight=(0,d.C)(a.A),p.snippet=(0,d.C)(i.A),p.reverseSnippet=(0,d.C)(s.A),p.insights=o.A,p.getInsightsAnonymousUserToken=c.Ay,Object.defineProperty(p,"widgets",{get:function(){throw new ReferenceError("\"instantsearch.widgets\" are not available from the ES build.\n\nTo import the widgets:\n\nimport { searchBox } from 'instantsearch.js/es/widgets/index.js'")}}),Object.defineProperty(p,"connectors",{get:function(){throw new ReferenceError("\"instantsearch.connectors\" are not available from the ES build.\n\nTo import the connectors:\n\nimport { connectSearchBox } from 'instantsearch.js/es/connectors/index.js'")}}),Object.defineProperty(p,"templates",{get:function(){throw new ReferenceError("\"instantsearch.templates\" are not available from the ES build.\n\nTo import the templates:\n\nimport { carousel } from 'instantsearch.js/es/templates/index.js'")}})},3099:(e,t,r)=>{"use strict";r.d(t,{m:()=>c});var n=r(1893),a=r(8542),i=r(4652),s=r(172),o=r(6911);function c(e){var t=e.classNames,r=void 0===t?{}:t,c=(0,a._)(e,["classNames"]);return(0,s.h)(o.G,(0,n._)({classNames:{root:(0,i.cx)("ais-ReverseSnippet",r.root),highlighted:(0,i.cx)("ais-ReverseSnippet-highlighted",r.highlighted),nonHighlighted:(0,i.cx)("ais-ReverseSnippet-nonHighlighted",r.nonHighlighted),separator:(0,i.cx)("ais-ReverseSnippet-separator",r.separator)}},c))}},3239:(e,t,r)=>{"use strict";
vendor: 15,804 bytes, line 1
1function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{_:()=>n})},3266:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(4354),a=r(405),i=r(2735),s=r(5814),o=r(8120),c=r(6520),l=(0,n.s)("ReverseHighlight");function u(e){var t=e.attribute,r=e.highlightedTagName,n=void 0===r?"mark":r,u=e.hit,d=e.cssClasses,h=void 0===d?{}:d,p=((0,o.E)(u._highlightResult,t)||{}).value,m=void 0===p?"":p,f=l({descendantName:"highlighted"})+(h.highlighted?" ".concat(h.highlighted):"");return(0,a.G)((0,c.Y)((0,s.I)(m))).replace(new RegExp(i.s.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(i.s.highlightPostTag,"g"),"</".concat(n,">"))}},3371:(e,t,r)=>{"use strict";var n=r(9110),a=r(849),i=r(4843),s=r(4728),o=r(317),c=r(1383),l=r(7507),u=r(2208),d=r(4054);function h(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return h(t[r],e)}):e===t}function p(e){var t=e?p._parseNumbers(e):{};void 0===t.userToken||u(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!==p.PARAMETERS.indexOf(e),a=void 0!==t[e];!n&&a&&(r[e]=t[e])})}function m(e){var t=parseFloat(e);return isFinite(t)?t:null}p.PARAMETERS=Object.keys(new p),p._parseNumbers=function(e){if(e instanceof p)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 a=parseFloat(n);isNaN(a)?t[r]=n:isFinite(a)?t[r]=a: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 a=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]=a})}),t.numericRefinements=r}return s(e,t)},p.make=function(e){var t=new p(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},p.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&o(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):o(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:d.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:d.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:d.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:d.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=l(r);if(this.isNumericRefined(e,t,n))return this;var a=s({},this.numericRefinements);return a[e]=s({},a[e]),a[e][t]?(a[e][t]=a[e][t].slice(),a[e][t].push(n)):a[e][t]=[n],this.setQueryParameters({numericRefinements:a})},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){var n=r;return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,a){return a===e&&r.op===t&&h(r.val,l(n))})}):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 o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return c(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,a){var i=r[a],s={};return i=i||{},Object.keys(i).forEach(function(r){var n=i[r]||[],o=[];n.forEach(function(t){e({val:t,op:r},a,"numeric")||o.push(t)}),o.length!==n.length&&(t=!0),s[r]=o}),n[a]=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 new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:d.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:d.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:d.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:d.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:d.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:d.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:d.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:d.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:d.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),a={};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)?a[e]=[]:a[e]=[t.slice(0,t.lastIndexOf(r))]:a[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(a,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements: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)&&d.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&d.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 Boolean(this.numericRefinements[e]);var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var i,s,o=l(r),c=void 0!==(i=this.numericRefinements[e][t],s=o,a(i,function(e){return h(e,s)}));return n&&c},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=i(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 i(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;
1return Object.keys(this).forEach(function(n){var a=r[n];-1===e.indexOf(n)&&void 0!==a&&(t[n]=a)}),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=p.validate(this,e);if(t)throw t;var r=this,n=p._parseNumbers(e),a=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),i=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],a=void 0!==n[t];return r&&!a?c(e,[t]):(a&&(e[t]=n[t]),e)},a);return new this.constructor(i)},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 a(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=p},3380:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(4652),a=r(172),i=r(9126),s={item:function(e){var t=e.cssClasses,r=e.count,s=e.value,o=e.highlighted,c=e.isRefined,l=e.isFromSearch;return(0,a.h)("label",{className:(0,n.cx)(t.label)},(0,a.h)("input",{type:"checkbox",className:(0,n.cx)(t.checkbox),value:s,defaultChecked:c}),(0,a.h)("span",{className:(0,n.cx)(t.labelText),dangerouslySetInnerHTML:l?{__html:o}:void 0},!l&&o),(0,a.h)("span",{className:(0,n.cx)(t.count)},(0,i.Z)(r)))},showMoreText:function(e){return e.isShowingMore?"Show less":"Show more"},searchableNoResults:function(){return"No results"}}},3395:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(4880),a=r(494),i=r(9407),s=r(467),o=r(884),c=r(1893),l=r(5456),u=r(172),d=r(4041),h=r(513),p={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,ignoreCompositionEvents:!1,isSearchStalled:!1,disabled:!1,ariaLabel:"Search",onChange:h.l,onSubmit:h.l,onReset:h.l,refine:h.l,inputProps:{}},m=function(e){function t(){var e;return(0,a._)(this,t),e=(0,n._)(this,t,arguments),(0,s._)(e,"state",{query:e.props.query,focused:!1}),(0,s._)(e,"input",(0,u._3)()),(0,s._)(e,"onInput",function(t){var r,n;null===(r=(n=e.props.inputProps).onInput)||void 0===r||r.call(n,t);var a=e.props,i=a.searchAsYouType,s=a.refine,o=a.onChange,c=t.target.value;e.props.ignoreCompositionEvents&&t.isComposing||(i&&s(c),e.setState({query:c}),o(t))}),(0,s._)(e,"onSubmit",function(t){var r=e.props,n=r.searchAsYouType,a=r.refine,i=r.onSubmit;return t.preventDefault(),t.stopPropagation(),e.input.current&&e.input.current.blur(),n||a(e.state.query),i(t),!1}),(0,s._)(e,"onReset",function(t){var r=e.props,n=r.refine,a=r.onReset;e.input.current&&e.input.current.focus(),n(""),e.setState({query:""}),a(t)}),(0,s._)(e,"onBlur",function(t){var r,n;null===(r=(n=e.props.inputProps).onBlur)||void 0===r||r.call(n,t),e.setState({focused:!1})}),(0,s._)(e,"onFocus",function(t){var r,n;null===(r=(n=e.props.inputProps).onFocus)||void 0===r||r.call(n,t),e.setState({focused:!0})}),(0,s._)(e,"onAiModeClick",function(t){var r,n;t.preventDefault(),null===(r=(n=e.props).onAiModeClick)||void 0===r||r.call(n,e.state.query)}),e}return(0,o._)(t,e),(0,i._)(t,[{key:"resetInput",value:function(){this.setState({query:""})}},{key:"componentWillReceiveProps",value:function(e){this.state.focused||e.query===this.state.query||this.setState({query:e.query})}},{key:"render",value:function(){var e=this.props,t=e.cssClasses,r=e.placeholder,n=e.autofocus,a=e.showSubmit,i=e.showReset,s=e.showLoadingIndicator,o=e.templates,h=e.isSearchStalled,p=e.ariaLabel,m=e.inputProps,f=e.onAiModeClick,g=e.aiModeButtonDisabled;return(0,u.h)("div",{className:t.root},(0,u.h)("form",{action:"",role:"search",className:t.form,noValidate:!0,onSubmit:this.onSubmit,onReset:this.onReset},(0,u.h)("input",(0,l._)((0,c._)({},m),{ref:this.input,value:this.state.query,disabled:this.props.disabled,className:t.input,type:"search",placeholder:r,autoFocus:n,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",maxLength:512,onInput:this.onInput,oncompositionend:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,"aria-label":p})),(0,u.h)(d.A,{templateKey:"submit",rootTagName:"button",rootProps:{className:t.
1submit,type:"submit",title:"Submit the search query",hidden:!a},templates:o,data:{cssClasses:t}}),(0,u.h)(d.A,{templateKey:"reset",rootTagName:"button",rootProps:{className:t.reset,type:"reset",title:"Clear the search query",hidden:!(i&&this.state.query.trim()&&!h)},templates:o,data:{cssClasses:t}}),s&&(0,u.h)(d.A,{templateKey:"loadingIndicator",rootTagName:"span",rootProps:{className:t.loadingIndicator,hidden:!h},templates:o,data:{cssClasses:t}}),f&&(0,u.h)(d.A,{templateKey:"aiMode",rootTagName:"button",rootProps:{className:t.aiModeButton,type:"button",title:"AI Mode",disabled:g,onClick:this.onAiModeClick},templates:o,data:{cssClasses:t}})))}}]),t}(u.uA);(0,s._)(m,"defaultProps",p)},3450:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});const n=":not([inert]):not([inert] *)",a=':not([tabindex^="-"])',i=":not(:disabled)";var s=[`a[href]${n}${a}`,`area[href]${n}${a}`,`input:not([type="hidden"]):not([type="radio"])${n}${a}${i}`,`input[type="radio"]${n}${a}${i}`,`select${n}${a}${i}`,`textarea${n}${a}${i}`,`button${n}${a}${i}`,`details${n} > summary:first-of-type${a}`,`iframe${n}${a}`,`audio[controls]${n}${a}`,`video[controls]${n}${a}`,`[contenteditable]${n}${a}`,`[tabindex]${n}${a}`];function o(e){(e.querySelector("[autofocus]")||e).focus()}function c(e,t){if(t&&d(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let r=l(e.shadowRoot,t);for(;r;){const e=c(r,t);if(e)return e;r=u(r,t)}}else if("slot"===e.localName){const r=e.assignedElements({flatten:!0});t||r.reverse();for(const e of r){const r=c(e,t);if(r)return r}}else{let r=l(e,t);for(;r;){const e=c(r,t);if(e)return e;r=u(r,t)}}return!t&&d(e)?e:null}function l(e,t){return t?e.firstElementChild:e.lastElementChild}function u(e,t){return t?e.nextElementSibling:e.previousElementSibling}const d=e=>!e.shadowRoot?.delegatesFocus&&e.matches(s.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function h(e=document){const t=e.activeElement;return t?t.shadowRoot?h(t.shadowRoot)||document.activeElement:t:null}function p(e,t){return function t(r){if(!r||r===document||r===window)return null;const n=m(r);return n&&(r=n),r.closest(e)||t(r.getRootNode().host)}(t)}function m(e){return e.assignedSlot||(e.parentNode?m(e.parentNode):null)}const f="data-a11y-dialog";class g{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(f)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=h(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():o(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,r){return this.$el.addEventListener(e,t,r),this}off(e,t,r){return this.$el.removeEventListener(e,t,r),this}fire(e,t){const r=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(r),r}handleTriggerClicks(e){const t=e.composedPath()[0],r=p(`[${f}-show="${this.id}"]`,t),n=p(`[${f}-hide="${this.id}"]`,t),a=p(`[${f}-hide]`,t)&&p('[aria-modal="true"]',t)===this.$el;r&&this.show(e),(n||a)&&this.hide(e)}bindKeypress(e){if(p('[aria-modal="true"]',h())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[r,n]=function(e){const t=c(e,!0);return[t,t?c(e,!1)||t:null]}(e);if(!r)return t.preventDefault();const a=h();t.shiftKey&&a===r?(n.focus(),t.preventDefault()):t.shiftKey||a!==n||(r.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=h();p(`[aria-modal="true"], [${f}-ignore-focus-trap]`,e)||o(this.$el)}}function v(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new g(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",v):v())},3453:(e,t,r)=>{"use strict";function n(e){return e!==Object(e)}function a(e,t){if(e===t)return!0;
1if(n(e)||n(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;var r=!0,i=!1,s=void 0;try{for(var o,c=Object.keys(e)[Symbol.iterator]();!(r=(o=c.next()).done);r=!0){var l=o.value;if(!(l in t))return!1;if(!a(e[l],t[l]))return!1}}catch(e){i=!0,s=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw s}}return!0}r.d(t,{n:()=>a})},3552:(e,t,r)=>{"use strict";r.d(t,{DE:()=>o,_z:()=>s});var n=r(2619);const a=/^[a-zA-Z0-9_.-]+$/,i=["refinementList","menu","menuSelect","hierarchicalMenu","numericMenu","ratingMenu","hitsPerPage","sortBy","currentRefinements","breadcrumb"];function s(e,t,r,i=[]){let s=(0,n.applyFilters)(e,t,r);return i.forEach(t=>{t&&a.test(String(t))&&(s=(0,n.applyFilters)(`${e}.${t}`,s,r))}),s}function o({optionsHook:e,itemsHook:t,widgetType:r,options:n,context:a={},extraScopes:o=[]}){const c={...n},l=[r,...o];return t&&i.includes(r)&&!c.transformItems&&(c.transformItems=function(e,t=[],r={}){return(n,a={})=>s(e,n,{...r,results:a.results,renderOptions:a},t)}(t,l,{...a,widgetType:r})),s(e,c,{...a,widgetType:r},l)}},3597:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1642),a=r(879);function i(e,t){return function(e){var t,r=e.method,i=e.payload;if("object"!==(void 0===i?"undefined":(0,n._)(i)))throw new Error("The insights helper expects the payload to be an object.");try{t=(0,a.h)(i)}catch(e){throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:e,payload:t})}},3711:(e,t,r)=>{"use strict";function n(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}r.d(t,{R:()=>n})},3750:(e,t,r)=>{"use strict";function n(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{_:()=>n})},3767:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(3750),a=r(8542),i=r(4978),s=r(2865);function o(e){var t=e||{};return t.page,(0,a._)(t,["page"])}function c(){var e=["ais.infiniteHits",(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).key].filter(Boolean).join(":");return{read:function(t){var r=t.state,a=(0,s.x)(function(e){return e.window.sessionStorage});if(!a)return null;try{var c=JSON.parse(a.getItem(e));return c&&(0,i.n)(c.state,o(r))?c.hits:null}catch(t){if((0,n._)(t,SyntaxError))try{a.removeItem(e)}catch(e){}return null}},write:function(t){var r=t.state,n=t.hits,a=(0,s.x)(function(e){return e.window.sessionStorage});if(a)try{a.setItem(e,JSON.stringify({state:o(r),hits:n}))}catch(e){}}}}},3917: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}},3944:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(172),a={aiMode:function(e){var t=e.cssClasses;return(0,n.h)(n.FK,null,(0,n.h)("svg",{className:t.aiModeIcon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",width:"16",height:"16","aria-hidden":"true"},(0,n.h)("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10 1.875c.27 0 .51.173.594.43l1.593 4.844a1.043 1.043 0 0 0 .664.664l4.844 1.593a.625.625 0 0 1 0 1.188l-4.844 1.593a1.043 1.043 0 0 0-.664.664l-1.593 4.844a.625.625 0 0 1-1.188 0l-1.593-4.844a1.042 1.042 0 0 0-.664-.664l-4.844-1.593a.625.625 0 0 1 0-1.188l4.844-1.593a1.042 1.042 0 0 0 .664-.664l1.593-4.844a.625.625 0 0 1 .594-.43ZM9 7.539A2.292 2.292 0 0 1 7.54 9L4.5 10l3.04 1A2.292 2.292 0 0 1 9 12.46l1 3.04 1-3.04A2.293 2.293 0 0 1 12.46 11l3.04-1-3.04-1A2.292 2.292 0 0 1 11 7.54L10 4.5 9 7.54ZM4.167 1.875c.345 0 .625.28.625.625v3.333a.625.625 0 0 1-1.25 0V2.5c0-.345.28-.625.625-.625ZM15.833 13.542c.345 0 .625.28.625.625V17.5a.625.625 0 1 1-1.25 0v-3.333c0-.345.28-.625.625-.625Z","clip-rule":"evenodd"}),(0,n.h)("path",{fill:"currentColor","fill-rule":"evenodd",d:"M1.875 4.167c0-.346.28-.625.625-.625h3.333a.625.625 0 1 1 0 1.25H2.5a.625.625 0 0 1-.625-.625ZM13.542 15.833c0-.345.28-.625.625-.625H17.5a.625.625 0 0 1 0 1.25h-3.333a.625.625 0 0 1-.625-.625Z","clip-rule":"evenodd"})),(0,n.h)("span",{className:t.aiModeLabel},"AI Mode"))}
1,reset:function(e){var t=e.cssClasses;return(0,n.h)("svg",{className:t.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},(0,n.h)("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"}))},submit:function(e){var t=e.cssClasses;return(0,n.h)("svg",{className:t.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},(0,n.h)("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"}))},loadingIndicator:function(e){var t=e.cssClasses;return(0,n.h)("svg",{"aria-label":"Results are loading",className:t.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},(0,n.h)("g",{fill:"none","fill-rule":"evenodd"},(0,n.h)("g",{transform:"translate(1 1)","stroke-width":"2"},(0,n.h)("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),(0,n.h)("path",{d:"M36 18c0-9.94-8.06-18-18-18"},(0,n.h)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}}},4041:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(4880),a=r(494),i=r(9407),s=r(467),o=r(884),c=r(3750),l=r(1893),u=r(5456),d=r(6337),h=r(1642),p=r(172),m=r(3453),f=r(1607),g=function(e){function t(){var e;return(0,a._)(this,t),e=(0,n._)(this,t,arguments),(0,s._)(e,"ref",(0,p._3)()),(0,s._)(e,"nodes",[]),e}
1return(0,o._)(t,e),(0,i._)(t,[{key:"componentDidMount",value:function(){var e=new DocumentFragment,t=document.createElement("div");t.innerHTML=this.props.content,this.nodes=(0,d._)(t.childNodes),this.nodes.forEach(function(t){return e.appendChild(t)}),this.ref.current.replaceWith(e)}},{key:"componentWillUnmount",value:function(){this.nodes.forEach(function(e){(0,c._)(e,Element)?e.outerHTML="":e.nodeValue=""}),this.nodes[0]&&this.nodes[0].nodeValue&&(this.nodes[0].nodeValue="")}},{key:"render",value:function(){return(0,p.h)("div",{ref:this.ref})}}]),t}(p.uA),v=function(e){function t(){return(0,a._)(this,t),(0,n._)(this,t,arguments)}return(0,o._)(t,e),(0,i._)(t,[{key:"shouldComponentUpdate",value:function(e){return!(0,m.n)(this.props.data,e.data)||this.props.templateKey!==e.templateKey||!(0,m.n)(this.props.rootProps,e.rootProps)}},{key:"render",value:function(){var e="fragment"===this.props.rootTagName?p.FK:this.props.rootTagName,t=this.props.useCustomCompileOptions[this.props.templateKey]?this.props.templatesConfig.compileOptions:{},r=(0,f.X)({templates:this.props.templates,templateKey:this.props.templateKey,compileOptions:t,helpers:this.props.templatesConfig.helpers,data:this.props.data,bindEvent:this.props.bindEvent,sendEvent:this.props.sendEvent});return null===r?null:"object"===(void 0===r?"undefined":(0,h._)(r))?(0,p.h)(e,this.props.rootProps,r):e===p.FK?(0,p.h)(g,{content:r,key:Math.random()}):(0,p.h)(e,(0,u._)((0,l._)({},this.props.rootProps),{dangerouslySetInnerHTML:{__html:r}}))}}]),t}(p.uA);(0,s._)(v,"defaultProps",{data:{},rootTagName:"div",useCustomCompileOptions:{},templates:{},templatesConfig:{}})},4054:(e,t,r)=>{"use strict";var n=r(9110),a=r(317),i=r(1383),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var a=""+r,i=e[t]?e[t].concat(a):[a],o={};return o[t]=i,n(o,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 new 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 a(e)?{}:e;if("string"==typeof t)return i(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce(function(a,i){var s=e[i]||[],o=s.filter(function(e){return!t(e,i,r)});return o.length!==s.length&&(n=!0),a[i]=o,a},{});return n?s:e}},isRefined:function(e,t,r){var n=Boolean(e[t])&&e[t].length>0;if(void 0===r||!n)return n;var a=""+r;return-1!==e[t].indexOf(a)}};e.exports=s},4103:(e,t,r)=>{"use strict";var n=r(6571),a=r(9127),i=r(2223),s=r(3371),o=r(7691);function c(e,t,r,a){return new n(e,t,r,a)}c.version=r(6938),c.AlgoliaSearchHelper=n,c.SearchParameters=s,c.RecommendParameters=a,c.SearchResults=o,c.RecommendResults=i,e.exports=c},4176:(e,t,r)=>{"use strict";function n(e){return e.filter(function(e,t,r){return r.indexOf(e)===t})}r.d(t,{s:()=>n})},4182:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(2765);function a(e){var t="string"==typeof e,r=t?document.querySelector(e):e;if(!(0,n.z)(r)){var a="Container must be `string` or `HTMLElement`.";throw t&&(a+=" Unable to find ".concat(e)),new Error(a)}return r}},4208:(e,t,r)=>{"use strict";r.d(t,{fY:()=>f,mh:()=>m});var n=!1;if("undefined"!=typeof window){var a={get passive(){n=!0}};window.addEventListener("testPassive",null,a),window.removeEventListener("testPassive",null,a)}var i="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),s=[],o=!1,c=-1,l=void 0,u=void 0,d=void 0,h=function(e){return s.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},p=function(e){var t=e||window.event;return!!h(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},m=function(e,t){if(e){if(!s.some(function(t){return t.targetElement===e})){var r={targetElement:e,options:t||{}};s=[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(s),[r]),i?window.requestAnimationFrame(function(){if(void 0===u){u={position:document.body.style.position,top:document.body.style.top,left
1:document.body.style.left};var e=window,t=e.scrollY,r=e.scrollX,n=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-r,setTimeout(function(){return window.requestAnimationFrame(function(){var e=n-window.innerHeight;e&&t>=n&&(document.body.style.top=-(t+e))})},300)}}):function(e){if(void 0===d){var t=!!e&&!0===e.reserveScrollBarGap,r=window.innerWidth-document.documentElement.clientWidth;if(t&&r>0){var n=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);d=document.body.style.paddingRight,document.body.style.paddingRight=n+r+"px"}}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")}(t),i&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(c=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var r=e.targetTouches[0].clientY-c;!h(e.target)&&(t&&0===t.scrollTop&&r>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&r<0?p(e):e.stopPropagation())}(t,e)},o||(document.addEventListener("touchmove",p,n?{passive:!1}:void 0),o=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},f=function(e){e?(s=s.filter(function(t){return t.targetElement!==e}),i&&(e.ontouchstart=null,e.ontouchmove=null,o&&0===s.length&&(document.removeEventListener("touchmove",p,n?{passive:!1}:void 0),o=!1)),i?function(){if(void 0!==u){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=u.position,document.body.style.top=u.top,document.body.style.left=u.left,window.scrollTo(t,e),u=void 0}}():(void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}},4243:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){return["https://www.algolia.com/doc/api-reference/widgets/",(t=e).name,"/js/",void 0!==(r=t.connector)&&r?"#connector":""].join("");var t,r}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}r.d(t,{V:()=>n})},4267:(e,t,r)=>{"use strict";function n(e){let t;const r=`algolia-client-js-${e.key}`;function n(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(n().getItem(r)||"{}")}function i(e){n().setItem(r,JSON.stringify(e))}return{get:(t,r,n={miss:()=>Promise.resolve()})=>Promise.resolve().then(()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=a(),n=Object.fromEntries(Object.entries(r).filter(([,e])=>void 0!==e.timestamp));i(n),t&&i(Object.fromEntries(Object.entries(n).filter(([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)})))}(),a()[JSON.stringify(t)])).then(e=>Promise.all([e?e.value:r(),void 0!==e])).then(([e,t])=>Promise.all([e,t||n.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve().then(()=>{const i=a();return i[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},n().setItem(r,JSON.stringify(i)),t}),delete:e=>Promise.resolve().then(()=>{const t=a();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{n().removeItem(r)})}}function a(e){const t=[...e.caches],r=t.shift();return void 0===r?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,r.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,n,i={miss:()=>Promise.resolve()})=>r.get(e,n,i).catch(()=>a({caches:t}).get(e,n,i)),set:(e,n)=>r.set(e,n).catch(()=>a({caches:t}).set(e,n)),delete:e=>r.delete(e).catch(()=>a({caches:t}).delete(e)),clear:()=>r.clear().catch(()=>a({caches:t}).clear())}}function i(e={serializable:!0}){let t={};return{get(r,n,a={miss:()=>Promise.resolve()}){const i=JSON.stringify(r);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);const s=n();return s.then(e=>a.miss(e)).then(()=>s)},set:(r,n)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function s(e,t,r="WithinHeaders"){const n={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?n:{},queryParameters:()=>"WithinQueryParameters"===r?n:{}}}function o({func:e,validate:t,aggregator:r,error:n,timeout:a=()=>0}){const i=s=>new Promise((o,c)=>{e(s).then(async e=>(r&&await r(e),await t(e)?o(e):n&&await n.validate(e)?c(new Error(await n.message(e))):setTimeout(()=>{i(e).then(o).catch(c)},await a()))).catch(e=>{c(e)})});return i()}
1function c({algoliaAgents:e,client:t,version:r}){const n=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach(e=>n.add(e)),n}function l(){return{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>Promise.resolve()}}r.d(t,{F1:()=>c,PA:()=>s,hD:()=>f,jY:()=>n,k4:()=>y,of:()=>i,oh:()=>l,uU:()=>o,v2:()=>a,zf:()=>_});var u=12e4;function d(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>u},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=u}}}var h=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},p=class extends h{stackTrace;constructor(e,t,r){super(e,r),this.stackTrace=t}},m=class extends p{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",e,"RetryError")}},f=class extends p{status;constructor(e,t,r,n="ApiError"){super(e,r,n),this.status=t}},g=class extends h{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},v=class extends f{error;constructor(e,t,r,n){super(e,t,n,"DetailedApiError"),this.error=r}};function y(e){const t=e;for(let r=e.length-1;r>0;r--){const n=Math.floor(Math.random()*(r+1)),a=e[r];t[r]=e[n],t[n]=a}return t}function w(e,t,r){const n=(a=r,Object.keys(a).filter(e=>void 0!==a[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replace(/\+/g,"%20")}`).join("&"));var a;let i=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return n.length&&(i+=`?${n}`),i}function b(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function _({hosts:e,hostsCache:t,baseHeaders:r,logger:n,baseQueryParameters:a,algoliaAgent:i,timeouts:s,requester:o,requestsCache:c,responsesCache:l}){return{hostsCache:t,requester:o,timeouts:s,logger:n,algoliaAgent:i,baseHeaders:r,baseQueryParameters:a,hosts:e,request:function(u,h={}){const p=()=>async function(c,l,u){const h=[],p=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,l),y=function(e,t,r){const n={Accept:"application/json",...e,...t,...r},a={};return Object.keys(n).forEach(e=>{const t=n[e];a[e.toLowerCase()]=t}),a}(r,c.headers,l.headers),_="GET"===c.method?{...c.data,...l.data}:{},x={...a,...c.queryParameters,..._};if(i.value&&(x["x-algolia-agent"]=i.value),l&&l.queryParameters)for(const e of Object.keys(l.queryParameters))l.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(l.queryParameters[e])?x[e]=l.queryParameters[e].toString():x[e]=l.queryParameters[e];let P=0;const S=async(e,r)=>{const a=e.pop();if(void 0===a)throw new m(function(e){return e.map(e=>b(e))}(h));const i={...s,...l.timeouts},_={data:p,headers:y,method:c.method,url:w(a,c.path,x),connectTimeout:r(P,i.connect),responseTimeout:r(P,u?i.read:i.write)},k=t=>{const r={request:_,response:t,host:a,triesLeft:e.length};return h.push(r),r},R=await o.send(_);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0===~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(R)){const i=k(R);return R.isTimedOut&&P++,n.info("Retryable failure",b(i)),await t.set(a,d(a,R.isTimedOut?"timed out":"down")),S(e,r)}if(function({status:e}){return 2==~~(e/100)}(R))return function(e){try{return JSON.parse(e.content)}catch(t){throw new g(t.message,e)}}(R);throw k(R),function({content:e,status:t},r){try{const n=JSON.parse(e);return"error"in n?new v(n.message,t,n.error,r):new f(n.message,t,r)}catch{}return new f(e,t,r)}(R,h)},k=e.filter(e=>"readWrite"===e.accept||(u?"read"===e.accept:"write"===e.accept)),R=await async function(e){const r=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(d(e))))),n=r.filter(e=>e.isUp()),a=r.filter(e=>e.isTimedOut()),i=[...n,...a];return{hosts:i.length>0?i:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(k);return S([...R.hosts].reverse(),R.getTimeout)}(u,h,y),y=u.useReadTransporter||"GET"===u.method;if(!0!==(h.cacheable||u.cacheable))return p();const _={request:u,requestOptions:h,transporter:{queryParameters:a,headers:r}};return l.get(_,()=>c.get(_,()=>c.set(_,p()).then(e=>Promise.all([c.delete(_),e]),e=>Promise.all([c.delete(_),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>l.set(_,e)})},requestsCache:c,responsesCache:l}}},4351:(e,t,r)=>{"use strict";var n=r(2733);function a(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}
1r(3014)(a,n),a.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},a.prototype.getModifiedState=function(e){return this.fn(e)},a.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=a},4354:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var n=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName,a=r?"-".concat(r):"",i=n?"--".concat(n):"";return"".concat("ais","-").concat(e).concat(a).concat(i)}}},4582:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(1893),a=r(5456);function i(e,t){return t?e.map(function(e){return(0,a._)((0,n._)({},e),{__queryID:t})}):e}},4629:(e,t,r)=>{"use strict";function n(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},t("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.875c.27 0 .51.173.594.43l1.593 4.844a1.043 1.043 0 0 0 .664.664l4.844 1.593a.625.625 0 0 1 0 1.188l-4.844 1.593a1.043 1.043 0 0 0-.664.664l-1.593 4.844a.625.625 0 0 1-1.188 0l-1.593-4.844a1.042 1.042 0 0 0-.664-.664l-4.844-1.593a.625.625 0 0 1 0-1.188l4.844-1.593a1.042 1.042 0 0 0 .664-.664l1.593-4.844a.625.625 0 0 1 .594-.43ZM9 7.539A2.292 2.292 0 0 1 7.54 9L4.5 10l3.04 1A2.292 2.292 0 0 1 9 12.46l1 3.04 1-3.04A2.293 2.293 0 0 1 12.46 11l3.04-1-3.04-1A2.292 2.292 0 0 1 11 7.54L10 4.5 9 7.54ZM4.167 1.875c.345 0 .625.28.625.625v3.333a.625.625 0 0 1-1.25 0V2.5c0-.345.28-.625.625-.625ZM15.833 13.542c.345 0 .625.28.625.625V17.5a.625.625 0 1 1-1.25 0v-3.333c0-.345.28-.625.625-.625Z",clipRule:"evenodd"}),t("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.875 4.167c0-.346.28-.625.625-.625h3.333a.625.625 0 1 1 0 1.25H2.5a.625.625 0 0 1-.625-.625ZM13.542 15.833c0-.345.28-.625.625-.625H17.5a.625.625 0 0 1 0 1.25h-3.333a.625.625 0 0 1-.625-.625Z",clipRule:"evenodd"}))}function a(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"m5 12 7-7 7 7"}),t("path",{d:"M12 19V5"}))}function i(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"M5 12h14"}),t("path",{d:"m12 5 7 7-7 7"}))}function s(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"m18 15-6-6-6 6"}))}function o(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"m6 9 6 6 6-6"}))}function c(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"M18 6 6 18"}),t("path",{d:"m6 6 12 12"}))}function l(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"M15 3h6v6"}),t("path",{d:"m21 3-7 7"}),t("path",{d:"m3 21 7-7"}),t("path",{d:"M9 21H3v-6"}))}function u(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"m14 10 7-7"}),t("path",{d:"M20 10h-6V4"}),t("path",{d:"m3 21 7-7"}),t("path",{d:"M4 14h6v6"}))}function d(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("circle",{cx:"12",cy:"12",r:"10"}),t("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1"}))}function h(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),t("path",{d:"M21 3v5h-5"}),t("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),t("path",{d:"M3 21v-5h5"}))}function p(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),t("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}))}function m(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}
1,t("circle",{cx:"12",cy:"12",r:"1"}),t("circle",{cx:"12",cy:"5",r:"1"}),t("circle",{cx:"12",cy:"19",r:"1"}))}function f(e){var t=e.createElement;return t("svg",{viewBox:"12 12 24 24",role:"status","aria-busy":"true","aria-live":"polite"},t("title",null,"Loading spinner"),t("circle",{cx:"24",cy:"24",r:"11",fill:"none",stroke:"currentColor"}))}function g(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"M21.801 10A10 10 0 1 1 17 3.335"}),t("path",{d:"m9 11 3 3L22 4"}))}function v(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}),t("path",{d:"M7 10v12"}))}function y(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}),t("path",{d:"M17 14V2"}))}function w(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"m15 18-6-6 6-6"}))}function b(e){var t=e.createElement;return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},t("path",{d:"m9 18 6-6-6-6"}))}r.d(t,{BZ:()=>n,D3:()=>o,Ge:()=>v,Kp:()=>a,Mt:()=>s,Sr:()=>g,Td:()=>p,US:()=>c,VO:()=>f,YJ:()=>w,ZB:()=>m,_X:()=>l,d2:()=>y,fl:()=>i,gR:()=>u,jf:()=>h,vK:()=>
1b,wF:()=>d})},4652:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new 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})},4685:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(5118);function a(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(n.l).forEach(function(t){return a(e,t)})}},4714:(e,t,r)=>{var n=r(6729);n.Template=r(9549).Template,n.template=n.Template,e.exports=n},4728:e=>{"use strict";function t(e){return"object"==typeof e&&null!==e?n(Array.isArray(e)?[]:{},e):e}function r(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function n(e,a){if(e===a)return e;for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&"__proto__"!==i&&"constructor"!==i){var s=a[i],o=e[i];void 0!==o&&void 0===s||(r(o)&&r(s)?e[i]=n(o,s):e[i]=t(s))}return e}e.exports=function(e){r(e)||(e={});for(var t=1,a=arguments.length;t<a;t++){var i=arguments[t];r(i)&&n(e,i)}return e}},4765:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},4843:e=>{"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},4880:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(3239),a=r(6732),i=r(9029);function s(e,t,r){return t=(0,n._)(t),(0,i._)(e,(0,a._)()?Reflect.construct(t,r||[],(0,n._)(e).constructor):t.apply(e,r))}},4978:(e,t,r)=>{"use strict";function n(e){return e!==Object(e)}function a(e,t){if(e===t)return!0;if(n(e)||n(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;var r=!0,i=!1,s=void 0;try{for(var o,c=Object.keys(e)[Symbol.iterator]();!(r=(o=c.next()).done);r=!0){var l=o.value;if(!(l in t))return!1;if(!a(e[l],t[l]))return!1}}catch(e){i=!0,s=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw s}}return!0}r.d(t,{n:()=>a})},5003:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(4354),a=r(2735),i=r(8120),s=(0,n.s)("Snippet");function o(e){var t=e.attribute,r=e.highlightedTagName,n=void 0===r?"mark":r,o=e.hit,c=e.cssClasses,l=void 0===c?{}:c,u=((0,i.E)(o._snippetResult,t)||{}).value,d=void 0===u?"":u,h=s({descendantName:"highlighted"})+(l.highlighted?" ".concat(l.highlighted):"");return d.replace(new RegExp(a.s.highlightPreTag,"g"),"<".concat(n,' class="').concat(h,'">')).replace(new RegExp(a.s.highlightPostTag,"g"),"</".concat(n,">"))}},5035:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(633),a=r(4652),i=r(172),s=r(5994),o=r(4041);function c(e){var t=(0,n._)((0,s.J0)(e.isCollapsed),2),r=t[0],c=t[1],l=(0,n._)((0,s.J0)(!1),2),u=l[0],d=l[1],h=(0,s.li)(null);return(0,s.vJ)(function(){var t=h.current;if(t)return t.appendChild(e.bodyElement),function(){t.removeChild(e.bodyElement)}},[h,e.bodyElement]),u||e.isCollapsed===r||c(e.isCollapsed),(0,i.h)("div",{className:(0,a.cx)(e.cssClasses.root,e.hidden&&e.cssClasses.noRefinementRoot,e.collapsible&&e.cssClasses.collapsibleRoot,r&&e.cssClasses.collapsedRoot),hidden:e.hidden},e.templates.header&&(0,i.h)("div",{className:e.cssClasses.header},(0,i.h)(o.A,{templates:e.templates,templateKey:"header",rootTagName:"span",data:e.data}),e.collapsible&&(0,i.h)("button",{className:e.cssClasses.collapseButton,"aria-expanded":!r,onClick:function(e){e.preventDefault(),d(!0),c(function(e){return!e})}},(0,i.h)(o.A,{templates:e.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:r}}))),(0,i.h)("div",{className:e.cssClasses.body,ref:h}),e.templates.footer&&(0,i.h)(o.A,{templates:e.templates,templateKey:"footer",rootProps:{className:e.cssClasses.footer},data:e.data}))}},5101:(e,t,r)=>{"use strict";r.r(t),r.d(t,{apiClientVersion:()=>i,searchClient:()=>s});var n=r(4267),a=r(5375),i="5.49.2";function s(e,t,r){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,...s}){const o=(0,n.PA)(e,t,r),c=(0,n.zf)({hosts:(l=e,[{url:`${l}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${l}.algolia.net`,accept:"write",protocol:"https"}].concat((0,n.k4)([{url:`${l}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${l}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${l}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))),...s,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"Search",version:i}),baseHeaders:{"content-type":"text/plain",...o.headers(),...s.baseHeaders},baseQueryParameters:{...o.queryParameters(),...s.baseQueryParameters}});var l;return{transporter:c,appId:e,apiKey:t,clearCache:()=>Promise.all([c.requestsCache.clear(),c.responsesCache.clear()]).then(()=>{}),get _ua(){return c.algoliaAgent.value},addAlgoliaAgent(e,t){c.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?c.baseQueryParameters["x-algolia-api-key"]=e:c.baseHeaders["x-algolia-api-key"]=e},waitForTask({indexName:e,taskID:t,maxRetries:r=50,timeout:a=e=>Math.min(200*e,5e3)},i){let s=0;return(0,n.uU)({func:()=>this.getTask({indexName:e,taskID:t},i),validate:e=>"published"===e.status,aggregator:()=>s+=1,error:{validate:()=>s>=r,message:()=>`The maximum number of retries exceeded. (${s}/${r})`},timeout:()=>a(s)})},waitForAppTask({taskID:e,maxRetries:t=50,timeout:r=e=>Math.min(200*e,5e3)},a){let i=0;return(0,n.uU)({func:()=>this.getAppTask({taskID:e},a),validate:e=>"published"===e.status,aggregator:()=>i+=1,error:{validate:()=>i>=t,message:()=>`The maximum number of retries exceeded. (${i}/${t})`},timeout:()=>r(i)})},waitForApiKey({operation:e,key:t,apiKey:r,maxRetries:a=50,timeout:i=e=>Math.min(200*e,5e3)},s){let o=0;const c={aggregator:()=>o+=1,error:{validate:()=>
1o>=a,message:()=>`The maximum number of retries exceeded. (${o}/${a})`},timeout:()=>i(o)};if("update"===e){if(!r)throw new Error("`apiKey` is required when waiting for an `update` operation.");return(0,n.uU)({...c,func:()=>this.getApiKey({key:t},s),validate:e=>{for(const t of Object.keys(r)){const n=r[t],a=e[t];if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length||n.some((e,t)=>e!==a[t]))return!1}else if(n!==a)return!1}return!0}})}return(0,n.uU)({...c,func:()=>this.getApiKey({key:t},s).catch(e=>{if(404!==e.status)throw e}),validate:t=>"add"===e?void 0!==t:void 0===t})},browseObjects({indexName:e,browseParams:t,...r},a){return(0,n.uU)({func:r=>this.browse({indexName:e,browseParams:{cursor:r?r.cursor:void 0,hitsPerPage:1e3,...t}},a),validate:e=>void 0===e.cursor,...r})},browseRules({indexName:e,searchRulesParams:t,...r},a){const i={...t,hitsPerPage:t?.hitsPerPage||1e3};return(0,n.uU)({func:t=>this.searchRules({indexName:e,searchRulesParams:{...i,page:t?t.page+1:i.page||0}},a),validate:e=>e.hits.length<i.hitsPerPage,...r})},browseSynonyms({indexName:e,searchSynonymsParams:t,...r},a){const i={...t,page:t?.page||0,hitsPerPage:1e3};return(0,n.uU)({func:t=>{const r=this.searchSynonyms({indexName:e,searchSynonymsParams:{...i,page:i.page}},a);return i.page+=1,r},validate:e=>e.hits.length<i.hitsPerPage,...r})},async chunkedBatch({indexName:e,objects:t,action:r="addObject",waitForTasks:n,batchSize:a=1e3},i){let s=[];const o=[],c=t.entries();for(const[n,l]of c)s.push({action:r,body:l}),s.length!==a&&n!==t.length-1||(o.push(await this.batch({indexName:e,batchWriteParams:{requests:s}},i)),s=[]);if(n)for(const t of o)await this.waitForTask({indexName:e,taskID:t.taskID});return o},async saveObjects({indexName:e,objects:t,waitForTasks:r,batchSize:n},a){return await this.chunkedBatch({indexName:e,objects:t,action:"addObject",waitForTasks:r,batchSize:n},a)},async deleteObjects({indexName:e,objectIDs:t,waitForTasks:r,batchSize:n},a){return await this.chunkedBatch({indexName:e,objects:t.map(e=>({objectID:e})),action:"deleteObject",waitForTasks:r,batchSize:n},a)},async partialUpdateObjects({indexName:e,objects:t,createIfNotExists:r,waitForTasks:n,batchSize:a},i){return await this.chunkedBatch({indexName:e,objects:t,action:r?"partialUpdateObject":"partialUpdateObjectNoCreate",batchSize:a,waitForTasks:n},i)},async replaceAllObjects({indexName:e,objects:t,batchSize:r,scopes:n},a){const i=`${e}_tmp_${Math.floor(1e6*Math.random())+1e5}`;void 0===n&&(n=["settings","rules","synonyms"]);try{let s=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:i,scope:n}},a);const o=await this.chunkedBatch({indexName:i,objects:t,waitForTasks:!0,batchSize:r},a);await this.waitForTask({indexName:i,taskID:s.taskID}),s=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:i,scope:n}},a),await this.waitForTask({indexName:i,taskID:s.taskID});const c=await this.operationIndex({indexName:i,operationIndexParams:{operation:"move",destination:e}},a);return await this.waitForTask({indexName:i,taskID:c.taskID}),{copyOperationResponse:s,batchResponses:o,moveOperationResponse:c}}catch(e){throw await this.deleteIndex({indexName:i}),e}},async indexExists({indexName:e}
1){try{await this.getSettings({indexName:e})}catch(e){if(e instanceof n.hD&&404===e.status)return!1;throw e}return!0},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},addApiKey(e,t){if(!e)throw new Error("Parameter `apiKey` is required when calling `addApiKey`.");if(!e.acl)throw new Error("Parameter `apiKey.acl` is required when calling `addApiKey`.");const r={method:"POST",path:"/1/keys",queryParameters:{},headers:{},data:e};return c.request(r,t)},addOrUpdateObject({indexName:e,objectID:t,body:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `addOrUpdateObject`.");if(!t)throw new Error("Parameter `objectID` is required when calling `addOrUpdateObject`.");if(!r)throw new Error("Parameter `body` is required when calling `addOrUpdateObject`.");const a={method:"PUT",path:"/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),queryParameters:{},headers:{},data:r};return c.request(a,n)},appendSource(e,t){if(!e)throw new Error("Parameter `source` is required when calling `appendSource`.");if(!e.source)throw new Error("Parameter `source.source` is required when calling `appendSource`.");const r={method:"POST",path:"/1/security/sources/append",queryParameters:{},headers:{},data:e};return c.request(r,t)},assignUserId({xAlgoliaUserID:e,assignUserIdParams:t},r){if(!e)throw new Error("Parameter `xAlgoliaUserID` is required when calling `assignUserId`.");if(!t)throw new Error("Parameter `assignUserIdParams` is required when calling `assignUserId`.");if(!t.cluster)throw new Error("Parameter `assignUserIdParams.cluster` is required when calling `assignUserId`.");const n={};void 0!==e&&(n["X-Algolia-User-ID"]=e.toString());const a={method:"POST",path:"/1/clusters/mapping",queryParameters:{},headers:n,data:t};return c.request(a,r)},batch({indexName:e,batchWriteParams:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `batch`.");if(!t)throw new Error("Parameter `batchWriteParams` is required when calling `batch`.");if(!t.requests)throw new Error("Parameter `batchWriteParams.requests` is required when calling `batch`.");const n={method:"POST",path:"/1/indexes/{indexName}/batch".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return c.request(n,r)},batchAssignUserIds({xAlgoliaUserID:e,batchAssignUserIdsParams:t},r){if(!e)throw new Error("Parameter `xAlgoliaUserID` is required when calling `batchAssignUserIds`.");if(!t)throw new Error("Parameter `batchAssignUserIdsParams` is required when calling `batchAssignUserIds`.");if(!t.cluster)throw new Error("Parameter `batchAssignUserIdsParams.cluster` is required when calling `batchAssignUserIds`.");if(!t.users)throw new Error("Parameter `batchAssignUserIdsParams.users` is required when calling `batchAssignUserIds`.");const n={};void 0!==e&&(n["X-Algolia-User-ID"]=e.toString());const a={method:"POST",path:"/1/clusters/mapping/batch",queryParameters:{},headers:n,data:t};return c.request(a,r)},batchDictionaryEntries({dictionaryName:e,batchDictionaryEntriesParams:t},r){if(!e)throw new Error("Parameter `dictionaryName` is required when calling `batchDictionaryEntries`.");if(!t)throw new Error("Parameter `batchDictionaryEntriesParams` is required when calling `batchDictionaryEntries`.");if(!t.requests)throw new Error("Parameter `batchDictionaryEntriesParams.requests` is required when calling `batchDictionaryEntries`.");const n={method:"POST",path:"/1/dictionaries/{dictionaryName}/batch".replace("{dictionaryName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return c.request(n,r)},browse({indexName:e,browseParams:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `browse`.");const n={method:"POST",path:"/1/indexes/{indexName}/browse".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{},useReadTransporter:!0};return c.request(n,r)},clearObjects({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `clearObjects`.");const r={method:"POST",path:"/1/indexes/{indexName}/clear".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},clearRules({indexName:e,forwardToReplicas:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `clearRules`.");const n="/1/indexes/{indexName}/rules/clear".replace("{indexName}",encodeURIComponent(e)),a={};void 0!==t&&(a.forwardToReplicas=t.toString());const i={method:"POST",path:n,queryParameters:a,headers:{}};return c.request(i,r)},clearSynonyms({indexName:e,forwardToReplicas:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `clearSynonyms`.");const n="/1/indexes/{indexName}/synonyms/clear".replace("{indexName}",encodeURIComponent(e)),a={};void 0!==t&&(a.forwardToReplicas=t.toString());const i={method:"POST",path:n,queryParameters:a,headers:{}};return c.request(i,r)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return c.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return c.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return c.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return c.request(a,n)},deleteApiKey({key:e},t){if(!e)throw new Error("Parameter `key` is required when calling `deleteApiKey`.");const r={method:"DELETE",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},deleteBy({indexName:e,deleteByParams:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteBy`.");if(!t)throw new Error("Parameter `deleteByParams` is required when calling `deleteBy`.");const n={method:"POST",path:"/1/indexes/{indexName}/deleteByQuery".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return c.request(n,r)},deleteIndex({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteIndex`.");const r={method:"DELETE",path:"/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},deleteObject({indexName:e,objectID:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteObject`.");if(!t)throw new Error("Parameter `objectID` is required when calling `deleteObject`.");const n={method:"DELETE",path:"/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return c.request(n,r)},deleteRule({indexName:e,objectID:t,forwardToReplicas:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteRule`.");if(!t)throw new Error("Parameter `objectID` is required when calling `deleteRule`.");const a="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),i={};void 0!==r&&(i.forwardToReplicas=r.toString());const s={method:"DELETE",path:a,queryParameters:i,headers:{}};return c.request(s,n)},deleteSource({source:e},t){if(!e)throw new Error("Parameter `source` is required when calling `deleteSource`.");const r={method:"DELETE",path:"/1/security/sources/{source}".replace("{source}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},deleteSynonym({indexName:e,objectID:t,forwardToReplicas:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteSynonym`.");if(!t)throw new Error("Parameter `objectID` is required when calling `deleteSynonym`.");const a="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),i={};void 0!==r&&(i.forwardToReplicas=r.toString());const s={method:"DELETE",path:a,queryParameters:i,headers:{}};return c.request(s,n)},getApiKey({key:e},t){if(!e)throw new Error("Parameter `key` is required when calling `getApiKey`.");const r={method:"GET",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},getAppTask({taskID:e},t){if(!e)throw new Error("Parameter `taskID` is required when calling `getAppTask`.");const r={method:"GET",path:"/1/task/{taskID}".replace("{taskID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},getDictionaryLanguages:e=>c.request({method:"GET",path:"/1/dictionaries/*/languages",queryParameters:{},headers:{}},e),getDictionarySettings:e=>c.request({method:"GET",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{}},e),getLogs({offset:e,length:t,indexName:r,type:n}={},a=void 0){const i={};void 0!==e&&(i.offset=e.toString()),void 0!==t&&(i.length=t.toString()),void 0!==r&&(i.indexName=r.toString()),void 0!==n&&(i.type=n.toString());const s={method:"GET",path:"/1/logs",queryParameters:i,headers:{}};return c.request(s,a)},getObject({indexName:e,objectID:t,attributesToRetrieve:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `getObject`.");if(!t)throw new Error("Parameter `objectID` is required when calling `getObject`.");const a="/1/indexes/{indexName}/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),i={};void 0!==r&&(i.attributesToRetrieve=r.toString());const s={method:"GET",path:a,queryParameters:i,headers:{}};return c.request(s,n)},getObjects(e,t){if(!e)throw new Error("Parameter `getObjectsParams` is required when calling `getObjects`.");if(!e.requests)throw new Error("Parameter `getObjectsParams.requests` is required when calling `getObjects`.");const r={method:"POST",path:"/1/indexes/*/objects",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return c.request(r,t)},getRule({indexName:e,objectID:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getRule`.");if(!t)throw new Error("Parameter `objectID` is required when calling `getRule`.");const n={method:"GET",path:"/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return c.request(n,r)},getSettings({indexName:e,getVersion:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getSettings`.");const n="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),a={};void 0!==t&&(a.getVersion=t.toString());const i={method:"GET",path:n,queryParameters:a,headers:{}};return c.request(i,r)},getSources:e=>c.request({method:"GET",path:"/1/security/sources",queryParameters:{},headers:{}},e),getSynonym({indexName:e,objectID:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getSynonym`.");if(!t)throw new Error("Parameter `objectID` is required when calling `getSynonym`.");const n={method:"GET",path:"/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return c.request(n,r)},getTask({indexName:e,taskID:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `getTask`.");if(!t)throw new Error("Parameter `taskID` is required when calling `getTask`.");const n={method:"GET",path:"/1/indexes/{indexName}/task/{taskID}".replace("{indexName}",encodeURIComponent(e)).replace("{taskID}",encodeURIComponent(t)),queryParameters:{},headers:{}};return c.request(n,r)},getTopUserIds:e=>c.request({method:"GET",path:"/1/clusters/mapping/top",queryParameters:{},headers:{}},e),getUserId({userID:e},t){if(!e)throw new Error("Parameter `userID` is required when calling `getUserId`.");const r={method:"GET",path:"/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},hasPendingMappings({getClusters:e}={},t=void 0){const r={};void 0!==e&&(r.getClusters=e.toString());const n={method:"GET",path:"/1/clusters/mapping/pending",queryParameters:r,headers:{}};return c.request(n,t)},listApiKeys:e=>c.request({method:"GET",path:"/1/keys",queryParameters:{},headers:{}}
1,e),listClusters:e=>c.request({method:"GET",path:"/1/clusters",queryParameters:{},headers:{}},e),listIndices({page:e,hitsPerPage:t}={},r=void 0){const n={};void 0!==e&&(n.page=e.toString()),void 0!==t&&(n.hitsPerPage=t.toString());const a={method:"GET",path:"/1/indexes",queryParameters:n,headers:{}};return c.request(a,r)},listUserIds({page:e,hitsPerPage:t}={},r=void 0){const n={};void 0!==e&&(n.page=e.toString()),void 0!==t&&(n.hitsPerPage=t.toString());const a={method:"GET",path:"/1/clusters/mapping",queryParameters:n,headers:{}};return c.request(a,r)},multipleBatch(e,t){if(!e)throw new Error("Parameter `batchParams` is required when calling `multipleBatch`.");if(!e.requests)throw new Error("Parameter `batchParams.requests` is required when calling `multipleBatch`.");const r={method:"POST",path:"/1/indexes/*/batch",queryParameters:{},headers:{},data:e};return c.request(r,t)},operationIndex({indexName:e,operationIndexParams:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `operationIndex`.");if(!t)throw new Error("Parameter `operationIndexParams` is required when calling `operationIndex`.");if(!t.operation)throw new Error("Parameter `operationIndexParams.operation` is required when calling `operationIndex`.");if(!t.destination)throw new Error("Parameter `operationIndexParams.destination` is required when calling `operationIndex`.");const n={method:"POST",path:"/1/indexes/{indexName}/operation".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return c.request(n,r)},partialUpdateObject({indexName:e,objectID:t,attributesToUpdate:r,createIfNotExists:n},a){if(!e)throw new Error("Parameter `indexName` is required when calling `partialUpdateObject`.");if(!t)throw new Error("Parameter `objectID` is required when calling `partialUpdateObject`.");if(!r)throw new Error("Parameter `attributesToUpdate` is required when calling `partialUpdateObject`.");const i="/1/indexes/{indexName}/{objectID}/partial".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};void 0!==n&&(s.createIfNotExists=n.toString());const o={method:"POST",path:i,queryParameters:s,headers:{},data:r};return c.request(o,a)},removeUserId({userID:e},t){if(!e)throw new Error("Parameter `userID` is required when calling `removeUserId`.");const r={method:"DELETE",path:"/1/clusters/mapping/{userID}".replace("{userID}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},replaceSources({source:e},t){if(!e)throw new Error("Parameter `source` is required when calling `replaceSources`.");const r={method:"PUT",path:"/1/security/sources",queryParameters:{},headers:{},data:e};return c.request(r,t)},restoreApiKey({key:e},t){if(!e)throw new Error("Parameter `key` is required when calling `restoreApiKey`.");const r={method:"POST",path:"/1/keys/{key}/restore".replace("{key}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},saveObject({indexName:e,body:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `saveObject`.");if(!t)throw new Error("Parameter `body` is required when calling `saveObject`.");const n={method:"POST",path:"/1/indexes/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return c.request(n,r)},saveRule({indexName:e,objectID:t,rule:r,forwardToReplicas:n},a){if(!e)throw new Error("Parameter `indexName` is required when calling `saveRule`.");if(!t)throw new Error("Parameter `objectID` is required when calling `saveRule`.");if(!r)throw new Error("Parameter `rule` is required when calling `saveRule`.");if(!r.objectID)throw new Error("Parameter `rule.objectID` is required when calling `saveRule`.");if(!r.consequence)throw new Error("Parameter `rule.consequence` is required when calling `saveRule`.");const i="/1/indexes/{indexName}/rules/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};void 0!==n&&(s.forwardToReplicas=n.toString());const o={method:"PUT",path:i,queryParameters:s,headers:{},data:r};return c.request(o,a)},saveRules({indexName:e,rules:t,forwardToReplicas:r,clearExistingRules:n},a){if(!e)throw new Error("Parameter `indexName` is required when calling `saveRules`.");if(!t)throw new Error("Parameter `rules` is required when calling `saveRules`.");const i="/1/indexes/{indexName}/rules/batch".replace("{indexName}",encodeURIComponent(e)),s={};void 0!==r&&(s.forwardToReplicas=r.toString()),void 0!==n&&(s.clearExistingRules=n.toString());const o={method:"POST",path:i,queryParameters:s,headers:{},data:t};return c.request(o,a)},saveSynonym({indexName:e,objectID:t,synonymHit:r,forwardToReplicas:n},a){if(!e)throw new Error("Parameter `indexName` is required when calling `saveSynonym`.");if(!t)throw new Error("Parameter `objectID` is required when calling `saveSynonym`.");if(!r)throw new Error("Parameter `synonymHit` is required when calling `saveSynonym`.");if(!r.objectID)throw new Error("Parameter `synonymHit.objectID` is required when calling `saveSynonym`.");if(!r.type)throw new Error("Parameter `synonymHit.type` is required when calling `saveSynonym`.");const i="/1/indexes/{indexName}/synonyms/{objectID}".replace("{indexName}",encodeURIComponent(e)).replace("{objectID}",encodeURIComponent(t)),s={};void 0!==n&&(s.forwardToReplicas=n.toString());const o={method:"PUT",path:i,queryParameters:s,headers:{},data:r};return c.request(o,a)},saveSynonyms({indexName:e,synonymHit:t,forwardToReplicas:r,replaceExistingSynonyms:n},a){if(!e)throw new Error("Parameter `indexName` is required when calling `saveSynonyms`.");if(!t)throw new Error("Parameter `synonymHit` is required when calling `saveSynonyms`.");const i="/1/indexes/{indexName}/synonyms/batch".replace("{indexName}",encodeURIComponent(e)),s={};void 0!==r&&(s.forwardToReplicas=r.toString()),void 0!==n&&(s.replaceExistingSynonyms=n.toString());const o={method:"POST",path:i,queryParameters:s,headers:{},data:t};return c.request(o,a)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return c.request(r,t)},searchDictionaryEntries({dictionaryName:e,searchDictionaryEntriesParams:t},r){if(!e)throw new Error("Parameter `dictionaryName` is required when calling `searchDictionaryEntries`.");if(!t)throw new Error("Parameter `searchDictionaryEntriesParams` is required when calling `searchDictionaryEntries`.");if(!t.query)throw new Error("Parameter `searchDictionaryEntriesParams.query` is required when calling `searchDictionaryEntries`.");const n={method:"POST",path:"/1/dictionaries/{dictionaryName}/search".replace("{dictionaryName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t,useReadTransporter:!0,cacheable:!0};return c.request(n,r)},searchForFacetValues({indexName:e,facetName:t,searchForFacetValuesRequest:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `searchForFacetValues`.");if(!t)throw new Error("Parameter `facetName` is required when calling `searchForFacetValues`.");const a={method:"POST",path:"/1/indexes/{indexName}/facets/{facetName}/query".replace("{indexName}",encodeURIComponent(e)).replace("{facetName}",encodeURIComponent(t)),queryParameters:{},headers:{},data:r||{},useReadTransporter:!0,cacheable:!0};return c.request(a,n)},searchRules({indexName:e,searchRulesParams:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `searchRules`.");const n={method:"POST",path:"/1/indexes/{indexName}/rules/search".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0};return c.request(n,r)},searchSingleIndex({indexName:e,searchParams:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `searchSingleIndex`.");const n={method:"POST",path:"/1/indexes/{indexName}/query".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0};return c.request(n,r)},searchSynonyms({indexName:e,searchSynonymsParams:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `searchSynonyms`.");const n={method:"POST",path:"/1/indexes/{indexName}/synonyms/search".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t||{},useReadTransporter:!0,cacheable:!0};return c.request(n,r)},searchUserIds(e,t){if(!e)throw new Error("Parameter `searchUserIdsParams` is required when calling `searchUserIds`.");if(!e.query)throw new Error("Parameter `searchUserIdsParams.query` is required when calling `searchUserIds`.");const r={method:"POST",path:"/1/clusters/mapping/search",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return c.request(r,t)},setDictionarySettings(e,t){if(!e)throw new Error("Parameter `dictionarySettingsParams` is required when calling `setDictionarySettings`.");if(!e.disableStandardEntries)throw new Error("Parameter `dictionarySettingsParams.disableStandardEntries` is required when calling `setDictionarySettings`.");const r={method:"PUT",path:"/1/dictionaries/*/settings",queryParameters:{},headers:{},data:e};return c.request(r,t)},setSettings({indexName:e,indexSettings:t,forwardToReplicas:r},n){if(!e)throw new Error("Parameter `indexName` is required when calling `setSettings`.");if(!t)throw new Error("Parameter `indexSettings` is required when calling `setSettings`.");const a="/1/indexes/{indexName}/settings".replace("{indexName}",encodeURIComponent(e)),i={};void 0!==r&&(i.forwardToReplicas=r.toString());const s={method:"PUT",path:a,queryParameters:i,headers:{},data:t};return c.request(s,n)},updateApiKey({key:e,apiKey:t},r){if(!e)throw new Error("Parameter `key` is required when calling `updateApiKey`.");if(!t)throw new Error("Parameter `apiKey` is required when calling `updateApiKey`.");if(!t.acl)throw new Error("Parameter `apiKey.acl` is required when calling `updateApiKey`.");const n={method:"PUT",path:"/1/keys/{key}".replace("{key}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return c.request(n,r)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...r})}},5118:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(6745);function a(e){return n.y.includes(e.$$type)}},5134:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(7835);function a(e,t){if(e){if("string"==typeof e)return(0,n._)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n._)(e,t):void 0}}},5150:(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})},5183:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});
1var n=r(1893),a=r(5456),i=r(8542),s=r(4652),o=r(172),c=r(4041),l=function(e){var t=e.nbHits,r=e.nbSortedHits,l=e.cssClasses,u=e.templateProps,d=(0,i._)(e,["nbHits","nbSortedHits","cssClasses","templateProps"]);return(0,o.h)("div",{className:(0,s.cx)(l.root)},(0,o.h)(c.A,(0,a._)((0,n._)({},u),{templateKey:"text",rootTagName:"span",rootProps:{className:l.text},data:(0,n._)({hasManySortedResults:r&&r>1,hasNoSortedResults:0===r,hasOneSortedResults:1===r,hasManyResults:t>1,hasNoResults:0===t,hasOneResult:1===t,nbHits:t,nbSortedHits:r,cssClasses:l},d)})))}},5222:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(1893),a=r(5456),i=r(4243),s=r(69),o=r(513),c=(0,i.V)({name:"search-box",connector:!0}),l=function(e,t){return t(e)},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.l;return(0,s.t)(e,c()),function(r){var i,s,o=(r||{}).queryHook,c=void 0===o?l:o;return{$$type:"ais.searchBox",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 r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return(0,a._)((0,n._)({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,n=e.instantSearchInstance,a=e.state;return i||(i=function(e){c(e,function(e){return t.setQuery(e).search()})},s=function(){t.setQuery("").search()}),{query:a.query||"",refine:i,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,a._)((0,n._)({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}}},5289:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var n=r(1893),a=r(5456),i=r(4652),s=r(172),o=r(793);function c(e,t,r){for(var n=e;n&&!r(n);){if(n===t)return null;n=n.parentElement}return n}var l=r(4041),u=function(e){var t=e.banner,r=e.classNames;return t.image.urls[0].url?(0,s.h)("aside",{className:(0,i.cx)(r.bannerRoot)},t.link?(0,s.h)("a",{className:(0,i.cx)(r.bannerLink),href:t.link.url,target:t.link.target},(0,s.h)("img",{className:(0,i.cx)(r.bannerImage),src:t.image.urls[0].url,alt:t.image.t
vendor: 7,782 bytes, line 1
1itle})):(0,s.h)("img",{className:(0,i.cx)(r.bannerImage),src:t.image.urls[0].url,alt:t.image.title})):null},d=function(e){var t=e.results,r=e.hits,d=e.insights,h=e.bindEvent,p=e.sendEvent,m=e.hasShowPrevious,f=e.showPrevious,g=e.showMore,v=e.isFirstPage,y=e.isLastPage,w=e.cssClasses,b=e.templateProps,_=e.banner,x=function(e){var t=e.insights,r=e.sendEvent;return function(e){var n=c(e.target,e.currentTarget,function(e){return e.hasAttribute("data-insights-event")});n&&function(e){var t=e.getAttribute("data-insights-event");if("string"!=typeof t)throw new Error("The insights middleware expects `data-insights-event` to be a base64-encoded JSON string.");try{return(0,o.u)(t)}catch(e){throw new Error("The insights middleware was unable to parse `data-insights-event`.")}}(n).forEach(function(e){return r(e)});var a=c(e.target,e.currentTarget,function(e){return e.hasAttribute("data-insights-method")&&e.hasAttribute("data-insights-payload")});if(a){var i=function(e){var t=e.getAttribute("data-insights-method"),r=e.getAttribute("data-insights-payload");if("string"!=typeof r)throw new Error("The insights helper expects `data-insights-payload` to be a base64-encoded JSON string.");try{return{method:t,payload:(0,o.u)(r)}}catch(e){throw new Error("The insights helper was unable to parse `data-insights-payload`.")}}(a),s=i.method,l=i.payload;t(s,l)}}}({insights:d,sendEvent:p});return 0===t.hits.length?(0,s.h)("div",{className:(0,i.cx)(w.root,w.emptyRoot),onClick:x},_&&(b.templates.banner?(0,s.h)(l.A,(0,a._)((0,n._)({},b),{templateKey:"banner",rootTagName:"fragment",data:{banner:_,className:w.bannerRoot}})):(0,s.h)(u,{banner:_,classNames:w})),(0,s.h)(l.A,(0,a._)((0,n._)({},b),{templateKey:"empty",rootTagName:"fragment",data:t}))):(0,s.h)("div",{className:w.root},m&&(0,s.h)(l.A,(0,a._)((0,n._)({},b),{templateKey:"showPreviousText",rootTagName:"button",rootProps:{className:(0,i.cx)(w.loadPrevious,v&&w.disabledLoadPrevious),disabled:v,onClick:f}})),_&&(b.templates.banner?(0,s.h)(l.A,(0,a._)((0,n._)({},b),{templateKey:"banner",rootTagName:"fragment",data:{banner:_,className:w.bannerRoot}})):(0,s.h)(u,{banner:_,classNames:w})),(0,s.h)("ol",{className:w.list},r.map(function(e,t){return(0,s.h)(l.A,(0,a._)((0,n._)({},b),{templateKey:"item",rootTagName:"li",rootProps:{className:w.item,onClick:function(t){x(t),p("click:internal",e,"Hit Clicked")},onAuxClick:function(t){x(t),p("click:internal",e,"Hit Clicked")}},key:e.objectID,data:(0,a._)((0,n._)({},e),{get __hitIndex(){return t}}),bindEvent:h,sendEvent:p}))})),(0,s.h)(l.A,(0,a._)((0,n._)({},b),{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:(0,i.cx)(w.loadMore,y&&w.disabledLoadMore),disabled:y,onClick:g}})))},h=r(467),p=r(8542),m=r(6337);function f(e){return"ais.dynamicWidgets"===e.$$type||"ais.feeds"===e.$$type}var g=r(4243),v=r(69),y=r(1230),w=r(2783),b=r(6845),_=r(4582),x=r(5930),P=r(513),S=r(3453),k=(0,g.V)({name:"infinite-hits",connector:!0});function R(e){var t=e||{};return t.page,(0,p._)(t,["page"])}function T(e){var t=e||{};return t.clickAnalytics,t.userToken,(0,p._)(t,["clickAnalytics","userToken"])}var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.l;return(0,v.t)(e,k()),function(r){var i,s,o,c,l,u,d=r||{},p=d.escapeHTML,g=void 0===p||p,v=d.transformItems,P=void 0===v?function(e){return e}:v,k=d.cache,E=void 0===k?(i=null,s=null,{read:function(e){var t=e.state;return(0,S.n)(s,R(t))?i:null},write:function(e){var t=e.state,r=e.hits;s=R(t),i=r}}):k,C=function(e,t){var r,n=e.page,a=void 0===n?0:n,i=Object.keys(t).map(Number);return 0===i.length?a:(r=Math).min.apply(r,[a].concat((0,m._)(i)))},I=function(e,t){var r,n=e.page,a=void 0===n?0:n,i=Object.keys(t).map(Number);return 0===i.length?a:(r=Math).max.apply(r,[a].concat((0,m._)(i)))};return{$$type:"ais.infiniteHits",init:function(t){e((0,a._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=t.instantSearchInstance,i=this.getWidgetRenderState(t);e((0,a._)((0,n._)({},i),{instantSearchInstance:r}),!1),l("view:internal",i.currentPageHits)},getRenderState:function(e,t){return(0,a._)((0,n._)({},e),{infiniteHits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,i,s,d,h=e.results,p=e.helper,m=e.parent,v=e.state,S=e.instantSearchInstance,k=function(){var e=m.getPreviousState()||v;return E.read({state:T(e)})||{}},R=[],q=m.getPreviousState()||v,A=k(),N=null==h||null===(s=h.renderingContent)||void 0===s||null===(i=s.widgets)||void 0===i||null===(t=i.banners)||void 0===t?void 0:t[0];if(o||(o=function(){return function(e,t){return function(){var r=t();e.overrideStateWithoutTriggeringChangeEvent((0,a._)((0,n._)({},e.state),{page:C(e.state,r)-1})).searchWithoutTriggeringOnStateChange()}}(p,k)()},c=function(){return function(e,t){return function(){var r=t();e.setPage(I(e.state,r)+1).search()}}(p,k)()}),l||(l=(0,y.U0)({instantSearchInstance:S,helper:p,widgetType:this.$$type}),u=(0,y.Zp)({helper:p,widgetType:this.$$type,instantSearchInstance:S})),h){var D,F,j=q.page,O=void 0===j?0:j;g&&h.hits.length>0&&(h.hits=(0,w.S8)(h.hits));var M=(0,b.g)(h.hits,h.page,h.hitsPerPage),L=(0,_.P)(M,h.queryID),H=P(L,{results:h}),$=!1;(0,x.Q)(S.mainIndex,function(e){!$&&e.getWidgets().some(f)&&($=!0)});var U=!(null===(D=q.disjunctiveFacets)||void 0===D?void 0:D.length)&&!(q.facets||[]).filter(function(e){return"*"!==e}).length&&!(null===(F=q.hierarchicalFacets)||void 0===F?void 0:F.length);void 0!==A[O]||h.__isArtificial||"idle"!==S.status||$&&U||(A[O]=H,E.write({state:T(q),hits:A})),R=H,d=0===C(q,A)}else d=void 0===q.page||0===C(q,A);var B=function(e){return Object.keys(e).map(Number).sort(function(e,t){return e-t}).reduce(function(t,r){return t.concat(e[r])},[])}(A),W=!h||h.nbPages<=I(q,A)+1;return{hits:B,items:B,currentPageHits:R,sendEvent:l,bindEvent:u,banner:N,results:h||void 0,showPrevious:o,showMore:c,isFirstPage:d,isLastPage:W,widgetParams:r}},dispose:function(e){var r=e.state;t();var i=r.setQueryParameter("page",void 0);return g?i.setQueryParameters(Object.keys(w.FU).reduce(function(e,t){return(0,a._)((0,n._)({},e),(0,h._)({},t,void 0))},{})):i},getWidgetUiState:function(e,t){var r=t.searchParameters.page||0;return r?(0,a._)((0,n._)({},e),{page:r+1}):e},getWidgetSearchParameters:function(e,t){var r=t.uiState,n=e;g&&(n=e.setQueryParameters(w.FU));var a=r.page?r.page-1:0;return n.setQueryParameter("page",a)}}}},C=r(9734),I={empty:function(){return"No results"},showPreviousText:function(){return"Show previous results"},showMoreText:function(){return"Show more results"},item:function(e){return(0,s.h)(s.FK,null,JSON.stringify((r=["__hitIndex"],null==(t=e)?t:Object.keys(t).reduce(function(e,n){if(r.indexOf(n)>=0)return e;var a=n;return e[a]=t[a],e},{})),null,2));var t,r}},q=r(633),A=r(7438),N=r(4176);function D(e){return function(t,r){return e(function(e,r){var i=e.results,s=e.hits,o=e.instantSearchInstance;if(i&&s&&o){var c=function(e,t,r){return function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];var c=(0,q._)(s,1)[0];if(!e){var l=(0,g.V)({name:"instantsearch"});throw new Error(l("The `insightsClient` option has not been provided to `instantsearch`."))}if(!Array.isArray(c.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var u=function(e){var t=e.method,r=e.results,n=e.hits,a=e.objectIDs,i=r.index,s=function(e,t){return t.map(function(t){var r=(0,A.I)(e,function(e){return e.objectID===t});if(void 0===r)throw new Error('Could not find objectID "'.concat(t,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return r})}(n,a),o=function(e){var t=(0,N.s)(e.map(function(e){return e.__queryID}));if(t.length>
11)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var r=t[0];if("string"!=typeof r)throw new Error("Could not infer `queryID`. Ensure InstantSearch `clickAnalytics: true` was added with the Configure widget.\n\nSee: https://alg.li/lNiZZ7");return r}(s);switch(t){case"clickedObjectIDsAfterSearch":var c=function(e){return e.map(function(e){return e.__position})}(s);return{index:i,queryID:o,objectIDs:a,positions:c};case"convertedObjectIDsAfterSearch":return{index:i,queryID:o,objectIDs:a};default:throw new Error('Unsupported method passed to insights: "'.concat(t,'".'))}}({method:a,results:t,hits:r,objectIDs:c.objectIDs});e(a,(0,n._)({},u,c))}}(o.insightsClient,i,s);return t((0,a._)((0,n._)({},e),{insights:c}),r)}return t(e,r)},r)}}var F=r(4182),j=r(9072),O=(0,g.V)({name:"infinite-hits"}),M=(0,C.s)("InfiniteHits"),L=function(e){var t=e||{},r=t.container,o=t.escapeHTML,c=t.transformItems,l=t.templates,u=void 0===l?{}:l,h=t.cssClasses,p=void 0===h?{}:h,m=t.showPrevious,f=t.cache;if(!r)throw new Error(O("The `container` option is required."));var g=(0,F.e)(r),v={root:(0,i.cx)(M(),p.root),emptyRoot:(0,i.cx)(M({modifierName:"empty"}),p.emptyRoot),item:(0,i.cx)(M({descendantName:"item"}),p.item),list:(0,i.cx)(M({descendantName:"list"}),p.list),loadPrevious:(0,i.cx)(M({descendantName:"loadPrevious"}),p.loadPrevious),disabledLoadPrevious:(0,i.cx)(M({descendantName:"loadPrevious",modifierName:"disabled"}),p.disabledLoadPrevious),loadMore:(0,i.cx)(M({descendantName:"loadMore"}),p.loadMore),disabledLoadMore:(0,i.cx)(M({descendantName:"loadMore",modifierName:"disabled"}),p.disabledLoadMore),bannerRoot:(0,i.cx)(M({descendantName:"banner"}),p.bannerRoot),bannerImage:(0,i.cx)(M({descendantName:"banner-image"}),p.bannerImage),bannerLink:(0,i.cx)(M({descendantName:"banner-link"}),p.bannerLink)},y=function(e){var t=e.containerNode,r=e.cssClasses,n=e.renderState,a=e.templates,i=e.showPrevious;return function(e,o){var c=e.items,l=e.results,u=e.showMore,h=e.showPrevious,p=e.isFirstPage,m=e.isLastPage,f=e.instantSearchInstance,g=e.insights,v=e.bindEvent,y=e.sendEvent,w=e.banner;o?n.templateProps=(0,j.C)({defaultTemplates:I,templatesConfig:f.templatesConfig,templates:a}):(0,s.XX)((0,s.h)(d,{cssClasses:r,hits:c,results:l,hasShowPrevious:i,showPrevious:h,showMore:u,templateProps:n.templateProps,isFirstPage:p,isLastPage:m,insights:g,sendEvent:y,bindEvent:v,banner:w}),t)}}({containerNode:g,cssClasses:v,templates:u,showPrevious:m,renderState:{}}),w=D(E)(y,function(){return(0,s.XX)(null,g)});return(0,a._)((0,n._)({},w({escapeHTML:o,transformItems:c,showPrevious:m,cache:f})),{$$widgetType:"ais.infiniteHits"})}},5373:(e,t,r)=>{"use strict";var n=r(8636),a=r(2642),i=r(4765);e.exports={formats:i,parse:a,stringify:n}},5375:(e,t,r)=>{"use strict";function n(){return{send:function(e){return new Promise(t=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>r.setRequestHeader(t,e.headers[t]));let n,a=(e,n)=>setTimeout(()=>{r.abort(),t({status:0,content:n,isTimedOut:!0})},e),i=a(e.connectTimeout,"Connection timeout");r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===n&&(clearTimeout(i),n=a(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(i),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(i),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}}}r.d(t,{D:()=>n})},5429:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(1893),a=r(5456),i=r(4652),s=r(172),o=r(5183),c=r(2863),l=r(9126),u=r(9734),d=r(4243),h=r(4182),p=r(9072),m=(0,d.V)({name:"stats"}),f=(0,u.s)("Stats"),g={text:function(e){return"".concat(e.areHitsSorted?(t=e,r=t.nbHits,n=t.hasNoSortedResults,a=t.hasOneSortedResults,i=t.hasManySortedResults,s=t.nbSortedHits,o="sorted out of ".concat((0,l.Z)(r)),n?"No relevant results ".concat(o):a?"1 relevant result ".concat(o):i?"".concat((0,l.Z)(s||0)," relevant results ").concat(o):""):function(e){var t=e.nbHits,r=e.hasNoResults,n=e.hasOneResult,a=e.hasManyResults;return r?"No results":n?"1 result":a?"".concat((0,l.Z)(t)," results"):""}(e)," found in ").concat(e.processingTimeMS,"ms");var t,r,n,a,i,s,o}},v=function(e){var t=e||{}
1,r=t.container,l=t.cssClasses,u=void 0===l?{}:l,d=t.templates,v=void 0===d?{}:d;if(!r)throw new Error(m("The `container` option is required."));var y=(0,h.e)(r),w={root:(0,i.cx)(f(),u.root),text:(0,i.cx)(f({descendantName:"text"}),u.text)},b=function(e){var t=e.renderState,r=e.cssClasses,n=e.containerNode,a=e.templates;return function(e,i){var c=e.hitsPerPage,l=e.nbHits,u=e.nbSortedHits,d=e.areHitsSorted,h=e.nbPages,m=e.page,f=e.processingTimeMS,v=e.query,y=e.instantSearchInstance;i?t.templateProps=(0,p.C)({defaultTemplates:g,templatesConfig:y.templatesConfig,templates:a}):(0,s.XX)((0,s.h)(o.A,{cssClasses:r,hitsPerPage:c,nbHits:l,nbSortedHits:u,areHitsSorted:d,nbPages:h,page:m,processingTimeMS:f,query:v,templateProps:t.templateProps}),n)}}({containerNode:y,cssClasses:w,templates:v,renderState:{}}),_=(0,c.A)(b,function(){return(0,s.XX)(null,y)});return(0,a._)((0,n._)({},_({})),{$$widgetType:"ais.stats"})}},5450:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r(1893),a=r(8542),i=r(4652);function s(e){var t=e.createElement;return function(e){var r=e.variant,s=void 0===r?"primary":r,o=e.size,c=void 0===o?"md":o,l=e.iconOnly,u=void 0!==l&&l,d=e.className,h=e.children,p=(0,a._)(e,["variant","size","iconOnly","className","children"]);return t("button",(0,n._)({type:"button",className:(0,i.cx)("ais-Button","ais-Button--".concat(s),"ais-Button--".concat(c),u&&"ais-Button--icon-only",d)},p),h)}}},5456:(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})},5620:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(1893),a=r(8542),i=r(7373),s=r(205),o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r=function(e,t){return e.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)})}(e,t),o=function(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=(0,i.S)(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},e.hierarchicalFacets)})}(r,t),c=function(e,t){return t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},e)}(o,t),l=function(e,t){return e.setQueryParameters({numericRefinements:(0,n._)({},e.numericRefinements,t.numericRefinements)})}(c,t),u=function(e,t){return e.setQueryParameters({disjunctiveFacetsRefinements:(0,n._)({},e.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)})}(l,t),d=function(e,t){return e.setQueryParameters({facetsExcludes:(0,n._)({},e.facetsExcludes,t.facetsExcludes)})}(u,t),h=function(e,t){return e.setQueryParameters({facetsRefinements:(0,n._)({},e.facetsRefinements,t.facetsRefinements)})}(d,t),p=function(e,t){return t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},e)}(h,t),m=function(e,t){var r=(0,s.s)([].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean));return r.length>0?e.setQueryParameters({ruleContexts:r}):e}(p,t),f=function(e,t){return t.facets.reduce(function(e,t){return e.addFacet(t)},e)}(m,t);return 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,a._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)}(f,t)})}},5697:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(494),a=r(9407),i=r(467),s=r(5373),o=r(2865),c=function(e){e&&(window.document.title=e)},l=function(){function e(t){var r=this,a=t.windowTitle,s=t.writeDelay,l=void 0===s?400:s,u=t.createURL,d=t.parseURL,h=t.getLocation,p=t.start,m=t.dispose,f=t.push,g=t.cleanUrlOnDispose;(0,n._)(this,e),(0,i._)(this,"$$type","ais.browser"),(0,i._)(this,"windowTitle",void 0),(0,i._)(this,"writeDelay",void 0),(0,i._)(this,"_createURL",void 0),(0,i._)(this,"parseURL",void 0),(0,i._)(this,"getLocation",void 0),(0,i._)(this,"writeTimer",void 0),(0,i._)(this,"_onPopState",void 0),(0,i._)(this,"inPopState",!1),(0,i._)(this,"isDisposed",!1),(0,i._)(this,"latestAcknowledgedHistory",0),(0,i._)(this,"_start",void 0),(0,i._)(this,"_dispose",void 0),(0,i._)(this,"_push",void 0),(0,i._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=a,this.writeTimer=void 0,this.writeDelay=l,this._createURL=u,this.parseURL=d,this.getLocation=h,this._start=p,this._dispose=m,this._push=f,this._cleanUrlOnDispose=void 0===g||g,(0,o.x)(function(e){var t=e.window,n=r.windowTitle&&r.windowTitle(r.read());c(n),r.latestAcknowledgedHistory=t.history.length})}return(0,a._)(e,[{key:"read",value:function(){return this.parseURL({qsModule:s,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;(0,o.x)(function(r){var n=r.window,a=t.createURL(e),i=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){c(i),t.shouldWrite(
1a)&&(t._push?t._push(a):n.history.pushState(e,i||"",a),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,o.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,o.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,o.x)(function(r){var n=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var a=!(t.isDisposed&&t.latestAcknowledgedHistory!==n.history.length);return!t.inPopState&&a&&e!==n.location.href})}}]),e}();function u(){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,a=n.protocol,i=n.hostname,s=n.port,o=void 0===s?"":s,c=n.pathname,l=n.hash,u=t.stringify(r),d=""===o?"":":".concat(o);return u?"".concat(a,"//").concat(i).concat(d).concat(c,"?").concat(u).concat(l):"".concat(a,"//").concat(i).concat(d).concat(c).concat(l)}:t,n=e.parseURL,a=void 0===n?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:n,i=e.writeDelay,s=void 0===i?400:i,c=e.windowTitle,u=e.getLocation,d=void 0===u?function(){return(0,o.x)(function(e){return e.window.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:u,h=e.start,p=e.dispose,m=e.push,f=e.cleanUrlOnDispose;return new l({createURL:r,parseURL:a,writeDelay:s,windowTitle:c,getLocation:d,start:h,dispose:p,push:m,cleanUrlOnDispose:f})}},5814:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(2735);function a(e){var t=n.s.highlightPostTag,r=n.s.highlightPreTag,a=e.split(r),i=a.shift(),s=i?[{value:i,isHighlighted:!1}]:[];return a.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}},5930:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=["ais.index","ais.feedContainer"];function a(e,t){t(e),e.getWidgets().forEach(function(e){(function(e){return n.includes(e.$$type)})(e)&&a(e,t)})}},5940:(e,t,r)=>{"use strict";r.d(t,{w:()=>x});var n=r(1882),a=r(7408),i=r(605),s=r(1384),o=r(9965),c=r(353),l=r(5101),u=r(770),d=r(8078),h=r(2713),p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,v=(e,t)=>{for(var r in t)p(e,r,{get:t[r],enumerable:!0})},y=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of f(t))g.call(e,a)||a===r||p(e,a,{get:()=>t[a],enumerable:!(n=m(t,a))||n.enumerable});return e},w=(e,t,r)=>(y(e,t,"default"),r&&y(r,t,"default")),b={};v(b,{algoliasearch:()=>x,apiClientVersion:()=>l.apiClientVersion});var _={};function x(e,t,r){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");const p=(0,l.searchClient)(e,t,r);let m;if(r?.transformation){if(!r.transformation.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");m=(0,u.ingestionClient)(e,t,r.transformation.region,r)}return{...p,async saveObjectsWithTransformation({indexName:e,objects:t,waitForTasks:n},a){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!r?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");return m.chunkedPush({indexName:e,objects:t,action:"addObject",waitForTasks:n},a)},async partialUpdateObjectsWithTransformation({indexName:e,objects:t,createIfNotExists:n,waitForTasks:a},i){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!r?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");return m.chunkedPush({indexName:e,objects:t,action:n?"partialUpdateObject":"partialUpdateObjectNoCreate",waitForTasks:a},i)}
1,async replaceAllObjectsWithTransformation({indexName:e,objects:t,batchSize:n,scopes:a},i){if(!m)throw new Error("`transformation.region` must be provided at client instantiation before calling this method.");if(!r?.transformation?.region)throw new Error("`region` must be provided when leveraging the transformation pipeline");const s=`${e}_tmp_${Math.floor(1e6*Math.random())+1e5}`;void 0===a&&(a=["settings","rules","synonyms"]);try{let r=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:s,scope:a}},i);const o=await m.chunkedPush({indexName:s,objects:t,waitForTasks:!0,batchSize:n,referenceIndexName:e},i);await this.waitForTask({indexName:s,taskID:r.taskID}),r=await this.operationIndex({indexName:e,operationIndexParams:{operation:"copy",destination:s,scope:a}},i),await this.waitForTask({indexName:s,taskID:r.taskID});const c=await this.operationIndex({indexName:s,operationIndexParams:{operation:"move",destination:e}},i);return await this.waitForTask({indexName:s,taskID:c.taskID}),{copyOperationResponse:r,watchResponses:o,moveOperationResponse:c}}catch(e){throw await this.deleteIndex({indexName:s}),e}},get _ua(){return p.transporter.algoliaAgent.value},initAbtesting:r=>(0,a.abtestingClient)(r.appId||e,r.apiKey||t,r.region,r.options),initAbtestingV3:r=>(0,n.abtestingV3Client)(r.appId||e,r.apiKey||t,r.region,r.options),initAnalytics:r=>(0,i.analyticsClient)(r.appId||e,r.apiKey||t,r.region,r.options),initIngestion:r=>(0,u.ingestionClient)(r.appId||e,r.apiKey||t,r.region,r.options),initInsights:r=>(0,s.insightsClient)(r.appId||e,r.apiKey||t,r.region,r.options),initMonitoring:(r={})=>(0,d.monitoringClient)(r.appId||e,r.apiKey||t,r.options),initPersonalization:r=>(0,o.personalizationClient)(r.appId||e,r.apiKey||t,r.region,r.options),initQuerySuggestions:r=>(0,c.querySuggestionsClient)(r.appId||e,r.apiKey||t,r.region,r.options),initRecommend:(r={})=>(0,h.recommendClient)(r.appId||e,r.apiKey||t,r.options)}}v(_,{apiClientVersion:()=>l.apiClientVersion}),w(_,n),w(_,a),w(_,i),w(_,s),w(_,o),w(_,c),w(_,l),w(_,u),w(_,d),w(_,h),w(b,_)},5994:(e,t,r)=>{"use strict";r.d(t,{J0:()=>y,Kr:()=>_,hb:()=>x,li:()=>b,vJ:()=>w});var n,a,i,s,o=r(172),c=0,l=[],u=o.fF,d=u.__b,h=u.__r,p=u.diffed,m=u.__c,f=u.unmount,g=u.__;function v(e,t){u.__h&&u.__h(a,e,c||t),c=0;var r=a.__H||(a.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function y(e){return c=1,function(e,t){var r=v(n++,2);if(r.t=e,!r.__c&&(r.__=[C(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=a,!a.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(e){return!!e.__c});if(a.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var i=r.__c.props!==e;return a.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),s&&s.call(this,e,t,n)||i};a.__f=!0;var s=a.shouldComponentUpdate,o=a.componentWillUpdate;a.componentWillUpdate=function(e,t,r){if(this.__e){var n=s;s=void 0,i(e,t,r),s=n}o&&o.call(this,e,t,r)},a.shouldComponentUpdate=i}return r.__N||r.__}(C,e)}function w(e,t){var r=v(n++,3);!u.__s&&E(r.__H,t)&&(r.__=e,r.u=t,a.__H.__h.push(r))}function b(e){return c=5,_(function(){return{current:e}},[])}function _(e,t){var r=v(n++,7);return E(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function x(e,t){return c=8,_(function(){return e},t)}function P(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(T),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){a=null,d&&d(e)},u.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),g&&g(e,t)},u.__r=function(e){h&&h(e),n=0;var t=(a=e.__c).__H;t&&(i===a?(t.__h=[],a.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(R),t.__h.forEach(T),t.__h=[],n=0)),i=a},u.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&s===u.requestAnimationFrame||((s=u.requestAnimationFrame)||k)(P)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),i=a=null}
1,u.__c=function(e,t){t.some(function(e){try{e.__h.forEach(R),e.__h=e.__h.filter(function(e){return!e.__||T(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],u.__e(r,e.__v)}}),m&&m(e,t)},u.unmount=function(e){f&&f(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{R(e)}catch(e){t=e}}),r.__H=void 0,t&&u.__e(t,r.__v))};var S="function"==typeof requestAnimationFrame;function k(e){var t,r=function(){clearTimeout(n),S&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);S&&(t=requestAnimationFrame(r))}function R(e){var t=a,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),a=t}function T(e){var t=a;e.__c=e.__(),a=t}function E(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function C(e,t){return"function"==typeof t?t(e):t}},6183:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n="4.104.0"},6184:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{_:()=>n})},6214:(e,t,r)=>{"use strict";r.d(t,{qy:()=>a});var n=r(172),a=r(9002).A.bind(n.h)},6316:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1893),a=r(5456),i=r(172),s=r(4041);function o(e){var t=e.className,r=e.handleClick,o=e.facetValueToRefine,c=e.isRefined,l=e.templateProps,u=e.templateKey,d=e.templateData,h=e.subItems;return(0,i.h)("li",{className:t,onClick:function(e){r({facetValueToRefine:o,isRefined:c,originalEvent:e})}},(0,i.h)(s.A,(0,a._)((0,n._)({},l),{templateKey:u,data:d})),h)}},6337:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(7768),a=r(8882),i=r(8474),s=r(5134);function o(e){return(0,n._)(e)||(0,a._)(e)||(0,s._)(e)||(0,i._)()}},6464:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(6337),a=Promise.resolve();function i(e){var t=null,r=!1,i=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];null===t&&(t=a.then(function(){t=null,r?r=!1:e.apply(void 0,(0,n._)(s))}))};return i.wait=function(){if(null===t)throw new Error("The deferred function should be called before calling `wait()`");return t},i.cancel=function(){null!==t&&(r=!0)},i}},6467:(e,t,r)=>{"use strict";
vendor: 5,024 bytes, line 1
1function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{_:()=>n})},6500:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(1893),a=r(5456),i=r(8542),s=r(4652);function o(e){var t=e.createElement,r=e.Fragment,o=function(e){var t=e.createElement;return function(e){var r=e.classNames,n=e.children,a=e.highlightedTagName,i=e.isHighlighted,s=e.nonHighlightedTagName;return t(i?a:s,{className:i?r.highlighted:r.nonHighlighted},n)}}({createElement:t,Fragment:r});return function(e){var c=e.parts,l=e.highlightedTagName,u=void 0===l?"mark":l,d=e.nonHighlightedTagName,h=void 0===d?"span":d,p=e.separator,m=void 0===p?", ":p,f=e.className,g=e.classNames,v=void 0===g?{}:g,y=(0,i._)(e,["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"]);return t("span",(0,a._)((0,n._)({},y),{className:(0,s.cx)(v.root,f)}),c.map(function(e,n){var a=n===c.length-1;return t(r,{key:n},e.map(function(e,r){return t(o,{key:r,classNames:v,highlightedTagName:u,nonHighlightedTagName:h,isHighlighted:e.isHighlighted},e.value)}),!a&&t("span",{className:v.separator},m))}))}}},6520:(e,t,r)=>{"use strict";r.d(t,{Y:()=>s});var n=r(1893),a=r(5456),i=r(1243);function s(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){return(0,a._)((0,n._)({},t),{isHighlighted:!(0,i.S)(e,r)})}):e.map(function(e){return(0,a._)((0,n._)({},e),{isHighlighted:!1})})}},6571:(e,t,r)=>{"use strict";var n=r(2733),a=r(4351),i=r(2909).escapeFacetValue,s=r(3014),o=r(4728),c=r(317),l=r(1383),u=r(9127),d=r(2223),h=r(9228),p=r(3371),m=r(7691),f=r(7749),g=r(6938);function v(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var a=r||{};a.index=t,this.state=p.make(a),this.recommendState=new u({params:a.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 new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function w(){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 h._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=h._getQueries(r.index,r),a=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(n).then(function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),{content:new m(r,e.results),state:r,_originalResponse:e}},function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),e});this.client.search(n).then(function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(null,new m(r,e.results),r)}).catch(function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(e,null,r)})},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),a=o({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:l(h._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),i="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(i);var s=this.client.initIndex(n.index);if("function"!=typeof s.findAnswers)throw new Error(i);return s.findAnswers(n.query,e.queryLanguages,a)},v.prototype.searchForFacetValues=function(e,t,r,n){var a="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,s="function"==typeof this.client.initIndex;if(!a&&!s&&"function"!=typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(n||{}),c=o.isDisjunctiveFacet(e),l=h.getSearchForFacetQuery(e,t,r,o);this._currentNbQueries++;var u,d=this;a?u=this.client.searchForFacetValues([{indexName:o.index,params:l}]):s?u=this.client.initIndex(o.index).searchForFacetValues(l):(delete l.facetName,u=this.client.search([{type:"facet",facet:e,indexName:o.index,params:l}]).then(function(e){return e.results[0]}
vendor: 12,709 bytes, line 1
1)),this.emit("searchForFacetValues",{state:o,facet:e,query:t});var p=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 u.then(function(t){return d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=t.facetHits.reduce(function(t,r){return p.indexOf(r.value)>-1||(r.escapedValue=i(r.value),r.isRefined=c?o.isDisjunctiveFacetRefined(e,r.escapedValue):o.isFacetRefined(e,r.escapedValue),t.push(r)),t},[]),t},function(e){throw d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),e})},v.prototype.searchForCompositionFacetValues=function(e,t,r,n){if("function"!=typeof this.client.searchForFacetValues)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var a=this.state.setQueryParameters(n||{}),s=a.isDisjunctiveFacet(e);this._currentNbQueries++;var o,c=this;return o=this.client.searchForFacetValues({compositionID:a.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:h._getCompositionHitsSearchParams(a)}}}),this.emit("searchForFacetValues",{state:a,facet:e,query:t}),o.then(function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=i(t.value),t.isRefined=s?a.isDisjunctiveFacetRefined(e,t.escapedValue):a.isFacetRefined(e,t.escapedValue)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.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:p.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new p(e),this},v.prototype.hasRefinements=function(e){return!!c(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=w,v.prototype.getPage=w,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=h._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var a=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),a=n.index?h._getQueries(n.index,n):[];return r.push({state:n,queriesCount:a.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),a}),i=Array.prototype.concat.apply(n,a),s=this._queryId++;if(this._currentNbQueries++,!i.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));try{this.client.search(i).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),a=h._getCompositionQueries(n);return t.push({state:n,helper:r}),r.emit("search",{state:n,results:r.lastResults}),a}),n=Array.prototype.concat.apply([],r),a=this._queryId++;if(this._currentNbQueries++,!n.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,t,a));if(n.length>1)throw new Error("Only one query is allowed when using a composition.");var i=n[0];try{this.client.search(i).then(this._dispatchAlgoliaResponse.bind(this,t,a)).catch(this._dispatchAlgoliaError.bind(this,a))}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}],a=t.params.map(function(e){return e.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var i=this._recommendCache,s=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var s=t.getModifiedRecommendState(new u);return n.push({state:s,index:r,helper:t}),a=Array.prototype.concat.apply(a,s.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:s,results:t.lastRecommendResults}}),s._buildQueries(r,i)}),o=Array.prototype.concat.apply(this.recommendState._buildQueries(r,i),s);if(0!==o.length)if(o.length>0&&void 0===this.client.getRecommendations)console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");else{var c=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(o).then(this._dispatchRecommendResponse.bind(this,c,n,a)).catch(this._dispatchRecommendError.bind(this,c))}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 a=r.results.slice(),i=Object.keys(r).reduce(function(e,t){return"results"!==t&&(e[t]=r[t]),e},{});Object.keys(i).length<=0&&(i=void 0),e.forEach(function(e){var t=e.state,r=e.queriesCount,s=e.helper,o=void 0!==r?a.splice(0,r):a;if(t.index){if(o.length>0&&o[0].feedID){var c=o.map(function(e){var r=new m(t,[e],n._searchResultsOptions);return void 0!==i&&(r._rawContent=i),r});s.lastResults=new m(t,[o[0]],n._searchResultsOptions),s.lastResults.feeds=c,void 0!==i&&(s.lastResults._rawContent=i)}else s.lastResults=new m(t,o,n._searchResultsOptions),void 0!==i&&(s.lastResults._rawContent=i);s.emit("result",{results:s.lastResults,state:t})}else s.emit("result",{results:null,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 a=this._recommendCache,i={};r.filter(function(e){return void 0===a[e]}).forEach(function(e,t){i[e]||(i[e]=[]),i[e].push(t)}
vendor: 7,792 bytes, line 1
1),Object.keys(i).forEach(function(e){var t=i[e],s=n.results[t[0]];1!==t.length?a[e]=Object.assign({},s,{hits:f(r,t.map(function(e){return n.results[e].hits}))}):a[e]=s});var s={};r.forEach(function(e){s[e]=a[e]}),t.forEach(function(e){var t=e.state,r=e.helper;e.index?(r.lastRecommendResults=new d(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;t!==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 ("+g+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var r=new a(this,e,t);return this.derivedHelpers.push(r),r},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=v},6673:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n=e.hierarchicalFacets[r],l=e.hierarchicalFacetsRefinements[n.name]&&e.hierarchicalFacetsRefinements[n.name][0]||"",u=e._getHierarchicalFacetSeparator(n),d=e._getHierarchicalRootPath(n),h=e._getHierarchicalShowParentLevel(n),p=i(e._getHierarchicalFacetSortBy(n)),m=t.every(function(e){return e.exhaustive}),f=function(e,t,r,n,i){return function(l,u,d){var h=l;if(d>0){var p=0;for(h=l;p<d;){var m=h&&Array.isArray(h.data)?h.data:[];h=a(m,function(e){return e.isRefined}),p++}}if(h){var f=Object.keys(u.data).map(function(e){return[e,u.data[e]]}).filter(function(e){return function(e,t,r,n,a,i){return(!a||0===e.indexOf(a)&&a!==e)&&(!a&&-1===e.indexOf(n)||a&&e.split(n).length-a.split(n).length===1||-1===e.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(e)||0===e.indexOf(t+n)&&(i||0===e.indexOf(r)))}(e[0],h.path||r,i,t,r,n)});h.data=s(f.map(function(e){var r=e[0];return function(e,t,r,n,a){var i=t.split(r);return{name:i[i.length-1].trim(),path:t,escapedValue:o(t),count:e,isRefined:n===t||0===n.indexOf(t+r),exhaustive:a,data:null}}(e[1],r,t,c(i),u.exhaustive)}),e[0],e[1])}return l}}(p,u,d,h,l),g=t;return d&&(g=t.slice(d.split(u).length)),g.reduce(f,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:m,data:null})}};var n=r(2909),a=r(849),i=r(7577),s=r(8601),o=n.escapeFacetValue,c=n.unescapeFacetValue},6729:(e,t)=>{!function(e){var t=/\S/,r=/\"/g,n=/\n/g,a=/\r/g,i=/\\/g,s=/\u2028/,o=/\u2029/;function c(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function l(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,r){if(t.charAt(r)!=e.charAt(0))return!1;for(var n=1,a=e.length;n<a;n++)if(t.charAt(r+n)!=e.charAt(n))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(r,n){var a=r.length,i=0,s=null,o=null,d="",h=[],p=!1,m=0,f=0,g="{{",v="}}";function y(){d.length>0&&(h.push({tag:"_t",text:new String(d)}),d="")}function w(r,n){if(y(),r&&function(){for(var r=!0,n=f;n<h.length;n++)if(!(r=e.tags[h[n].tag]<e.tags._v||"_t"==h[n].tag&&null===h[n].text.match(t)))return!1;return r}())for(var a,i=f;i<h.length;i++)h[i].text&&((a=h[i+1])&&">"==a.tag&&(a.indent=h[i].text.toString()),h.splice(i,1));else n||h.push({tag:"\n"});p=!1,f=h.length}function b(e,t){var r="="+v,n=e.indexOf(r,t),a=l(e.substring(e.indexOf("=",t)+1,n)).split(" ");return g=a[0],v=a[a.length-1],n+r.length-1}for(n&&(n=n.split(" "),g=n[0],v=n[1]),m=0;m<a;m++)0==i?u(g,r,m)?(--m,y(),i=1):"\n"==r.charAt(m)?w(p):d+=r.charAt(m):1==i?(m+=g.length-1,"="==(s=(o=e.tags[r.charAt(m+1)])?r.charAt(m+1):"_v")?(m=b(r,m),i=0):(o&&m++,i=2),p=m):u(v,r,m)?(h.push({tag:s,n:l(d),otag:g,ctag:v,i:"/"==s?p-g.length:m+v.length}),d="",m+=v.length-1,i=0,"{"==s&&("}}"==v?m++:c(h[h.length-1]))):d+=r.charAt(m);return w(p,!0),h};var d={_t:!0,"\n":!0,$:!0,"/":!0};function h(t,r,n,a){var i,s=[],o=null,c=null;for(i=n[n.length-1];t.length>0;){if(c=t.shift(),i&&"<"==i.tag&&!(c.tag in d))throw new Error("Illegal content in < super tag.");if(e.tags[c.tag]<=e.tags.$||p(c,a))n.push(c),c.nodes=h(t,c.tag,n,a);else{if("/"==c.tag){if(0===n.length)throw new Error("Closing tag without opener: /"+c.n);if(o=n.pop(),c.n!=o.n&&!m(c.n,o.n,a))throw new Error("Nesting error: "+o.n+" vs. "+c.n);return o.end=c.i,s}"\n"==c.tag&&(c.last=0==t.length||"\n"==t[0].tag)}s.push(c)}if(n.length>0)throw new Error("missing closing tag: "+n.pop().n);return s}function p(e,t){for(var r=0,n=t.length;r<n;r++)if(t[r].o==e.n)return e.tag="#",!0}function m(e,t,r){for(var n=0,a=r.length;n<a;n++)if(r[n].c==e&&r[n].o==t)return!0}function f(e){var t=[];for(var r in e.partials)t.push('"'+v(r)+'":{name:"'+v(e.partials[r].name)+'", '+f(e.partials[r])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var r in e)t.push('"'+v(r)+'": function(c,p,t,i) {'+e[r]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,r,n){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+f(t)+"}"};var g=0;function v(e){return e.replace(i,"\\\\").replace(r,'\\"').replace(n,"\\n").replace(a,"\\r").replace(s,"\\u2028").replace(o,"\\u2029")}function y(e){return~e.indexOf(".")?"d":"f"}function w(e,t){var r="<"+(t.prefix||"")+e.n+g++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+v(r)+'",c,p,"'+(e.indent||"")+'"));',r}function b(e,t){t.code+="t.b(t.t(t."+y(e.n)+'("'+v(e.n)+'",c,p,0)));'}function _(e){return"t.b("+e+");"}e.generate=function(t,r,n){g=0;var a={code:"",subs:{},partials:{}};return e.walk(t,a),n.asString?this.stringify(a,r,n):this.makeTemplate(a,r,n)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,r){var n=this.makePartials(e);return n.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(n,t,this,r)},e.makePartials=function(e){var t,r={subs:{},partials:e.partials,name:e.name};for(t in r.partials)r.partials[t]=this.makePartials(r.partials[t]);for(t in e.subs)r.subs[t]=new Function("c","p","t","i",e.subs[t]);return r},e.codegen={"#":function(t,r){r.code+="if(t.s(t."+y(t.n)+'("'+v(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,r),r.code+="});c.pop();}"},"^":function(t,r){r.code+="if(!t.s(t."+y(t.n)+'("'+v(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,r),r.code+="};"},">":w,"<":function(t,r){var n={partials:{}
1,code:"",subs:{},inPartial:!0};e.walk(t.nodes,n);var a=r.partials[w(t,r)];a.subs=n.subs,a.partials=n.partials},$:function(t,r){var n={subs:{},code:"",partials:r.partials,prefix:t.n};e.walk(t.nodes,n),r.subs[t.n]=n.code,r.inPartial||(r.code+='t.sub("'+v(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=_('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+y(e.n)+'("'+v(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=_('"'+v(e.text)+'"')},"{":b,"&":b},e.walk=function(t,r){for(var n,a=0,i=t.length;a<i;a++)(n=e.codegen[t[a].tag])&&n(t[a],r);return r},e.parse=function(e,t,r){return h(e,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,r){r=r||{};var n=e.cacheKey(t,r),a=this.cache[n];if(a){var i=a.partials;for(var s in i)delete i[s].instance;return a}return a=this.generate(this.parse(this.scan(t,r.delimiters),t,r),t,r),this.cache[n]=a}}(t)},6732:(e,t,r)=>{"use strict";function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n=function(){return!!e})()}r.d(t,{_:()=>n})},6745:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});var n=["ais.index","ais.feedContainer"]},6845:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(1893),a=r(5456);function i(e,t,r){return e.map(function(e,i){return(0,a._)((0,n._)({},e),{__position:r*t+i+1})})}},6850:(e,t,r)=>{"use strict";r.d(t,{R:()=>h});var n=r(1893),a=r(5456),i=r(8542),s=r(172),o=r(7357),c=r(5150),l=r(8796),u=r(8454),d=r(307);function h(e){var t=e.hit,r=e.attribute,h=e.cssClasses,p=(0,i._)(e,["hit","attribute","cssClasses"]),m=(0,c.E)(t._highlightResult,r)||[],f=(0,d.$)(m).map(function(e){var t=e.value;return(0,l.I)((0,u.x)(t||"")).map(function(e){var t=e.isHighlighted,r=(0,i._)(e,["isHighlighted"]);return(0,a._)((0,n._)({},r),{isHighlighted:!t})})});return(0,s.h)(o.R,(0,a._)((0,n._)({},p),{parts:f,classNames:h}))}},6911:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(6500),a=r(172),i=(0,n.Y)({createElement:a.n,Fragment:a.FK})},6916:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(1893);function a(e,t){var r=Object.keys(t).reduce(function(e,r){var a=t[r];return a.recommendResults?(0,n._)({},e,a.recommendResults.results):e},{});e._recommendCache=r}},6938:e=>{"use strict";e.exports="3.29.1"},6954:(e,t,r)=>{"use strict";r.a(e,async(e,t)=>{try{var n=r(3450),a=r(3079),i=r(5940),s=r(9073),o=r(9254),c=r(218),l=r(5289),u=r(8062),d=r(1961),h=r(1634),p=r(8688),m=r(5429),f=r(9472),g=r(8770),v=r(882),y=r(3552),w=r(7723),b=r(4208);const e=document.getElementById("isfwp-site-search"),_=new n.A(e);let x=!1,P=!1;const S=instantSearchForWPFrontend?.conversationalSearch||!1,k="left"==("left"===instantSearchForWPFrontend?.conversationalChatTriggerPosition?"left":"right")?"isfwp-chat-trigger-button isfwp-chat-trigger-button--left":"isfwp-chat-trigger-button isfwp-chat-trigger-button--right",R=(0,v.n)({container:document.getElementById("isfwp-site-search-summary"),frontendConfig:instantSearchForWPFrontend}),T=(0,a.default)({indexName:instantSearchForWPFrontend.indexName,searchClient:(0,i.w)(instantSearchForWPFrontend.appId,instantSearchForWPFrontend.apiKey),future:{preserveSharedStateOnUnmount:!0},attributesToSnippet:[`content:${instantSearchForWPFrontend?.sitesearchSettings?.snippet_length||50}`]});let E;const C=e?.querySelector("#isfwp-site-search-hits"),I=e?.querySelector("#isfwp-site-search-stats"),q=e=>{C&&(C.hidden=!e),I&&(I.hidden=!e)},A=e=>Boolean(e?.query?.trim())||N(e),N=e=>!!e&&[e.facetsRefinements,e.disjunctiveFacetsRefinements,e.hierarchicalFacetsRefinements,e.numericRefinements,e.tagRefinements].some(e=>Array.isArray(e)?e.length>0:!(!e||"object"!=typeof e)&&Object.values(e).some(e=>Array.isArray(e)?e.length>0:e&&"object"==typeof e?Object.keys(e).length>0:Boolean(e)));q(!1),T.addWidgets([(0,c.A)((0,y._z)("instantsearchForWP.siteSearch.configureParams",{distinct:!0,attributesToSnippet:[`content:${instantSearchForWPFrontend?.sitesearchSettings?.snippet_length||50}`],snippetEllipsisText:"â¦"},{frontendConfig:instantSearchForWPFrontend})),(0,l.A)({container:"#isfwp-site-search-hits",templates:{item(e,{html:t,components:r}){var n=t` 2 <article class="hit-item postid-${e.postID}" itemscope itemtype="https://schema.org/BlogPosting"> 3 <h5 class="hit-heading" itemprop="headline"> 4 <a href="${e.url}" class="hit-title" itemprop="url"> 5 ${r.Highlight({attribute:"title",hit:e})} 6 </a> 7 </h5> 8 <p class="hit-content"> 9 ${r.Snippet({attribute:"content",hit:e})} 10 </p> 11 </article> 12 `;return wp.hooks.applyFilters("isfwp.searchHitItem",n,e,r)}}}),(0,m.A)({container:"#isfwp-site-search-stats"}),(0,o.A)({container:"#isfwp-site-search-clear-refinements",templates:{resetLabel:(0,w.__)("Clear All Filters","instantsearch-for-wp")}}),(0,s.A)({container:"#isfwp-site-search-sidebar",facets:["*"],fallbackWidget:({container:e,attribute:t})=>(0,u.A)({templates:{header:instantSearchForWPFrontend?.facetTitles[t]||t},hidden:e=>0===e.items.length})(h.A)((0,y.DE)({optionsHook:"instantsearchForWP.siteSearch.widgetOptions",itemsHook:"instantsearchForWP.siteSearch.transformItems",widgetType:"refinementList",options:{attribute:t,container:e,showMore:!0,limit:10,showMoreLimit:1e3},context:{attribute:t,container:e,frontendConfig:instantSearchForWPFrontend},extraScopes:[`refinementList.${t}`]})),widgets:[]}),(0,p.A)({container:"#isfwp-site-search-input",placeholder:instantSearchForWPFrontend?.sitesearchSettings?.placeholder_text||"Search...",aiMode:!1,searchAsYouType:!!(instantSearchForWPFrontend?.sitesearchSettings?.debounce_delay&&instantSearchForWPFrontend.sitesearchSettings.debounce_delay>0),showSubmit:!0,showReset:!0,showLoadingIndicator:!0,queryHook(e,t){instantSearchForWPFrontend?.sitesearchSettings?.debounce_delay&&instantSearchForWPFrontend.sitesearchSettings.debounce_delay>0?(clearTimeout(E),E=setTimeout(()=>t(e),instantSearchForWPFrontend.sitesearchSettings.debounce_delay)):t(e)}})]),instantSearchForWPFrontend?.hidePoweredBy||T.addWidgets([(0,d.A)({container:"#isfwp-powered-by-algolia"})]),T.on("render",()=>{const t=e.querySelector("#isfwp-site-search-input input");t&&t.focus();const r=A(T?.helper?.state);!P&&r&&(P=!0);const n=P&&r;if(q(n),R.isEnabled&&T?.helper?.state){const e=T.helper.state.query||"",t="function"==typeof T.helper.state.getQueryParams?T.helper.state.getQueryParams():{},r=Number(T?.helper?.lastResults?.nbHits||0)>0;n&&r?R.handleQueryChange(e,t):R.reset()}}),_.on("show",async()=>
12{if(x){const t=e.querySelector("#isfwp-site-search-input input");t&&setTimeout(()=>{t.focus()},100)}else await T.start(),x=!0;(0,b.mh)(e)}),_.on("hide",()=>{(0,b.fY)(e),P=!1,q(!1),T?.helper&&T.helper.setQuery("").clearRefinements().setPage(0).search(),R.reset()});const D=e.querySelector(".isfwp-site-search-close");if(D&&D.addEventListener("click",()=>{_.hide()}),e?.addEventListener("submit",e=>{const t=e.target;if(!(t instanceof HTMLFormElement&&t.closest("#isfwp-site-search-input")))return;const r=new FormData(t);""!==String(r.get("query")||"").trim()&&(P=!0,q(!0))}),document.querySelectorAll(instantSearchForWPFrontend.searchTriggerQuerySelectors).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),_.show()})}),window.isfwpSiteSearch={dialog:_,search:T},S){const e=(0,a.default)({indexName:instantSearchForWPFrontend.indexName,searchClient:(0,i.w)(instantSearchForWPFrontend.appId,instantSearchForWPFrontend.apiKey),future:{preserveSharedStateOnUnmount:!0}});e.addWidgets([(0,g.A)({container:"#algolia-chat-trigger",floating:!1,cssClasses:{button:k}}),(0,f.Ay)({container:"#algolia-chat",agentId:S,resume:!1,context:()=>({currentPage:window.location.pathname,locale:navigator.language||"en"}),templates:{item:(e,{html:t})=>t`<span>${String(e?.title||"").trim()||(0,w.__)("Untitled result","instantsearch-for-wp")}</span>`,loaderText:(0,w.__)("Thinking...","instantsearch-for-wp"),prompt:{textareaPlaceholderText:(0,w.__)("Ask AI anything","instantsearch-for-wp")}}})]),await e.start(),window.isfwpSiteSearch.aiSearch=e}t()}catch(e){t(e)}},1)},7052:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(467),a=r(1893),i=r(5456),s=r(8542),o=r(2783),c=r(4243),l=r(69),u=r(1309),d=r(513),h=(0,c.V)({name:"refinement-list",connector:!0}),p=["isRefined","count:desc","name:asc"],m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.l;return(0,l.t)(e,h()),function(r){var c=r||{},l=c.attribute,d=c.operator,m=void 0===d?"or":d,f=c.limit,g=void 0===f?10:f,v=c.showMore,y=void 0!==v&&v,w=c.showMoreLimit,b=void 0===w?20:w,_=c.sortBy,x=void 0===_?p:_,P=c.escapeFacetValues,S=void 0===P||P,k=c.transformItems,R=void 0===k?function(e){return e}:k;if(!l)throw new Error(h("The `attribute` option is required."));if(!/^(and|or)$/.test(m))throw new Error(h('The `operator` must one of: `"and"`, `"or"` (got "'.concat(m,'").')));if(!0===y&&b<=g)throw new Error(h("`showMoreLimit` should be greater than `limit`."));var T,E,C,I=function(e){var t=e.name,r=e.escapedValue,n=(0,s._)(e,["name","escapedValue"]);return(0,i._)((0,a._)({},n),{value:r,label:t,highlighted:t})},q=[],A=!0,N=!1,D=function(){};function F(){D()}function j(){return N?b:g}var O=function(){return function(){}};return{$$type:"ais.refinementList",init:function(t){e((0,i._)((0,a._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){e((0,i._)((0,a._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return(0,i._)((0,a._)({},e),{refinementList:(0,i._)((0,a._)({},e.refinementList),(0,n._)({},l,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(t){var n=this,c=t.results,d=t.state,h=t.createURL,m=t.instantSearchInstance,f=t.helper,v=[],w=[];if(C&&E&&O||(C=(0,u.D)({instantSearchInstance:m,helper:f,attribute:l,widgetType:this.$$type}),E=function(e){C("click:internal",e),f.toggleFacetRefinement(l,e).search()},O=function(t,r){return function(n){return function(c){var u=n.instantSearchInstance,d=n.results;if(""===c&&q)e((0,i._)((0,a._)({},r.getWidgetRenderState((0,i._)((0,a._)({},n),{results:T}))),{instantSearchInstance:u}),!1);else{var h={highlightPreTag:S?o.FU.highlightPreTag:o.sn.highlightPreTag,highlightPostTag:S?o.FU.highlightPostTag:o.sn.highlightPostTag};t.searchForFacetValues(l,c,Math.min(j(),100),h).then(function(t){var c=S?(0,o.ef)(t.facetHits):t.facetHits,l=R(c.map(function(e){var t=e.escapedValue,r=e.value,n=(0,s._)(e,["escapedValue","value"]);return(0,i._)((0,a._)({},n),{value:t,label:r})}),{results:d});e((0,i._)((0,a._)({},r.getWidgetRenderState((0,i._)((0,a._)({},n),{results:T}))),{items:l,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:u}),!1)})}}}}(f,this)),c){var b=c.getFacetValues(l,{sortBy:x,facetOrdering:x===p});w=b&&Array.isArray(b)?b:[],v=R(w.slice(0,j()).map(I),{results:c});var _=d.maxValuesPerFacet,P=j();A=_>P?w.length<=P:w.length<P,T=c,q=v,t.results&&(D=function(e,t){return function(){N=!N,t.render(e)}}(t,this))}var k=O&&O(t),M=N&&q.length>g||y&&!A;return{createURL:function(e){return h(function(t){return n.getWidgetUiState(t,{searchParameters:d.resetPage().toggleFacetRefinement(l,e),helper:f})})},items:v,refine:E,searchForItems:k,isFromSearch:!1,canRefine:v.length>0,widgetParams:r,isShowingMore:N,canToggleShowMore:M,toggleShowMore:F,sendEvent:C,hasExhaustiveItems:A}},dispose:function(e){var r=e.state;t();var n=r.setQueryParameter("maxValuesPerFacet",void 0);return"and"===m?n.removeFacet(l):n.removeDisjunctiveFacet(l)},getWidgetUiState:function(e,t){var r=t.searchParameters,s="or"===m?r.getDisjunctiveRefinements(l):r.getConjunctiveRefinements(l);return function(e,t){return e.refinementList?(e.refinementList[t]&&0!==e.refinementList[t].length||delete e.refinementList[t],0===Object.keys(e.refinementList).length&&delete e.refinementList,e):e}((0,i._)((0,a._)({},e),{refinementList:(0,i._)((0,a._)({},e.refinementList),(0,n._)({},l,s))}),l)},getWidgetSearchParameters:function(e,t){var r=t.uiState,s="or"===m;if(e.isHierarchicalFacet(l))return e;if(s&&e.isConjunctiveFacet(l)||!s&&e.isDisjunctiveFacet(l))return e;var o=r.refinementList&&r.refinementList[l],c=s?e.addDisjunctiveFacet(l).removeDisjunctiveFacetRefinement(l):e.addFacet(l).removeFacetRefinement(l),u=c.maxValuesPerFacet||0,d=Math.max(u,y?b:g),h=c.setQueryParameter("maxValuesPerFacet",d);if(!o){var p=s?"disjunctiveFacetsRefinements":"facetsRefinements";return h.setQueryParameters((0,n._)({},p,(0,i._)((0,a._)({},h[p]),(0,n._)({},l,[]))))}return o.reduce(function(e,t){return s?e.addDisjunctiveFacetRefinement(l,t):e.addFacetRefinement(l,t)},h)}}}}},7109:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(1893),a=r(8542),i=r(648),s=r(4176),o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r=function(e,t){return e.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)})}(e,t),o=function(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=(0,i.S)(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},e.hierarchicalFacets)})}(r,t),c=function(e,t){return t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},e)}(o,t),l=function(e,t){return e.setQueryParameters({numericRefinements:(0,n._)({},e.numericRefinements,t.numericRefinements)})}(c,t),u=function(e,t){return e.setQueryParameters({disjunctiveFacetsRefinements:(0,n._)({},e.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)})}(l,t),d=function(e,t){return e.setQueryParameters({facetsExcludes:(0,n._)({},e.facetsExcludes,t.facetsExcludes)})}(u,t),h=function(e,t){return e.setQueryParameters({facetsRefinements:(0,n._)({},e.facetsRefinements,t.facetsRefinements)})}(d,t),p=function(e,t){return t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},e)}(h,t),m=function(e,t){var r=(0,s.s)([].concat(e.ruleContexts).concat(t.ruleContexts).filter(
12Boolean));return r.length>0?e.setQueryParameters({ruleContexts:r}):e}(p,t),f=function(e,t){return t.facets.reduce(function(e,t){return e.addFacet(t)},e)}(m,t);return 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,a._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)}(f,t)})}},7121:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(467),a=r(1893),i=r(5456),s=r(4103),o=r(1810),c=r(4243),l=r(7109),u=r(513),d=(0,c.V)({name:"configure",connector:!0});function h(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return(0,i._)((0,a._)({},e),(0,n._)({},t,void 0))},{}))}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.l;return function(r){if(!r||!(0,o.Q)(r.searchParameters))throw new Error(d("The `searchParameters` option expects an object."));var n={};return{$$type:"ais.configure",init:function(t){var r=t.instantSearchInstance;e((0,i._)((0,a._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,i._)((0,a._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return t(),h(n,r)},getRenderState:function(e,t){var r,n=this.getWidgetRenderState(t);return(0,i._)((0,a._)({},e),{configure:(0,i._)((0,a._)({},n),{widgetParams:(0,i._)((0,a._)({},n.widgetParams),{searchParameters:(0,l.p)(new s.SearchParameters(null===(r=e.configure)||void 0===r?void 0:r.widgetParams.searchParameters),new s.SearchParameters(n.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return n.refine||(n.refine=function(e){return function(t){var n=h(e.state,r),a=(0,l.p)(n,new s.SearchParameters(t));r.searchParameters=t,e.setState(a).search()}}(t)),{refine:n.refine,widgetParams:r}},getWidgetSearchParameters:function(e,t){var n=t.uiState;return(0,l.p)(e,new s.SearchParameters((0,a._)({},n.configure,r.searchParameters)))},getWidgetUiState:function(e){return(0,i._)((0,a._)({},e),{configure:(0,a._)({},e.configure,r.searchParameters)})}}}}},7134:(e,t,r)=>{"use strict";r.d(t,{f:()=>h});var n=r(1893),a=r(5456),i=r(8542),s=r(172),o=r(2991),c=r(5150),l=r(8796),u=r(8454),d=r(307);function h(e){var t=e.hit,r=e.attribute,h=e.cssClasses,p=(0,i._)(e,["hit","attribute","cssClasses"]),m=(0,c.E)(t._highlightResult,r)||[],f=(0,d.$)(m).map(function(e){var t=e.value;return(0,l.I)((0,u.x)(t||""))});return(0,s.h)(o.f,(0,a._)((0,n._)({},p),{parts:f,classNames:h}))}},7198:(e,t,r)=>{"use strict";function n(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}r.d(t,{I:()=>n})},7216:(e,t,r)=>{"use strict";function n(e){var t=e;return t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua}r.d(t,{F:()=>n})},7219:(e,t,r)=>{"use strict";function n(e,t){return e.toLocaleString(t)}r.d(t,{Z:()=>n})},7258:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});var n=function(e,t){return e}},7326:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,Si:()=>i});var n=r(1642),a="_ALGOLIA";function i(){return function(e){if("object"===("undefined"==typeof document?"undefined":(0,n._)(document))&&"string"==typeof document.cookie)for(var t="".concat(e,"="),r=document.cookie.split(";"),a=0;a<r.length;a++){for(var i=r[a];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}}(a)}function s(){return i()}},7357:(e,t,r)=>{"use strict";r.d(t,{R:()=>c});var n=r(1893),a=r(8542),i=r(4652),s=r(172),o=r(6911);function c(e){var t=e.classNames,r=void 0===t?{}:t,c=(0,a._)(e,["classNames"]);return(0,s.h)(o.G,(0,n._)({classNames:{root:(0,i.cx)("ais-ReverseHighlight",r.root),highlighted:(0,i.cx)("ais-ReverseHighlight-highlighted",r.highlighted),nonHighlighted:(0,i.cx)("ais-ReverseHighlight-nonHighlighted",r.nonHighlighted),separator:(0,i.cx)("ais-ReverseHighlight-separator",r.separator)}},c))}},7373:(e,t,r)=>{"use strict";function n(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}r.d(t,{S:()=>n})},7408:(e,t,r)=>{"use strict";r.r(t),r.d(t,{abtestingClient:()=>o,apiClientVersion:()=>i});var n=r(4267),a=r(5375),i="5.49.2",s=["de","us"];function o(e,t,r,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");if(r&&("string"!=typeof r||!s.includes(r)))throw new Error(`\`region\` must be one of the following: ${s.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:s,...o}
12){const c=(0,n.PA)(e,t,r),l=(0,n.zf)({hosts:(u=s,[{url:u?"analytics.{region}.algolia.com".replace("{region}",u):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"Abtesting",version:i}),baseHeaders:{"content-type":"text/plain",...c.headers(),...o.baseHeaders},baseQueryParameters:{...c.queryParameters(),...o.baseQueryParameters}});var u;return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},addABTests(e,t){if(!e)throw new Error("Parameter `addABTestsRequest` is required when calling `addABTests`.");if(!e.name)throw new Error("Parameter `addABTestsRequest.name` is required when calling `addABTests`.");if(!e.variants)throw new Error("Parameter `addABTestsRequest.variants` is required when calling `addABTests`.");if(!e.endAt)throw new Error("Parameter `addABTestsRequest.endAt` is required when calling `addABTests`.");const r={method:"POST",path:"/2/abtests",queryParameters:{},headers:{},data:e};return l.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},deleteABTest({id:e},t){if(!e)throw new Error("Parameter `id` is required when calling `deleteABTest`.");const r={method:"DELETE",path:"/2/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},estimateABTest(e,t){if(!e)throw new Error("Parameter `estimateABTestRequest` is required when calling `estimateABTest`.");if(!e.configuration)throw new Error("Parameter `estimateABTestRequest.configuration` is required when calling `estimateABTest`.");if(!e.variants)throw new Error("Parameter `estimateABTestRequest.variants` is required when calling `estimateABTest`.");const r={method:"POST",path:"/2/abtests/estimate",queryParameters:{},headers:{},data:e};return l.request(r,t)},getABTest({id:e},t){if(!e)throw new Error("Parameter `id` is required when calling `getABTest`.");const r={method:"GET",path:"/2/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},listABTests({offset:e,limit:t,indexPrefix:r,indexSuffix:n}={},a=void 0){const i={};void 0!==e&&(i.offset=e.toString()),void 0!==t&&(i.limit=t.toString()),void 0!==r&&(i.indexPrefix=r.toString()),void 0!==n&&(i.indexSuffix=n.toString());const s={method:"GET",path:"/2/abtests",queryParameters:i,headers:{}};return l.request(s,a)},stopABTest({id:e},t){if(!e)throw new Error("Parameter `id` is required when calling `stopABTest`.");const r={method:"POST",path:"/2/abtests/{id}/stop".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...o})}},7438:(e,t,r)=>{"use strict";function n(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}r.d(t,{I:()=>n})},7507: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 new Error("The value should be a number, a parsable string or an array of those.")}},7520:(e,t,r)=>{"use strict";function n(e){var t=e.helper,r=e.attributesToClear,n=void 0===r?[]:r,a=t.state.setPage(0);return a=n.reduce(function(e,t){return a.isNumericRefined(t)?e.removeNumericRefinement(t):a.isHierarchicalFacet(t)?e.removeHierarchicalFacetRefinement(t):a.isDisjunctiveFacet(t)?e.removeDisjunctiveFacetRefinement(t):a.isConjunctiveFacet(t)?e.removeFacetRefinement(t):e},a),-1!==n.indexOf("query")&&(a=a.setQuery("")),a}r.d(t,{A:()=>n})},7527:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(4880),a=r(494),i=r(9407),s=r(467),o=r(884),c=r(1893),l=r(5456),u=r(8542),d=r(4652),h=r(172),p=r(3395),m=r(4041),f=r(6316),g=r(7764),v=r(3453);function y(e){return void 0!==e.data}var w=function(e){function t(){var e;return(0,a._)(this,t),e=(0,n._)(this,t,arguments),(0,s._)(e,"listRef",(0,h._3)()),(0,s._)(e,"searchBox",(0,h._3)()),(0,s._)(e,"lastRefinedValue",void 0),(0,s._)(e,"_generateFacetItem",function(r){var n;if(y(r)&&Array.isArray(r.data)&&r.data.length>
120){var a=e.props.cssClasses;a.root;var i=(0,u._)(a,["root"]);n=(0,h.h)(t,(0,l._)((0,c._)({},e.props),{cssClasses:i,depth:e.props.depth+1,facetValues:r.data,showMore:!1,className:e.props.cssClasses.childList}))}var s=e.props.createURL(r.value),o=(0,l._)((0,c._)({},r),{url:s,attribute:e.props.attribute,cssClasses:e.props.cssClasses,isFromSearch:e.props.isFromSearch}),p=r.value;void 0!==r.isRefined&&(p+="/".concat(r.isRefined)),void 0!==r.count&&(p+="/".concat(r.count));var m=(0,d.cx)(e.props.cssClasses.item,r.isRefined&&e.props.cssClasses.selectedItem,!r.count&&e.props.cssClasses.disabledItem,Boolean(y(r)&&Array.isArray(r.data)&&r.data.length>0)&&e.props.cssClasses.parentItem);return(0,h.h)(f.A,{templateKey:"item",key:p,facetValueToRefine:r.value,handleClick:e.handleItemClick,isRefined:r.isRefined,className:m,subItems:n,templateData:o,templateProps:e.props.templateProps})}),(0,s._)(e,"handleItemClick",function(t){var r=t.facetValueToRefine,n=t.isRefined,a=t.originalEvent;if(!(0,g.s)(a)){var i=a.target;if(!(null===i||null===i.parentNode||n&&i.parentNode.querySelector('input[type="radio"]:checked')))if("INPUT"!==i.tagName){for(;i!==a.currentTarget;){if("LABEL"===i.tagName&&(i.querySelector('input[type="checkbox"]')||i.querySelector('input[type="radio"]')))return;"A"===i.tagName&&i.href&&a.preventDefault(),i=i.parentNode}a.stopPropagation(),e.refine(r)}else e.refine(r)}}),e}return(0,o._)(t,e),(0,i._)(t,[{key:"shouldComponentUpdate",value:function(e){return!(0,v.n)(this.props.facetValues,e.facetValues)}},{key:"refine",value:function(e){this.lastRefinedValue=e,this.props.toggleRefinement(e)}},{key:"componentWillReceiveProps",value:function(e){this.searchBox.current&&!e.isFromSearch&&this.searchBox.current.resetInput()}},{key:"componentDidUpdate",value:function(){for(var e,t=(null===(e=this.listRef.current)||void 0===e?void 0:e.getElementsByTagName("input"))||[],r=0;r<t.length;r++)if(t[r].value===this.lastRefinedValue){t[r].focus();break}this.lastRefinedValue=void 0}},{key:"refineFirstValue",value:function(){if(!1!==this.props.searchableSelectOnSubmit){var e=this.props.facetValues&&this.props.facetValues[0];if(e){var t=e.value;this.props.toggleRefinement(t)}}}},{key:"render",value:function(){var e=this,t=(0,d.cx)(this.props.cssClasses.showMore,!(!0===this.props.showMore&&this.props.canToggleShowMore)&&this.props.cssClasses.disabledShowMore),r=!0===this.props.showMore&&(0,h.h)(m.A,(0,l._)((0,c._)({},this.props.templateProps),{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:t,disabled:!this.props.canToggleShowMore,onClick:this.props.toggleShowMore},data:{isShowingMore:this.props.isShowingMore}})),n=!0!==this.props.searchIsAlwaysActive&&!(this.props.isFromSearch||!this.props.hasExhaustiveItems),a=this.props.searchFacetValues&&(0,h.h)("div",{className:this.props.cssClasses.searchBox},(0,h.h)(p.A,{ref:this.searchBox,placeholder:this.props.searchPlaceholder,disabled:n,cssClasses:this.props.cssClasses.searchable,templates:this.props.searchBoxTemplateProps.templates,onChange:function(t){return e.props.searchFacetValues(t.target.value)},onReset:function(){return e.props.searchFacetValues("")},onSubmit:function(){return e.refineFirstValue()},searchAsYouType:!1,ariaLabel:"Search for filters"})),i=this.props.facetValues&&this.props.facetValues.length>0&&(0,h.h)("ul",{ref:this.listRef,className:this.props.cssClasses.list},this.props.facetValues.map(this._generateFacetItem,this)),s=this.props.searchFacetValues&&this.props.isFromSearch&&(!this.props.facetValues||0===this.props.facetValues.length)&&(0,h.h)(m.A,(0,l._)((0,c._)({},this.props.templateProps),{templateKey:"searchableNoResults",rootProps:{className:this.props.cssClasses.noResults}})),o=(0,d.cx)(this.props.cssClasses.root,(!this.props.facetValues||0===this.props.facetValues.length)&&this.props.cssClasses.noRefinementRoot,this.props.className);return(0,h.h)("div",{className:o},this.props.children,a,i,s,r)}}]),t}(h.uA);(0,s._)(w,"defaultProps",{cssClasses:{},depth:0})},7577:(e,t,r)=>{"use strict";var n=r(849);e.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var a=t.split(":"),i=n(r,function(e){return e[0]===a[0]});return a.length>1||!i?(e[0].push(a[0]),e[1].push(a[1]),e):(e[0].push(i[0]),e[1].push(i[1]),e)},[[],[]])}},7691:(e,t,r)=>{"use strict";
vendor: 6,513 bytes, line 12
12var n=r(8965),a=r(9110),i=r(2909),s=r(849),o=r(3917),c=r(7577),l=r(2183),u=r(8601),d=i.escapeFacetValue,h=i.unescapeFacetValue,p=r(6673);function m(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function f(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var i=t[0]||{};this._rawResults=t;var c=this;Object.keys(i).forEach(function(e){c[e]=i[e]});var u=a(r,{persistHierarchicalRootCount:!1});Object.keys(u).forEach(function(e){c[e]=u[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 d=e.getRefinedDisjunctiveFacets(),g=m(e.facets),v=m(e.disjunctiveFacets),y=1,w=i.facets||{};Object.keys(w).forEach(function(t){var r,n,a=w[t],l=(r=e.hierarchicalFacets,n=t,s(r,function(e){return(e.attributes||[]).indexOf(n)>-1}));if(l){var u=l.attributes.indexOf(t),d=o(e.hierarchicalFacets,function(e){return e.name===l.name});c.hierarchicalFacets[d][u]={attribute:t,data:a,exhaustive:i.exhaustiveFacetsCount}}else{var h,p=-1!==e.disjunctiveFacets.indexOf(t),m=-1!==e.facets.indexOf(t);p&&(h=v[t],c.disjunctiveFacets[h]={name:t,data:a,exhaustive:i.exhaustiveFacetsCount},f(c.disjunctiveFacets[h],i.facets_stats,t)),m&&(h=g[t],c.facets[h]={name:t,data:a,exhaustive:i.exhaustiveFacetsCount},f(c.facets[h],i.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),d.forEach(function(r){var n=t[y],s=n&&n.facets?n.facets:{},u=e.getHierarchicalFacetByName(r);Object.keys(s).forEach(function(t){var r,d=s[t];if(u){r=o(e.hierarchicalFacets,function(e){return e.name===u.name});var p=o(c.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===p)return;c.hierarchicalFacets[r][p].data=c.persistHierarchicalRootCount?l(c.hierarchicalFacets[r][p].data,d):a(d,c.hierarchicalFacets[r][p].data)}else{r=v[t];var m=i.facets&&i.facets[t]||{};c.disjunctiveFacets[r]={name:t,data:l(m,d),exhaustive:n.exhaustiveFacetsCount},f(c.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!c.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(h(n))>-1&&(c.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),i=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(i).length<2||t.slice(y).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var l=r[t],u=o(e.hierarchicalFacets,function(e){return e.name===n.name}),d=o(c.hierarchicalFacets[u],function(e){return e.attribute===t});if(-1!==d){var h={};if(s.length>0&&!c.persistHierarchicalRootCount){var p=s[0].split(i)[0];h[p]=c.hierarchicalFacets[u][d].data[p]}c.hierarchicalFacets[u][d].data=a(h,l,c.hierarchicalFacets[u][d].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=g[t];c.facets[n]={name:t,data:w[t],exhaustive:i.exhaustiveFacetsCount},r.forEach(function(e){c.facets[n]=c.facets[n]||{name:t},c.facets[n].data=c.facets[n].data||{},c.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(p(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function v(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 a=d(r);return{name:r,escapedValue:a,count:n.data[r],isRefined:e._state.isFacetRefined(t,a),isExcluded:e._state.isExcludeRefined(t,r)}}):[]}if(e._state.isDisjunctiveFacet(t)){var a=s(e.disjunctiveFacets,r);return a?Object.keys(a.data).map(function(r){var n=d(r);return{name:r,escapedValue:n,count:a.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var i=s(e.hierarchicalFacets,r);if(!i)return i;var o=e._state.getHierarchicalFacetByName(t),c=e._state._getHierarchicalFacetSeparator(o),l=h(e._state.getHierarchicalRefinement(t)[0]||"");0===l.indexOf(o.rootPath)&&(l=l.replace(o.rootPath+c,""));var u=l.split(c);return u.unshift(t),y(i,u,0),i}}function y(e,t,r){e.isRefined=e.name===(t[r]&&t[r].trim()),e.data&&e.data.forEach(function(e){y(e,t,r+1)})}function w(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||0===t.data.length)return t;var i=t.data.map(function(t){return w(e,t,r,n+1)}),s=e(i,r[n]);return a({data:s},t)}function b(e,t){var r=s(e,function(e){return e.name===t});return r&&r.stats}function _(e,t,r,n,a){var i=s(a,function(e){return e.name===r}),o=i&&i.data&&i.data[n]?i.data[n]:0,c=i&&i.exhaustive||!1;return{type:t,attributeName:r,name:n,count:o,exhaustive:c}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r=v(this,e);if(r){var n=a(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),i=this;return w(function(e,t){var r=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(i,t);if(n.facetOrdering&&r)return function(e,t){var r=[],n=[],a=t.hide||[],i=(t.order||[]).reduce(function(e,t,r){return e[t]=r,e},{});e.forEach(function(e){var t=e.path||e.name,s=a.indexOf(t)>-1;s||void 0===i[t]?s||n.push(e):r[i[t]]=e}),r=r.filter(function(e){return e});var s,o=t.sortRemainingBy;return"hidden"===o?r:(s="alpha"===o?[["path","name"],["asc","asc"]]:[["count"],["desc"]],r.concat(u(n,s[0],s[1])))}(e,r);if(Array.isArray(n.sortBy)){var a=c(n.sortBy,g.DEFAULT_SORT),s=u(e,a[0],a[1]),o=r&&r.hide?r.hide:[];if(o.length>0){var l=[];return s.forEach(function(e){var t=e.path||e.name;-1===o.indexOf(t)&&l.push(e)}),l}return s}if("function"==typeof n.sortBy)return function(e,t){return t.sort(e)}(n.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,Array.isArray(r)?[e]:i._state.getHierarchicalFacetByName(r.name).attributes)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?b(this.facets,e):this._state.isDisjunctiveFacet(e)?b(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEac
vendor: 4,172 bytes, line 12
12h(function(e){r.push(_(0,"facet",n,e,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(e){r.push(_(0,"exclude",n,e,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(e){r.push(_(0,"disjunctive",n,e,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(a){r.push(function(e,t,r,n){var a=e.getHierarchicalFacetByName(t),i=e._getHierarchicalFacetSeparator(a),o=r.split(i),c=s(n,function(e){return e.name===t}),l=o.reduce(function(e,t){var r=e&&s(e.data,function(e){return e.name===t});return void 0!==r?r:e},c),u=l&&l.count||0,d=l&&l.exhaustive||!1,h=l&&l.path||"";return{type:"hierarchical",attributeName:t,name:h,count:u,exhaustive:d}}(e,n,a,t.hierarchicalFacets))})}),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=g},7720:(e,t,r)=>{"use strict";var n=r(4765),a=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],s=a.obj[a.prop],o=Object.keys(s),c=0;c<o.length;++c){var l=o[c],u=s[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:s,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],a=0;a<r.length;++a)void 0!==r[a]&&n.push(r[a]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,a,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",l=0;l<o.length;++l){var u=o.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===n.RFC1738&&(40===u||41===u)?c+=o.charAt(l):u<128?c+=s[u]:u<2048?c+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?c+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&o.charCodeAt(l)),c+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return i(t)&&!i(r)&&(s=o(t,n)),i(t)&&i(r)?(r.forEach(function(r,i){if(a.call(t,i)){var s=t[i];s&&"object"==typeof s&&r&&"object"==typeof r?t[i]=e(s,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var s=r[i];return a.call(t,i)?t[i]=e(t[i],s,n):t[i]=s,t},s)}}},7723:e=>{"use strict";e.exports=window.wp.i18n},7749:(e,t,r)=>{"use strict";var n=r(849),a=r(8657);e.exports=function(e,t){var r={};return t.forEach(function(t){t.forEach(function(t,n){e.includes(t.objectID)||(r[t.objectID]?r[t.objectID]={indexSum:r[t.objectID].indexSum+n,count:r[t.objectID].count+1}:r[t.objectID]={indexSum:n,count:1})})}),function(e,t){var r=[];
12return Object.keys(e).forEach(function(n){e[n].count<2&&(e[n].indexSum+=100),r.push({objectID:n,avgOfIndices:e[n].indexSum/t})}),r.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})}(r,t.length).reduce(function(e,r){var i=n(a(t),function(e){return e.objectID===r.objectID});return i?e.concat(i):e},[])}},7764:(e,t,r)=>{"use strict";function n(e){return 1===e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}r.d(t,{s:()=>n})},7768:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(7835);function a(e){if(Array.isArray(e))return(0,n._)(e)}},7798:(e,t,r)=>{"use strict";function n(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.message,s=n.referer;if(!e)return!1;null===(r=e.setOpen)||void 0===r||r.call(e,!0);var o,c=null!==(t=null==i?void 0:i.trim())&&void 0!==t?t:"";return c?!(a(e)||!e.sendMessage||(e.sendMessage({text:c},s?{headers:{"x-algolia-referer":s}}:void 0),0)):(null===(o=e.focusInput)||void 0===o||o.call(e),!1)}function a(e){return"submitted"===(null==e?void 0:e.status)||"streaming"===(null==e?void 0:e.status)}r.d(t,{J:()=>n,m:()=>a})},7810:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(467),a=r(1893),i=r(5456),s=r(8542),o=r(1642);function c(e){return e.configure,(0,s._)(e,["configure"])}function l(){return{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,i._)((0,a._)({},t),(0,n._)({},r,c(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var s=e[r];return"object"!==(void 0===s?"undefined":(0,o._)(s))||null===s?t:(0,i._)((0,a._)({},t),(0,n._)({},r,c(s)))},{})}}}},7818:(e,t,r)=>{"use strict";function n(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],_n=!0,s=!1;try{for(r=r.call(e);!(_n=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);_n=!0);}catch(e){s=!0,a=e}finally{try{_n||null==r.return||r.return()}finally{if(s)throw a}}return i}}r.d(t,{_:()=>n})},7835:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{_:()=>n})},8062:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(1893),a=r(5456),i=r(633),s=r(6337),o=r(4652),c=r(172),l=r(5035),u=r(9734),d=r(4243),h=r(4182),p=(0,d.V)({name:"panel"}),m=(0,u.s)("Panel"),f=function(e){var t=e||{},r=t.templates,u=void 0===r?{}:r,d=t.hidden,f=void 0===d?function(){return!1}:d,g=t.collapsed,v=t.cssClasses,y=void 0===v?{}:v,w=document.createElement("div"),b=Boolean(g),_="function"==typeof g?g:function(){return!1}
12,x={root:(0,o.cx)(m(),y.root),noRefinementRoot:(0,o.cx)(m({modifierName:"noRefinement"}),y.noRefinementRoot),collapsibleRoot:(0,o.cx)(m({modifierName:"collapsible"}),y.collapsibleRoot),collapsedRoot:(0,o.cx)(m({modifierName:"collapsed"}),y.collapsedRoot),collapseButton:(0,o.cx)(m({descendantName:"collapseButton"}),y.collapseButton),collapseIcon:(0,o.cx)(m({descendantName:"collapseIcon"}),y.collapseIcon),body:(0,o.cx)(m({descendantName:"body"}),y.body),header:(0,o.cx)(m({descendantName:"header"}),y.header),footer:(0,o.cx)(m({descendantName:"footer"}),y.footer)};return function(e){return function(t){if(!t||!t.container)throw new Error(p("The `container` option is required in the widget within the panel."));var r=(0,h.e)(t.container),o={collapseButtonText:function(e){var t=e.collapsed;return'<svg\n class="'.concat(x.collapseIcon,'"\n style="width: 1em; height: 1em;"\n viewBox="0 0 500 500"\n >\n <path d="').concat(t?"M100 250l300-150v300z":"M250 400l150-300H100z",'" fill="currentColor" />\n </svg>')}},d=function(e){var t=e.containerNode,r=e.bodyContainerNode,n=e.cssClasses,a=e.templates;return function(e){var i=e.options,s=e.hidden,o=e.collapsible,u=e.collapsed;(0,c.XX)((0,c.h)(l.A,{cssClasses:n,hidden:s,collapsible:o,isCollapsed:u,templates:a,data:i,bodyElement:r}),t)}}({containerNode:r,bodyContainerNode:w,cssClasses:x,templates:(0,n._)({},o,u)}),m=e((0,a._)((0,n._)({},t),{container:w}
12));return(0,a._)((0,n._)({},m),{init:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a,o=(0,i._)(t,1)[0],c=(0,n._)({},m.getWidgetRenderState?m.getWidgetRenderState(o):{},o);d({options:c,hidden:!0,collapsible:b,collapsed:!1}),"function"==typeof m.init&&(a=m.init).call.apply(a,[this].concat((0,s._)(t)))},render:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a,o=(0,i._)(t,1)[0],c=(0,n._)({},m.getWidgetRenderState?m.getWidgetRenderState(o):{},o);d({options:c,hidden:Boolean(f(c)),collapsible:b,collapsed:Boolean(_(c))}),"function"==typeof m.render&&(a=m.render).call.apply(a,[this].concat((0,s._)(t)))},dispose:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a;if((0,c.XX)(null,r),"function"==typeof m.dispose)return(a=m.dispose).call.apply(a,[this].concat((0,s._)(t)))}})}}}},8078:(e,t,r)=>{"use strict";r.r(t),r.d(t,{apiClientVersion:()=>i,monitoringClient:()=>s});var n=r(4267),a=r(5375),i="1.49.2";function s(e,t,r){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,...s}){const o=(0,n.PA)(e,t,r),c=(0,n.zf)({hosts:[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}],...s,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"Monitoring",version:i}),baseHeaders:{"content-type":"text/plain",...o.headers(),...s.baseHeaders},baseQueryParameters:{...o.queryParameters(),...s.baseQueryParameters}});return{transporter:c,appId:e,apiKey:t,clearCache:()=>Promise.all([c.requestsCache.clear(),c.responsesCache.clear()]).then(()=>{}),get _ua(){return c.algoliaAgent.value},addAlgoliaAgent(e,t){c.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?c.baseQueryParameters["x-algolia-api-key"]=e:c.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return c.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return c.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return c.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return c.request(a,n)},getClusterIncidents({clusters:e},t){if(!e)throw new Error("Parameter `clusters` is required when calling `getClusterIncidents`.");const r={method:"GET",path:"/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},getClusterStatus({clusters:e},t){if(!e)throw new Error("Parameter `clusters` is required when calling `getClusterStatus`.");const r={method:"GET",path:"/1/status/{clusters}".replace("{clusters}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},getIncidents:e=>c.request({method:"GET",path:"/1/incidents",queryParameters:{},headers:{}},e),getIndexingTime({clusters:e},t){if(!e)throw new Error("Parameter `clusters` is required when calling `getIndexingTime`.");const r={method:"GET",path:"/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},getLatency({clusters:e},t){if(!e)throw new Error("Parameter `clusters` is required when calling `getLatency`.");const r={method:"GET",path:"/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},getMetrics({metric:e,period:t},r){if(!e)throw new Error("Parameter `metric` is required when calling `getMetrics`.");if(!t)throw new Error("Parameter `period` is required when calling `getMetrics`.");
12const n={method:"GET",path:"/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(e)).replace("{period}",encodeURIComponent(t)),queryParameters:{},headers:{}};return c.request(n,r)},getReachability({clusters:e},t){if(!e)throw new Error("Parameter `clusters` is required when calling `getReachability`.");const r={method:"GET",path:"/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(e)),queryParameters:{},headers:{}};return c.request(r,t)},getServers:e=>c.request({method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}},e),getStatus:e=>c.request({method:"GET",path:"/1/status",queryParameters:{},headers:{}},e)}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...r})}},8120:(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})},8130:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(1893),a=r(5456),i=r(2993),s=r(3266),o=r(5003),c=r(9124),l=r(3597),u=r(7219);function d(e){var t=e.numberLocale;return{formatNumber:function(e,r){return(0,u.Z)(Number(r(e)),t)},highlight:function(e,t){try{var r=JSON.parse(e);return t((0,i.A)((0,a._)((0,n._)({},r),{hit:this})))}catch(e){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r=JSON.parse(e);return t((0,s.A)((0,a._)((0,n._)({},r),{hit:this})))}catch(e){throw new Error('\n The reverseHighlight helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r=JSON.parse(e);return t((0,o.A)((0,a._)((0,n._)({},r),{hit:this})))}catch(e){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r=JSON.parse(e);return t((0,c.A)((0,a._)((0,n._)({},r),{hit:this})))}catch(e){throw new Error('\n The reverseSnippet helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r=JSON.parse(e),a=r.method,i=r.payload;return t((0,l.A)(a,(0,n._)({objectIDs:[this.objectID]},i)))}catch(e){throw new Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}}}},8175:(e,t,r)=>{"use strict";r.d(t,{m:()=>h});var n=r(1893),a=r(5456),i=r(8542),s=r(172),o=r(3099),c=r(5150),l=r(8796),u=r(8454),d=r(307);function h(e){var t=e.hit,r=e.attribute,h=e.cssClasses,p=(0,i._)(e,["hit","attribute","cssClasses"]),m=(0,c.E)(t._snippetResult,r)||[],f=(0,d.$)(m).map(function(e){var t=e.value;return(0,l.I)((0,u.x)(t||"")).map(function(e){var t=e.isHighlighted,r=(0,i._)(e,["isHighlighted"]);return(0,a._)((0,n._)({},r),{isHighlighted:!t})})});return(0,s.h)(o.m,(0,a._)((0,n._)({},p),{parts:f,classNames:h}))}},8207:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(1893),a=r(5456),i=r(4652),s=r(172),o=r(4041),c=function(e){var t=e.hasRefinements,r=e.refine,c=e.cssClasses,l=e.templateProps;return(0,s.h)("div",{className:c.root},(0,s.h)(o.A,(0,a._)((0,n._)({},l),{templateKey:"resetLabel",rootTagName:"button",rootProps:{className:(0,i.cx)(c.button,!t&&c.disabledButton),onClick:r,disabled:!t},data:{hasRefinements:t}})))}},8257:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var n=r(467),a=r(1893),i=r(5456),s=r(633),o=r(6337);function c(e){var t;return(null===(t=e.compositionFeedsResults)||void 0===t?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function l(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,o=n.requestParams,l=c(n),d=l&&i?l.map(function(e,t){return(0,a._)({indexName:i.index||e.index},(null==o?void 0:o[t])||e.params?{params:u((null==o?void 0:o[t])||(r=e.params,r.split("&").reduce(function(e,t){var r=(0,s._)(t.split("="),2),n=r[0],a=r[1];return e[n]=a?decodeURIComponent(a):"",e},{})))}:{});var r}):[];return e.concat(d)},[])],l=Object.keys(t).reduce(function(e,r){var n=c(t[r]);return n?e.concat(n):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var d=e.search.bind(e);e.search=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];var c=Array.isArray(t)?t.map(function(e){return(0,i._)((0,a._)({},e),{params:u(e.params)})}):u(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[c].concat((0,o._)(n))},function(){return d.apply(void 0,[t].concat((0,o._)(n)))})},e.transporter.responsesCache.set({method:"search",args:r},{results:l})}if(!("transporter"in e)){var h="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=(0,i._)((0,a._)({},e.cache),(0,n._)({},h,JSON.stringify({results:Object.keys(t).map(function(e){return c(t[e])})})))}}}function u(e){return Object.keys(e).map(function(t){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[a++]
12)})}("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r}).join("&")}},8411:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var n={"&":"&","<":"<",">":">",""":'"',"'":"'"},a=/&(amp|quot|lt|gt|#39);/g,i=RegExp(a.source);function s(e){return e&&i.test(e)?e.replace(a,function(e){return n[e]}):e}},8454:(e,t,r)=>{"use strict";r.d(t,{i:()=>s,x:()=>u});var n={"&":"&","<":"<",">":">",'"':""","'":"'"},a=/[&<>"']/g,i=RegExp(a.source);function s(e){return e&&i.test(e)?e.replace(a,function(e){return n[e]}):e}var o={"&":"&","<":"<",">":">",""":'"',"'":"'"},c=/&(amp|quot|lt|gt|#39);/g,l=RegExp(c.source);function u(e){return e&&l.test(e)?e.replace(c,function(e){return o[e]}):e}},8474:(e,t,r)=>{"use strict";function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{_:()=>n})},8539:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(9850),a=r(7438);function i(e,t,r,i){var s,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],c={type:t,attribute:r,name:i,escapedValue:(0,n.A)(i)},l=(0,a.I)(o,function(e){return e.name===r});if("hierarchical"===t){for(var u=function(e){l=l&&l.data&&(0,a.I)(Object.keys(l.data).map(p(l.data)),function(t){return t.name===h[e]})},d=e.getHierarchicalFacetByName(r),h=i.split(d.separator),p=function(e){return function(t){return e[t]}},m=0;void 0!==l&&m<h.length;++m)u(m);s=l&&l.count}else s=l&&l.data&&l.data[c.name];return void 0!==s&&(c.count=s),l&&void 0!==l.exhaustive&&(c.exhaustive=l.exhaustive),c}function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e||{},s=[],o=t.facetsRefinements,c=void 0===o?{}:o,l=t.facetsExcludes,u=void 0===l?{}:l,d=t.disjunctiveFacetsRefinements,h=void 0===d?{}:d,p=t.hierarchicalFacetsRefinements,m=void 0===p?{}:p,f=t.numericRefinements,g=void 0===f?{}:f,v=t.tagRefinements,y=void 0===v?[]:v;return Object.keys(c).forEach(function(e){c[e].forEach(function(r){s.push(i(t,"facet",e,r,a.facets))})}),Object.keys(u).forEach(function(e){u[e].forEach(function(t){s.push({type:"exclude",attribute:e,name:t,exclude:!0})})}),Object.keys(h).forEach(function(e){h[e].forEach(function(r){s.push(i(t,"disjunctive",e,(0,n.T)(r),a.disjunctiveFacets))})}),Object.keys(m).forEach(function(e){m[e].forEach(function(r){s.push(i(t,"hierarchical",e,r,a.hierarchicalFacets))})}),Object.keys(g).forEach(function(e){var t=g[e];Object.keys(t).forEach(function(r){var n=r,a=t[n];(Array.isArray(a)?a:[a]).forEach(function(t){s.push({type:"numeric",attribute:e,name:"".concat(t),numericValue:t,operator:n})})})}),y.forEach(function(e){s.push({type:"tag",attribute:"_tags",name:e})}),r&&t.query&&t.query.trim()&&s.push({attribute:"query",type:"query",name:t.query,query:t.query}),s}},8542:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(391);function a(e,t){if(null==e)return{};var r,a,i,s={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(e),i=0;i<r.length;i++)a=r[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a]);return s}if(s=(0,n._)(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),i=0;i<r.length;i++)a=r[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a]);return s}},8601:e=>{"use strict";function t(e,t){if(e!==t){var r=void 0!==e,n=null===e,a=void 0!==t,i=null===t;if(!i&&e>t||n&&a||!r)return 1;if(!n&&e<t||i&&r||!a)return-1}return 0}e.exports=function(e,r,n){if(!Array.isArray(e))return[];Array.isArray(n)||(n=[]);var a=e.map(function(e,t){return{criteria:r.map(function(t){return e[t]}),index:t,value:e}});return a.sort(function(e,r){for(var a=-1;++a<e.criteria.length;){var i=t(e.criteria[a],r.criteria[a]);if(i)return a>=n.length?i:"desc"===n[a]?-i:i}return e.index-r.index}),a.map(function(e){return e.value})}},8636:(e,t,r)=>{"use strict";var n=r(7720),a=r(4765),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Array.isArray,c=String.prototype.split,l=Array.prototype.push,u=function(e,t){l.apply(e,o(t)?t:[t])},d=Date.prototype.toISOString,h=a.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,r,a,i,s,l,d,h,m,f,g,v,y,w){var b,_=t;if("function"==typeof d?_=d(r,_):_ instanceof Date?_=f(_):"comma"===a&&o(_)&&(_=n.maybeMap(_,function(e){return e instanceof Date?f(e):e})),null===_){if(i)return l&&!y?l(r,p.encoder,w,"key",g):r;_=""}if("string"==typeof(b=_)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||n.isBuffer(_)){if(l){var x=y?r:l(r,p.encoder,w,"key",g);if("comma"===a&&y){for(var P=c.call(String(_),","),S="",k=0;k<P.length;++k)S+=(0===k?"":",")+v(l(P[k],p.encoder,w,"value",g));return[v(x)+"="+S]}return[v(x)+"="+v(l(_,p.encoder,w,"value",g))]}return[v(r)+"="+v(String(_))]}var R,T=[];
12if(void 0===_)return T;if("comma"===a&&o(_))R=[{value:_.length>0?_.join(",")||null:void 0}];else if(o(d))R=d;else{var E=Object.keys(_);R=h?E.sort(h):E}for(var C=0;C<R.length;++C){var I=R[C],q="object"==typeof I&&void 0!==I.value?I.value:_[I];if(!s||null!==q){var A=o(_)?"function"==typeof a?a(r,I):r:r+(m?"."+I:"["+I+"]");u(T,e(q,A,a,i,s,l,d,h,m,f,g,v,y,w))}}return T};e.exports=function(e,t){var r,n=e,c=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=a.formatters[r],s=p.filter;return("function"==typeof e.filter||o(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof c.filter?n=(0,c.filter)("",n):o(c.filter)&&(r=c.filter);var l,d=[];if("object"!=typeof n||null===n)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var f=0;f<r.length;++f){var g=r[f];c.skipNulls&&null===n[g]||u(d,m(n[g],g,h,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset))}var v=d.join(c.delimiter),y=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},8657:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},8688:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(1893),a=r(5456),i=r(4652),s=r(172),o=r(3395),c=r(5222),l=r(9734),u=r(3944),d=r(7798),h=r(4243),p=r(4182),m=(0,h.V)({name:"search-box"}),f=(0,l.s)("SearchBox"),g=(0,l.s)("AiModeButton"),v=function(e){var t=e||{},r=t.container,l=t.placeholder,h=void 0===l?"":l,v=t.cssClasses,y=void 0===v?{}:v,w=t.autofocus,b=void 0!==w&&w,_=t.searchAsYouType,x=void 0===_||_,P=t.ignoreCompositionEvents,S=void 0!==P&&P,k=t.showReset,R=void 0===k||k,T=t.showSubmit,E=void 0===T||T,C=t.showLoadingIndicator,I=void 0===C||C,q=t.queryHook,A=t.templates,N=void 0===A?{}:A,D=t.aiMode;if(!r)throw new Error(m("The `container` option is required."));var F=(0,p.e)(r),j={root:(0,i.cx)(f(),y.root),form:(0,i.cx)(f({descendantName:"form"}),y.form),input:(0,i.cx)(f({descendantName:"input"}),y.input),submit:(0,i.cx)(f({descendantName:"submit"}),y.submit),submitIcon:(0,i.cx)(f({descendantName:"submitIcon"}),y.submitIcon),reset:(0,i.cx)(f({descendantName:"reset"}),y.reset),resetIcon:(0,i.cx)(f({descendantName:"resetIcon"}),y.resetIcon),loadingIndicator:(0,i.cx)(f({descendantName:"loadingIndicator"}),y.loadingIndicator),loadingIcon:(0,i.cx)(f({descendantName:"loadingIcon"}),y.loadingIcon),aiModeButton:(0,i.cx)(g(),y.aiModeButton),aiModeIcon:(0,i.cx)(g({descendantName:"icon"}),y.aiModeIcon),aiModeLabel:(0,i.cx)(g({descendantName:"label"}),y.aiModeLabel)},O=(0,n._)({},u.A,N),M=function(e){var t=e.containerNode,r=e.cssClasses,n=e.placeholder,a=e.templates,i=e.autofocus,c=e.searchAsYouType,l=e.ignoreCompositionEvents,u=e.showReset,h=e.showSubmit,p=e.showLoadingIndicator,m=e.aiMode;return function(e){var f=e.refine,g=e.query,v=e.isSearchStalled,y=e.instantSearchInstance,w=function(){var e,t=y.mainIndex.getIndexId();return null===(e=y.renderState[t])||void 0===e?void 0:e.chat},b=m?function(e){(0,d.J)(w(),{message:e,referer:"ai-mode"})&&f("")}:void 0,_=m?(0,d.m)(w()):void 0;(0,s.XX)((0,s.h)(o.A,{query:g,placeholder:n,autofocus:i,refine:f,searchAsYouType:c,ignoreCompositionEvents:l,templates:a,showSubmit:h,showReset:u,showLoadingIndicator:p,isSearchStalled:v,cssClasse
12s:r,onAiModeClick:b,aiModeButtonDisabled:_}),t)}}({containerNode:F,cssClasses:j,placeholder:h,templates:O,autofocus:b,searchAsYouType:x,ignoreCompositionEvents:S,showReset:R,showSubmit:E,showLoadingIndicator:I,aiMode:D}),L=(0,c.A)(M,function(){(0,s.XX)(null,F)});return(0,n._)((0,a._)((0,n._)({},L({queryHook:q})),{$$widgetType:"ais.searchBox"}),D?{opensChat:!0}:{})}},8770:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(1893),a=r(5456),i=r(8542),s=r(4652),o=r(5450),c=r(4629),l=r(172),u=r(4041),d=r(7798),h=r(4243),p=r(69),m=r(513),f=(0,h.V)({name:"chatTrigger",connector:!0});function g(e){var t,r,n=null===(t=e.parent)||void 0===t?void 0:t.getIndexId();if(n)return null===(r=e.instantSearchInstance.renderState[n])||void 0===r?void 0:r.chat}var v,y,w,b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.l;return(0,p.t)(e,f()),function(r){var i=null!=r?r:{},s=null;function o(){if(s){var e,t=g(s);t&&(t.open?null===(e=t.setOpen)||void 0===e||e.call(t,!1):(0,d.J)(t))}}return{$$type:"ais.chatTrigger",opensChat:!0,init:function(t){s=t,e((0,a._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){s=t,e((0,a._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},dispose:function(){t()},getWidgetRenderState:function(e){var t,r=g(e);return{open:null!==(t=null==r?void 0:r.open)&&void 0!==t&&t,toggleOpen:o,widgetParams:i}},getRenderState:function(e,t){return(0,a._)((0,n._)({},e),{chatTrigger:this.getWidgetRenderState(t)})}}}},_=r(4182),x=r(9072),P=(0,h.V)({name:"chatTrigger"}),S=(v={createElement:l.h,Fragment:l.FK},y=v.createElement,w=(0,o.Q)({createElement:y}),function(e){var t=e.open,r=e.onClick,a=e.toggleIconComponent,o=e.classNames,l=void 0===o?{}:o,u=e.className,d=(0,i._)(e,["open","onClick","toggleIconComponent","classNames","className"]),h=y(t?c.Mt:c.BZ,{createElement:y});return y(w,(0,n._)({variant:"primary",size:"md",iconOnly:!0,className:(0,s.cx)("ais-ChatToggleButton",t&&"ais-ChatToggleButton--open",l.root,u),onClick:r},d),a?y(a,{isOpen:t}):h)});function k(e){var t,r=e||{},i=r.container,s=r.templates,o=void 0===s?{}:s,c=r.cssClasses,d=void 0===c?{}:c,h=r.floating,p=void 0===h||h?["ais-ChatToggleButton--floating"].concat(null!==(t=d.button)&&void 0!==t?t:[]):d.button;if(!i)throw new Error(P("The `container` option is required."));var m=(0,_.e)(i),f=(0,n._)({},o),g=b(function(e,t){var r=e.open,i=e.toggleOpen,s=e.instantSearchInstance,o=(0,x.C)({defaultTemplates:{},templatesConfig:s.templatesConfig,templates:f}),c=f.layout?function(e){return(0,l.h)(u.A,(0,a._)((0,n._)({},o),{templateKey:"layout",rootTagName:"fragment",data:e}))}:void 0,d=f.icon?function(e){var t=e.isOpen;return(0,l.h)(u.A,(0,a._)((0,n._)({},o),{templateKey:"icon",rootTagName:"span",data:{isOpen:t}}))}:void 0;c?(0,l.XX)((0,l.h)(c,{open:r,onClick:i,toggleIconComponent:d}),m):(0,l.XX)((0,l.h)(S,{open:r,onClick:i,toggleIconComponent:d,classNames:{root:p}}),m)},function(){return(0,l.XX)(null,m)});return(0,a._)((0,n._)({},g({})),{$$widgetType:"ais.chatTrigger"})}},8796:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(2783);function a(e){var t=n.sn.highlightPostTag,r=n.sn.highlightPreTag,a=e.split(r),i=a.shift(),s=i?[{value:i,isHighlighted:!1}]:[];return a.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}},8806:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{_:()=>n})},8882:(e,t,r)=>{"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{_:()=>n})},8965:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},9002:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=function(e,t,r,a){var i;t[0]=0;for(var s=1;s<t.length;s++){var o=t[s++],c=t[s]?(t[0]|=o?1:2,r[t[s++]]):t[++s];3===o?a[0]=c:4===o?a[1]=Object.assign(a[1]||{},c):5===o?(a[1]=a[1]||{})[t[++s]]=c:6===o?a[1][t[++s]]+=c+"":o?(i=e.apply(c,n(e,c,r,["",null])),a.push(i),c[0]?t[0]|=2:(t[s-2]=0,t[s]=i)):a.push(c)}return a},a=new Map;function i(e){var t=a.get(this);return t||(t=new Map,a.set(this,t)),(t=n(this,t.get(e)||(t.set(e,t=function(e){for(var t,r,n=1,a="",i="",s=[0],o=function(e){1===n&&(e||(a=a.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(0,e,a):3===n&&(e||a)?(s.push(3,e,a),n=2):2===n&&"..."===a&&e?s.push(4,e,0):2===n&&a&&!e?s.push(5,0,!0,a):n>=5&&((a||!e&&5===n)&&(s.push(n,0,a,r),n=6),e&&(s.push(n,e,0,r),n=6)),a=""},c=0;c<e.length;c++){c&&(1===n&&o(),o(c));for(var l=0;l<e[c].length;l++)t=e[c][l],1===n?"<"===t?(o(),s=[s],n=3):a+=t:4===n?"--"===a&&">"===t?(n=1,a=""):a=t+a[0]:i?t===i?i="":a+=t:'"'===t||"'"===t?i=t:">
12"===t?(o(),n=1):n&&("="===t?(n=5,r=a,a=""):"/"===t&&(n<5||">"===e[c][l+1])?(o(),3===n&&(s=s[0]),n=s,(s=s[0]).push(2,0,n),n=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),n=2):a+=t),3===n&&"!--"===a&&(n=4,s=s[0])}return o(),s}(e)),t),arguments,[])).length>1?t:t[0]}},9029:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(6184),a=r(1642);function i(e,t){return!t||"object"!==(0,a._)(t)&&"function"!=typeof t?(0,n._)(e):t}},9057:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]}r.d(t,{l:()=>n})},9072:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n=r(1893),a=r(6337),i=r(4176);function s(e){var t=e.defaultTemplates,r=e.templates,s=e.templatesConfig,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.s)((0,a._)(Object.keys(e||{})).concat((0,a._)(Object.keys(t)))).reduce(function(r,n){var a=e?e[n]:void 0,i=t[n],s=void 0!==i&&i!==a;return r.templates[n]=s?i:a,r.useCustomCompileOptions[n]=s,r},{templates:{},useCustomCompileOptions:{}})}(t,r);return(0,n._)({templatesConfig:s},o)}},9073:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(1893),a=r(5456),i=r(8542),s=r(1642);function o(e,t){var r,n=null===(r=e.getWidgetRenderState)||void 0===r?void 0:r.call(e,t),a=null;if(n&&n.widgetParams){var i=n.widgetParams;i.attribute?a=i.attribute:Array.isArray(i.attributes)&&(a=i.attributes[0])}if("string"!=typeof a)throw new Error("Could not find the attribute of the widget:\n\n".concat(JSON.stringify(e),"\n\nPlease check whether the widget's getWidgetRenderState returns widgetParams.attribute correctly."));return a}var c=r(4243),l=r(69),u=r(513),d=(0,c.V)({name:"dynamic-widgets",connector:!0}),h=r(9734),p=r(4182),m=(0,c.V)({name:"dynamic-widgets"}),f=(0,h.s)("DynamicWidgets");function g(e){var t=document.createElement("div");return t.className=f({descendantName:"widget"}),e.appendChild(t),t}var v=function(e){var t=e||{},r=t.container,c=t.widgets,h=t.fallbackWidget,v=(0,i._)(t,["container","widgets","fallbackWidget"]);if(!r)throw new Error(m("The `container` option is required."));if(!(c&&Array.isArray(c)&&c.every(function(e){return"function"==typeof e})))throw new Error(m("The `widgets` option expects an array of callbacks."));var y=(0,p.e)(r),w=document.createElement("div");w.className=f();var b=new Map,_=[],x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.l;return(0,l.t)(e,d()),function(r){var i=r.widgets,c=r.maxValuesPerFacet,l=void 0===c?20:c,u=r.facets,h=void 0===u?["*"]:u,p=r.transformItems,m=void 0===p?function(e){return e}:p,f=r.fallbackWidget;if(!(i&&Array.isArray(i)&&i.every(function(e){return"object"===(void 0===e?"undefined":(0,s._)(e))})))throw new Error(d("The `widgets` option expects an array of widgets."));if(!Array.isArray(h))throw new Error(d("The `facets` option only accepts an array of facets, you passed ".concat(JSON.stringify(h))));var g=new Map;return{$$type:"ais.dynamicWidgets",init:function(t){i.forEach(function(e){var r=o(e,t);g.set(r,{widget:e,isMounted:!1})}),e((0,a._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=t.parent,i=this.getWidgetRenderState(t),s=[],o=[];f&&i.attributesToRender.forEach(function(e){if(!g.has(e)){var t=f({attribute:e});g.set(e,{widget:t,isMounted:!1})}}),g.forEach(function(e,t){var r=e.widget,n=e.isMounted,a=i.attributesToRender.indexOf(t)>-1;!n&&a?(o.push(r),g.set(t,{widget:r,isMounted:!0})):n&&!a&&(s.push(r),g.set(t,{widget:r,isMounted:!1}))}),r.addWidgets(o),setTimeout(function(){return r.removeWidgets(s)},0),e((0,a._)((0,n._)({},i),{instantSearchInstance:t.instantSearchInstance}),!1)},dispose:function(e){var r=e.parent,n=[];g.forEach(function(e){var t=e.widget;e.isMounted&&n.push(t)}),r.removeWidgets(n),t()},getWidgetSearchParameters:function(e){return h.reduce(function(e,t){return e.addFacet(t)},e.setQueryParameters({maxValuesPerFacet:Math.max(l||0,e.maxValuesPerFacet||0)}))},getRenderState:function(e,t){return(0,a._)((0,n._)({},e),{dynamicWidgets:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,n,a,i,s=e.results;if(e.state,!s)return{attributesToRender:[],widgetParams:r};var o=m(null!==(t=null===(i=s.renderingContent)||void 0===i||null===(a=i.facetOrdering)||void 0===a||null===(n=a.facets)||void 0===n?void 0:n.order)&&void 0!==t?t:[],{results:s});if(!Array.isArray(o))throw new Error(d("The `transformItems` option expects a function that returns an Array."));return{attributesToRender:o,widgetParams:r}}}}}(function(e,t){var r=e.attributesToRender;t&&y.appendChild(w),r.forEach(function(e){if(b.has(e)){var t=b.get(e);w.appendChild(t)}})},function(){y.removeChild(w)}),P=x((0,a._)((0,n._)({},v),{widgets:_,fallbackWidget:"function"==typeof h?function(e){var t=e.attribute,r=g(w);return b.set(t,r),h({attribute:t,container:r})}:void 0}));return(0,a._)((0,n._)({}
vendor: 8,568 bytes, line 12
12,P),{init:function(e){c.forEach(function(t){var r=g(w),n=t(r),a=o(n,e);b.set(a,r),_.push(n)}),P.init(e)},$$widgetType:"ais.dynamicWidgets"})}},9110:e=>{"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).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},{})}},9124:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(4354),a=r(405),i=r(2735),s=r(5814),o=r(8120),c=r(6520),l=(0,n.s)("ReverseSnippet");function u(e){var t=e.attribute,r=e.highlightedTagName,n=void 0===r?"mark":r,u=e.hit,d=e.cssClasses,h=void 0===d?{}:d,p=((0,o.E)(u._snippetResult,t)||{}).value,m=void 0===p?"":p,f=l({descendantName:"highlighted"})+(h.highlighted?" ".concat(h.highlighted):"");return(0,a.G)((0,c.Y)((0,s.I)(m))).replace(new RegExp(i.s.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(i.s.highlightPostTag,"g"),"</".concat(n,">"))}},9126:(e,t,r)=>{"use strict";function n(e,t){return e.toLocaleString(t)}r.d(t,{Z:()=>n})},9127: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},9151:(e,t,r)=>{"use strict";function n(e,t,r){return e.state.isHierarchicalFacet(t)?e.state.isHierarchicalFacetRefined(t,r):e.state.isConjunctiveFacet(t)?e.state.isFacetRefined(t,r):e.state.isDisjunctiveFacetRefined(t,r)}r.d(t,{f:()=>n})},9228:(e,t,r)=>{"use strict";var n=r(4728);function a(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var i={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:i._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,n)})}),t.getRefinedHierarchicalFacets().forEach(function(n){var a=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),o=t._getHierarchicalFacetSeparator(a);if(s.length>0&&s[0].split(o).length>1){var c=s[0].split(o).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:a.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(o)})},[]);c.forEach(function(n,s){var o=i._getDisjunctiveFacetSearchParams(t,n.attribute,0===s);function l(e){return a.attributes.some(function(t){return t===e.split(":")[0]})}var u=(o.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!l(e)});r.length>0&&e.push(r)}return"string"!=typeof t||l(t)||e.push(t),e},[]),d=c[s-1];s>0?o.facetFilters=u.concat(d.attribute+":"+d.value):u.length>0?o.facetFilters=u:delete o.facetFilters,r.push({indexName:e,params:o})})}}),r},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:i._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(i._getHitsHierarchicalFacetsAttributes(e)).sort(),r=i._getFacetFilters(e),s=i._getNumericFilters(e),o=i._getTagFilters(e),c={};return t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s),a(n({},e.getQueryParams(),c))},_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(i._getHitsHierarchicalFacetsAttributes(e)).sort(),r=i._getFacetFilters(e),s=i._getNumericFilters(e),o=i._getTagFilters(e),c={};t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s);var l=e.getQueryParams();return delete l.highlightPreTag,delete l.highlightPostTag,delete l.index,a(n({},l,c))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=i._getFacetFilters(e,t,r),o=i._getNumericFilters(e,t),c=i._getTagFilters(e),l={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(l.tagFilters=c);var u=e.getHierarchicalFacetByName(t);return l.facets=u?i._getDisjunctiveHierarchicalFacetAttribute(e,u,r):t,o.length>0&&(l.numericFilters=o),s.length>0&&(l.facetFilters=s),a(n({},e.getQueryParams(),l))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var a=e.numericRefinements[n]||{};Object.keys(a).forEach(function(e){var i=a[e]||[];t!==n&&i.forEach(function(t){if(Array.isArray(t)){var a=t.map(function(t){return n+e+t});r.push(a)}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=[],a=e.facetsRefinements||{};Object.keys(a).sort().forEach(function(e){(a[e]||[]).slice().sort().forEach(function(t){n.push(e+":"+t)})});var i=e.facetsExcludes||{};Object.keys(i).sort().forEach(function(e){(i[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 a=[];r.slice().sort().forEach(function(t){a.push(e+":"+t)}),n.push(a)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).sort().forEach(function(a){var i=(o[a]||[])[0];if(void 0!==i){var s,c,l=e.getHierarchicalFacetByName(a),u=e._getHierarchicalFacetSeparator(l),d=e._getHierarchicalRootPath(l);if(t===a){if(-1===i.indexOf(u)||!d&&!0===r||d&&d.split(u).length===i.split(u).length)return;d?(c=d.split(u).length-1,i=d):(c=i.split(u).length-2,i=i.slice(0,i.lastIndexOf(u))),s=l.attributes[c]}else c=i.split(u).length-1,s=l.attributes[c];s&&n.push([s+":"+i])}}),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 a=e._getHierarchicalFacetSeparator(r),i=n.split(a).length,s=r.attributes.slice(0,i+1);return t.concat(s)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var a=e._getHierarchicalRootPath(t),i=0;return a&&(i=a.split(n).length),[t.attributes[i]]}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 o=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,c={facetQuery:t,facetName:e};return"number"==typeof r&&(c.maxFacetHits=r),a(n({},i._getHitsSearchParams(o),c))}};e.exports=i},9235:(e,t,r)=>{"use strict";r.d(t,{Y:()=>h});var n=r(1893),a=r(5456),i=r(8542),s=r(172),o=r(1119),c=r(5150),l=r(8796),u=r(8454),d=r(307);function h(e){var t=e.hit,r=e.attribute,h=e.cssClasses,p=(0,i._)(e,["hit","attribute","cssClasses"]),m=(0,c.E)(t._snippetResult,r)||[],f=(0,d.$)(m).map(function(e){var t=e.value;return(0,l.I)((0,u.x)(t||""))});return(0,s.h)(o.Y,(0,a._)((0,n._)({},p),{parts:f,classNames:h}))}},9254:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(1893),a=r(5456),i=r(4652),s=r(172),o=r(8207),c=r(830),l=r(9734),u=r(1026),d=r(4243),h=r(4182),p=r(9072),m=(0,d.V)({name:"clear-refinements"}),f=(0,l.s)("ClearRefinements"),g=function(e){var t=e||{},r=t.container,l=t.templates,d=void 0===l?{}:l,g=t.includedAttributes,v=t.excludedAttributes,y=t.transformItems,w=t.cssClasses,b=void 0===w?{}:w;if(!r)throw new Error(m("The `container` option is required."));var _=(0,h.e)(r),x={root:(0,i.cx)(f(),b.root),button:(0,i.cx)(f({descendantName:"button"}),b.button),disabledButton:(0,i.cx)(f({descendantName:"button",modifierName:"disabled"}),b.disabledButton)},P=function(e){var t=e.containerNode,r=e.cssClasses,n=e.renderState,a=e.templates;return function(e,i){var c=e.refine,l=e.canRefine,d=e.instantSearchInstance;
12i?n.templateProps=(0,p.C)({defaultTemplates:u.A,templatesConfig:d.templatesConfig,templates:a}):(0,s.XX)((0,s.h)(o.A,{refine:c,cssClasses:r,hasRefinements:l,templateProps:n.templateProps}),t)}}({containerNode:_,cssClasses:x,renderState:{},templates:d}),S=(0,c.A)(P,function(){return(0,s.XX)(null,_)});return(0,a._)((0,n._)({},S({includedAttributes:g,excludedAttributes:v,transformItems:y})),{$$widgetType:"ais.clearRefinements"})}},9352:(e,t,r)=>{"use strict";function n(){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)})}r.d(t,{G:()=>n})},9407:(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 a(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{_:()=>a})},9472:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Lr});var n=r(4880),a=r(494),i=r(9407),s=r(467),o=r(884),c=r(1893),l=r(5456),u=r(8542),d=r(633),h=r(5450),p=r(4629),m=r(4652),f=r(6337);function g(e,t){return e.slice(0,t.length)===t}var v="algolia_search_index",y=function(e){return e.parts.map(function(e){return"text"in e?e.text:""}).join("")},w=function(e){return g(e.type,"tool-")},b=function(e){if(e){if(Array.isArray(e.facet_filters))return e.facet_filters;var t=Object.entries(e).reduce(function(e,t){var r=(0,d._)(t,2),n=r[0],a=r[1];if(!g(n,"facet_")||!Array.isArray(a))return e;var i=n.slice(6),s=a.filter(function(e){return"string"==typeof e});return i&&s.length>0&&e.push(s.map(function(e){return"".concat(i,":").concat(e)})),e},[]);return t.length>0?t:void 0}};const _=window.React;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x.apply(this,arguments)}const P=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),S={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"Â ",quot:"â"},k=["style","script","pre"],R=["src","href","data","formAction","srcDoc","action"],T=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,E=/\n{2,}$/,C=/^(\s*>[\s\S]*?)(?=\n\n|$)/,I=/^ *> ?/gm,q=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,A=/^ {2,}\n/,N=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,D=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,F=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,j=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,O=/^(?:\n *)*\n/,M=/\r\n?/g,L=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,H=/^\[\^([^\]]+)]/,$=/\f/g,U=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,B=/^\s*?\[(x|\s)\]/,W=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Q=/^([^\n]+)\n *(=|-)\2{2,} *\n/,V=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,K=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,G=/^<!--[\s\S]*?(?:-->)/,J=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,X=/^\{.*\}$/,Y=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ee=/^<([^ >]+[:@\/][^ >]+)>/,te=/-([a-z])?/gi,re=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,ne=/^[^\n]+(?: \n|\n{2,})/,ae=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,ie=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,se=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oe=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ce=/\t/g,le=/(^ *\||\| *$)/g,ue=/^ *:-+: *$/,de=/^ *:-+ *$/,he=/^ *-+: *$/,pe=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,me="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",fe=RegExp(`^([*_])\\1${pe(1)}${me}\\1\\1(?!\\1)`),ge=RegExp(`^([*_])${pe(0)}${me}\\1(?!\\1)`),ve=RegExp(`^(==)${pe(0)}${me}
vendor: 5,122 bytes, line 12
12\\1`),ye=RegExp(`^(~~)${pe(0)}${me}\\1`),we=/^(:[a-zA-Z0-9-_]+:)/,be=/^\\([^0-9A-Za-z\s])/,_e=/\\([^0-9A-Za-z\s])/g,xe=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Pe=/^\n+/,Se=/^([ \t]*)/,ke=/(?:^|\n)( *)$/,Re="(?:\\d+\\.)",Te="(?:[*+-])";function Ee(e){return"( *)("+(1===e?Re:Te)+") +"}const Ce=Ee(1),Ie=Ee(2);function qe(e){return RegExp("^"+(1===e?Ce:Ie))}const Ae=qe(1),Ne=qe(2);function De(e){return RegExp("^"+(1===e?Ce:Ie)+"[^\\n]*(?:\\n(?!\\1"+(1===e?Re:Te)+" )[^\\n]*)*(\\n|$)","gm")}const Fe=De(1),je=De(2);function Oe(e){const t=1===e?Re:Te;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Me=Oe(1),Le=Oe(2);function He(e,t){const r=1===t,n=r?Me:Le,a=r?Fe:je,i=r?Ae:Ne;return{t:e=>i.test(e),o:Xe(function(e,t){const r=ke.exec(t.prevCapture);return r&&(t.list||!t.inline&&!t.simple)?n.exec(e=r[1]+e):null}),i:1,u(e,t,n){const s=r?+e[2]:void 0,o=e[0].replace(E,"\n").match(a);let c=!1;return{items:o.map(function(e,r){const a=i.exec(e)[0].length,s=RegExp("^ {1,"+a+"}","gm"),l=e.replace(s,"").replace(i,""),u=r===o.length-1,d=-1!==l.indexOf("\n\n")||u&&c;c=d;const h=n.inline,p=n.list;let m;n.list=!0,d?(n.inline=!1,m=We(l)+"\n\n"):(n.inline=!0,m=We(l));const f=t(m,n);return n.inline=h,n.list=p,f}),ordered:r,start:s}},l:(t,r,n)=>e(t.ordered?"ol":"ul",{key:n.key,start:"20"===t.type?t.start:void 0},t.items.map(function(t,a){return e("li",{key:a},r(t,n))}))}}const $e=RegExp("^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ue=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Be(e){return"string"==typeof e}function We(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function ze(e,t){return e.startsWith(t)}function Qe(e,t,r){if(Array.isArray(r)){for(let t=0;t<r.length;t++)if(ze(e,r[t]))return!0;return!1}return r(e,t)}function Ve(e){return e.replace(/[ÃÃÃÃÃÃ
à áâãäåæÃ]/g,"a").replace(/[çÃ]/g,"c").replace(/[ðÃ]/g,"d").replace(/[ÃÃÃÃéèêë]/g,"e").replace(/[ÃïÃîÃÃÃì]/g,"i").replace(/[Ãñ]/g,"n").replace(/[øÃÅÅÃõÃôÃóÃò]/g,"o").replace(/[ÃüÃûÃúÃù]/g,"u").replace(/[ŸÿÃý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Ke(e){return he.test(e)?"right":ue.test(e)?"center":de.test(e)?"left":null}function Ge(e,t,r,n){const a=r.inTable;r.inTable=!0;let i=[[]],s="";function o(){if(!s)return;const e=i[i.length-1];e.push.apply(e,t(s,r)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((e,t,r)=>{"|"===e.trim()&&(o(),n)?0!==t&&t!==r.length-1&&i.push([]):s+=e}),o(),r.inTable=a,i}function Je(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(le,"").split("|").map(Ke):[],a=e[3]?function(e,t,r){return e.trim().split("\n").map(function(e){return Ge(e,t,r,!0)})}(e[3],t,r):[],i=Ge(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:n,cells:a,header:i,type:"25"}:{children:i,type:"21"}}function Ze(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function Xe(e){return e.inline=1,e}function Ye(e){return Xe(function(t,r){return r.inline?e.exec(t):null})}function et(e){return Xe(function(t,r){return r.inline||r.simple?e.exec(t):null})}function tt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function rt(e){return Xe(function(t){return e.exec(t)})}const nt=/(javascript|vbscript|data(?!:image)):/i;function at(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(nt.test(t))return null}catch(e){return null}return e}function it(e){return e?e.replace(_e,"$1"):e}function st(e,t,r){const n=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;const i=e(t,r);return r.inline=n,r.simple=a,i}function ot(e,t,r){const n=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;const i=e(t,r);return r.inline=n,r.simple=a,i}function ct(e,t,r){const n=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=n,a}const lt=(e,t,r)=>({children:st(t,e[2],r)});function ut(){return{}}function dt(){return null}function ht(...e){return e.filter(Boolean).join(" ")}function pt(e,t,r){let n=e;const a=t.split(".");for(;a.length&&(n=n[a[0]],void 0!==n);)a.shift();return n||r}var mt="algolia_search_index",ft=function(e){navigator.clipboard.writeText(y(e))};function gt(e,t){var r,n;return e.message===t.message&&e.status===t.status&&e.suggestionsElement===t.suggestionsElement&&(null===(r=e.feedbackState)||void 0===r?void 0:r[e.message.id])===(null===(n=t.feedbackState)||void 0===n?void 0:n[t.message.id])}function vt(e){var t=e.createElement,r=e.Fragment,n=function(e){var t=e.createElement,r=(0,h.Q)({createElement:t});return function(e){var n=e.classNames,a=void 0===n?{}:n,i=e.message,s=e.status,o=e.side,d=void 0===o?"left":o,h=e.variant,f=void 0===h?"subtle":h,v=e.actions,y=void 0===v?[]:v,w=e.autoHideActions,b=void 0!==w&&w,E=e.leadingComponent,le=e.actionsComponent,ue=e.footerComponent,de=e.tools,he=void 0===de?{}:de,pe=e.indexUiState,me=e.setIndexUiState,_e=e.messages,ke=e.onClose,Re=e.translations,Te=e.suggestionsElement,Ee=e.parseMarkdown,Ce=void 0===Ee||Ee,Ie
12=(0,u._)(e,["classNames","message","status","side","variant","actions","autoHideActions","leadingComponent","actionsComponent","footerComponent","tools","indexUiState","setIndexUiState","messages","onClose","translations","suggestionsElement","parseMarkdown"]),qe=(0,c._)({messageLabel:"Message",actionsLabel:"Message actions"},Re),Ae=Boolean(E),Ne=Boolean(y.length>0||le)&&"ready"===s,De={root:(0,m.cx)("ais-ChatMessage","ais-ChatMessage--".concat(d),"ais-ChatMessage--".concat(f),b&&"ais-ChatMessage--auto-hide-actions",a.root),container:(0,m.cx)("ais-ChatMessage-container",a.container),leading:(0,m.cx)("ais-ChatMessage-leading",a.leading),content:(0,m.cx)("ais-ChatMessage-content",a.content),message:(0,m.cx)("ais-ChatMessage-message",a.message),actions:(0,m.cx)("ais-ChatMessage-actions",a.actions),footer:(0,m.cx)("ais-ChatMessage-footer",a.footer)};return t("article",(0,l._)((0,c._)({},Ie),{className:(0,m.cx)(De.root,Ie.className),"aria-label":qe.messageLabel}),t("div",{className:(0,m.cx)(De.container)},Ae&&t("div",{className:(0,m.cx)(De.leading)},E&&t(E,null)),t("div",{className:(0,m.cx)(De.content)},t("div",{className:(0,m.cx)(De.message)},i.parts.map(function(e,r){if("step-start"===e.type)return null;if("text"===e.type){if(e.text.startsWith("<context>")&&e.text.endsWith("</context>"))return null;if(!Ce)return t("p",{key:"".concat(i.id,"-").concat(r),className:"ais-ChatMessage-text"},e.text);var n=function(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?x({},S,t.namedCodesToUnicode):S;const r=t.slugify||Ve,n=t.sanitizer||at,a=t.createElement||_.createElement,i=[C,D,F,t.enforceAtxHeadings?z:W,Q,re,Me,Le],s=[...i,ne,V,G,Z];function o(e,t){for(let r=0;r<e.length;r++)if(e[r].test(t))return!0;return!1}function c(e,r,...n){const i=pt(t.overrides,e+".props",{});return a(function(e,t){const r=pt(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:pt(t,e+".component",e):e}(e,t.overrides),x({},r,i,{className:ht(null==r?void 0:r.className,i.className)||void 0}),...n)}function l(e){e=e.replace(U,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===oe.test(e));const n=f(m(r?e:We(e).replace(Pe,"")+"\n\n",{inline:r}));for(;Be(n[n.length-1])&&!n[n.length-1].trim();)n.pop();if(null===t.wrapper)return n;
vendor: 8,782 bytes, line 12
12const i=t.wrapper||(r?"span":"div");let s;if(n.length>1||t.forceWrapper)s=n;else{if(1===n.length)return s=n[0],"string"==typeof s?c("span",{key:"outer"},s):s;s=null}return a(i,{key:"outer"},s)}function u(e,t){if(!t||!t.trim())return null;const r=t.match(T);return r?r.reduce(function(t,r){const a=r.indexOf("=");if(-1!==a){const i=function(e){return-1!==e.indexOf("-")&&null===e.match(J)&&(e=e.replace(te,function(e,t){return t.toUpperCase()})),e}(r.slice(0,a)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(r.slice(a+1).trim()),o=P[i]||i;if("ref"===o)return t;const c=t[o]=function(e,t,r,n){return"style"===t?function(e){const t=[];let r="",n=!1,a=!1,i="";if(!e)return t;for(let s=0;s<e.length;s++){const o=e[s];if('"'!==o&&"'"!==o||n||(a?o===i&&(a=!1,i=""):(a=!0,i=o)),"("===o&&r.endsWith("url")?n=!0:")"===o&&n&&(n=!1),";"!==o||a||n)r+=o;else{const e=r.trim();if(e){const r=e.indexOf(":");if(r>0){const n=e.slice(0,r).trim(),a=e.slice(r+1).trim();t.push([n,a])}}r=""}}const s=r.trim();if(s){const e=s.indexOf(":");if(e>0){const r=s.slice(0,e).trim(),n=s.slice(e+1).trim();t.push([r,n])}}return t}(r).reduce(function(t,[r,a]){return t[r.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=n(a,e,r),t},{}):-1!==R.indexOf(t)?n(it(r),e,t):(r.match(X)&&(r=it(r.slice(1,r.length-1))),"true"===r||"false"!==r&&r)}(e,i,s,n);"string"==typeof c&&(V.test(c)||Z.test(c))&&(t[o]=l(c.trim()))}else"style"!==r&&(t[P[r]||r]=!0);return t},{}):null}const d=[],h={},p={0:{t:[">"],o:tt(C),i:1,u(e,t,r){const[,n,a]=e[0].replace(I,"").match(q);return{alert:n,children:t(a,r)}},l(e,t,n){const a={key:n.key};return e.alert&&(a.className="markdown-alert-"+r(e.alert.toLowerCase(),Ve),e.children.unshift({attrs:{},children:[{type:"27",text:e.alert}],noInnerParse:!0,type:"11",tag:"header"})),c("blockquote",a,t(e.children,n))}},1:{t:[" "],o:rt(A),i:1,u:ut,l:(e,t,r)=>c("br",{key:r.key})},2:{t:["--","__","**","- ","* ","_ "],o:tt(N),i:1,u:ut,l:(e,t,r)=>c("hr",{key:r.key})},3:{t:[" "],o:tt(F),i:0,u:e=>({lang:void 0,text:it(We(e[0].replace(/^ {4}/gm,"")))}),l:(e,t,r)=>c("pre",{key:r.key},c("code",x({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text))},4:{t:["```","~~~"],o:tt(D),i:0,u:e=>({attrs:u("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{t:["`"],o:et(j),i:3,u:e=>({text:it(e[2])}),l:(e,t,r)=>c("code",{key:r.key},e.text)},6:{t:["[^"],o:tt(L),i:0,u:e=>(d.push({footnote:e[2],identifier:e[1]}),{}),l:dt},7:{t:["[^"],o:Ye(H),i:1,u:e=>({target:"#"+r(e[1],Ve),text:e[1]}),l:(e,t,r)=>c("a",{key:r.key,href:n(e.target,"a","href")},c("sup",{key:r.key},e.text))},8:{t:["[ ]","[x]"],o:Ye(B),i:1,u:e=>({completed:"x"===e[1].toLowerCase()}),l:(e,t,r)=>c("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:tt(t.enforceAtxHeadings?z:W),i:1,u:(e,t,n)=>({children:st(t,e[2],n),id:r(e[2],Ve),level:e[1].length}),l:(e,t,r)=>c("h"+e.level,{id:e.id,key:r.key},t(e.children,r))},10:{t:e=>{const t=e.indexOf("\n");return t>0&&t<e.length-1&&("="===e[t+1]||"-"===e[t+1])},o:tt(Q),i:1,u:(e,t,r)=>({children:st(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{t:["<"],o:rt(V),i:1,u(e,t,r){const[,n]=e[3].match(Se),a=RegExp("^"+n,"gm"),i=e[3].replace(a,""),c=o(s,i)?ct:st,l=e[1].toLowerCase(),d=-1!==k.indexOf(l),h=(d?l:e[1]).trim(),p={attrs:u(h,e[2]),noInnerParse:d,tag:h};if(r.inAnchor=r.inAnchor||"a"===l,d)p.text=e[3];else{const e=r.inHTML;r.inHTML=!0,p.children=c(t,i,r),r.inHTML=e}return r.inAnchor=!1,p},l:(e,t,r)=>c(e.tag,x({key:r.key},e.attrs),e.text||(e.children?t(e.children,r):""))},13:{t:["<"],o:rt(Z),i:1,u(e){const t=e[1].trim();return{attrs:u(t,e[2]||""),tag:t}},l:(e,t,r)=>c(e.tag,x({},e.attrs,{key:r.key}))},12:{t:["\x3c!--"],o:rt(G),i:1,u:()=>({}),l:dt},14:{t:["!["],o:et(Ue),i:1,u:e=>({alt:it(e[1]),target:it(e[2]),title:it(e[3])}),l:(e,t,r)=>c("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:n(e.target,"img","src")})},15:{t:["["],o:Ye($e),i:3,u:(e,t,r)=>({children:ot(t,e[1],r),target:it(e[2]),title:it(e[3])}),l:(e,t,r)=>c("a",{key:r.key,href:n(e.target,"a","href"),title:e.title},t(e.children,r))},16:{t:["<"],o:Ye(ee),i:0,u(e){let t=e[1],r=!1;return-1!==t.indexOf("@")&&-1===t.indexOf("//")&&(r=!0,t=t.replace("mailto:","")),{children:[{text:t,type:"27"}],target:r?"mailto:"+t:t,type:"15"}}},17:{t:(e,r)=>!r.inAnchor&&!t.disableAutoLink&&(ze(e,"http://")||ze(e,"https://")),o:Ye(Y),i:0,u:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},20:He(c,1),33:He(c,2),19:{t:["\n"],o:tt(O),i:3,u:ut,l:()=>"\n"},21:{o:Xe(function(e,t){if(t.inline||t.simple||t.inHTML&&-1===e.indexOf("\n\n")&&-1===t.prevCapture.indexOf("\n\n"))return null;let r="",n=0;for(;;){const t=e.indexOf("\n",n),a=e.slice(n,-1===t?void 0:t+1);if(o(i,a))break;if(r+=a,-1===t||!a.trim())break;n=t+1}const a=We(r);return""===a?null:[r,,a]}),i:3,u:lt,l:(e,t,r)=>c("p",{key:r.key},t(e.children,r))},22:{t:["["],o:Ye(ae),i:0,u:e=>(h[e[1]]={target:e[2],title:e[4]},{}),l:dt},23:{t:["!["],o:et(ie),i:0,u:e=>({alt:e[1]?it(e[1]):void 0,ref:e[2]}),l:(e,t,r)=>h[e.ref]?c("img",{key:r.key,alt:e.alt,src:n(h[e.ref].target,"img","src"),title:h[e.ref].title}):null},24:{t:e=>"["===e[0]&&-1===e.indexOf("]("),o:Ye(se),i:0,u:(e,t,r)=>({children:t(e[1],r),fallbackChildren:e[0],ref:e[2]}),l:(e,t,r)=>h[e.ref]?c("a",{key:r.key,href:n(h[e.ref].target,"a","href"),title:h[e.ref].title},t(e.children,r)):c("span",{key:r.key},e.fallbackChildren)},25:{t:["|"],o:tt(re),i:1,u:Je,l(e,t,r){const n=e;return c("table",{key:r.key},c("thead",null,c("tr",null,n.header.map(function(e,a){return c("th",{key:a,style:Ze(n,a)},t(e,r))}))),c("tbody",null,n.cells.map(function(e,a){return c("tr",{key:a},e.map(function(e,a){return c("td",{key:a,style:Ze(n,a)},t(e,r))}))})))}},27:{o:Xe(function(e,t){let r;return ze(e,":")&&(r=we.exec(e)),r||xe.exec(e)}),i:4,u(e){const r=e[0];return{text:-1===r.indexOf("&")?r:r.replace(K,(e,r)=>t.namedCodesToUnicode[r]||e)}},l:e=>e.text},28:{t:["**","__"],o:et(fe),i:2,u:(e,t,r)=>({children:t(e[2],r)}),l:(e,t,r)=>c("strong",{key:r.key},t(e.children,r))},29:{t:e=>{const t=e[0];return("*"===t||"_"===t)&&e[1]!==t},o:et(ge),i:3,u:(e,t,r)=>({children:t(e[2],r)}),l:(e,t,r)=>c("em",{key:r.key},t(e.children,r))},30:{t:["\\"],o:et(be),i:1,u:e=>({text:e[1],type:"27"})},31:{t:["=="],o:et(ve),i:3,u:lt,l:(e,t,r)=>c("mark",{key:r.key},t(e.children,r))},32:{t:["~~"],o:et(ye),i:3,u:lt,l:(e,t,r)=>c("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete p[11],delete p[13]);const m=function(e){var t=Object.keys(e);function r(n,a){var i=[];if(a.prevCapture=a.prevCapture||"",n.trim())for(;n;)for(var s=0;s<t.length;){var o=t[s],c=e[o];if(!c.t||Qe(n,a,c.t)){var l=c.o(n,a);if(l&&l[0]){n=n.substring(l[0].length);var u=c.u(l,r,a);a.prevCapture+=l[0],u.type||(u.type=o),i.push(u);break}s++}else s++}return a.prevCapture="",i}return t.sort(function(t,r){return e[t].i-e[r].i||(t<r?-1:1)}),function(e,t){return r(function(e){return e.replace(M,"\n").replace($,"").replace(ce," ")}(e),t)}}(p),f=function(e,t){return function r(n,a={}){if(Array.isArray(n)){const e=a.key,t=[];let i=!1;for(let e=0;e<n.length;e++){a.key=e;const s=r(n[e],a),o=Be(s);o&&i?t[t.length-1]+=s:null!==s&&t.push(s),i=o}return a.key=e,t}return function(r,n,a){const i=e[r.type].l;return t?t(()=>i(r,n,a),r,n,a):i(r,n,a)}(n,r,a)}}(p,t.renderRule),g=l(e);return d.length?c("div",null,g,c("footer",{key:"footer"},d.map(function(e){return c("div",{id:r(e.identifier,Ve),key:e.identifier},e.identifier,f(m(e.footnote,{inline:!0})))}))):g}(e.text,{createElement:t,disableParsingRawHTML:!0});return t("span",{key:"".concat(i.id,"-").concat(r)},n)}if(g(e.type,"tool-")){var a,s=e.type.replace("tool-",""),o=he[s];if(!o&&g(s,"".concat(mt,"_"))&&(o=he[mt]),!0===(null===(a=i.metadata)||void 0===a?void 0:a.displayResultsEnabled)&&o&&o===he[mt])return null;if(o){var c=o.layoutComponent,l=e;return("input-streaming"!==l.state||o.streamInput)&&c?t("div",{key:"".concat(i.id,"-").concat(r),className:"ais-ChatMessage-tool"},t(c,{message:l,indexUiState:pe,setIndexUiState:me,messages:_e,addToolResult:function(t){var r;return null===(r=o.addToolResult)||void 0===r?void 0:r.call(o,{output:t.output,tool:e.type,toolCallId:l.toolCallId})},applyFilters:o.applyFilters,sendEvent:o.sendEvent||function(){},onClose:ke})):null}}return null})),Te,Ne&&t("div",{className:(0,m.cx)(De.actions),"aria-label":qe.actionsLabel},le?t(le,{actions:y,message:i}):y.map(function(e,n){return t(r,{key:n,variant:"ghost",size:"sm",iconOnly:!0,className:"ais-ChatMessage-action",disabled:e.disabled,"aria-label":e.title,onClick:function(){var t;return null===(t=e.onClick)||void 0===t?void 0:t.call(e,i)}},e.icon?t(e.icon,null):t(p.ZB,{createElement:t}))})),ue&&t("div",{className:(0,m.cx)(De.footer)},t(ue,null)))))}}({createElement:t,Fragment:r});
12return function(e){var r=e.message,a=e.status,i=e.userMessageProps,s=e.assistantMessageProps,o=e.tools,l=e.indexUiState,u=e.setIndexUiState,d=e.messages,h=e.onReload,m=e.onClose,g=e.onFeedback,v=e.feedbackState,w=e.actionsComponent,b=e.classNames,_=e.messageTranslations,x=e.translations,P=e.suggestionsElement,S=(0,f._)(function(e){return""!==y(e).trim()}(r)?[{title:x.copyToClipboardLabel,icon:function(){return t(p.Td,{createElement:t})},onClick:ft}]:[]).concat([{title:x.regenerateLabel,icon:function(){return t(p.jf,{createElement:t})},onClick:function(e){return h(e.id)}}]),k=null==v?void 0:v[r.id],R=void 0!==k;g&&("sending"===k?S.push({title:x.sendingFeedbackLabel,icon:function(){return t("span",{className:"ais-ChatMessage-feedbackSpinner"},t(p.VO,{createElement:t}))},disabled:!0}):R?S.push({title:x.feedbackThankYouText,icon:function(){return t("span",{className:"ais-ChatMessage-feedbackCheck"},t(p.Sr,{createElement:t}),t("span",{className:"ais-ChatMessage-feedbackText"},x.feedbackThankYouText))},disabled:!0}):S.push({title:x.thumbsUpLabel,icon:function(){return t(p.Ge,{createElement:t})},onClick:function(e){return g(e.id,1)}},{title:x.thumbsDownLabel,icon:function(){return t(p.d2,{createElement:t})},onClick:function(e){return g(e.id,0)}}));var T="user"===r.role?i:s,E="user"===r.role?void 0:S;return t(n,(0,c._)({side:"user"===r.role?"right":"left",variant:"user"===r.role?"neutral":"subtle",message:r,status:a,tools:o,indexUiState:l,setIndexUiState:u,messages:d,onClose:m,actions:E,actionsComponent:w,"data-role":r.role,classNames:b,translations:_,suggestionsElement:P},T))}}var yt=function(e,t,r){if("submitted"!==e&&"streaming"!==e)return!1;if("submitted"===e)return!0;if(!t)return!0;if("text"===t.type)return!1;if(w(t)&&"input-streaming"===t.state){var n=function(e,t){var r,n=e.replace("tool-",""),a=t[n];return a||(a=null===(r=Object.entries(t).find(function(e){var t=(0,d._)(e,1)[0];return g(n,"".concat(t,"_"))}))||void 0===r?void 0:r[1]),a}(t.type,r);return!(null==n?void 0:n.streamInput)}return!0};var wt=r(172),bt=r(5994),_t=r(4041),xt=r(3750),Pt="algolia_search_index";function St(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(e.transporter){var t=e.transporter,r=t.headers||t.baseHeaders,n=t.queryParameters||t.baseQueryParameters,a="x-algolia-application-id",i="x-algolia-api-key";return[r[a]||n[a],r[i]||n[i]]}return[e.applicationID,e.apiKey]}var kt=r(5930);function Rt(e){if(e.startsWith("data:")){var t=e.slice(5).trim();return"[DONE]"===t?null:t}return e.startsWith("{")?e:null}var Tt=r(1642),Et=r(6732),Ct=r(6467);function It(e,t,r){return It=(0,Et._)()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&(0,Ct._)(a,r.prototype),a},It.apply(null,arguments)}var qt=r(3239);function At(e){var t="function"==typeof Map?new Map:void 0;return At=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return It(e,arguments,(0,qt._)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,Ct._)(n,e)},At(e)}function Nt(){return Math.random().toString(36).substring(2,9)}function Dt(e){if("object"!==(void 0===e?"undefined":(0,Tt._)(e))||null===e)return!1;var t=e;return"string"==typeof t.type&&(t.type.startsWith("tool-")||"dynamic-tool"===t.type)}function Ft(e){var t=e.messages;if(0===t.length)return!1;var r=t[t.length-1];if("assistant"!==r.role)return!1;if(!r.parts||0===r.parts.length)return!1;var n=r.parts.filter(Dt);return 0!==n.length&&n.every(function(e){return"output-available"===e.state||"output-error"===e.state})}var jt=function(){function e(){(0,a._)(this,e),(0,s._)(this,"queue",[]),(0,s._)(this,"isRunning",!1)}return(0,i._)(e,[{key:"run",value:function(e){var t=this;return new Promise(function(r,n){t.queue.push(function(){return e().then(function(e){r(e)},function(e){n(e)})}),t.processQueue()})}},{key:"processQueue",value:function(){var e=this;if(!this.isRunning){this.isRunning=!0;var t=function(){if(0!==e.queue.length){var r=e.queue.shift();r&&r().then(t,t)}else e.isRunning=!1};t()}}}]),e}();function Ot(e){return void 0===e?Promise.resolve(void 0):"function"==typeof e?Promise.resolve(e()):Promise.resolve(e)}var Mt=function(e){function t(e){var r;return(0,a._)(this,t),(r=(0,n._)(this,t,[e])).name="GuardrailViolationError",r}return(0,o._)(t,e),t}(At(Error));function Lt(e){try{var t=JSON.parse(e);if(t&&"object"===(void 0===t?"undefined":(0,Tt._)(t))&&!Array.isArray(t)&&"string"==typeof t.message){var r=t.message.trim();if(r)return r}}catch(e){}}function Ht(e){var t="HTTP error: ".concat(e.status," ").concat(e.statusText);return e.text().then(function(e){var r;return null!==(r=Lt(e))&&void 0!==r?r:t}).catch(function(){return t})}var $t=function(){function e(t){var r=t.api,n=void 0===r?"/api/chat":r,i=t.credentials,o=t.headers,c=t.body,l=t.fetch,u=t.prepareSendMessagesRequest,d=t.prepareReconnectToStreamRequest;(0,a._)(this,e),(0,s._)(this,"api",void 0),(0,s._)(this,"credentials",void 0),(0,s._)(this,"headers",void 0),(0,s._)(this,"body",void 0),(0,s._)(this,"fetch",void 0),(0,s._)(this,"prepareSendMessagesRequest",void 0),(0,s._)(this,"prepareReconnectToStreamRequest",void 0),this.api=n,this.credentials=i,this.headers=o,this.body=c,this.fetch=l,this.prepareSendMessagesRequest=u,this.prepareReconnectToStreamRequest=d}return(0,i._)(e,[{key:"sendMessages",value:function(e){var t,r=this,n=e.abortSignal,a=e.chatId,i=e.messages,s=e.requestMetadata,o=e.trigger,l=e.messageId,u=e.headers,h=e.body,p=null!==(t=this.fetch)&&void 0!==t?t:fetch;return Promise.all([Ot(this.credentials),Ot(this.headers),Ot(this.body)]).then(function(e){var t=(0,d._)(e,3),m=t[0],f=t[1],g=t[2],v=r.api,y=(0,c._)({id:a,messages:i},g,h),w=(0,c._)({"Content-Type":"application/json"},(0,xt._)(f,Headers)?Object.fromEntries(f.entries()):f,(0,xt._)(u,Headers)?Object.fromEntries(u.entries()):u),b=m,_=(0,c._)({},g,h);return(r.prepareSendMessagesRequest?Promise.resolve(r.prepareSendMessagesRequest({id:a,messages:i,requestMetadata:s,body:_,credentials:m,headers:f,api:r.api,trigger:o,messageId:l})):Promise.resolve(null)).then(function(e){return e&&(y=e.body,e.a
12pi&&(v=e.api),e.headers&&(w=(0,c._)({"Content-Type":"application/json"},(0,xt._)(e.headers,Headers)?Object.fromEntries(e.headers.entries()):e.headers)),e.credentials&&(b=e.credentials)),p(v,{method:"POST",headers:w,body:JSON.stringify(y),signal:n,credentials:b}).then(function(e){if(!e.ok)return Ht(e).then(function(e){throw new Error(e)});if(!e.body)throw new Error("Response body is empty");return r.processResponseStream(e.body)})})})}},{key:"reconnectToStream",value:function(e){var t,r=this,n=e.chatId,a=e.headers,i=e.body,s=null!==(t=this.fetch)&&void 0!==t?t:fetch;return Promise.all([Ot(this.credentials),Ot(this.headers),Ot(this.body)]).then(function(e){var t=(0,d._)(e,3),o=t[0],l=t[1],u=t[2],h=r.api,p=(0,c._)({},(0,xt._)(l,Headers)?Object.fromEntries(l.entries()):l,(0,xt._)(a,Headers)?Object.fromEntries(a.entries()):a),m=o,f=(0,c._)({},u,i);return(r.prepareReconnectToStreamRequest?Promise.resolve(r.prepareReconnectToStreamRequest({id:n,requestMetadata:void 0,body:f,credentials:o,headers:l,api:r.api})):Promise.resolve(null)).then(function(e){return e&&(e.api&&(h=e.api),e.headers&&(p=(0,xt._)(e.headers,Headers)?Object.fromEntries(e.headers.entries()):e.headers),e.credentials&&(m=e.credentials)),s("".concat(h,"?chatId=").concat(n),{method:"GET",headers:p,credentials:m}).then(function(e){return e.ok?e.body?r.processResponseStream(e.body):null:404===e.status?null:Ht(e).then(function(e){throw new Error(e)})})})})}}]),e}(),Ut=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a._)(this,t),(0,n._)(this,t,[e])}return(0,o._)(t,e),(0,i._)(t,[{key:"processResponseStream",value:function(e){return function(e){var t=new TextDecoder,r="";return new ReadableStream({start:function(n){var a=e.getReader(),i=function(){a.read().then(function(e){var a=e.done,s=e.value;if(a){if(r.trim()){var o=Rt(r.trim());if(o)try{var c=JSON.parse(o);n.enqueue(c)}catch(e){}}n.close()}else{var l=(r+=t.decode(s,{stream:!0})).split("\n");r=l.pop()||"";for(var u=0;u<l.length;u++){var d=l[u].trim();if(d){var h=Rt(d);if(h)try{var p=JSON.parse(h);n.enqueue(p)}catch(e){}}}i()}},function(e){n.error(e)})};i()}})}(e)}}]),t}($t);function Bt(e){var t=e;return t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua}var Wt=function(e){try{return JSON.parse(e)}catch(e){return}},zt=function(e,t){var r=e.trim();if(!r)return t;var n=Wt(r);if(void 0!==n)return n;var a=Wt(function(e){var t=e.trim();if(!t)return t;for(var r=!1,n=!1,a=[],i=0;i<t.length;i++){var s=t[i];r?n?n=!1:"\\"===s?n=!0:'"'===s&&(r=!1):'"'!==s?"{"!==s&&"["!==s?"}"!==s||"{"!==a[a.length-1]?"]"===s&&"["===a[a.length-1]&&a.pop():a.pop():a.push(s):r=!0}return r&&!n&&(t+='"'),t=t.replace(RegExp(",\\s*$","u"),""),a.length>0&&(t+=a.reverse().map(function(e){return"{"===e?"}":"]"}).join("")),t.replace(RegExp(",\\s*([}\\]])","gu"),"$1")}(r));return void 0!==a?a:t},Qt=function(){function e(t){var r=this,n=t.generateId,i=void 0===n?Nt:n,o=t.id,h=void 0===o?i():o,p=t.transport,m=t.state,g=t.onError,v=t.onToolCall,y=t.onFinish,w=t.onData,b=t.sendAutomaticallyWhen,_=t.shouldRepairToolInput,x=this;(0,a._)(this,e),(0,s._)(this,"conversationId",void 0),(0,s._)(this,"generateId",void 0),(0,s._)(this,"state",void 0),(0,s._)(this,"transport",void 0),(0,s._)(this,"onError",void 0),(0,s._)(this,"onToolCall",void 0),(0,s._)(this,"onFinish",void 0),(0,s._)(this,"onData",void 0),(0,s._)(this,"sendAutomaticallyWhen",void 0),(0,s._)(this,"shouldRepairToolInput",void 0),(0,s._)(this,"activeResponse",null),(0,s._)(this,"jobExecutor",new jt),(0,s._)(this,"sendMessage",function(e,t){return r.jobExecutor.run(function(){var n;if(e){var a=e.messageId||r.generateId();
12if("parts"in e&&e.parts)n=Promise.resolve((0,c._)({id:a,role:"user"},e));else if("text"in e&&e.text){var i=[{type:"text",text:e.text}];n=e.files?r.convertFilesToParts(e.files).then(function(t){var r;return(r=i).push.apply(r,(0,f._)(t)),{id:a,role:"user",parts:i,metadata:e.metadata}}):Promise.resolve({id:a,role:"user",parts:i,metadata:e.metadata})}else n="files"in e&&e.files?r.convertFilesToParts(e.files).then(function(t){return{id:a,role:"user",parts:t,metadata:e.metadata}}):Promise.resolve(void 0)}else n=Promise.resolve(void 0);return n.then(function(e){return e&&r.state.pushMessage(e),r.makeRequest((0,c._)({trigger:"submit-message",messageId:null==e?void 0:e.id},t))})})}),(0,s._)(this,"regenerate",function(){var e=[arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0],t=(0,d._)(e,1)[0],r=void 0===t?{}:t,n=r.messageId,a=(0,u._)(r,["messageId"]);return x.jobExecutor.run(function(){var e=-1;if(n)e=x.state.messages.findIndex(function(e){return e.id===n});else for(var t=x.state.messages.length-1;t>=0;t--)if("assistant"===x.state.messages[t].role){e=t;break}return e>=0&&(x.state.messages=x.state.messages.slice(0,e)),x.makeRequest((0,c._)({trigger:"regenerate-message",messageId:n},a))})}),(0,s._)(this,"resumeStream",function(e){return r.jobExecutor.run(function(){return r.transport?(r.setStatus({status:"submitted"}),r.transport.reconnectToStream((0,c._)({chatId:r.id},e)).then(function(e){return e?r.processStreamWithCallbacks(e):(r.setStatus({status:"ready"}),Promise.resolve())},function(e){return r.handleError(e),Promise.resolve()})):Promise.reject(new Error("Transport is required for resuming stream. Please provide a transport when initializing the chat."))})}),(0,s._)(this,"clearError",function(){"error"===r.state.status&&r.setStatus({status:"ready",error:void 0})}),(0,s._)(this,"addToolResult",function(e){var t=e.tool,n=e.toolCallId,a=e.output;return r.jobExecutor.run(function(){var e=r.state.messages.findIndex(function(e){var r,a;return null!==(r=null===(a=e.parts)||void 0===a?void 0:a.some(function(e){return"toolCallId"in e&&e.toolCallId===n||"type"in e&&e.type==="tool-".concat(String(t))}))&&void 0!==r&&r});if(-1===e)return Promise.resolve();var i=r.state.messages[e],s=i.parts.map(function(e){return"toolCallId"in e&&e.toolCallId===n&&"state"in e?(0,l._)((0,c._)({},e),{state:"output-available",output:a}):e});return r.state.replaceMessage(e,(0,l._)((0,c._)({},i),{parts:s})),r.sendAutomaticallyWhen?Promise.resolve(r.sendAutomaticallyWhen({messages:r.state.messages})).then(function(e){return e?r.makeRequest({trigger:"submit-message"}):Promise.resolve()}):Promise.resolve()})}),(0,s._)(this,"stop",function(){return r.activeResponse&&(r.activeResponse.abortController.abort(),r.activeResponse=null),r.setStatus({status:"ready"}),Promise.resolve()}),this.conversationId=h,this.generateId=i,this.state=m,this.transport=p,this.onError=g,this.onToolCall=v,this.onFinish=y,this.onData=w,this.sendAutomaticallyWhen=b,this.shouldRepairToolInput=_}return(0,i._)(e,[{key:"id",get:function(){return this.conversationId}},{key:"status",get:function(){return this.state.status}},{key:"setStatus",value:function(e){var t=e.status,r=e.error;this.state.status=t,void 0!==r&&(this.state.error=r)}},{key:"error",get:function(){return this.state.error}},{key:"resetConversationId",value:function(){this.conversationId=this.generateId()}},{key:"messages",get:function(){return this.state.messages},set:function(e){this.state.messages=e}},{key:"lastMessage",get:function(){return this.state.messages[this.state.messages.length-1]}},{key:"makeRequest",value:function(e){var t=this;if(!this.transport)return Promise.reject(new Error("Transport is required for sending messages. Please provide a transport when initializing the chat."));this.activeResponse&&this.activeResponse.abortController.abort();var r=new AbortController;return this.activeResponse={abortController:r},this.setStatus({status:"submitted"}),this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:r.signal,trigger:e.trigger,messageId:e.messageId,headers:e.headers,body:e.body,requestMetadata:e.metadata}).then(function(e){return t.activeResponse.stream=e,t.processStreamWithCallbacks(e)},function(e){return"AbortError"===e.name||t.handleError(e),Promise.resolve()})}},{key:"processStreamWithCallbacks",value:function(e){var t,r,n=this;this.setStatus({status:"streaming"});var a,i,s=-1,o=!1,d=!1,h=!1,p={},m={},g=Promise.resolve();return new Promise(function(v){!function(e,y,w,b){var _=e.getReader(),x=function(){_.read().then(function(e){var y=e.done,w=e.value;if(y)return _.releaseLock(),void g.then(function(){n.setStatus({status:"ready"}),n.activeResponse=null,n.onFinish&&r&&n.onFinish({message:r,messages:n.state.messages,isAbort:o,isDisconnect:d,isError:h}),v()});try{var P=function(e){switch(e.type){case"start":t=e.messageId||n.generateId();var d=n.lastMessage;d&&"assistant"===d.role&&d.id===t?(r=d,s=n.state.messages.length-1):(r={id:t,role:"assistant",parts:[],metadata:e.messageMetadata},n.state.pushMessage(r),s=n.state.messages.length-1);break;case"text-start":if(!r)break;a=e.id;var v={type:"text",text:"",state:"streaming",providerMetadata:e.providerMetadata};r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([v])}),n.state.replaceMessage(s,r);break;case"text-delta":if(!r||!a)break;var y=r.parts.findIndex(function(e){return"text"===e.type&&"streaming"===e.state});if(-1===y)break;var w=(0,f._)(r.parts),b=w[y];w[y]=(0,l._)((0,c._)({},b),{text:b.text+e.delta}),r=(0,l._)((0,c._)({},r),{parts:w}),n.state.replaceMessage(s,r);break;case"text-end":if(!r)break;var _=r.parts.findIndex(function(e){return"text"===e.type&&"streaming"===e.state});if(-1===_)break;var x=(0,f._)(r.parts),P=x[_];x[_]=(0,l._)((0,c._)({},P),{state:"done"}),r=(0,l._)((0,c._)({},r),{parts:x}),n.state.replaceMessage(s,r),a=void 0;break;case"reasoning-start":if(!r)break;
12i=e.id;var S={type:"reasoning",text:"",state:"streaming",providerMetadata:e.providerMetadata};r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([S])}),n.state.replaceMessage(s,r);break;case"reasoning-delta":if(!r||!i)break;var k=r.parts.findIndex(function(e){return"reasoning"===e.type&&"streaming"===e.state});if(-1===k)break;var R=(0,f._)(r.parts),T=R[k];R[k]=(0,l._)((0,c._)({},T),{text:T.text+e.delta}),r=(0,l._)((0,c._)({},r),{parts:R}),n.state.replaceMessage(s,r);break;case"reasoning-end":if(!r)break;var E=r.parts.findIndex(function(e){return"reasoning"===e.type&&"streaming"===e.state});if(-1===E)break;var C=(0,f._)(r.parts),I=C[E];C[E]=(0,l._)((0,c._)({},I),{state:"done"}),r=(0,l._)((0,c._)({},r),{parts:C}),n.state.replaceMessage(s,r),i=void 0;break;case"tool-input-start":if(!r)break;var q="string"==typeof e.input?e.input:void 0!==e.input?JSON.stringify(e.input):"";p[e.toolCallId]=q;var A={type:"tool-".concat(e.toolName),toolCallId:e.toolCallId,state:"input-streaming",input:e.input,rawInput:q||void 0,providerExecuted:e.providerExecuted};r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([A])}),n.state.replaceMessage(s,r);break;case"tool-input-delta":var N,D,F,j,O,M,L;if(!r)break;var H=r.parts.findIndex(function(t){return"toolCallId"in t&&t.toolCallId===e.toolCallId}),$=H>=0?r.parts[H]:null,U=null!==(N=null!==(D=null==$?void 0:$.rawInput)&&void 0!==D?D:p[e.toolCallId])&&void 0!==N?N:"",B="".concat(U).concat(e.inputTextDelta);p[e.toolCallId]=B;var W=null!==(F=e.toolName)&&void 0!==F?F:null==$||null===(O=$.type)||void 0===O?void 0:O.replace("tool-",""),z=!W||null===(j=null===(M=(L=n).shouldRepairToolInput)||void 0===M?void 0:M.call(L,W))||void 0===j||j?zt(B,null==$?void 0:$.input):null==$?void 0:$.input,Q=(0,l._)((0,c._)({},null!=$?$:{type:"tool-".concat(e.toolName),toolCallId:e.toolCallId}),{state:"input-streaming",input:z,rawInput:B});if(H>=0){var V=(0,f._)(r.parts);V[H]=Q,r=(0,l._)((0,c._)({},r),{parts:V})}else r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([Q])});n.state.replaceMessage(s,r);break;case"tool-input-available":if(!r)break;delete p[e.toolCallId];var K=r.parts.findIndex(function(t){return"toolCallId"in t&&t.toolCallId===e.toolCallId}),G={type:"tool-".concat(e.toolName),toolCallId:e.toolCallId,state:"input-available",input:e.input,callProviderMetadata:e.callProviderMetadata,providerExecuted:e.providerExecuted};if(K>=0){var J=(0,f._)(r.parts);J[K]=G,r=(0,l._)((0,c._)({},r),{parts:J})}else r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([G])});if(n.state.replaceMessage(s,r),n.onToolCall&&!e.providerExecuted){var Z=n.onToolCall({toolCall:{toolName:e.toolName,toolCallId:e.toolCallId,input:e.input,dynamic:"dynamic"in e?e.dynamic:void 0}});Z&&"function"==typeof Z.then&&(g=g.then(function(){return Z}))}break;case"data-tool-output-delta":var X,Y;if(!r)break;var ee=e.data,te=ee.toolCallId,re=ee.toolName,ne=ee.delta,ae=r.parts.findIndex(function(e){return"toolCallId"in e&&e.toolCallId===te}),ie=ae>=0?r.parts[ae]:null,se=null!==(X=null!==(Y=null==ie?void 0:ie.rawOutput)&&void 0!==Y?Y:m[te])&&void 0!==X?X:"",oe="".concat(se).concat(ne);m[te]=oe;var ce=zt(oe,null==ie?void 0:ie.output),le=(0,l._)((0,c._)({},null!=ie?ie:{type:"tool-".concat(re),toolCallId:te,input:void 0}),{state:"output-available",output:ce,rawOutput:oe,preliminary:!0});if(ae>=0){var ue=(0,f._)(r.parts);ue[ae]=le,r=(0,l._)((0,c._)({},r),{parts:ue})}else r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([le])});n.state.replaceMessage(s,r);break;case"tool-output-available":if(!r)break;var de=r.parts.findIndex(function(t){return"toolCallId"in t&&t.toolCallId===e.toolCallId});if(de>=0){delete p[e.toolCallId],delete m[e.toolCallId];var he=(0,f._)(r.parts),pe=he[de],me=(pe.rawOutput,(0,u._)(pe,["rawOutput"]));he[de]=(0,l._)((0,c._)({},me),{state:"output-available",output:e.output,callProviderMetadata:e.callProviderMetadata,preliminary:e.preliminary}),r=(0,l._)((0,c._)({},r),{parts:he}),n.state.replaceMessage(s,r)}break;case"tool-input-error":var fe,ge,ve;if(!r)break;delete p[e.toolCallId],delete m[e.toolCallId];var ye=r.parts.findIndex(function(t){return"toolCallId"in t&&t.toolCallId===e.toolCallId}),we=ye>=0?r.parts[ye]:null,be=null!=we?we:{},_e=(be.output,be.rawOutput,be.preliminary,(0,u._)(be,["output","rawOutput","preliminary"])),xe=(0,l._)((0,c._)({},_e),{type:"tool-".concat(e.toolName),toolCallId:e.toolCallId,state:"output-error",input:void 0,rawInput:null!==(fe=e.input)&&void 0!==fe?fe:_e.rawInput,errorText:e.errorText,providerExecuted:null!==(ge=e.providerExecuted)&&void 0!==ge?ge:_e.providerExecuted,callProviderMetadata:null!==(ve=e.providerMetadata)&&void 0!==ve?ve:_e.callProviderMetadata});if(ye>=0){var Pe=(0,f._)(r.parts);
12Pe[ye]=xe,r=(0,l._)((0,c._)({},r),{parts:Pe})}else r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([xe])});n.state.replaceMessage(s,r);break;case"tool-output-error":var Se,ke;if(!r)break;var Re=r.parts.findIndex(function(t){return"toolCallId"in t&&t.toolCallId===e.toolCallId});if(Re<0)break;delete p[e.toolCallId],delete m[e.toolCallId];var Te=(0,f._)(r.parts),Ee=Te[Re],Ce=(Ee.rawOutput,Ee.preliminary,Ee.output,(0,u._)(Ee,["rawOutput","preliminary","output"]));Te[Re]=(0,l._)((0,c._)({},Ce),{state:"output-error",errorText:e.errorText,providerExecuted:null!==(Se=e.providerExecuted)&&void 0!==Se?Se:Ce.providerExecuted,callProviderMetadata:null!==(ke=e.providerMetadata)&&void 0!==ke?ke:Ce.callProviderMetadata}),r=(0,l._)((0,c._)({},r),{parts:Te}),n.state.replaceMessage(s,r);break;case"source-url":if(!r)break;var Ie={type:"source-url",sourceId:e.sourceId,url:e.url,title:e.title};r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([Ie])}),n.state.replaceMessage(s,r);break;case"source-document":if(!r)break;var qe={type:"source-document",sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata};r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([qe])}),n.state.replaceMessage(s,r);break;case"file":if(!r)break;var Ae={type:"file",url:e.url,mediaType:e.mediaType};r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([Ae])}),n.state.replaceMessage(s,r);break;case"start-step":if(!r)break;r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([{type:"step-start"}])}),n.state.replaceMessage(s,r);break;case"message-metadata":if(!r)break;r=(0,l._)((0,c._)({},r),{metadata:e.messageMetadata}),n.state.replaceMessage(s,r);break;case"error":h=!0;var Ne=e.errorText.trim();throw new Error(Lt(Ne)||Ne||"Unknown error");case"abort":o=!0;break;case"finish":r&&void 0!==e.messageMetadata&&(r=(0,l._)((0,c._)({},r),{metadata:e.messageMetadata}),n.state.replaceMessage(s,r));break;case"data-guardrail-violation":h=!0,s>=0&&(n.state.messages=n.state.messages.slice(0,s),r=void 0,s=-1);var De=e.data.fallbackResponse;throw new Mt(De||"Sorry, we are not able to generate a response at the moment.");default:var Fe=e.type;if((null==Fe?void 0:Fe.startsWith("data-"))&&r){var je={type:Fe,id:e.id,data:e.data};r=(0,l._)((0,c._)({},r),{parts:(0,f._)(r.parts).concat([je])}),n.state.replaceMessage(s,r),n.onData&&n.onData(je)}}}(w);P&&"function"==typeof P.then?P.then(function(){return x()},function(e){_.releaseLock(),b(e)}):x()}catch(e){_.releaseLock(),b(e)}},function(e){_.releaseLock(),b(e)})};x()}(e,0,0,function(e){"AbortError"===e.name?(o=!0,n.setStatus({status:"ready"})):(d=!0,n.handleError(e)),n.onFinish&&r&&n.onFinish({message:r,messages:n.state.messages,isAbort:o,isDisconnect:d,isError:h}),v()})})}},{key:"handleError",value:function(e){this.setStatus({status:"error",error:e}),this.onError&&this.onError(e)}},{key:"convertFilesToParts",value:function(e){var t,r=function(r){var a=e[r];n.push(t.fileToDataUrl(a).then(function(e){return{type:"file",mediaType:a.type,filename:a.name,url:e}}))};if(Array.isArray(e))return Promise.resolve(e);for(var n=[],a=0;a<e.length;a++)t=this,r(a);return Promise.all(n)}},{key:"fileToDataUrl",value:function(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){return t(n.result)},n.onerror=r,n.readAsDataURL(e)})}}]),e}(),Vt="instantsearch-chat-initial-messages",Kt=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t=sessionStorage.getItem(Vt+(e?"-".concat(e):""));return t?JSON.parse(t):[]}(r);(0,a._)(this,e),(0,s._)(this,"_messages",void 0),(0,s._)(this,"_status","ready"),(0,s._)(this,"_error",void 0),(0,s._)(this,"_messagesCallbacks",new Set),(0,s._)(this,"_statusCallbacks",new Set),(0,s._)(this,"_errorCallbacks",new Set),(0,s._)(this,"pushMessage",function(e){t._messages=t._messages.concat(e),t._callMessagesCallbacks()}),(0,s._)(this,"popMessage",function(){t._messages=t._messages.slice(0,-1),t._callMessagesCallbacks()}),(0,s._)(this,"replaceMessage",function(e,r){t._messages=(0,f._)(t._messages.slice(0,e)).concat([t.snapshot(r)],(0,f._)(t._messages.slice(e+1))),t._callMessagesCallbacks()}),(0,s._)(this,"snapshot",function(e){return JSON.parse(JSON.stringify(e))}),(0,s._)(this,"~registerMessagesCallback",function(e){var r=e;return t._messagesCallbacks.add(r),function(){t._messagesCallbacks.delete(r)}}),(0,s._)(this,"~registerStatusCallback",function(e){return t._statusCallbacks.add(e),function(){t._statusCallbacks.delete(e)}}),(0,s._)(this,"~registerErrorCallback",function(e){return t._errorCallbacks.add(e),function(){t._errorCallbacks.delete(e)}}),(0,s._)(this,"_callMessagesCallbacks",function(){t._messagesCallbacks.forEach(function(e){return e()})}),(0,s._)(this,"_callStatusCallbacks",function(){t._statusCallbacks.forEach(function(e){return e()})}),(0,s._)(this,"_callErrorCallbacks",function(){t._errorCallbacks.forEach(function(e){return e()})}),this._messages=n;var i=function(){if("ready"===t.status)try{sessionStorage.setItem(Vt+(r?"-".concat(r):""),JSON.stringify(t.messages))}catch(e){}};this["~registerMessagesCallback"](i),this["~registerStatusCallback"](i)}return(0,i._)(e,[{key:"status",get:function(){return this._status},set:function(e){this._status=e,this._callStatusCallbacks()}},{key:"error",get:function(){return this._error},set:function(e){this._error=e,this._callErrorCallbacks()}},{key:"messages",get:function(){return this._messages},set:function(e){this._messages=(0,f._)(e),this._callMessagesCallbacks()}}]),e}(),Gt=function(e){function t(e){var r;(0,a._)(this,t);var i=e.messages,o=e.agentId,d=(0,u._)(e,["messages","agentId"]),h=new Kt(o,i);return r=(0,n._)(this,t,[(0,l._)((0,c._)({},d),{state:h})]),(0,s._)(r,"_state",void 0),(0,s._)(r,"~registerMessagesCallback",function(e){return r._state["~registerMessagesCallback"](e)}),(0,s._)(r,"~registerStatusCallback",function(e){return r._state["~registerStatusCallback"](e)}),(0,s._)(r,"~registerErrorCallback",function(e){return r._state["~registerErrorCallback"](e)}),r._state=h,r}return(0,o._)(t,e),t}(Qt),Jt=r(7520),Zt=r(4176),Xt=r(8539),Yt=r(4243),er=r(69),tr=r(1230),rr=r(513),nr=(0,Yt.V)({name:"chat",connector:!0});var ar,ir,sr,or=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rr.l;return(0,er.t)(e,nr()),function(r){var n,a,i,o,h,p,m,g,v=r||{},y=v.resume,w=void 0!==y&&y,b=v.tools,_=void 0===b?{}:b,x=v.type,P=void 0===x?"chat":x,S=v.context,k=v.initialUserMessage,R=v.initialMessages,T=v.disableTriggerValidation,E=void 0!==T&&T,C=(0,u._)(v,["resume","tools","type","context","initialUserMessage","initialMessages","disableTriggerValidation"]),I="",q=!1,A=!1,N="agentId"in C?C.agentId:void 0,D={},F=function(e){var t=(0,f._)(e).reverse().find(function(e){return"assistant"===e.role&&e.parts});if(null==t?void 0:t.parts){var r=t.parts.find(function(e){var t;return"type"in e&&"data-suggestions"===e.type&&"data"in e&&Array.isArray(null===(t=e.data)||void 0===t?void 0:t.suggestions)});return null==r?void 0:r.data.suggestions}},j=function(e){"function"==typeof e&&(e=e(n.messages)),n.messages=e},O=function(){var e=n.status;"submitted"!==e&&"streaming"!==e||n.stop(),D={},n.resetConversationId(),j([]),n.clearError()},M=function(e){E||A||e.mainIndex&&((0,kt.Q)(e.mainIndex,function(e){e.getW
12idgets().some(function(e){return!0===e.opensChat})}),A=!0)};return{$$type:"ais.chat",init:function(t){var r=this,a=t.instantSearchInstance;M(a),n=function(e){var t,r=e.client,a=(0,d._)(St(r),2),i=a[0],s=a[1],o=function(e){return e.map(function(e){var t;return(0,l._)((0,c._)({},e),{parts:null===(t=e.parts)||void 0===t?void 0:t.filter(function(e){return!("type"in e&&e.type.startsWith("data-"))})})})};if("transport"in C&&C.transport){var u=C.transport.prepareSendMessagesRequest;t=new Ut((0,l._)((0,c._)({},C.transport),{prepareSendMessagesRequest:function(e){var t=u?u(e):{body:(0,c._)({id:e.id,messageId:e.messageId,trigger:e.trigger,messages:e.messages},e.body)},r=function(e){return(0,l._)((0,c._)({},e),{body:(0,l._)((0,c._)({},e.body),{messages:o(e.body.messages)})})};return t&&"then"in t?t.then(r):r(t)}}))}if("agentId"in C&&C.agentId){var h,p;if(!i||!s)throw new Error(nr("Could not extract Algolia credentials from the search client."));var m=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=new
12URL("https://".concat(i,".algolia.net/agent-studio/1/agents/").concat(N,"/completions")),n=(0,c._)((0,l._)((0,c._)({},null===(e=C.requestOptions)||void 0===e?void 0:e.queryParameters),{compatibilityMode:"ai-sdk-5"}),t?{cache:!1}:{});return r.search=new URLSearchParams(n).toString(),r.toString()},f=m();t=new Ut({api:f,headers:(0,l._)((0,c._)({},(0,xt._)(null===(h=C.requestOptions)||void 0===h?void 0:h.headers,Headers)?Object.fromEntries(C.requestOptions.headers.entries()):null===(p=C.requestOptions)||void 0===p?void 0:p.headers),{"x-algolia-application-id":i,"x-algolia-api-key":s,"x-algolia-agent":"".concat(Bt(r),"; chat")}),prepareSendMessagesRequest:function(e){var t=e.id,r=e.messages,n=e.trigger,a=e.messageId;return{api:"regenerate-message"===n?m(!0):f,body:{id:t,messageId:a,messages:o(r)}}}})}if(!t)throw new Error(nr("You need to provide either an `agentId` or a `transport`."));return"chat"in C?C.chat:new Gt((0,l._)((0,c._)({},C),{transport:t,sendAutomaticallyWhen:Ft,shouldRepairToolInput:function(e){var t=_[e];return!t&&e.startsWith("".concat(Pt,"_"))&&(t=_[Pt]),!t||Boolean(t.streamInput)},onToolCall:function(e){var t=e.toolCall,r=_[t.toolName];return!r&&t.toolName.startsWith("".concat(Pt,"_"))&&(r=_[Pt]),r?r.onToolCall?r.onToolCall((0,l._)((0,c._)({},t),{addToolResult:function(e){var r=e.output;return n.addToolResult({output:r,tool:t.toolName,toolCallId:t.toolCallId})}})):Promise.resolve():n.addToolResult({output:'No tool implemented for "'.concat(t.toolName,'".'),tool:t.toolName,toolCallId:t.toolCallId})}}))}(a);var u=function(){e((0,l._)((0,c._)({},r.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)};o=function(e){q=e,u(),t.instantSearchInstance.scheduleRender()},h=function(){o(!0)},i=function(e){I=e,u()},p=function(e,t){D=(0,l._)((0,c._)({},D),(0,s._)({},e,t)),u()};var f="feedback"in C?C.feedback:void 0;if(N&&f){var v=(0,d._)(St(t.instantSearchInstance.client),2),y=v[0],b=v[1];if(!y||!b)throw new Error(nr("Could not extract Algolia credentials from the search client."));g=new AbortController,m=function(e,t){void 0===D[e]&&(p(e,"sending"),function(e){var t=e.agentId,r=e.vote,n=e.messageId,a=e.appId,i=e.apiKey;return fetch("https://".concat(a,".algolia.net/agent-studio/1/feedback"),{method:"POST",body:JSON.stringify({messageId:n,agentId:t,vote:r}),headers:{"x-algolia-application-id":a,"x-algolia-api-key":i,"content-type":"application/json"}}).then(function(e){return e.status>=300?e.json().then(function(t){throw new Error("Feedback request failed with status ".concat(e.status,": ").concat(t.message))}):e.json()})}({agentId:N,vote:t,messageId:e,appId:y,apiKey:b}).finally(function(){p(e,t)}))}}var x=n.messages.length>0;!(null==R?void 0:R.length)||w||x||(n.messages=R),n["~registerErrorCallback"](u),n["~registerMessagesCallback"](u),n["~registerStatusCallback"](u),w&&n.resumeStream(),!k||w||x||n.sendMessage({text:k}),e((0,l._)((0,c._)({},this.getWidgetRenderState(t)),{instantSearchInstance:a}),!0)},render:function(t){M(t.instantSearchInstance),e((0,l._)((0,c._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return(0,l._)((0,c._)({},e),(0,s._)({},P,this.getWidgetRenderState(t)))},getWidgetRenderState:function(e){var t=e.instantSearchInstance,s=e.parent,u=e.helper;function p(e){return function(e,t){var r,n=function(e){var t=e.results,r=e.helper;return(0,Zt.s)((0,Xt.t)(t,r.state,!0).map(function(e){return e.attribute}))}({results:t.lastResults,helper:t});return t.setState((0,Jt.A)({helper:t,attributesToClear:n})),e.facetFilters&&(r=e.facetFilters,r.reduce(function(e,t){return e.concat(t)},[])).map(function(e){var t=(0,d._)(e.split(":"),2);return{attribute:t[0],value:t[1]}}).forEach(function(e){var r=e.attribute,n=e.value;if(t.state.isConjunctiveFacet(r)||t.state.isHierarchicalFacet(r)||t.state.isDisjunctiveFacet(r)){var a,i=(null===(a=t.state.hierarchicalFacets.find(function(e){return e.name===r}))||void 0===a?void 0:a.name)||r;t.toggleFacetRefinement(i,n)}else{var s=t.state.addDisjunctiveFacet(r);t.setState(s),t.toggleFacetRefinement(r,n)}}),e.query&&t.setQuery(e.query),t.search(),t.state}(e,u)}n||this.init((0,l._)((0,c._)({},e),{uiState:{},results:void 0})),a||(a=(0,tr.U0)({instantSearchInstance:e.instantSearchInstance,helper:e.helper,widgetType:this.$$type}));var g={};return Object.entries(_).forEach(function(e){var t=(0,d._)(e,2),r=t[0],i=t[1],s=(0,l._)((0,c._)({},i),{addToolResult:n.addToolResult,applyFilters:p,sendEvent:a});g[r]=s}),{indexUiState:t.getUiState()[s.getIndexId()],input:I,open:q,sendEvent:a,setIndexUiState:s.setIndexUiState.bind(s),setInput:i,setOpen:o,focusInput:h,setMessages:j,suggestions:F(n.messages),clearMessages:O,tools:g,sendChatMessageFeedback:m,feedbackState:D,widgetParams:r,addToolResult:n.addToolResult,clearError:n.clearError,error:n.error,id:n.id,messages:n.messages,regenerate:n.regenerate,resumeStream:n.resumeStream,sendMessage:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];var i,s;
vendor: 4,339 bytes, line 12
12if(!S||!e)return(s=n).sendMessage.apply(s,[e].concat((0,f._)(r)));var o="function"==typeof S?S():S;return(i=n).sendMessage.apply(i,[(0,l._)((0,c._)({},e),{metadata:(0,l._)((0,c._)({},e.metadata),{turnContext:o})})].concat((0,f._)(r)))},status:n.status,stop:n.stop}},dispose:function(){null==g||g.abort(),t()},shouldRender:function(){return!0},get chatInstance(){return n}}}},cr={damping:.7,stiffness:.05,mass:1.25},lr=1e3/60,ur=!1;"undefined"!=typeof window&&(null===(ar=window.document)||void 0===ar||ar.addEventListener("mousedown",function(){ur=!0}),null===(ir=window.document)||void 0===ir||ir.addEventListener("mouseup",function(){ur=!1}),null===(sr=window.document)||void 0===sr||sr.addEventListener("click",function(){ur=!1}));var dr=new Map;function hr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(0,c._)({},cr),a=!1;t.forEach(function(e){var t,r,i;"instant"!==e?"object"===(void 0===e?"undefined":(0,Tt._)(e))&&(a=!1,n.damping=null!==(t=e.damping)&&void 0!==t?t:n.damping,n.stiffness=null!==(r=e.stiffness)&&void 0!==r?r:n.stiffness,n.mass=null!==(i=e.mass)&&void 0!==i?i:n.mass):a=!0});var i=JSON.stringify(n);return dr.has(i)||dr.set(i,Object.freeze(n)),a?"instant":dr.get(i)}var pr,mr,fr,gr,vr,yr,wr=(pr={useCallback:bt.hb,useEffect:bt.vJ,useMemo:bt.Kr,useRef:bt.li,useState:bt.J0},mr=pr.useCallback,fr=pr.useEffect,gr=pr.useMemo,vr=pr.useRef,yr=pr.useState,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,d._)(yr(!1),2),r=t[0],n=t[1],a=(0,d._)(yr(!1!==e.initial),2),i=a[0],s=a[1],o=(0,d._)(yr(!1),2),c=o[0],l=o[1],u=vr(null);u.current=e;var h=vr(null),p=vr(null),m=mr(function(){var e;if(!ur)return!1;if("undefined"==typeof window)return!1;var t=window.getSelection();if(!t||!t.rangeCount)return!1;var r=t.getRangeAt(0);return r.commonAncestorContainer.contains(h.current)||(null===(e=h.current)||void 0===e?void 0:e.contains(r.commonAncestorContainer))},[]),f=gr(function(){var e;return{escapedFromLock:r,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,get scrollTop(){var e,t;return null!==(e=null===(t=h.current)||void 0===t?void 0:t.scrollTop)&&void 0!==e?e:0},set scrollTop(e){h.current&&(h.current.scrollTop=e,f.ignoreScrollToTop=h.current.scrollTop)},get targetScrollTop(){return h.current&&p.current?h.current.scrollHeight-1-h.current.clientHeight:0},get calculatedTargetScrollTop(){if(!h.current||!p.current)return 0;var t=this.targetScrollTop;if(!u.current.targetScrollTop)return t;if((null==e?void 0:e.targetScrollTop)===t)return e.calculatedScrollTop;var r=Math.max(Math.min(u.current.targetScrollTop(t,{scrollElement:h.current,contentElement:p.current}),t),0);return e={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(function(){e=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),g=mr(function(e){f.isAtBottom=e,s(e)},[f]),v=mr(function(e){f.escapedFromLock=e,n(e)},[f]),y=mr(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"==typeof t&&(t={animation:t}),t.preserveScrollPosition||g(!0);var r,n,a=Date.now()+(Number(t.wait)||0),i=hr(u.current,t.animation),s=t.ignoreEscapes,o=void 0!==s&&s,c=f.calculatedTargetScrollTop;(0,xt._)(t.duration,Promise)?t.duration.then(function(){r=Date.now()},function(){r=Date.now()}):r=a+(null!==(n=t.duration)&&void 0!==n?n:0);var l=function(){var e=new Promise(requestAnimationFrame).then(function(){var t,n;if(!f.isAtBottom)return f.animation=void 0,!1;var s=f.scrollTop,d=performance.now(),h=(d-(null!==(t=f.lastTick)&&void 0!==t?t:d))/lr;if((n=f).animation||(n.animation={behavior:i,promise:e,ignoreEscapes:o}),f.animation.behavior===i&&(f.lastTick=d),m())return l();if(a>Date.now())return l();if(s<Math.min(c,f.calculatedTargetScrollTop)){var p;if((null===(p=f.animation)||void 0===p?void 0:p.behavior)===i){if("instant"===i)return f.scrollTop=f.calculatedTargetScrollTop,l();f.velocity=(i.damping*f.velocity+i.stiffness*f.scrollDifference)/i.mass,f.accumulated+=f.velocity*h,f.scrollTop+=f.accumulated,f.scrollTop!==s&&(f.accumulated=0)}return l()}return r>Date.now()?(c=f.calculatedTargetScrollTop,l()):(f.animation=void 0,f.scrollTop<f.calculatedTargetScrollTop?y({animation:hr(u.current,u.current.resize),ignoreEscapes:o,duration:Math.max(0,r-D
vendor: 5,344 bytes, line 12
12ate.now())||void 0}):f.isAtBottom)});return e.then(function(e){return requestAnimationFrame(function(){f.animation||(f.lastTick=void 0,f.velocity=0)}),e})};return!0!==t.wait&&(f.animation=void 0),(null===(e=f.animation)||void 0===e?void 0:e.behavior)===i?f.animation.promise:l()},[g,m,f]),w=mr(function(){v(!0),g(!1)},[v,g]),b=mr(function(e){if(e.target===h.current){var t=f.scrollTop,r=f.ignoreScrollToTop,n=f.lastScrollTop,a=void 0===n?t:n;f.lastScrollTop=t,f.ignoreScrollToTop=void 0,r&&r>t&&(a=r),l(f.isNearBottom),setTimeout(function(){var e;if(!f.resizeDifference&&t!==r){if(m())return v(!0),void g(!1);var n=t>a,i=t<a;(null===(e=f.animation)||void 0===e?void 0:e.ignoreEscapes)?f.scrollTop=a:(i&&(v(!0),g(!1)),n&&v(!1),!f.escapedFromLock&&f.isNearBottom&&g(!0))}},1)}},[v,g,m,f]),_=mr(function(e){for(var t,r=e.target,n=e.deltaY,a=r;!["scroll","auto"].includes(getComputedStyle(a).overflow);){if(!a.parentElement)return;a=a.parentElement}a===h.current&&n<0&&h.current.scrollHeight>h.current.clientHeight&&!(null===(t=f.animation)||void 0===t?void 0:t.ignoreEscapes)&&(v(!0),g(!1))},[v,g,f]);return fr(function(){var e=h.current;if(e)return e.addEventListener("scroll",b,{passive:!0}),e.addEventListener("wheel",_,{passive:!0}),function(){e.removeEventListener("scroll",b),e.removeEventListener("wheel",_)}},[b,_]),fr(function(){var e=p.current;if(e){var t,r=new ResizeObserver(function(e){var r=(0,d._)(e,1)[0].contentRect.height,n=r-(null!=t?t:r);if(f.resizeDifference=n,f.scrollTop>f.targetScrollTop&&(f.scrollTop=f.targetScrollTop),l(f.isNearBottom),n>=0){var a=hr(u.current,t?u.current.resize:u.current.initial);y({animation:a,wait:!0,preserveScrollPosition:!0,duration:"instant"===a?void 0:350})}else f.isNearBottom&&(v(!1),g(!0));t=r,requestAnimationFrame(function(){setTimeout(function(){f.resizeDifference===n&&(f.resizeDifference=0)},1)})});return r.observe(e),f.resizeObserver=r,function(){r.disconnect(),f.resizeObserver=void 0}}},[f,l,v,g,y]),{contentRef:p,scrollRef:h,scrollToBottom:y,stopScroll:w,isAtBottom:i||c,isNearBottom:c,escapedFromLock:r,state:f}}),br={streamingLabel:"Curating resultsâ¦"},_r=r(6214),xr=0;function Pr(e){var t=e.createElement;return t("svg",{width:"8",height:"16",viewBox:"0 0 8 16",fill:"none"},t("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M7.13809 0.744078C7.39844 1.06951 7.39844 1.59715 7.13809 1.92259L2.27616 8L7.13809 14.0774C7.39844 14.4028 7.39844 14.9305 7.13809 15.2559C6.87774 15.5814 6.45563 15.5814 6.19528 15.2559L0.861949 8.58926C0.6016 8.26382 0.6016 7.73618 0.861949 7.41074L6.19528 0.744078C6.45563 0.418641 6.87774 0.418641 7.13809 0.744078Z"}))}function Sr(e){var t=e.createElement;return t("svg",{width:"8",height:"16",viewBox:"0 0 8 16",fill:"none"},t("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M0.861908 15.2559C0.601559 14.9305 0.601559 14.4028 0.861908 14.0774L5.72384 8L0.861908 1.92259C0.601559 1.59715 0.601559 1.06952 0.861908 0.744079C1.12226 0.418642 1.54437 0.418642 1.80472 0.744079L7.13805 7.41074C7.3984 7.73618 7.3984 8.26382 7.13805 8.58926L1.80472 15.2559C1.54437 15.5814 1.12226 15.5814 0.861908 15.2559Z"}))}var kr=function(e){var t=e.createElement,r=e.Fragment;return function(e){var n=e.listRef,a=e.nextButtonRef,i=e.previousButtonRef,s=e.carouselIdRef,o=e.canScrollLeft,d=e.canScrollRight,h=e.setCanScrollLeft,p=e.setCanScrollRight,f=e.classNames,g=void 0===f?{}:f,v=e.itemComponent,y=void 0===v?function(e){var t=e.createElement,r=e.Fragment;return function(e){return t(r,null,JSON.stringify(e.item,null,2))}}({createElement:t,Fragment:r}):v,w=e.previousIconComponent,b=void 0===w?Pr:w,_=e.nextIconComponent,x=void 0===_?Sr:_,P=e.headerComponent,S=e.showNavigation,k=void 0===S||S,R=e.items,T=e.translations,E=e.sendEvent,C=(0,u._)(e,["listRef","nextButtonRef","previousButtonRef","carouselIdRef","canScrollLeft","canScrollRight","setCanScrollLeft","setCanScrollRight","classNames","itemComponent","previousIconComponent","nextIconComponent","headerComponent","showNavigation","items","translations","sendEvent"]),I=(0,c._)({listLabel:"Items",nextButtonLabel:"Next",nextButtonTitle:"Next",previousButtonLabel:"Previous",previousButtonTitle:"Previous"},T),q={root:(0,m.cx)("ais-Carousel",g.root),list:(0,m.cx)("ais-Carousel-list",g.list),item:(0,m.cx)("ais-Carousel-item",g.item),navigation:(0,m.cx)("ais-Carousel-navigation",g.navigation),navigationNext:(0,m.cx)("ais-Carousel-navigation--next",g.navigationNext),navigationPrevious:(0,m.cx)("ais-Carousel-navigation--previous",g.navigationPrevious)};function A(){n.current&&(n.current.scrollLeft-=.75*n.current.offsetWidth)}function N(){n.current&&(n.current.scrollLeft+=.75*n.current.offsetWidth)}return 0===R.length?null:t("div",(0,l._)((0,c._)({},C),{className:(0,m.cx)(q.root)}),P&&t(P,{canScrollLeft:o,canScrollRight:d,scrollLeft:A,scrollRight:N}),k&&t("button",{ref:i,title:I.previousButtonTitle,"aria-label":I.previousButtonLabel,hidden:!0,"aria-controls":s.current,className:(0,m.cx)(q.navigation,q.navigationPrevious),onClick:function(e){e.preventDefault(),A()}},t(b,{createElement:t})),t("ol",{className:(0,m.cx)(q.list),ref:n,tabIndex:0,id:s.current,"aria-roledescription":"carousel","aria-label":I.listLabel,"aria-live":"polite",onScroll:function(){if(n.current){var e=n.current.scrollLeft<=0,t=n.current.scrollLeft+n.current.clientWidth>
12=n.current.scrollWidth;h(!e),p(!t),i.current&&(i.current.hidden=e),a.current&&(a.current.hidden=t)}},onKeyDown:function(e){"ArrowLeft"===e.key?(e.preventDefault(),A()):"ArrowRight"===e.key&&(e.preventDefault(),N())}},R.map(function(e,r){return t("li",{key:e.objectID,className:(0,m.cx)(q.item),"aria-roledescription":"slide","aria-label":"".concat(r+1," of ").concat(R.length),onClick:function(){E("click:internal",e,"Item Clicked")},onAuxClick:function(){E("click:internal",e,"Item Clicked")}},t(y,{item:e,sendEvent:E}))})),k&&t("button",{ref:a,title:I.nextButtonTitle,"aria-label":I.nextButtonLabel,"aria-controls":s.current,className:(0,m.cx)(q.navigation,q.navigationNext),onClick:function(e){e.preventDefault(),N()}},t(x,{createElement:t})))}}({createElement:wt.h,Fragment:wt.FK});function Rr(e){var t=(0,d._)((0,bt.J0)(!1),2),r=t[0],n=t[1],a=(0,d._)((0,bt.J0)(!0),2),i=a[0],s=a[1],o={listRef:(0,bt.li)(null),nextButtonRef:(0,bt.li)(null),previousButtonRef:(0,bt.li)(null),carouselIdRef:(0,bt.li)("ais-Carousel-".concat(xr++)),canScrollLeft:r,canScrollRight:i,setCanScrollLeft:n,setCanScrollRight:s};return(0,wt.h)(kr,(0,c._)({},o,e))}function Tr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cssClasses,r=e.templates,n=void 0===r?{}:r,a=e.showNavigation,i=void 0===a||a;return function(e){var r=e.items,a=e.templates,s=e.cssClasses,o=void 0===s?{}:s,l=e.sendEvent,u=void 0===l?function(){}:l,d=n.previous,h=n.next,p=n.header;return(0,wt.h)(Rr,{items:r,sendEvent:u,itemComponent:a.item,headerComponent:p?function(e){return p((0,c._)({html:_r.qy},e))}:void 0,previousIconComponent:d?function(){return d({html:_r.qy})}:void 0,nextIconComponent:h?function(){return h({html:_r.qy})}:void 0,classNames:(0,c._)({},t,{list:(0,m.cx)(null==t?void 0:t.list,null==o?void 0:o.list),item:(0,m.cx)(null==t?void 0:t.item,null==o?void 0:o.item)}),showNavigation:i})}}function Er(e){var t=function(e){var t=e.createElement,r=e.Fragment,n=e.useMemo;return function(e){var a=e.toolProps,i=e.groupCarouselComponent,s=e.translations,o=a.message,u=a.messages,d=a.sendEvent,h=(0,c._)({},br,s),p=null==o?void 0:o.toolCallId,m=n(function(){return u?function(e,t){var r={},n=!0,a=!1,i=void 0;try{for(var s,o=function(){var e=s.value,n=!1;if(e.parts.forEach(function(e){w(e)&&(t&&e.toolCallId===t&&(n=!0),function(e){return e.type==="tool-".concat(v)||g(e.type,"tool-".concat(v,"_"))}(e)&&function(e,t){var r="output-available"===e.state?e.output:void 0,n=null==r?void 0:r.hits;Array.isArray(n)&&n.forEach(function(e){e&&"string"==typeof e.objectID&&""!==e.objectID&&(t[e.objectID]=e)})}(e,r))}),n)return"break"},c=e[Symbol.iterator]();!(n=(s=c.next()).done)&&"break"!==o();n=!0);}catch(e){a=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw i}}return r}(u,p):void 0},[u,p]),f=null==o?void 0:o.output,y="string"==typeof(null==f?void 0:f.intro)?f.intro:void 0,b=Array.isArray(null==f?void 0:f.groups)?f.groups:[],_="output-available"===(null==o?void 0:o.state)&&!0===o.preliminary;return y||0!==b.length?t("div",{className:"ais-ChatToolDisplayResults"},y&&t("div",{className:"ais-ChatToolDisplayResults-intro"},y),b.map(function(e,r){var n=Array.isArray(e.results)?e.results.filter(function(e){return Boolean(e)&&"string"==typeof e.objectID&&""!==e.objectID}):[];if(0===n.length)return null;var a=n.map(function(e,t){var r=null==m?void 0:m[e.objectID];return(0,l._)((0,c._)({},r),{objectID:e.objectID,__position:t+1,__displayToolResult:e})});return t("div",{key:r,className:"ais-ChatToolDisplayResults-group"},e.title&&t("div",{className:"ais-ChatToolDisplayResults-groupTitle"},e.title),e.why&&t("div",{className:"ais-ChatToolDisplayResults-groupWhy"},e.why),i({items:a,sendEvent:d}))}),_&&t("div",{className:"ais-ChatToolDisplayResults-streaming"},h.streamingLabel)):t(r,null)}}({createElement:wt.h,Fragment:wt.FK,useMemo:bt.Kr}),r=(0,h.Q)({createElement:wt.h});return{templates:{layout:function(n){return(0,wt.h)(t,{toolProps:n,groupCarouselComponent:function(t){var n=t.items,a=t.sendEvent;return Tr({showNavigation:!1,templates:{header:function(e){var t=e.canScrollLeft,a=e.canScrollRight,i=e.scrollLeft,s=e.scrollRight;return(0,wt.h)("div",{className:"ais-ChatToolDisplayResultsCarou
12selHeader"},(0,wt.h)("div",{className:"ais-ChatToolDisplayResultsCarouselHeaderCount"},n.length," result",n.length>1?"s":""),(0,wt.h)("div",{className:"ais-ChatToolDisplayResultsCarouselHeaderScrollButtons"},(0,wt.h)(r,{variant:"outline",size:"sm",iconOnly:!0,onClick:i,disabled:!t,className:"ais-ChatToolDisplayResultsCarouselHeaderScrollButton"},(0,wt.h)(p.YJ,{createElement:wt.h})),(0,wt.h)(r,{variant:"outline",size:"sm",iconOnly:!0,onClick:s,disabled:!a,className:"ais-ChatToolDisplayResultsCarouselHeaderScrollButton"},(0,wt.h)(p.vK,{createElement:wt.h}))))}}})({items:n,templates:{item:function(t){var r=t.item;return(0,wt.h)(_t.A,{templates:e,templateKey:"item",data:r,rootTagName:"fragment"})}},sendEvent:a})}})}}}}var Cr=r(4182),Ir=r(9072),qr=r(6845),Ar=r(4582),Nr=(0,Yt.V)({name:"chat"}),Dr=function(e){var t=e.createElement,r=e.Fragment,n=e.memo,a=e.useState,i=function(e){var t=e.createElement,r=(0,h.Q)({createElement:t});return function(e){var n=e.maximized,a=void 0!==n&&n,i=e.onToggleMaximize,s=e.onClose,o=e.onClear,l=e.canClear,d=void 0!==l&&l,h=e.closeIconComponent;e.minimizeIconComponent;var f=e.maximizeIconComponent,g=e.titleIconComponent,v=e.classNames,y=void 0===v?{}:v,w=e.translations,b=(0,u._)(e,["maximized","onToggleMaximize","onClose","onClear","canClear","closeIconComponent","minimizeIconComponent","maximizeIconComponent","titleIconComponent","classNames","translations"]),_=(0,c._)({title:"Chat",minimizeLabel:"Minimize chat",maximizeLabel:"Maximize chat",closeLabel:"Close chat",clearLabel:"Clear"},w),x=t(a?p.gR:p._X,{createElement:t});return t("div",(0,c._)({className:(0,m.cx)("ais-ChatHeader",y.root,b.className)},b),t("span",{className:(0,m.cx)("ais-ChatHeader-title",y.title)},t("span",{className:(0,m.cx)("ais-ChatHeader-titleIcon",y.titleIcon)},g?t(g,null):t(p.BZ,{createElement:t})),_.title),t("div",{className:(0,m.cx)("ais-ChatHeader-actions")},o&&t(r,{variant:"ghost",size:"sm",className:(0,m.cx)("ais-ChatHeader-clear",y.clear),onClick:o,disabled:!d},_.clearLabel),t(r,{variant:"ghost",size:"sm",iconOnly:!0,className:(0,m.cx)("ais-ChatHeader-maximize",y.maximize),onClick:i,"aria-label":a?_.minimizeLabel:_.maximizeLabel},f?t(f,{maximized:a}):x),t(r,{variant:"ghost",size:"sm",iconOnly:!0,className:(0,m.cx)("ais-ChatHeader-close",y.close),onClick:s,"aria-label":_.closeLabel,title:_.closeLabel},h?t(h,null):t(p.US,{createElement:t}))))}}({createElement:t,Fragment:r}),s=function(e){var t=e.createElement,r=e.Fragment,n=e.memo,a=(0,h.Q)({createElement:t}),i=n(vt({createElement:t,Fragment:r}),gt),s=function(e){var t=e.createElement;return function(e){var r=e.translations,n=(0,u._)(e,["translations"]),a=(0,c._)({loaderText:""},r);return t("article",(0,c._)({className:"ais-ChatMessageLoader ais-ChatMessage ais-ChatMessage--left ais-ChatMessage--subtle"},n),t("div",{className:"ais-ChatMessage-container"},t("div",{className:"ais-ChatMessage-leading"},t("div",{className:"ais-ChatMessageLoader-spinner"},t(p.VO,{createElement:t}))),t("div",{className:"ais-ChatMessage-content"},t("div",{className:"ais-ChatMessage-message"},a.loaderText&&t("div",{className:"ais-ChatMessageLoader-text"},a.loaderText),t("div",{className:"ais-ChatMessageLoader-skeletonWrapper"},t("div",{className:"ais-ChatMessageLoader-skeletonItem"}),t("div",{className:"ais-ChatMessageLoader-skeletonItem"}))))))}}({createElement:t}),o=function(e){var t=e.createElement,r=(0,h.Q)({createElement:t});return function(e){var n,a,i=e.errorMessage,s=e.onReload,o=e.onNewConversation,l=e.actions,d=e.translations,h=(0,u._)(e,["errorMessage","onReload","onNewConversation","actions","translations"]),m=null==d?void 0:d.errorMessage,f="function"==typeof m?m({errorMessage:i}):null!=m?m:"Sorry, we are not able to generate a response at the moment. Please contact support.",g=null!==(n=null==d?void 0:d.newConversationText)&&void 0!==n?n:"Start a new conversation",v=null!==(a=null==d?void 0:d.retryText)&&void 0!==a?a:"Retry",y=Boolean(l),w=!y&&Boolean(o),b=!y&&!w&&Boolean(s),_=y||w||b;return t("article",(0,c._)({className:"ais-ChatMessageError ais-ChatMessage ais-ChatMessage--left ais-ChatMessage--subtle"},h),t("div",{className:"ais-ChatMessage-container"},t("div",{className:"ais-ChatMessage-content"},t("div",{className:"ais-ChatMessage-message"},f),_&&t("div",{className:"ais-ChatMessage-actions"},y?l.map(function(e,n){return t(r,(0,c._)({key:n,variant:"ghost",className:"ais-ChatMessage-action"},e),e.children)}):w?t(r,{variant:"primary",size:"md",className:"ais-ChatMessage-errorAction",onClick:function(){return null==o?void 0:o()}},g):t(r,{variant:"primary",size:"md",className:"ais-ChatMessage-errorAction",onClick:function(){return null==s?void 0:s()}},t(p.jf,{createElement:t}),v)))))}}({createElement:t});return function(e){var r,n=e.classNames,d=void 0===n?{}:n,h=e.messageClassNames,f=void 0===h?{}:h,g=e.messageTranslations,v=e.messages,y=void 0===v?[]:v,w=e.messageComponent,b=e.loaderComponent,_=e.errorComponent,x=e.emptyComponent,P=e.actionsComponent,S=e.tools,k=e.indexUiState,R=e.setIndexUiState,T=e.status,E=void 0===T?"ready":T,C=e.error,I=e.hide
vendor: 4,543 bytes, line 12
12ScrollToBottom,q=void 0!==I&&I,A=e.onReload,N=e.onNewConversation,D=e.onClose,F=e.sendMessage,j=e.setInput,O=e.translations,M=e.userMessageProps,L=e.assistantMessageProps,H=e.isClearing,$=void 0!==H&&H,U=e.onClearTransitionEnd,B=e.isScrollAtBottom,W=e.scrollRef,z=e.contentRef,Q=e.onScrollToBottom,V=e.suggestionsElement,K=e.onFeedback,G=e.feedbackState,J=(0,u._)(e,["classNames","messageClassNames","messageTranslations","messages","messageComponent","loaderComponent","errorComponent","emptyComponent","actionsComponent","tools","indexUiState","setIndexUiState","status","error","hideScrollToBottom","onReload","onNewConversation","onClose","sendMessage","setInput","translations","userMessageProps","assistantMessageProps","isClearing","onClearTransitionEnd","isScrollAtBottom","scrollRef","contentRef","onScrollToBottom","suggestionsElement","onFeedback","feedbackState"]),Z=(0,c._)({scrollToBottomLabel:"Scroll to bottom",copyToClipboardLabel:"Copy to clipboard",regenerateLabel:"Regenerate",thumbsUpLabel:"Like",thumbsDownLabel:"Dislike",feedbackThankYouText:"Thanks for your feedback!",sendingFeedbackLabel:"Sending feedback..."},O),X={root:(0,m.cx)("ais-ChatMessages",d.root),scroll:(0,m.cx)("ais-ChatMessages-scroll ais-Scrollbar",d.scroll),content:(0,m.cx)("ais-ChatMessages-content",d.content),scrollToBottom:(0,m.cx)("ais-ChatMessages-scrollToBottom",d.scrollToBottom),scrollToBottomHidden:(0,m.cx)("ais-ChatMessages-scrollToBottom--hidden",d.scrollToBottomHidden)},Y=y[y.length-1],ee=null==Y||null===(r=Y.parts)||void 0===r?void 0:r[Y.parts.length-1],te=yt(E,ee,S),re=0===y.length&&!te&&!$&&"error"!==E,ne=w||i,ae=b||s,ie=_||o;return t("div",(0,l._)((0,c._)({},J),{className:(0,m.cx)(X.root,J.className),role:"log","aria-live":"polite"}),t("div",{className:(0,m.cx)(X.scroll),ref:W},t("div",{className:(0,m.cx)(X.content,$&&"ais-ChatMessages-content--clearing"),ref:z,onTransitionEnd:function(e){e.target===e.currentTarget&&"opacity"===e.propertyName&&$&&(null==U||U())}},re&&x&&t(x,{sendMessage:F,setInput:j,status:E,onClose:D}),y.map(function(e,r){return t(ne,{key:e.id,message:e,status:E,userMessageProps:M,assistantMessageProps:L,tools:S,indexUiState:k,setIndexUiState:R,messages:y,onReload:A,onFeedback:K,feedbackState:G,actionsComponent:P,onClose:D,translations:Z,classNames:f,messageTranslations:g,suggestionsElement:"ready"===E&&"assistant"===e.role&&r===y.length-1?V:void 0})}),te&&t(ae,{translations:{loaderText:Z.loaderText}}),"error"===E&&t(ie,{onNewConversation:N,errorMessage:null==C?void 0:C.message,translations:"GuardrailViolationError"===(null==C?void 0:C.name)?{errorMessage:function(e){var t=e.errorMessage;return null!=t?t:""}}:void 0}))),t(a,{variant:"outline",size:"sm",iconOnly:!0,className:(0,m.cx)(X.scrollToBottom,(q||B)&&X.scrollToBottomHidden),onClick:Q,"aria-label":Z.scrollToBottomLabel,tabIndex:B?-1:0},t(p.D3,{createElement:t})))}}({createElement:t,Fragment:r,memo:n}),o=function(e){var t=e.createElement,r=(0,h.Q)({createElement:t}),n=null,a=0,i=0,s=function(){if(n){n.style.height="auto";var e=n.scrollHeight;if(n.getAttribute("data-max-rows")){var t=parseInt(n.getAttribute("data-max-rows")||"0",10);if(t>0){var r=t*a+i;return n.style.overflowY=e>r?"auto":"hidden",void(n.style.height="".concat(Math.min(e,r),"px"))}}n.style.overflowY="hidden",n.style.height="".concat(e,"px")}};return function(e){var o=e.classNames,d=void 0===o?{}:o,h=e.headerComponent,f=e.footerComponent,g=e.value,v=e.placeholder,y=e.status,w=void 0===y?"ready":y,b=e.disabled,_=void 0!==b&&b,x=e.maxRows,P=void 0===x?5:x,S=e.autoFocus,k=void 0===S||S,R=e.translations,T=e.onInput,E=e.onSubmit,C=e.onKeyDown,I=e.onStop,q=e.promptRef,A=(0,u._)(e,["classNames","headerComponent","footerComponent","value","placeholder","status","disabled","maxRows","autoFocus","translations","onInput","onSubmit","onKeyDown","onStop","promptRef"]),N=(0,c._)({textareaLabel:"Type your message...",textareaPlaceholder:"Type your message...",emptyMessageTooltip:"Message is empty",stopResponseTooltip:"Stop response",sendMessageTooltip:"Send message",disclaimer:"AI can make mistakes. Verify responses."},R),D={root:(0,m.cx)("ais-ChatPrompt",d.root),header:(0,m.cx)("ais-ChatPrompt-header",d.header),body:(0,m.cx)("ais-ChatPrompt-body",d.body),textarea:(0,m.cx)("ais-ChatPrompt-textarea ais-Scrollbar",_&&"ais-ChatPrompt-textarea--disabled",d.textarea),actions:(0,m.cx)("ais-ChatPrompt-actions",d.actions,_&&"ais-ChatPrompt-actions--disabled"),submit:(0,m.cx)("ais-ChatPrompt-submit",d.submit),footer:(0,m.cx)("ais-ChatPrompt-footer",d.footer)}
12,F="string"==typeof g?""!==g.trim():Boolean(g),j="submitted"===w||"streaming"===w,O=!F&&!j||_,M=t(j?p.wF:p.Kp,{createElement:t});return t("form",{className:(0,m.cx)(D.root,A.className),onSubmit:function(e){e.preventDefault(),j?null==I||I():F&&(null==E||E(e))}},h&&t("div",{className:(0,m.cx)(D.header)},t(h,null)),t("div",{className:(0,m.cx)(D.body),onClick:function(e){e.target!==n&&(null==n||n.focus())}},t("textarea",(0,l._)((0,c._)({},A),{ref:function(e){return function(e,t){if(n=e,t&&(t.current=e),e){var r=getComputedStyle(e);a=parseFloat(r.lineHeight);var o=parseFloat(r.paddingTop),c=parseFloat(r.paddingBottom);i=o+c,s()}}(e,q)},"data-max-rows":P,className:(0,m.cx)(D.textarea),value:g,placeholder:v||N.textareaPlaceholder,"aria-label":N.textareaLabel,disabled:_,autoFocus:k,onInput:function(e){s(),null==T||T(e)},onKeyDown:function(e){if(null==C||C(e),"Enter"===e.key&&!e.shiftKey){if(e.preventDefault(),j)return void(null==I||I());if(!F)return;null==E||E(e)}"Escape"===e.key&&e.currentTarget&&e.currentTarget.blur&&e.currentTarget.blur()}})),t("div",{className:(0,m.cx)(D.actions)},t(r,{type:"submit",variant:"primary",size:"sm",iconOnly:!0,className:(0,m.cx)(D.submit),disabled:O,"aria-label":O?N.emptyMessageTooltip:j?N.stopResponseTooltip:N.sendMessageTooltip,"data-status":w},M))),t("div",{className:(0,m.cx)(D.footer)},f?t(f,null):t("div",{className:"ais-ChatPrompt-disclaimer"},N.disclaimer)))}}({createElement:t,Fragment:r}),f=function(e){var t=e.createElement,r=(0,h.Q)({createElement:t});return function(e){var n=e.suggestions,a=void 0===n?[]:n,i=e.onSuggestionClick,s=e.classNames,o=void 0===s?{}:s;return 0===a.length?null:t("div",{className:(0,m.cx)("ais-ChatPromptSuggestions",o.root)},a.map(function(e,n){return t(r,{key:n,size:"sm",variant:"primary",className:(0,m.cx)("ais-ChatPromptSuggestions-suggestion",o.suggestion),onClick:function(){return i(e)}},e)}))}}({createElement:t,Fragment:r}),g=function(e){var t=e.createElement;return function(e){var r=e.open,n=e.maximized,a=e.headerComponent,i=e.messagesComponent,s=e.promptComponent,o=e.classNames,d=void 0===o?{}:o,h=e.className;e.messages,e.status,e.isClearing,e.clearMessages,e.onClearTransitionEnd,e.suggestions,e.tools,e.sendMessage,e.regenerate,e.stop,e.error;var p=(0,u._)(e,["open","maximized","headerComponent","messagesComponent","promptComponent","classNames","className","messages","status","isClearing","clearMessages","onClearTransitionEnd","suggestions","tools","sendMessage","regenerate","stop","error"]);return t("div",(0,l._)((0,c._)({},p),{className:(0,m.cx)("ais-Chat","ais-ChatOverlayLayout",n&&"ais-ChatOverlayLayout--maximized",d.root,h)}),t("div",{className:(0,m.cx)("ais-Chat-container",r&&"ais-Chat-container--open",n&&"ais-Chat-container--maximized",d.container)},a,i,s))}}({createElement:t,Fragment:r});return function(e){var r=e.open,n=e.maximized,h=void 0!==n&&n,p=e.headerProps,m=e.messagesProps,v=e.suggestionsProps,y=e.promptProps,w=void 0===y?{}:y,b=e.headerComponent,_=e.promptComponent,x=e.suggestionsComponent,P=e.layoutComponent,S=void 0===P?g:P,k=e.classNames,R=void 0===k?{}:k,T=e.className,E=e.sendMessage,C=e.regenerate,I=e.stop,q=e.error,A=(0,u._)(e,["open","maximized","headerProps","messagesProps","suggestionsProps","promptProps","headerComponent","promptComponent","suggestionsComponent","layoutComponent","classNames","className","sendMessage","regenerate","stop","error"]),N=(0,d._)(a(!1),2),D=N[0],F=N[1],j=p.onClear||m.onNewConversation,O=function(){j&&("undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?j():("submitted"!==m.status&&"streaming"!==m.status||I(),F(!0)))},M=function(){null==j||j(),F(!1)},L=t(b||i,(0,l._)((0,c._)({},p),{onClear:j?O:p.onClear,canClear:p.canClear&&!D,classNames:R.header,maximized:h})),H=t(s,(0,l._)((0,c._)({},m),{isClearing:D,onClearTransitionEnd:M,onNewConversation:j?O:m.onNewConversation,error:q,classNames:R.messages,messageClassNames:R.message,suggestionsElement:t(x||f,(0,l._)((0,c._)({},v),{classNames:R.suggestions}))})),$=t(_||o,(0,l._)((0,c._)({},w),{classNames:R.prompt}));return t(S,(0,l._)((0,c._)({},A),{open:r,maximized:h,headerComponent:L,messagesComponent:H,promptComponent:$,classNames:{root:R.root,container:R.container},className:T,messages:m.messages,status:m.status,tools:m.tools,isClearing:D,clearMessages:j?O:p.onClear,onClearTransitionEnd:M,suggestions:v.suggestions,sendMessage:E,regenerate:C,stop:I,error:q}))}}({createElement:wt.h,Fragment:wt.FK,memo:function(e,t){var r=function(r){function s(){return(0,a._)(this,s),(0,n._)(this,s,arguments)}return(0,o._)(s,r),(0,i._)(s,[{key:"shouldComponentUpdate",value:function(e){return!t||!t(this.props,e)}},{key:"render",value:function(){return(0,wt.h)(e,this.props)}}]),s}(wt.uA);return function(e){return(0,wt.h)(r,e)}},useState:bt.J0});function Fr(e){return Object.fromEntries(Object.entries(e).filter(function(e){return void 0!==(0,d._)(e,2)[1]}))}function jr(e,t,r){var n=(0,h.Q)({createElement:wt.h});
vendor: 4,269 bytes, line 12
12function a(t){var a=t.canScrollLeft,i=t.canScrollRight,s=t.scrollLeft,o=t.scrollRight,c=t.nbHits,l=t.input,u=t.hitsPerPage,d=t.applyFilters,h=t.onClose;return(null!=u?u:0)<1?null:(0,wt.h)("div",{className:"ais-ChatToolSearchIndexCarouselHeader"},(0,wt.h)("div",{className:"ais-ChatToolSearchIndexCarouselHeaderResults"},c&&(0,wt.h)("div",{className:"ais-ChatToolSearchIndexCarouselHeaderCount"},null!=u?u:0," of ",c.toLocaleString()," result",c>1?"s":""),e&&(0,wt.h)(n,{variant:"ghost",size:"sm",onClick:function(){if(l&&d){var e=d({query:l.query,facetFilters:b(l)});r&&new URL(r(e)).pathname!==window.location.pathname&&(window.location.href=r(e)),h()}},className:"ais-ChatToolSearchIndexCarouselHeaderViewAll"},"View all",(0,wt.h)(p.fl,{createElement:wt.h}))),(null!=u?u:0)>2&&(0,wt.h)("div",{className:"ais-ChatToolSearchIndexCarouselHeaderScrollButtons"},(0,wt.h)(n,{variant:"outline",size:"sm",iconOnly:!0,onClick:s,disabled:!a,className:"ais-ChatToolSearchIndexCarouselHeaderScrollButton"},(0,wt.h)(p.YJ,{createElement:wt.h})),(0,wt.h)(n,{variant:"outline",size:"sm",iconOnly:!0,onClick:o,disabled:!i,className:"ais-ChatToolSearchIndexCarouselHeaderScrollButton"},(0,wt.h)(p.vK,{createElement:wt.h}))))}return{templates:{layout:function(e){var r,n,i=e.message,s=e.applyFilters,o=e.onClose,l=e.sendEvent,u=null==i?void 0:i.input,d=null==i?void 0:i.output,h=(0,qr.g)((null==d?void 0:d.hits)||[],0,(null!==(r=null==u?void 0:u.number_of_results)&&void 0!==r?r:null==d||null===(n=d.hits)||void 0===n?void 0:n.length)||5),p=(0,Ar.P)(h,null==d?void 0:d.queryID);return Tr({showNavigation:!1,templates:{header:(0,bt.Kr)(function(){return function(e){return(0,wt.h)(a,(0,c._)({nbHits:null==d?void 0:d.nbHits,input:u,hitsPerPage:p.length,applyFilters:s,onClose:o},e))}},[p.length,u,null==d?void 0:d.nbHits,s,o])}})({items:p,templates:{item:function(e){var r=e.item;return(0,wt.h)(_t.A,{templates:t,templateKey:"item",data:r,rootTagName:"fragment"})}},sendEvent:l})}}}}function Or(e){var t=e.layoutComponent,r=e.cssClasses,n=e.chatOpen,a=e.setChatOpen,i=e.chatMessages,s=e.indexUiState,o=e.setIndexUiState,c=e.chatStatus,l=e.chatInput,u=e.setChatInput,h=e.sendMessage,p=e.regenerate,m=e.stop,f=e.error,g=e.clearMessages,v=e.onFeedback,y=e.feedbackState,w=e.toolsForUi,b=e.headerProps,_=e.messagesProps,x=e.promptProps,P=e.suggestionsProps,S=e.state,k=wr({initial:"smooth",resize:"smooth"}),R=k.scrollRef,T=k.contentRef,E=k.scrollToBottom,C=k.isAtBottom;(0,bt.vJ)(function(){"streaming"!==c&&"submitted"!==c||E({preserveScrollPosition:!0})},[i,c,E]),S.init();var I=(0,d._)(S.use(!1),2),q=I[0],A=I[1];return(0,wt.h)(Dr,{layoutComponent:t,classNames:r,open:n,maximized:q,sendMessage:h,regenerate:p,stop:m,error:f,headerComponent:b.layoutComponent,promptComponent:x.layoutComponent,suggestionsComponent:P.suggestionsComponent,headerProps:{onClose:function(){return a(!1)},maximized:q,onToggleMaximize:function(){return A(!q)},onClear:g,canClear:Boolean(null==i?void 0:i.length),closeIconComponent:b.closeIconComponent,minimizeIconComponent:b.minimizeIconComponent,maximizeIconComponent:b.maximizeIconComponent,titleIconComponent:b.titleIconComponent,translations:b.translations},messagesProps:{status:c,error:f,onReload:function(e){return p({messageId:e})},onNewConversation:g,onClose:function(){return a(!1)},onFeedback:v,feedbackState:y,messages:i,indexUiState:s,isScrollAtBottom:C,scrollRef:R,contentRef:T,onScrollToBottom:E,setIndexUiState:o,tools:w,loaderComponent:_.loaderComponent,errorComponent:_.errorComponent,emptyComponent:_.emptyComponent,actionsComponent:_.actionsComponent,assistantMessageProps:_.assistantMessageProps,userMessageProps:_.userMessageProps,translations:_.translations,messageTranslations:_.messageTranslations,sendMessage:_.sendMessage,setInput:_.setInput},promptProps:{promptRef:x.promptRef,status:c,value:l,onInput:function(e){u(e.currentTarget.value)},onSubmit:function(){h({text:l}),u("")},onStop:function(){m()},headerComponent:x.headerComponent,footerComponent:x.footerComponent,translations:x.translations},suggestionsProps:{onSuggestionClick:P.onSuggestionClick,suggestions:P.suggestions}})}var Mr={item:function(e){return(0,wt.h)(wt.FK,null,JSON.stringify(e,null,2))}},Lr=function(e){var t=e||{},r=t.container,n=t.templates,a=void 0===n?{}
12:n,i=t.cssClasses,o=void 0===i?{}:i,h=t.resume,p=void 0!==h&&h,m=t.tools,f=t.getSearchPageURL,g=t.disableTriggerValidation,v=void 0!==g&&g,y=(0,u._)(t,["container","templates","cssClasses","resume","tools","getSearchPageURL","disableTriggerValidation"]);if(!r)throw new Error(Nr("The `container` option is required."));var w=(0,Cr.e)(r),b=(0,c._)({},Mr,a),_=function(e,t){var r;return r={},(0,s._)(r,Pt,jr(!0,e,t)),(0,s._)(r,"algolia_recommend",jr(!1,e,t)),(0,s._)(r,"algolia_display_results",Er(e)),(0,s._)(r,"algolia_memorize",{templates:{}}),(0,s._)(r,"algolia_memory_search",{templates:{}}),(0,s._)(r,"algolia_ponder",{templates:{}}),r}(b,f),x=(0,c._)({},_,m),P="function"==typeof b.layout&&!0===b.layout.$$inlineLayout,S=v||P,k=function(e){var t,r,n,a,i,s,o,h,p,m,f,g,v,y=e.renderState,w=e.cssClasses,b=e.containerNode,_=e.templates,x=e.tools,P=function(){var e=[],t=new Set,r=0;return{init:function(){r=0},subscribe:function(e){return t.add(e),function(){return t.delete(e)}},use:function(n){var a=r++;return void 0===e[a]&&(e[a]=n),[e[a],function(r){var n=e[a];return n===r?n:(e[a]=r,t.forEach(function(e){return e()}),r)}]}}}(),S={current:null},k=!1,R={current:void 0},T={current:void 0},E={current:void 0},C={current:void 0},I={current:void 0},q={current:void 0},A={current:void 0},N={current:void 0};function D(e,t,r){return function(n){return(0,wt.h)(_t.A,(0,l._)((0,c._)({},e.current),{templateKey:t,rootTagName:r,data:n}))}}var F=new Map;function j(e,t){var r=F.get(e);return r||(r=function(e){return(0,wt.h)(_t.A,{templates:t.templates,rootTagName:"fragment",templateKey:"layout",data:e})},F.set(e,r)),r}var O=(null===(t=_.header)||void 0===t?void 0:t.layout)?D(R,"layout","div"):void 0,M=(null===(r=_.header)||void 0===r?void 0:r.closeIcon)?D(R,"closeIcon","span"):void 0,L=(null===(n=_.header)||void 0===n?void 0:n.minimizeIcon)?D(R,"minimizeIcon","span"):void 0,H=(null===(a=_.header)||void 0===a?void 0:a.maximizeIcon)?D(R,"maximizeIcon","span"):void 0,$=(null===(i=_.header)||void 0===i?void 0:i.titleIcon)?D(R,"titleIcon","span"):void 0,U=(null===(s=_.messages)||void 0===s?void 0:s.error)?D(T,"error","div"):void 0,B=_.empty?D(C,"empty","div"):void 0,W=(null===(o=_.assistantMessage)||void 0===o?void 0:o.leading)?D(I,"leading","fragment"):void 0,z=(null===(h=_.assistantMessage)||void 0===h?void 0:h.footer)?D(I,"footer","fragment"):void 0,Q=(null===(p=_.userMessage)||void 0===p?void 0:p.leading)?D(q,"leading","fragment"):void 0,V=(null===(m=_.userMessage)||void 0===m?void 0:m.footer)?D(q,"footer","fragment"):void 0,K=(null===(f=_.prompt)||void 0===f?void 0:f.layout)?D(A,"layout","div"):void 0,G=(null===(g=_.prompt)||void 0===g?void 0:g.header)?D(A,"header","fragment"):void 0,J=(null===(v=_.prompt)||void 0===v?void 0:v.footer)?D(A,"footer","fragment"):void 0,Z=_.actions?function(e){return(0,wt.h)(_t.A,(0,l._)((0,c._)({},y.templateProps),{templateKey:"actions",rootTagName:"div",data:e}))}:void 0,X=_.loader?D(E,"loader","div"):void 0,Y=_.suggestions?function(e){return(0,wt.h)(_t.A,(0,l._)((0,c._)({},y.templateProps),{templateKey:"suggestions",rootTagName:"fragment",data:e}))}:void 0,ee=_.layout?function(e){var t=e.headerComponent,r=e.messagesComponent,n=e.promptComponent,a=(0,u._)(e,["headerComponent","messagesComponent","promptComponent"]);return(0,wt.h)(_t.A,(0,l._)((0,c._)({},N.current),{templateKey:"layout",rootTagName:"fragment",data:(0,l._)((0,c._)({},a),{templates:{header:function(){return t},messages:function(){return r},prompt:function(){return n}}})}))}:void 0;return function(e,t){var r,n,a,i,s,o,l,u,h,p,m,f,g,v,D,F,te=e.indexUiState,re=e.input,ne=e.instantSearchInstance,ae=e.messages,ie=e.open,se=e.sendMessage,oe=e.setIndexUiState,ce=e.setInput,le=e.setOpen,ue=e.status,de=e.error,he=e.regenerate,pe=e.stop,me=e.clearMessages,fe=e.tools,ge=e.suggestions,ve=e.sendChatMessageFeedback,ye=e.feedbackState;if(t)y.templateProps=(0,Ir.C)({defaultTemplates:{},templatesConfig:ne.templatesConfig,templates:_});else{var we={};Object.entries(fe).forEach(function(e){var t,r=(0,d._)(e,2),n=r[0],a=r[1],i=x[n];!i&&n.startsWith("".concat(Pt,"_"))&&(i=x[Pt]),we[n]=(0,c._)({},a,(null==i||null===(t=i.templates)||void 0===t?void 0:t.layout)&&{layoutComponent:j(n,i)})}),R.current=(0,Ir.C)({defaultTemplates:{},templatesConfig:ne.templatesConfig,templates:_.header});var be=Fr({title:null===(r=_.header)||void 0===r?void 0:r.titleText,minimizeLabel:null===(n=_.header)||void 0===n?void 0:n.minimizeLabelText,maximizeLabel:null===(a=_.header)||void 0===a?void 0:a.maximizeLabelText,closeLabel:null===(i=_.header)||void 0===i?void 0:i.closeLabelText,clearLabel:null===(s=_.header)||void 0===s?void 0:s.clearLabelText});T.current=(0,Ir.C)({defaultTemplates:{},templatesConfig:ne.templatesConfig,templates:_.messages}),E.current=(0,Ir.C)({defaultTemplates:{},templatesConfig:ne.templatesConfig,templates:{loader:_.loader}}),C.current=(0,Ir.C)({defaultTemplates:{},templatesConfig:ne.templatesConfig,templates:{empty:_.empty}});var _e=Fr({scrollToBottomLabel:null===(o=_.messages)||void 0===o?void 0:o.scrollToBottomLabelText,loaderText:_.loaderText,copyToClipboardLabel:null===(l=_.messages)||void 0===l?void 0:l.copyToClipboardLabelText,regenerateLabel:null===(u=_.messages)||void 0===u?void 0:u.regenerateLabelText});I.current=(0,Ir.C)({defaultTemplates:{},templatesConfig:ne.templatesConfig,templates:_.assistantMessage});var xe=Fr({actionsLabel:null===(h=_.message)||void 0===h?void 0:h.actionsLabelText,messageLabel:null===(p=_.message)||void 0===p?void 0:p.messageLabelText});q.current=(0,Ir.C)({defaultTemplates:{}
vendor: 4,970 bytes, line 12
12,templatesConfig:ne.templatesConfig,templates:_.userMessage}),A.current=(0,Ir.C)({defaultTemplates:{},templatesConfig:ne.templatesConfig,templates:_.prompt});var Pe=Fr({textareaLabel:null===(m=_.prompt)||void 0===m?void 0:m.textareaLabelText,textareaPlaceholder:null===(f=_.prompt)||void 0===f?void 0:f.textareaPlaceholderText,emptyMessageTooltip:null===(g=_.prompt)||void 0===g?void 0:g.emptyMessageTooltipText,stopResponseTooltip:null===(v=_.prompt)||void 0===v?void 0:v.stopResponseTooltipText,sendMessageTooltip:null===(D=_.prompt)||void 0===D?void 0:D.sendMessageTooltipText,disclaimer:null===(F=_.prompt)||void 0===F?void 0:F.disclaimerText});N.current=(0,Ir.C)({defaultTemplates:{},templatesConfig:ne.templatesConfig,templates:{layout:_.layout}}),P.subscribe(ke);var Se=!k&&ie;ke(),Se&&window.requestAnimationFrame(function(){var e;null===(e=S.current)||void 0===e||e.focus()}),k=ie}function ke(){(0,wt.XX)((0,wt.h)(Or,{layoutComponent:ee,cssClasses:w,chatOpen:ie,setChatOpen:le,chatMessages:ae,indexUiState:te,setIndexUiState:oe,chatStatus:ue,chatInput:re,setChatInput:ce,sendMessage:se,regenerate:he,stop:pe,error:de,clearMessages:me,onFeedback:ve,feedbackState:ye,toolsForUi:we,headerProps:{layoutComponent:O,closeIconComponent:M,minimizeIconComponent:L,maximizeIconComponent:H,titleIconComponent:$,translations:be},messagesProps:{loaderComponent:X,errorComponent:U,emptyComponent:B,actionsComponent:Z,assistantMessageProps:{leadingComponent:W,footerComponent:z},userMessageProps:{leadingComponent:Q,footerComponent:V},translations:_e,messageTranslations:xe,sendMessage:se,setInput:ce},promptProps:{layoutComponent:K,headerComponent:G,footerComponent:J,translations:Pe,promptRef:S},state:P,suggestionsProps:{suggestions:ge,onSuggestionClick:function(e){se({text:e})},suggestionsComponent:Y}}),b)}}}({containerNode:w,cssClasses:o,renderState:{},templates:b,tools:x}),R=or(k,function(){return(0,wt.XX)(null,w)});return(0,l._)((0,c._)({},R((0,c._)({resume:p,tools:x,disableTriggerValidation:S},y))),{$$widgetType:"ais.chat"})}},9493:(e,t,r)=>{"use strict";r.d(t,{Y:()=>l,n:()=>c});var n=r(5118),a=r(7216),i=r(30),s=r(2865);function o(e,t,r){var a=(0,i.eX)(t,t.mainIndex,t._initialUiState);e.forEach(function(e){var i={};if(e.getWidgetRenderState){var s=e.getWidgetRenderState(a);s&&s.widgetParams&&(i=s.widgetParams)}var c=Object.keys(i).filter(function(e){return void 0!==i[e]});r.widgets.push({type:e.$$type,widgetType:e.$$widgetType,params:c}),(0,n.l)(e)&&o(e.getWidgets(),t,r)})}function c(){return(0,s.x)(function(e){var t,r;return(null===(r=e.window.navigator)||void 0===r||null===(t=r.userAgent)||void 0===t?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})}function l(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).$$internal,t=void 0!==e&&e;return function(e){var r=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),s=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:t,onStateChange:function(){},subscribe:function(){setTimeout(function(){n.ua=(0,a.F)(r.client),o(r.mainIndex.getWidgets(),r,n),r.middleware.forEach(function(e){return n.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(n),s.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}},9549:(e,t)=>{!function(e){function t(e,t,r){var n;return t&&"object"==typeof t&&(void 0!==t[e]?n=t[e]:r&&t.get&&"function"==typeof t.get&&(n=t.get(e))),n}e.Template=function(e,t,r,n){e=e||{},this.r=e.code||this.r,this.c=r,this.options=n||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,r){return""},v:function(e){return e=c(e),o.test(e)?e.replace(r,"&").replace(n,"<").replace(a,">").replace(i,"'").replace(s,"""):e},t:c,render:function(e,t,r){return this.ri([e],t||{},r)},ri:function(e,t,r){return this.r(e,t,r)},ep:function(e,t){var r=this.partials[e],n=t[r.name];if(r.instance&&r.base==n)return r.instance;if("string"==typeof n){if(!this.c)throw new Error("No compiler available.");n=this.c.compile(n,this.options)}if(!n)return null;if(this.partials[e].base=n,r.subs){for(key in t.stackText||(t.stackText={}),r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);n=function(e,t,r,n,a,i){function s(){}function o(){}var c;s.prototype=e,o.prototype=e.subs;var l=new s;for(c in l.subs=new o,l.subsText={},l.buf="",n=n||{},l.stackSubs=n,l.subsText=i,t)n[c]||(n[c]=t[c]);for(c in n)l.subs[c]=n[c];for(c in a=a||{},l.stackPartials=a,r)a[c]||(a[c]=r[c]);for(c in a)l.partials[c]=a[c];return l}(n,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=n,n},rp:function(e,t,r,n){var a=this.ep(e,r);return a?a.ri(t,r,n):""},rs:function(e,t,r){var n=e[e.length-1];if(l(n))for(var a=0;a<n.length;
12a++)e.push(n[a]),r(e,t,this),e.pop();else r(e,t,this)},s:function(e,t,r,n,a,i,s){var o;return(!l(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,r,n,a,i,s)),o=!!e,!n&&o&&t&&t.push("object"==typeof e?e:t[t.length-1]),o)},d:function(e,r,n,a){var i,s=e.split("."),o=this.f(s[0],r,n,a),c=this.options.modelGet,u=null;if("."===e&&l(r[r.length-2]))o=r[r.length-1];else for(var d=1;d<s.length;d++)void 0!==(i=t(s[d],o,c))?(u=o,o=i):o="";return!(a&&!o)&&(a||"function"!=typeof o||(r.push(u),o=this.mv(o,r,n),r.pop()),o)},f:function(e,r,n,a){for(var i=!1,s=!1,o=this.options.modelGet,c=r.length-1;c>=0;c--)if(void 0!==(i=t(e,r[c],o))){s=!0;break}return s?(a||"function"!=typeof i||(i=this.mv(i,r,n)),i):!a&&""},ls:function(e,t,r,n,a){var i=this.options.delimiters;return this.options.delimiters=a,this.b(this.ct(c(e.call(t,n)),t,r)),this.options.delimiters=i,!1},ct:function(e,t,r){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,r)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,r,n,a,i,s){var o,c=t[t.length-1],l=e.call(c);return"function"==typeof l?!!n||(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(l,c,r,o.substring(a,i),s)):l},mv:function(e,t,r){var n=t[t.length-1],a=e.call(n);return"function"==typeof a?this.ct(c(a.call(n)),n,r):a},sub:function(e,t,r,n){var a=this.subs[e];a&&(this.activeSub=e,a(t,r,this,n),this.activeSub=!1)}};var r=/&/g,n=/</g,a=/>/g,i=/\'/g,s=/\"/g,o=/[&<>\"\']/;function c(e){return String(null==e?"":e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},9734:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var n=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName,a=r?"-".concat(r):"",i=n?"--".concat(n):"";return"".concat("ais","-").concat(e).concat(a).concat(i)}}},9850:(e,t,r)=>{"use strict";function n(e){return"string"==typeof e?e.replace(/^\\-/,"-"):e}function a(e){return"number"==typeof e&&e<0||"string"==typeof e?String(e).replace(/^-/,"\\-"):e}r.d(t,{A:()=>a,T:()=>n})},9886:(e,t,r)=>{"use strict";function n(e){return Object.prototype.toString.call(e).slice(8,-1)}r.d(t,{K:()=>n})},9965:(e,t,r)=>{"use strict";r.r(t),r.d(t,{apiClientVersion:()=>i,personalizationClient:()=>o});var n=r(4267),a=r(5375),i="5.49.2",s=["eu","us"];function o(e,t,r,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");if(!r||r&&("string"!=typeof r||!s.includes(r)))throw new Error(`\`region\` is required and must be one of the following: ${s.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:a,region:s,...o}){const c=(0,n.PA)(e,t,r),l=(0,n.zf)({hosts:(u=s,[{url:"personalization.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:(0,n.F1)({algoliaAgents:a,client:"Personalization",version:i}),baseHeaders:{"content-type":"text/plain",...c.headers(),...o.baseHeaders},baseQueryParameters:{...c.queryParameters(),...o.baseQueryParameters}});var u;return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const n={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const n={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(n,r)},customPost({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},customPut({path:e,parameters:t,body:r},n){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,n)},deleteUserProfile({userToken:e},t){if(!e)throw new Error("Parameter `userToken` is required when calling `deleteUserProfile`.");const r={method:"DELETE",path:"/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getPersonalizationStrategy:e=>l.request({method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}},e),getUserTokenProfile({userToken:e},t){if(!e)throw new Error("Parameter `userToken` is required when calling `getUserTokenProfile`.");const r={method:"GET",path:"/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},setPersonalizationStrategy(e,t){if(!e)throw new Error("Parameter `personalizationStrategyParams` is required when calling `setPersonalizationStrategy`.");if(!e.eventsScoring)throw new Error("Parameter `personalizationStrategyParams.eventsScoring` is required when calling `setPersonalizationStrategy`.");if(!e.facetsScoring)throw new Error("Parameter `personalizationStrategyParams.facetsScoring` is required when calling `setPersonalizationStrategy`.");if(!e.personalizationImpact)throw new Error("Parameter `personalizationStrategyParams.personalizationImpact` is required when calling `setPersonalizationStrategy`.");const r={method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:e};return l.request(r,t)}}}({appId:e,apiKey:t,region:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:(0,n.oh)(),requester:(0,a.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:(0,n.of)(),requestsCache:(0,n.of)({serializable:!1}),hostsCache:(0,n.v2)({caches:[(0,n.jY)({key:`${i}-${e}`}),(0,n.of)()]}),...o})}}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return i[e](r,r.exports,o),r.exports}e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",r=e?Symbol("webpack exports"):"__webpack_exports__",n=e?Symbol("webpack error"):"__webpack_error__",a=e=>
12{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},o.a=(e,i,s)=>{var o;s&&((o=[]).d=-1);var c,l,u,d=new Set,h=e.exports,p=new Promise((e,t)=>{u=t,l=e});p[r]=h,p[t]=e=>(o&&e(o),d.forEach(e),p.catch(e=>{})),e.exports=p,i(e=>{var i;c=(e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(e[t])return e;if(e.then){var i=[];i.d=0,e.then(e=>{s[r]=e,a(i)},e=>{s[n]=e,a(i)});var s={};return s[t]=e=>e(i),s}}var o={};return o[t]=e=>{},o[r]=e,o}))(e);var s=()=>c.map(e=>{if(e[n])throw e[n];return e[r]}),l=new Promise(e=>{(i=()=>e(s)).r=0;var r=e=>e!==o&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));c.map(e=>e[t](r))});return i.r?l:s()},e=>(e?u(p[n]=e):l(h),a(o))),o&&o.d<0&&(o.d=0)},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(6954)})();
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.