@fluid-topics/ft-search-selected-facets 1.2.24 → 1.2.26
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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
`;var As=g(R()),Rs=g(G());var We=g(R());var No=g(R()),Wd={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)=>{var o;let n=+((o=e.payload)!==null&&o!==void 0?o:20);t.request.paging.perPage=isNaN(n)?20:(0,No.minmax)(1,n,40)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,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},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var o;t.request.clusterSortCriterions=(o=e.payload)!==null&&o!==void 0?o:[]}},ca=t=>No.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,suggestResults:void 0},reducers:Wd});var Hd=g(pa(),1);var fa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(fa||(fa={}));var ua;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ua||(ua={}));var ha;(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"})(ha||(ha={}));var ya;(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"})(ya||(ya={}));var ma;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ma||(ma={}));var ga;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ga||(ga={}));var ba;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ba||(ba={}));var xa;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xa||(xa={}));var va;(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"})(va||(va={}));var Sa;(function(t){t.ASC="ASC",t.DESC="DESC"})(Sa||(Sa={}));var Oa;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Oa||(Oa={}));var Ar;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ar||(Ar={}));var Ca;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ca||(Ca={}));var Ea;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ea||(Ea={}));var wa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(wa||(wa={}));var To;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(To||(To={}));var Aa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Aa||(Aa={}));var Rr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Rr||(Rr={}));var se;(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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_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"})(se||(se={}));var Ra;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ra||(Ra={}));var Na;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Na||(Na={}));var Ef={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.DEVELOPER]:[se.BETA_USER,se.DEBUG_USER],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};var ws=g(R());var ka=g(_()),ke=g(G()),tt=g(R());var La=g(_());var Ia=La.css`
|
|
13
13
|
`;var Po=g(R()),Vd="ft-app-info",Bn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Gd={session:(t,e)=>{(0,Po.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Bn(e.payload)),0))}},P=Po.FtReduxStore.get({name:Vd,reducers:Gd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var $t=g(R());var Fn=g(R());var ir=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=P.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var ht=class{constructor(e=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Fn.CacheRegistry,this.cache=e?a.commonCache:new Fn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ir.await()}clearCache(){this.cache.clearAll()}};var Ta,jd=Symbol("clearAfterUnitTest"),ko=class extends ht{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ta]=()=>{this.defaultMessages={},this.cache=new $t.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,$t.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new $t.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...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(o){console.error(o)}}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}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(o=>(0,$t.delay)(0).then(()=>o()).catch(()=>null)))}};Ta=jd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ko{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ko{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ar=window.FluidTopicsI18nService,Pa=window.FluidTopicsCustomI18nService;var Ce=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},oe=class extends tt.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=()=>ir.get(),this.messageContexts=[],this.cache=new tt.CacheRegistry,this.cleanSessionDebouncer=new tt.Debouncer}render(){return ka.html`
|
|
14
14
|
<slot></slot>
|
|
15
|
-
`}update(e){var o,n,a,i,s;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>ar.addContext(c)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}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 updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};oe.elementDefinitions={};oe.styles=Ia;Ce([(0,ke.property)()],oe.prototype,"baseUrl",void 0);Ce([(0,ke.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);Ce([(0,ke.property)()],oe.prototype,"uiLocale",void 0);Ce([(0,tt.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);Ce([(0,tt.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"editorMode",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"noCustom",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);Ce([(0,ke.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);Ce([(0,ke.property)({type:Object})],oe.prototype,"apiProvider",void 0);Ce([(0,tt.jsonProperty)([])],oe.prototype,"messageContexts",void 0);Ce([(0,tt.jsonProperty)(void 0)],oe.prototype,"session",void 0);Ce([(0,ke.state)()],oe.prototype,"localesConfiguration",void 0);var kp=g(G());function Kd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!_o(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(!_o(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(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!_o(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function _o(t,e){try{return Kd(t,e)}catch{return!1}}function $o(t,e){return!_o(t,e)}var Zd=g(G(),1);var Do=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Qr=g(G(),1);var _a=g(G(),1);function $a(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,_a.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:$o,...e??{}})}var Bo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){a(c);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ba=g(_(),1);var Fo=window,qd=Fo.ShadowRoot&&(Fo.ShadyCSS===void 0||Fo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ou=Symbol();var Da=(t,e)=>{qd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=Fo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})};var Mo=class extends Ba.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Da(n,e.elementStyles),n}};var Uo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},za,Fa=Symbol("constructorPrototype"),Ma=Symbol("constructorName"),Wa=Symbol("exportpartsDebouncer"),Ua=Symbol("dynamicDependenciesLoaded"),Dt=class extends Mo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[za]=new Bo(5),this[Ma]=this.constructor.name,this[Fa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ma]&&Object.setPrototypeOf(this,this[Fa])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Ua]||(e[Ua]=!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 o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Wa].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,s,c;let f=b=>b!=null&&b.trim().length>0,p=e.filter(f).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let b of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(f).map(O=>O.trim()).forEach(O=>y.add(O))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(b=>p.map(S=>`${b}:${S}--${b}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};za=Wa;Uo([(0,Qr.property)()],Dt.prototype,"exportpartsPrefix",void 0);Uo([$a([])],Dt.prototype,"exportpartsPrefixes",void 0);Uo([(0,Qr.property)()],Dt.prototype,"customStylesheet",void 0);Uo([(0,Qr.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function Jr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ha,Va,Ga,eo=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),sr=Symbol("internalStores"),to=class extends Dt{constructor(){super(...arguments),this[Ha]=new Map,this[Va]=new Map,this[Ga]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[sr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[sr].get(e)}addStore(e,o){var n;o=(n=o??(Jr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[sr].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[sr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[sr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Bt].has(e.store):this[Bt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Bt].set(e,o.subscribe(()=>this.updateFromStores())),this[eo].set(e,[]),Jr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=c=>this[i](c);o.addEventListener(a.eventName,s),this[eo].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Bt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Bt].has(e)&&this[Bt].get(e)(),this[Bt].delete(e),(o=this[eo].get(e))===null||o===void 0||o.forEach(n=>n()),this[eo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ha=Bt,Va=sr,Ga=eo;to.reduxProperties=new Map;to.reduxReactiveProperties=new Set;to.reduxEventListeners=new Map;function qe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function St(t){return!!t&&!!t[X]}function rt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===op}(t)||Array.isArray(t)||!!t[Qa]||!!(!((e=t.constructor)===null||e===void 0)&&e[Qa])||Kn(t)||Zn(t))}function lr(t,e,o){o===void 0&&(o=!1),Ir(t)===0?(o?Object.keys:Lr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ir(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function Nr(t,e){return Ir(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yd(t,e){return Ir(t)===2?t.get(e):t[e]}function Ja(t,e,o){var n=Ir(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function es(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return tp&&t instanceof Map}function Zn(t){return rp&&t instanceof Set}function Ft(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=os(t);delete e[X];for(var o=Lr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Yn(t,e){return e===void 0&&(e=!1),Xn(t)||St(t)||!rt(t)||(Ir(t)>1&&(t.set=t.add=t.clear=t.delete=Xd),Object.freeze(t),e&&lr(t,function(o,n){return Yn(n,!0)},!0)),t}function Xd(){qe(2)}function Xn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function yt(t){var e=jn[t];return e||qe(18,t),e}function Qd(t,e){jn[t]||(jn[t]=e)}function Hn(){return oo}function Mn(t,e){e&&(yt("Patches"),t.u=[],t.s=[],t.v=e)}function zo(t){Vn(t),t.p.forEach(Jd),t.p=null}function Vn(t){t===oo&&(oo=t.l)}function ja(t){return oo={p:[],l:oo,h:t,m:!0,_:0}}function Jd(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Un(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||yt("ES5").S(e,t,n),n?(o[X].P&&(zo(e),qe(4)),rt(t)&&(t=Wo(e,t),e.l||Ho(e,t)),e.u&&yt("Patches").M(o[X].t,t,e.u,e.s)):t=Wo(e,o,[]),zo(e),e.u&&e.v(e.u,e.s),t!==rs?t:void 0}function Wo(t,e,o){if(Xn(e))return e;var n=e[X];if(!n)return lr(e,function(c,f){return Ka(t,n,e,c,f,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Ho(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=qn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),lr(i,function(c,f){return Ka(t,n,a,c,f,o,s)}),Ho(t,a,!1),o&&t.u&&yt("Patches").N(n,o,t.u,t.s)}return n.o}function Ka(t,e,o,n,a,i,s){if(St(a)){var c=Wo(t,a,i&&e&&e.i!==3&&!Nr(e.R,n)?i.concat(n):void 0);if(Ja(o,n,c),!St(c))return;t.m=!1}else s&&o.add(a);if(rt(a)&&!Xn(a)){if(!t.h.D&&t._<1)return;Wo(t,a),e&&e.A.l||Ho(t,a)}}function Ho(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Yn(e,o)}function zn(t,e){var o=t[X];return(o?Ft(o):t)[e]}function Za(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Mt(t){t.P||(t.P=!0,t.l&&Mt(t.l))}function Wn(t){t.o||(t.o=qn(t.t))}function Gn(t,e,o){var n=Kn(e)?yt("MapSet").F(e,o):Zn(e)?yt("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Hn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=c,p=no;s&&(f=[c],p=ro);var y=Proxy.revocable(f,p),h=y.revoke,b=y.proxy;return c.k=b,c.j=h,b}(e,o):yt("ES5").J(e,o);return(o?o.A:Hn()).p.push(n),n}function ep(t){return St(t)||qe(22,t),function e(o){if(!rt(o))return o;var n,a=o[X],i=Ir(o);if(a){if(!a.P&&(a.i<4||!yt("ES5").K(a)))return a.t;a.I=!0,n=qa(o,i),a.I=!1}else n=qa(o,i);return lr(n,function(s,c){a&&Yd(a.t,s)===c||Ja(n,s,e(c))}),i===3?new Set(n):n}(t)}function qa(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function ts(){function t(s,c){var f=i[s];return f?f.enumerable=c:i[s]=f={configurable:!0,enumerable:c,get:function(){var p=this[X];return no.get(p,s)},set:function(p){var y=this[X];no.set(y,s,p)}},f}function e(s){for(var c=s.length-1;c>=0;c--){var f=s[c][X];if(!f.P)switch(f.i){case 5:n(f)&&Mt(f);break;case 4:o(f)&&Mt(f)}}}function o(s){for(var c=s.t,f=s.k,p=Lr(f),y=p.length-1;y>=0;y--){var h=p[y];if(h!==X){var b=c[h];if(b===void 0&&!Nr(c,h))return!0;var S=f[h],v=S&&S[X];if(v?v.t!==b:!es(S,b))return!0}}var O=!!c[X];return p.length!==Lr(c).length+(O?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(c,c.length-1);if(f&&!f.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&qe(3,JSON.stringify(Ft(s)))}var i={};Qd("ES5",{J:function(s,c){var f=Array.isArray(s),p=function(h,b){if(h){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=os(b);delete O[X];for(var T=Lr(O),L=0;L<T.length;L++){var I=T[L];O[I]=t(I,h||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(f,s),y={i:f?5:4,A:c?c.A:Hn(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,X,{value:y,writable:!0}),p},S:function(s,c,f){f?St(c)&&c[X].A===s&&e(s.p):(s.u&&function p(y){if(y&&typeof y=="object"){var h=y[X];if(h){var b=h.t,S=h.k,v=h.R,O=h.i;if(O===4)lr(S,function(F){F!==X&&(b[F]!==void 0||Nr(b,F)?v[F]||p(S[F]):(v[F]=!0,Mt(h)))}),lr(b,function(F){S[F]!==void 0||Nr(S,F)||(v[F]=!1,Mt(h))});else if(O===5){if(n(h)&&(Mt(h),v.length=!0),S.length<b.length)for(var T=S.length;T<b.length;T++)v[T]=!1;else for(var L=b.length;L<S.length;L++)v[L]=!0;for(var I=Math.min(S.length,b.length),$=0;$<I;$++)S.hasOwnProperty($)||(v[$]=!0),v[$]===void 0&&p(S[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ya,oo,Qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",tp=typeof Map<"u",rp=typeof Set<"u",Xa=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",rs=Qn?Symbol.for("immer-nothing"):((Ya={})["immer-nothing"]=!0,Ya),Qa=Qn?Symbol.for("immer-draftable"):"__$immer_draftable",X=Qn?Symbol.for("immer-state"):"__$immer_state";var op=""+Object.prototype.constructor,Lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,os=Object.getOwnPropertyDescriptors||function(t){var e={};return Lr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},jn={},no={get:function(t,e){if(e===X)return t;var o=Ft(t);if(!Nr(o,e))return function(a,i,s){var c,f=Za(i,s);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!rt(n)?n:n===zn(t.t,e)?(Wn(t),t.o[e]=Gn(t.A.h,n,t)):n},has:function(t,e){return e in Ft(t)},ownKeys:function(t){return Reflect.ownKeys(Ft(t))},set:function(t,e,o){var n=Za(Ft(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=zn(Ft(t),e),i=a?.[X];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(es(o,a)&&(o!==void 0||Nr(t.t,e)))return!0;Wn(t),Mt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return zn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Wn(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ft(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qe(12)}},ro={};lr(no,function(t,e){ro[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ro.deleteProperty=function(t,e){return ro.set.call(this,t,e,void 0)},ro.set=function(t,e,o){return no.set.call(this,t[0],e,o,t[0])};var np=function(){function t(o){var n=this;this.O=Xa,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var f=n;return function(O){var T=this;O===void 0&&(O=c);for(var L=arguments.length,I=Array(L>1?L-1:0),$=1;$<L;$++)I[$-1]=arguments[$];return f.produce(O,function(F){var U;return(U=i).call.apply(U,[T,F].concat(I))})}}var p;if(typeof i!="function"&&qe(6),s!==void 0&&typeof s!="function"&&qe(7),rt(a)){var y=ja(n),h=Gn(n,a,void 0),b=!0;try{p=i(h),b=!1}finally{b?zo(y):Vn(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Mn(y,s),Un(O,y)},function(O){throw zo(y),O}):(Mn(y,s),Un(p,y))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===rs&&(p=void 0),n.D&&Yn(p,!0),s){var S=[],v=[];yt("Patches").M(a,p,S,v),s(S,v)}return p}qe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var y=arguments.length,h=Array(y>1?y-1:0),b=1;b<y;b++)h[b-1]=arguments[b];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(h))})};var s,c,f=n.produce(a,i,function(p,y){s=p,c=y});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,s,c]}):[f,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){rt(o)||qe(8),St(o)&&(o=ep(o));var n=ja(this),a=Gn(this,o,void 0);return a[X].C=!0,Vn(n),a},e.finishDraft=function(o,n){var a=o&&o[X],i=a.A;return Mn(i,n),Un(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Xa&&qe(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=yt("Patches").$;return St(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),ze=new np,ip=ze.produce,yu=ze.produceWithPatches.bind(ze),mu=ze.setAutoFreeze.bind(ze),gu=ze.setUseProxies.bind(ze),bu=ze.applyPatches.bind(ze),xu=ze.createDraft.bind(ze),vu=ze.finishDraft.bind(ze),Vo=ip;function Ut(t){"@babel/helpers - typeof";return Ut=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},Ut(t)}function Jn(t,e){if(Ut(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ei(t){var e=Jn(t,"string");return Ut(e)==="symbol"?e:String(e)}function ti(t,e,o){return e=ei(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ns(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Go(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ns(Object(o),!0).forEach(function(n){ti(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ns(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Ee(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 is=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ri=function(){return Math.random().toString(36).substring(7).split("").join(".")},jo={INIT:"@@redux/INIT"+ri(),REPLACE:"@@redux/REPLACE"+ri(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ri()}};function ap(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 oi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Ee(1));return o(oi)(t,e)}if(typeof t!="function")throw new Error(Ee(2));var a=t,i=e,s=[],c=s,f=!1;function p(){c===s&&(c=s.slice())}function y(){if(f)throw new Error(Ee(3));return i}function h(O){if(typeof O!="function")throw new Error(Ee(4));if(f)throw new Error(Ee(5));var T=!0;return p(),c.push(O),function(){if(T){if(f)throw new Error(Ee(6));T=!1,p();var I=c.indexOf(O);c.splice(I,1),s=null}}}function b(O){if(!ap(O))throw new Error(Ee(7));if(typeof O.type>"u")throw new Error(Ee(8));if(f)throw new Error(Ee(9));try{f=!0,i=a(i,O)}finally{f=!1}for(var T=s=c,L=0;L<T.length;L++){var I=T[L];I()}return O}function S(O){if(typeof O!="function")throw new Error(Ee(10));a=O,b({type:jo.REPLACE})}function v(){var O,T=h;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ee(11));function $(){I.next&&I.next(y())}$();var F=T($);return{unsubscribe:F}}},O[is]=function(){return this},O}return b({type:jo.INIT}),n={dispatch:b,subscribe:h,getState:y,replaceReducer:S},n[is]=v,n}function sp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:jo.INIT});if(typeof n>"u")throw new Error(Ee(12));if(typeof o(void 0,{type:jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function as(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{sp(o)}catch(f){c=f}return function(p,y){if(p===void 0&&(p={}),c)throw c;if(0)var h;for(var b=!1,S={},v=0;v<i.length;v++){var O=i[v],T=o[O],L=p[O],I=T(L,y);if(typeof I>"u"){var $=y&&y.type;throw new Error(Ee(14))}S[O]=I,b=b||I!==L}return b=b||i.length!==Object.keys(p).length,b?S:p}}function Tr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ss(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Ee(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(f){return f(s)});return i=Tr.apply(void 0,c)(a.dispatch),Go(Go({},a),{},{dispatch:i})}}}function ls(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var cs=ls();cs.withExtraArgument=ls;var ni=cs;var hs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),lp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(y){return f([p,y])}}function f(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(y){p=[6,y],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Pr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},cp=Object.defineProperty,dp=Object.defineProperties,pp=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,fp=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable,ps=function(t,e,o){return e in t?cp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},zt=function(t,e){for(var o in e||(e={}))fp.call(e,o)&&ps(t,o,e[o]);if(ds)for(var n=0,a=ds(e);n<a.length;n++){var o=a[n];up.call(e,o)&&ps(t,o,e[o])}return t},ii=function(t,e){return dp(t,pp(e))},hp=function(t,e,o){return new Promise(function(n,a){var i=function(f){try{c(o.next(f))}catch(p){a(p)}},s=function(f){try{c(o.throw(f))}catch(p){a(p)}},c=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};c((o=o.apply(t,e)).next())})};var yp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tr:Tr.apply(null,arguments)},Fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function mp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var gp=function(t){hs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pr([void 0],o.concat(this))))},e}(Array),bp=function(t){hs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pr([void 0],o.concat(this))))},e}(Array);function li(t){return rt(t)?Vo(t,function(){}):t}function xp(t){return typeof t=="boolean"}function vp(){return function(e){return Sp(e)}}function Sp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new gp;if(o&&(xp(o)?c.push(ni):c.push(ni.withExtraArgument(o.extraArgument))),0){if(a)var f;if(s)var p}return c}var ai=!0;function ys(t){var e=vp(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,f=c===void 0?!0:c,p=o.preloadedState,y=p===void 0?void 0:p,h=o.enhancers,b=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(mp(a))S=as(a);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 v=s;if(typeof v=="function"&&(v=v(e),!ai&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ai&&v.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ss.apply(void 0,v),T=Tr;f&&(T=yp(zt({trace:!ai},typeof f=="object"&&f)));var L=new bp(O),I=L;Array.isArray(b)?I=Pr([O],b):typeof b=="function"&&(I=b(L));var $=T.apply(void 0,I);return oi(S,y,$)}function Wt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ms(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Op(t){return typeof t=="function"}function Cp(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ms(e):[e,o,n],i=a[0],s=a[1],c=a[2],f;if(Op(t))f=function(){return li(t())};else{var p=li(t);f=function(){return p}}function y(h,b){h===void 0&&(h=f());var S=Pr([i[b.type]],s.filter(function(v){var O=v.matcher;return O(b)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(St(v)){var T=v,L=O(T,b);return L===void 0?v:L}else{if(rt(v))return Vo(v,function(I){return O(I,b)});var L=O(v,b);if(L===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return v},h)}return y.getInitialState=f,y}function Ep(t,e){return t+"/"+e}function gs(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:li(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(y){var h=n[y],b=Ep(e,y),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,i[y]=S,s[b]=S,c[y]=v?Wt(b,v):Wt(b)});function f(){var y=typeof t.extraReducers=="function"?ms(t.extraReducers):[t.extraReducers],h=y[0],b=h===void 0?{}:h,S=y[1],v=S===void 0?[]:S,O=y[2],T=O===void 0?void 0:O,L=zt(zt({},b),s);return Cp(o,function(I){for(var $ in L)I.addCase($,L[$]);for(var F=0,U=v;F<U.length;F++){var Pe=U[F];I.addMatcher(Pe.matcher,Pe.reducer)}T&&I.addDefaultCase(T)})}var p;return{name:e,reducer:function(y,h){return p||(p=f()),p(y,h)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var wp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ap=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=wp[Math.random()*64|0];return e},Rp=["name","message","stack","code"],si=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),fs=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Np=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Rp;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Wu=function(){function t(e,o,n){var a=Wt(e+"/fulfilled",function(y,h,b,S){return{payload:y,meta:ii(zt({},S||{}),{arg:b,requestId:h,requestStatus:"fulfilled"})}}),i=Wt(e+"/pending",function(y,h,b){return{payload:void 0,meta:ii(zt({},b||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(y,h,b,S,v){return{payload:S,error:(n&&n.serializeError||Np)(y||"Rejected"),meta:ii(zt({},v||{}),{arg:b,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),c=!1,f=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(h,b,S){var v=n?.idGenerator?n.idGenerator(y):Ap(),O=new f,T,L=!1;function I(F){T=F,O.abort()}var $=function(){return hp(this,null,function(){var F,U,Pe,ft,Re,ut,be;return lp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),ft=(F=n?.condition)==null?void 0:F.call(n,y,{getState:b,extra:S}),Ip(ft)?[4,ft]:[3,2];case 1:ft=m.sent(),m.label=2;case 2:if(ft===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,Re=new Promise(function(x,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:T||"Aborted"})})}),h(i(v,y,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:y},{getState:b,extra:S}))),[4,Promise.race([Re,Promise.resolve(o(y,{dispatch:h,getState:b,extra:S,requestId:v,signal:O.signal,abort:I,rejectWithValue:function(x,k){return new si(x,k)},fulfillWithValue:function(x,k){return new fs(x,k)}})).then(function(x){if(x instanceof si)throw x;return x instanceof fs?a(x.payload,v,y,x.meta):a(x,v,y)})])];case 3:return Pe=m.sent(),[3,5];case 4:return ut=m.sent(),Pe=ut instanceof si?s(null,v,y,ut.payload,ut.meta):s(ut,v,y),[3,5];case 5:return be=n&&!n.dispatchConditionRejection&&s.match(Pe)&&Pe.meta.condition,be||h(Pe),[2,Pe]}})})}();return Object.assign($,{abort:I,requestId:v,arg:y,unwrap:function(){return $.then(Lp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Lp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ip(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var bs="listener",xs="completed",vs="cancelled",Hu="task-"+vs,Vu="task-"+xs,Gu=bs+"-"+vs,ju=bs+"-"+xs;var ci="listenerMiddleware";var Ku=Wt(ci+"/add"),Zu=Wt(ci+"/removeAll"),qu=Wt(ci+"/remove");var us,Yu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(us||(us=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Tp=function(t){return function(e){setTimeout(e,t)}},Xu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Tp(10);ts();function Pp(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Ko=class extends Pp(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ss=class t extends Ko{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Jr(i))return i;if(a==null)return;let s=gs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=ys({reducer:(f,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...p.overwrites}:s.reducer(f,p)});return window.ftReduxStores[a.name]=new t(s,c)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Do;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,i,s)=>{let c=i,f=a[c];return f?(...p)=>{let y=f(...p.map(n));return this.reduxStore.dispatch(y),y}:p=>{this.setState({[c]:n(p)})}}})}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 Xo=g(R());var Zo=class extends ht{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var qo=class extends ht{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var _p="ft-user-assets",Yo=Xo.FtReduxStore.get({name:_p,initialState:{savedSearches:void 0,bookmarks:void 0}}),di=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new qo,this.savedSearchesService=new Zo,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Xo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Yo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Yo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Yo.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Yo.actions.bookmarks(o)}}},Os=new di;var pi=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new pi;var Cs=g(R()),fi=class{highlightHtml(e,o,n){(0,Cs.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new fi;var Es=g(R());var ui=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Es.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ui;var $p=g(R());(0,ws.customElement)("ft-app-context")(oe);var Qo=class extends ht{constructor(e){super(!0,e),this.sortObjectFields=(o,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[i])=>a.localeCompare(i)))}async launchSearch(e){let o={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((n,a)=>n.id.localeCompare(a.id))};return this.cache.get("search-"+this.hash(o),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let o={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(o),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}sortFilters(e){return e.map(o=>o.valueFilter==null?o:{...o,valueFilter:{...o.valueFilter,values:[...o.valueFilter.values].sort((n,a)=>n.localeCompare(a))}}).sort((o,n)=>o.key.localeCompare(n.key))}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ao=t=>t.request.virtualField===Ar.TITLE_ONLY&&t.request.scope===Rr.DOCUMENTS,Jo=class t extends Event{constructor(){super(t.eventName)}};Jo.eventName="search-context-clear-all-filters";var io=class t{static build(e,o){return new t(ca(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new We.Debouncer(10),this.searchDebouncer=new We.Debouncer(100),this.launchSearch=n=>this.searchDebouncer.run(()=>this.fetchSearchData(n??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=n=>({...n.request,facets:this.facetIds.map(a=>({id:a}))}),this.suggestDebouncer=new We.Debouncer(300),this.launchSuggest=n=>this.suggestDebouncer.run(()=>this.fetchSuggestData(n??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=n=>({input:n.liveQuery,metadataFilters:n.request.metadataFilters,sort:n.request.sort,contentLocale:n.request.contentLocale,scope:n.request.scope}),this.service=o??new Qo,this.service.cache.addEventListener("clear-cache",n=>{n.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,We.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,We.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var o;let n=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],a=this.store.getState().request.contentLocale;if(e!=a){if(n.length>0){let i=s=>n.some(c=>c.lang==s);i(e)||(e=i(a)?a:n[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setFilters(e){let o=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Ar.TITLE_ONLY),this.store.actions.setRequestScope(Rr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ar.EVERYWHERE),this.store.actions.setRequestScope(Rr.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return ao(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Jo)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,o){let n=this.facetIds.filter(a=>a!=e);o&&n.push(o),this.facetIds=n}get facetIds(){var e;let o=this.store.getState().request;return[...new Set([...o.facets.map(n=>n.id),...((e=o.metadataFilters)!==null&&e!==void 0?e:[]).map(n=>n.key)])]}set facetIds(e){let n=[...new Set(e)].map(a=>({id:a}));this.store.actions.setRequestFacets(n)}setFilter(e,o){this.setValueFilter(e,o)}setValueFilter(e,o){let n=this.store.getState().request.metadataFilters,a={key:e,valueFilter:{values:o,negative:!1}},i=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==a.key),a];this.setFilters(i)}setDateFilter(e,o){let n=this.store.getState().request.metadataFilters,a={key:e,dateFilter:{type:o}},i=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==a.key),a];this.setFilters(i)}removeDateFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(a=>!a.dateFilter),...o.filter(a=>a.dateFilter&&a.key!==e)];this.setFilters(n)}setRangeFilter(e,o,n){let a=this.store.getState().request.metadataFilters,i={key:e,rangeFilter:{from:o,to:n}},s=[...a.filter(c=>!c.rangeFilter),...a.filter(c=>c.rangeFilter&&c.key!==i.key),i];this.setFilters(s)}removeRangeFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var o,n,a;try{if((o=this.cancelableSearch)===null||o===void 0||o.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,We.cancelable)(this.service.launchSearch(e));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.results(i.results),this.store.actions.facets(i.facets),this.store.actions.spellcheck(i.spellcheck);else{let s=((n=this.store.getState().results)!==null&&n!==void 0?n:[]).concat(i.results);this.store.actions.results(s)}this.store.actions.paging(i.paging)}}catch(i){i instanceof We.CanceledPromiseError||(console.error(i),(a=this.errorHandler)===null||a===void 0||a.call(this,i))}}async fetchSuggestData(e){var o;try{(o=this.cancelableSuggest)===null||o===void 0||o.cancel(),this.cancelableSuggest=(0,We.cancelable)(this.service.launchSuggest(e));let n=await this.cancelableSuggest;this.store.actions.suggestResults(n.suggestions)}catch(n){!(n instanceof We.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var Dp=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},yi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hi=Symbol("registerInterval");function Bp(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hi]):this.dispatchEvent(new yi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=hi,Dp([(0,Rs.state)()],o.prototype,"stateManager",void 0),o}var Ht=class extends Bp(As.FtLitElementRedux){};var Wi=g(R());var xn=g(_()),Le=g(G()),Mc=g(Vt()),Zr=g(R());var Fs=g(R());var Ds=g(_()),ve=g(G()),Bs=g(Vt()),so=g(R());var _s=g(_()),le=g(R()),Ls=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorContent),E={color:Ls,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ls),opacityContentOnSurfacePressed:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:le.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Is=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorPrimary),Ts={color:Is,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Is)},Ps=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorSecondary),ks={color:Ps,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ps)},$s=_s.css`
|
|
15
|
+
`}update(e){var o,n,a,i,s;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>ar.addContext(c)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}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 updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};oe.elementDefinitions={};oe.styles=Ia;Ce([(0,ke.property)()],oe.prototype,"baseUrl",void 0);Ce([(0,ke.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);Ce([(0,ke.property)()],oe.prototype,"uiLocale",void 0);Ce([(0,tt.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);Ce([(0,tt.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"editorMode",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"noCustom",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);Ce([(0,ke.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);Ce([(0,ke.property)({type:Object})],oe.prototype,"apiProvider",void 0);Ce([(0,tt.jsonProperty)([])],oe.prototype,"messageContexts",void 0);Ce([(0,tt.jsonProperty)(void 0)],oe.prototype,"session",void 0);Ce([(0,ke.state)()],oe.prototype,"localesConfiguration",void 0);var kp=g(G());function Kd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!_o(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(!_o(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();let i=s=>Object.keys(s).filter(c=>s[c]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!_o(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function _o(t,e){try{return Kd(t,e)}catch{return!1}}function $o(t,e){return!_o(t,e)}var Zd=g(G(),1);var Do=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Qr=g(G(),1);var _a=g(G(),1);function $a(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,_a.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:$o,...e??{}})}var Bo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){a(c);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ba=g(_(),1);var Fo=window,qd=Fo.ShadowRoot&&(Fo.ShadyCSS===void 0||Fo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ou=Symbol();var Da=(t,e)=>{qd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=Fo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})};var Mo=class extends Ba.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Da(n,e.elementStyles),n}};var Uo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},za,Fa=Symbol("constructorPrototype"),Ma=Symbol("constructorName"),Wa=Symbol("exportpartsDebouncer"),Ua=Symbol("dynamicDependenciesLoaded"),Dt=class extends Mo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[za]=new Bo(5),this[Ma]=this.constructor.name,this[Fa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ma]&&Object.setPrototypeOf(this,this[Fa])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Ua]||(e[Ua]=!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 o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Wa].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,s,c;let f=b=>b!=null&&b.trim().length>0,p=e.filter(f).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let b of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(f).map(O=>O.trim()).forEach(O=>y.add(O))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(b=>p.map(S=>`${b}:${S}--${b}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};za=Wa;Uo([(0,Qr.property)()],Dt.prototype,"exportpartsPrefix",void 0);Uo([$a([])],Dt.prototype,"exportpartsPrefixes",void 0);Uo([(0,Qr.property)()],Dt.prototype,"customStylesheet",void 0);Uo([(0,Qr.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function Jr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ha,Va,Ga,eo=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),sr=Symbol("internalStores"),to=class extends Dt{constructor(){super(...arguments),this[Ha]=new Map,this[Va]=new Map,this[Ga]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[sr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[sr].get(e)}addStore(e,o){var n;o=(n=o??(Jr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[sr].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[sr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[sr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Bt].has(e.store):this[Bt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Bt].set(e,o.subscribe(()=>this.updateFromStores())),this[eo].set(e,[]),Jr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=c=>this[i](c);o.addEventListener(a.eventName,s),this[eo].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Bt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Bt].has(e)&&this[Bt].get(e)(),this[Bt].delete(e),(o=this[eo].get(e))===null||o===void 0||o.forEach(n=>n()),this[eo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ha=Bt,Va=sr,Ga=eo;to.reduxProperties=new Map;to.reduxReactiveProperties=new Set;to.reduxEventListeners=new Map;function qe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function St(t){return!!t&&!!t[X]}function rt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===op}(t)||Array.isArray(t)||!!t[Qa]||!!(!((e=t.constructor)===null||e===void 0)&&e[Qa])||Kn(t)||Zn(t))}function lr(t,e,o){o===void 0&&(o=!1),Ir(t)===0?(o?Object.keys:Lr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ir(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function Nr(t,e){return Ir(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yd(t,e){return Ir(t)===2?t.get(e):t[e]}function Ja(t,e,o){var n=Ir(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function es(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return tp&&t instanceof Map}function Zn(t){return rp&&t instanceof Set}function Ft(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=os(t);delete e[X];for(var o=Lr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Yn(t,e){return e===void 0&&(e=!1),Xn(t)||St(t)||!rt(t)||(Ir(t)>1&&(t.set=t.add=t.clear=t.delete=Xd),Object.freeze(t),e&&lr(t,function(o,n){return Yn(n,!0)},!0)),t}function Xd(){qe(2)}function Xn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function yt(t){var e=jn[t];return e||qe(18,t),e}function Qd(t,e){jn[t]||(jn[t]=e)}function Hn(){return oo}function Mn(t,e){e&&(yt("Patches"),t.u=[],t.s=[],t.v=e)}function zo(t){Vn(t),t.p.forEach(Jd),t.p=null}function Vn(t){t===oo&&(oo=t.l)}function ja(t){return oo={p:[],l:oo,h:t,m:!0,_:0}}function Jd(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Un(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||yt("ES5").S(e,t,n),n?(o[X].P&&(zo(e),qe(4)),rt(t)&&(t=Wo(e,t),e.l||Ho(e,t)),e.u&&yt("Patches").M(o[X].t,t,e.u,e.s)):t=Wo(e,o,[]),zo(e),e.u&&e.v(e.u,e.s),t!==rs?t:void 0}function Wo(t,e,o){if(Xn(e))return e;var n=e[X];if(!n)return lr(e,function(c,f){return Ka(t,n,e,c,f,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Ho(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=qn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),lr(i,function(c,f){return Ka(t,n,a,c,f,o,s)}),Ho(t,a,!1),o&&t.u&&yt("Patches").N(n,o,t.u,t.s)}return n.o}function Ka(t,e,o,n,a,i,s){if(St(a)){var c=Wo(t,a,i&&e&&e.i!==3&&!Nr(e.R,n)?i.concat(n):void 0);if(Ja(o,n,c),!St(c))return;t.m=!1}else s&&o.add(a);if(rt(a)&&!Xn(a)){if(!t.h.D&&t._<1)return;Wo(t,a),e&&e.A.l||Ho(t,a)}}function Ho(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Yn(e,o)}function zn(t,e){var o=t[X];return(o?Ft(o):t)[e]}function Za(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Mt(t){t.P||(t.P=!0,t.l&&Mt(t.l))}function Wn(t){t.o||(t.o=qn(t.t))}function Gn(t,e,o){var n=Kn(e)?yt("MapSet").F(e,o):Zn(e)?yt("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Hn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=c,p=no;s&&(f=[c],p=ro);var y=Proxy.revocable(f,p),h=y.revoke,b=y.proxy;return c.k=b,c.j=h,b}(e,o):yt("ES5").J(e,o);return(o?o.A:Hn()).p.push(n),n}function ep(t){return St(t)||qe(22,t),function e(o){if(!rt(o))return o;var n,a=o[X],i=Ir(o);if(a){if(!a.P&&(a.i<4||!yt("ES5").K(a)))return a.t;a.I=!0,n=qa(o,i),a.I=!1}else n=qa(o,i);return lr(n,function(s,c){a&&Yd(a.t,s)===c||Ja(n,s,e(c))}),i===3?new Set(n):n}(t)}function qa(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function ts(){function t(s,c){var f=i[s];return f?f.enumerable=c:i[s]=f={configurable:!0,enumerable:c,get:function(){var p=this[X];return no.get(p,s)},set:function(p){var y=this[X];no.set(y,s,p)}},f}function e(s){for(var c=s.length-1;c>=0;c--){var f=s[c][X];if(!f.P)switch(f.i){case 5:n(f)&&Mt(f);break;case 4:o(f)&&Mt(f)}}}function o(s){for(var c=s.t,f=s.k,p=Lr(f),y=p.length-1;y>=0;y--){var h=p[y];if(h!==X){var b=c[h];if(b===void 0&&!Nr(c,h))return!0;var S=f[h],v=S&&S[X];if(v?v.t!==b:!es(S,b))return!0}}var O=!!c[X];return p.length!==Lr(c).length+(O?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(c,c.length-1);if(f&&!f.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&qe(3,JSON.stringify(Ft(s)))}var i={};Qd("ES5",{J:function(s,c){var f=Array.isArray(s),p=function(h,b){if(h){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=os(b);delete O[X];for(var T=Lr(O),L=0;L<T.length;L++){var I=T[L];O[I]=t(I,h||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(f,s),y={i:f?5:4,A:c?c.A:Hn(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,X,{value:y,writable:!0}),p},S:function(s,c,f){f?St(c)&&c[X].A===s&&e(s.p):(s.u&&function p(y){if(y&&typeof y=="object"){var h=y[X];if(h){var b=h.t,S=h.k,v=h.R,O=h.i;if(O===4)lr(S,function(F){F!==X&&(b[F]!==void 0||Nr(b,F)?v[F]||p(S[F]):(v[F]=!0,Mt(h)))}),lr(b,function(F){S[F]!==void 0||Nr(S,F)||(v[F]=!1,Mt(h))});else if(O===5){if(n(h)&&(Mt(h),v.length=!0),S.length<b.length)for(var T=S.length;T<b.length;T++)v[T]=!1;else for(var L=b.length;L<S.length;L++)v[L]=!0;for(var I=Math.min(S.length,b.length),$=0;$<I;$++)S.hasOwnProperty($)||(v[$]=!0),v[$]===void 0&&p(S[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ya,oo,Qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",tp=typeof Map<"u",rp=typeof Set<"u",Xa=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",rs=Qn?Symbol.for("immer-nothing"):((Ya={})["immer-nothing"]=!0,Ya),Qa=Qn?Symbol.for("immer-draftable"):"__$immer_draftable",X=Qn?Symbol.for("immer-state"):"__$immer_state";var op=""+Object.prototype.constructor,Lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,os=Object.getOwnPropertyDescriptors||function(t){var e={};return Lr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},jn={},no={get:function(t,e){if(e===X)return t;var o=Ft(t);if(!Nr(o,e))return function(a,i,s){var c,f=Za(i,s);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!rt(n)?n:n===zn(t.t,e)?(Wn(t),t.o[e]=Gn(t.A.h,n,t)):n},has:function(t,e){return e in Ft(t)},ownKeys:function(t){return Reflect.ownKeys(Ft(t))},set:function(t,e,o){var n=Za(Ft(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=zn(Ft(t),e),i=a?.[X];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(es(o,a)&&(o!==void 0||Nr(t.t,e)))return!0;Wn(t),Mt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return zn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Wn(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ft(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qe(12)}},ro={};lr(no,function(t,e){ro[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ro.deleteProperty=function(t,e){return ro.set.call(this,t,e,void 0)},ro.set=function(t,e,o){return no.set.call(this,t[0],e,o,t[0])};var np=function(){function t(o){var n=this;this.O=Xa,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var f=n;return function(O){var T=this;O===void 0&&(O=c);for(var L=arguments.length,I=Array(L>1?L-1:0),$=1;$<L;$++)I[$-1]=arguments[$];return f.produce(O,function(F){var U;return(U=i).call.apply(U,[T,F].concat(I))})}}var p;if(typeof i!="function"&&qe(6),s!==void 0&&typeof s!="function"&&qe(7),rt(a)){var y=ja(n),h=Gn(n,a,void 0),b=!0;try{p=i(h),b=!1}finally{b?zo(y):Vn(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Mn(y,s),Un(O,y)},function(O){throw zo(y),O}):(Mn(y,s),Un(p,y))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===rs&&(p=void 0),n.D&&Yn(p,!0),s){var S=[],v=[];yt("Patches").M(a,p,S,v),s(S,v)}return p}qe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var y=arguments.length,h=Array(y>1?y-1:0),b=1;b<y;b++)h[b-1]=arguments[b];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(h))})};var s,c,f=n.produce(a,i,function(p,y){s=p,c=y});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,s,c]}):[f,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){rt(o)||qe(8),St(o)&&(o=ep(o));var n=ja(this),a=Gn(this,o,void 0);return a[X].C=!0,Vn(n),a},e.finishDraft=function(o,n){var a=o&&o[X],i=a.A;return Mn(i,n),Un(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Xa&&qe(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=yt("Patches").$;return St(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),ze=new np,ip=ze.produce,yu=ze.produceWithPatches.bind(ze),mu=ze.setAutoFreeze.bind(ze),gu=ze.setUseProxies.bind(ze),bu=ze.applyPatches.bind(ze),xu=ze.createDraft.bind(ze),vu=ze.finishDraft.bind(ze),Vo=ip;function Ut(t){"@babel/helpers - typeof";return Ut=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},Ut(t)}function Jn(t,e){if(Ut(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ei(t){var e=Jn(t,"string");return Ut(e)==="symbol"?e:String(e)}function ti(t,e,o){return e=ei(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ns(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Go(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ns(Object(o),!0).forEach(function(n){ti(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ns(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Ee(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 is=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ri=function(){return Math.random().toString(36).substring(7).split("").join(".")},jo={INIT:"@@redux/INIT"+ri(),REPLACE:"@@redux/REPLACE"+ri(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ri()}};function ap(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 oi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Ee(1));return o(oi)(t,e)}if(typeof t!="function")throw new Error(Ee(2));var a=t,i=e,s=[],c=s,f=!1;function p(){c===s&&(c=s.slice())}function y(){if(f)throw new Error(Ee(3));return i}function h(O){if(typeof O!="function")throw new Error(Ee(4));if(f)throw new Error(Ee(5));var T=!0;return p(),c.push(O),function(){if(T){if(f)throw new Error(Ee(6));T=!1,p();var I=c.indexOf(O);c.splice(I,1),s=null}}}function b(O){if(!ap(O))throw new Error(Ee(7));if(typeof O.type>"u")throw new Error(Ee(8));if(f)throw new Error(Ee(9));try{f=!0,i=a(i,O)}finally{f=!1}for(var T=s=c,L=0;L<T.length;L++){var I=T[L];I()}return O}function S(O){if(typeof O!="function")throw new Error(Ee(10));a=O,b({type:jo.REPLACE})}function v(){var O,T=h;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ee(11));function $(){I.next&&I.next(y())}$();var F=T($);return{unsubscribe:F}}},O[is]=function(){return this},O}return b({type:jo.INIT}),n={dispatch:b,subscribe:h,getState:y,replaceReducer:S},n[is]=v,n}function sp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:jo.INIT});if(typeof n>"u")throw new Error(Ee(12));if(typeof o(void 0,{type:jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function as(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{sp(o)}catch(f){c=f}return function(p,y){if(p===void 0&&(p={}),c)throw c;if(0)var h;for(var b=!1,S={},v=0;v<i.length;v++){var O=i[v],T=o[O],L=p[O],I=T(L,y);if(typeof I>"u"){var $=y&&y.type;throw new Error(Ee(14))}S[O]=I,b=b||I!==L}return b=b||i.length!==Object.keys(p).length,b?S:p}}function Tr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ss(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Ee(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(f){return f(s)});return i=Tr.apply(void 0,c)(a.dispatch),Go(Go({},a),{},{dispatch:i})}}}function ls(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var cs=ls();cs.withExtraArgument=ls;var ni=cs;var hs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),lp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(y){return f([p,y])}}function f(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(y){p=[6,y],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Pr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},cp=Object.defineProperty,dp=Object.defineProperties,pp=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,fp=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable,ps=function(t,e,o){return e in t?cp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},zt=function(t,e){for(var o in e||(e={}))fp.call(e,o)&&ps(t,o,e[o]);if(ds)for(var n=0,a=ds(e);n<a.length;n++){var o=a[n];up.call(e,o)&&ps(t,o,e[o])}return t},ii=function(t,e){return dp(t,pp(e))},hp=function(t,e,o){return new Promise(function(n,a){var i=function(f){try{c(o.next(f))}catch(p){a(p)}},s=function(f){try{c(o.throw(f))}catch(p){a(p)}},c=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};c((o=o.apply(t,e)).next())})};var yp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tr:Tr.apply(null,arguments)},Fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function mp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var gp=function(t){hs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pr([void 0],o.concat(this))))},e}(Array),bp=function(t){hs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pr([void 0],o.concat(this))))},e}(Array);function li(t){return rt(t)?Vo(t,function(){}):t}function xp(t){return typeof t=="boolean"}function vp(){return function(e){return Sp(e)}}function Sp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new gp;if(o&&(xp(o)?c.push(ni):c.push(ni.withExtraArgument(o.extraArgument))),0){if(a)var f;if(s)var p}return c}var ai=!0;function ys(t){var e=vp(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,f=c===void 0?!0:c,p=o.preloadedState,y=p===void 0?void 0:p,h=o.enhancers,b=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(mp(a))S=as(a);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 v=s;if(typeof v=="function"&&(v=v(e),!ai&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ai&&v.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ss.apply(void 0,v),T=Tr;f&&(T=yp(zt({trace:!ai},typeof f=="object"&&f)));var L=new bp(O),I=L;Array.isArray(b)?I=Pr([O],b):typeof b=="function"&&(I=b(L));var $=T.apply(void 0,I);return oi(S,y,$)}function Wt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ms(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Op(t){return typeof t=="function"}function Cp(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ms(e):[e,o,n],i=a[0],s=a[1],c=a[2],f;if(Op(t))f=function(){return li(t())};else{var p=li(t);f=function(){return p}}function y(h,b){h===void 0&&(h=f());var S=Pr([i[b.type]],s.filter(function(v){var O=v.matcher;return O(b)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(St(v)){var T=v,L=O(T,b);return L===void 0?v:L}else{if(rt(v))return Vo(v,function(I){return O(I,b)});var L=O(v,b);if(L===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return v},h)}return y.getInitialState=f,y}function Ep(t,e){return t+"/"+e}function gs(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:li(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(y){var h=n[y],b=Ep(e,y),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,i[y]=S,s[b]=S,c[y]=v?Wt(b,v):Wt(b)});function f(){var y=typeof t.extraReducers=="function"?ms(t.extraReducers):[t.extraReducers],h=y[0],b=h===void 0?{}:h,S=y[1],v=S===void 0?[]:S,O=y[2],T=O===void 0?void 0:O,L=zt(zt({},b),s);return Cp(o,function(I){for(var $ in L)I.addCase($,L[$]);for(var F=0,U=v;F<U.length;F++){var Pe=U[F];I.addMatcher(Pe.matcher,Pe.reducer)}T&&I.addDefaultCase(T)})}var p;return{name:e,reducer:function(y,h){return p||(p=f()),p(y,h)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var wp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ap=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=wp[Math.random()*64|0];return e},Rp=["name","message","stack","code"],si=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),fs=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Np=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Rp;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Wu=function(){function t(e,o,n){var a=Wt(e+"/fulfilled",function(y,h,b,S){return{payload:y,meta:ii(zt({},S||{}),{arg:b,requestId:h,requestStatus:"fulfilled"})}}),i=Wt(e+"/pending",function(y,h,b){return{payload:void 0,meta:ii(zt({},b||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(y,h,b,S,v){return{payload:S,error:(n&&n.serializeError||Np)(y||"Rejected"),meta:ii(zt({},v||{}),{arg:b,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),c=!1,f=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(h,b,S){var v=n?.idGenerator?n.idGenerator(y):Ap(),O=new f,T,L=!1;function I(F){T=F,O.abort()}var $=function(){return hp(this,null,function(){var F,U,Pe,ft,Re,ut,be;return lp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),ft=(F=n?.condition)==null?void 0:F.call(n,y,{getState:b,extra:S}),Ip(ft)?[4,ft]:[3,2];case 1:ft=m.sent(),m.label=2;case 2:if(ft===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,Re=new Promise(function(x,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:T||"Aborted"})})}),h(i(v,y,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:y},{getState:b,extra:S}))),[4,Promise.race([Re,Promise.resolve(o(y,{dispatch:h,getState:b,extra:S,requestId:v,signal:O.signal,abort:I,rejectWithValue:function(x,k){return new si(x,k)},fulfillWithValue:function(x,k){return new fs(x,k)}})).then(function(x){if(x instanceof si)throw x;return x instanceof fs?a(x.payload,v,y,x.meta):a(x,v,y)})])];case 3:return Pe=m.sent(),[3,5];case 4:return ut=m.sent(),Pe=ut instanceof si?s(null,v,y,ut.payload,ut.meta):s(ut,v,y),[3,5];case 5:return be=n&&!n.dispatchConditionRejection&&s.match(Pe)&&Pe.meta.condition,be||h(Pe),[2,Pe]}})})}();return Object.assign($,{abort:I,requestId:v,arg:y,unwrap:function(){return $.then(Lp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Lp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ip(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var bs="listener",xs="completed",vs="cancelled",Hu="task-"+vs,Vu="task-"+xs,Gu=bs+"-"+vs,ju=bs+"-"+xs;var ci="listenerMiddleware";var Ku=Wt(ci+"/add"),Zu=Wt(ci+"/removeAll"),qu=Wt(ci+"/remove");var us,Yu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(us||(us=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Tp=function(t){return function(e){setTimeout(e,t)}},Xu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Tp(10);ts();function Pp(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Ko=class extends Pp(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ss=class t extends Ko{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Jr(i))return i;if(a==null)return;let s=gs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=ys({reducer:(f,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...p.overwrites}:s.reducer(f,p)});return window.ftReduxStores[a.name]=new t(s,c)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Do;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,i,s)=>{let c=i,f=a[c];return f?(...p)=>{let y=f(...p.map(n));return this.reduxStore.dispatch(y),y}:p=>{this.setState({[c]:n(p)})}}})}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 Xo=g(R());var Zo=class extends ht{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var qo=class extends ht{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var _p="ft-user-assets",Yo=Xo.FtReduxStore.get({name:_p,initialState:{savedSearches:void 0,bookmarks:void 0}}),di=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new qo,this.savedSearchesService=new Zo,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Xo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Yo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Yo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Yo.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Yo.actions.bookmarks(o)}}},Os=new di;var pi=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new pi;var Cs=g(R()),fi=class{highlightHtml(e,o,n){(0,Cs.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new fi;var Es=g(R());var ui=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Es.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ui;var $p=g(R());(0,ws.customElement)("ft-app-context")(oe);var Qo=class extends ht{constructor(e){super(!0,e),this.sortObjectFields=(o,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[i])=>a.localeCompare(i)))}async launchSearch(e){let o={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((n,a)=>n.id.localeCompare(a.id))};return this.cache.get("search-"+this.hash(o),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let o={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(o),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}sortFilters(e){return e.map(o=>o.valueFilter==null?o:{...o,valueFilter:{...o.valueFilter,values:[...o.valueFilter.values].sort((n,a)=>n.localeCompare(a))}}).sort((o,n)=>o.key.localeCompare(n.key))}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ao=t=>t.request.virtualField===Ar.TITLE_ONLY&&t.request.scope===Rr.DOCUMENTS,Jo=class t extends Event{constructor(){super(t.eventName)}};Jo.eventName="search-context-clear-all-filters";var io=class t{static build(e,o){return new t(ca(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new We.Debouncer(10),this.searchDebouncer=new We.Debouncer(100),this.launchSearch=n=>this.searchDebouncer.run(()=>this.fetchSearchData(n??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=n=>({...n.request,facets:this.facetIds.map(a=>({id:a}))}),this.suggestDebouncer=new We.Debouncer(300),this.launchSuggest=n=>this.suggestDebouncer.run(()=>this.fetchSuggestData(n??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=n=>({input:n.liveQuery,metadataFilters:n.request.metadataFilters,sort:n.request.sort,contentLocale:n.request.contentLocale,scope:n.request.scope}),this.service=o??new Qo,this.service.cache.addEventListener("clear-cache",n=>{n.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,We.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,We.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var o;let n=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],a=this.store.getState().request.contentLocale;if(e!=a){if(n.length>0){let i=s=>n.some(c=>c.lang==s);i(e)||(e=i(a)?a:n[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setFilters(e){let o=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Ar.TITLE_ONLY),this.store.actions.setRequestScope(Rr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ar.EVERYWHERE),this.store.actions.setRequestScope(Rr.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return ao(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Jo)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,o){let n=this.facetIds.filter(a=>a!=e);o&&n.push(o),this.facetIds=n}get facetIds(){var e;let o=this.store.getState().request;return[...new Set([...o.facets.map(n=>n.id),...((e=o.metadataFilters)!==null&&e!==void 0?e:[]).map(n=>n.key)])]}set facetIds(e){let n=[...new Set(e)].map(a=>({id:a}));this.store.actions.setRequestFacets(n)}setFilter(e,o){this.setValueFilter(e,o)}setValueFilter(e,o){let n=this.store.getState().request.metadataFilters,a={key:e,valueFilter:{values:o,negative:!1}},i=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==a.key),a];this.setFilters(i)}setDateFilter(e,o){let n=this.store.getState().request.metadataFilters,a={key:e,dateFilter:{type:o}},i=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==a.key),a];this.setFilters(i)}removeDateFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(a=>!a.dateFilter),...o.filter(a=>a.dateFilter&&a.key!==e)];this.setFilters(n)}setRangeFilter(e,o,n){let a=this.store.getState().request.metadataFilters,i={key:e,rangeFilter:{from:o,to:n}},s=[...a.filter(c=>!c.rangeFilter),...a.filter(c=>c.rangeFilter&&c.key!==i.key),i];this.setFilters(s)}removeRangeFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var o,n,a;try{if((o=this.cancelableSearch)===null||o===void 0||o.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,We.cancelable)(this.service.launchSearch(e));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.results(i.results),this.store.actions.facets(i.facets),this.store.actions.spellcheck(i.spellcheck);else{let s=((n=this.store.getState().results)!==null&&n!==void 0?n:[]).concat(i.results);this.store.actions.results(s)}this.store.actions.paging(i.paging)}}catch(i){i instanceof We.CanceledPromiseError||(console.error(i),(a=this.errorHandler)===null||a===void 0||a.call(this,i))}}async fetchSuggestData(e){var o;try{(o=this.cancelableSuggest)===null||o===void 0||o.cancel(),this.cancelableSuggest=(0,We.cancelable)(this.service.launchSuggest(e));let n=await this.cancelableSuggest;this.store.actions.suggestResults(n.suggestions)}catch(n){!(n instanceof We.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var Dp=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},yi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hi=Symbol("registerInterval");function Bp(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hi]):this.dispatchEvent(new yi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=hi,Dp([(0,Rs.state)()],o.prototype,"stateManager",void 0),o}var Ht=class extends Bp(As.FtLitElementRedux){};var Wi=g(R());var xn=g(_()),Le=g(G()),Mc=g(Vt()),Zr=g(R());var Fs=g(R());var Ds=g(_()),ve=g(G()),Bs=g(Vt()),so=g(R());var _s=g(_()),le=g(R()),Ls=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorContent),E={color:Ls,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ls),opacityContentOnSurfacePressed:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:le.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Is=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorPrimary),Ts={color:Is,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Is)},Ps=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorSecondary),ks={color:Ps,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ps)},$s=_s.css`
|
|
16
16
|
:host {
|
|
17
17
|
display: contents;
|
|
18
18
|
}
|