!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):t((e="undefined"!=typeofglobalThis?globalThis:e||self)["@algolia/autocomplete-js"]={})}(this,(function(e){"use strict";functiont(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionn(e){for(varn=1;n<arguments.length;n++){varr=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionr(e){returnr="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},r(e)}functiono(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functioni(){returni=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},i.apply(this,arguments)}functionu(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}functiona(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varn=null==e?null:"undefined"!=typeofSymbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;varr,o,i=[],u=!0,a=!1;try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(a)throwo}}returni}(e,t)||l(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionc(e){returnfunction(e){if(Array.isArray(e))returns(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||l(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionl(e,t){if(e){if("string"==typeofe)returns(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void0}}functions(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functionp(e){return{current:e}}functionf(e,t){varn=void0;returnfunction(){for(varr=arguments.length,o=newArray(r),i=0;i<r;i++)o[i]=arguments[i];n&&clearTimeout(n),n=setTimeout((function(){returne.apply(void0,o)}),t)}}functiond(e){returne.reduce((function(e,t){returne.concat(t)}),[])}varm=0;functionv(){return"autocomplete-".concat(m++)}functionh(e,t){returnt.reduce((function(e,t){returne&&e[t]}),e)}functiong(e){return0===e.collections.length?0:e.collections.reduce((function(e,t){returne+t.items.length}),0)}vary=function(){},b="1.7.3",O=[{segment:"autocomplete-core",version:b}];function_(e,t){varn=t;return{then:function(t,r){return_(e.then(j(t,n,e),j(r,n,e)),n)},catch:function(t){return_(e.catch(j(t,n,e)),n)},finally:function(t){returnt&&n.onCancelList.push(t),_(e.finally(j(t&&function(){returnn.onCancelList=[],t()},n,e)),n)},cancel:function(){n.isCanceled=!0;vare=n.onCancelList;n.onCancelList=[],e.forEach((function(e){e()}))},isCanceled:function(){return!0===n.isCanceled}}}functionP(e){return_(e,{isCanceled:!1,onCancelList:[]})}functionj(e,t,n){returne?function(n){returnt.isCanceled?n:e(n)}:n}functionw(e,t,n,r){if(!n)returnnull;if(e<0&&(null===t||null!==r&&0===t))returnn+e;varo=(null===t?-1:t)+e;returno<=-1||o>=n?null===r?null:0:o}functionS(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionI(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionE(e,t){varn=[];returnPromise.resolve(e(t)).then((function(e){returnPromise.all(e.filter((function(e){returnBoolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))thrownewError("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);vart=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({getItemInputValue:function(e){returne.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:y},e);returnPromise.resolve(t)})))}))}functionA(e){vart=function(e){vart=e.collections.map((function(e){returne.items.length})).reduce((function(e,t,n){varr=(e[n-1]||0)+t;returne.push(r),e}),[]).reduce((function(t,n){returnn<=e.activeItemId?t+1:t}),0);returne.collections[t]}(e);if(!t)returnnull;varn=t.items[function(e){for(vart=e.state,n=e.collection,r=!1,o=0,i=0;!1===r;){varu=t.collections[o];if(u===n){r=!0;break}i+=u.items.length,o++}returnt.activeItemId-i}({state:e,collection:t})],r=t.source;return{item:n,itemInputValue:r.getItemInputValue({item:n,state:e}),itemUrl:r.getItemUrl({item:n,state:e}),source:r}}varC=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;functionD(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionk(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionx(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionN(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionq(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionR(e,t,n){varr,o=t.initialState;return{getState:function(){returno},dispatch:function(r,i){varu=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({},o);o=e(o,{type:r,props:t,payload:i}),n({state:o,prevState:u})},pendingRequests:(r=[],{add:function(e){returnr.push(e),e.finally((function(){r=r.filter((function(t){returnt!==e}))}))},cancelAll:function(){r.forEach((function(e){returne.cancel()}))},isEmpty:function(){return0===r.length}})}}functionT(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionL(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionB(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionF(e){returnfunction(e){if(Array.isArray(e))returnM(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeofe)returnM(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)returnArray.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnM(e,t)}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionM(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functionU(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionH(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionV(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionW(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionQ(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}function$(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionz(e){returnfunction(e){if(Array.isArray(e))returnG(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeofe)returnG(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)returnArray.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnG(e,t)}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionG(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functionK(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionJ(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionY(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionX(e){returnBoolean(e.execute)}functionZ(e,t){returnn=e,Boolean(null==n?void0:n.execute)?J(J({},e),{},{requests:e.queries.map((function(n){return{query:n,sourceId:t,transformResponse:e.transformResponse}}))}):{items:e,sourceId:t};varn}functionee(e){vart=e.reduce((function(e,t){if(!X(t))returne.push(t),e;varn=t.searchClient,r=t.execute,o=t.requesterId,i=t.requests,u=e.find((function(e){returnX(t)&&X(e)&&e.searchClient===n&&Boolean(o)&&e.requesterId===o}));if(u){vara;(a=u.items).push.apply(a,z(i))}else{varc={execute:r,requesterId:o,items:i,searchClient:n};e.push(c)}returne}),[]).map((function(e){if(!X(e))returnPromise.resolve(e);vart=e,n=t.execute,r=t.items;returnn({searchClient:t.searchClient,requests:r})}));returnPromise.all(t).then((function(e){returnd(e)}))}functionte(e,t){returnt.map((function(t){varn=e.filter((function(e){returne.sourceId===t.sourceId})),r=n.map((function(e){returne.items})),o=n[0].transformResponse,i=o?o(function(e){vart=e.map((function(e){vart;returnk(k({},e),{},{hits:null===(t=e.hits)||void0===t?void0:t.map((function(t){returnk(k({},t),{},{__autocomplete_indexName:e.index,__autocomplete_queryID:e.queryID})}))})}));return{results:t,hits:t.map((function(e){returne.hits})).filter(Boolean),facetHits:t.map((function(e){vart;returnnull===(t=e.facetHits)||void0===t?void0:t.map((function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}}))})).filter(Boolean)}}(r)):r;returni.every(Boolean),'The `getItems` function from source "'.concat(t.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"),{source:t,items:i}}))}varne=["event","nextState","props","query","refresh","store"];functionre(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionoe(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionie(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionue(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}varae,ce,le,se=null,pe=(ae=-1,ce=-1,le=void0,function(e){vart=++ae;returnPromise.resolve(e).then((function(e){returnle&&t<ce?le:(ce=t,le=e,e)}))});functionfe(e){vart=e.event,n=e.nextState,r=void0===n?{}:n,o=e.props,i=e.query,u=e.refresh,a=e.store,c=ue(e,ne);se&&o.environment.clearTimeout(se);varl=c.setCollections,s=c.setIsOpen,p=c.setQuery,f=c.setActiveItemId,m=c.setStatus;if(p(i),f(o.defaultActiveItemId),!i&&!1===o.openOnFocus){varv,h=a.getState().collections.map((function(e){returnoe(oe({},e),{},{items:[]})}));m("idle"),l(h),s(null!==(v=r.isOpen)&&void0!==v?v:o.shouldPanelOpen({state:a.getState()}));varg=P(pe(h).then((function(){returnPromise.resolve()})));returna.pendingRequests.add(g)}m("loading"),se=o.environment.setTimeout((function(){m("stalled")}),o.stallThreshold);vary=P(pe(o.getSources(oe({query:i,refresh:u,state:a.getState()},c)).then((function(e){returnPromise.all(e.map((function(e){returnPromise.resolve(e.getItems(oe({query:i,refresh:u,state:a.getState()},c))).then((function(t){returnZ(t,e.sourceId)}))}))).then(ee).then((function(t){returnte(t,e)})).then((function(e){returnfunction(e){vart=e.collections,n=e.props,r=e.state,o=t.reduce((function(e,t){returnQ(Q({},e),{},$({},t.source.sourceId,Q(Q({},t.source),{},{getItems:function(){returnd(t.items)}})))}),{});returnd(n.reshape({sources:Object.values(o),sourcesBySourceId:o,state:r})).filter(Boolean).map((function(e){return{source:e,items:e.getItems()}}))}({collections:e,props:o,state:a.getState()})}))})))).then((function(e){varn;m("idle"),l(e);varp=o.shouldPanelOpen({state:a.getState()});s(null!==(n=r.isOpen)&&void0!==n?n:o.openOnFocus&&!i&&p||p);varf=A(a.getState());if(null!==a.getState().activeItemId&&f){vard=f.item,v=f.itemInputValue,h=f.itemUrl,g=f.source;g.onActive(oe({event:t,item:d,itemInputValue:v,itemUrl:h,refresh:u,source:g,state:a.getState()},c))}})).finally((function(){m("idle"),se&&o.environment.clearTimeout(se)}));returna.pendingRequests.add(y)}varde=["event","props","refresh","store"];functionme(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionve(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionhe(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionge(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}varye=["props","refresh","store"],be=["inputElement","formElement","panelElement"],Oe=["inputElement"],_e=["inputElement","maxLength"],Pe=["item","source"];functionje(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionwe(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionSe(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionIe(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}functionEe(e){vart=e.props,n=e.refresh,r=e.store,o=Ie(e,ye);return{getEnvironmentProps:function(e){varn=e.inputElement,o=e.formElement,i=e.panelElement;functionu(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[o,i].some((function(t){returnn=t,r=e.target,n===r||n.contains(r);varn,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}returnwe({onTouchStart:u,onMouseDown:u,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},Ie(e,be))},getRootProps:function(e){returnwe({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){returne.inputElement,we({action:"",noValidate:!0,role:"search",onSubmit:function(i){varu;i.preventDefault(),t.onSubmit(we({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),null===(u=e.inputElement)||void0===u||u.blur()},onReset:function(i){varu;i.preventDefault(),t.onReset(we({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),null===(u=e.inputElement)||void0===u||u.focus()}},Ie(e,Oe))},getLabelProps:function(e){returnwe({htmlFor:"".concat(t.id,"-input"),id:"".concat(t.id,"-label")},e)},getInputProps:function(e){vari;functionu(e){(t.openOnFocus||Boolean(r.getState().query))&&fe(we({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}vara=e||{};a.inputElement;varc=a.maxLength,l=void0===c?512:c,s=Ie(a,_e),p=A(r.getState()),f=function(e){returnBoolean(e&&e.match(C))}((null===(i=t.environment.navigator)||void0===i?void0:i.userAgent)||""),d=null!=p&&p.itemUrl&&!f?"go":"search";returnwe({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:d,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:l,type:"search",onChange:function(e){fe(we({event:e,props:t,query:e.currentTarget.value.slice(0,l),refresh:n,store:r},o))},onKeyDown:function(e){!function(e){vart=e.event,n=e.props,r=e.refresh,o=e.store,i=ge(e,de);if("ArrowUp"===t.key||"ArrowDown"===t.key){varu=function(){vare=n.environment.document.getElementById("".concat(n.id,"-item-").concat(o.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},a=function(){vare=A(o.getState());if(null!==o.getState().activeItemId&&e){varn=e.item,u=e.itemInputValue,a=e.itemUrl,c=e.source;c.onActive(ve({event:t,item:n,itemInputValue:u,itemUrl:a,refresh:r,source:c,state:o.getState()},i))}};t.preventDefault(),!1===o.getState().isOpen&&(n.openOnFocus||Boolean(o.getState().query))?fe(ve({event:t,props:n,query:o.getState().query,refresh:r,store:o},i)).then((function(){o.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(u,0)})):(o.dispatch(t.key,{}),a(),u())}elseif("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();elseif("Tab"===t.key)o.dispatch("blur",null),o.pendingRequests.cancelAll();elseif("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return0===e.items.length})))returnvoid(n.debug||o.pendingRequests.cancelAll());t.preventDefault();varc=A(o.getState()),l=c.item,s=c.itemInputValue,p=c.itemUrl,f=c.source;if(t.metaKey||t.ctrlKey)void0!==p&&(f.onSelect(ve({event:t,item:l,itemInputValue:s,itemUrl:p,refresh:r,source:f,state:o.getState()},i)),n.navigator.navigateNewTab({itemUrl:p,item:l,state:o.getState()}));elseif(t.shiftKey)void0!==p&&(f.onSelect(ve({event:t,item:l,itemInputValue:s,itemUrl:p,refresh:r,source:f,state:o.getState()},i)),n.navigator.navigateNewWindow({itemUrl:p,item:l,state:o.getState()}));elseif(t.altKey);else{if(void0!==p)returnf.onSelect(ve({event:t,item:l,itemInputValue:s,itemUrl:p,refresh:r,source:f,state:o.getState()},i)),voidn.navigator.navigate({itemUrl:p,item:l,state:o.getState()});fe(ve({event:t,nextState:{isOpen:!1},props:n,query:s,refresh:r,store:o},i)).then((function(){f.onSelect(ve({event:t,item:l,itemInputValue:s,itemUrl:p,refresh:r,source:f,state:o.getState()},i))}))}}}(we({event:e,props:t,refresh:n,store:r},o))},onFocus:u,onBlur:y,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||u(n)}},s)},getPanelProps:function(e){returnwe({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){returnwe({role:"listbox","aria-labelledby":"".concat(t.id,"-label"),id:"".concat(t.id,"-list")},e)},getItemProps:function(e){vari=e.item,u=e.source,a=Ie(e,Pe);returnwe({id:"".concat(t.id,"-item-").concat(i.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(e){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);vart=A(r.getState());if(null!==r.getState().activeItemId&&t){varu=t.item,a=t.itemInputValue,c=t.itemUrl,l=t.source;l.onActive(we({event:e,item:u,itemInputValue:a,itemUrl:c,refresh:n,source:l,state:r.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){vara=u.getItemInputValue({item:i,state:r.getState()}),c=u.getItemUrl({item:i,state:r.getState()});(c?Promise.resolve():fe(we({event:e,nextState:{isOpen:!1},props:t,query:a,refresh:n,store:r},o))).then((function(){u.onSelect(we({event:e,item:i,itemInputValue:a,itemUrl:c,refresh:n,source:u,state:r.getState()},o))}))}},a)}}}functionAe(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionCe(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){De(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionDe(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionke(e){vart,n,r,o,i=e.plugins,u=e.options,a=null===(t=((null===(n=u.__autocomplete_metadata)||void0===n?void0:n.userAgents)||[])[0])||void0===t?void0:t.segment,c=a?De({},a,Object.keys((null===(r=u.__autocomplete_metadata)||void0===r?void0:r.options)||{})):{};return{plugins:i.map((function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}})),options:Ce({"autocomplete-core":Object.keys(u)},c),ua:O.concat((null===(o=u.__autocomplete_metadata)||void0===o?void0:o.userAgents)||[])}}functionxe(e){vart,n=e.state;return!1===n.isOpen||null===n.activeItemId?null:(null===(t=A(n))||void0===t?void0:t.itemInputValue)||null}functionNe(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionqe(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionRe(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}varTe=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":returnqe(qe({},e),{},{activeItemId:t.payload});case"setQuery":returnqe(qe({},e),{},{query:t.payload,completion:null});case"setCollections":returnqe(qe({},e),{},{collections:t.payload});case"setIsOpen":returnqe(qe({},e),{},{isOpen:t.payload});case"setStatus":returnqe(qe({},e),{},{status:t.payload});case"setContext":returnqe(qe({},e),{},{context:qe(qe({},e.context),t.payload)});case"ArrowDown":varn=qe(qe({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:w(1,e.activeItemId,g(e),t.props.defaultActiveItemId)});returnqe(qe({},n),{},{completion:xe({state:n})});case"ArrowUp":varr=qe(qe({},e),{},{activeItemId:w(-1,e.activeItemId,g(e),t.props.defaultActiveItemId)});returnqe(qe({},r),{},{completion:xe({state:r})});case"Escape":returne.isOpen?qe(qe({},e),{},{activeItemId:null,isOpen:!1,completion:null}):qe(qe({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":returnqe(qe({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":returnqe(qe({},e),{},{activeItemId:!0===t.props.openOnFocus?t.props.defaultActiveItemId:null,status:"idle",query:""});case"focus":returnqe(qe({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||Boolean(e.query))&&t.props.shouldPanelOpen({state:e})});case"blur":returnt.props.debug?e:qe(qe({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":returnqe(qe({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};functionLe(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionBe(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionFe(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionMe(e){vart=[],n=function(e,t){varn,r="undefined"!=typeofwindow?window:{},o=e.plugins||[];returnH(H({debug:!1,openOnFocus:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,environment:r,shouldPanelOpen:function(e){returng(e.state)>0},reshape:function(e){returne.sources}},e),{},{id:null!==(n=e.id)&&void0!==n?n:v(),plugins:o,initialState:H({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){varn;null===(n=e.onStateChange)||void0===n||n.call(e,t),o.forEach((function(e){varn;returnnull===(n=e.onStateChange)||void0===n?void0:n.call(e,t)}))},onSubmit:function(t){varn;null===(n=e.onSubmit)||void0===n||n.call(e,t),o.forEach((function(e){varn;returnnull===(n=e.onSubmit)||void0===n?void0:n.call(e,t)}))},onReset:function(t){varn;null===(n=e.onReset)||void0===n||n.call(e,t),o.forEach((function(e){varn;returnnull===(n=e.onReset)||void0===n?void0:n.call(e,t)}))},getSources:function(n){returnPromise.all([].concat(F(o.map((function(e){returne.getSources}))),[e.getSources]).filter(Boolean).map((function(e){returnE(e,n)}))).then((function(e){returnd(e)})).then((function(e){returne.map((function(e){returnH(H({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){vart;returnnull===(t=e.onSelect)||void0===t?void0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){vart;returnnull===(t=e.onActive)||void0===t?void0:t.call(e,n)}))}})}))}))},navigator:H({navigate:function(e){vart=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){vart=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){vart=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}(e,t),r=R(Te,n,(function(e){vart=e.prevState,r=e.state;n.onStateChange(Be({prevState:t,state:r,refresh:u},o))})),o=function(e){vart=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){varn=0,r=e.map((function(e){returnL(L({},e),{},{items:d(e.items).map((function(e){returnL(L({},e),{},{__autocomplete_id:n++})}))})}));t.dispatch("setCollections",r)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:r}),i=Ee(Be({props:n,refresh:u,store:r},o));functionu(){returnfe(Be({event:newEvent("input"),nextState:{isOpen:r.getState().isOpen},props:n,query:r.getState().query,refresh:u,store:r},o))}returnn.plugins.forEach((function(e){varn;returnnull===(n=e.subscribe)||void0===n?void0:n.call(e,Be(Be({},o),{},{refresh:u,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})}}))})),function(e){vart,n,r=e.metadata,o=e.environment;if(null===(t=o.navigator)||void0===t||null===(n=t.userAgent)||void0===n?void0:n.includes("Algolia Crawler")){vari=o.document.createElement("meta"),u=o.document.querySelector("head");i.name="algolia:metadata",setTimeout((function(){i.content=JSON.stringify(r),u.appendChild(i)}),0)}}({metadata:ke({plugins:n.plugins,options:e}),environment:n.environment}),Be(Be({refresh:u},i),o)}varUe=function(e,t,n,r){varo;t[0]=0;for(vari=1;i<t.length;i++){varu=t[i++],a=t[i]?(t[0]|=u?1:2,n[t[i++]]):t[++i];3===u?r[0]=a:4===u?r[1]=Object.assign(r[1]||{},a):5===u?(r[1]=r[1]||{})[t[++i]]=a:6===u?r[1][t[++i]]+=a+"":u?(o=e.apply(a,Ue(e,a,n,["",null])),r.push(o),a[0]?t[0]|=2:(t[i-2]=0,t[i]=o)):r.push(a)}returnr},He=newMap;functionVe(e){vart=He.get(this);returnt||(t=newMap,He.set(this,t)),(t=Ue(this,t.get(e)||(t.set(e,t=function(e){for(vart,n,r=1,o="",i="",u=[0],a=function(e){1===r&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?u.push(0,e,o):3===r&&(e||o)?(u.push(3,e,o),r=2):2===r&&"..."===o&&e?u.push(4,e,0):2===r&&o&&!e?u.push(5,0,!0,o):r>=5&&((o||!e&&5===r)&&(u.push(r,0,o,n),r=6),e&&(u.push(r,e,0,n),r=6)),o=""},c=0;c<e.length;c++){c&&(1===r&&a(),a(c));for(varl=0;l<e[c].length;l++)t=e[c][l],1===r?"<"===t?(a(),u=[u],r=3):o+=t:4===r?"--"===o&&">"===t?(r=1,o=""):o=t+o[0]:i?t===i?i="":o+=t:'"'===t||"'"===t?i=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[c][l+1])?(a(),3===r&&(u=u[0]),r=u,(u=u[0]).push(2,0,r),r=0):""===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):o+=t),3===r&&"!--"===o&&(r=4,u=u[0])}returna(),u}(e)),t),arguments,[])).length>1?t:t[0]}varWe=function(e){vart=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");varr=t.document.createElementNS("http://www.w3.org/2000/svg","path");returnr.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n};functionQe(e,t){if("string"==typeoft){varn=e.document.querySelector(t);return"The element ".concat(JSON.stringify(t)," is not in the document."),n}returnt}function$e(){for(vare=arguments.length,t=newArray(e),n=0;n<e;n++)t[n]=arguments[n];returnt.reduce((function(e,t){returnObject.keys(t).forEach((function(n){varr=e[n],o=t[n];r!==o&&(e[n]=[r,o].filter(Boolean).join(""))})),e}),{})}varze=function(e){returne&&"object"===r(e)&&"[object Object]"===Object.prototype.toString.call(e)};functionGe(){for(vare=arguments.length,t=newArray(e),n=0;n<e;n++)t[n]=arguments[n];returnt.reduce((function(e,t){returnObject.keys(t).forEach((function(n){varr=e[n],o=t[n];Array.isArray(r)&&Array.isArray(o)?e[n]=r.concat.apply(r,c(o)):ze(r)&&ze(o)?e[n]=Ge(r,o):e[n]=o})),e}),{})}functionKe(e,t){returnObject.entries(e).reduce((function(e,r){vari=a(r,2),u=i[0],c=i[1];returnt({key:u,value:c})?n(n({},e),{},o({},u,c)):e}),{})}varJe=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];functionYe(e,t,n){e[t]=null===n?"":"number"!=typeofn?n:n+"px"}functionXe(e){this._listeners[e.type](e)}functionZe(e,t,n){varr,o,i=e[t];if("style"===t)if("string"==typeofn)e.style=n;elseif(null===n)e.style="";elsefor(tinn)i&&n[t]===i[t]||Ye(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((o=t.toLowerCase())ine||Je.includes(o))&&(t=o),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?i||e.addEventListener(t,Xe,r):e.removeEventListener(t,Xe,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&tine?e[t]=null==n?"":n:"function"!=typeofn&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}functionet(e){return"onChange"===e?"onInput":e}functiontt(e,t){for(varnint)Ze(e,et(n),t[n])}functionnt(e,t){for(varnint)"o"===n[0]&&"n"===n[1]||Ze(e,et(n),t[n])}varrt=["children"];functionot(e){returnfunction(t,n){varr=n.children,o=void0===r?[]:r,i=u(n,rt),a=e.document.createElement(t);returntt(a,i),a.append.apply(a,c(o)),a}}varit=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"],ut=function(e){vart=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");returnt.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='<circle\n cx="50"\n cy="50"\n fill="none"\n r="35"\n stroke="currentColor"\n stroke-dasharray="164.93361431346415 56.97787143782138"\n stroke-width="6"\n>\n <animateTransform\n attributeName="transform"\n type="rotate"\n repeatCount="indefinite"\n dur="1s"\n values="0 50 50;90 50 50;180 50 50;360 50 50"\n keyTimes="0;0.40;0.65;1"\n />\n</circle>',t},at=function(e){vart=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");varr=t.document.createElementNS("http://www.w3.org/2000/svg","path");returnr.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n};functionct(e){vart=e.autocomplete,r=e.autocompleteScopeApi,o=e.classNames,i=e.environment,a=e.isDetached,c=e.placeholder,l=void0===c?"Search":c,s=e.propGetters,p=e.setIsModalOpen,f=e.state,d=e.translations,m=ot(i),v=s.getRootProps(n({state:f,props:t.getRootProps({})},r)),h=m("div",n({class:o.root},v)),g=m("div",{class:o.detachedContainer,onMouseDown:function(e){e.stopPropagation()}}),y=m("div",{class:o.detachedOverlay,children:[g],onMouseDown:function(){p(!1),t.setIsOpen(!1)}}),b=s.getLabelProps(n({state:f,props:t.getLabelProps({})},r)),O=m("button",{class:o.submitButton,type:"submit",title:d.submitButtonTitle,children:[at({environment:i})]}),_=m("label",n({class:o.label,children:[O]},b)),P=m("button",{class:o.clearButton,type:"reset",title:d.clearButtonTitle,children:[We({environment:i})]}),j=m("div",{class:o.loadingIndicator,children:[ut({environment:i})]}),w=function(e){vart=e.autocompleteScopeApi,r=e.environment;e.classNames;varo=e.getInputProps,i=e.getInputPropsCore,a=e.isDetached,c=e.state,l=u(e,it),s=ot(r)("input",l),p=o(n({state:c,props:i({inputElement:s}),inputElement:s},t));returntt(s,n(n({},p),{},{onKeyDown:function(e){a&&"Tab"===e.key||p.onKeyDown(e)}})),s}({class:o.input,environment:i,state:f,getInputProps:s.getInputProps,getInputPropsCore:t.getInputProps,autocompleteScopeApi:r,isDetached:a}),S=m("div",{class:o.inputWrapperPrefix,children:[_,j]}),I=m("div",{class:o.inputWrapperSuffix,children:[P]}),E=m("div",{class:o.inputWrapper,children:[w]}),A=s.getFormProps(n({state:f,props:t.getFormProps({inputElement:w})},r)),C=m("form",n({class:o.form,children:[S,E,I]},A)),D=s.getPanelProps(n({state:f,props:t.getPanelProps({})},r)),k=m("div",n({class:o.panel},D));if(a){varx=m("div",{class:o.detachedSearchButtonIcon,children:[at({environment:i})]}),N=m("div",{class:o.detachedSearchButtonPlaceholder,textContent:l}),q=m("button",{type:"button",class:o.detachedSearchButton,onClick:function(){p(!0)},children:[x,N]}),R=m("button",{type:"button",class:o.detachedCancelButton,textContent:d.detachedCancelButtonText,onTouchStart:function(e){e.stopPropagation()},onClick:function(){t.setIsOpen(!1),p(!1)}}),T=m("div",{class:o.detachedFormContainer,children:[C,R]});g.appendChild(T),h.appendChild(q)}elseh.appendChild(C);return{detachedContainer:g,detachedOverlay:y,inputWrapper:E,input:w,root:h,form:C,label:_,submitButton:O,clearButton:P,loadingIndicator:j,panel:k}}varlt,st,pt,ft,dt,mt,vt={},ht=[],gt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;functionyt(e,t){for(varnint)e[n]=t[n];returne}functionbt(e){vart=e.parentNode;t&&t.removeChild(e)}functionOt(e,t,n){varr,o,i,u={};for(iint)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>2&&(u.children=arguments.length>3?lt.call(arguments,2):n),"function"==typeofe&&null!=e.defaultProps)for(iine.defaultProps)void0===u[i]&&(u[i]=e.defaultProps[i]);return_t(e,u,r,o,null)}function_t(e,t,n,r,o){vari={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void0,__c:null,__h:null,constructor:void0,__v:null==o?++pt:o};returnnull==o&&null!=st.vnode&&st.vnode(i),i}functionPt(e){returne.children}functionjt(e,t){this.props=e,this.context=t}functionwt(e,t){if(null==t)returne.__?wt(e.__,e.__.__k.indexOf(e)+1):null;for(varn;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)returnn.__e;return"function"==typeofe.type?wt(e):null}functionSt(e){vart,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}returnSt(e)}}functionIt(e){(!e.__d&&(e.__d=!0)&&ft.push(e)&&!Et.__r++||mt!==st.debounceRendering)&&((mt=st.debounceRendering)||dt)(Et)}functionEt(){for(vare;Et.__r=ft.length;)e=ft.sort((function(e,t){returne.__v.__b-t.__v.__b})),ft=[],e.some((function(e){vart,n,r,o,i,u;e.__d&&(i=(o=(t=e).__v).__e,(u=t.__P)&&(n=[],(r=yt({},o)).__v=o.__v+1,Rt(u,o,r,t.__n,void0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?wt(o):i,o.__h),Tt(n,o),o.__e!=i&&St(o)))}))}functionAt(e,t,n,r,o,i,u,a,c,l){vars,p,f,d,m,v,h,g=r&&r.__k||ht,y=g.length;for(n.__k=[],s=0;s<t.length;s++)if(null!=(d=n.__k[s]=null==(d=t[s])||"boolean"==typeofd?null:"string"==typeofd||"number"==typeofd||"bigint"==typeofd?_t(null,d,null,null,d):Array.isArray(d)?_t(Pt,{children:d},null,null,null):d.__b>0?_t(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=g[s])||f&&d.key==f.key&&d.type===f.type)g[s]=void0;elsefor(p=0;p<y;p++){if((f=g[p])&&d.key==f.key&&d.type===f.type){g[p]=void0;break}f=null}Rt(e,d,f=f||vt,o,i,u,a,c,l),m=d.__e,(p=d.ref)&&f.ref!=p&&(h||(h=[]),f.ref&&h.push(f.ref,null,d),h.push(p,d.__c||m,d)),null!=m?(null==v&&(v=m),"function"==typeofd.type&&d.__k===f.__k?d.__d=c=Ct(d,c,e):c=Dt(e,d,f,g,m,c),"function"==typeofn.type&&(n.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=wt(f))}for(n.__e=v,s=y;s--;)null!=g[s]&&("function"==typeofn.type&&null!=g[s].__e&&g[s].__e==n.__d&&(n.__d=wt(r,s+1)),Ft(g[s],g[s]));if(h)for(s=0;s<h.length;s++)Bt(h[s],h[++s],h[++s])}functionCt(e,t,n){for(varr,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeofr.type?Ct(r,t,n):Dt(n,r,r,o,r.__e,t));returnt}functionDt(e,t,n,r,o,i){varu,a,c;if(void0!==t.__d)u=t.__d,t.__d=void0;elseif(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(a=i,c=0;(a=a.nextSibling)&&c<r.length;c+=2)if(a==o)breake;e.insertBefore(o,i),u=i}returnvoid0!==u?u:o.nextSibling}functionkt(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeofn||gt.test(t)?n:n+"px"}functionxt(e,t,n,r,o){vari;e:if("style"===t)if("string"==typeofn)e.style.cssText=n;else{if("string"==typeofr&&(e.style.cssText=r=""),r)for(tinr)n&&tinn||kt(e.style,t,"");if(n)for(tinn)r&&n[t]===r[t]||kt(e.style,t,n[t])}elseif("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()ine?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?qt:Nt,i):e.removeEventListener(t,i?qt:Nt,i);elseif("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");elseif("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&tine)try{e[t]=null==n?"":n;breake}catch(e){}"function"==typeofn||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}functionNt(e){this.l[e.type+!1](st.event?st.event(e):e)}functionqt(e){this.l[e.type+!0](st.event?st.event(e):e)}functionRt(e,t,n,r,o,i,u,a,c){varl,s,p,f,d,m,v,h,g,y,b,O=t.type;if(void0!==t.constructor)returnnull;null!=n.__h&&(c=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(l=st.__b)&&l(t);try{e:if("function"==typeofO){if(h=t.props,g=(l=O.contextType)&&r[l.__c],y=l?g?g.props.value:l.__:r,n.__c?v=(s=t.__c=n.__c).__=s.__E:("prototype"inO&&O.prototype.render?t.__c=s=newO(h,y):(t.__c=s=newjt(h,y),s.constructor=O,s.render=Mt),g&&g.sub(s),s.props=h,s.state||(s.state={}),s.context=y,s.__n=r,p=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=O.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=yt({},s.__s)),yt(s.__s,O.getDerivedStateFromProps(h,s.__s))),f=s.props,d=s.state,p)null==O.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==O.getDerivedStateFromProps&&h!==f&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(h,y),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(h,s.__s,y)||t.__v===n.__v){s.props=h,s.state=s.__s,t.__v!==n.__v&&(s.__d=!1),s.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),s.__h.length&&u.push(s);breake}null!=s.componentWillUpdate&&s.componentWillUpdate(h,s.__s,y),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(f,d,m)}))}s.context=y,s.props=h,s.state=s.__s,(l=st.__r)&&l(t),s.__d=!1,s.__v=t,s.__P=e,l=s.render(s.props,s.state,s.context),s.state=s.__s,null!=s.getChildContext&&(r=yt(yt({},r),s.getChildContext())),p||null==s.getSnapshotBeforeUpdate||(m=s.getSnapshotBeforeUpdate(f,d)),b=null!=l&&l.type===Pt&&null==l.key?l.props.children:l,At(e,Array.isArray(b)?b:[b],t,n,r,o,i,u,a,c),s.base=t.__e,t.__h=null,s.__h.length&&u.push(s),v&&(s.__E=s.__=null),s.__e=!1}elsenull==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Lt(n.__e,t,n,r,o,i,u,c);(l=st.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=a,t.__h=!!c,i[i.indexOf(a)]=null),st.__e(e,t,n)}}functionTt(e,t){st.__c&&st.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){st.__e(e,t.__v)}}))}functionLt(e,t,n,r,o,i,u,a){varc,l,s,p=n.props,f=t.props,d=t.type,m=0;if("svg"===d&&(o=!0),null!=i)for(;m<i.length;m++)if((c=i[m])&&"setAttribute"inc==!!d&&(d?c.localName===d:3===c.nodeType)){e=c,i[m]=null;break}if(null==e){if(null===d)returndocument.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,a=!1}if(null===d)p===f||a&&e.data===f||(e.data=f);else{if(i=i&<.call(e.childNodes),l=(p=n.props||vt).dangerouslySetInnerHTML,s=f.dangerouslySetInnerHTML,!a){if(null!=i)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(s||l)&&(s&&(l&&s.__html==l.__html||s.__html===e.innerHTML)||(e.innerHTML=s&&s.__html||""))}if(function(e,t,n,r,o){vari;for(iinn)"children"===i||"key"===i||iint||xt(e,i,null,n[i],r);for(iint)o&&"function"!=typeoft[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||xt(e,i,t[i],n[i],r)}(e,f,p,o,a),s)t.__k=[];elseif(m=t.props.children,At(e,Array.isArray(m)?m:[m],t,n,r,o&&"foreignObject"!==d,i,u,i?i[0]:n.__k&&wt(n,0),a),null!=i)for(m=i.length;m--;)null!=i[m]&&bt(i[m]);a||("value"inf&&void0!==(m=f.value)&&(m!==p.value||m!==e.value||"progress"===d&&!m)&&xt(e,"value",m,p.value,!1),"checked"inf&&void0!==(m=f.checked)&&m!==e.checked&&xt(e,"checked",m,p.checked,!1))}returne}functionBt(e,t,n){try{"function"==typeofe?e(t):e.current=t}catch(e){st.__e(e,n)}}functionFt(e,t,n){varr,o;if(st.unmount&&st.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Bt(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){st.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ft(r[o],t,"function"!=typeofe.type);n||null==e.__e||bt(e.__e),e.__e=e.__d=void0}functionMt(e,t,n){returnthis.constructor(e,n)}lt=ht.slice,st={__e:function(e,t){for(varn,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)returnn.__E=n}catch(t){e=t}throwe}},pt=0,jt.prototype.setState=function(e,t){varn;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=yt({},this.state),"function"==typeofe&&(e=e(yt({},n),this.props)),e&&yt(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),It(this))},jt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),It(this))},jt.prototype.render=Pt,ft=[],dt="function"==typeofPromise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Et.__r=0;varUt="__aa-highlight__",Ht="__/aa-highlight__";functionVt(e){vart=e.highlightedValue.split(Ut),n=t.shift(),r=function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[];return{get:function(){returne},add:function(t){varn=e[e.length-1];(null==n?void0:n.isHighlighted)===t.isHighlighted?e[e.length-1]={value:n.value+t.value,isHighlighted:n.isHighlighted}:e.push(t)}}}(n?[{value:n,isHighlighted:!1}]:[]);returnt.forEach((function(e){vart=e.split(Ht);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}functionWt(e){returnfunction(e){if(Array.isArray(e))returnQt(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeofe)returnQt(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)returnArray.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnQt(e,t)}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionQt(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}function$t(e){vart=e.hit,n=e.attribute,r=Array.isArray(n)?n:[n],o=h(t,["_highlightResult"].concat(Wt(r),["value"]));return"string"!=typeofo&&(o=h(t,r)||""),Vt({highlightedValue:o})}varzt={"&":"&","<":"<",">":">",""":'"',"'":"'"},Gt=newRegExp(/\w/i),Kt=/&(amp|quot|lt|gt|#39);/g,Jt=RegExp(Kt.source);functionYt(e,t){varn,r,o,i=e[t],u=(null===(n=e[t+1])||void0===n?void0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void0===r?void0:r.isHighlighted)||!0;returnGt.test((o=i.value)&&Jt.test(o)?o.replace(Kt,(function(e){returnzt[e]})):o)||a!==u?i.isHighlighted:a}functionXt(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionZt(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionen(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiontn(e){returne.some((function(e){returne.isHighlighted}))?e.map((function(t,n){returnZt(Zt({},t),{},{isHighlighted:!Yt(e,n)})})):e.map((function(e){returnZt(Zt({},e),{},{isHighlighted:!1})}))}functionnn(e){returnfunction(e){if(Array.isArray(e))returnrn(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeofe)returnrn(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)returnArray.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnrn(e,t)}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionrn(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functionon(e){vart=e.hit,n=e.attribute,r=Array.isArray(n)?n:[n],o=h(t,["_snippetResult"].concat(nn(r),["value"]));return"string"!=typeofo&&(o=h(t,r)||""),Vt({highlightedValue:o})}functionun(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionan(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functioncn(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}varln=["params"];functionsn(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionpn(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionfn(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiondn(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}functionmn(e){returnfunction(e){if(Array.isArray(e))returnvn(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeofe)returnvn(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)returnArray.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnvn(e,t)}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionvn(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functionhn(e){vart=e.createElement,n=e.Fragment;functionr(e){varr=e.hit,o=e.attribute,i=e.tagName,u=void0===i?"mark":i;returnt(n,{},$t({hit:r,attribute:o}).map((function(e,n){returne.isHighlighted?t(u,{key:n},e.value):e.value})))}returnr.__autocomplete_componentName="Highlight",r}functiongn(e){vart=e.createElement,n=e.Fragment;functionr(e){varr,o=e.hit,i=e.attribute,u=e.tagName,a=void0===u?"mark":u;returnt(n,{},(r={hit:o,attribute:i},tn($t(r))).map((function(e,n){returne.isHighlighted?t(a,{key:n},e.value):e.value})))}returnr.__autocomplete_componentName="ReverseHighlight",r}functionyn(e){vart=e.createElement,n=e.Fragment;functionr(e){varr,o=e.hit,i=e.attribute,u=e.tagName,a=void0===u?"mark":u;returnt(n,{},(r={hit:o,attribute:i},tn(on(r))).map((function(e,n){returne.isHighlighted?t(a,{key:n},e.value):e.value})))}returnr.__autocomplete_componentName="ReverseSnippet",r}functionbn(e){vart=e.createElement,n=e.Fragment;functionr(e){varr=e.hit,o=e.attribute,i=e.tagName,u=void0===i?"mark":i;returnt(n,{},on({hit:r,attribute:o}).map((function(e,n){returne.isHighlighted?t(u,{key:n},e.value):e.value})))}returnr.__autocomplete_componentName="Snippet",r}varOn=["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components","translations"],_n={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},Pn=function(e,t){varn=e.children;(0,e.render)(n,t)},jn={createElement:Ot,Fragment:Pt,render:function(e,t,n){varr,o,i;st.__&&st.__(e,t),o=(r="function"==typeofn)?null:n&&n.__k||t.__k,i=[],Rt(t,e=(!r&&n||t).__k=Ot(Pt,null,[e]),o||vt,vt,void0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?lt.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Tt(i,e)}};functionwn(e){vart=e.panelPlacement,n=e.container,r=e.form,o=e.environment,i=n.getBoundingClientRect(),u=(o.pageYOffset||o.document.documentElement.scrollTop||o.document.body.scrollTop||0)+i.top+i.height;switch(t){case"start":return{top:u,left:i.left};case"end":return{top:u,right:o.document.documentElement.clientWidth-(i.left+i.width)};case"full-width":return{top:u,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":vara=r.getBoundingClientRect();return{top:u,left:a.left,right:o.document.documentElement.clientWidth-(a.left+a.width),width:"unset",maxWidth:"unset"};default:thrownewError("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}varSn=[{segment:"autocomplete-js",version:b}],In=["components"];varEn=function(e,t){functionn(t){returne({searchClient:t.searchClient,queries:t.requests.map((function(e){returne.query}))}).then((function(e){returne.map((function(e,n){varr=t.requests[n];return{items:e,sourceId:r.sourceId,transformResponse:r.transformResponse}}))}))}returnfunction(e){returnfunction(r){returnan(an({requesterId:t,execute:n},e),r)}}}((function(e){returnfunction(e){vart=e.searchClient,n=e.queries,r=e.userAgents,o=void0===r?[]:r;return"function"==typeoft.addAlgoliaAgent&&[].concat(mn(O),mn(o)).forEach((function(e){varn=e.segment,r=e.version;t.addAlgoliaAgent(n,r)})),t.search(n.map((function(e){vart=e.params;returnpn(pn({},dn(e,ln)),{},{params:pn({hitsPerPage:5,highlightPreTag:Ut,highlightPostTag:Ht},t)})}))).then((function(e){returne.results}))}(n(n({},e),{},{userAgents:Sn}))}),"algolia");varAn=En({transformResponse:function(e){returne.hits}});e.autocomplete=function(e){vart,r=function(){vare=[],t=[];functionn(n){e.push(n);varr=n();t.push(r)}return{runEffect:n,cleanupEffects:function(){vare=t;t=[],e.forEach((function(e){e()}))},runEffects:function(){vart=e;e=[],t.forEach((function(e){n(e)}))}}}(),a=r.runEffect,c=r.cleanupEffects,l=r.runEffects,s=(t=[],{reactive:function(e){varn=e(),r={_fn:e,_ref:{current:n},getvalue(){returnthis._ref.current},setvalue(e){this._ref.current=e}};returnt.push(r),r},runReactives:function(){t.forEach((function(e){e._ref.current=e._fn()}))}}),d=s.reactive,m=s.runReactives,h=p(!1),y=p(e),b=p(void0),O=d((function(){returnfunction(e){vart,r=e.classNames,o=e.container,i=e.getEnvironmentProps,a=e.getFormProps,c=e.getInputProps,l=e.getItemProps,s=e.getLabelProps,p=e.getListProps,f=e.getPanelProps,d=e.getRootProps,m=e.panelContainer,h=e.panelPlacement,g=e.render,y=e.renderNoResults,b=e.renderer,O=e.detachedMediaQuery,_=e.components,P=e.translations,j=u(e,On),w="undefined"!=typeofwindow?window:{},S=Qe(w,o);S.tagName;varI=n(n({},jn),b),E={Highlight:hn(I),ReverseHighlight:gn(I),ReverseSnippet:yn(I),Snippet:bn(I)};return{renderer:{classNames:$e(_n,null!=r?r:{}),container:S,getEnvironmentProps:null!=i?i:function(e){returne.props},getFormProps:null!=a?a:function(e){returne.props},getInputProps:null!=c?c:function(e){returne.props},getItemProps:null!=l?l:function(e){returne.props},getLabelProps:null!=s?s:function(e){returne.props},getListProps:null!=p?p:function(e){returne.props},getPanelProps:null!=f?f:function(e){returne.props},getRootProps:null!=d?d:function(e){returne.props},panelContainer:m?Qe(w,m):w.document.body,panelPlacement:null!=h?h:"input-wrapper-width",render:null!=g?g:Pn,renderNoResults:y,renderer:I,detachedMediaQuery:null!=O?O:getComputedStyle(w.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:n(n({},E),_),translations:n(n({},{clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",submitButtonTitle:"Submit"}),P)},core:n(n({},j),{},{id:null!==(t=j.id)&&void0!==t?t:v(),environment:w})}}(y.current)})),_=d((function(){returnO.value.core.environment.matchMedia(O.value.renderer.detachedMediaQuery).matches})),P=d((function(){returnMe(n(n({},O.value.core),{},{onStateChange:function(e){vart,n,r;h.current=e.state.collections.some((function(e){returne.source.templates.noResults})),null===(t=b.current)||void0===t||t.call(b,e),null===(n=(r=O.value.core).onStateChange)||void0===n||n.call(r,e)},shouldPanelOpen:y.current.shouldPanelOpen||function(e){vart=e.state;if(_.value)return!0;varn=g(t)>0;if(!O.value.core.openOnFocus&&!t.query)returnn;varr=Boolean(h.current||O.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:Sn,options:e}}))})),j=p(n({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},O.value.core.initialState)),w={getEnvironmentProps:O.value.renderer.getEnvironmentProps,getFormProps:O.value.renderer.getFormProps,getInputProps:O.value.renderer.getInputProps,getItemProps:O.value.renderer.getItemProps,getLabelProps:O.value.renderer.getLabelProps,getListProps:O.value.renderer.getListProps,getPanelProps:O.value.renderer.getPanelProps,getRootProps:O.value.renderer.getRootProps},S={setActiveItemId:P.value.setActiveItemId,setQuery:P.value.setQuery,setCollections:P.value.setCollections,setIsOpen:P.value.setIsOpen,setStatus:P.value.setStatus,setContext:P.value.setContext,refresh:P.value.refresh},I=d((function(){returnVe.bind(O.value.renderer.renderer.createElement)})),E=d((function(){returnct({autocomplete:P.value,autocompleteScopeApi:S,classNames:O.value.renderer.classNames,environment:O.value.core.environment,isDetached:_.value,placeholder:O.value.core.placeholder,propGetters:w,setIsModalOpen:k,state:j.current,translations:O.value.renderer.translations})}));functionA(){tt(E.value.panel,{style:_.value?{}:wn({panelPlacement:O.value.renderer.panelPlacement,container:E.value.root,form:E.value.form,environment:O.value.core.environment})})}functionC(e){j.current=e;vart={autocomplete:P.value,autocompleteScopeApi:S,classNames:O.value.renderer.classNames,components:O.value.renderer.components,container:O.value.renderer.container,html:I.value,dom:E.value,panelContainer:_.value?E.value.detachedContainer:O.value.renderer.panelContainer,propGetters:w,state:j.current,renderer:O.value.renderer.renderer},r=!g(e)&&!h.current&&O.value.renderer.renderNoResults||O.value.renderer.render;!function(e){vart=e.autocomplete,r=e.autocompleteScopeApi,o=e.dom,i=e.propGetters,u=e.state;nt(o.root,i.getRootProps(n({state:u,props:t.getRootProps({})},r))),nt(o.input,i.getInputProps(n({state:u,props:t.getInputProps({inputElement:o.input}),inputElement:o.input},r))),tt(o.label,{hidden:"stalled"===u.status}),tt(o.loadingIndicator,{hidden:"stalled"!==u.status}),tt(o.clearButton,{hidden:!u.query})}(t),function(e,t){varr=t.autocomplete,o=t.autocompleteScopeApi,u=t.classNames,a=t.html,c=t.dom,l=t.panelContainer,s=t.propGetters,p=t.state,f=t.components,d=t.renderer;if(p.isOpen){l.contains(c.panel)||"loading"===p.status||l.appendChild(c.panel),c.panel.classList.toggle("aa-Panel--stalled","stalled"===p.status);varm=p.collections.filter((function(e){vart=e.source,n=e.items;returnt.templates.noResults||n.length>0})).map((function(e,t){varc=e.source,l=e.items;returnd.createElement("section",{key:t,className:u.source,"data-autocomplete-source-id":c.sourceId},c.templates.header&&d.createElement("div",{className:u.sourceHeader},c.templates.header({components:f,createElement:d.createElement,Fragment:d.Fragment,items:l,source:c,state:p,html:a})),c.templates.noResults&&0===l.length?d.createElement("div",{className:u.sourceNoResults},c.templates.noResults({components:f,createElement:d.createElement,Fragment:d.Fragment,source:c,state:p,html:a})):d.createElement("ul",i({className:u.list},s.getListProps(n({state:p,props:r.getListProps({})},o))),l.map((function(e){vart=r.getItemProps({item:e,source:c});returnd.createElement("li",i({key:t.id,className:u.item},s.getItemProps(n({state:p,props:t},o))),c.templates.item({components:f,createElement:d.createElement,Fragment:d.Fragment,item:e,state:p,html:a}))}))),c.templates.footer&&d.createElement("div",{className:u.sourceFooter},c.templates.footer({components:f,createElement:d.createElement,Fragment:d.Fragment,items:l,source:c,state:p,html:a})))})),v=d.createElement(d.Fragment,null,d.createElement("div",{className:u.panelLayout},m),d.createElement("div",{className:"aa-GradientBottom"})),h=m.reduce((function(e,t){returne[t.props["data-autocomplete-source-id"]]=t,e}),{});e(n(n({children:v,state:p,sections:m,elements:h},d),{},{components:f,html:a},o),c.panel)}elsel.contains(c.panel)&&l.removeChild(c.panel)}(r,t)}functionD(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};c();vart=O.value.renderer,n=t.components,r=u(t,In);y.current=Ge(r,O.value.core,{components:Ke(n,(function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")})),initialState:j.current},e),m(),l(),P.value.refresh().then((function(){C(j.current)}))}functionk(e){requestAnimationFrame((function(){vart=O.value.core.environment.document.body.contains(E.value.detachedOverlay);e!==t&&(e?(O.value.core.environment.document.body.appendChild(E.value.detachedOverlay),O.value.core.environment.document.body.classList.add("aa-Detached"),E.value.input.focus()):(O.value.core.environment.document.body.removeChild(E.value.detachedOverlay),O.value.core.environment.document.body.classList.remove("aa-Detached"),P.value.setQuery(""),P.value.refresh()))}))}returna((function(){vare=P.value.getEnvironmentProps({formElement:E.value.form,panelElement:E.value.panel,inputElement:E.value.input});returntt(O.value.core.environment,e),function(){tt(O.value.core.environment,Object.keys(e).reduce((function(e,t){returnn(n({},e),{},o({},t,void0))}),{}))}})),a((function(){vare=_.value?O.value.core.environment.document.body:O.value.renderer.panelContainer,t=_.value?E.value.detachedOverlay:E.value.panel;return_.value&&j.current.isOpen&&k(!0),C(j.current),function(){e.contains(t)&&e.removeChild(t)}})),a((function(){vare=O.value.renderer.container;returne.appendChild(E.value.root),function(){e.removeChild(E.value.root)}})),a((function(){vare=f((function(e){C(e.state)}),0);returnb.current=function(t){varn=t.state,r=t.prevState;(_.value&&r.isOpen!==n.isOpen&&k(n.isOpen),_.value||!n.isOpen||r.isOpen||A(),n.query!==r.query)&&O.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){b.current=void0}})),a((function(){vare=f((function(){vare=_.value;_.value=O.value.core.environment.matchMedia(O.value.renderer.detachedMediaQuery).matches,e!==_.value?D({}):requestAnimationFrame(A)}),20);returnO.value.core.environment.addEventListener("resize",e),function(){O.value.core.environment.removeEventListener("resize",e)}})),a((function(){if(!_.value)returnfunction(){};functione(e){E.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}functiont(t){e(t.matches)}varn=O.value.core.environment.matchMedia(getComputedStyle(O.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);varr=Boolean(n.addEventListener);returnr?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),a((function(){returnrequestAnimationFrame(A),function(){}})),n(n({},S),{},{update:D,destroy:function(){c()}})},e.getAlgoliaFacets=function(e){vart=En({transformResponse:function(e){returne.facetHits}}),r=e.queries.map((function(e){returnn(n({},e),{},{type:"facet"})}));returnt(n(n({},e),{},{queries:r}))},e.getAlgoliaResults=An,Object.defineProperty(e,"__esModule",{value:!0})}));
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
vare,t;e=this,t=function(){"use strict";functione(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functiont(t){for(varn=1;n<arguments.length;n++){varr=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}returnt}functionn(e){returnn="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},n(e)}functionr(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}functiono(e,t,n){returnt&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}functionc(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&u(e,t)}functions(e){returns=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)},s(e)}functionu(e,t){returnu=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e},u(e,t)}functionh(e,t){if(t&&("object"==typeoft||"function"==typeoft))returnt;if(void0!==t)thrownewTypeError("Derived constructors may only return object or undefined");returnfunction(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}(e)}functionl(e){vart=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();returnfunction(){varn,r=s(e);if(t){vari=s(this).constructor;n=Reflect.construct(r,arguments,i)}elsen=r.apply(this,arguments);returnh(this,n)}}functionf(e){returnfunction(e){if(Array.isArray(e))returnd(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(e){if("string"==typeofe)returnd(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void0}}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functiond(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functionv(e){returnArray.isArray?Array.isArray(e):"[object Array]"===b(e)}functiong(e){return"string"==typeofe}functiony(e){return"number"==typeofe}functionp(e){return!0===e||!1===e||function(e){returnm(e)&&null!==e}(e)&&"[object Boolean]"==b(e)}functionm(e){return"object"===n(e)}functionk(e){returnnull!=e}functionM(e){return!e.trim().length}functionb(e){returnnull==e?void0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}varx=function(e){return"Invalid value for key ".concat(e)},w=function(e){return"Pattern length exceeds max of ".concat(e,".")},L=Object.prototype.hasOwnProperty,S=function(){functione(t){varn=this;r(this,e),this._keys=[],this._keyMap={};vari=0;t.forEach((function(e){vart=_(e);i+=t.weight,n._keys.push(t),n._keyMap[t.id]=t,i+=t.weight})),this._keys.forEach((function(e){e.weight/=i}))}returno(e,[{key:"get",value:function(e){returnthis._keyMap[e]}},{key:"keys",value:function(){returnthis._keys}},{key:"toJSON",value:function(){returnJSON.stringify(this._keys)}}]),e}();function_(e){vart=null,n=null,r=null,i=1,o=null;if(g(e)||v(e))r=e,t=O(e),n=j(e);else{if(!L.call(e,"name"))thrownewError(function(e){return"Missing ".concat(e," property in key")}("name"));varc=e.name;if(r=c,L.call(e,"weight")&&(i=e.weight)<=0)thrownewError(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(c));t=O(c),n=j(c),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}functionO(e){returnv(e)?e:e.split(".")}functionj(e){returnv(e)?e.join("."):e}varA={useExtendedSearch:!1,getFn:function(e,t){varn=[],r=!1;returnfunctione(t,i,o){if(k(t))if(i[o]){varc=t[i[o]];if(!k(c))return;if(o===i.length-1&&(g(c)||y(c)||p(c)))n.push(function(e){returnnull==e?"":function(e){if("string"==typeofe)returne;vart=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(c));elseif(v(c)){r=!0;for(vara=0,s=c.length;a<s;a+=1)e(c[a],i,o+1)}elsei.length&&e(c,i,o+1)}elsen.push(t)}(e,g(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},I=t(t(t(t({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){returne.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),A),C=/[^]+/g;functionE(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void0!==arguments[1]?arguments[1]:3,n=newMap,r=Math.pow(10,t);return{get:function(t){vari=t.match(C).length;if(n.has(i))returnn.get(i);varo=1/Math.pow(i,.5*e),c=parseFloat(Math.round(o*r)/r);returnn.set(i,c),c},clear:function(){n.clear()}}}var$=function(){functione(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void0===n?I.getFn:n,o=t.fieldNormWeight,c=void0===o?I.fieldNormWeight:o;r(this,e),this.norm=E(c,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}returno(e,[{key:"setSources",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){vare=this,t=arguments.length>0&&void0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){vare=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,g(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){vart=this.size();g(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(vart=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){returne[this._keysMap[t]]}},{key:"size",value:function(){returnthis.records.length}},{key:"_addString",value:function(e,t){if(k(e)&&!M(e)){varn={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){varn=this,r={i:t,$:{}};this.keys.forEach((function(t,i){varo=t.getFn?t.getFn(e):n.getFn(e,t.path);if(k(o))if(v(o))!function(){for(vare=[],t=[{nestedArrIndex:-1,value:o}];t.length;){varc=t.pop(),a=c.nestedArrIndex,s=c.value;if(k(s))if(g(s)&&!M(s)){varu={v:s,i:a,n:n.norm.get(s)};e.push(u)}elsev(s)&&s.forEach((function(e,n){t.push({nestedArrIndex:n,value:e})}))}r.$[i]=e}();elseif(g(o)&&!M(o)){varc={v:o,n:n.norm.get(o)};r.$[i]=c}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();functionF(e,t){varn=arguments.length>2&&void0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void0===r?I.getFn:r,o=n.fieldNormWeight,c=void0===o?I.fieldNormWeight:o,a=new$({getFn:i,fieldNormWeight:c});returna.setKeys(e.map(_)),a.setSources(t),a.create(),a}functionR(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n=t.errors,r=void0===n?0:n,i=t.currentLocation,o=void0===i?0:i,c=t.expectedLocation,a=void0===c?0:c,s=t.distance,u=void0===s?I.distance:s,h=t.ignoreLocation,l=void0===h?I.ignoreLocation:h,f=r/e.length;if(l)returnf;vard=Math.abs(a-o);returnu?f+d/u:d?1:f}functionN(){for(vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void0!==arguments[1]?arguments[1]:I.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o<c;o+=1){vara=e[o];a&&-1===r?r=o:a||-1===r||((i=o-1)-r+1>=t&&n.push([r,i]),r=-1)}returne[o-1]&&o-r>=t&&n.push([r,o-1]),n}varP=32;functionW(e){for(vart={},n=0,r=e.length;n<r;n+=1){vari=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}returnt}varT=function(){functione(t){varn=this,i=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},o=i.location,c=void0===o?I.location:o,a=i.threshold,s=void0===a?I.threshold:a,u=i.distance,h=void0===u?I.distance:u,l=i.includeMatches,f=void0===l?I.includeMatches:l,d=i.findAllMatches,v=void0===d?I.findAllMatches:d,g=i.minMatchCharLength,y=void0===g?I.minMatchCharLength:g,p=i.isCaseSensitive,m=void0===p?I.isCaseSensitive:p,k=i.ignoreLocation,M=void0===k?I.ignoreLocation:k;if(r(this,e),this.options={location:c,threshold:s,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){varb=function(e,t){n.chunks.push({pattern:e,alphabet:W(e),startIndex:t})},x=this.pattern.length;if(x>P){for(varw=0,L=x%P,S=x-L;w<S;)b(this.pattern.substr(w,P),w),w+=P;if(L){var_=x-P;b(this.pattern.substr(_),_)}}elseb(this.pattern,0)}}returno(e,[{key:"searchIn",value:function(e){vart=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){vari={isMatch:!0,score:0};returnr&&(i.indices=[[0,e.length-1]]),i}varo=this.options,c=o.location,a=o.distance,s=o.threshold,u=o.findAllMatches,h=o.minMatchCharLength,l=o.ignoreLocation,d=[],v=0,g=!1;this.chunks.forEach((function(t){varn=t.pattern,i=t.alphabet,o=t.startIndex,y=function(e,t,n){varr=arguments.length>3&&void0!==arguments[3]?arguments[3]:{},i=r.location,o=void0===i?I.location:i,c=r.distance,a=void0===c?I.distance:c,s=r.threshold,u=void0===s?I.threshold:s,h=r.findAllMatches,l=void0===h?I.findAllMatches:h,f=r.minMatchCharLength,d=void0===f?I.minMatchCharLength:f,v=r.includeMatches,g=void0===v?I.includeMatches:v,y=r.ignoreLocation,p=void0===y?I.ignoreLocation:y;if(t.length>P)thrownewError(w(P));for(varm,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,L=b,S=d>1||g,_=S?Array(M):[];(m=e.indexOf(t,L))>-1;){varO=R(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(O,x),L=m+k,S)for(varj=0;j<k;)_[m+j]=1,j+=1}L=-1;for(varA=[],C=1,E=k+M,$=1<<k-1,F=0;F<k;F+=1){for(varW=0,T=E;W<T;)R(t,{errors:F,currentLocation:b+T,expectedLocation:b,distance:a,ignoreLocation:p})<=x?W=T:E=T,T=Math.floor((E-W)/2+W);E=T;varz=Math.max(1,b-T+1),D=l?M:Math.min(b+T,M)+k,K=Array(D+2);K[D+1]=(1<<F)-1;for(varq=D;q>=z;q-=1){varB=q-1,J=n[e.charAt(B)];if(S&&(_[B]=+!!J),K[q]=(K[q+1]<<1|1)&J,F&&(K[q]|=(A[q+1]|A[q])<<1|1|A[q+1]),K[q]&$&&(C=R(t,{errors:F,currentLocation:B,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=C,(L=B)<=b)break;z=Math.max(1,2*b-L)}}if(R(t,{errors:F+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p})>x)break;A=K}varU={isMatch:L>=0,score:Math.max(.001,C)};if(S){varV=N(_,d);V.length?g&&(U.indices=V):U.isMatch=!1}returnU}(e,n,i,{location:c+o,distance:a,threshold:s,findAllMatches:u,minMatchCharLength:h,includeMatches:r,ignoreLocation:l}),p=y.isMatch,m=y.score,k=y.indices;p&&(g=!0),v+=m,p&&k&&(d=[].concat(f(d),f(k)))}));vary={isMatch:g,score:g?v/this.chunks.length:1};returng&&r&&(y.indices=d),y}}]),e}(),z=function(){functione(t){r(this,e),this.pattern=t}returno(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){returnD(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){returnD(e,this.singleRegex)}}]),e}();functionD(e,t){varn=e.match(t);returnn?n[1]:null}varK=function(e){a(n,e);vart=l(n);functionn(e){returnr(this,n),t.call(this,e)}returno(n,[{key:"search",value:function(e){vart=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),n}(z),q=function(e){a(n,e);vart=l(n);functionn(e){returnr(this,n),t.call(this,e)}returno(n,[{key:"search",value:function(e){vart=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),n}(z),B=function(e){a(n,e);vart=l(n);functionn(e){returnr(this,n),t.call(this,e)}returno(n,[{key:"search",value:function(e){vart=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),n}(z),J=function(e){a(n,e);vart=l(n);functionn(e){returnr(this,n),t.call(this,e)}returno(n,[{key:"search",value:function(e){vart=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),n}(z),U=function(e){a(n,e);vart=l(n);functionn(e){returnr(this,n),t.call(this,e)}returno(n,[{key:"search",value:function(e){vart=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),n}(z),V=function(e){a(n,e);vart=l(n);functionn(e){returnr(this,n),t.call(this,e)}returno(n,[{key:"search",value:function(e){vart=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),n}(z),G=function(e){a(n,e);vart=l(n);functionn(e){vari,o=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},c=o.location,a=void0===c?I.location:c,s=o.threshold,u=void0===s?I.threshold:s,h=o.distance,l=void0===h?I.distance:h,f=o.includeMatches,d=void0===f?I.includeMatches:f,v=o.findAllMatches,g=void0===v?I.findAllMatches:v,y=o.minMatchCharLength,p=void0===y?I.minMatchCharLength:y,m=o.isCaseSensitive,k=void0===m?I.isCaseSensitive:m,M=o.ignoreLocation,b=void0===M?I.ignoreLocation:M;returnr(this,n),(i=t.call(this,e))._bitapSearch=newT(e,{location:a,threshold:u,distance:l,includeMatches:d,findAllMatches:g,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),i}returno(n,[{key:"search",value:function(e){returnthis._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(z),H=function(e){a(n,e);vart=l(n);functionn(e){returnr(this,n),t.call(this,e)}returno(n,[{key:"search",value:function(e){for(vart,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);varo=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(z),Q=[K,H,B,J,V,U,q,G],X=Q.length,Y=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;functionZ(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{};returne.split("|").map((function(e){for(varn=e.trim().split(Y).filter((function(e){returne&&!!e.trim()})),r=[],i=0,o=n.length;i<o;i+=1){for(varc=n[i],a=!1,s=-1;!a&&++s<X;){varu=Q[s],h=u.isMultiMatch(c);h&&(r.push(newu(h,t)),a=!0)}if(!a)for(s=-1;++s<X;){varl=Q[s],f=l.isSingleMatch(c);if(f){r.push(newl(f,t));break}}}returnr}))}varee=newSet([G.type,H.type]),te=function(){functione(t){varn=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},i=n.isCaseSensitive,o=void0===i?I.isCaseSensitive:i,c=n.includeMatches,a=void0===c?I.includeMatches:c,s=n.minMatchCharLength,u=void0===s?I.minMatchCharLength:s,h=n.ignoreLocation,l=void0===h?I.ignoreLocation:h,f=n.findAllMatches,d=void0===f?I.findAllMatches:f,v=n.location,g=void0===v?I.location:v,y=n.threshold,p=void0===y?I.threshold:y,m=n.distance,k=void0===m?I.distance:m;r(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:a,minMatchCharLength:u,findAllMatches:d,ignoreLocation:l,location:g,threshold:p,distance:k},this.pattern=o?t:t.toLowerCase(),this.query=Z(this.pattern,this.options)}returno(e,[{key:"searchIn",value:function(e){vart=this.query;if(!t)return{isMatch:!1,score:1};varn=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(vari=0,o=[],c=0,a=0,s=t.length;a<s;a+=1){varu=t[a];o.length=0,i=0;for(varh=0,l=u.length;h<l;h+=1){vard=u[h],v=d.search(e),g=v.isMatch,y=v.indices,p=v.score;if(!g){c=0,i=0,o.length=0;break}if(i+=1,c+=p,r){varm=d.constructor.type;ee.has(m)?o=[].concat(f(o),f(y)):o.push(y)}}if(i){vark={isMatch:!0,score:c/i};returnr&&(k.indices=o),k}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){returnt.useExtendedSearch}}]),e}(),ne=[];functionre(e,t){for(varn=0,r=ne.length;n<r;n+=1){vari=ne[n];if(i.condition(e,t))returnnewi(e,t)}returnnewT(e,t)}varie="$and",oe="$or",ce="$path",ae="$val",se=function(e){return!(!e[ie]&&!e[oe])},ue=function(e){return!!e[ce]},he=function(e){return!v(e)&&m(e)&&!se(e)},le=function(e){returnc({},ie,Object.keys(e).map((function(t){returnc({},t,e[t])})))};functionfe(e,t){varn=t.ignoreFieldNorm,r=void0===n?I.ignoreFieldNorm:n;e.forEach((function(e){vart=1;e.matches.forEach((function(e){varn=e.key,i=e.norm,o=e.score,c=n?n.weight:null;t*=Math.pow(0===o&&c?Number.EPSILON:o,(c||1)*(r?1:i))})),e.score=t}))}functionde(e,t){varn=e.matches;t.matches=[],k(n)&&n.forEach((function(e){if(k(e.indices)&&e.indices.length){varn={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}functionve(e,t){t.score=e.score}functionge(e,t){varn=arguments.length>2&&void0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void0===r?I.includeMatches:r,o=n.includeScore,c=void0===o?I.includeScore:o,a=[];returni&&a.push(de),c&&a.push(ve),e.map((function(e){varn=e.idx,r={item:t[n],refIndex:n};returna.length&&a.forEach((function(t){t(e,r)})),r}))}varye=function(){functione(n){vari=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void0;r(this,e),this.options=t(t({},I),i),this.options.useExtendedSearch,this._keyStore=newS(this.options.keys),this.setCollection(n,o)}returno(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(tinstanceof$))thrownewError("Incorrect 'index' type");this._myIndex=t||F(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){k(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){vari=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}returnt}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){returnthis._myIndex}},{key:"search",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n=t.limit,r=void0===n?-1:n,i=this.options,o=i.includeMatches,c=i.includeScore,a=i.shouldSort,s=i.sortFn,u=i.ignoreFieldNorm,h=g(e)?g(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);returnfe(h,{ignoreFieldNorm:u}),a&&h.sort(s),y(r)&&r>-1&&(h=h.slice(0,r)),ge(h,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(e){vart=re(e,this.options),n=this._myIndex.records,r=[];returnn.forEach((function(e){varn=e.v,i=e.i,o=e.n;if(k(n)){varc=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(e){vart=this,n=function(e,t){varn=(arguments.length>2&&void0!==arguments[2]?arguments[2]:{}).auto,r=void0===n||n,i=functione(n){vari=Object.keys(n),o=ue(n);if(!o&&i.length>1&&!se(n))returne(le(n));if(he(n)){varc=o?n[ce]:i[0],a=o?n[ae]:n[c];if(!g(a))thrownewError(x(c));vars={keyId:j(c),pattern:a};returnr&&(s.searcher=re(a,t)),s}varu={children:[],operator:i[0]};returni.forEach((function(t){varr=n[t];v(r)&&r.forEach((function(t){u.children.push(e(t))}))})),u};returnse(e)||(e=le(e)),i(e)}(e,this.options),r=functione(n,r,i){if(!n.children){varo=n.keyId,c=n.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});returna&&a.length?[{idx:i,item:r,matches:a}]:[]}for(vars=[],u=0,h=n.children.length;u<h;u+=1){varl=e(n.children[u],r,i);if(l.length)s.push.apply(s,f(l));elseif(n.operator===ie)return[]}returns},i=this._myIndex.records,o={},c=[];returni.forEach((function(e){vart=e.$,i=e.i;if(k(t)){vara=r(n,t,i);a.length&&(o[i]||(o[i]={idx:i,item:t,matches:[]},c.push(o[i])),a.forEach((function(e){vart,n=e.matches;(t=o[i].matches).push.apply(t,f(n))})))}})),c}},{key:"_searchObjectList",value:function(e){vart=this,n=re(e,this.options),r=this._myIndex,i=r.keys,o=r.records,c=[];returno.forEach((function(e){varr=e.$,o=e.i;if(k(r)){vara=[];i.forEach((function(e,i){a.push.apply(a,f(t._findMatches({key:e,value:r[i],searcher:n})))})),a.length&&c.push({idx:o,item:r,matches:a})}})),c}},{key:"_findMatches",value:function(e){vart=e.key,n=e.value,r=e.searcher;if(!k(n))return[];vari=[];if(v(n))n.forEach((function(e){varn=e.v,o=e.i,c=e.n;if(k(n)){vara=r.searchIn(n),s=a.isMatch,u=a.score,h=a.indices;s&&i.push({score:u,key:t,value:n,idx:o,norm:c,indices:h})}}));else{varo=n.v,c=n.n,a=r.searchIn(o),s=a.isMatch,u=a.score,h=a.indices;s&&i.push({score:u,key:t,value:o,norm:c,indices:h})}returni}}]),e}();returnye.version="6.6.2",ye.createIndex=F,ye.parseIndex=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void0===n?I.getFn:n,i=t.fieldNormWeight,o=void0===i?I.fieldNormWeight:i,c=e.keys,a=e.records,s=new$({getFn:r,fieldNormWeight:o});returns.setKeys(c),s.setIndexRecords(a),s},ye.config=I,function(){ne.push.apply(ne,arguments)}(te),ye},"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):(e="undefined"!=typeofglobalThis?globalThis:e||self).Fuse=t();
// For plugins that may not load immediately, create a wrapper
// plugin and forward events and plugin data once the plugin
// is initialized. This is useful for cases like cookie consent
// which may prevent the analytics insights event plugin from initializing
// immediately.
functiondeferredLoadPlugin(createPlugin){
letplugin=undefined;
letsubscribeObj=undefined;
constwrappedPlugin=()=>{
if(!plugin&&subscribeObj){
plugin=createPlugin();
if(plugin&&plugin.subscribe){
plugin.subscribe(subscribeObj);
}
}
returnplugin;
};
return{
subscribe:(obj)=>{
subscribeObj=obj;
},
onStateChange:(obj)=>{
constplugin=wrappedPlugin();
if(plugin&&plugin.onStateChange){
plugin.onStateChange(obj);
}
},
onSubmit:(obj)=>{
constplugin=wrappedPlugin();
if(plugin&&plugin.onSubmit){
plugin.onSubmit(obj);
}
},
onReset:(obj)=>{
constplugin=wrappedPlugin();
if(plugin&&plugin.onReset){
plugin.onReset(obj);
}
},
getSources:(obj)=>{
constplugin=wrappedPlugin();
if(plugin&&plugin.getSources){
returnplugin.getSources(obj);
}else{
returnPromise.resolve([]);
}
},
data:(obj)=>{
constplugin=wrappedPlugin();
if(plugin&&plugin.data){
plugin.data(obj);
}
},
};
}
functionvalidateItems(items){
// Validate the first item
if(items.length>0){
constitem=items[0];
constmissingFields=[];
if(item.href==undefined){
missingFields.push("href");
}
if(!item.title==undefined){
missingFields.push("title");
}
if(!item.text==undefined){
missingFields.push("text");
}
if(missingFields.length===1){
throw{
name:`Error: Search index is missing the <code>${missingFields[0]}</code> field.`,
message:`The items being returned for this search do not include all the required fields. Please ensure that your index items include the <code>${missingFields[0]}</code> field or use <code>index-fields</code> in your <code>_quarto.yml</code> file to specify the field names.`,
};
}elseif(missingFields.length>1){
constmissingFieldList=missingFields
.map((field)=>{
return`<code>${field}</code>`;
})
.join(", ");
throw{
name:`Error: Search index is missing the following fields: ${missingFieldList}.`,
message:`The items being returned for this search do not include all the required fields. Please ensure that your index items includes the following fields: ${missingFieldList}, or use <code>index-fields</code> in your <code>_quarto.yml</code> file to specify the field names.`,