@fluid-topics/ft-search-type 1.1.100 → 1.1.101
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.
|
@@ -1529,14 +1529,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1529
1529
|
`;var Uo=m(R());var Zl=m(R());var rl=m(D()),Ue=m(H()),je=m(R());var Qs=m(D());var Js=Qs.css`
|
|
1530
1530
|
`;var bo=m(R()),ad="ft-app-info",Cn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},sd={session:(t,e)=>{(0,bo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.eventBus.dispatchEvent(new Cn(e.payload)),0))}},I=bo.FtReduxStore.get({name:ad,reducers:sd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Ct=m(R());var En=m(R());var Vt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=I.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=I.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var et=class{constructor(e=!0,o){var n;this.overrideApi=o;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new En.CacheRegistry,this.cache=e?i.commonCache:new En.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Vt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Vt.await()}clearCache(){this.cache.clearAll()}};var el,ld=Symbol("clearAfterUnitTest"),xo=class extends et{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[el]=()=>{this.defaultMessages={},this.cache=new Ct.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.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 i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,Ct.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveMessage(e,o,...n){var i,a,s;e=e.toLowerCase(),this.fetchContext(e);let c=(a=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&a!==void 0?a:{};return new Ct.ParametrizedLabelResolver((s=this.defaultMessages[e])!==null&&s!==void 0?s:{},c).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 i;return(i=this.listeners[e])===null||i===void 0?void 0:i.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,Ct.delay)(0).then(()=>o()).catch(()=>null)))}};el=ld;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends xo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends xo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var hr=window.FluidTopicsI18nService,tl=window.FluidTopicsCustomI18nService;var xe=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},J=class extends je.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=()=>Vt.get(),this.messageContexts=[],this.cache=new je.CacheRegistry,this.cleanSessionDebouncer=new je.Debouncer}render(){return rl.html`
|
|
1531
1531
|
<slot></slot>
|
|
1532
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("availableUiLocales")&&I.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>hr.addContext(o)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};J.elementDefinitions={};J.styles=Js;xe([(0,Ue.property)()],J.prototype,"baseUrl",void 0);xe([(0,Ue.property)()],J.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Ue.property)()],J.prototype,"uiLocale",void 0);xe([(0,je.jsonProperty)(null)],J.prototype,"availableUiLocales",void 0);xe([(0,je.jsonProperty)(null)],J.prototype,"metadataConfiguration",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"editorMode",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"noCustom",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"withManualResources",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"navigatorOnline",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"forcedOffline",void 0);xe([(0,Ue.property)({type:Object})],J.prototype,"apiProvider",void 0);xe([(0,je.jsonProperty)([])],J.prototype,"messageContexts",void 0);xe([(0,je.jsonProperty)(void 0)],J.prototype,"session",void 0);var Zd=m(H());function cd(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,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!vo(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(!vo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!vo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function vo(t,e){try{return cd(t,e)}catch{return!1}}function wn(t,e){return!vo(t,e)}var dd=m(H(),1);var So=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 Ur=m(H(),1);var ol=m(H(),1);function nl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ol.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:wn,...e??{}})}var Oo=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 i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var al=m(D(),1);var Co=window,pd=Co.ShadowRoot&&(Co.ShadyCSS===void 0||Co.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ib=Symbol();var il=(t,e)=>{pd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=Co.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var Eo=class extends al.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return il(n,e.elementStyles),n}};var wo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},dl,sl=Symbol("constructorPrototype"),ll=Symbol("constructorName"),pl=Symbol("exportpartsDebouncer"),cl=Symbol("dynamicDependenciesLoaded"),Et=class extends Eo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[dl]=new Oo(5),this[ll]=this.constructor.name,this[sl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ll]&&Object.setPrototypeOf(this,this[sl])}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[cl]||(e[cl]=!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,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,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[pl].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,i,a,s,c;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...b).filter(p).map(S=>S.trim()).forEach(S=>u.add(S))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(g=>f.map(x=>`${g}:${x}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};dl=pl;wo([(0,Ur.property)()],Et.prototype,"exportpartsPrefix",void 0);wo([nl([])],Et.prototype,"exportpartsPrefixes",void 0);wo([(0,Ur.property)()],Et.prototype,"customStylesheet",void 0);wo([(0,Ur.state)()],Et.prototype,"useAdoptedStyleSheets",void 0);function zr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var fl,ul,hl,Ao=Symbol("internalReduxEventsUnsubscribers"),wt=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores"),Fr=class extends Et{constructor(){super(...arguments),this[fl]=new Map,this[ul]=new Map,this[hl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[jt].get(e)}addStore(e,o){var n;o=(n=o??(zr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[jt].delete(o)}setupStore(e,o){this[jt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jt].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 i=this.getStore(e.store);i&&(e.store?this[wt].has(e.store):this[wt].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[wt].set(e,o.subscribe(()=>this.updateFromStores())),zr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=c=>this[a](c);o.eventBus.addEventListener(i.eventName,s),this[Ao].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[wt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Ao].forEach(e=>e()),this[Ao]=[]}unsubscribeFromStore(e){this[wt].has(e)&&this[wt].get(e)(),this[wt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};fl=wt,ul=jt,hl=Ao;Fr.reduxProperties=new Map;Fr.reduxReactiveProperties=new Set;Fr.reduxEventListeners=new Map;function ze(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 i,a;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 mt(t){return!!t&&!!t[q]}function Ge(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===xd}(t)||Array.isArray(t)||!!t[Sl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Sl])||_n(t)||Dn(t))}function Gt(t,e,o){o===void 0&&(o=!1),gr(t)===0?(o?Object.keys:yr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function gr(t){var e=t[q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:Dn(t)?3:0}function mr(t,e){return gr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fd(t,e){return gr(t)===2?t.get(e):t[e]}function Ol(t,e,o){var n=gr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Cl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _n(t){return gd&&t instanceof Map}function Dn(t){return bd&&t instanceof Set}function At(t){return t.o||t.t}function $n(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Al(t);delete e[q];for(var o=yr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Bn(t,e){return e===void 0&&(e=!1),Mn(t)||mt(t)||!Ge(t)||(gr(t)>1&&(t.set=t.add=t.clear=t.delete=ud),Object.freeze(t),e&&Gt(t,function(o,n){return Bn(n,!0)},!0)),t}function ud(){ze(2)}function Mn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function tt(t){var e=kn[t];return e||ze(18,t),e}function hd(t,e){kn[t]||(kn[t]=e)}function Pn(){return Hr}function An(t,e){e&&(tt("Patches"),t.u=[],t.s=[],t.v=e)}function Ro(t){Tn(t),t.p.forEach(md),t.p=null}function Tn(t){t===Hr&&(Hr=t.l)}function ml(t){return Hr={p:[],l:Hr,h:t,m:!0,_:0}}function md(t){var e=t[q];e.i===0||e.i===1?e.j():e.g=!0}function Rn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||tt("ES5").S(e,t,n),n?(o[q].P&&(Ro(e),ze(4)),Ge(t)&&(t=No(e,t),e.l||Lo(e,t)),e.u&&tt("Patches").M(o[q].t,t,e.u,e.s)):t=No(e,o,[]),Ro(e),e.u&&e.v(e.u,e.s),t!==wl?t:void 0}function No(t,e,o){if(Mn(e))return e;var n=e[q];if(!n)return Gt(e,function(c,p){return yl(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Lo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=$n(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Gt(a,function(c,p){return yl(t,n,i,c,p,o,s)}),Lo(t,i,!1),o&&t.u&&tt("Patches").N(n,o,t.u,t.s)}return n.o}function yl(t,e,o,n,i,a,s){if(mt(i)){var c=No(t,i,a&&e&&e.i!==3&&!mr(e.R,n)?a.concat(n):void 0);if(Ol(o,n,c),!mt(c))return;t.m=!1}else s&&o.add(i);if(Ge(i)&&!Mn(i)){if(!t.h.D&&t._<1)return;No(t,i),e&&e.A.l||Lo(t,i)}}function Lo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Bn(e,o)}function Nn(t,e){var o=t[q];return(o?At(o):t)[e]}function gl(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 Rt(t){t.P||(t.P=!0,t.l&&Rt(t.l))}function Ln(t){t.o||(t.o=$n(t.t))}function In(t,e,o){var n=_n(e)?tt("MapSet").F(e,o):Dn(e)?tt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Pn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,f=Vr;s&&(p=[c],f=Wr);var u=Proxy.revocable(p,f),y=u.revoke,g=u.proxy;return c.k=g,c.j=y,g}(e,o):tt("ES5").J(e,o);return(o?o.A:Pn()).p.push(n),n}function yd(t){return mt(t)||ze(22,t),function e(o){if(!Ge(o))return o;var n,i=o[q],a=gr(o);if(i){if(!i.P&&(i.i<4||!tt("ES5").K(i)))return i.t;i.I=!0,n=bl(o,a),i.I=!1}else n=bl(o,a);return Gt(n,function(s,c){i&&fd(i.t,s)===c||Ol(n,s,e(c))}),a===3?new Set(n):n}(t)}function bl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return $n(t)}function El(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var f=this[q];return Vr.get(f,s)},set:function(f){var u=this[q];Vr.set(u,s,f)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][q];if(!p.P)switch(p.i){case 5:n(p)&&Rt(p);break;case 4:o(p)&&Rt(p)}}}function o(s){for(var c=s.t,p=s.k,f=yr(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==q){var g=c[y];if(g===void 0&&!mr(c,y))return!0;var x=p[y],b=x&&x[q];if(b?b.t!==g:!Cl(x,g))return!0}}var S=!!c[q];return f.length!==yr(c).length+(S?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&ze(3,JSON.stringify(At(s)))}var a={};hd("ES5",{J:function(s,c){var p=Array.isArray(s),f=function(y,g){if(y){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var S=Al(g);delete S[q];for(var L=yr(S),w=0;w<L.length;w++){var A=L[w];S[A]=t(A,y||!!S[A].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),u={i:p?5:4,A:c?c.A:Pn(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,q,{value:u,writable:!0}),f},S:function(s,c,p){p?mt(c)&&c[q].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[q];if(y){var g=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Gt(x,function(T){T!==q&&(g[T]!==void 0||mr(g,T)?b[T]||f(x[T]):(b[T]=!0,Rt(y)))}),Gt(g,function(T){x[T]!==void 0||mr(x,T)||(b[T]=!1,Rt(y))});else if(S===5){if(n(y)&&(Rt(y),b.length=!0),x.length<g.length)for(var L=x.length;L<g.length;L++)b[L]=!1;else for(var w=g.length;w<x.length;w++)b[w]=!0;for(var A=Math.min(x.length,g.length),k=0;k<A;k++)x.hasOwnProperty(k)||(b[k]=!0),b[k]===void 0&&f(x[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var xl,Hr,Un=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gd=typeof Map<"u",bd=typeof Set<"u",vl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wl=Un?Symbol.for("immer-nothing"):((xl={})["immer-nothing"]=!0,xl),Sl=Un?Symbol.for("immer-draftable"):"__$immer_draftable",q=Un?Symbol.for("immer-state"):"__$immer_state";var xd=""+Object.prototype.constructor,yr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Al=Object.getOwnPropertyDescriptors||function(t){var e={};return yr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},kn={},Vr={get:function(t,e){if(e===q)return t;var o=At(t);if(!mr(o,e))return function(i,a,s){var c,p=gl(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Ge(n)?n:n===Nn(t.t,e)?(Ln(t),t.o[e]=In(t.A.h,n,t)):n},has:function(t,e){return e in At(t)},ownKeys:function(t){return Reflect.ownKeys(At(t))},set:function(t,e,o){var n=gl(At(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Nn(At(t),e),a=i?.[q];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Cl(o,i)&&(o!==void 0||mr(t.t,e)))return!0;Ln(t),Rt(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 Nn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ln(t),Rt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=At(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ze(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ze(12)}},Wr={};Gt(Vr,function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,o){return Vr.set.call(this,t[0],e,o,t[0])};var vd=function(){function t(o){var n=this;this.O=vl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(S){var L=this;S===void 0&&(S=c);for(var w=arguments.length,A=Array(w>1?w-1:0),k=1;k<w;k++)A[k-1]=arguments[k];return p.produce(S,function(T){var z;return(z=a).call.apply(z,[L,T].concat(A))})}}var f;if(typeof a!="function"&&ze(6),s!==void 0&&typeof s!="function"&&ze(7),Ge(i)){var u=ml(n),y=In(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Ro(u):Tn(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return An(u,s),Rn(S,u)},function(S){throw Ro(u),S}):(An(u,s),Rn(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===wl&&(f=void 0),n.D&&Bn(f,!0),s){var x=[],b=[];tt("Patches").M(i,f,x,b),s(x,b)}return f}ze(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),g=1;g<u;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(x){return i.apply(void 0,[x].concat(y))})};var s,c,p=n.produce(i,a,function(f,u){s=f,c=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,c]}):[p,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){Ge(o)||ze(8),mt(o)&&(o=yd(o));var n=ml(this),i=In(this,o,void 0);return i[q].C=!0,Tn(n),i},e.finishDraft=function(o,n){var i=o&&o[q],a=i.A;return An(a,n),Rn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!vl&&ze(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=tt("Patches").$;return mt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),ke=new vd,Sd=ke.produce,Vb=ke.produceWithPatches.bind(ke),jb=ke.setAutoFreeze.bind(ke),Gb=ke.setUseProxies.bind(ke),Kb=ke.applyPatches.bind(ke),Zb=ke.createDraft.bind(ke),qb=ke.finishDraft.bind(ke),Po=Sd;function Nt(t){"@babel/helpers - typeof";return Nt=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},Nt(t)}function zn(t,e){if(Nt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Nt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fn(t){var e=zn(t,"string");return Nt(e)==="symbol"?e:String(e)}function Wn(t,e,o){return e=Fn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function To(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Rl(Object(o),!0).forEach(function(n){Wn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Rl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function fe(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 Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Hn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Io={INIT:"@@redux/INIT"+Hn(),REPLACE:"@@redux/REPLACE"+Hn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Hn()}};function Od(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 Vn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(Vn)(t,e)}if(typeof t!="function")throw new Error(fe(2));var i=t,a=e,s=[],c=s,p=!1;function f(){c===s&&(c=s.slice())}function u(){if(p)throw new Error(fe(3));return a}function y(S){if(typeof S!="function")throw new Error(fe(4));if(p)throw new Error(fe(5));var L=!0;return f(),c.push(S),function(){if(L){if(p)throw new Error(fe(6));L=!1,f();var A=c.indexOf(S);c.splice(A,1),s=null}}}function g(S){if(!Od(S))throw new Error(fe(7));if(typeof S.type>"u")throw new Error(fe(8));if(p)throw new Error(fe(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var L=s=c,w=0;w<L.length;w++){var A=L[w];A()}return S}function x(S){if(typeof S!="function")throw new Error(fe(10));i=S,g({type:Io.REPLACE})}function b(){var S,L=y;return S={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(fe(11));function k(){A.next&&A.next(u())}k();var T=L(k);return{unsubscribe:T}}},S[Nl]=function(){return this},S}return g({type:Io.INIT}),n={dispatch:g,subscribe:y,getState:u,replaceReducer:x},n[Nl]=b,n}function Cd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Io.INIT});if(typeof n>"u")throw new Error(fe(12));if(typeof o(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function Ll(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{Cd(o)}catch(p){c=p}return function(f,u){if(f===void 0&&(f={}),c)throw c;if(0)var y;for(var g=!1,x={},b=0;b<a.length;b++){var S=a[b],L=o[S],w=f[S],A=L(w,u);if(typeof A>"u"){var k=u&&u.type;throw new Error(fe(14))}x[S]=A,g=g||A!==w}return g=g||a.length!==Object.keys(f).length,g?x:f}}function br(){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,i){return function(){return n(i.apply(void 0,arguments))}})}function Pl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(fe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=br.apply(void 0,c)(i.dispatch),To(To({},i),{},{dispatch:a})}}}function Tl(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Il=Tl();Il.withExtraArgument=Tl;var jn=Il;var Bl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,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)}}(),Ed=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(u){return p([f,u])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(u){f=[6,u],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},xr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},wd=Object.defineProperty,Ad=Object.defineProperties,Rd=Object.getOwnPropertyDescriptors,kl=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Ld=Object.prototype.propertyIsEnumerable,_l=function(t,e,o){return e in t?wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Lt=function(t,e){for(var o in e||(e={}))Nd.call(e,o)&&_l(t,o,e[o]);if(kl)for(var n=0,i=kl(e);n<i.length;n++){var o=i[n];Ld.call(e,o)&&_l(t,o,e[o])}return t},Gn=function(t,e){return Ad(t,Rd(e))},Pd=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(f){i(f)}},s=function(p){try{c(o.throw(p))}catch(f){i(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Td=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?br:br.apply(null,arguments)},ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Id(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 kd=function(t){Bl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var 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,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array),_d=function(t){Bl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var 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,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array);function qn(t){return Ge(t)?Po(t,function(){}):t}function Dd(t){return typeof t=="boolean"}function $d(){return function(e){return Bd(e)}}function Bd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new kd;if(o&&(Dd(o)?c.push(jn):c.push(jn.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return c}var Kn=!0;function Ml(t){var e=$d(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,u=f===void 0?void 0:f,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof i=="function")x=i;else if(Id(i))x=Ll(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Kn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kn&&b.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Pl.apply(void 0,b),L=br;p&&(L=Td(Lt({trace:!Kn},typeof p=="object"&&p)));var w=new _d(S),A=w;Array.isArray(g)?A=xr([S],g):typeof g=="function"&&(A=g(w));var k=L.apply(void 0,A);return Vn(x,u,k)}function Pt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Lt(Lt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.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 Ul(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Md(t){return typeof t=="function"}function Ud(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ul(e):[e,o,n],a=i[0],s=i[1],c=i[2],p;if(Md(t))p=function(){return qn(t())};else{var f=qn(t);p=function(){return f}}function u(y,g){y===void 0&&(y=p());var x=xr([a[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[c]),x.reduce(function(b,S){if(S)if(mt(b)){var L=b,w=S(L,g);return w===void 0?b:w}else{if(Ge(b))return Po(b,function(A){return S(A,g)});var w=S(b,g);if(w===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return b},y)}return u.getInitialState=p,u}function zd(t,e){return t+"/"+e}function zl(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:qn(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(u){var y=n[u],g=zd(e,u),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,a[u]=x,s[g]=x,c[u]=b?Pt(g,b):Pt(g)});function p(){var u=typeof t.extraReducers=="function"?Ul(t.extraReducers):[t.extraReducers],y=u[0],g=y===void 0?{}:y,x=u[1],b=x===void 0?[]:x,S=u[2],L=S===void 0?void 0:S,w=Lt(Lt({},g),s);return Ud(o,function(A){for(var k in w)A.addCase(k,w[k]);for(var T=0,z=b;T<z.length;T++){var ve=z[T];A.addMatcher(ve.matcher,ve.reducer)}L&&A.addDefaultCase(L)})}var f;return{name:e,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Fd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Fd[Math.random()*64|0];return e},Hd=["name","message","stack","code"],Zn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Dl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Vd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Hd;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gx=function(){function t(e,o,n){var i=Pt(e+"/fulfilled",function(u,y,g,x){return{payload:u,meta:Gn(Lt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Pt(e+"/pending",function(u,y,g){return{payload:void 0,meta:Gn(Lt({},g||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=Pt(e+"/rejected",function(u,y,g,x,b){return{payload:x,error:(n&&n.serializeError||Vd)(u||"Rejected"),meta:Gn(Lt({},b||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(y,g,x){var b=n?.idGenerator?n.idGenerator(u):Wd(),S=new p,L,w=!1;function A(T){L=T,S.abort()}var k=function(){return Pd(this,null,function(){var T,z,ve,re,Or,_e,h;return Ed(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),re=(T=n?.condition)==null?void 0:T.call(n,u,{getState:g,extra:x}),Gd(re)?[4,re]:[3,2];case 1:re=v.sent(),v.label=2;case 2:if(re===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,Or=new Promise(function(P,G){return S.signal.addEventListener("abort",function(){return G({name:"AbortError",message:L||"Aborted"})})}),y(a(b,u,(z=n?.getPendingMeta)==null?void 0:z.call(n,{requestId:b,arg:u},{getState:g,extra:x}))),[4,Promise.race([Or,Promise.resolve(o(u,{dispatch:y,getState:g,extra:x,requestId:b,signal:S.signal,abort:A,rejectWithValue:function(P,G){return new Zn(P,G)},fulfillWithValue:function(P,G){return new Dl(P,G)}})).then(function(P){if(P instanceof Zn)throw P;return P instanceof Dl?i(P.payload,b,u,P.meta):i(P,b,u)})])];case 3:return ve=v.sent(),[3,5];case 4:return _e=v.sent(),ve=_e instanceof Zn?s(null,b,u,_e.payload,_e.meta):s(_e,b,u),[3,5];case 5:return h=n&&!n.dispatchConditionRejection&&s.match(ve)&&ve.meta.condition,h||y(ve),[2,ve]}})})}();return Object.assign(k,{abort:A,requestId:b,arg:u,unwrap:function(){return k.then(jd)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function jd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Fl="listener",Wl="completed",Hl="cancelled",bx="task-"+Hl,xx="task-"+Wl,vx=Fl+"-"+Hl,Sx=Fl+"-"+Wl;var Yn="listenerMiddleware";var Ox=Pt(Yn+"/add"),Cx=Pt(Yn+"/removeAll"),Ex=Pt(Yn+"/remove");var $l,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return($l||($l=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Kd=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kd(10);El();window.ftReduxStores||(window.ftReduxStores={});var Vl=class t{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(zr(a))return a;if(i==null)return;let s=zl({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=Ml({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new So,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]: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 $o=m(R());var ko=class extends et{async listMySearches(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var _o=class extends et{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",Do=$o.FtReduxStore.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Xn=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _o,this.savedSearchesService=new ko,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=I.getState();(0,$o.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(),Do.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Do.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Do.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;Do.actions.bookmarks(o)}}},jl=new Xn;var Qn=class{addCommand(e,o=!1){I.commands.add(e,o)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Qn;var Gl=m(R()),Jn=class{highlightHtml(e,o){(0,Gl.highlightHtml)(e,o)}};window.FluidTopicsHighlightHtmlService=new Jn;var Kl=m(R());var ei=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Kl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ei;(0,Zl.customElement)("ft-app-context")(J);var Yl=m(H()),Yd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ti=Symbol("i18nAttributes"),Bo=Symbol("i18nProperties"),jr=Symbol("i18nUnsubs");function zo(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?tl:hr}i18n(i,a,...s){var c;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let p=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...p)}onI18nUpdate(i){var a,s;(a=this[ti])===null||a===void 0||a.forEach((c,p)=>{var f;let u=this.getI18nAttributeValue(p);((f=u?.context)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(p,u,c)}),(s=this[Bo])===null||s===void 0||s.forEach((c,p)=>{c.context.toLowerCase()===i.toLowerCase()&&(this[p]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[ti])===null||a===void 0||a.forEach((c,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(i.has(p)||c.argsProvider!=null)&&(i.has(p)&&this.addI18nContext(f.context),this.updateI18nAttributeMessage(p,f,c))}),(s=this[Bo])===null||s===void 0||s.forEach((c,p)=>{c.argsProvider!=null&&(this[p]=this.i18n(c))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,c;super.connectedCallback(),new Set([...(a=(i=this[Bo])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[ti])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(p=>this.getI18nAttributeValue(p))].map(p=>p?.context)).forEach(p=>p&&this.addI18nMessages(p))}addI18nMessages(i,a){i=i.toLowerCase(),this[jr].has(i)||this[jr].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[jr].forEach(i=>i()),this[jr].clear()}}return e=jr,Yd([(0,Yl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var ql=class extends zo(Uo.FtLitElement){},Mo=class extends zo(Uo.FtLitElementRedux){};var Gr=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ke=class extends Mo{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Fo.nothing:Fo.html`
|
|
1532
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("availableUiLocales")&&I.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>hr.addContext(o)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};J.elementDefinitions={};J.styles=Js;xe([(0,Ue.property)()],J.prototype,"baseUrl",void 0);xe([(0,Ue.property)()],J.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Ue.property)()],J.prototype,"uiLocale",void 0);xe([(0,je.jsonProperty)(null)],J.prototype,"availableUiLocales",void 0);xe([(0,je.jsonProperty)(null)],J.prototype,"metadataConfiguration",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"editorMode",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"noCustom",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"withManualResources",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"navigatorOnline",void 0);xe([(0,Ue.property)({type:Boolean})],J.prototype,"forcedOffline",void 0);xe([(0,Ue.property)({type:Object})],J.prototype,"apiProvider",void 0);xe([(0,je.jsonProperty)([])],J.prototype,"messageContexts",void 0);xe([(0,je.jsonProperty)(void 0)],J.prototype,"session",void 0);var Zd=m(H());function cd(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,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!vo(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(!vo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!vo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function vo(t,e){try{return cd(t,e)}catch{return!1}}function wn(t,e){return!vo(t,e)}var dd=m(H(),1);var So=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 Ur=m(H(),1);var ol=m(H(),1);function nl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ol.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:wn,...e??{}})}var Oo=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 i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var al=m(D(),1);var Co=window,pd=Co.ShadowRoot&&(Co.ShadyCSS===void 0||Co.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ib=Symbol();var il=(t,e)=>{pd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=Co.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var Eo=class extends al.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return il(n,e.elementStyles),n}};var wo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},dl,sl=Symbol("constructorPrototype"),ll=Symbol("constructorName"),pl=Symbol("exportpartsDebouncer"),cl=Symbol("dynamicDependenciesLoaded"),Et=class extends Eo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[dl]=new Oo(5),this[ll]=this.constructor.name,this[sl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ll]&&Object.setPrototypeOf(this,this[sl])}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[cl]||(e[cl]=!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,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,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[pl].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,i,a,s,c;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...b).filter(p).map(S=>S.trim()).forEach(S=>u.add(S))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(g=>f.map(x=>`${g}:${x}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};dl=pl;wo([(0,Ur.property)()],Et.prototype,"exportpartsPrefix",void 0);wo([nl([])],Et.prototype,"exportpartsPrefixes",void 0);wo([(0,Ur.property)()],Et.prototype,"customStylesheet",void 0);wo([(0,Ur.state)()],Et.prototype,"useAdoptedStyleSheets",void 0);function zr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var fl,ul,hl,Ao=Symbol("internalReduxEventsUnsubscribers"),wt=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores"),Fr=class extends Et{constructor(){super(...arguments),this[fl]=new Map,this[ul]=new Map,this[hl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[jt].get(e)}addStore(e,o){var n;o=(n=o??(zr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[jt].delete(o)}setupStore(e,o){this[jt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jt].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 i=this.getStore(e.store);i&&(e.store?this[wt].has(e.store):this[wt].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[wt].set(e,o.subscribe(()=>this.updateFromStores())),zr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=c=>this[a](c);o.eventBus.addEventListener(i.eventName,s),this[Ao].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[wt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Ao].forEach(e=>e()),this[Ao]=[]}unsubscribeFromStore(e){this[wt].has(e)&&this[wt].get(e)(),this[wt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};fl=wt,ul=jt,hl=Ao;Fr.reduxProperties=new Map;Fr.reduxReactiveProperties=new Set;Fr.reduxEventListeners=new Map;function ze(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 i,a;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 mt(t){return!!t&&!!t[q]}function Ge(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===xd}(t)||Array.isArray(t)||!!t[Sl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Sl])||_n(t)||Dn(t))}function Gt(t,e,o){o===void 0&&(o=!1),gr(t)===0?(o?Object.keys:yr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function gr(t){var e=t[q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:Dn(t)?3:0}function mr(t,e){return gr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fd(t,e){return gr(t)===2?t.get(e):t[e]}function Ol(t,e,o){var n=gr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Cl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _n(t){return gd&&t instanceof Map}function Dn(t){return bd&&t instanceof Set}function At(t){return t.o||t.t}function $n(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Al(t);delete e[q];for(var o=yr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Bn(t,e){return e===void 0&&(e=!1),Mn(t)||mt(t)||!Ge(t)||(gr(t)>1&&(t.set=t.add=t.clear=t.delete=ud),Object.freeze(t),e&&Gt(t,function(o,n){return Bn(n,!0)},!0)),t}function ud(){ze(2)}function Mn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function tt(t){var e=kn[t];return e||ze(18,t),e}function hd(t,e){kn[t]||(kn[t]=e)}function Pn(){return Hr}function An(t,e){e&&(tt("Patches"),t.u=[],t.s=[],t.v=e)}function Ro(t){Tn(t),t.p.forEach(md),t.p=null}function Tn(t){t===Hr&&(Hr=t.l)}function ml(t){return Hr={p:[],l:Hr,h:t,m:!0,_:0}}function md(t){var e=t[q];e.i===0||e.i===1?e.j():e.g=!0}function Rn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||tt("ES5").S(e,t,n),n?(o[q].P&&(Ro(e),ze(4)),Ge(t)&&(t=No(e,t),e.l||Lo(e,t)),e.u&&tt("Patches").M(o[q].t,t,e.u,e.s)):t=No(e,o,[]),Ro(e),e.u&&e.v(e.u,e.s),t!==wl?t:void 0}function No(t,e,o){if(Mn(e))return e;var n=e[q];if(!n)return Gt(e,function(c,p){return yl(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Lo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=$n(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Gt(a,function(c,p){return yl(t,n,i,c,p,o,s)}),Lo(t,i,!1),o&&t.u&&tt("Patches").N(n,o,t.u,t.s)}return n.o}function yl(t,e,o,n,i,a,s){if(mt(i)){var c=No(t,i,a&&e&&e.i!==3&&!mr(e.R,n)?a.concat(n):void 0);if(Ol(o,n,c),!mt(c))return;t.m=!1}else s&&o.add(i);if(Ge(i)&&!Mn(i)){if(!t.h.D&&t._<1)return;No(t,i),e&&e.A.l||Lo(t,i)}}function Lo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Bn(e,o)}function Nn(t,e){var o=t[q];return(o?At(o):t)[e]}function gl(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 Rt(t){t.P||(t.P=!0,t.l&&Rt(t.l))}function Ln(t){t.o||(t.o=$n(t.t))}function In(t,e,o){var n=_n(e)?tt("MapSet").F(e,o):Dn(e)?tt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Pn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,f=Vr;s&&(p=[c],f=Wr);var u=Proxy.revocable(p,f),y=u.revoke,g=u.proxy;return c.k=g,c.j=y,g}(e,o):tt("ES5").J(e,o);return(o?o.A:Pn()).p.push(n),n}function yd(t){return mt(t)||ze(22,t),function e(o){if(!Ge(o))return o;var n,i=o[q],a=gr(o);if(i){if(!i.P&&(i.i<4||!tt("ES5").K(i)))return i.t;i.I=!0,n=bl(o,a),i.I=!1}else n=bl(o,a);return Gt(n,function(s,c){i&&fd(i.t,s)===c||Ol(n,s,e(c))}),a===3?new Set(n):n}(t)}function bl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return $n(t)}function El(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var f=this[q];return Vr.get(f,s)},set:function(f){var u=this[q];Vr.set(u,s,f)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][q];if(!p.P)switch(p.i){case 5:n(p)&&Rt(p);break;case 4:o(p)&&Rt(p)}}}function o(s){for(var c=s.t,p=s.k,f=yr(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==q){var g=c[y];if(g===void 0&&!mr(c,y))return!0;var x=p[y],b=x&&x[q];if(b?b.t!==g:!Cl(x,g))return!0}}var S=!!c[q];return f.length!==yr(c).length+(S?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&ze(3,JSON.stringify(At(s)))}var a={};hd("ES5",{J:function(s,c){var p=Array.isArray(s),f=function(y,g){if(y){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var S=Al(g);delete S[q];for(var L=yr(S),w=0;w<L.length;w++){var A=L[w];S[A]=t(A,y||!!S[A].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),u={i:p?5:4,A:c?c.A:Pn(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,q,{value:u,writable:!0}),f},S:function(s,c,p){p?mt(c)&&c[q].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[q];if(y){var g=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Gt(x,function(T){T!==q&&(g[T]!==void 0||mr(g,T)?b[T]||f(x[T]):(b[T]=!0,Rt(y)))}),Gt(g,function(T){x[T]!==void 0||mr(x,T)||(b[T]=!1,Rt(y))});else if(S===5){if(n(y)&&(Rt(y),b.length=!0),x.length<g.length)for(var L=x.length;L<g.length;L++)b[L]=!1;else for(var w=g.length;w<x.length;w++)b[w]=!0;for(var A=Math.min(x.length,g.length),k=0;k<A;k++)x.hasOwnProperty(k)||(b[k]=!0),b[k]===void 0&&f(x[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var xl,Hr,Un=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gd=typeof Map<"u",bd=typeof Set<"u",vl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wl=Un?Symbol.for("immer-nothing"):((xl={})["immer-nothing"]=!0,xl),Sl=Un?Symbol.for("immer-draftable"):"__$immer_draftable",q=Un?Symbol.for("immer-state"):"__$immer_state";var xd=""+Object.prototype.constructor,yr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Al=Object.getOwnPropertyDescriptors||function(t){var e={};return yr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},kn={},Vr={get:function(t,e){if(e===q)return t;var o=At(t);if(!mr(o,e))return function(i,a,s){var c,p=gl(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Ge(n)?n:n===Nn(t.t,e)?(Ln(t),t.o[e]=In(t.A.h,n,t)):n},has:function(t,e){return e in At(t)},ownKeys:function(t){return Reflect.ownKeys(At(t))},set:function(t,e,o){var n=gl(At(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Nn(At(t),e),a=i?.[q];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Cl(o,i)&&(o!==void 0||mr(t.t,e)))return!0;Ln(t),Rt(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 Nn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ln(t),Rt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=At(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ze(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ze(12)}},Wr={};Gt(Vr,function(t,e){Wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wr.deleteProperty=function(t,e){return Wr.set.call(this,t,e,void 0)},Wr.set=function(t,e,o){return Vr.set.call(this,t[0],e,o,t[0])};var vd=function(){function t(o){var n=this;this.O=vl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(S){var L=this;S===void 0&&(S=c);for(var w=arguments.length,A=Array(w>1?w-1:0),k=1;k<w;k++)A[k-1]=arguments[k];return p.produce(S,function(T){var z;return(z=a).call.apply(z,[L,T].concat(A))})}}var f;if(typeof a!="function"&&ze(6),s!==void 0&&typeof s!="function"&&ze(7),Ge(i)){var u=ml(n),y=In(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Ro(u):Tn(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return An(u,s),Rn(S,u)},function(S){throw Ro(u),S}):(An(u,s),Rn(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===wl&&(f=void 0),n.D&&Bn(f,!0),s){var x=[],b=[];tt("Patches").M(i,f,x,b),s(x,b)}return f}ze(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),g=1;g<u;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(x){return i.apply(void 0,[x].concat(y))})};var s,c,p=n.produce(i,a,function(f,u){s=f,c=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,c]}):[p,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){Ge(o)||ze(8),mt(o)&&(o=yd(o));var n=ml(this),i=In(this,o,void 0);return i[q].C=!0,Tn(n),i},e.finishDraft=function(o,n){var i=o&&o[q],a=i.A;return An(a,n),Rn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!vl&&ze(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=tt("Patches").$;return mt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),ke=new vd,Sd=ke.produce,Vb=ke.produceWithPatches.bind(ke),jb=ke.setAutoFreeze.bind(ke),Gb=ke.setUseProxies.bind(ke),Kb=ke.applyPatches.bind(ke),Zb=ke.createDraft.bind(ke),qb=ke.finishDraft.bind(ke),Po=Sd;function Nt(t){"@babel/helpers - typeof";return Nt=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},Nt(t)}function zn(t,e){if(Nt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Nt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fn(t){var e=zn(t,"string");return Nt(e)==="symbol"?e:String(e)}function Wn(t,e,o){return e=Fn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function To(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Rl(Object(o),!0).forEach(function(n){Wn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Rl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function fe(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 Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Hn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Io={INIT:"@@redux/INIT"+Hn(),REPLACE:"@@redux/REPLACE"+Hn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Hn()}};function Od(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 Vn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(Vn)(t,e)}if(typeof t!="function")throw new Error(fe(2));var i=t,a=e,s=[],c=s,p=!1;function f(){c===s&&(c=s.slice())}function u(){if(p)throw new Error(fe(3));return a}function y(S){if(typeof S!="function")throw new Error(fe(4));if(p)throw new Error(fe(5));var L=!0;return f(),c.push(S),function(){if(L){if(p)throw new Error(fe(6));L=!1,f();var A=c.indexOf(S);c.splice(A,1),s=null}}}function g(S){if(!Od(S))throw new Error(fe(7));if(typeof S.type>"u")throw new Error(fe(8));if(p)throw new Error(fe(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var L=s=c,w=0;w<L.length;w++){var A=L[w];A()}return S}function x(S){if(typeof S!="function")throw new Error(fe(10));i=S,g({type:Io.REPLACE})}function b(){var S,L=y;return S={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(fe(11));function k(){A.next&&A.next(u())}k();var T=L(k);return{unsubscribe:T}}},S[Nl]=function(){return this},S}return g({type:Io.INIT}),n={dispatch:g,subscribe:y,getState:u,replaceReducer:x},n[Nl]=b,n}function Cd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Io.INIT});if(typeof n>"u")throw new Error(fe(12));if(typeof o(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function Ll(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{Cd(o)}catch(p){c=p}return function(f,u){if(f===void 0&&(f={}),c)throw c;if(0)var y;for(var g=!1,x={},b=0;b<a.length;b++){var S=a[b],L=o[S],w=f[S],A=L(w,u);if(typeof A>"u"){var k=u&&u.type;throw new Error(fe(14))}x[S]=A,g=g||A!==w}return g=g||a.length!==Object.keys(f).length,g?x:f}}function br(){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,i){return function(){return n(i.apply(void 0,arguments))}})}function Pl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(fe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=br.apply(void 0,c)(i.dispatch),To(To({},i),{},{dispatch:a})}}}function Tl(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Il=Tl();Il.withExtraArgument=Tl;var jn=Il;var Bl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,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)}}(),Ed=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(u){return p([f,u])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(u){f=[6,u],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},xr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},wd=Object.defineProperty,Ad=Object.defineProperties,Rd=Object.getOwnPropertyDescriptors,kl=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Ld=Object.prototype.propertyIsEnumerable,_l=function(t,e,o){return e in t?wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Lt=function(t,e){for(var o in e||(e={}))Nd.call(e,o)&&_l(t,o,e[o]);if(kl)for(var n=0,i=kl(e);n<i.length;n++){var o=i[n];Ld.call(e,o)&&_l(t,o,e[o])}return t},Gn=function(t,e){return Ad(t,Rd(e))},Pd=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(f){i(f)}},s=function(p){try{c(o.throw(p))}catch(f){i(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Td=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?br:br.apply(null,arguments)},ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Id(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 kd=function(t){Bl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var 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,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array),_d=function(t){Bl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var 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,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array);function qn(t){return Ge(t)?Po(t,function(){}):t}function Dd(t){return typeof t=="boolean"}function $d(){return function(e){return Bd(e)}}function Bd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new kd;if(o&&(Dd(o)?c.push(jn):c.push(jn.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return c}var Kn=!0;function Ml(t){var e=$d(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,u=f===void 0?void 0:f,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof i=="function")x=i;else if(Id(i))x=Ll(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Kn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kn&&b.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Pl.apply(void 0,b),L=br;p&&(L=Td(Lt({trace:!Kn},typeof p=="object"&&p)));var w=new _d(S),A=w;Array.isArray(g)?A=xr([S],g):typeof g=="function"&&(A=g(w));var k=L.apply(void 0,A);return Vn(x,u,k)}function Pt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Lt(Lt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.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 Ul(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Md(t){return typeof t=="function"}function Ud(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ul(e):[e,o,n],a=i[0],s=i[1],c=i[2],p;if(Md(t))p=function(){return qn(t())};else{var f=qn(t);p=function(){return f}}function u(y,g){y===void 0&&(y=p());var x=xr([a[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[c]),x.reduce(function(b,S){if(S)if(mt(b)){var L=b,w=S(L,g);return w===void 0?b:w}else{if(Ge(b))return Po(b,function(A){return S(A,g)});var w=S(b,g);if(w===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return b},y)}return u.getInitialState=p,u}function zd(t,e){return t+"/"+e}function zl(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:qn(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(u){var y=n[u],g=zd(e,u),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,a[u]=x,s[g]=x,c[u]=b?Pt(g,b):Pt(g)});function p(){var u=typeof t.extraReducers=="function"?Ul(t.extraReducers):[t.extraReducers],y=u[0],g=y===void 0?{}:y,x=u[1],b=x===void 0?[]:x,S=u[2],L=S===void 0?void 0:S,w=Lt(Lt({},g),s);return Ud(o,function(A){for(var k in w)A.addCase(k,w[k]);for(var T=0,z=b;T<z.length;T++){var ve=z[T];A.addMatcher(ve.matcher,ve.reducer)}L&&A.addDefaultCase(L)})}var f;return{name:e,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Fd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Fd[Math.random()*64|0];return e},Hd=["name","message","stack","code"],Zn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Dl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Vd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Hd;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gx=function(){function t(e,o,n){var i=Pt(e+"/fulfilled",function(u,y,g,x){return{payload:u,meta:Gn(Lt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Pt(e+"/pending",function(u,y,g){return{payload:void 0,meta:Gn(Lt({},g||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=Pt(e+"/rejected",function(u,y,g,x,b){return{payload:x,error:(n&&n.serializeError||Vd)(u||"Rejected"),meta:Gn(Lt({},b||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(y,g,x){var b=n?.idGenerator?n.idGenerator(u):Wd(),S=new p,L,w=!1;function A(T){L=T,S.abort()}var k=function(){return Pd(this,null,function(){var T,z,ve,re,Or,_e,h;return Ed(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),re=(T=n?.condition)==null?void 0:T.call(n,u,{getState:g,extra:x}),Gd(re)?[4,re]:[3,2];case 1:re=v.sent(),v.label=2;case 2:if(re===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,Or=new Promise(function(P,G){return S.signal.addEventListener("abort",function(){return G({name:"AbortError",message:L||"Aborted"})})}),y(a(b,u,(z=n?.getPendingMeta)==null?void 0:z.call(n,{requestId:b,arg:u},{getState:g,extra:x}))),[4,Promise.race([Or,Promise.resolve(o(u,{dispatch:y,getState:g,extra:x,requestId:b,signal:S.signal,abort:A,rejectWithValue:function(P,G){return new Zn(P,G)},fulfillWithValue:function(P,G){return new Dl(P,G)}})).then(function(P){if(P instanceof Zn)throw P;return P instanceof Dl?i(P.payload,b,u,P.meta):i(P,b,u)})])];case 3:return ve=v.sent(),[3,5];case 4:return _e=v.sent(),ve=_e instanceof Zn?s(null,b,u,_e.payload,_e.meta):s(_e,b,u),[3,5];case 5:return h=n&&!n.dispatchConditionRejection&&s.match(ve)&&ve.meta.condition,h||y(ve),[2,ve]}})})}();return Object.assign(k,{abort:A,requestId:b,arg:u,unwrap:function(){return k.then(jd)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function jd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Fl="listener",Wl="completed",Hl="cancelled",bx="task-"+Hl,xx="task-"+Wl,vx=Fl+"-"+Hl,Sx=Fl+"-"+Wl;var Yn="listenerMiddleware";var Ox=Pt(Yn+"/add"),Cx=Pt(Yn+"/removeAll"),Ex=Pt(Yn+"/remove");var $l,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return($l||($l=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Kd=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kd(10);El();window.ftReduxStores||(window.ftReduxStores={});var Vl=class t{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(zr(a))return a;if(i==null)return;let s=zl({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=Ml({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new So,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]: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 $o=m(R());var ko=class extends et{async listMySearches(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var _o=class extends et{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",Do=$o.FtReduxStore.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Xn=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _o,this.savedSearchesService=new ko,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=I.getState();(0,$o.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(),Do.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Do.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Do.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;Do.actions.bookmarks(o)}}},jl=new Xn;var Qn=class{addCommand(e,o=!1){I.commands.add(e,o)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Qn;var Gl=m(R()),Jn=class{highlightHtml(e,o,n){(0,Gl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Jn;var Kl=m(R());var ei=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Kl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ei;(0,Zl.customElement)("ft-app-context")(J);var Yl=m(H()),Yd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ti=Symbol("i18nAttributes"),Bo=Symbol("i18nProperties"),jr=Symbol("i18nUnsubs");function zo(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?tl:hr}i18n(i,a,...s){var c;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let p=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...p)}onI18nUpdate(i){var a,s;(a=this[ti])===null||a===void 0||a.forEach((c,p)=>{var f;let u=this.getI18nAttributeValue(p);((f=u?.context)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(p,u,c)}),(s=this[Bo])===null||s===void 0||s.forEach((c,p)=>{c.context.toLowerCase()===i.toLowerCase()&&(this[p]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[ti])===null||a===void 0||a.forEach((c,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(i.has(p)||c.argsProvider!=null)&&(i.has(p)&&this.addI18nContext(f.context),this.updateI18nAttributeMessage(p,f,c))}),(s=this[Bo])===null||s===void 0||s.forEach((c,p)=>{c.argsProvider!=null&&(this[p]=this.i18n(c))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,c;super.connectedCallback(),new Set([...(a=(i=this[Bo])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[ti])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(p=>this.getI18nAttributeValue(p))].map(p=>p?.context)).forEach(p=>p&&this.addI18nMessages(p))}addI18nMessages(i,a){i=i.toLowerCase(),this[jr].has(i)||this[jr].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[jr].forEach(i=>i()),this[jr].clear()}}return e=jr,Yd([(0,Yl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var ql=class extends zo(Uo.FtLitElement){},Mo=class extends zo(Uo.FtLitElementRedux){};var Gr=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ke=class extends Mo{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Fo.nothing:Fo.html`
|
|
1533
1533
|
<span class="ft-i18n">
|
|
1534
1534
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1535
1535
|
</span>
|
|
1536
1536
|
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ke.elementDefinitions={};Ke.styles=Xs;Gr([(0,Ho.redux)()],Ke.prototype,"editorMode",void 0);Gr([(0,Wo.property)()],Ke.prototype,"context",void 0);Gr([(0,Wo.property)()],Ke.prototype,"key",void 0);Gr([(0,Ho.jsonProperty)([])],Ke.prototype,"args",void 0);Gr([(0,Wo.property)()],Ke.prototype,"defaultMessage",void 0);var Vo=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...i)=>hr.resolveMessage(this.name,n,...i)})}};(0,Xl.customElement)("ft-i18n")(Ke);var bc=m(R()),xc=m(H());var rt=m(R());var Ql=m(R()),Xd={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setRequestClusterSortCriterion:(t,e)=>{var o;t.request.clusterSortCriterions=(o=e.payload)!==null&&o!==void 0?o:[]},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload},setRequestPeriodFilter:(t,e)=>{t.request.periodFilter=e.payload}},Jl=t=>Ql.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Xd});var Jv=m(tc(),1);var rc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(rc||(rc={}));var oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ic;(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"})(ic||(ic={}));var ac;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ac||(ac={}));var sc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sc||(sc={}));var lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(lc||(lc={}));var cc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(cc||(cc={}));var dc;(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"})(dc||(dc={}));var pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(pc||(pc={}));var fc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(fc||(fc={}));var vr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(vr||(vr={}));var uc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(uc||(uc={}));var hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hc||(hc={}));var mc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(mc||(mc={}));var yc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(yc||(yc={}));var Sr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(Sr||(Sr={}));var le;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(le||(le={}));var gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(gc||(gc={}));var qv={[le.PERSONAL_BOOK_SHARE_USER]:[le.PERSONAL_BOOK_USER],[le.HTML_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.PDF_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.KHUB_ADMIN]:[le.CONTENT_PUBLISHER],[le.ADMIN]:[le.KHUB_ADMIN,le.USERS_ADMIN,le.PORTAL_ADMIN],[le.DEVELOPER]:[le.BETA_USER,le.DEBUG_USER]};var jo=class extends et{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}};var ri=t=>t.request.virtualField===vr.TITLE_ONLY&&t.request.scope===Sr.DOCUMENTS,Go=class t extends Event{constructor(){super(t.eventName)}};Go.eventName="search-context-clear-all-filters";var Kr=class t{static build(e,o){return new t(Jl(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new rt.Debouncer(10),this.searchDebouncer=new rt.Debouncer(100),this.suggestDebouncer=new rt.Debouncer(300),this.service=o??new jo}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let o=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(o){let i=a=>o.some(s=>s.lang==a);i(e)||(e=i(n)?n:o[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>n.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(vr.TITLE_ONLY),this.store.actions.setRequestScope(Sr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(vr.EVERYWHERE),this.store.actions.setRequestScope(Sr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return ri(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Go)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(i=>i!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,o){let n=this.store.getState().request.filters,i={key:e,values:o,negative:!1},a=[...n.filter(s=>s.key!==e),i];this.setFilters(a)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setPeriodFilter(e){this.store.actions.setRequestPeriodFilter(e),this.store.actions.setPageNumber(1),this.launchSearch()}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,rt.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let a=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof rt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,i={input:o.liveQuery,filters:n.filters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,rt.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(o){!(o instanceof rt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}};var Qd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ni=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},oi=Symbol("registerInterval");function Jd(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[oi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[oi]):this.dispatchEvent(new ni)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=oi,Qd([(0,xc.state)()],o.prototype,"stateManager",void 0),o}var Ko=class extends Jd(bc.FtLitElementRedux){};var Zo=Vo.build("designedSearchType"),vc={label:"Search scope",documentTitlesOnly:"Search in document titles only"};var Nc=m(H());var Ec=m(R());var Cc=m(D()),ot=m(H()),Ze=m(R());var Sc=m(D());var Oc=Sc.css`
|
|
1537
1537
|
`;var ue=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ii=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ai=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},si=class extends CustomEvent{constructor(e,o,n){super("ft-search-results-change",{detail:{request:e,paging:o,spellcheck:n}})}},X=class extends Ze.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Kr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=o=>this.handleLoadError(o),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(I)}render(){return Cc.html`
|
|
1538
1538
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1539
|
-
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter
|
|
1539
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter!==void 0&&this.stateManager.setPeriodFilter(this.periodFilter),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ai(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new si(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new ii(e))}reloadSavedSearches(){jl.clearMySearches()}clear(){this.stateManager.clear()}};X.elementDefinitions={};X.styles=Oc;ue([(0,Ze.redux)({store:I.name})],X.prototype,"session",void 0);ue([(0,ot.property)()],X.prototype,"query",void 0);ue([(0,ot.property)()],X.prototype,"contentLocale",void 0);ue([(0,ot.property)({type:Number})],X.prototype,"pageSize",void 0);ue([(0,ot.property)({type:Boolean})],X.prototype,"searchInDocumentTitlesOnly",void 0);ue([(0,ot.property)()],X.prototype,"periodFilter",void 0);ue([(0,ot.property)()],X.prototype,"scope",void 0);ue([(0,ot.property)()],X.prototype,"virtualField",void 0);ue([(0,ot.property)({type:Boolean})],X.prototype,"ignoreEmptyQuery",void 0);ue([(0,Ze.redux)({store:I.name})],X.prototype,"openExternalDocumentInNewTab",void 0);ue([(0,Ze.jsonProperty)([])],X.prototype,"filters",void 0);ue([(0,Ze.jsonProperty)([])],X.prototype,"sort",void 0);ue([(0,Ze.redux)({store:"search"})],X.prototype,"request",void 0);ue([(0,Ze.redux)({store:"search"})],X.prototype,"paging",void 0);ue([(0,Ze.redux)({store:"search",selector:t=>t.spellcheck})],X.prototype,"autocorrect",void 0);ue([(0,ot.property)({attribute:!1})],X.prototype,"searchServiceProvider",void 0);(0,Ec.customElement)("ft-search-context")(X);var wc=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Tt=class extends zo(Ko){constructor(){super(),this.addI18nContext(Zo,vc)}render(){return Ac.html`
|
|
1540
1540
|
<ft-filter
|
|
1541
1541
|
label=${Zo.messages.label()}
|
|
1542
1542
|
.options=${[{label:Zo.messages.documentTitlesOnly(),value:e=>{var o;return(o=this.stateManager)===null||o===void 0?void 0:o.setSearchInDocumentTitlesOnly(e)},selected:this.searchInDocumentTitlesOnly}]}
|