@fluid-topics/ft-search-context 1.1.113 → 1.1.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { PropertyValues } from "lit";
2
2
  import { ElementDefinitionsMap, FtLitElementRedux, FtRegistrationContext } from "@fluid-topics/ft-wc-utils";
3
3
  import { FtSearchContextProperties } from "./ft-search-context.properties";
4
- import { FtSearchComponentInterface, FtSearchResultsChangeEventDetail } from "./registration";
4
+ import { FtSearchComponentInterface, FtSearchResultsChangeEventDetail, FtSearchStateManager } from "./registration";
5
5
  import { FtMetadataFilter, FtSearchRequest, FtSearchResultsPageInfo, FtSearchScope, FtSearchSortCriterion, FtSession, FtSpellcheck, FtVirtualField } from "@fluid-topics/public-api";
6
6
  import { FtSearchService } from "./store/utils/FtSearchService";
7
7
  export declare class LoadErrorEvent extends CustomEvent<Error> {
@@ -32,7 +32,7 @@ export declare class FtSearchContext extends FtLitElementRedux implements FtSear
32
32
  private autocorrect?;
33
33
  searchServiceProvider?: () => FtSearchService;
34
34
  private _stateManager?;
35
- private get stateManager();
35
+ get stateManager(): FtSearchStateManager;
36
36
  constructor();
37
37
  protected render(): import("lit").TemplateResult<1>;
38
38
  protected update(props: PropertyValues): void;
@@ -3,7 +3,7 @@
3
3
  `;var hn=T(j()),pn=T(J());var Q=T(j());var $t=T(j()),wn={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setRequestClusterSortCriterion:(t,e)=>{var r;t.request.clusterSortCriterions=(r=e.payload)!==null&&r!==void 0?r:[]},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}},Gt=t=>$t.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:wn});var xn=T(Yt(),1);var Xt;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Xt||(Xt={}));var Jt;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Jt||(Jt={}));var Zt;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Zt||(Zt={}));var er;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(er||(er={}));var tr;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(tr||(tr={}));var rr;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(rr||(rr={}));var nr;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(nr||(nr={}));var ir;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ir||(ir={}));var ar;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(ar||(ar={}));var sr;(function(t){t.ASC="ASC",t.DESC="DESC"})(sr||(sr={}));var or;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(or||(or={}));var ve;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ve||(ve={}));var ur;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ur||(ur={}));var cr;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(cr||(cr={}));var lr;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(lr||(lr={}));var fr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(fr||(fr={}));var dr;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(dr||(dr={}));var ge;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(ge||(ge={}));var D;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(D||(D={}));var hr;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(hr||(hr={}));var Pi={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.DEVELOPER]:[D.BETA_USER,D.DEBUG_USER]};var fn=T(j());var gr=T(ye()),q=T(J()),z=T(j());var pr=T(ye());var yr=pr.css`
4
4
  `;var ke=T(j()),On="ft-app-info",nt=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Tn={session:(t,e)=>{(0,ke.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>b.eventBus.dispatchEvent(new nt(e.payload)),0))}},b=ke.FtReduxStore.get({name:On,reducers:Tn,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var ee=T(j());var it=T(j());var fe=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=b.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=b.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var $=class{constructor(e=!0,r){var n;this.overrideApi=r;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new it.CacheRegistry,this.cache=e?i.commonCache:new it.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:fe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):fe.await()}clearCache(){this.cache.clearAll()}};var mr,Rn=Symbol("clearAfterUnitTest"),Fe=class extends ${constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[mr]=()=>{this.defaultMessages={},this.cache=new ee.CacheRegistry,this.listeners={}},this.currentUiLocale=b.getState().uiLocale,b.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=b.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,ee.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new ee.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(r){console.error(r)}}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,ee.delay)(0).then(()=>r()).catch(()=>null)))}};mr=Rn;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fe{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fe{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var vr=window.FluidTopicsI18nService,$i=window.FluidTopicsCustomI18nService;var F=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},_=class extends z.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>fe.get(),this.messageContexts=[],this.cache=new z.CacheRegistry,this.cleanSessionDebouncer=new z.Debouncer}render(){return gr.html`
5
5
  <slot></slot>
6
- `}update(e){super.update(e),e.has("baseUrl")&&(b.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&b.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&b.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&b.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&b.actions.noCustom(this.noCustom),e.has("editorMode")&&b.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&b.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&b.actions.session(this.session),e.has("availableUiLocales")&&b.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>vr.addContext(r)),e.has("openExternalDocumentInNewTab")&&b.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&b.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&b.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};_.elementDefinitions={};_.styles=yr;F([(0,q.property)()],_.prototype,"baseUrl",void 0);F([(0,q.property)()],_.prototype,"apiIntegrationIdentifier",void 0);F([(0,q.property)()],_.prototype,"uiLocale",void 0);F([(0,z.jsonProperty)(null)],_.prototype,"availableUiLocales",void 0);F([(0,z.jsonProperty)(null)],_.prototype,"metadataConfiguration",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"editorMode",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"noCustom",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"openExternalDocumentInNewTab",void 0);F([(0,q.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],_.prototype,"noCustomComponent",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"withManualResources",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"navigatorOnline",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"forcedOffline",void 0);F([(0,q.property)({type:Object})],_.prototype,"apiProvider",void 0);F([(0,z.jsonProperty)([])],_.prototype,"messageContexts",void 0);F([(0,z.jsonProperty)(void 0)],_.prototype,"session",void 0);var hi=T(J());function Cn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Le(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Le(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){var a=i[n];if(!Le(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Le(t,e){try{return Cn(t,e)}catch{return!1}}function at(t,e){return!Le(t,e)}var Pn=T(J(),1);var Ue=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var xe=T(J(),1);var br=T(J(),1);function Sr(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,br.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:at,...e??{}})}var je=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(u){i(u);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ar=T(ye(),1);var Be=window,_n=Be.ShadowRoot&&(Be.ShadyCSS===void 0||Be.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ca=Symbol();var Er=(t,e)=>{_n?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),i=Be.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})};var qe=class extends Ar.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Er(n,e.elementStyles),n}};var Ve=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Tr,wr=Symbol("constructorPrototype"),xr=Symbol("constructorName"),Rr=Symbol("exportpartsDebouncer"),Or=Symbol("dynamicDependenciesLoaded"),te=class extends qe{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tr]=new je(5),this[xr]=this.constructor.name,this[wr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xr]&&Object.setPrototypeOf(this,this[wr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Or]||(e[Or]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Rr].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,i,a,s,u;let f=h=>h!=null&&h.trim().length>0,c=e.filter(f).map(h=>h.trim());if(c.length===0){this.removeAttribute("exportparts");return}let d=new Set;for(let h of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(a=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],y=(u=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(m=>m.split(":")[1]))!==null&&u!==void 0?u:[];new Array(...v,...y).filter(f).map(m=>m.trim()).forEach(m=>d.add(m))}if(d.size===0){this.removeAttribute("exportparts");return}let p=[...d.values()].flatMap(h=>c.map(v=>`${h}:${v}--${h}`));this.setAttribute("exportparts",[...this.part,...p].join(", "))}};Tr=Rr;Ve([(0,xe.property)()],te.prototype,"exportpartsPrefix",void 0);Ve([Sr([])],te.prototype,"exportpartsPrefixes",void 0);Ve([(0,xe.property)()],te.prototype,"customStylesheet",void 0);Ve([(0,xe.state)()],te.prototype,"useAdoptedStyleSheets",void 0);function Oe(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Cr,Pr,_r,He=Symbol("internalReduxEventsUnsubscribers"),re=Symbol("internalStoresUnsubscribers"),de=Symbol("internalStores"),Te=class extends te{constructor(){super(...arguments),this[Cr]=new Map,this[Pr]=new Map,this[_r]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[de].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[de].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[de].get(e)}addStore(e,r){var n;r=(n=r??(Oe(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[de].delete(r)}setupStore(e,r){this[de].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[de].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[re].has(e.store):this[re].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[re].set(e,r.subscribe(()=>this.updateFromStores())),Oe(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=u=>this[a](u);r.eventBus.addEventListener(i.eventName,s),this[He].push(()=>r.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[re].forEach((e,r)=>this.unsubscribeFromStore(r)),this[He].forEach(e=>e()),this[He]=[]}unsubscribeFromStore(e){this[re].has(e)&&this[re].get(e)(),this[re].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Cr=re,Pr=de,_r=He;Te.reduxProperties=new Map;Te.reduxReactiveProperties=new Set;Te.reduxEventListeners=new Map;function V(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Y(t){return!!t&&!!t[C]}function K(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Un}(t)||Array.isArray(t)||!!t[Lr]||!!(!((e=t.constructor)===null||e===void 0)&&e[Lr])||pt(t)||yt(t))}function he(t,e,r){r===void 0&&(r=!1),Ee(t)===0?(r?Object.keys:Se)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Ee(t){var e=t[C];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:pt(t)?2:yt(t)?3:0}function be(t,e){return Ee(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function In(t,e){return Ee(t)===2?t.get(e):t[e]}function Ur(t,e,r){var n=Ee(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function jr(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function pt(t){return Fn&&t instanceof Map}function yt(t){return Ln&&t instanceof Set}function ne(t){return t.o||t.t}function mt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vr(t);delete e[C];for(var r=Se(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function vt(t,e){return e===void 0&&(e=!1),gt(t)||Y(t)||!K(t)||(Ee(t)>1&&(t.set=t.add=t.clear=t.delete=Dn),Object.freeze(t),e&&he(t,function(r,n){return vt(n,!0)},!0)),t}function Dn(){V(2)}function gt(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function G(t){var e=ht[t];return e||V(18,t),e}function Nn(t,e){ht[t]||(ht[t]=e)}function lt(){return Ce}function st(t,e){e&&(G("Patches"),t.u=[],t.s=[],t.v=e)}function ze(t){ft(t),t.p.forEach(Mn),t.p=null}function ft(t){t===Ce&&(Ce=t.l)}function Ir(t){return Ce={p:[],l:Ce,h:t,m:!0,_:0}}function Mn(t){var e=t[C];e.i===0||e.i===1?e.j():e.g=!0}function ot(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||G("ES5").S(e,t,n),n?(r[C].P&&(ze(e),V(4)),K(t)&&(t=Ke(e,t),e.l||We(e,t)),e.u&&G("Patches").M(r[C].t,t,e.u,e.s)):t=Ke(e,r,[]),ze(e),e.u&&e.v(e.u,e.s),t!==qr?t:void 0}function Ke(t,e,r){if(gt(e))return e;var n=e[C];if(!n)return he(e,function(u,f){return Dr(t,n,e,u,f,r)},!0),e;if(n.A!==t)return e;if(!n.P)return We(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=mt(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),he(a,function(u,f){return Dr(t,n,i,u,f,r,s)}),We(t,i,!1),r&&t.u&&G("Patches").N(n,r,t.u,t.s)}return n.o}function Dr(t,e,r,n,i,a,s){if(Y(i)){var u=Ke(t,i,a&&e&&e.i!==3&&!be(e.R,n)?a.concat(n):void 0);if(Ur(r,n,u),!Y(u))return;t.m=!1}else s&&r.add(i);if(K(i)&&!gt(i)){if(!t.h.D&&t._<1)return;Ke(t,i),e&&e.A.l||We(t,i)}}function We(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&vt(e,r)}function ut(t,e){var r=t[C];return(r?ne(r):t)[e]}function Nr(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ie(t){t.P||(t.P=!0,t.l&&ie(t.l))}function ct(t){t.o||(t.o=mt(t.t))}function dt(t,e,r){var n=pt(e)?G("MapSet").F(e,r):yt(e)?G("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),u={i:s?1:0,A:a?a.A:lt(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},f=u,c=Pe;s&&(f=[u],c=Re);var d=Proxy.revocable(f,c),p=d.revoke,h=d.proxy;return u.k=h,u.j=p,h}(e,r):G("ES5").J(e,r);return(r?r.A:lt()).p.push(n),n}function kn(t){return Y(t)||V(22,t),function e(r){if(!K(r))return r;var n,i=r[C],a=Ee(r);if(i){if(!i.P&&(i.i<4||!G("ES5").K(i)))return i.t;i.I=!0,n=Mr(r,a),i.I=!1}else n=Mr(r,a);return he(n,function(s,u){i&&In(i.t,s)===u||Ur(n,s,e(u))}),a===3?new Set(n):n}(t)}function Mr(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mt(t)}function Br(){function t(s,u){var f=a[s];return f?f.enumerable=u:a[s]=f={configurable:!0,enumerable:u,get:function(){var c=this[C];return Pe.get(c,s)},set:function(c){var d=this[C];Pe.set(d,s,c)}},f}function e(s){for(var u=s.length-1;u>=0;u--){var f=s[u][C];if(!f.P)switch(f.i){case 5:n(f)&&ie(f);break;case 4:r(f)&&ie(f)}}}function r(s){for(var u=s.t,f=s.k,c=Se(f),d=c.length-1;d>=0;d--){var p=c[d];if(p!==C){var h=u[p];if(h===void 0&&!be(u,p))return!0;var v=f[p],y=v&&v[C];if(y?y.t!==h:!jr(v,h))return!0}}var m=!!u[C];return c.length!==Se(u).length+(m?0:1)}function n(s){var u=s.k;if(u.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(u,u.length-1);if(f&&!f.get)return!0;for(var c=0;c<u.length;c++)if(!u.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&V(3,JSON.stringify(ne(s)))}var a={};Nn("ES5",{J:function(s,u){var f=Array.isArray(s),c=function(p,h){if(p){for(var v=Array(h.length),y=0;y<h.length;y++)Object.defineProperty(v,""+y,t(y,!0));return v}var m=Vr(h);delete m[C];for(var w=Se(m),S=0;S<w.length;S++){var E=w[S];m[E]=t(E,p||!!m[E].enumerable)}return Object.create(Object.getPrototypeOf(h),m)}(f,s),d={i:f?5:4,A:u?u.A:lt(),P:!1,I:!1,R:{},l:u,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,C,{value:d,writable:!0}),c},S:function(s,u,f){f?Y(u)&&u[C].A===s&&e(s.p):(s.u&&function c(d){if(d&&typeof d=="object"){var p=d[C];if(p){var h=p.t,v=p.k,y=p.R,m=p.i;if(m===4)he(v,function(x){x!==C&&(h[x]!==void 0||be(h,x)?y[x]||c(v[x]):(y[x]=!0,ie(p)))}),he(h,function(x){v[x]!==void 0||be(v,x)||(y[x]=!1,ie(p))});else if(m===5){if(n(p)&&(ie(p),y.length=!0),v.length<h.length)for(var w=v.length;w<h.length;w++)y[w]=!1;else for(var S=h.length;S<v.length;S++)y[S]=!0;for(var E=Math.min(v.length,h.length),R=0;R<E;R++)v.hasOwnProperty(R)||(y[R]=!0),y[R]===void 0&&c(v[R])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var kr,Ce,bt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Fn=typeof Map<"u",Ln=typeof Set<"u",Fr=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qr=bt?Symbol.for("immer-nothing"):((kr={})["immer-nothing"]=!0,kr),Lr=bt?Symbol.for("immer-draftable"):"__$immer_draftable",C=bt?Symbol.for("immer-state"):"__$immer_state";var Un=""+Object.prototype.constructor,Se=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vr=Object.getOwnPropertyDescriptors||function(t){var e={};return Se(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ht={},Pe={get:function(t,e){if(e===C)return t;var r=ne(t);if(!be(r,e))return function(i,a,s){var u,f=Nr(a,s);return f?"value"in f?f.value:(u=f.get)===null||u===void 0?void 0:u.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!K(n)?n:n===ut(t.t,e)?(ct(t),t.o[e]=dt(t.A.h,n,t)):n},has:function(t,e){return e in ne(t)},ownKeys:function(t){return Reflect.ownKeys(ne(t))},set:function(t,e,r){var n=Nr(ne(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ut(ne(t),e),a=i?.[C];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(jr(r,i)&&(r!==void 0||be(t.t,e)))return!0;ct(t),ie(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ut(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ct(t),ie(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ne(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){V(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){V(12)}},Re={};he(Pe,function(t,e){Re[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Re.deleteProperty=function(t,e){return Re.set.call(this,t,e,void 0)},Re.set=function(t,e,r){return Pe.set.call(this,t[0],e,r,t[0])};var jn=function(){function t(r){var n=this;this.O=Fr,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var u=a;a=i;var f=n;return function(m){var w=this;m===void 0&&(m=u);for(var S=arguments.length,E=Array(S>1?S-1:0),R=1;R<S;R++)E[R-1]=arguments[R];return f.produce(m,function(x){var N;return(N=a).call.apply(N,[w,x].concat(E))})}}var c;if(typeof a!="function"&&V(6),s!==void 0&&typeof s!="function"&&V(7),K(i)){var d=Ir(n),p=dt(n,i,void 0),h=!0;try{c=a(p),h=!1}finally{h?ze(d):ft(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(m){return st(d,s),ot(m,d)},function(m){throw ze(d),m}):(st(d,s),ot(c,d))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===qr&&(c=void 0),n.D&&vt(c,!0),s){var v=[],y=[];G("Patches").M(i,c,v,y),s(v,y)}return c}V(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var d=arguments.length,p=Array(d>1?d-1:0),h=1;h<d;h++)p[h-1]=arguments[h];return n.produceWithPatches(c,function(v){return i.apply(void 0,[v].concat(p))})};var s,u,f=n.produce(i,a,function(c,d){s=c,u=d});return typeof Promise<"u"&&f instanceof Promise?f.then(function(c){return[c,s,u]}):[f,s,u]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){K(r)||V(8),Y(r)&&(r=kn(r));var n=Ir(this),i=dt(this,r,void 0);return i[C].C=!0,ft(n),i},e.finishDraft=function(r,n){var i=r&&r[C],a=i.A;return st(a,n),ot(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Fr&&V(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=G("Patches").$;return Y(r)?s(r,n):this.produce(r,function(u){return s(u,n)})},t}(),B=new jn,Bn=B.produce,Ea=B.produceWithPatches.bind(B),Aa=B.setAutoFreeze.bind(B),wa=B.setUseProxies.bind(B),xa=B.applyPatches.bind(B),Oa=B.createDraft.bind(B),Ta=B.finishDraft.bind(B),$e=Bn;function ae(t){"@babel/helpers - typeof";return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(t)}function St(t,e){if(ae(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ae(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Et(t){var e=St(t,"string");return ae(e)==="symbol"?e:String(e)}function At(t,e,r){return e=Et(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(r),!0).forEach(function(n){At(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function k(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var zr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),wt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qe={INIT:"@@redux/INIT"+wt(),REPLACE:"@@redux/REPLACE"+wt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wt()}};function qn(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xt(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(xt)(t,e)}if(typeof t!="function")throw new Error(k(2));var i=t,a=e,s=[],u=s,f=!1;function c(){u===s&&(u=s.slice())}function d(){if(f)throw new Error(k(3));return a}function p(m){if(typeof m!="function")throw new Error(k(4));if(f)throw new Error(k(5));var w=!0;return c(),u.push(m),function(){if(w){if(f)throw new Error(k(6));w=!1,c();var E=u.indexOf(m);u.splice(E,1),s=null}}}function h(m){if(!qn(m))throw new Error(k(7));if(typeof m.type>"u")throw new Error(k(8));if(f)throw new Error(k(9));try{f=!0,a=i(a,m)}finally{f=!1}for(var w=s=u,S=0;S<w.length;S++){var E=w[S];E()}return m}function v(m){if(typeof m!="function")throw new Error(k(10));i=m,h({type:Qe.REPLACE})}function y(){var m,w=p;return m={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(k(11));function R(){E.next&&E.next(d())}R();var x=w(R);return{unsubscribe:x}}},m[zr]=function(){return this},m}return h({type:Qe.INIT}),n={dispatch:h,subscribe:p,getState:d,replaceReducer:v},n[zr]=y,n}function Vn(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Qe.INIT});if(typeof n>"u")throw new Error(k(12));if(typeof r(void 0,{type:Qe.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function Kr(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,u;try{Vn(r)}catch(f){u=f}return function(c,d){if(c===void 0&&(c={}),u)throw u;if(0)var p;for(var h=!1,v={},y=0;y<a.length;y++){var m=a[y],w=r[m],S=c[m],E=w(S,d);if(typeof E>"u"){var R=d&&d.type;throw new Error(k(14))}v[m]=E,h=h||E!==S}return h=h||a.length!==Object.keys(c).length,h?v:c}}function Ae(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Wr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(k(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},u=e.map(function(f){return f(s)});return a=Ae.apply(void 0,u)(i.dispatch),Ge(Ge({},i),{},{dispatch:a})}}}function $r(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(u){return typeof u=="function"?u(i,a,t):s(u)}}};return e}var Gr=$r();Gr.withExtraArgument=$r;var Ot=Gr;var Zr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Hn=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(d){return f([c,d])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(d){c=[6,d],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},we=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},zn=Object.defineProperty,Kn=Object.defineProperties,Wn=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,Yr=function(t,e,r){return e in t?zn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},se=function(t,e){for(var r in e||(e={}))$n.call(e,r)&&Yr(t,r,e[r]);if(Qr)for(var n=0,i=Qr(e);n<i.length;n++){var r=i[n];Gn.call(e,r)&&Yr(t,r,e[r])}return t},Tt=function(t,e){return Kn(t,Wn(e))},Qn=function(t,e,r){return new Promise(function(n,i){var a=function(f){try{u(r.next(f))}catch(c){i(c)}},s=function(f){try{u(r.throw(f))}catch(c){i(c)}},u=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(a,s)};u((r=r.apply(t,e)).next())})};var Yn=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ae:Ae.apply(null,arguments)},za=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Xn(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Jn=function(t){Zr(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,we([void 0],r[0].concat(this)))):new(e.bind.apply(e,we([void 0],r.concat(this))))},e}(Array),Zn=function(t){Zr(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,we([void 0],r[0].concat(this)))):new(e.bind.apply(e,we([void 0],r.concat(this))))},e}(Array);function Pt(t){return K(t)?$e(t,function(){}):t}function ei(t){return typeof t=="boolean"}function ti(){return function(e){return ri(e)}}function ri(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,u=new Jn;if(r&&(ei(r)?u.push(Ot):u.push(Ot.withExtraArgument(r.extraArgument))),0){if(i)var f;if(s)var c}return u}var Rt=!0;function en(t){var e=ti(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,u=r.devTools,f=u===void 0?!0:u,c=r.preloadedState,d=c===void 0?void 0:c,p=r.enhancers,h=p===void 0?void 0:p,v;if(typeof i=="function")v=i;else if(Xn(i))v=Kr(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=s;if(typeof y=="function"&&(y=y(e),!Rt&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Rt&&y.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=Wr.apply(void 0,y),w=Ae;f&&(w=Yn(se({trace:!Rt},typeof f=="object"&&f)));var S=new Zn(m),E=S;Array.isArray(h)?E=we([m],h):typeof h=="function"&&(E=h(S));var R=w.apply(void 0,E);return xt(v,d,R)}function oe(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return se(se({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function tn(t){var e={},r=[],n,i={addCase:function(a,s){var u=typeof a=="string"?a:a.type;if(u in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[u]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function ni(t){return typeof t=="function"}function ii(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?tn(e):[e,r,n],a=i[0],s=i[1],u=i[2],f;if(ni(t))f=function(){return Pt(t())};else{var c=Pt(t);f=function(){return c}}function d(p,h){p===void 0&&(p=f());var v=we([a[h.type]],s.filter(function(y){var m=y.matcher;return m(h)}).map(function(y){var m=y.reducer;return m}));return v.filter(function(y){return!!y}).length===0&&(v=[u]),v.reduce(function(y,m){if(m)if(Y(y)){var w=y,S=m(w,h);return S===void 0?y:S}else{if(K(y))return $e(y,function(E){return m(E,h)});var S=m(y,h);if(S===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return y},p)}return d.getInitialState=f,d}function ai(t,e){return t+"/"+e}function rn(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Pt(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},u={};i.forEach(function(d){var p=n[d],h=ai(e,d),v,y;"reducer"in p?(v=p.reducer,y=p.prepare):v=p,a[d]=v,s[h]=v,u[d]=y?oe(h,y):oe(h)});function f(){var d=typeof t.extraReducers=="function"?tn(t.extraReducers):[t.extraReducers],p=d[0],h=p===void 0?{}:p,v=d[1],y=v===void 0?[]:v,m=d[2],w=m===void 0?void 0:m,S=se(se({},h),s);return ii(r,function(E){for(var R in S)E.addCase(R,S[R]);for(var x=0,N=y;x<N.length;x++){var H=N[x];E.addMatcher(H.matcher,H.reducer)}w&&E.addDefaultCase(w)})}var c;return{name:e,reducer:function(d,p){return c||(c=f()),c(d,p)},actions:u,caseReducers:a,getInitialState:function(){return c||(c=f()),c.getInitialState()}}}var si="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",oi=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=si[Math.random()*64|0];return e},ui=["name","message","stack","code"],Ct=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Xr=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ci=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=ui;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Ga=function(){function t(e,r,n){var i=oe(e+"/fulfilled",function(d,p,h,v){return{payload:d,meta:Tt(se({},v||{}),{arg:h,requestId:p,requestStatus:"fulfilled"})}}),a=oe(e+"/pending",function(d,p,h){return{payload:void 0,meta:Tt(se({},h||{}),{arg:p,requestId:d,requestStatus:"pending"})}}),s=oe(e+"/rejected",function(d,p,h,v,y){return{payload:v,error:(n&&n.serializeError||ci)(d||"Rejected"),meta:Tt(se({},y||{}),{arg:h,requestId:p,rejectedWithValue:!!v,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"})}}),u=!1,f=typeof AbortController<"u"?AbortController:function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){},d}();function c(d){return function(p,h,v){var y=n?.idGenerator?n.idGenerator(d):oi(),m=new f,w,S=!1;function E(x){w=x,m.abort()}var R=function(){return Qn(this,null,function(){var x,N,H,ue,U,ce,pe;return Hn(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),ue=(x=n?.condition)==null?void 0:x.call(n,d,{getState:h,extra:v}),fi(ue)?[4,ue]:[3,2];case 1:ue=o.sent(),o.label=2;case 2:if(ue===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,U=new Promise(function(l,g){return m.signal.addEventListener("abort",function(){return g({name:"AbortError",message:w||"Aborted"})})}),p(a(y,d,(N=n?.getPendingMeta)==null?void 0:N.call(n,{requestId:y,arg:d},{getState:h,extra:v}))),[4,Promise.race([U,Promise.resolve(r(d,{dispatch:p,getState:h,extra:v,requestId:y,signal:m.signal,abort:E,rejectWithValue:function(l,g){return new Ct(l,g)},fulfillWithValue:function(l,g){return new Xr(l,g)}})).then(function(l){if(l instanceof Ct)throw l;return l instanceof Xr?i(l.payload,y,d,l.meta):i(l,y,d)})])];case 3:return H=o.sent(),[3,5];case 4:return ce=o.sent(),H=ce instanceof Ct?s(null,y,d,ce.payload,ce.meta):s(ce,y,d),[3,5];case 5:return pe=n&&!n.dispatchConditionRejection&&s.match(H)&&H.meta.condition,pe||p(H),[2,H]}})})}();return Object.assign(R,{abort:E,requestId:y,arg:d,unwrap:function(){return R.then(li)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function li(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function fi(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var nn="listener",an="completed",sn="cancelled",Qa="task-"+sn,Ya="task-"+an,Xa=nn+"-"+sn,Ja=nn+"-"+an;var _t="listenerMiddleware";var Za=oe(_t+"/add"),es=oe(_t+"/removeAll"),ts=oe(_t+"/remove");var Jr,rs=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Jr||(Jr=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},di=function(t){return function(e){setTimeout(e,t)}},ns=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:di(10);Br();window.ftReduxStores||(window.ftReduxStores={});var on=class t{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Oe(a))return a;if(i==null)return;let s=rn({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),u=en({reducer:(f,c)=>c.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...c.overwrites}:s.reducer(f,c)});return window.ftReduxStores[i.name]=new t(s,u)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ue,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,u=n[s];return u?(...f)=>{let c=u(...f);return this.reduxStore.dispatch(c),c}:f=>{this.setState({[s]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ze=T(j());var Ye=class extends ${async listMySearches(){let e=b.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Xe=class extends ${async listMyBookmarks(){let e=b.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var pi="ft-user-assets",Je=Ze.FtReduxStore.get({name:pi,initialState:{savedSearches:void 0,bookmarks:void 0}}),It=class{constructor(){this.currentSession=b.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xe,this.savedSearchesService=new Ye,b.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=b.getState();(0,Ze.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Je.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Je.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Je.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Je.actions.bookmarks(r)}}},un=new It;var Dt=class{addCommand(e,r=!1){b.commands.add(e,r)}consumeCommand(e){return b.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Dt;var cn=T(j()),Nt=class{highlightHtml(e,r,n){(0,cn.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Nt;var ln=T(j());var Mt=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=b.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(u=>u.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return ln.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:b.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Mt;(0,fn.customElement)("ft-app-context")(_);var et=class extends ${async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0)}};var yi=t=>t.request.virtualField===ve.TITLE_ONLY&&t.request.scope===ge.DOCUMENTS,tt=class t extends Event{constructor(){super(t.eventName)}};tt.eventName="search-context-clear-all-filters";var _e=class t{static build(e,r){return new t(Gt(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new Q.Debouncer(10),this.searchDebouncer=new Q.Debouncer(100),this.suggestDebouncer=new Q.Debouncer(300),this.service=r??new et}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(r){let i=a=>r.some(s=>s.lang==a);i(e)||(e=i(n)?n:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(ve.TITLE_ONLY),this.store.actions.setRequestScope(ge.DOCUMENTS)):(this.store.actions.setRequestVirtualField(ve.EVERYWHERE),this.store.actions.setRequestScope(ge.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return yi(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new tt)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let n=this.facetIds.filter(i=>i!=e);r&&n.push(r),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let n=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:r,negative:!1}},a=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,r){let n=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:r}},a=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,n=[...r.filter(i=>!i.dateFilter),...r.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(n)}setRangeFilter(e,r,n){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:n}},s=[...i.filter(u=>!u.rangeFilter),...i.filter(u=>u.rangeFilter&&u.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,n=[...r.filter(i=>!i.rangeFilter),...r.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,Q.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof Q.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),n=r.request,i={input:r.liveQuery,metadataFilters:n.metadataFilters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,Q.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof Q.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var mi=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ft=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},kt=Symbol("registerInterval");function vi(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[kt]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[kt]):this.dispatchEvent(new Ft)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=kt,mi([(0,pn.state)()],r.prototype,"stateManager",void 0),r}var dn=class extends vi(hn.FtLitElementRedux){};var L=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Lt=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Ut=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},jt=class extends CustomEvent{constructor(e,r,n){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:n}})}},I=class extends W.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=_e.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(b)}render(){return yn.html`
6
+ `}update(e){super.update(e),e.has("baseUrl")&&(b.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&b.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&b.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&b.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&b.actions.noCustom(this.noCustom),e.has("editorMode")&&b.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&b.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&b.actions.session(this.session),e.has("availableUiLocales")&&b.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>vr.addContext(r)),e.has("openExternalDocumentInNewTab")&&b.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&b.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&b.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};_.elementDefinitions={};_.styles=yr;F([(0,q.property)()],_.prototype,"baseUrl",void 0);F([(0,q.property)()],_.prototype,"apiIntegrationIdentifier",void 0);F([(0,q.property)()],_.prototype,"uiLocale",void 0);F([(0,z.jsonProperty)(null)],_.prototype,"availableUiLocales",void 0);F([(0,z.jsonProperty)(null)],_.prototype,"metadataConfiguration",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"editorMode",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"noCustom",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"openExternalDocumentInNewTab",void 0);F([(0,q.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],_.prototype,"noCustomComponent",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"withManualResources",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"navigatorOnline",void 0);F([(0,q.property)({type:Boolean})],_.prototype,"forcedOffline",void 0);F([(0,q.property)({type:Object})],_.prototype,"apiProvider",void 0);F([(0,z.jsonProperty)([])],_.prototype,"messageContexts",void 0);F([(0,z.jsonProperty)(void 0)],_.prototype,"session",void 0);var hi=T(J());function Cn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Le(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Le(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){var a=i[n];if(!Le(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Le(t,e){try{return Cn(t,e)}catch{return!1}}function at(t,e){return!Le(t,e)}var Pn=T(J(),1);var Ue=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var xe=T(J(),1);var br=T(J(),1);function Sr(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,br.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:at,...e??{}})}var je=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(u){i(u);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ar=T(ye(),1);var Be=window,_n=Be.ShadowRoot&&(Be.ShadyCSS===void 0||Be.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ca=Symbol();var Er=(t,e)=>{_n?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),i=Be.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})};var qe=class extends Ar.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Er(n,e.elementStyles),n}};var Ve=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Tr,wr=Symbol("constructorPrototype"),xr=Symbol("constructorName"),Rr=Symbol("exportpartsDebouncer"),Or=Symbol("dynamicDependenciesLoaded"),te=class extends qe{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tr]=new je(5),this[xr]=this.constructor.name,this[wr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xr]&&Object.setPrototypeOf(this,this[wr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Or]||(e[Or]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Rr].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,i,a,s,u;let f=h=>h!=null&&h.trim().length>0,c=e.filter(f).map(h=>h.trim());if(c.length===0){this.removeAttribute("exportparts");return}let d=new Set;for(let h of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(a=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],y=(u=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(m=>m.split(":")[1]))!==null&&u!==void 0?u:[];new Array(...v,...y).filter(f).map(m=>m.trim()).forEach(m=>d.add(m))}if(d.size===0){this.removeAttribute("exportparts");return}let p=[...d.values()].flatMap(h=>c.map(v=>`${h}:${v}--${h}`));this.setAttribute("exportparts",[...this.part,...p].join(", "))}};Tr=Rr;Ve([(0,xe.property)()],te.prototype,"exportpartsPrefix",void 0);Ve([Sr([])],te.prototype,"exportpartsPrefixes",void 0);Ve([(0,xe.property)()],te.prototype,"customStylesheet",void 0);Ve([(0,xe.state)()],te.prototype,"useAdoptedStyleSheets",void 0);function Oe(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Cr,Pr,_r,He=Symbol("internalReduxEventsUnsubscribers"),re=Symbol("internalStoresUnsubscribers"),de=Symbol("internalStores"),Te=class extends te{constructor(){super(...arguments),this[Cr]=new Map,this[Pr]=new Map,this[_r]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[de].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[de].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[de].get(e)}addStore(e,r){var n;r=(n=r??(Oe(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[de].delete(r)}setupStore(e,r){this[de].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[de].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[re].has(e.store):this[re].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[re].set(e,r.subscribe(()=>this.updateFromStores())),Oe(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=u=>this[a](u);r.eventBus.addEventListener(i.eventName,s),this[He].push(()=>r.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[re].forEach((e,r)=>this.unsubscribeFromStore(r)),this[He].forEach(e=>e()),this[He]=[]}unsubscribeFromStore(e){this[re].has(e)&&this[re].get(e)(),this[re].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Cr=re,Pr=de,_r=He;Te.reduxProperties=new Map;Te.reduxReactiveProperties=new Set;Te.reduxEventListeners=new Map;function V(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Y(t){return!!t&&!!t[C]}function K(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Un}(t)||Array.isArray(t)||!!t[Lr]||!!(!((e=t.constructor)===null||e===void 0)&&e[Lr])||pt(t)||yt(t))}function he(t,e,r){r===void 0&&(r=!1),Ee(t)===0?(r?Object.keys:Se)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Ee(t){var e=t[C];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:pt(t)?2:yt(t)?3:0}function be(t,e){return Ee(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function In(t,e){return Ee(t)===2?t.get(e):t[e]}function Ur(t,e,r){var n=Ee(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function jr(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function pt(t){return Fn&&t instanceof Map}function yt(t){return Ln&&t instanceof Set}function ne(t){return t.o||t.t}function mt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vr(t);delete e[C];for(var r=Se(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function vt(t,e){return e===void 0&&(e=!1),gt(t)||Y(t)||!K(t)||(Ee(t)>1&&(t.set=t.add=t.clear=t.delete=Dn),Object.freeze(t),e&&he(t,function(r,n){return vt(n,!0)},!0)),t}function Dn(){V(2)}function gt(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function G(t){var e=ht[t];return e||V(18,t),e}function Nn(t,e){ht[t]||(ht[t]=e)}function lt(){return Ce}function st(t,e){e&&(G("Patches"),t.u=[],t.s=[],t.v=e)}function ze(t){ft(t),t.p.forEach(Mn),t.p=null}function ft(t){t===Ce&&(Ce=t.l)}function Ir(t){return Ce={p:[],l:Ce,h:t,m:!0,_:0}}function Mn(t){var e=t[C];e.i===0||e.i===1?e.j():e.g=!0}function ot(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||G("ES5").S(e,t,n),n?(r[C].P&&(ze(e),V(4)),K(t)&&(t=Ke(e,t),e.l||We(e,t)),e.u&&G("Patches").M(r[C].t,t,e.u,e.s)):t=Ke(e,r,[]),ze(e),e.u&&e.v(e.u,e.s),t!==qr?t:void 0}function Ke(t,e,r){if(gt(e))return e;var n=e[C];if(!n)return he(e,function(u,f){return Dr(t,n,e,u,f,r)},!0),e;if(n.A!==t)return e;if(!n.P)return We(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=mt(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),he(a,function(u,f){return Dr(t,n,i,u,f,r,s)}),We(t,i,!1),r&&t.u&&G("Patches").N(n,r,t.u,t.s)}return n.o}function Dr(t,e,r,n,i,a,s){if(Y(i)){var u=Ke(t,i,a&&e&&e.i!==3&&!be(e.R,n)?a.concat(n):void 0);if(Ur(r,n,u),!Y(u))return;t.m=!1}else s&&r.add(i);if(K(i)&&!gt(i)){if(!t.h.D&&t._<1)return;Ke(t,i),e&&e.A.l||We(t,i)}}function We(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&vt(e,r)}function ut(t,e){var r=t[C];return(r?ne(r):t)[e]}function Nr(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ie(t){t.P||(t.P=!0,t.l&&ie(t.l))}function ct(t){t.o||(t.o=mt(t.t))}function dt(t,e,r){var n=pt(e)?G("MapSet").F(e,r):yt(e)?G("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),u={i:s?1:0,A:a?a.A:lt(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},f=u,c=Pe;s&&(f=[u],c=Re);var d=Proxy.revocable(f,c),p=d.revoke,h=d.proxy;return u.k=h,u.j=p,h}(e,r):G("ES5").J(e,r);return(r?r.A:lt()).p.push(n),n}function kn(t){return Y(t)||V(22,t),function e(r){if(!K(r))return r;var n,i=r[C],a=Ee(r);if(i){if(!i.P&&(i.i<4||!G("ES5").K(i)))return i.t;i.I=!0,n=Mr(r,a),i.I=!1}else n=Mr(r,a);return he(n,function(s,u){i&&In(i.t,s)===u||Ur(n,s,e(u))}),a===3?new Set(n):n}(t)}function Mr(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mt(t)}function Br(){function t(s,u){var f=a[s];return f?f.enumerable=u:a[s]=f={configurable:!0,enumerable:u,get:function(){var c=this[C];return Pe.get(c,s)},set:function(c){var d=this[C];Pe.set(d,s,c)}},f}function e(s){for(var u=s.length-1;u>=0;u--){var f=s[u][C];if(!f.P)switch(f.i){case 5:n(f)&&ie(f);break;case 4:r(f)&&ie(f)}}}function r(s){for(var u=s.t,f=s.k,c=Se(f),d=c.length-1;d>=0;d--){var p=c[d];if(p!==C){var h=u[p];if(h===void 0&&!be(u,p))return!0;var v=f[p],y=v&&v[C];if(y?y.t!==h:!jr(v,h))return!0}}var m=!!u[C];return c.length!==Se(u).length+(m?0:1)}function n(s){var u=s.k;if(u.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(u,u.length-1);if(f&&!f.get)return!0;for(var c=0;c<u.length;c++)if(!u.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&V(3,JSON.stringify(ne(s)))}var a={};Nn("ES5",{J:function(s,u){var f=Array.isArray(s),c=function(p,h){if(p){for(var v=Array(h.length),y=0;y<h.length;y++)Object.defineProperty(v,""+y,t(y,!0));return v}var m=Vr(h);delete m[C];for(var w=Se(m),S=0;S<w.length;S++){var E=w[S];m[E]=t(E,p||!!m[E].enumerable)}return Object.create(Object.getPrototypeOf(h),m)}(f,s),d={i:f?5:4,A:u?u.A:lt(),P:!1,I:!1,R:{},l:u,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,C,{value:d,writable:!0}),c},S:function(s,u,f){f?Y(u)&&u[C].A===s&&e(s.p):(s.u&&function c(d){if(d&&typeof d=="object"){var p=d[C];if(p){var h=p.t,v=p.k,y=p.R,m=p.i;if(m===4)he(v,function(x){x!==C&&(h[x]!==void 0||be(h,x)?y[x]||c(v[x]):(y[x]=!0,ie(p)))}),he(h,function(x){v[x]!==void 0||be(v,x)||(y[x]=!1,ie(p))});else if(m===5){if(n(p)&&(ie(p),y.length=!0),v.length<h.length)for(var w=v.length;w<h.length;w++)y[w]=!1;else for(var S=h.length;S<v.length;S++)y[S]=!0;for(var E=Math.min(v.length,h.length),R=0;R<E;R++)v.hasOwnProperty(R)||(y[R]=!0),y[R]===void 0&&c(v[R])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var kr,Ce,bt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Fn=typeof Map<"u",Ln=typeof Set<"u",Fr=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qr=bt?Symbol.for("immer-nothing"):((kr={})["immer-nothing"]=!0,kr),Lr=bt?Symbol.for("immer-draftable"):"__$immer_draftable",C=bt?Symbol.for("immer-state"):"__$immer_state";var Un=""+Object.prototype.constructor,Se=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vr=Object.getOwnPropertyDescriptors||function(t){var e={};return Se(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ht={},Pe={get:function(t,e){if(e===C)return t;var r=ne(t);if(!be(r,e))return function(i,a,s){var u,f=Nr(a,s);return f?"value"in f?f.value:(u=f.get)===null||u===void 0?void 0:u.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!K(n)?n:n===ut(t.t,e)?(ct(t),t.o[e]=dt(t.A.h,n,t)):n},has:function(t,e){return e in ne(t)},ownKeys:function(t){return Reflect.ownKeys(ne(t))},set:function(t,e,r){var n=Nr(ne(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ut(ne(t),e),a=i?.[C];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(jr(r,i)&&(r!==void 0||be(t.t,e)))return!0;ct(t),ie(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ut(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ct(t),ie(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ne(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){V(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){V(12)}},Re={};he(Pe,function(t,e){Re[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Re.deleteProperty=function(t,e){return Re.set.call(this,t,e,void 0)},Re.set=function(t,e,r){return Pe.set.call(this,t[0],e,r,t[0])};var jn=function(){function t(r){var n=this;this.O=Fr,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var u=a;a=i;var f=n;return function(m){var w=this;m===void 0&&(m=u);for(var S=arguments.length,E=Array(S>1?S-1:0),R=1;R<S;R++)E[R-1]=arguments[R];return f.produce(m,function(x){var N;return(N=a).call.apply(N,[w,x].concat(E))})}}var c;if(typeof a!="function"&&V(6),s!==void 0&&typeof s!="function"&&V(7),K(i)){var d=Ir(n),p=dt(n,i,void 0),h=!0;try{c=a(p),h=!1}finally{h?ze(d):ft(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(m){return st(d,s),ot(m,d)},function(m){throw ze(d),m}):(st(d,s),ot(c,d))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===qr&&(c=void 0),n.D&&vt(c,!0),s){var v=[],y=[];G("Patches").M(i,c,v,y),s(v,y)}return c}V(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var d=arguments.length,p=Array(d>1?d-1:0),h=1;h<d;h++)p[h-1]=arguments[h];return n.produceWithPatches(c,function(v){return i.apply(void 0,[v].concat(p))})};var s,u,f=n.produce(i,a,function(c,d){s=c,u=d});return typeof Promise<"u"&&f instanceof Promise?f.then(function(c){return[c,s,u]}):[f,s,u]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){K(r)||V(8),Y(r)&&(r=kn(r));var n=Ir(this),i=dt(this,r,void 0);return i[C].C=!0,ft(n),i},e.finishDraft=function(r,n){var i=r&&r[C],a=i.A;return st(a,n),ot(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Fr&&V(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=G("Patches").$;return Y(r)?s(r,n):this.produce(r,function(u){return s(u,n)})},t}(),B=new jn,Bn=B.produce,Ea=B.produceWithPatches.bind(B),Aa=B.setAutoFreeze.bind(B),wa=B.setUseProxies.bind(B),xa=B.applyPatches.bind(B),Oa=B.createDraft.bind(B),Ta=B.finishDraft.bind(B),$e=Bn;function ae(t){"@babel/helpers - typeof";return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(t)}function St(t,e){if(ae(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ae(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Et(t){var e=St(t,"string");return ae(e)==="symbol"?e:String(e)}function At(t,e,r){return e=Et(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hr(Object(r),!0).forEach(function(n){At(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function k(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var zr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),wt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qe={INIT:"@@redux/INIT"+wt(),REPLACE:"@@redux/REPLACE"+wt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wt()}};function qn(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xt(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(xt)(t,e)}if(typeof t!="function")throw new Error(k(2));var i=t,a=e,s=[],u=s,f=!1;function c(){u===s&&(u=s.slice())}function d(){if(f)throw new Error(k(3));return a}function p(m){if(typeof m!="function")throw new Error(k(4));if(f)throw new Error(k(5));var w=!0;return c(),u.push(m),function(){if(w){if(f)throw new Error(k(6));w=!1,c();var E=u.indexOf(m);u.splice(E,1),s=null}}}function h(m){if(!qn(m))throw new Error(k(7));if(typeof m.type>"u")throw new Error(k(8));if(f)throw new Error(k(9));try{f=!0,a=i(a,m)}finally{f=!1}for(var w=s=u,S=0;S<w.length;S++){var E=w[S];E()}return m}function v(m){if(typeof m!="function")throw new Error(k(10));i=m,h({type:Qe.REPLACE})}function y(){var m,w=p;return m={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(k(11));function R(){E.next&&E.next(d())}R();var x=w(R);return{unsubscribe:x}}},m[zr]=function(){return this},m}return h({type:Qe.INIT}),n={dispatch:h,subscribe:p,getState:d,replaceReducer:v},n[zr]=y,n}function Vn(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Qe.INIT});if(typeof n>"u")throw new Error(k(12));if(typeof r(void 0,{type:Qe.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function Kr(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,u;try{Vn(r)}catch(f){u=f}return function(c,d){if(c===void 0&&(c={}),u)throw u;if(0)var p;for(var h=!1,v={},y=0;y<a.length;y++){var m=a[y],w=r[m],S=c[m],E=w(S,d);if(typeof E>"u"){var R=d&&d.type;throw new Error(k(14))}v[m]=E,h=h||E!==S}return h=h||a.length!==Object.keys(c).length,h?v:c}}function Ae(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Wr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(k(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},u=e.map(function(f){return f(s)});return a=Ae.apply(void 0,u)(i.dispatch),Ge(Ge({},i),{},{dispatch:a})}}}function $r(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(u){return typeof u=="function"?u(i,a,t):s(u)}}};return e}var Gr=$r();Gr.withExtraArgument=$r;var Ot=Gr;var Zr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Hn=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(d){return f([c,d])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(d){c=[6,d],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},we=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},zn=Object.defineProperty,Kn=Object.defineProperties,Wn=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,Yr=function(t,e,r){return e in t?zn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},se=function(t,e){for(var r in e||(e={}))$n.call(e,r)&&Yr(t,r,e[r]);if(Qr)for(var n=0,i=Qr(e);n<i.length;n++){var r=i[n];Gn.call(e,r)&&Yr(t,r,e[r])}return t},Tt=function(t,e){return Kn(t,Wn(e))},Qn=function(t,e,r){return new Promise(function(n,i){var a=function(f){try{u(r.next(f))}catch(c){i(c)}},s=function(f){try{u(r.throw(f))}catch(c){i(c)}},u=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(a,s)};u((r=r.apply(t,e)).next())})};var Yn=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ae:Ae.apply(null,arguments)},za=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Xn(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Jn=function(t){Zr(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,we([void 0],r[0].concat(this)))):new(e.bind.apply(e,we([void 0],r.concat(this))))},e}(Array),Zn=function(t){Zr(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,we([void 0],r[0].concat(this)))):new(e.bind.apply(e,we([void 0],r.concat(this))))},e}(Array);function Pt(t){return K(t)?$e(t,function(){}):t}function ei(t){return typeof t=="boolean"}function ti(){return function(e){return ri(e)}}function ri(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,u=new Jn;if(r&&(ei(r)?u.push(Ot):u.push(Ot.withExtraArgument(r.extraArgument))),0){if(i)var f;if(s)var c}return u}var Rt=!0;function en(t){var e=ti(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,u=r.devTools,f=u===void 0?!0:u,c=r.preloadedState,d=c===void 0?void 0:c,p=r.enhancers,h=p===void 0?void 0:p,v;if(typeof i=="function")v=i;else if(Xn(i))v=Kr(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=s;if(typeof y=="function"&&(y=y(e),!Rt&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Rt&&y.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=Wr.apply(void 0,y),w=Ae;f&&(w=Yn(se({trace:!Rt},typeof f=="object"&&f)));var S=new Zn(m),E=S;Array.isArray(h)?E=we([m],h):typeof h=="function"&&(E=h(S));var R=w.apply(void 0,E);return xt(v,d,R)}function oe(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return se(se({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function tn(t){var e={},r=[],n,i={addCase:function(a,s){var u=typeof a=="string"?a:a.type;if(u in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[u]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function ni(t){return typeof t=="function"}function ii(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?tn(e):[e,r,n],a=i[0],s=i[1],u=i[2],f;if(ni(t))f=function(){return Pt(t())};else{var c=Pt(t);f=function(){return c}}function d(p,h){p===void 0&&(p=f());var v=we([a[h.type]],s.filter(function(y){var m=y.matcher;return m(h)}).map(function(y){var m=y.reducer;return m}));return v.filter(function(y){return!!y}).length===0&&(v=[u]),v.reduce(function(y,m){if(m)if(Y(y)){var w=y,S=m(w,h);return S===void 0?y:S}else{if(K(y))return $e(y,function(E){return m(E,h)});var S=m(y,h);if(S===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return y},p)}return d.getInitialState=f,d}function ai(t,e){return t+"/"+e}function rn(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Pt(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},u={};i.forEach(function(d){var p=n[d],h=ai(e,d),v,y;"reducer"in p?(v=p.reducer,y=p.prepare):v=p,a[d]=v,s[h]=v,u[d]=y?oe(h,y):oe(h)});function f(){var d=typeof t.extraReducers=="function"?tn(t.extraReducers):[t.extraReducers],p=d[0],h=p===void 0?{}:p,v=d[1],y=v===void 0?[]:v,m=d[2],w=m===void 0?void 0:m,S=se(se({},h),s);return ii(r,function(E){for(var R in S)E.addCase(R,S[R]);for(var x=0,N=y;x<N.length;x++){var H=N[x];E.addMatcher(H.matcher,H.reducer)}w&&E.addDefaultCase(w)})}var c;return{name:e,reducer:function(d,p){return c||(c=f()),c(d,p)},actions:u,caseReducers:a,getInitialState:function(){return c||(c=f()),c.getInitialState()}}}var si="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",oi=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=si[Math.random()*64|0];return e},ui=["name","message","stack","code"],Ct=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Xr=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ci=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=ui;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Ga=function(){function t(e,r,n){var i=oe(e+"/fulfilled",function(d,p,h,v){return{payload:d,meta:Tt(se({},v||{}),{arg:h,requestId:p,requestStatus:"fulfilled"})}}),a=oe(e+"/pending",function(d,p,h){return{payload:void 0,meta:Tt(se({},h||{}),{arg:p,requestId:d,requestStatus:"pending"})}}),s=oe(e+"/rejected",function(d,p,h,v,y){return{payload:v,error:(n&&n.serializeError||ci)(d||"Rejected"),meta:Tt(se({},y||{}),{arg:h,requestId:p,rejectedWithValue:!!v,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"})}}),u=!1,f=typeof AbortController<"u"?AbortController:function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){},d}();function c(d){return function(p,h,v){var y=n?.idGenerator?n.idGenerator(d):oi(),m=new f,w,S=!1;function E(x){w=x,m.abort()}var R=function(){return Qn(this,null,function(){var x,N,H,ue,U,ce,pe;return Hn(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),ue=(x=n?.condition)==null?void 0:x.call(n,d,{getState:h,extra:v}),fi(ue)?[4,ue]:[3,2];case 1:ue=o.sent(),o.label=2;case 2:if(ue===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,U=new Promise(function(l,g){return m.signal.addEventListener("abort",function(){return g({name:"AbortError",message:w||"Aborted"})})}),p(a(y,d,(N=n?.getPendingMeta)==null?void 0:N.call(n,{requestId:y,arg:d},{getState:h,extra:v}))),[4,Promise.race([U,Promise.resolve(r(d,{dispatch:p,getState:h,extra:v,requestId:y,signal:m.signal,abort:E,rejectWithValue:function(l,g){return new Ct(l,g)},fulfillWithValue:function(l,g){return new Xr(l,g)}})).then(function(l){if(l instanceof Ct)throw l;return l instanceof Xr?i(l.payload,y,d,l.meta):i(l,y,d)})])];case 3:return H=o.sent(),[3,5];case 4:return ce=o.sent(),H=ce instanceof Ct?s(null,y,d,ce.payload,ce.meta):s(ce,y,d),[3,5];case 5:return pe=n&&!n.dispatchConditionRejection&&s.match(H)&&H.meta.condition,pe||p(H),[2,H]}})})}();return Object.assign(R,{abort:E,requestId:y,arg:d,unwrap:function(){return R.then(li)}})}}return Object.assign(c,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function li(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function fi(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var nn="listener",an="completed",sn="cancelled",Qa="task-"+sn,Ya="task-"+an,Xa=nn+"-"+sn,Ja=nn+"-"+an;var _t="listenerMiddleware";var Za=oe(_t+"/add"),es=oe(_t+"/removeAll"),ts=oe(_t+"/remove");var Jr,rs=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Jr||(Jr=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},di=function(t){return function(e){setTimeout(e,t)}},ns=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:di(10);Br();window.ftReduxStores||(window.ftReduxStores={});var on=class t{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Oe(a))return a;if(i==null)return;let s=rn({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),u=en({reducer:(f,c)=>c.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...c.overwrites}:s.reducer(f,c)});return window.ftReduxStores[i.name]=new t(s,u)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ue,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,u=n[s];return u?(...f)=>{let c=u(...f);return this.reduxStore.dispatch(c),c}:f=>{this.setState({[s]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ze=T(j());var Ye=class extends ${async listMySearches(){let e=b.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Xe=class extends ${async listMyBookmarks(){let e=b.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var pi="ft-user-assets",Je=Ze.FtReduxStore.get({name:pi,initialState:{savedSearches:void 0,bookmarks:void 0}}),It=class{constructor(){this.currentSession=b.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xe,this.savedSearchesService=new Ye,b.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=b.getState();(0,Ze.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Je.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Je.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Je.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Je.actions.bookmarks(r)}}},un=new It;var Dt=class{addCommand(e,r=!1){b.commands.add(e,r)}consumeCommand(e){return b.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Dt;var cn=T(j()),Nt=class{highlightHtml(e,r,n){(0,cn.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Nt;var ln=T(j());var Mt=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=b.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(u=>u.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return ln.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:b.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Mt;(0,fn.customElement)("ft-app-context")(_);var et=class extends ${async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0)}};var yi=t=>t.request.virtualField===ve.TITLE_ONLY&&t.request.scope===ge.DOCUMENTS,tt=class t extends Event{constructor(){super(t.eventName)}};tt.eventName="search-context-clear-all-filters";var _e=class t{static build(e,r){return new t(Gt(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new Q.Debouncer(10),this.searchDebouncer=new Q.Debouncer(100),this.suggestDebouncer=new Q.Debouncer(300),this.service=r??new et}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(r){let i=a=>r.some(s=>s.lang==a);i(e)||(e=i(n)?n:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(ve.TITLE_ONLY),this.store.actions.setRequestScope(ge.DOCUMENTS)):(this.store.actions.setRequestVirtualField(ve.EVERYWHERE),this.store.actions.setRequestScope(ge.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return yi(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new tt)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let n=this.facetIds.filter(i=>i!=e);r&&n.push(r),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let n=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:r,negative:!1}},a=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,r){let n=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:r}},a=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,n=[...r.filter(i=>!i.dateFilter),...r.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(n)}setRangeFilter(e,r,n){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:n}},s=[...i.filter(u=>!u.rangeFilter),...i.filter(u=>u.rangeFilter&&u.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,n=[...r.filter(i=>!i.rangeFilter),...r.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,Q.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof Q.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),n=r.request,i={input:r.liveQuery,metadataFilters:n.metadataFilters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,Q.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof Q.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var mi=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ft=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},kt=Symbol("registerInterval");function vi(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[kt]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[kt]):this.dispatchEvent(new Ft)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=kt,mi([(0,pn.state)()],r.prototype,"stateManager",void 0),r}var dn=class extends vi(hn.FtLitElementRedux){};var L=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Lt=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Ut=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},jt=class extends CustomEvent{constructor(e,r,n){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:n}})}},I=class extends W.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=_e.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(b)}render(){return yn.html`
7
7
  <slot @register-ft-search-component=${this.registerComponent}></slot>
8
8
  `}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Ut(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new jt(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Lt(e))}reloadSavedSearches(){un.clearMySearches()}clear(){this.stateManager.clear()}};I.elementDefinitions={};I.styles=Wt;L([(0,W.redux)({store:b.name})],I.prototype,"session",void 0);L([(0,X.property)()],I.prototype,"query",void 0);L([(0,X.property)()],I.prototype,"contentLocale",void 0);L([(0,X.property)({type:Number})],I.prototype,"pageSize",void 0);L([(0,X.property)({type:Boolean})],I.prototype,"searchInDocumentTitlesOnly",void 0);L([(0,X.property)()],I.prototype,"scope",void 0);L([(0,X.property)()],I.prototype,"virtualField",void 0);L([(0,X.property)({type:Boolean})],I.prototype,"ignoreEmptyQuery",void 0);L([(0,W.redux)({store:b.name})],I.prototype,"openExternalDocumentInNewTab",void 0);L([(0,W.jsonProperty)([])],I.prototype,"filters",void 0);L([(0,W.jsonProperty)([])],I.prototype,"sort",void 0);L([(0,W.redux)({store:"search"})],I.prototype,"request",void 0);L([(0,W.redux)({store:"search"})],I.prototype,"paging",void 0);L([(0,W.redux)({store:"search",selector:t=>t.spellcheck})],I.prototype,"autocorrect",void 0);L([(0,X.property)({attribute:!1})],I.prototype,"searchServiceProvider",void 0);(0,mn.customElement)("ft-search-context")(I);})();
9
9
  /*! Bundled license information: