@fluid-topics/ft-reader-page-title 1.2.24 → 1.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,7 +116,7 @@ Also for action icons.`,a.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
116
116
|
`}};q.styles=[Wo,Fo,Bo,zo,_o,Uo,Do,Mo,To,Ho,$o,...Go];jo([(0,Zt.property)()],q.prototype,"element",void 0);jo([(0,Zt.property)()],q.prototype,"variant",void 0);(0,Ko.customElement)("ft-typography")(q);var Gn=O(P());var Jo=O(D()),F=O(M()),T=O(P());var Vo=O(D());var qo=Vo.css`
|
|
117
117
|
`;var ot=O(P()),pa="ft-app-info",Kt=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},ua={session:(r,t)=>{(0,ot.deepEqual)(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>S.dispatchEvent(new Kt(t.payload)),0))}},S=ot.FtReduxStore.get({name:pa,reducers:ua,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var te=O(P());var Vt=O(P());var pe=class r{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=S.getState(),i=t??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(t){return new Promise(o=>{let n=r.get(t);if(n)o(n);else{let i=S.subscribe(()=>{n=r.get(t),n&&(i(),o(n))})}})}};var ee=class{constructor(t=!0,o){var n;this.overrideApi=o;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Vt.CacheRegistry,this.cache=t?i.commonCache:new Vt.CacheRegistry}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:pe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pe.await()}clearCache(){this.cache.clearAll()}};var Yo,ya=Symbol("clearAfterUnitTest"),nt=class extends ee{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Yo]=()=>{this.defaultMessages={},this.cache=new te.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=S.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),Object.keys(o).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,te.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var i;let c=t.toLowerCase(),s=this.resolveContext(c);return new te.ParametrizedLabelResolver((i=this.defaultMessages[c])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(o){console.error(o)}}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(o=>(0,te.delay)(0).then(()=>o()).catch(()=>null)))}};Yo=ya;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends nt{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends nt{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var ue=window.FluidTopicsI18nService,Xo=window.FluidTopicsCustomI18nService;var L=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},R=class extends T.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=()=>pe.get(),this.messageContexts=[],this.cache=new T.CacheRegistry,this.cleanSessionDebouncer=new T.Debouncer}render(){return Jo.html`
|
|
118
118
|
<slot></slot>
|
|
119
|
-
`}update(t){var o,n,i,c,s;super.update(t),t.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&S.actions.noCustom(this.noCustom),t.has("editorMode")&&S.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&S.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ue.addContext(d)),t.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(S.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),S.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),S.actions.searchInAllLanguagesAllowed((s=(c=this.localesConfiguration)===null||c===void 0?void 0:c.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};R.elementDefinitions={};R.styles=qo;L([(0,F.property)()],R.prototype,"baseUrl",void 0);L([(0,F.property)()],R.prototype,"apiIntegrationIdentifier",void 0);L([(0,F.property)()],R.prototype,"uiLocale",void 0);L([(0,T.jsonProperty)(null)],R.prototype,"availableUiLocales",void 0);L([(0,T.jsonProperty)(null)],R.prototype,"metadataConfiguration",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"editorMode",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"noCustom",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"openExternalDocumentInNewTab",void 0);L([(0,F.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],R.prototype,"noCustomComponent",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"withManualResources",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"navigatorOnline",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"forcedOffline",void 0);L([(0,F.property)({type:Object})],R.prototype,"apiProvider",void 0);L([(0,T.jsonProperty)([])],R.prototype,"messageContexts",void 0);L([(0,T.jsonProperty)(void 0)],R.prototype,"session",void 0);L([(0,F.state)()],R.prototype,"localesConfiguration",void 0);var ti=O(M());function ha(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var o,n,i;if(Array.isArray(r)){if(o=r.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!at(r[n],t[n]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;for(n of r.entries())if(!at(n[1],t.get(n[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(i=Object.keys(r),o=i.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){var c=i[n];if(!at(r[c],t[c]))return!1}return!0}return r!==r&&t!==t}function at(r,t){try{return ha(r,t)}catch{return!1}}function it(r,t){return!at(r,t)}var ga=O(M(),1);var ct=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Te=O(M(),1);var Qo=O(M(),1);function en(r,t){let o=()=>JSON.parse(JSON.stringify(r));return(0,Qo.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:it,...t??{}})}var lt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,c=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(d){i(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var rn=O(D(),1);var st=window,ma=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nf=Symbol();var tn=(r,t)=>{ma?r.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):t.forEach(o=>{let n=document.createElement("style"),i=st.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,r.appendChild(n)})};var dt=class extends rn.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,c])=>t.registry.define(i,c)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return tn(n,t.elementStyles),n}};var ft=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},cn,on=Symbol("constructorPrototype"),nn=Symbol("constructorName"),ln=Symbol("exportpartsDebouncer"),an=Symbol("dynamicDependenciesLoaded"),re=class extends dt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cn]=new lt(5),this[nn]=this.constructor.name,this[on]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[nn]&&Object.setPrototypeOf(this,this[on])}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 t=this.constructor;t[an]||(t[an]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){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(c=>c.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ln].run(()=>{var i,c;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,i,c,s,d;let p=h=>h!=null&&h.trim().length>0,f=t.filter(p).map(h=>h.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let h of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(c=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&c!==void 0?c:[],g=(d=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(p).map(x=>x.trim()).forEach(x=>u.add(x))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(h=>f.map(b=>`${h}:${b}--${h}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};cn=ln;ft([(0,Te.property)()],re.prototype,"exportpartsPrefix",void 0);ft([en([])],re.prototype,"exportpartsPrefixes",void 0);ft([(0,Te.property)()],re.prototype,"customStylesheet",void 0);ft([(0,Te.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function He(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var sn,dn,fn,$e=Symbol("internalReduxEventsUnsubscribers"),oe=Symbol("internalStoresUnsubscribers"),ye=Symbol("internalStores"),Ge=class extends re{constructor(){super(...arguments),this[sn]=new Map,this[dn]=new Map,this[fn]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[ye].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ye].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[ye].get(t)}addStore(t,o){var n;o=(n=o??(He(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[ye].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[ye].delete(o)}setupStores(){this.unsubscribeFromStores(),this[ye].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[oe].has(t.store):this[oe].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[oe].set(t,o.subscribe(()=>this.updateFromStores())),this[$e].set(t,[]),He(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,c)=>{if(typeof this[c]=="function"&&(!i.store||o.name===i.store)){let s=d=>this[c](d);o.addEventListener(i.eventName,s),this[$e].get(t).push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oe].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[oe].has(t)&&this[oe].get(t)(),this[oe].delete(t),(o=this[$e].get(t))===null||o===void 0||o.forEach(n=>n()),this[$e].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};sn=oe,dn=ye,fn=$e;Ge.reduxProperties=new Map;Ge.reduxReactiveProperties=new Set;Ge.reduxEventListeners=new Map;function _(r){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,c;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Y(r){return!!r&&!!r[E]}function H(r){var t;return!!r&&(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)===Na}(r)||Array.isArray(r)||!!r[bn]||!!(!((t=r.constructor)===null||t===void 0)&&t[bn])||or(r)||nr(r))}function he(r,t,o){o===void 0&&(o=!1),ke(r)===0?(o?Object.keys:Pe)(r).forEach(function(n){o&&typeof n=="symbol"||t(n,r[n],r)}):r.forEach(function(n,i){return t(i,n,r)})}function ke(r){var t=r[E];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:or(r)?2:nr(r)?3:0}function Re(r,t){return ke(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function ba(r,t){return ke(r)===2?r.get(t):r[t]}function xn(r,t,o){var n=ke(r);n===2?r.set(t,o):n===3?r.add(o):r[t]=o}function vn(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function or(r){return Ca&&r instanceof Map}function nr(r){return wa&&r instanceof Set}function ne(r){return r.o||r.t}function ar(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Cn(r);delete t[E];for(var o=Pe(t),n=0;n<o.length;n++){var i=o[n],c=t[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),t)}function ir(r,t){return t===void 0&&(t=!1),cr(r)||Y(r)||!H(r)||(ke(r)>1&&(r.set=r.add=r.clear=r.delete=xa),Object.freeze(r),t&&he(r,function(o,n){return ir(n,!0)},!0)),r}function xa(){_(2)}function cr(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function G(r){var t=rr[r];return t||_(18,r),t}function va(r,t){rr[r]||(rr[r]=t)}function Qt(){return Ze}function qt(r,t){t&&(G("Patches"),r.u=[],r.s=[],r.v=t)}function pt(r){er(r),r.p.forEach(Sa),r.p=null}function er(r){r===Ze&&(Ze=r.l)}function pn(r){return Ze={p:[],l:Ze,h:r,m:!0,_:0}}function Sa(r){var t=r[E];t.i===0||t.i===1?t.j():t.g=!0}function Yt(r,t){t._=t.p.length;var o=t.p[0],n=r!==void 0&&r!==o;return t.h.O||G("ES5").S(t,r,n),n?(o[E].P&&(pt(t),_(4)),H(r)&&(r=ut(t,r),t.l||yt(t,r)),t.u&&G("Patches").M(o[E].t,r,t.u,t.s)):r=ut(t,o,[]),pt(t),t.u&&t.v(t.u,t.s),r!==On?r:void 0}function ut(r,t,o){if(cr(t))return t;var n=t[E];if(!n)return he(t,function(d,p){return un(r,n,t,d,p,o)},!0),t;if(n.A!==r)return t;if(!n.P)return yt(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ar(n.k):n.o,c=i,s=!1;n.i===3&&(c=new Set(i),i.clear(),s=!0),he(c,function(d,p){return un(r,n,i,d,p,o,s)}),yt(r,i,!1),o&&r.u&&G("Patches").N(n,o,r.u,r.s)}return n.o}function un(r,t,o,n,i,c,s){if(Y(i)){var d=ut(r,i,c&&t&&t.i!==3&&!Re(t.R,n)?c.concat(n):void 0);if(xn(o,n,d),!Y(d))return;r.m=!1}else s&&o.add(i);if(H(i)&&!cr(i)){if(!r.h.D&&r._<1)return;ut(r,i),t&&t.A.l||yt(r,i)}}function yt(r,t,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&ir(t,o)}function Xt(r,t){var o=r[E];return(o?ne(o):r)[t]}function yn(r,t){if(t in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ae(r){r.P||(r.P=!0,r.l&&ae(r.l))}function Jt(r){r.o||(r.o=ar(r.t))}function tr(r,t,o){var n=or(t)?G("MapSet").F(t,o):nr(t)?G("MapSet").T(t,o):r.O?function(i,c){var s=Array.isArray(i),d={i:s?1:0,A:c?c.A:Qt(),P:!1,I:!1,R:{},l:c,t:i,k:null,o:null,j:null,C:!1},p=d,f=Ke;s&&(p=[d],f=je);var u=Proxy.revocable(p,f),y=u.revoke,h=u.proxy;return d.k=h,d.j=y,h}(t,o):G("ES5").J(t,o);return(o?o.A:Qt()).p.push(n),n}function Oa(r){return Y(r)||_(22,r),function t(o){if(!H(o))return o;var n,i=o[E],c=ke(o);if(i){if(!i.P&&(i.i<4||!G("ES5").K(i)))return i.t;i.I=!0,n=hn(o,c),i.I=!1}else n=hn(o,c);return he(n,function(s,d){i&&ba(i.t,s)===d||xn(n,s,t(d))}),c===3?new Set(n):n}(r)}function hn(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return ar(r)}function Sn(){function r(s,d){var p=c[s];return p?p.enumerable=d:c[s]=p={configurable:!0,enumerable:d,get:function(){var f=this[E];return Ke.get(f,s)},set:function(f){var u=this[E];Ke.set(u,s,f)}},p}function t(s){for(var d=s.length-1;d>=0;d--){var p=s[d][E];if(!p.P)switch(p.i){case 5:n(p)&&ae(p);break;case 4:o(p)&&ae(p)}}}function o(s){for(var d=s.t,p=s.k,f=Pe(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==E){var h=d[y];if(h===void 0&&!Re(d,y))return!0;var b=p[y],g=b&&b[E];if(g?g.t!==h:!vn(b,h))return!0}}var x=!!d[E];return f.length!==Pe(d).length+(x?0:1)}function n(s){var d=s.k;if(d.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&_(3,JSON.stringify(ne(s)))}var c={};va("ES5",{J:function(s,d){var p=Array.isArray(s),f=function(y,h){if(y){for(var b=Array(h.length),g=0;g<h.length;g++)Object.defineProperty(b,""+g,r(g,!0));return b}var x=Cn(h);delete x[E];for(var N=Pe(x),C=0;C<N.length;C++){var w=N[C];x[w]=r(w,y||!!x[w].enumerable)}return Object.create(Object.getPrototypeOf(h),x)}(p,s),u={i:p?5:4,A:d?d.A:Qt(),P:!1,I:!1,R:{},l:d,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,E,{value:u,writable:!0}),f},S:function(s,d,p){p?Y(d)&&d[E].A===s&&t(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[E];if(y){var h=y.t,b=y.k,g=y.R,x=y.i;if(x===4)he(b,function(I){I!==E&&(h[I]!==void 0||Re(h,I)?g[I]||f(b[I]):(g[I]=!0,ae(y)))}),he(h,function(I){b[I]!==void 0||Re(b,I)||(g[I]=!1,ae(y))});else if(x===5){if(n(y)&&(ae(y),g.length=!0),b.length<h.length)for(var N=b.length;N<h.length;N++)g[N]=!1;else for(var C=h.length;C<b.length;C++)g[C]=!0;for(var w=Math.min(b.length,h.length),A=0;A<w;A++)b.hasOwnProperty(A)||(g[A]=!0),g[A]===void 0&&f(b[A])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var gn,Ze,lr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ca=typeof Map<"u",wa=typeof Set<"u",mn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",On=lr?Symbol.for("immer-nothing"):((gn={})["immer-nothing"]=!0,gn),bn=lr?Symbol.for("immer-draftable"):"__$immer_draftable",E=lr?Symbol.for("immer-state"):"__$immer_state";var Na=""+Object.prototype.constructor,Pe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Cn=Object.getOwnPropertyDescriptors||function(r){var t={};return Pe(r).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(r,o)}),t},rr={},Ke={get:function(r,t){if(t===E)return r;var o=ne(r);if(!Re(o,t))return function(i,c,s){var d,p=yn(c,s);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(i.k):void 0}(r,o,t);var n=o[t];return r.I||!H(n)?n:n===Xt(r.t,t)?(Jt(r),r.o[t]=tr(r.A.h,n,r)):n},has:function(r,t){return t in ne(r)},ownKeys:function(r){return Reflect.ownKeys(ne(r))},set:function(r,t,o){var n=yn(ne(r),t);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var i=Xt(ne(r),t),c=i?.[E];if(c&&c.t===o)return r.o[t]=o,r.R[t]=!1,!0;if(vn(o,i)&&(o!==void 0||Re(r.t,t)))return!0;Jt(r),ae(r)}return r.o[t]===o&&(o!==void 0||t in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[t])||(r.o[t]=o,r.R[t]=!0),!0},deleteProperty:function(r,t){return Xt(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Jt(r),ae(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var o=ne(r),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){_(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){_(12)}},je={};he(Ke,function(r,t){je[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),je.deleteProperty=function(r,t){return je.set.call(this,r,t,void 0)},je.set=function(r,t,o){return Ke.set.call(this,r[0],t,o,r[0])};var Ia=function(){function r(o){var n=this;this.O=mn,this.D=!0,this.produce=function(i,c,s){if(typeof i=="function"&&typeof c!="function"){var d=c;c=i;var p=n;return function(x){var N=this;x===void 0&&(x=d);for(var C=arguments.length,w=Array(C>1?C-1:0),A=1;A<C;A++)w[A-1]=arguments[A];return p.produce(x,function(I){var X;return(X=c).call.apply(X,[N,I].concat(w))})}}var f;if(typeof c!="function"&&_(6),s!==void 0&&typeof s!="function"&&_(7),H(i)){var u=pn(n),y=tr(n,i,void 0),h=!0;try{f=c(y),h=!1}finally{h?pt(u):er(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(x){return qt(u,s),Yt(x,u)},function(x){throw pt(u),x}):(qt(u,s),Yt(f,u))}if(!i||typeof i!="object"){if((f=c(i))===void 0&&(f=i),f===On&&(f=void 0),n.D&&ir(f,!0),s){var b=[],g=[];G("Patches").M(i,f,b,g),s(b,g)}return f}_(21,i)},this.produceWithPatches=function(i,c){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),h=1;h<u;h++)y[h-1]=arguments[h];return n.produceWithPatches(f,function(b){return i.apply(void 0,[b].concat(y))})};var s,d,p=n.produce(i,c,function(f,u){s=f,d=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,d]}):[p,s,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=r.prototype;return t.createDraft=function(o){H(o)||_(8),Y(o)&&(o=Oa(o));var n=pn(this),i=tr(this,o,void 0);return i[E].C=!0,er(n),i},t.finishDraft=function(o,n){var i=o&&o[E],c=i.A;return qt(c,n),Yt(void 0,c)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!mn&&_(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var c=n[i];if(c.path.length===0&&c.op==="replace"){o=c.value;break}}i>-1&&(n=n.slice(i+1));var s=G("Patches").$;return Y(o)?s(o,n):this.produce(o,function(d){return s(d,n)})},r}(),B=new Ia,Ea=B.produce,mf=B.produceWithPatches.bind(B),bf=B.setAutoFreeze.bind(B),xf=B.setUseProxies.bind(B),vf=B.applyPatches.bind(B),Sf=B.createDraft.bind(B),Of=B.finishDraft.bind(B),ht=Ea;function ie(r){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(r)}function sr(r,t){if(ie(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,t||"default");if(ie(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function dr(r){var t=sr(r,"string");return ie(t)==="symbol"?t:String(t)}function fr(r,t,o){return t=dr(t),t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function wn(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),o.push.apply(o,n)}return o}function gt(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?wn(Object(o),!0).forEach(function(n){fr(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):wn(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function W(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Nn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},mt={INIT:"@@redux/INIT"+pr(),REPLACE:"@@redux/REPLACE"+pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pr()}};function Aa(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function ur(r,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(W(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(W(1));return o(ur)(r,t)}if(typeof r!="function")throw new Error(W(2));var i=r,c=t,s=[],d=s,p=!1;function f(){d===s&&(d=s.slice())}function u(){if(p)throw new Error(W(3));return c}function y(x){if(typeof x!="function")throw new Error(W(4));if(p)throw new Error(W(5));var N=!0;return f(),d.push(x),function(){if(N){if(p)throw new Error(W(6));N=!1,f();var w=d.indexOf(x);d.splice(w,1),s=null}}}function h(x){if(!Aa(x))throw new Error(W(7));if(typeof x.type>"u")throw new Error(W(8));if(p)throw new Error(W(9));try{p=!0,c=i(c,x)}finally{p=!1}for(var N=s=d,C=0;C<N.length;C++){var w=N[C];w()}return x}function b(x){if(typeof x!="function")throw new Error(W(10));i=x,h({type:mt.REPLACE})}function g(){var x,N=y;return x={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(W(11));function A(){w.next&&w.next(u())}A();var I=N(A);return{unsubscribe:I}}},x[Nn]=function(){return this},x}return h({type:mt.INIT}),n={dispatch:h,subscribe:y,getState:u,replaceReducer:b},n[Nn]=g,n}function Ra(r){Object.keys(r).forEach(function(t){var o=r[t],n=o(void 0,{type:mt.INIT});if(typeof n>"u")throw new Error(W(12));if(typeof o(void 0,{type:mt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(W(13))})}function In(r){for(var t=Object.keys(r),o={},n=0;n<t.length;n++){var i=t[n];typeof r[i]=="function"&&(o[i]=r[i])}var c=Object.keys(o),s,d;try{Ra(o)}catch(p){d=p}return function(f,u){if(f===void 0&&(f={}),d)throw d;if(0)var y;for(var h=!1,b={},g=0;g<c.length;g++){var x=c[g],N=o[x],C=f[x],w=N(C,u);if(typeof w>"u"){var A=u&&u.type;throw new Error(W(14))}b[x]=w,h=h||w!==C}return h=h||c.length!==Object.keys(f).length,h?b:f}}function Le(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function En(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),c=function(){throw new Error(W(15))},s={getState:i.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=t.map(function(p){return p(s)});return c=Le.apply(void 0,d)(i.dispatch),gt(gt({},i),{},{dispatch:c})}}}function An(r){var t=function(n){var i=n.dispatch,c=n.getState;return function(s){return function(d){return typeof d=="function"?d(i,c,r):s(d)}}};return t}var Rn=An();Rn.withExtraArgument=An;var yr=Rn;var Fn=function(){var r=function(t,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])},r(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pa=function(r,t){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,i,c,s;return s={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(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&&(c=f[0]&2?i.return:f[0]?i.throw||((c=i.return)&&c.call(i),0):i.next)&&!(c=c.call(i,f[1])).done)return c;switch(i=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=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(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){o.label=f[1];break}if(f[0]===6&&o.label<c[1]){o.label=c[1],c=f;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(f);break}c[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(r,o)}catch(u){f=[6,u],i=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},We=function(r,t){for(var o=0,n=t.length,i=r.length;o<n;o++,i++)r[i]=t[o];return r},ka=Object.defineProperty,La=Object.defineProperties,Wa=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,kn=function(r,t,o){return t in r?ka(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o},ce=function(r,t){for(var o in t||(t={}))Fa.call(t,o)&&kn(r,o,t[o]);if(Pn)for(var n=0,i=Pn(t);n<i.length;n++){var o=i[n];Ba.call(t,o)&&kn(r,o,t[o])}return r},hr=function(r,t){return La(r,Wa(t))},za=function(r,t,o){return new Promise(function(n,i){var c=function(p){try{d(o.next(p))}catch(f){i(f)}},s=function(p){try{d(o.throw(p))}catch(f){i(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(c,s)};d((o=o.apply(r,t)).next())})};var _a=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)},Mf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Ua(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Da=function(r){Fn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,We([void 0],o[0].concat(this)))):new(t.bind.apply(t,We([void 0],o.concat(this))))},t}(Array),Ma=function(r){Fn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,We([void 0],o[0].concat(this)))):new(t.bind.apply(t,We([void 0],o.concat(this))))},t}(Array);function br(r){return H(r)?ht(r,function(){}):r}function Ta(r){return typeof r=="boolean"}function Ha(){return function(t){return $a(t)}}function $a(r){r===void 0&&(r={});var t=r.thunk,o=t===void 0?!0:t,n=r.immutableCheck,i=n===void 0?!0:n,c=r.serializableCheck,s=c===void 0?!0:c,d=new Da;if(o&&(Ta(o)?d.push(yr):d.push(yr.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return d}var gr=!0;function Bn(r){var t=Ha(),o=r||{},n=o.reducer,i=n===void 0?void 0:n,c=o.middleware,s=c===void 0?t():c,d=o.devTools,p=d===void 0?!0:d,f=o.preloadedState,u=f===void 0?void 0:f,y=o.enhancers,h=y===void 0?void 0:y,b;if(typeof i=="function")b=i;else if(Ua(i))b=In(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 g=s;if(typeof g=="function"&&(g=g(t),!gr&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!gr&&g.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=En.apply(void 0,g),N=Le;p&&(N=_a(ce({trace:!gr},typeof p=="object"&&p)));var C=new Ma(x),w=C;Array.isArray(h)?w=We([x],h):typeof h=="function"&&(w=h(C));var A=N.apply(void 0,w);return ur(b,u,A)}function le(r,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var c=t.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return ce(ce({type:r,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function zn(r){var t={},o=[],n,i={addCase:function(c,s){var d=typeof c=="string"?c:c.type;if(d in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[d]=s,i},addMatcher:function(c,s){return o.push({matcher:c,reducer:s}),i},addDefaultCase:function(c){return n=c,i}};return r(i),[t,o,n]}function Ga(r){return typeof r=="function"}function ja(r,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?zn(t):[t,o,n],c=i[0],s=i[1],d=i[2],p;if(Ga(r))p=function(){return br(r())};else{var f=br(r);p=function(){return f}}function u(y,h){y===void 0&&(y=p());var b=We([c[h.type]],s.filter(function(g){var x=g.matcher;return x(h)}).map(function(g){var x=g.reducer;return x}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,x){if(x)if(Y(g)){var N=g,C=x(N,h);return C===void 0?g:C}else{if(H(g))return ht(g,function(w){return x(w,h)});var C=x(g,h);if(C===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return g},y)}return u.getInitialState=p,u}function Za(r,t){return r+"/"+t}function _n(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:br(r.initialState),n=r.reducers||{},i=Object.keys(n),c={},s={},d={};i.forEach(function(u){var y=n[u],h=Za(t,u),b,g;"reducer"in y?(b=y.reducer,g=y.prepare):b=y,c[u]=b,s[h]=b,d[u]=g?le(h,g):le(h)});function p(){var u=typeof r.extraReducers=="function"?zn(r.extraReducers):[r.extraReducers],y=u[0],h=y===void 0?{}:y,b=u[1],g=b===void 0?[]:b,x=u[2],N=x===void 0?void 0:x,C=ce(ce({},h),s);return ja(o,function(w){for(var A in C)w.addCase(A,C[A]);for(var I=0,X=g;I<X.length;I++){var Z=X[I];w.addMatcher(Z.matcher,Z.reducer)}N&&w.addDefaultCase(N)})}var f;return{name:t,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Ka="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Va=function(r){r===void 0&&(r=21);for(var t="",o=r;o--;)t+=Ka[Math.random()*64|0];return t},qa=["name","message","stack","code"],mr=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Ln=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Ya=function(r){if(typeof r=="object"&&r!==null){for(var t={},o=0,n=qa;o<n.length;o++){var i=n[o];typeof r[i]=="string"&&(t[i]=r[i])}return t}return{message:String(r)}},Gf=function(){function r(t,o,n){var i=le(t+"/fulfilled",function(u,y,h,b){return{payload:u,meta:hr(ce({},b||{}),{arg:h,requestId:y,requestStatus:"fulfilled"})}}),c=le(t+"/pending",function(u,y,h){return{payload:void 0,meta:hr(ce({},h||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=le(t+"/rejected",function(u,y,h,b,g){return{payload:b,error:(n&&n.serializeError||Ya)(u||"Rejected"),meta:hr(ce({},g||{}),{arg:h,requestId:y,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),d=!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,h,b){var g=n?.idGenerator?n.idGenerator(u):Va(),x=new p,N,C=!1;function w(I){N=I,x.abort()}var A=function(){return za(this,null,function(){var I,X,Z,Fe,Rr,Be,Pr;return Pa(this,function(ge){switch(ge.label){case 0:return ge.trys.push([0,4,,5]),Fe=(I=n?.condition)==null?void 0:I.call(n,u,{getState:h,extra:b}),Ja(Fe)?[4,Fe]:[3,2];case 1:Fe=ge.sent(),ge.label=2;case 2:if(Fe===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,Rr=new Promise(function(U,ze){return x.signal.addEventListener("abort",function(){return ze({name:"AbortError",message:N||"Aborted"})})}),y(c(g,u,(X=n?.getPendingMeta)==null?void 0:X.call(n,{requestId:g,arg:u},{getState:h,extra:b}))),[4,Promise.race([Rr,Promise.resolve(o(u,{dispatch:y,getState:h,extra:b,requestId:g,signal:x.signal,abort:w,rejectWithValue:function(U,ze){return new mr(U,ze)},fulfillWithValue:function(U,ze){return new Ln(U,ze)}})).then(function(U){if(U instanceof mr)throw U;return U instanceof Ln?i(U.payload,g,u,U.meta):i(U,g,u)})])];case 3:return Z=ge.sent(),[3,5];case 4:return Be=ge.sent(),Z=Be instanceof mr?s(null,g,u,Be.payload,Be.meta):s(Be,g,u),[3,5];case 5:return Pr=n&&!n.dispatchConditionRejection&&s.match(Z)&&Z.meta.condition,Pr||y(Z),[2,Z]}})})}();return Object.assign(A,{abort:w,requestId:g,arg:u,unwrap:function(){return A.then(Xa)}})}}return Object.assign(f,{pending:c,rejected:s,fulfilled:i,typePrefix:t})}return r.withTypes=function(){return r},r}();function Xa(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Ja(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Un="listener",Dn="completed",Mn="cancelled",jf="task-"+Mn,Zf="task-"+Dn,Kf=Un+"-"+Mn,Vf=Un+"-"+Dn;var xr="listenerMiddleware";var qf=le(xr+"/add"),Yf=le(xr+"/removeAll"),Xf=le(xr+"/remove");var Wn,Jf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Wn||(Wn=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Qa=function(r){return function(t){setTimeout(t,r)}},Qf=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Qa(10);Sn();function ei(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}var bt=class extends ei(Object){};window.ftReduxStores||(window.ftReduxStores={});var Tn=class r extends bt{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,c=window.ftReduxStores[n];if(He(c))return c;if(i==null)return;let s=_n({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),d=Bn({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 r(s,d)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new ct;let n=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,s)=>{let d=c,p=i[d];return p?(...f)=>{let u=p(...f.map(n));return this.reduxStore.dispatch(u),u}:f=>{this.setState({[d]:n(f)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ot=O(P());var xt=class extends ee{async listMySearches(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var vt=class extends ee{async listMyBookmarks(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ri="ft-user-assets",St=Ot.FtReduxStore.get({name:ri,initialState:{savedSearches:void 0,bookmarks:void 0}}),vr=class{constructor(){this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vt,this.savedSearchesService=new xt,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=S.getState();(0,Ot.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),St.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),St.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();St.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;St.actions.bookmarks(o)}}},Fp=new vr;var Sr=class{addCommand(t,o=!1){S.commands.add(t,o)}consumeCommand(t){return S.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Sr;var Hn=O(P()),Or=class{highlightHtml(t,o,n){(0,Hn.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Or;var $n=O(P());var Cr=class{isDate(t){var o,n,i,c;return(c=(i=((n=(o=S.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===t))===null||i===void 0?void 0:i.date)!==null&&c!==void 0?c:!1}format(t,o){var n,i,c;return $n.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(c=o?.withTime)!==null&&c!==void 0?c:!1)}};window.FluidTopicsDateService=new Cr;var oi=O(P());(0,Gn.customElement)("ft-app-context")(R);var qn=O(P());var Et=O(D()),At=O(M()),Rt=O(P());var jn=O(D());var Zn=jn.css`
|
|
119
|
+
`}update(t){var o,n,i,c,s;super.update(t),t.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&S.actions.noCustom(this.noCustom),t.has("editorMode")&&S.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&S.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ue.addContext(d)),t.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(S.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),S.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),S.actions.searchInAllLanguagesAllowed((s=(c=this.localesConfiguration)===null||c===void 0?void 0:c.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};R.elementDefinitions={};R.styles=qo;L([(0,F.property)()],R.prototype,"baseUrl",void 0);L([(0,F.property)()],R.prototype,"apiIntegrationIdentifier",void 0);L([(0,F.property)()],R.prototype,"uiLocale",void 0);L([(0,T.jsonProperty)(null)],R.prototype,"availableUiLocales",void 0);L([(0,T.jsonProperty)(null)],R.prototype,"metadataConfiguration",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"editorMode",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"noCustom",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"openExternalDocumentInNewTab",void 0);L([(0,F.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],R.prototype,"noCustomComponent",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"withManualResources",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"navigatorOnline",void 0);L([(0,F.property)({type:Boolean})],R.prototype,"forcedOffline",void 0);L([(0,F.property)({type:Object})],R.prototype,"apiProvider",void 0);L([(0,T.jsonProperty)([])],R.prototype,"messageContexts",void 0);L([(0,T.jsonProperty)(void 0)],R.prototype,"session",void 0);L([(0,F.state)()],R.prototype,"localesConfiguration",void 0);var ti=O(M());function ha(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var o,n,i;if(Array.isArray(r)){if(o=r.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!at(r[n],t[n]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;for(n of r.entries())if(!at(n[1],t.get(n[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();let c=s=>Object.keys(s).filter(d=>s[d]!=null);if(i=c(r),o=i.length,o!==c(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=o;n--!==0;){let s=i[n];if(!at(r[s],t[s]))return!1}return!0}return r!==r&&t!==t||r==null&&t==null}function at(r,t){try{return ha(r,t)}catch{return!1}}function it(r,t){return!at(r,t)}var ga=O(M(),1);var ct=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Te=O(M(),1);var Qo=O(M(),1);function en(r,t){let o=()=>JSON.parse(JSON.stringify(r));return(0,Qo.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:it,...t??{}})}var lt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,c=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(d){i(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var rn=O(D(),1);var st=window,ma=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nf=Symbol();var tn=(r,t)=>{ma?r.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):t.forEach(o=>{let n=document.createElement("style"),i=st.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,r.appendChild(n)})};var dt=class extends rn.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,c])=>t.registry.define(i,c)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return tn(n,t.elementStyles),n}};var ft=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},cn,on=Symbol("constructorPrototype"),nn=Symbol("constructorName"),ln=Symbol("exportpartsDebouncer"),an=Symbol("dynamicDependenciesLoaded"),re=class extends dt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cn]=new lt(5),this[nn]=this.constructor.name,this[on]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[nn]&&Object.setPrototypeOf(this,this[on])}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 t=this.constructor;t[an]||(t[an]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){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(c=>c.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ln].run(()=>{var i,c;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,i,c,s,d;let p=h=>h!=null&&h.trim().length>0,f=t.filter(p).map(h=>h.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let h of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(c=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&c!==void 0?c:[],g=(d=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(p).map(x=>x.trim()).forEach(x=>u.add(x))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(h=>f.map(b=>`${h}:${b}--${h}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};cn=ln;ft([(0,Te.property)()],re.prototype,"exportpartsPrefix",void 0);ft([en([])],re.prototype,"exportpartsPrefixes",void 0);ft([(0,Te.property)()],re.prototype,"customStylesheet",void 0);ft([(0,Te.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function He(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var sn,dn,fn,$e=Symbol("internalReduxEventsUnsubscribers"),oe=Symbol("internalStoresUnsubscribers"),ye=Symbol("internalStores"),Ge=class extends re{constructor(){super(...arguments),this[sn]=new Map,this[dn]=new Map,this[fn]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[ye].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ye].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[ye].get(t)}addStore(t,o){var n;o=(n=o??(He(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[ye].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[ye].delete(o)}setupStores(){this.unsubscribeFromStores(),this[ye].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[oe].has(t.store):this[oe].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[oe].set(t,o.subscribe(()=>this.updateFromStores())),this[$e].set(t,[]),He(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,c)=>{if(typeof this[c]=="function"&&(!i.store||o.name===i.store)){let s=d=>this[c](d);o.addEventListener(i.eventName,s),this[$e].get(t).push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oe].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[oe].has(t)&&this[oe].get(t)(),this[oe].delete(t),(o=this[$e].get(t))===null||o===void 0||o.forEach(n=>n()),this[$e].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};sn=oe,dn=ye,fn=$e;Ge.reduxProperties=new Map;Ge.reduxReactiveProperties=new Set;Ge.reduxEventListeners=new Map;function _(r){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,c;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Y(r){return!!r&&!!r[E]}function H(r){var t;return!!r&&(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)===Na}(r)||Array.isArray(r)||!!r[bn]||!!(!((t=r.constructor)===null||t===void 0)&&t[bn])||or(r)||nr(r))}function he(r,t,o){o===void 0&&(o=!1),ke(r)===0?(o?Object.keys:Pe)(r).forEach(function(n){o&&typeof n=="symbol"||t(n,r[n],r)}):r.forEach(function(n,i){return t(i,n,r)})}function ke(r){var t=r[E];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:or(r)?2:nr(r)?3:0}function Re(r,t){return ke(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function ba(r,t){return ke(r)===2?r.get(t):r[t]}function xn(r,t,o){var n=ke(r);n===2?r.set(t,o):n===3?r.add(o):r[t]=o}function vn(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function or(r){return Ca&&r instanceof Map}function nr(r){return wa&&r instanceof Set}function ne(r){return r.o||r.t}function ar(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Cn(r);delete t[E];for(var o=Pe(t),n=0;n<o.length;n++){var i=o[n],c=t[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),t)}function ir(r,t){return t===void 0&&(t=!1),cr(r)||Y(r)||!H(r)||(ke(r)>1&&(r.set=r.add=r.clear=r.delete=xa),Object.freeze(r),t&&he(r,function(o,n){return ir(n,!0)},!0)),r}function xa(){_(2)}function cr(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function G(r){var t=rr[r];return t||_(18,r),t}function va(r,t){rr[r]||(rr[r]=t)}function Qt(){return Ze}function qt(r,t){t&&(G("Patches"),r.u=[],r.s=[],r.v=t)}function pt(r){er(r),r.p.forEach(Sa),r.p=null}function er(r){r===Ze&&(Ze=r.l)}function pn(r){return Ze={p:[],l:Ze,h:r,m:!0,_:0}}function Sa(r){var t=r[E];t.i===0||t.i===1?t.j():t.g=!0}function Yt(r,t){t._=t.p.length;var o=t.p[0],n=r!==void 0&&r!==o;return t.h.O||G("ES5").S(t,r,n),n?(o[E].P&&(pt(t),_(4)),H(r)&&(r=ut(t,r),t.l||yt(t,r)),t.u&&G("Patches").M(o[E].t,r,t.u,t.s)):r=ut(t,o,[]),pt(t),t.u&&t.v(t.u,t.s),r!==On?r:void 0}function ut(r,t,o){if(cr(t))return t;var n=t[E];if(!n)return he(t,function(d,p){return un(r,n,t,d,p,o)},!0),t;if(n.A!==r)return t;if(!n.P)return yt(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ar(n.k):n.o,c=i,s=!1;n.i===3&&(c=new Set(i),i.clear(),s=!0),he(c,function(d,p){return un(r,n,i,d,p,o,s)}),yt(r,i,!1),o&&r.u&&G("Patches").N(n,o,r.u,r.s)}return n.o}function un(r,t,o,n,i,c,s){if(Y(i)){var d=ut(r,i,c&&t&&t.i!==3&&!Re(t.R,n)?c.concat(n):void 0);if(xn(o,n,d),!Y(d))return;r.m=!1}else s&&o.add(i);if(H(i)&&!cr(i)){if(!r.h.D&&r._<1)return;ut(r,i),t&&t.A.l||yt(r,i)}}function yt(r,t,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&ir(t,o)}function Xt(r,t){var o=r[E];return(o?ne(o):r)[t]}function yn(r,t){if(t in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ae(r){r.P||(r.P=!0,r.l&&ae(r.l))}function Jt(r){r.o||(r.o=ar(r.t))}function tr(r,t,o){var n=or(t)?G("MapSet").F(t,o):nr(t)?G("MapSet").T(t,o):r.O?function(i,c){var s=Array.isArray(i),d={i:s?1:0,A:c?c.A:Qt(),P:!1,I:!1,R:{},l:c,t:i,k:null,o:null,j:null,C:!1},p=d,f=Ke;s&&(p=[d],f=je);var u=Proxy.revocable(p,f),y=u.revoke,h=u.proxy;return d.k=h,d.j=y,h}(t,o):G("ES5").J(t,o);return(o?o.A:Qt()).p.push(n),n}function Oa(r){return Y(r)||_(22,r),function t(o){if(!H(o))return o;var n,i=o[E],c=ke(o);if(i){if(!i.P&&(i.i<4||!G("ES5").K(i)))return i.t;i.I=!0,n=hn(o,c),i.I=!1}else n=hn(o,c);return he(n,function(s,d){i&&ba(i.t,s)===d||xn(n,s,t(d))}),c===3?new Set(n):n}(r)}function hn(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return ar(r)}function Sn(){function r(s,d){var p=c[s];return p?p.enumerable=d:c[s]=p={configurable:!0,enumerable:d,get:function(){var f=this[E];return Ke.get(f,s)},set:function(f){var u=this[E];Ke.set(u,s,f)}},p}function t(s){for(var d=s.length-1;d>=0;d--){var p=s[d][E];if(!p.P)switch(p.i){case 5:n(p)&&ae(p);break;case 4:o(p)&&ae(p)}}}function o(s){for(var d=s.t,p=s.k,f=Pe(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==E){var h=d[y];if(h===void 0&&!Re(d,y))return!0;var b=p[y],g=b&&b[E];if(g?g.t!==h:!vn(b,h))return!0}}var x=!!d[E];return f.length!==Pe(d).length+(x?0:1)}function n(s){var d=s.k;if(d.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&_(3,JSON.stringify(ne(s)))}var c={};va("ES5",{J:function(s,d){var p=Array.isArray(s),f=function(y,h){if(y){for(var b=Array(h.length),g=0;g<h.length;g++)Object.defineProperty(b,""+g,r(g,!0));return b}var x=Cn(h);delete x[E];for(var N=Pe(x),C=0;C<N.length;C++){var w=N[C];x[w]=r(w,y||!!x[w].enumerable)}return Object.create(Object.getPrototypeOf(h),x)}(p,s),u={i:p?5:4,A:d?d.A:Qt(),P:!1,I:!1,R:{},l:d,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,E,{value:u,writable:!0}),f},S:function(s,d,p){p?Y(d)&&d[E].A===s&&t(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[E];if(y){var h=y.t,b=y.k,g=y.R,x=y.i;if(x===4)he(b,function(I){I!==E&&(h[I]!==void 0||Re(h,I)?g[I]||f(b[I]):(g[I]=!0,ae(y)))}),he(h,function(I){b[I]!==void 0||Re(b,I)||(g[I]=!1,ae(y))});else if(x===5){if(n(y)&&(ae(y),g.length=!0),b.length<h.length)for(var N=b.length;N<h.length;N++)g[N]=!1;else for(var C=h.length;C<b.length;C++)g[C]=!0;for(var w=Math.min(b.length,h.length),A=0;A<w;A++)b.hasOwnProperty(A)||(g[A]=!0),g[A]===void 0&&f(b[A])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var gn,Ze,lr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ca=typeof Map<"u",wa=typeof Set<"u",mn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",On=lr?Symbol.for("immer-nothing"):((gn={})["immer-nothing"]=!0,gn),bn=lr?Symbol.for("immer-draftable"):"__$immer_draftable",E=lr?Symbol.for("immer-state"):"__$immer_state";var Na=""+Object.prototype.constructor,Pe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Cn=Object.getOwnPropertyDescriptors||function(r){var t={};return Pe(r).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(r,o)}),t},rr={},Ke={get:function(r,t){if(t===E)return r;var o=ne(r);if(!Re(o,t))return function(i,c,s){var d,p=yn(c,s);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(i.k):void 0}(r,o,t);var n=o[t];return r.I||!H(n)?n:n===Xt(r.t,t)?(Jt(r),r.o[t]=tr(r.A.h,n,r)):n},has:function(r,t){return t in ne(r)},ownKeys:function(r){return Reflect.ownKeys(ne(r))},set:function(r,t,o){var n=yn(ne(r),t);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var i=Xt(ne(r),t),c=i?.[E];if(c&&c.t===o)return r.o[t]=o,r.R[t]=!1,!0;if(vn(o,i)&&(o!==void 0||Re(r.t,t)))return!0;Jt(r),ae(r)}return r.o[t]===o&&(o!==void 0||t in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[t])||(r.o[t]=o,r.R[t]=!0),!0},deleteProperty:function(r,t){return Xt(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Jt(r),ae(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var o=ne(r),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){_(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){_(12)}},je={};he(Ke,function(r,t){je[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),je.deleteProperty=function(r,t){return je.set.call(this,r,t,void 0)},je.set=function(r,t,o){return Ke.set.call(this,r[0],t,o,r[0])};var Ia=function(){function r(o){var n=this;this.O=mn,this.D=!0,this.produce=function(i,c,s){if(typeof i=="function"&&typeof c!="function"){var d=c;c=i;var p=n;return function(x){var N=this;x===void 0&&(x=d);for(var C=arguments.length,w=Array(C>1?C-1:0),A=1;A<C;A++)w[A-1]=arguments[A];return p.produce(x,function(I){var X;return(X=c).call.apply(X,[N,I].concat(w))})}}var f;if(typeof c!="function"&&_(6),s!==void 0&&typeof s!="function"&&_(7),H(i)){var u=pn(n),y=tr(n,i,void 0),h=!0;try{f=c(y),h=!1}finally{h?pt(u):er(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(x){return qt(u,s),Yt(x,u)},function(x){throw pt(u),x}):(qt(u,s),Yt(f,u))}if(!i||typeof i!="object"){if((f=c(i))===void 0&&(f=i),f===On&&(f=void 0),n.D&&ir(f,!0),s){var b=[],g=[];G("Patches").M(i,f,b,g),s(b,g)}return f}_(21,i)},this.produceWithPatches=function(i,c){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),h=1;h<u;h++)y[h-1]=arguments[h];return n.produceWithPatches(f,function(b){return i.apply(void 0,[b].concat(y))})};var s,d,p=n.produce(i,c,function(f,u){s=f,d=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,d]}):[p,s,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=r.prototype;return t.createDraft=function(o){H(o)||_(8),Y(o)&&(o=Oa(o));var n=pn(this),i=tr(this,o,void 0);return i[E].C=!0,er(n),i},t.finishDraft=function(o,n){var i=o&&o[E],c=i.A;return qt(c,n),Yt(void 0,c)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!mn&&_(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var c=n[i];if(c.path.length===0&&c.op==="replace"){o=c.value;break}}i>-1&&(n=n.slice(i+1));var s=G("Patches").$;return Y(o)?s(o,n):this.produce(o,function(d){return s(d,n)})},r}(),B=new Ia,Ea=B.produce,mf=B.produceWithPatches.bind(B),bf=B.setAutoFreeze.bind(B),xf=B.setUseProxies.bind(B),vf=B.applyPatches.bind(B),Sf=B.createDraft.bind(B),Of=B.finishDraft.bind(B),ht=Ea;function ie(r){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(r)}function sr(r,t){if(ie(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,t||"default");if(ie(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function dr(r){var t=sr(r,"string");return ie(t)==="symbol"?t:String(t)}function fr(r,t,o){return t=dr(t),t in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function wn(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),o.push.apply(o,n)}return o}function gt(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?wn(Object(o),!0).forEach(function(n){fr(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):wn(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function W(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Nn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},mt={INIT:"@@redux/INIT"+pr(),REPLACE:"@@redux/REPLACE"+pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pr()}};function Aa(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function ur(r,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(W(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(W(1));return o(ur)(r,t)}if(typeof r!="function")throw new Error(W(2));var i=r,c=t,s=[],d=s,p=!1;function f(){d===s&&(d=s.slice())}function u(){if(p)throw new Error(W(3));return c}function y(x){if(typeof x!="function")throw new Error(W(4));if(p)throw new Error(W(5));var N=!0;return f(),d.push(x),function(){if(N){if(p)throw new Error(W(6));N=!1,f();var w=d.indexOf(x);d.splice(w,1),s=null}}}function h(x){if(!Aa(x))throw new Error(W(7));if(typeof x.type>"u")throw new Error(W(8));if(p)throw new Error(W(9));try{p=!0,c=i(c,x)}finally{p=!1}for(var N=s=d,C=0;C<N.length;C++){var w=N[C];w()}return x}function b(x){if(typeof x!="function")throw new Error(W(10));i=x,h({type:mt.REPLACE})}function g(){var x,N=y;return x={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(W(11));function A(){w.next&&w.next(u())}A();var I=N(A);return{unsubscribe:I}}},x[Nn]=function(){return this},x}return h({type:mt.INIT}),n={dispatch:h,subscribe:y,getState:u,replaceReducer:b},n[Nn]=g,n}function Ra(r){Object.keys(r).forEach(function(t){var o=r[t],n=o(void 0,{type:mt.INIT});if(typeof n>"u")throw new Error(W(12));if(typeof o(void 0,{type:mt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(W(13))})}function In(r){for(var t=Object.keys(r),o={},n=0;n<t.length;n++){var i=t[n];typeof r[i]=="function"&&(o[i]=r[i])}var c=Object.keys(o),s,d;try{Ra(o)}catch(p){d=p}return function(f,u){if(f===void 0&&(f={}),d)throw d;if(0)var y;for(var h=!1,b={},g=0;g<c.length;g++){var x=c[g],N=o[x],C=f[x],w=N(C,u);if(typeof w>"u"){var A=u&&u.type;throw new Error(W(14))}b[x]=w,h=h||w!==C}return h=h||c.length!==Object.keys(f).length,h?b:f}}function Le(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function En(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),c=function(){throw new Error(W(15))},s={getState:i.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=t.map(function(p){return p(s)});return c=Le.apply(void 0,d)(i.dispatch),gt(gt({},i),{},{dispatch:c})}}}function An(r){var t=function(n){var i=n.dispatch,c=n.getState;return function(s){return function(d){return typeof d=="function"?d(i,c,r):s(d)}}};return t}var Rn=An();Rn.withExtraArgument=An;var yr=Rn;var Fn=function(){var r=function(t,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])},r(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pa=function(r,t){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,i,c,s;return s={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(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&&(c=f[0]&2?i.return:f[0]?i.throw||((c=i.return)&&c.call(i),0):i.next)&&!(c=c.call(i,f[1])).done)return c;switch(i=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=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(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){o.label=f[1];break}if(f[0]===6&&o.label<c[1]){o.label=c[1],c=f;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(f);break}c[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(r,o)}catch(u){f=[6,u],i=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},We=function(r,t){for(var o=0,n=t.length,i=r.length;o<n;o++,i++)r[i]=t[o];return r},ka=Object.defineProperty,La=Object.defineProperties,Wa=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,kn=function(r,t,o){return t in r?ka(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o},ce=function(r,t){for(var o in t||(t={}))Fa.call(t,o)&&kn(r,o,t[o]);if(Pn)for(var n=0,i=Pn(t);n<i.length;n++){var o=i[n];Ba.call(t,o)&&kn(r,o,t[o])}return r},hr=function(r,t){return La(r,Wa(t))},za=function(r,t,o){return new Promise(function(n,i){var c=function(p){try{d(o.next(p))}catch(f){i(f)}},s=function(p){try{d(o.throw(p))}catch(f){i(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(c,s)};d((o=o.apply(r,t)).next())})};var _a=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)},Mf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Ua(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Da=function(r){Fn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,We([void 0],o[0].concat(this)))):new(t.bind.apply(t,We([void 0],o.concat(this))))},t}(Array),Ma=function(r){Fn(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=r.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,We([void 0],o[0].concat(this)))):new(t.bind.apply(t,We([void 0],o.concat(this))))},t}(Array);function br(r){return H(r)?ht(r,function(){}):r}function Ta(r){return typeof r=="boolean"}function Ha(){return function(t){return $a(t)}}function $a(r){r===void 0&&(r={});var t=r.thunk,o=t===void 0?!0:t,n=r.immutableCheck,i=n===void 0?!0:n,c=r.serializableCheck,s=c===void 0?!0:c,d=new Da;if(o&&(Ta(o)?d.push(yr):d.push(yr.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return d}var gr=!0;function Bn(r){var t=Ha(),o=r||{},n=o.reducer,i=n===void 0?void 0:n,c=o.middleware,s=c===void 0?t():c,d=o.devTools,p=d===void 0?!0:d,f=o.preloadedState,u=f===void 0?void 0:f,y=o.enhancers,h=y===void 0?void 0:y,b;if(typeof i=="function")b=i;else if(Ua(i))b=In(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 g=s;if(typeof g=="function"&&(g=g(t),!gr&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!gr&&g.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=En.apply(void 0,g),N=Le;p&&(N=_a(ce({trace:!gr},typeof p=="object"&&p)));var C=new Ma(x),w=C;Array.isArray(h)?w=We([x],h):typeof h=="function"&&(w=h(C));var A=N.apply(void 0,w);return ur(b,u,A)}function le(r,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var c=t.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return ce(ce({type:r,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function zn(r){var t={},o=[],n,i={addCase:function(c,s){var d=typeof c=="string"?c:c.type;if(d in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[d]=s,i},addMatcher:function(c,s){return o.push({matcher:c,reducer:s}),i},addDefaultCase:function(c){return n=c,i}};return r(i),[t,o,n]}function Ga(r){return typeof r=="function"}function ja(r,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?zn(t):[t,o,n],c=i[0],s=i[1],d=i[2],p;if(Ga(r))p=function(){return br(r())};else{var f=br(r);p=function(){return f}}function u(y,h){y===void 0&&(y=p());var b=We([c[h.type]],s.filter(function(g){var x=g.matcher;return x(h)}).map(function(g){var x=g.reducer;return x}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,x){if(x)if(Y(g)){var N=g,C=x(N,h);return C===void 0?g:C}else{if(H(g))return ht(g,function(w){return x(w,h)});var C=x(g,h);if(C===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return g},y)}return u.getInitialState=p,u}function Za(r,t){return r+"/"+t}function _n(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:br(r.initialState),n=r.reducers||{},i=Object.keys(n),c={},s={},d={};i.forEach(function(u){var y=n[u],h=Za(t,u),b,g;"reducer"in y?(b=y.reducer,g=y.prepare):b=y,c[u]=b,s[h]=b,d[u]=g?le(h,g):le(h)});function p(){var u=typeof r.extraReducers=="function"?zn(r.extraReducers):[r.extraReducers],y=u[0],h=y===void 0?{}:y,b=u[1],g=b===void 0?[]:b,x=u[2],N=x===void 0?void 0:x,C=ce(ce({},h),s);return ja(o,function(w){for(var A in C)w.addCase(A,C[A]);for(var I=0,X=g;I<X.length;I++){var Z=X[I];w.addMatcher(Z.matcher,Z.reducer)}N&&w.addDefaultCase(N)})}var f;return{name:t,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Ka="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Va=function(r){r===void 0&&(r=21);for(var t="",o=r;o--;)t+=Ka[Math.random()*64|0];return t},qa=["name","message","stack","code"],mr=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Ln=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Ya=function(r){if(typeof r=="object"&&r!==null){for(var t={},o=0,n=qa;o<n.length;o++){var i=n[o];typeof r[i]=="string"&&(t[i]=r[i])}return t}return{message:String(r)}},Gf=function(){function r(t,o,n){var i=le(t+"/fulfilled",function(u,y,h,b){return{payload:u,meta:hr(ce({},b||{}),{arg:h,requestId:y,requestStatus:"fulfilled"})}}),c=le(t+"/pending",function(u,y,h){return{payload:void 0,meta:hr(ce({},h||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=le(t+"/rejected",function(u,y,h,b,g){return{payload:b,error:(n&&n.serializeError||Ya)(u||"Rejected"),meta:hr(ce({},g||{}),{arg:h,requestId:y,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),d=!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,h,b){var g=n?.idGenerator?n.idGenerator(u):Va(),x=new p,N,C=!1;function w(I){N=I,x.abort()}var A=function(){return za(this,null,function(){var I,X,Z,Fe,Rr,Be,Pr;return Pa(this,function(ge){switch(ge.label){case 0:return ge.trys.push([0,4,,5]),Fe=(I=n?.condition)==null?void 0:I.call(n,u,{getState:h,extra:b}),Ja(Fe)?[4,Fe]:[3,2];case 1:Fe=ge.sent(),ge.label=2;case 2:if(Fe===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,Rr=new Promise(function(U,ze){return x.signal.addEventListener("abort",function(){return ze({name:"AbortError",message:N||"Aborted"})})}),y(c(g,u,(X=n?.getPendingMeta)==null?void 0:X.call(n,{requestId:g,arg:u},{getState:h,extra:b}))),[4,Promise.race([Rr,Promise.resolve(o(u,{dispatch:y,getState:h,extra:b,requestId:g,signal:x.signal,abort:w,rejectWithValue:function(U,ze){return new mr(U,ze)},fulfillWithValue:function(U,ze){return new Ln(U,ze)}})).then(function(U){if(U instanceof mr)throw U;return U instanceof Ln?i(U.payload,g,u,U.meta):i(U,g,u)})])];case 3:return Z=ge.sent(),[3,5];case 4:return Be=ge.sent(),Z=Be instanceof mr?s(null,g,u,Be.payload,Be.meta):s(Be,g,u),[3,5];case 5:return Pr=n&&!n.dispatchConditionRejection&&s.match(Z)&&Z.meta.condition,Pr||y(Z),[2,Z]}})})}();return Object.assign(A,{abort:w,requestId:g,arg:u,unwrap:function(){return A.then(Xa)}})}}return Object.assign(f,{pending:c,rejected:s,fulfilled:i,typePrefix:t})}return r.withTypes=function(){return r},r}();function Xa(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Ja(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Un="listener",Dn="completed",Mn="cancelled",jf="task-"+Mn,Zf="task-"+Dn,Kf=Un+"-"+Mn,Vf=Un+"-"+Dn;var xr="listenerMiddleware";var qf=le(xr+"/add"),Yf=le(xr+"/removeAll"),Xf=le(xr+"/remove");var Wn,Jf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Wn||(Wn=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Qa=function(r){return function(t){setTimeout(t,r)}},Qf=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Qa(10);Sn();function ei(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}var bt=class extends ei(Object){};window.ftReduxStores||(window.ftReduxStores={});var Tn=class r extends bt{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,c=window.ftReduxStores[n];if(He(c))return c;if(i==null)return;let s=_n({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),d=Bn({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 r(s,d)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new ct;let n=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,s)=>{let d=c,p=i[d];return p?(...f)=>{let u=p(...f.map(n));return this.reduxStore.dispatch(u),u}:f=>{this.setState({[d]:n(f)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ot=O(P());var xt=class extends ee{async listMySearches(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var vt=class extends ee{async listMyBookmarks(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ri="ft-user-assets",St=Ot.FtReduxStore.get({name:ri,initialState:{savedSearches:void 0,bookmarks:void 0}}),vr=class{constructor(){this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vt,this.savedSearchesService=new xt,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=S.getState();(0,Ot.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),St.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),St.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();St.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;St.actions.bookmarks(o)}}},Fp=new vr;var Sr=class{addCommand(t,o=!1){S.commands.add(t,o)}consumeCommand(t){return S.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Sr;var Hn=O(P()),Or=class{highlightHtml(t,o,n){(0,Hn.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Or;var $n=O(P());var Cr=class{isDate(t){var o,n,i,c;return(c=(i=((n=(o=S.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===t))===null||i===void 0?void 0:i.date)!==null&&c!==void 0?c:!1}format(t,o){var n,i,c;return $n.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(c=o?.withTime)!==null&&c!==void 0?c:!1)}};window.FluidTopicsDateService=new Cr;var oi=O(P());(0,Gn.customElement)("ft-app-context")(R);var qn=O(P());var Et=O(D()),At=O(M()),Rt=O(P());var jn=O(D());var Zn=jn.css`
|
|
120
120
|
`;var Nt=O(P());var Vn=O(M()),ni=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},wr=Symbol("i18nAttributes"),Nr=Symbol("i18nListAttributes"),Ct=Symbol("i18nProperties"),Ir=Symbol("i18nManualContexts"),Ve=Symbol("i18nUnsubs");function It(r){var t,o;class n extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Xo:ue}i18n(c,s,...d){var p;if(typeof c=="string")return this.i18nService.resolveMessage(c,s,...d);let f=(p=c.args)!==null&&p!==void 0?p:c.argsProvider?c.argsProvider(this):[];return this.i18nService.resolveMessage(c.context,c.key,...f)}onI18nUpdate(c){var s,d,p;(s=this[wr])===null||s===void 0||s.forEach((f,u)=>{let y=this.getI18nAttributeValue(u);y&&(this[u]=this.getI18nAttributeMessage(y,f,c))}),(d=this[Nr])===null||d===void 0||d.forEach((f,u)=>{let y=this.getI18nListAttributeValues(u);this[u]=y?.map(h=>this.getI18nAttributeMessage(h,f,c))}),(p=this[Ct])===null||p===void 0||p.forEach((f,u)=>{f.context.toLowerCase()===c.toLowerCase()&&(this[u]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(c,s){return{...c,message:this.i18n({context:c.context,key:c.key,...s})}}getI18nAttributeMessage(c,s,d){var p;let f=!d||((p=c.context)===null||p===void 0?void 0:p.toLowerCase())===d.toLowerCase();return c.context&&c.key&&f?this.buildI18nAttributeMessage(c,s):c}update(c){var s,d,p;super.update(c),(s=this[wr])===null||s===void 0||s.forEach((f,u)=>{let y=this.getI18nAttributeValue(u);y?.context&&y.key&&(c.has(u)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(y,c,u),this[u]=this.getI18nAttributeMessage(y,f))}),(d=this[Nr])===null||d===void 0||d.forEach((f,u)=>{let y=this.getI18nListAttributeValues(u);(c.has(u)||f.argsProvider!=null)&&(this[u]=y?.map(h=>(this.addI18nContextIfNeeded(h,c,u),this.getI18nAttributeMessage(h,f))))}),(p=this[Ct])===null||p===void 0||p.forEach((f,u)=>{f.argsProvider!=null&&(this[u]=this.i18n(f))})}getI18nAttributeValue(c){return this[c]}getI18nListAttributeValues(c){return this[c]}addI18nContextIfNeeded(c,s,d){c.context&&c.key&&s.has(d)&&this.addI18nContext(c.context)}addI18nMessagesAndSubscribe(c,s){c=c.toLowerCase(),this[Ve].has(c)||this[Ve].set(c,this.i18nService.subscribe(c,()=>this.onI18nUpdate(c))),this.i18nService.prepareContext(c,s??{}),this.onI18nUpdate(c)}connectedCallback(){var c,s,d,p,f,u;super.connectedCallback(),new Set([...(s=(c=this[Ct])===null||c===void 0?void 0:c.values())!==null&&s!==void 0?s:[],...[...(p=(d=this[wr])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].map(y=>this.getI18nAttributeValue(y)),...[...(u=(f=this[Nr])===null||f===void 0?void 0:f.keys())!==null&&u!==void 0?u:[]].flatMap(y=>this.getI18nListAttributeValues(y))].map(y=>y?.context)).forEach(y=>y&&this.addI18nMessages(y)),this[Ir].forEach((y,h)=>{this.addI18nMessages(h,y)})}addI18nMessages(c,s){this[Ir].set(c,s??{}),this.addI18nMessagesAndSubscribe(c,s)}addI18nContext(c,s){this.addI18nMessages(typeof c=="string"?c:c.name,s)}disconnectedCallback(){super.disconnectedCallback(),this[Ve].forEach(c=>c()),this[Ve].clear()}}return t=Ir,o=Ve,ni([(0,Vn.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Kn=class extends It(Nt.FtLitElement){},wt=class extends It(Nt.FtLitElementRedux){};var qe=function(r,t,o,n){var i=arguments.length,c=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(s=r[d])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},$=class extends wt{constructor(){super(),this.editorMode=!1,this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Et.nothing:Et.html`
|
|
121
121
|
<span class="ft-i18n">
|
|
122
122
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|