@fluid-topics/ft-search-selected-facets 1.1.112 → 1.1.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
`;var Ss=h(w()),Os=h(j());var ht=h(w());var na=h(w()),Bd={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setRequestClusterSortCriterion:(t,e)=>{var o;t.request.clusterSortCriterions=(o=e.payload)!==null&&o!==void 0?o:[]},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}},ia=t=>na.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Bd});var Md=h(sa(),1);var la;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(la||(la={}));var ca;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ca||(ca={}));var da;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(da||(da={}));var pa;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(pa||(pa={}));var fa;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(fa||(fa={}));var ua;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ua||(ua={}));var ha;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ha||(ha={}));var ma;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ma||(ma={}));var ya;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(ya||(ya={}));var ga;(function(t){t.ASC="ASC",t.DESC="DESC"})(ga||(ga={}));var ba;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ba||(ba={}));var Cr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Cr||(Cr={}));var xa;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(xa||(xa={}));var va;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(va||(va={}));var Sa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Sa||(Sa={}));var Ro;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ro||(Ro={}));var Oa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Oa||(Oa={}));var Er;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(Er||(Er={}));var de;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(de||(de={}));var Ca;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ca||(Ca={}));var yf={[de.PERSONAL_BOOK_SHARE_USER]:[de.PERSONAL_BOOK_USER],[de.HTML_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.PDF_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.KHUB_ADMIN]:[de.CONTENT_PUBLISHER],[de.ADMIN]:[de.KHUB_ADMIN,de.USERS_ADMIN,de.PORTAL_ADMIN],[de.DEVELOPER]:[de.BETA_USER,de.DEBUG_USER]};var vs=h(w());var Na=h(I()),Ge=h(j()),Je=h(w());var Ea=h(I());var wa=Ea.css`
|
|
13
13
|
`;var No=h(w()),Ud="ft-app-info",kn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},zd={session:(t,e)=>{(0,No.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.eventBus.dispatchEvent(new kn(e.payload)),0))}},P=No.FtReduxStore.get({name:Ud,reducers:zd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Dt=h(w());var _n=h(w());var rr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=P.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var ft=class{constructor(e=!0,o){var n;this.overrideApi=o;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new _n.CacheRegistry,this.cache=e?i.commonCache:new _n.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:rr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):rr.await()}clearCache(){this.cache.clearAll()}};var Aa,Wd=Symbol("clearAfterUnitTest"),To=class extends ft{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Aa]=()=>{this.defaultMessages={},this.cache=new Dt.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,Dt.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Dt.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Dt.delay)(0).then(()=>o()).catch(()=>null)))}};Aa=Wd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends To{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends To{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var or=window.FluidTopicsI18nService,Ra=window.FluidTopicsCustomI18nService;var Ee=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},te=class extends Je.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>rr.get(),this.messageContexts=[],this.cache=new Je.CacheRegistry,this.cleanSessionDebouncer=new Je.Debouncer}render(){return Na.html`
|
|
14
14
|
<slot></slot>
|
|
15
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("availableUiLocales")&&P.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>or.addContext(o)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};te.elementDefinitions={};te.styles=wa;Ee([(0,Ge.property)()],te.prototype,"baseUrl",void 0);Ee([(0,Ge.property)()],te.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,Ge.property)()],te.prototype,"uiLocale",void 0);Ee([(0,Je.jsonProperty)(null)],te.prototype,"availableUiLocales",void 0);Ee([(0,Je.jsonProperty)(null)],te.prototype,"metadataConfiguration",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"editorMode",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"noCustom",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,Ge.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],te.prototype,"noCustomComponent",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"withManualResources",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"navigatorOnline",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"forcedOffline",void 0);Ee([(0,Ge.property)({type:Object})],te.prototype,"apiProvider",void 0);Ee([(0,Je.jsonProperty)([])],te.prototype,"messageContexts",void 0);Ee([(0,Je.jsonProperty)(void 0)],te.prototype,"session",void 0);var Np=h(j());function Hd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Lo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Lo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!Lo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Lo(t,e){try{return Hd(t,e)}catch{return!1}}function Dn(t,e){return!Lo(t,e)}var Vd=h(j(),1);var Io=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Xr=h(j(),1);var Ta=h(j(),1);function La(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,Ta.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:Dn,...e??{}})}var Po=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pa=h(I(),1);var ko=window,jd=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qf=Symbol();var Ia=(t,e)=>{jd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=ko.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var _o=class extends Pa.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ia(n,e.elementStyles),n}};var Do=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},$a,ka=Symbol("constructorPrototype"),_a=Symbol("constructorName"),Fa=Symbol("exportpartsDebouncer"),Da=Symbol("dynamicDependenciesLoaded"),$t=class extends _o{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$a]=new Po(5),this[_a]=this.constructor.name,this[ka]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[_a]&&Object.setPrototypeOf(this,this[ka])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Da]||(e[Da]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Fa].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,i,a,s,c;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],x=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...v,...x).filter(p).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>f.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};$a=Fa;Do([(0,Xr.property)()],$t.prototype,"exportpartsPrefix",void 0);Do([La([])],$t.prototype,"exportpartsPrefixes",void 0);Do([(0,Xr.property)()],$t.prototype,"customStylesheet",void 0);Do([(0,Xr.state)()],$t.prototype,"useAdoptedStyleSheets",void 0);function Qr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ba,Ma,Ua,$o=Symbol("internalReduxEventsUnsubscribers"),Ft=Symbol("internalStoresUnsubscribers"),nr=Symbol("internalStores"),Jr=class extends $t{constructor(){super(...arguments),this[Ba]=new Map,this[Ma]=new Map,this[Ua]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[nr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[nr].get(e)}addStore(e,o){var n;o=(n=o??(Qr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[nr].delete(o)}setupStore(e,o){this[nr].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[nr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[Ft].has(e.store):this[Ft].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[Ft].set(e,o.subscribe(()=>this.updateFromStores())),Qr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=c=>this[a](c);o.eventBus.addEventListener(i.eventName,s),this[$o].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Ft].forEach((e,o)=>this.unsubscribeFromStore(o)),this[$o].forEach(e=>e()),this[$o]=[]}unsubscribeFromStore(e){this[Ft].has(e)&&this[Ft].get(e)(),this[Ft].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ba=Ft,Ma=nr,Ua=$o;Jr.reduxProperties=new Map;Jr.reduxReactiveProperties=new Set;Jr.reduxEventListeners=new Map;function Ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vt(t){return!!t&&!!t[Y]}function et(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Jd}(t)||Array.isArray(t)||!!t[Ka]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ka])||Vn(t)||jn(t))}function ir(t,e,o){o===void 0&&(o=!1),Rr(t)===0?(o?Object.keys:Ar)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Rr(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Vn(t)?2:jn(t)?3:0}function wr(t,e){return Rr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Gd(t,e){return Rr(t)===2?t.get(e):t[e]}function Za(t,e,o){var n=Rr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function qa(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Vn(t){return Xd&&t instanceof Map}function jn(t){return Qd&&t instanceof Set}function Bt(t){return t.o||t.t}function Gn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Qa(t);delete e[Y];for(var o=Ar(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Kn(t,e){return e===void 0&&(e=!1),Zn(t)||vt(t)||!et(t)||(Rr(t)>1&&(t.set=t.add=t.clear=t.delete=Kd),Object.freeze(t),e&&ir(t,function(o,n){return Kn(n,!0)},!0)),t}function Kd(){Ke(2)}function Zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ut(t){var e=Hn[t];return e||Ke(18,t),e}function Zd(t,e){Hn[t]||(Hn[t]=e)}function Un(){return to}function $n(t,e){e&&(ut("Patches"),t.u=[],t.s=[],t.v=e)}function Fo(t){zn(t),t.p.forEach(qd),t.p=null}function zn(t){t===to&&(to=t.l)}function za(t){return to={p:[],l:to,h:t,m:!0,_:0}}function qd(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Fn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||ut("ES5").S(e,t,n),n?(o[Y].P&&(Fo(e),Ke(4)),et(t)&&(t=Bo(e,t),e.l||Mo(e,t)),e.u&&ut("Patches").M(o[Y].t,t,e.u,e.s)):t=Bo(e,o,[]),Fo(e),e.u&&e.v(e.u,e.s),t!==Xa?t:void 0}function Bo(t,e,o){if(Zn(e))return e;var n=e[Y];if(!n)return ir(e,function(c,p){return Wa(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Mo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Gn(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),ir(a,function(c,p){return Wa(t,n,i,c,p,o,s)}),Mo(t,i,!1),o&&t.u&&ut("Patches").N(n,o,t.u,t.s)}return n.o}function Wa(t,e,o,n,i,a,s){if(vt(i)){var c=Bo(t,i,a&&e&&e.i!==3&&!wr(e.R,n)?a.concat(n):void 0);if(Za(o,n,c),!vt(c))return;t.m=!1}else s&&o.add(i);if(et(i)&&!Zn(i)){if(!t.h.D&&t._<1)return;Bo(t,i),e&&e.A.l||Mo(t,i)}}function Mo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Kn(e,o)}function Bn(t,e){var o=t[Y];return(o?Bt(o):t)[e]}function Ha(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Mt(t){t.P||(t.P=!0,t.l&&Mt(t.l))}function Mn(t){t.o||(t.o=Gn(t.t))}function Wn(t,e,o){var n=Vn(e)?ut("MapSet").F(e,o):jn(e)?ut("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Un(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,f=ro;s&&(p=[c],f=eo);var m=Proxy.revocable(p,f),y=m.revoke,g=m.proxy;return c.k=g,c.j=y,g}(e,o):ut("ES5").J(e,o);return(o?o.A:Un()).p.push(n),n}function Yd(t){return vt(t)||Ke(22,t),function e(o){if(!et(o))return o;var n,i=o[Y],a=Rr(o);if(i){if(!i.P&&(i.i<4||!ut("ES5").K(i)))return i.t;i.I=!0,n=Va(o,a),i.I=!1}else n=Va(o,a);return ir(n,function(s,c){i&&Gd(i.t,s)===c||Za(n,s,e(c))}),a===3?new Set(n):n}(t)}function Va(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Gn(t)}function Ya(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var f=this[Y];return ro.get(f,s)},set:function(f){var m=this[Y];ro.set(m,s,f)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][Y];if(!p.P)switch(p.i){case 5:n(p)&&Mt(p);break;case 4:o(p)&&Mt(p)}}}function o(s){for(var c=s.t,p=s.k,f=Ar(p),m=f.length-1;m>=0;m--){var y=f[m];if(y!==Y){var g=c[y];if(g===void 0&&!wr(c,y))return!0;var v=p[y],x=v&&v[Y];if(x?x.t!==g:!qa(v,g))return!0}}var S=!!c[Y];return f.length!==Ar(c).length+(S?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Ke(3,JSON.stringify(Bt(s)))}var a={};Zd("ES5",{J:function(s,c){var p=Array.isArray(s),f=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var S=Qa(g);delete S[Y];for(var T=Ar(S),R=0;R<T.length;R++){var N=T[R];S[N]=t(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),m={i:p?5:4,A:c?c.A:Un(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Y,{value:m,writable:!0}),f},S:function(s,c,p){p?vt(c)&&c[Y].A===s&&e(s.p):(s.u&&function f(m){if(m&&typeof m=="object"){var y=m[Y];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)ir(v,function(D){D!==Y&&(g[D]!==void 0||wr(g,D)?x[D]||f(v[D]):(x[D]=!0,Mt(y)))}),ir(g,function(D){v[D]!==void 0||wr(v,D)||(x[D]=!1,Mt(y))});else if(S===5){if(n(y)&&(Mt(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),k=0;k<N;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&f(v[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ja,to,qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xd=typeof Map<"u",Qd=typeof Set<"u",Ga=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xa=qn?Symbol.for("immer-nothing"):((ja={})["immer-nothing"]=!0,ja),Ka=qn?Symbol.for("immer-draftable"):"__$immer_draftable",Y=qn?Symbol.for("immer-state"):"__$immer_state";var Jd=""+Object.prototype.constructor,Ar=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Qa=Object.getOwnPropertyDescriptors||function(t){var e={};return Ar(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Hn={},ro={get:function(t,e){if(e===Y)return t;var o=Bt(t);if(!wr(o,e))return function(i,a,s){var c,p=Ha(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!et(n)?n:n===Bn(t.t,e)?(Mn(t),t.o[e]=Wn(t.A.h,n,t)):n},has:function(t,e){return e in Bt(t)},ownKeys:function(t){return Reflect.ownKeys(Bt(t))},set:function(t,e,o){var n=Ha(Bt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Bn(Bt(t),e),a=i?.[Y];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(qa(o,i)&&(o!==void 0||wr(t.t,e)))return!0;Mn(t),Mt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Bn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Mn(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Bt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ke(12)}},eo={};ir(ro,function(t,e){eo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),eo.deleteProperty=function(t,e){return eo.set.call(this,t,e,void 0)},eo.set=function(t,e,o){return ro.set.call(this,t[0],e,o,t[0])};var ep=function(){function t(o){var n=this;this.O=Ga,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(S){var T=this;S===void 0&&(S=c);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return p.produce(S,function(D){var B;return(B=a).call.apply(B,[T,D].concat(N))})}}var f;if(typeof a!="function"&&Ke(6),s!==void 0&&typeof s!="function"&&Ke(7),et(i)){var m=za(n),y=Wn(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Fo(m):zn(m)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return $n(m,s),Fn(S,m)},function(S){throw Fo(m),S}):($n(m,s),Fn(f,m))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Xa&&(f=void 0),n.D&&Kn(f,!0),s){var v=[],x=[];ut("Patches").M(i,f,v,x),s(v,x)}return f}Ke(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(v){return i.apply(void 0,[v].concat(y))})};var s,c,p=n.produce(i,a,function(f,m){s=f,c=m});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,c]}):[p,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){et(o)||Ke(8),vt(o)&&(o=Yd(o));var n=za(this),i=Wn(this,o,void 0);return i[Y].C=!0,zn(n),i},e.finishDraft=function(o,n){var i=o&&o[Y],a=i.A;return $n(a,n),Fn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ga&&Ke(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ut("Patches").$;return vt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Me=new ep,tp=Me.produce,su=Me.produceWithPatches.bind(Me),lu=Me.setAutoFreeze.bind(Me),cu=Me.setUseProxies.bind(Me),du=Me.applyPatches.bind(Me),pu=Me.createDraft.bind(Me),fu=Me.finishDraft.bind(Me),Uo=tp;function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function Yn(t,e){if(Ut(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xn(t){var e=Yn(t,"string");return Ut(e)==="symbol"?e:String(e)}function Qn(t,e,o){return e=Xn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ja(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function zo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ja(Object(o),!0).forEach(function(n){Qn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ja(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var es=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wo={INIT:"@@redux/INIT"+Jn(),REPLACE:"@@redux/REPLACE"+Jn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jn()}};function rp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ei(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(ei)(t,e)}if(typeof t!="function")throw new Error(ve(2));var i=t,a=e,s=[],c=s,p=!1;function f(){c===s&&(c=s.slice())}function m(){if(p)throw new Error(ve(3));return a}function y(S){if(typeof S!="function")throw new Error(ve(4));if(p)throw new Error(ve(5));var T=!0;return f(),c.push(S),function(){if(T){if(p)throw new Error(ve(6));T=!1,f();var N=c.indexOf(S);c.splice(N,1),s=null}}}function g(S){if(!rp(S))throw new Error(ve(7));if(typeof S.type>"u")throw new Error(ve(8));if(p)throw new Error(ve(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var T=s=c,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ve(10));i=S,g({type:Wo.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ve(11));function k(){N.next&&N.next(m())}k();var D=T(k);return{unsubscribe:D}}},S[es]=function(){return this},S}return g({type:Wo.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[es]=x,n}function op(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Wo.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:Wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function ts(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{op(o)}catch(p){c=p}return function(f,m){if(f===void 0&&(f={}),c)throw c;if(0)var y;for(var g=!1,v={},x=0;x<a.length;x++){var S=a[x],T=o[S],R=f[S],N=T(R,m);if(typeof N>"u"){var k=m&&m.type;throw new Error(ve(14))}v[S]=N,g=g||N!==R}return g=g||a.length!==Object.keys(f).length,g?v:f}}function Nr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function rs(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ve(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=Nr.apply(void 0,c)(i.dispatch),zo(zo({},i),{},{dispatch:a})}}}function os(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var ns=os();ns.withExtraArgument=os;var ti=ns;var cs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),np=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(m){return p([f,m])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(m){f=[6,m],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Tr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ip=Object.defineProperty,ap=Object.defineProperties,sp=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,lp=Object.prototype.hasOwnProperty,cp=Object.prototype.propertyIsEnumerable,as=function(t,e,o){return e in t?ip(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},zt=function(t,e){for(var o in e||(e={}))lp.call(e,o)&&as(t,o,e[o]);if(is)for(var n=0,i=is(e);n<i.length;n++){var o=i[n];cp.call(e,o)&&as(t,o,e[o])}return t},ri=function(t,e){return ap(t,sp(e))},dp=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(f){i(f)}},s=function(p){try{c(o.throw(p))}catch(f){i(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var pp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Nr:Nr.apply(null,arguments)},Lu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function fp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var up=function(t){cs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Tr([void 0],o.concat(this))))},e}(Array),hp=function(t){cs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Tr([void 0],o.concat(this))))},e}(Array);function ii(t){return et(t)?Uo(t,function(){}):t}function mp(t){return typeof t=="boolean"}function yp(){return function(e){return gp(e)}}function gp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new up;if(o&&(mp(o)?c.push(ti):c.push(ti.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return c}var oi=!0;function ds(t){var e=yp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,m=f===void 0?void 0:f,y=o.enhancers,g=y===void 0?void 0:y,v;if(typeof i=="function")v=i;else if(fp(i))v=ts(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 x=s;if(typeof x=="function"&&(x=x(e),!oi&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!oi&&x.some(function(D){return typeof D!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=rs.apply(void 0,x),T=Nr;p&&(T=pp(zt({trace:!oi},typeof p=="object"&&p)));var R=new hp(S),N=R;Array.isArray(g)?N=Tr([S],g):typeof g=="function"&&(N=g(R));var k=T.apply(void 0,N);return ei(v,m,k)}function Wt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ps(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function bp(t){return typeof t=="function"}function xp(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?ps(e):[e,o,n],a=i[0],s=i[1],c=i[2],p;if(bp(t))p=function(){return ii(t())};else{var f=ii(t);p=function(){return f}}function m(y,g){y===void 0&&(y=p());var v=Tr([a[g.type]],s.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[c]),v.reduce(function(x,S){if(S)if(vt(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(et(x))return Uo(x,function(N){return S(N,g)});var R=S(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return m.getInitialState=p,m}function vp(t,e){return t+"/"+e}function fs(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ii(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(m){var y=n[m],g=vp(e,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,a[m]=v,s[g]=v,c[m]=x?Wt(g,x):Wt(g)});function p(){var m=typeof t.extraReducers=="function"?ps(t.extraReducers):[t.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=zt(zt({},g),s);return xp(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var D=0,B=x;D<B.length;D++){var Ie=B[D];N.addMatcher(Ie.matcher,Ie.reducer)}T&&N.addDefaultCase(T)})}var f;return{name:e,reducer:function(m,y){return f||(f=p()),f(m,y)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Sp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Op=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Sp[Math.random()*64|0];return e},Cp=["name","message","stack","code"],ni=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ss=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ep=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Cp;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},_u=function(){function t(e,o,n){var i=Wt(e+"/fulfilled",function(m,y,g,v){return{payload:m,meta:ri(zt({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(m,y,g){return{payload:void 0,meta:ri(zt({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||Ep)(m||"Rejected"),meta:ri(zt({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function f(m){return function(y,g,v){var x=n?.idGenerator?n.idGenerator(m):Op(),S=new p,T,R=!1;function N(D){T=D,S.abort()}var k=function(){return dp(this,null,function(){var D,B,Ie,dt,Ce,pt,me;return np(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),dt=(D=n?.condition)==null?void 0:D.call(n,m,{getState:g,extra:v}),Ap(dt)?[4,dt]:[3,2];case 1:dt=u.sent(),u.label=2;case 2:if(dt===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,Ce=new Promise(function(b,L){return S.signal.addEventListener("abort",function(){return L({name:"AbortError",message:T||"Aborted"})})}),y(a(x,m,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([Ce,Promise.resolve(o(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,L){return new ni(b,L)},fulfillWithValue:function(b,L){return new ss(b,L)}})).then(function(b){if(b instanceof ni)throw b;return b instanceof ss?i(b.payload,x,m,b.meta):i(b,x,m)})])];case 3:return Ie=u.sent(),[3,5];case 4:return pt=u.sent(),Ie=pt instanceof ni?s(null,x,m,pt.payload,pt.meta):s(pt,x,m),[3,5];case 5:return me=n&&!n.dispatchConditionRejection&&s.match(Ie)&&Ie.meta.condition,me||y(Ie),[2,Ie]}})})}();return Object.assign(k,{abort:N,requestId:x,arg:m,unwrap:function(){return k.then(wp)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function wp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ap(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var us="listener",hs="completed",ms="cancelled",Du="task-"+ms,$u="task-"+hs,Fu=us+"-"+ms,Bu=us+"-"+hs;var ai="listenerMiddleware";var Mu=Wt(ai+"/add"),Uu=Wt(ai+"/removeAll"),zu=Wt(ai+"/remove");var ls,Wu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ls||(ls=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Rp=function(t){return function(e){setTimeout(e,t)}},Hu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Rp(10);Ya();window.ftReduxStores||(window.ftReduxStores={});var ys=class t{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Qr(a))return a;if(i==null)return;let s=fs({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=ds({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Io,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=h(w());var Ho=class extends ft{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Vo=class extends ft{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Tp="ft-user-assets",jo=Go.FtReduxStore.get({name:Tp,initialState:{savedSearches:void 0,bookmarks:void 0}}),si=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vo,this.savedSearchesService=new Ho,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Go.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),jo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),jo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();jo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;jo.actions.bookmarks(o)}}},gs=new si;var li=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new li;var bs=h(w()),ci=class{highlightHtml(e,o,n){(0,bs.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ci;var xs=h(w());var di=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return xs.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new di;(0,vs.customElement)("ft-app-context")(te);var Ko=class extends ft{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}};var no=t=>t.request.virtualField===Cr.TITLE_ONLY&&t.request.scope===Er.DOCUMENTS,Zo=class t extends Event{constructor(){super(t.eventName)}};Zo.eventName="search-context-clear-all-filters";var oo=class t{static build(e,o){return new t(ia(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new ht.Debouncer(10),this.searchDebouncer=new ht.Debouncer(100),this.suggestDebouncer=new ht.Debouncer(300),this.service=o??new Ko}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let o=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(o){let i=a=>o.some(s=>s.lang==a);i(e)||(e=i(n)?n:o[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Cr.TITLE_ONLY),this.store.actions.setRequestScope(Er.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Cr.EVERYWHERE),this.store.actions.setRequestScope(Er.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return no(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Zo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(i=>i!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,o){this.setValueFilter(e,o)}setValueFilter(e,o){let n=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:o,negative:!1}},a=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,o){let n=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:o}},a=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(i=>!i.dateFilter),...o.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(n)}setRangeFilter(e,o,n){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:o,to:n}},s=[...i.filter(c=>!c.rangeFilter),...i.filter(c=>c.rangeFilter&&c.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(i=>!i.rangeFilter),...o.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,ht.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let a=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof ht.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,i={input:o.liveQuery,metadataFilters:n.metadataFilters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,ht.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(o){!(o instanceof ht.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}};var Lp=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},fi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},pi=Symbol("registerInterval");function Ip(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[pi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[pi]):this.dispatchEvent(new fi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=pi,Lp([(0,Os.state)()],o.prototype,"stateManager",void 0),o}var Ht=class extends Ip(Ss.FtLitElementRedux){};var Bi=h(w());var hn=h(I()),Re=h(j()),Dc=h(Vt()),yn=h(w());var ks=h(w());var Is=h(I()),ge=h(j()),Ps=h(Vt()),io=h(w());var Ts=h(I()),ae=h(w()),Es=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorContent),U={color:Es,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",Es),opacityContentOnSurfacePressed:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ae.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ws=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorPrimary),As={color:ws,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",ws)},Rs=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorSecondary),Ns={color:Rs,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",Rs)},Ls=Ts.css`
|
|
15
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("availableUiLocales")&&P.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>or.addContext(o)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};te.elementDefinitions={};te.styles=wa;Ee([(0,Ge.property)()],te.prototype,"baseUrl",void 0);Ee([(0,Ge.property)()],te.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,Ge.property)()],te.prototype,"uiLocale",void 0);Ee([(0,Je.jsonProperty)(null)],te.prototype,"availableUiLocales",void 0);Ee([(0,Je.jsonProperty)(null)],te.prototype,"metadataConfiguration",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"editorMode",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"noCustom",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,Ge.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],te.prototype,"noCustomComponent",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"withManualResources",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"navigatorOnline",void 0);Ee([(0,Ge.property)({type:Boolean})],te.prototype,"forcedOffline",void 0);Ee([(0,Ge.property)({type:Object})],te.prototype,"apiProvider",void 0);Ee([(0,Je.jsonProperty)([])],te.prototype,"messageContexts",void 0);Ee([(0,Je.jsonProperty)(void 0)],te.prototype,"session",void 0);var Np=h(j());function Hd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Lo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Lo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!Lo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Lo(t,e){try{return Hd(t,e)}catch{return!1}}function Dn(t,e){return!Lo(t,e)}var Vd=h(j(),1);var Io=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Xr=h(j(),1);var Ta=h(j(),1);function La(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,Ta.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:Dn,...e??{}})}var Po=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pa=h(I(),1);var ko=window,jd=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qf=Symbol();var Ia=(t,e)=>{jd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=ko.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var _o=class extends Pa.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ia(n,e.elementStyles),n}};var Do=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},$a,ka=Symbol("constructorPrototype"),_a=Symbol("constructorName"),Fa=Symbol("exportpartsDebouncer"),Da=Symbol("dynamicDependenciesLoaded"),$t=class extends _o{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$a]=new Po(5),this[_a]=this.constructor.name,this[ka]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[_a]&&Object.setPrototypeOf(this,this[ka])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Da]||(e[Da]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Fa].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,i,a,s,c;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],x=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...v,...x).filter(p).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>f.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};$a=Fa;Do([(0,Xr.property)()],$t.prototype,"exportpartsPrefix",void 0);Do([La([])],$t.prototype,"exportpartsPrefixes",void 0);Do([(0,Xr.property)()],$t.prototype,"customStylesheet",void 0);Do([(0,Xr.state)()],$t.prototype,"useAdoptedStyleSheets",void 0);function Qr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ba,Ma,Ua,$o=Symbol("internalReduxEventsUnsubscribers"),Ft=Symbol("internalStoresUnsubscribers"),nr=Symbol("internalStores"),Jr=class extends $t{constructor(){super(...arguments),this[Ba]=new Map,this[Ma]=new Map,this[Ua]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[nr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[nr].get(e)}addStore(e,o){var n;o=(n=o??(Qr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[nr].delete(o)}setupStore(e,o){this[nr].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[nr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[Ft].has(e.store):this[Ft].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[Ft].set(e,o.subscribe(()=>this.updateFromStores())),Qr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=c=>this[a](c);o.eventBus.addEventListener(i.eventName,s),this[$o].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Ft].forEach((e,o)=>this.unsubscribeFromStore(o)),this[$o].forEach(e=>e()),this[$o]=[]}unsubscribeFromStore(e){this[Ft].has(e)&&this[Ft].get(e)(),this[Ft].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ba=Ft,Ma=nr,Ua=$o;Jr.reduxProperties=new Map;Jr.reduxReactiveProperties=new Set;Jr.reduxEventListeners=new Map;function Ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vt(t){return!!t&&!!t[Y]}function et(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Jd}(t)||Array.isArray(t)||!!t[Ka]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ka])||Vn(t)||jn(t))}function ir(t,e,o){o===void 0&&(o=!1),Rr(t)===0?(o?Object.keys:Ar)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Rr(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Vn(t)?2:jn(t)?3:0}function wr(t,e){return Rr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Gd(t,e){return Rr(t)===2?t.get(e):t[e]}function Za(t,e,o){var n=Rr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function qa(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Vn(t){return Xd&&t instanceof Map}function jn(t){return Qd&&t instanceof Set}function Bt(t){return t.o||t.t}function Gn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Qa(t);delete e[Y];for(var o=Ar(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Kn(t,e){return e===void 0&&(e=!1),Zn(t)||vt(t)||!et(t)||(Rr(t)>1&&(t.set=t.add=t.clear=t.delete=Kd),Object.freeze(t),e&&ir(t,function(o,n){return Kn(n,!0)},!0)),t}function Kd(){Ke(2)}function Zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ut(t){var e=Hn[t];return e||Ke(18,t),e}function Zd(t,e){Hn[t]||(Hn[t]=e)}function Un(){return to}function $n(t,e){e&&(ut("Patches"),t.u=[],t.s=[],t.v=e)}function Fo(t){zn(t),t.p.forEach(qd),t.p=null}function zn(t){t===to&&(to=t.l)}function za(t){return to={p:[],l:to,h:t,m:!0,_:0}}function qd(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Fn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||ut("ES5").S(e,t,n),n?(o[Y].P&&(Fo(e),Ke(4)),et(t)&&(t=Bo(e,t),e.l||Mo(e,t)),e.u&&ut("Patches").M(o[Y].t,t,e.u,e.s)):t=Bo(e,o,[]),Fo(e),e.u&&e.v(e.u,e.s),t!==Xa?t:void 0}function Bo(t,e,o){if(Zn(e))return e;var n=e[Y];if(!n)return ir(e,function(c,p){return Wa(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Mo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Gn(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),ir(a,function(c,p){return Wa(t,n,i,c,p,o,s)}),Mo(t,i,!1),o&&t.u&&ut("Patches").N(n,o,t.u,t.s)}return n.o}function Wa(t,e,o,n,i,a,s){if(vt(i)){var c=Bo(t,i,a&&e&&e.i!==3&&!wr(e.R,n)?a.concat(n):void 0);if(Za(o,n,c),!vt(c))return;t.m=!1}else s&&o.add(i);if(et(i)&&!Zn(i)){if(!t.h.D&&t._<1)return;Bo(t,i),e&&e.A.l||Mo(t,i)}}function Mo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Kn(e,o)}function Bn(t,e){var o=t[Y];return(o?Bt(o):t)[e]}function Ha(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Mt(t){t.P||(t.P=!0,t.l&&Mt(t.l))}function Mn(t){t.o||(t.o=Gn(t.t))}function Wn(t,e,o){var n=Vn(e)?ut("MapSet").F(e,o):jn(e)?ut("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Un(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,f=ro;s&&(p=[c],f=eo);var m=Proxy.revocable(p,f),y=m.revoke,g=m.proxy;return c.k=g,c.j=y,g}(e,o):ut("ES5").J(e,o);return(o?o.A:Un()).p.push(n),n}function Yd(t){return vt(t)||Ke(22,t),function e(o){if(!et(o))return o;var n,i=o[Y],a=Rr(o);if(i){if(!i.P&&(i.i<4||!ut("ES5").K(i)))return i.t;i.I=!0,n=Va(o,a),i.I=!1}else n=Va(o,a);return ir(n,function(s,c){i&&Gd(i.t,s)===c||Za(n,s,e(c))}),a===3?new Set(n):n}(t)}function Va(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Gn(t)}function Ya(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var f=this[Y];return ro.get(f,s)},set:function(f){var m=this[Y];ro.set(m,s,f)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][Y];if(!p.P)switch(p.i){case 5:n(p)&&Mt(p);break;case 4:o(p)&&Mt(p)}}}function o(s){for(var c=s.t,p=s.k,f=Ar(p),m=f.length-1;m>=0;m--){var y=f[m];if(y!==Y){var g=c[y];if(g===void 0&&!wr(c,y))return!0;var v=p[y],x=v&&v[Y];if(x?x.t!==g:!qa(v,g))return!0}}var S=!!c[Y];return f.length!==Ar(c).length+(S?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Ke(3,JSON.stringify(Bt(s)))}var a={};Zd("ES5",{J:function(s,c){var p=Array.isArray(s),f=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var S=Qa(g);delete S[Y];for(var T=Ar(S),R=0;R<T.length;R++){var N=T[R];S[N]=t(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),m={i:p?5:4,A:c?c.A:Un(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Y,{value:m,writable:!0}),f},S:function(s,c,p){p?vt(c)&&c[Y].A===s&&e(s.p):(s.u&&function f(m){if(m&&typeof m=="object"){var y=m[Y];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)ir(v,function(D){D!==Y&&(g[D]!==void 0||wr(g,D)?x[D]||f(v[D]):(x[D]=!0,Mt(y)))}),ir(g,function(D){v[D]!==void 0||wr(v,D)||(x[D]=!1,Mt(y))});else if(S===5){if(n(y)&&(Mt(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),k=0;k<N;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&f(v[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ja,to,qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xd=typeof Map<"u",Qd=typeof Set<"u",Ga=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xa=qn?Symbol.for("immer-nothing"):((ja={})["immer-nothing"]=!0,ja),Ka=qn?Symbol.for("immer-draftable"):"__$immer_draftable",Y=qn?Symbol.for("immer-state"):"__$immer_state";var Jd=""+Object.prototype.constructor,Ar=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Qa=Object.getOwnPropertyDescriptors||function(t){var e={};return Ar(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Hn={},ro={get:function(t,e){if(e===Y)return t;var o=Bt(t);if(!wr(o,e))return function(i,a,s){var c,p=Ha(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!et(n)?n:n===Bn(t.t,e)?(Mn(t),t.o[e]=Wn(t.A.h,n,t)):n},has:function(t,e){return e in Bt(t)},ownKeys:function(t){return Reflect.ownKeys(Bt(t))},set:function(t,e,o){var n=Ha(Bt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Bn(Bt(t),e),a=i?.[Y];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(qa(o,i)&&(o!==void 0||wr(t.t,e)))return!0;Mn(t),Mt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Bn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Mn(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Bt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ke(12)}},eo={};ir(ro,function(t,e){eo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),eo.deleteProperty=function(t,e){return eo.set.call(this,t,e,void 0)},eo.set=function(t,e,o){return ro.set.call(this,t[0],e,o,t[0])};var ep=function(){function t(o){var n=this;this.O=Ga,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(S){var T=this;S===void 0&&(S=c);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return p.produce(S,function(D){var B;return(B=a).call.apply(B,[T,D].concat(N))})}}var f;if(typeof a!="function"&&Ke(6),s!==void 0&&typeof s!="function"&&Ke(7),et(i)){var m=za(n),y=Wn(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Fo(m):zn(m)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return $n(m,s),Fn(S,m)},function(S){throw Fo(m),S}):($n(m,s),Fn(f,m))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Xa&&(f=void 0),n.D&&Kn(f,!0),s){var v=[],x=[];ut("Patches").M(i,f,v,x),s(v,x)}return f}Ke(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(v){return i.apply(void 0,[v].concat(y))})};var s,c,p=n.produce(i,a,function(f,m){s=f,c=m});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,c]}):[p,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){et(o)||Ke(8),vt(o)&&(o=Yd(o));var n=za(this),i=Wn(this,o,void 0);return i[Y].C=!0,zn(n),i},e.finishDraft=function(o,n){var i=o&&o[Y],a=i.A;return $n(a,n),Fn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ga&&Ke(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ut("Patches").$;return vt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Me=new ep,tp=Me.produce,su=Me.produceWithPatches.bind(Me),lu=Me.setAutoFreeze.bind(Me),cu=Me.setUseProxies.bind(Me),du=Me.applyPatches.bind(Me),pu=Me.createDraft.bind(Me),fu=Me.finishDraft.bind(Me),Uo=tp;function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function Yn(t,e){if(Ut(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xn(t){var e=Yn(t,"string");return Ut(e)==="symbol"?e:String(e)}function Qn(t,e,o){return e=Xn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ja(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function zo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ja(Object(o),!0).forEach(function(n){Qn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ja(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var es=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wo={INIT:"@@redux/INIT"+Jn(),REPLACE:"@@redux/REPLACE"+Jn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jn()}};function rp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ei(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(ei)(t,e)}if(typeof t!="function")throw new Error(ve(2));var i=t,a=e,s=[],c=s,p=!1;function f(){c===s&&(c=s.slice())}function m(){if(p)throw new Error(ve(3));return a}function y(S){if(typeof S!="function")throw new Error(ve(4));if(p)throw new Error(ve(5));var T=!0;return f(),c.push(S),function(){if(T){if(p)throw new Error(ve(6));T=!1,f();var N=c.indexOf(S);c.splice(N,1),s=null}}}function g(S){if(!rp(S))throw new Error(ve(7));if(typeof S.type>"u")throw new Error(ve(8));if(p)throw new Error(ve(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var T=s=c,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ve(10));i=S,g({type:Wo.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ve(11));function k(){N.next&&N.next(m())}k();var D=T(k);return{unsubscribe:D}}},S[es]=function(){return this},S}return g({type:Wo.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[es]=x,n}function op(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Wo.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:Wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function ts(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{op(o)}catch(p){c=p}return function(f,m){if(f===void 0&&(f={}),c)throw c;if(0)var y;for(var g=!1,v={},x=0;x<a.length;x++){var S=a[x],T=o[S],R=f[S],N=T(R,m);if(typeof N>"u"){var k=m&&m.type;throw new Error(ve(14))}v[S]=N,g=g||N!==R}return g=g||a.length!==Object.keys(f).length,g?v:f}}function Nr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function rs(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ve(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=Nr.apply(void 0,c)(i.dispatch),zo(zo({},i),{},{dispatch:a})}}}function os(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var ns=os();ns.withExtraArgument=os;var ti=ns;var cs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),np=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(m){return p([f,m])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(m){f=[6,m],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Tr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ip=Object.defineProperty,ap=Object.defineProperties,sp=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,lp=Object.prototype.hasOwnProperty,cp=Object.prototype.propertyIsEnumerable,as=function(t,e,o){return e in t?ip(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},zt=function(t,e){for(var o in e||(e={}))lp.call(e,o)&&as(t,o,e[o]);if(is)for(var n=0,i=is(e);n<i.length;n++){var o=i[n];cp.call(e,o)&&as(t,o,e[o])}return t},ri=function(t,e){return ap(t,sp(e))},dp=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(f){i(f)}},s=function(p){try{c(o.throw(p))}catch(f){i(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var pp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Nr:Nr.apply(null,arguments)},Lu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function fp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var up=function(t){cs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Tr([void 0],o.concat(this))))},e}(Array),hp=function(t){cs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Tr([void 0],o.concat(this))))},e}(Array);function ii(t){return et(t)?Uo(t,function(){}):t}function mp(t){return typeof t=="boolean"}function yp(){return function(e){return gp(e)}}function gp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new up;if(o&&(mp(o)?c.push(ti):c.push(ti.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return c}var oi=!0;function ds(t){var e=yp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,m=f===void 0?void 0:f,y=o.enhancers,g=y===void 0?void 0:y,v;if(typeof i=="function")v=i;else if(fp(i))v=ts(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 x=s;if(typeof x=="function"&&(x=x(e),!oi&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!oi&&x.some(function(D){return typeof D!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=rs.apply(void 0,x),T=Nr;p&&(T=pp(zt({trace:!oi},typeof p=="object"&&p)));var R=new hp(S),N=R;Array.isArray(g)?N=Tr([S],g):typeof g=="function"&&(N=g(R));var k=T.apply(void 0,N);return ei(v,m,k)}function Wt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ps(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function bp(t){return typeof t=="function"}function xp(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?ps(e):[e,o,n],a=i[0],s=i[1],c=i[2],p;if(bp(t))p=function(){return ii(t())};else{var f=ii(t);p=function(){return f}}function m(y,g){y===void 0&&(y=p());var v=Tr([a[g.type]],s.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[c]),v.reduce(function(x,S){if(S)if(vt(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(et(x))return Uo(x,function(N){return S(N,g)});var R=S(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return m.getInitialState=p,m}function vp(t,e){return t+"/"+e}function fs(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ii(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(m){var y=n[m],g=vp(e,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,a[m]=v,s[g]=v,c[m]=x?Wt(g,x):Wt(g)});function p(){var m=typeof t.extraReducers=="function"?ps(t.extraReducers):[t.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=zt(zt({},g),s);return xp(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var D=0,B=x;D<B.length;D++){var Ie=B[D];N.addMatcher(Ie.matcher,Ie.reducer)}T&&N.addDefaultCase(T)})}var f;return{name:e,reducer:function(m,y){return f||(f=p()),f(m,y)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Sp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Op=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Sp[Math.random()*64|0];return e},Cp=["name","message","stack","code"],ni=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ss=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ep=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Cp;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},_u=function(){function t(e,o,n){var i=Wt(e+"/fulfilled",function(m,y,g,v){return{payload:m,meta:ri(zt({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(m,y,g){return{payload:void 0,meta:ri(zt({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||Ep)(m||"Rejected"),meta:ri(zt({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function f(m){return function(y,g,v){var x=n?.idGenerator?n.idGenerator(m):Op(),S=new p,T,R=!1;function N(D){T=D,S.abort()}var k=function(){return dp(this,null,function(){var D,B,Ie,dt,Ce,pt,me;return np(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),dt=(D=n?.condition)==null?void 0:D.call(n,m,{getState:g,extra:v}),Ap(dt)?[4,dt]:[3,2];case 1:dt=u.sent(),u.label=2;case 2:if(dt===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,Ce=new Promise(function(b,L){return S.signal.addEventListener("abort",function(){return L({name:"AbortError",message:T||"Aborted"})})}),y(a(x,m,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([Ce,Promise.resolve(o(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,L){return new ni(b,L)},fulfillWithValue:function(b,L){return new ss(b,L)}})).then(function(b){if(b instanceof ni)throw b;return b instanceof ss?i(b.payload,x,m,b.meta):i(b,x,m)})])];case 3:return Ie=u.sent(),[3,5];case 4:return pt=u.sent(),Ie=pt instanceof ni?s(null,x,m,pt.payload,pt.meta):s(pt,x,m),[3,5];case 5:return me=n&&!n.dispatchConditionRejection&&s.match(Ie)&&Ie.meta.condition,me||y(Ie),[2,Ie]}})})}();return Object.assign(k,{abort:N,requestId:x,arg:m,unwrap:function(){return k.then(wp)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function wp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ap(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var us="listener",hs="completed",ms="cancelled",Du="task-"+ms,$u="task-"+hs,Fu=us+"-"+ms,Bu=us+"-"+hs;var ai="listenerMiddleware";var Mu=Wt(ai+"/add"),Uu=Wt(ai+"/removeAll"),zu=Wt(ai+"/remove");var ls,Wu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ls||(ls=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Rp=function(t){return function(e){setTimeout(e,t)}},Hu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Rp(10);Ya();window.ftReduxStores||(window.ftReduxStores={});var ys=class t{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Qr(a))return a;if(i==null)return;let s=fs({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=ds({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Io,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=h(w());var Ho=class extends ft{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Vo=class extends ft{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Tp="ft-user-assets",jo=Go.FtReduxStore.get({name:Tp,initialState:{savedSearches:void 0,bookmarks:void 0}}),si=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vo,this.savedSearchesService=new Ho,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Go.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),jo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),jo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();jo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;jo.actions.bookmarks(o)}}},gs=new si;var li=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new li;var bs=h(w()),ci=class{highlightHtml(e,o,n){(0,bs.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ci;var xs=h(w());var di=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return xs.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new di;(0,vs.customElement)("ft-app-context")(te);var Ko=class extends ft{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}};var no=t=>t.request.virtualField===Cr.TITLE_ONLY&&t.request.scope===Er.DOCUMENTS,Zo=class t extends Event{constructor(){super(t.eventName)}};Zo.eventName="search-context-clear-all-filters";var oo=class t{static build(e,o){return new t(ia(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new ht.Debouncer(10),this.searchDebouncer=new ht.Debouncer(100),this.suggestDebouncer=new ht.Debouncer(300),this.service=o??new Ko}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let o=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(o){let i=a=>o.some(s=>s.lang==a);i(e)||(e=i(n)?n:o[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Cr.TITLE_ONLY),this.store.actions.setRequestScope(Er.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Cr.EVERYWHERE),this.store.actions.setRequestScope(Er.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return no(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Zo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(i=>i!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,o){this.setValueFilter(e,o)}setValueFilter(e,o){let n=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:o,negative:!1}},a=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,o){let n=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:o}},a=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(i=>!i.dateFilter),...o.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(n)}setRangeFilter(e,o,n){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:o,to:n}},s=[...i.filter(c=>!c.rangeFilter),...i.filter(c=>c.rangeFilter&&c.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(i=>!i.rangeFilter),...o.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,ht.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let a=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof ht.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,i={input:o.liveQuery,metadataFilters:n.metadataFilters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,ht.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(o){!(o instanceof ht.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}};var Lp=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},fi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},pi=Symbol("registerInterval");function Ip(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[pi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[pi]):this.dispatchEvent(new fi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=pi,Lp([(0,Os.state)()],o.prototype,"stateManager",void 0),o}var Ht=class extends Ip(Ss.FtLitElementRedux){};var Bi=h(w());var hn=h(I()),Re=h(j()),Dc=h(Vt()),yn=h(w());var ks=h(w());var Is=h(I()),ge=h(j()),Ps=h(Vt()),io=h(w());var Ts=h(I()),ae=h(w()),Es=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorContent),U={color:Es,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",Es),opacityContentOnSurfacePressed:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ae.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ws=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorPrimary),As={color:ws,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",ws)},Rs=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorSecondary),Ns={color:Rs,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",Rs)},Ls=Ts.css`
|
|
16
16
|
:host {
|
|
17
17
|
display: contents;
|
|
18
18
|
}
|
|
@@ -250,7 +250,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
250
250
|
</${vi(this.element)}>
|
|
251
251
|
`:Si`
|
|
252
252
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
253
|
-
`}};Z.styles=[El,wl,Al,Rl,Nl,Tl,tn,Ll,Il,Pl,kl,..._l];Dl([(0,Oi.property)()],Z.prototype,"element",void 0);Dl([(0,Oi.property)()],Z.prototype,"variant",void 0);(0,Fl.customElement)("ft-typography")(Z);var Vl=h(w());var po=h(I()),cr=h(j()),Wl=h(w()),Hl=h(Ml());var Ur;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.EYE="",t.SHARE="󨃱"})(Ur||(Ur={}));var C;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(C||(C={}));var nx=new Map([...["abw"].map(t=>[t,C.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,C.AUDIO]),...["avi"].map(t=>[t,C.AVI]),...["chm","xhs"].map(t=>[t,C.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,C.CODE]),...["csv"].map(t=>[t,C.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,C.DITA]),...["epub"].map(t=>[t,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,C.EXCEL]),...["flac"].map(t=>[t,C.FLAC]),...["gif"].map(t=>[t,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,C.GZIP]),...["html","htm","xhtml"].map(t=>[t,C.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,C.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,C.JPEG]),...["json"].map(t=>[t,C.JSON]),...["m4a","m4p"].map(t=>[t,C.M4A]),...["mov","qt"].map(t=>[t,C.MOV]),...["mp3"].map(t=>[t,C.MP3]),...["mp4","m4v"].map(t=>[t,C.MP4]),...["ogg","oga"].map(t=>[t,C.OGG]),...["pdf","ps"].map(t=>[t,C.PDF]),...["png"].map(t=>[t,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,C.POWERPOINT]),...["rar"].map(t=>[t,C.RAR]),...["stp"].map(t=>[t,C.STP]),...["txt","rtf","md","mdown"].map(t=>[t,C.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,C.VIDEO]),...["wav"].map(t=>[t,C.WAV]),...["wma"].map(t=>[t,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,C.WORD]),...["xml","xsl","rdf"].map(t=>[t,C.XML]),...["yaml","yml","x-yaml"].map(t=>[t,C.YAML]),...["zip"].map(t=>[t,C.ZIP])]);var ix={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var Ul=h(I()),Ct=h(w()),se={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},zl=Ul.css`
|
|
253
|
+
`}};Z.styles=[El,wl,Al,Rl,Nl,Tl,tn,Ll,Il,Pl,kl,..._l];Dl([(0,Oi.property)()],Z.prototype,"element",void 0);Dl([(0,Oi.property)()],Z.prototype,"variant",void 0);(0,Fl.customElement)("ft-typography")(Z);var Vl=h(w());var po=h(I()),cr=h(j()),Wl=h(w()),Hl=h(Ml());var Ur;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.EYE="",t.SHARE="󨃱"})(Ur||(Ur={}));var C;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(C||(C={}));var nx=new Map([...["abw"].map(t=>[t,C.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,C.AUDIO]),...["avi"].map(t=>[t,C.AVI]),...["chm","xhs"].map(t=>[t,C.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,C.CODE]),...["csv"].map(t=>[t,C.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,C.DITA]),...["epub"].map(t=>[t,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,C.EXCEL]),...["flac"].map(t=>[t,C.FLAC]),...["gif"].map(t=>[t,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,C.GZIP]),...["html","htm","xhtml"].map(t=>[t,C.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,C.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,C.JPEG]),...["json"].map(t=>[t,C.JSON]),...["m4a","m4p"].map(t=>[t,C.M4A]),...["mov","qt"].map(t=>[t,C.MOV]),...["mp3"].map(t=>[t,C.MP3]),...["mp4","m4v"].map(t=>[t,C.MP4]),...["ogg","oga"].map(t=>[t,C.OGG]),...["pdf","ps"].map(t=>[t,C.PDF]),...["png"].map(t=>[t,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,C.POWERPOINT]),...["rar"].map(t=>[t,C.RAR]),...["stp"].map(t=>[t,C.STP]),...["txt","rtf","md","mdown"].map(t=>[t,C.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,C.VIDEO]),...["wav"].map(t=>[t,C.WAV]),...["wma"].map(t=>[t,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,C.WORD]),...["xml","xsl","rdf"].map(t=>[t,C.XML]),...["yaml","yml","x-yaml"].map(t=>[t,C.YAML]),...["zip"].map(t=>[t,C.ZIP])]);var ix={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var Ul=h(I()),Ct=h(w()),se={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},zl=Ul.css`
|
|
254
254
|
:host, i.ft-icon {
|
|
255
255
|
display: inline-flex;
|
|
256
256
|
align-items: center;
|
|
@@ -1888,20 +1888,32 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1888
1888
|
${(0,vr.setVariable)(A.fontWeight,"bold")};
|
|
1889
1889
|
}
|
|
1890
1890
|
|
|
1891
|
-
`;var Ki=h(w());var Oe=Kr.build("designedSearchPeriodFilter"),Tn={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var Sr=h(j());var Jt=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Be=class extends qt(Ht){constructor(){super(),this.
|
|
1892
|
-
<div part="
|
|
1893
|
-
<
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
<ft-radio
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1891
|
+
`;var Ki=h(w());var Oe=Kr.build("designedSearchPeriodFilter"),Tn={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var Sr=h(j());var Jt=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Be=class extends qt(Ht){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(Oe,Tn),this.addStore(P)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var o;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(o=this.filters)===null||o===void 0?void 0:o.filter(n=>n.key===this.metadataKey).filter(n=>n.dateFilter).map(n=>n.dateFilter).find(Boolean))}render(){var e,o,n,i;return ct.html`
|
|
1892
|
+
<div part="container">
|
|
1893
|
+
<div part="header">
|
|
1894
|
+
<ft-typography variant="overline" part="label" id="label">
|
|
1895
|
+
${this.header()}
|
|
1896
|
+
</ft-typography>
|
|
1897
|
+
</div>
|
|
1898
|
+
<ft-radio-group @change=${a=>this.setPeriodFilter(a)} aria-labelledby="label">
|
|
1899
|
+
<ft-radio value="anyTime" ?checked=${this.dateFilter===void 0||this.dateFilter.type===void 0}>
|
|
1900
|
+
${Oe.messages.anyTime()}
|
|
1901
|
+
</ft-radio>
|
|
1902
|
+
${this.lessThanAWeek?ct.html`
|
|
1903
|
+
<ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${Oe.messages.LAST_WEEK()}
|
|
1904
|
+
</ft-radio>`:ct.nothing}
|
|
1905
|
+
${this.lessThanAMonth?ct.html`
|
|
1906
|
+
<ft-radio ?checked=${((o=this.dateFilter)===null||o===void 0?void 0:o.type)=="LAST_MONTH"} value="LAST_MONTH">${Oe.messages.LAST_MONTH()}
|
|
1907
|
+
</ft-radio>`:ct.nothing}
|
|
1908
|
+
${this.lessThanAQuarter?ct.html`
|
|
1909
|
+
<ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_QUARTER"} value="LAST_QUARTER">
|
|
1910
|
+
${Oe.messages.LAST_QUARTER()}
|
|
1911
|
+
</ft-radio>`:ct.nothing}
|
|
1912
|
+
${this.lessThanAYear?ct.html`
|
|
1913
|
+
<ft-radio ?checked=${((i=this.dateFilter)===null||i===void 0?void 0:i.type)=="LAST_YEAR"} value="LAST_YEAR">${Oe.messages.LAST_YEAR()}
|
|
1914
|
+
</ft-radio>`:ct.nothing}
|
|
1915
|
+
</ft-radio-group>
|
|
1916
|
+
</div>`}setPeriodFilter(e){var o,n;let i=Ro[e.detail];i?(o=this.stateManager)===null||o===void 0||o.setDateFilter(this.metadataKey,i):(n=this.stateManager)===null||n===void 0||n.removeDateFilter(this.metadataKey)}header(){var e,o,n;return this.metadataKey==="ft:lastEdition"?Oe.messages.label():(n=(o=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(i=>i.key==this.metadataKey))===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:this.metadataKey}};Be.elementDefinitions={"ft-radio-group":$e,"ft-radio":ce,"ft-typography":Z};Be.styles=Nd;Jt([(0,Sr.property)({type:String})],Be.prototype,"key",void 0);Jt([(0,Sr.property)({type:Boolean})],Be.prototype,"lessThanAWeek",void 0);Jt([(0,Sr.property)({type:Boolean})],Be.prototype,"lessThanAMonth",void 0);Jt([(0,Sr.property)({type:Boolean})],Be.prototype,"lessThanAQuarter",void 0);Jt([(0,Sr.property)({type:Boolean})],Be.prototype,"lessThanAYear",void 0);Jt([(0,Ki.redux)({store:"search",selector:t=>t.request.metadataFilters})],Be.prototype,"filters",void 0);Jt([(0,Ki.redux)({store:P.name,selector:t=>{var e,o;return(o=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[]}})],Be.prototype,"metadataDescriptors",void 0);Jt([(0,Sr.property)({attribute:!1})],Be.prototype,"dateFilter",void 0);(0,Td.customElement)("ft-search-period-filter")(Be);var Zi=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},kt=class extends qt(Ht){get hasSomethingToDisplay(){var e,o;return this.searchInDocumentTitlesOnly||((e=this.facets)===null||e===void 0?void 0:e.some(n=>this.getSelectedValues(n).length>0))||((o=this.filters)===null||o===void 0?void 0:o.some(n=>n.dateFilter||n.rangeFilter))}constructor(){super(),this.addI18nContext(Xt,Nn),this.addI18nContext(Oe,Tn)}render(){var e,o;return this.hasSomethingToDisplay?xt.html`
|
|
1905
1917
|
<div class="ft-search-selected-facets--container">
|
|
1906
1918
|
${(0,Ln.repeat)(this.facets||[],n=>n.key,n=>{let i=this.getSelectedValues(n);return(0,Ln.repeat)(i,a=>n.key+"-"+a,a=>this.renderFacet(n.key,n.label,i,a))})}
|
|
1907
1919
|
${this.renderSearchInDocumentTitlesOnly()}
|