@fluid-topics/ft-reader-page-title 1.1.68 → 1.1.69

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.
@@ -123,7 +123,7 @@ const j=Symbol.for(""),_=t=>{if(t?.r===j)return t?._$litStatic$},Y=t=>({_$litSta
123
123
  `}}Io.styles=[ho,go,yo,bo,uo,mo,Oo,xo,No,So,vo,...wo],Co([r.property()],Io.prototype,"element",void 0),Co([r.property()],Io.prototype,"variant",void 0),o.customElement("ft-typography")(Io);const Eo=e.css`
124
124
  `,Uo=o.FtReduxStore.get({name:"ft-app-info",reducers:{},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}});class Wo{static get(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Uo.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static await(t){return new Promise((o=>{let e=Wo.get(t);if(e)o(e);else{const r=Uo.subscribe((()=>{e=Wo.get(t),e&&(r(),o(e))}))}}))}}class Ro{constructor(t=!0,e){var r;this.overrideApi=e;let a=this.constructor;a.commonCache=null!==(r=a.commonCache)&&void 0!==r?r:new o.CacheRegistry,this.cache=t?a.commonCache:new o.CacheRegistry}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Wo.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Wo.await()}clearCache(){this.cache.clearAll()}}var Zo;const Lo=Symbol("clearAfterUnitTest");class Ko extends Ro{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zo]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=Uo.getState().uiLocale,Uo.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Uo.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var r;if(t=t.toLowerCase(),Object.keys(e).length>0){const a={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var a,i,n;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(i=null===(a=this.cache.getNow(t))||void 0===a?void 0:a.messages)&&void 0!==i?i:{};return new o.ParametrizedLabelResolver(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},l).resolve(e,...r)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}Zo=Lo,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Ko{constructor(){super((async(t,o)=>(await this.awaitApi).getFluidTopicsMessageContext(t,o)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Ko{constructor(){super((async(t,o)=>(await this.awaitApi).getCustomMessageContext(t,o)))}});const zo=window.FluidTopicsI18nService,ko=window.FluidTopicsCustomI18nService;var $o=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Do extends o.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=()=>Wo.get(),this.messageContexts=[],this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
125
125
  <slot></slot>
126
- `}update(t){super.update(t),t.has("baseUrl")&&(Uo.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Uo.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Uo.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Uo.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Uo.actions.noCustom(this.noCustom),t.has("editorMode")&&Uo.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Uo.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Uo.actions.session(this.session),t.has("availableUiLocales")&&Uo.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>zo.addContext(t))),t.has("openExternalDocumentInNewTab")&&Uo.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&Uo.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&Uo.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Do.elementDefinitions={},Do.styles=Eo,$o([r.property()],Do.prototype,"baseUrl",void 0),$o([r.property()],Do.prototype,"apiIntegrationIdentifier",void 0),$o([r.property()],Do.prototype,"uiLocale",void 0),$o([o.jsonProperty(null)],Do.prototype,"availableUiLocales",void 0),$o([o.jsonProperty(null)],Do.prototype,"metadataConfiguration",void 0),$o([r.property({type:Boolean})],Do.prototype,"editorMode",void 0),$o([r.property({type:Boolean})],Do.prototype,"noCustom",void 0),$o([r.property({type:Boolean})],Do.prototype,"openExternalDocumentInNewTab",void 0),$o([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Do.prototype,"noCustomComponent",void 0),$o([r.property({type:Boolean})],Do.prototype,"withManualResources",void 0),$o([r.property({type:Boolean})],Do.prototype,"navigatorOnline",void 0),$o([r.property({type:Boolean})],Do.prototype,"forcedOffline",void 0),$o([r.property({type:Object})],Do.prototype,"apiProvider",void 0),$o([o.jsonProperty([])],Do.prototype,"messageContexts",void 0),$o([o.jsonProperty(void 0)],Do.prototype,"session",void 0);class Fo extends Ro{async listMySearches(){let t=Uo.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Ao extends Ro{async listMyBookmarks(){let t=Uo.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Bo=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Uo.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ao,this.savedSearchesService=new Fo,Uo.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Uo.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Bo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Bo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Bo.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Bo.actions.bookmarks(o)}}},o.customElement("ft-app-context")(Do);const Ho=e.css`
126
+ `}update(t){super.update(t),t.has("baseUrl")&&(Uo.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Uo.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Uo.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Uo.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Uo.actions.noCustom(this.noCustom),t.has("editorMode")&&Uo.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Uo.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Uo.actions.session(this.session),t.has("availableUiLocales")&&Uo.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>zo.addContext(t))),t.has("openExternalDocumentInNewTab")&&Uo.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&Uo.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&Uo.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Do.elementDefinitions={},Do.styles=Eo,$o([r.property()],Do.prototype,"baseUrl",void 0),$o([r.property()],Do.prototype,"apiIntegrationIdentifier",void 0),$o([r.property()],Do.prototype,"uiLocale",void 0),$o([o.jsonProperty(null)],Do.prototype,"availableUiLocales",void 0),$o([o.jsonProperty(null)],Do.prototype,"metadataConfiguration",void 0),$o([r.property({type:Boolean})],Do.prototype,"editorMode",void 0),$o([r.property({type:Boolean})],Do.prototype,"noCustom",void 0),$o([r.property({type:Boolean})],Do.prototype,"openExternalDocumentInNewTab",void 0),$o([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Do.prototype,"noCustomComponent",void 0),$o([r.property({type:Boolean})],Do.prototype,"withManualResources",void 0),$o([r.property({type:Boolean})],Do.prototype,"navigatorOnline",void 0),$o([r.property({type:Boolean})],Do.prototype,"forcedOffline",void 0),$o([r.property({type:Object})],Do.prototype,"apiProvider",void 0),$o([o.jsonProperty([])],Do.prototype,"messageContexts",void 0),$o([o.jsonProperty(void 0)],Do.prototype,"session",void 0);class Fo extends Ro{async listMySearches(){let t=Uo.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Ao extends Ro{async listMyBookmarks(){let t=Uo.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Bo=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Uo.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ao,this.savedSearchesService=new Fo,Uo.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Uo.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Bo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Bo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Bo.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Bo.actions.bookmarks(o)}}};window.FluidTopicsAppInfoStoreService=new class{addCommand(t,o=!1){Uo.commands.add(t,o)}consumeCommand(t){return Uo.commands.consume(t)}};window.FluidTopicsHighlightHtmlService=new class{highlightHtml(t,e){o.highlightHtml(t,e)}},o.customElement("ft-app-context")(Do);const Ho=e.css`
127
127
  `;var Go=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};const Mo=Symbol("i18nAttributes"),Po=Symbol("i18nProperties"),To=Symbol("i18nUnsubs");function jo(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?ko:zo}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const a=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...a)}onI18nUpdate(t){var o,e;null===(o=this[Mo])||void 0===o||o.forEach(((o,e)=>{var r;const a=this.getI18nAttributeValue(e);(null===(r=null==a?void 0:a.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(e,a,o)})),null===(e=this[Po])||void 0===e||e.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,o,e){this[t]={...o,message:this.i18n({context:o.context,key:o.key,...e})}}update(t){var o,e;super.update(t),null===(o=this[Mo])||void 0===o||o.forEach(((o,e)=>{const r=this.getI18nAttributeValue(e);(null==r?void 0:r.context)&&r.key&&(t.has(e)||null!=o.argsProvider)&&(t.has(e)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(e,r,o))})),null===(e=this[Po])||void 0===e||e.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,o,e,r;super.connectedCallback(),new Set([...null!==(o=null===(t=this[Po])||void 0===t?void 0:t.values())&&void 0!==o?o:[],...[...null!==(r=null===(e=this[Mo])||void 0===e?void 0:e.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[To].has(t)||this[To].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages("string"==typeof t?t:t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[To].forEach((t=>t())),this[To].clear()}}return o=To,Go([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class _o extends(jo(o.FtLitElement)){}class Yo extends(jo(o.FtLitElementRedux)){}var Vo=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Xo extends Yo{constructor(){super(),this.editorMode=!1,this.addStore(Uo)}render(){return this.key&&this.context?e.html`
128
128
  <span class="ft-i18n">
129
129
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,n=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap;let s;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,s=new Set(n.observedAttributes||[]);p(n,s,l);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:s};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let f=e.call(r,t);f||(f=d(t),o.call(r,t,f)),this===window.customElements&&(a.set(n,c),c.standInClass=f);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)i.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=s;if(o)return s=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),n.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=l.get(o)?.getRootNode()||document)}return o.customElements},d=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=f(e)||window.customElements,n=r._getDefinition(o);return n?u(e,n):i.set(e,r),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i,n),e.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r),e.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const o=this.getAttribute(n);e.call(this,n,t,o)}else i.call(this,n,r)})},h=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):h(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),n.set(t,o),s=t;try{new o.elementClass}catch(t){h(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===n.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class i{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),n=o.get(r)||[];this[+e]=t,n.push(t),o.set(r,n)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||o.push(e)}return new i(o)}})}}try{window.customElements.define("custom-element",null)}catch(dl){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,n=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakMap;let s;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,s=new Set(n.observedAttributes||[]);p(n,s,l);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:s};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let f=e.call(r,t);f||(f=d(t),o.call(r,t,f)),this===window.customElements&&(a.set(n,c),c.standInClass=f);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)i.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=s;if(o)return s=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),n.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=l.get(o)?.getRootNode()||document)}return o.customElements},d=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=f(e)||window.customElements,n=r._getDefinition(o);return n?u(e,n):i.set(e,r),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i,n),e.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r),e.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const o=this.getAttribute(n);e.call(this,n,t,o)}else i.call(this,n,r)})},h=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):h(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),n.set(t,o),s=t;try{new o.elementClass}catch(t){h(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===n.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class i{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),n=o.get(r)||[];this[+e]=t,n.push(t),o.set(r,n)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||o.push(e)}return new i(o)}})}}try{window.customElements.define("custom-element",null)}catch(pl){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -142,7 +142,7 @@ function(t){return(o,e)=>{const{slot:r,selector:n}=t??{},i="slot"+(r?`[name=${r}
142
142
  .highlight-html-match {
143
143
  background: ${Mn};
144
144
  }
145
- `,Kn={className:"highlight-html-match"};var Zn=Object.freeze({__proto__:null,highlightHtml:function(t,o){var e;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=o?o:"")){const r=new _n(t);if(r.unmark(Kn),o&&o.trim()){r.mark(o.replace(/"[^"]+"/g,""),{...Kn,separateWordSearch:!0});(null!==(e=o.match(/"[^"]+"/g))&&void 0!==e?e:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Kn,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=o?o:"")},highlightHtmlColorCssVariable:Mn,highlightHtmlStyles:jn});const Dn=pt`
145
+ `,Kn={className:"highlight-html-match"};function Zn(t,o){var e;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=o?o:"")){const r=new _n(t);if(r.unmark(Kn),o&&o.trim()){r.mark(o.replace(/"[^"]+"/g,""),{...Kn,separateWordSearch:!0});(null!==(e=o.match(/"[^"]+"/g))&&void 0!==e?e:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Kn,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=o?o:"")}var Dn=Object.freeze({__proto__:null,highlightHtml:Zn,highlightHtmlColorCssVariable:Mn,highlightHtmlStyles:jn});const Hn=pt`
146
146
  .ft-no-text-select {
147
147
  -webkit-touch-callout: none;
148
148
  -webkit-user-select: none;
@@ -151,7 +151,7 @@ function(t){return(o,e)=>{const{slot:r,selector:n}=t??{},i="slot"+(r?`[name=${r}
151
151
  -ms-user-select: none;
152
152
  user-select: none;
153
153
  }
154
- `,Hn=pt`
154
+ `,Tn=pt`
155
155
  .ft-word-wrap {
156
156
  white-space: normal;
157
157
  word-wrap: break-word;
@@ -163,7 +163,7 @@ function(t){return(o,e)=>{const{slot:r,selector:n}=t??{},i="slot"+(r?`[name=${r}
163
163
  -webkit-hyphens: auto;
164
164
  hyphens: auto
165
165
  }
166
- `,Tn=pt`
166
+ `,Gn=pt`
167
167
  .ft-safari-ellipsis-fix {
168
168
  margin-right: 0;
169
169
 
@@ -174,107 +174,107 @@ function(t){return(o,e)=>{const{slot:r,selector:n}=t??{},i="slot"+(r?`[name=${r}
174
174
  display: inline-block;
175
175
  width: 0;
176
176
  }
177
- `;var Gn=Object.freeze({__proto__:null,noTextSelect:Dn,safariEllipsisFix:Tn,wordWrap:Hn}),Vn=Object.freeze({__proto__:null});class qn{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var e,r;t=this.resolvePluralKey(t,o);let n=null!==(r=null!==(e=this.labels[t])&&void 0!==e?e:this.defaultLabels[t])&&void 0!==r?r:"";return o.forEach(((t,o)=>n=n.replace(new RegExp(`\\{${o}([^}]*)\\}`,"g"),((o,e)=>this.formatValue(t,e))))),n}resolvePluralKey(t,o){for(let e of o)if("number"==typeof e){const o=`${String(t)}[\\=${e}]`;if(o in this.labels||o in this.defaultLabels)return o}return t}formatValue(t,o){return t instanceof Date?this.formatDate(t,o):null!=t?t:""}formatDate(t,o){const e=e=>(null==o?void 0:o.includes("date"))?t.toLocaleDateString(e):(null==o?void 0:o.includes("time"))?t.toLocaleTimeString(e):t.toLocaleString(e);try{return e(document.documentElement.lang)}catch(t){return e()}}}var Yn=Object.freeze({__proto__:null,ParametrizedLabelResolver:qn});const Jn=t=>{const o=null!=t?t:{};return(t,e)=>{var r;const n={hasChanged:(t,o)=>!ce(t,o),attribute:!1,...o};So(n)(t,e);const i=t.constructor;i.reduxProperties=new Map(i.reduxProperties),i.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}};class Xn{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter((o=>o.type!==t.type))),this.queue.push(t)}consume(t){const o=this.queue.find((o=>o.type===t));return o&&(this.queue=this.queue.filter((t=>t!==o))),o}}function Qn(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var ti,oi,ei;const ri=Symbol("internalReduxEventsUnsubscribers"),ni=Symbol("internalStoresUnsubscribers"),ii=Symbol("internalStores");class ai extends Bn{constructor(){super(...arguments),this[ti]=new Map,this[oi]=new Map,this[ei]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[ii].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ii].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ii].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Qn(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[ii].delete(o)}setupStore(t,o){this[ii].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ii].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[ni].has(t.store):this[ni].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[ni].set(t,o.subscribe((()=>this.updateFromStores()))),Qn(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[ri].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ni].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[ri].forEach((t=>t())),this[ri]=[]}unsubscribeFromStore(t){this[ni].has(t)&&this[ni].get(t)(),this[ni].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function li(t){for(var o=arguments.length,e=Array(o>1?o-1:0),r=1;r<o;r++)e[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(e.length?" "+e.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function si(t){return!!t&&!!t[Vi]}function ci(t){var o;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;var e=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===qi}(t)||Array.isArray(t)||!!t[Gi]||!!(null===(o=t.constructor)||void 0===o?void 0:o[Gi])||yi(t)||gi(t))}function fi(t,o,e){void 0===e&&(e=!1),0===di(t)?(e?Object.keys:Yi)(t).forEach((function(r){e&&"symbol"==typeof r||o(r,t[r],t)})):t.forEach((function(e,r){return o(r,e,t)}))}function di(t){var o=t[Vi];return o?o.i>3?o.i-4:o.i:Array.isArray(t)?1:yi(t)?2:gi(t)?3:0}function pi(t,o){return 2===di(t)?t.has(o):Object.prototype.hasOwnProperty.call(t,o)}function hi(t,o,e){var r=di(t);2===r?t.set(o,e):3===r?t.add(e):t[o]=e}function ui(t,o){return t===o?0!==t||1/t==1/o:t!=t&&o!=o}function yi(t){return Zi&&t instanceof Map}function gi(t){return Di&&t instanceof Set}function bi(t){return t.o||t.t}function mi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var o=Ji(t);delete o[Vi];for(var e=Yi(o),r=0;r<e.length;r++){var n=e[r],i=o[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(o[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),o)}function vi(t,o){return void 0===o&&(o=!1),xi(t)||si(t)||!ci(t)||(di(t)>1&&(t.set=t.add=t.clear=t.delete=Oi),Object.freeze(t),o&&fi(t,(function(t,o){return vi(o,!0)}),!0)),t}function Oi(){li(2)}function xi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wi(t){var o=Xi[t];return o||li(18,t),o}function Si(){return ji}function Ci(t,o){o&&(wi("Patches"),t.u=[],t.s=[],t.v=o)}function Ni(t){Ei(t),t.p.forEach(Ii),t.p=null}function Ei(t){t===ji&&(ji=t.l)}function Ri(t){return ji={p:[],l:ji,h:t,m:!0,_:0}}function Ii(t){var o=t[Vi];0===o.i||1===o.i?o.j():o.g=!0}function Li(t,o){o._=o.p.length;var e=o.p[0],r=void 0!==t&&t!==e;return o.h.O||wi("ES5").S(o,t,r),r?(e[Vi].P&&(Ni(o),li(4)),ci(t)&&(t=Ui(o,t),o.l||ki(o,t)),o.u&&wi("Patches").M(e[Vi].t,t,o.u,o.s)):t=Ui(o,e,[]),Ni(o),o.u&&o.v(o.u,o.s),t!==Ti?t:void 0}function Ui(t,o,e){if(xi(o))return o;var r=o[Vi];if(!r)return fi(o,(function(n,i){return Wi(t,r,o,n,i,e)}),!0),o;if(r.A!==t)return o;if(!r.P)return ki(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=mi(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),fi(i,(function(o,i){return Wi(t,r,n,o,i,e,a)})),ki(t,n,!1),e&&t.u&&wi("Patches").N(r,e,t.u,t.s)}return r.o}function Wi(t,o,e,r,n,i,a){if(si(n)){var l=Ui(t,n,i&&o&&3!==o.i&&!pi(o.R,r)?i.concat(r):void 0);if(hi(e,r,l),!si(l))return;t.m=!1}else a&&e.add(n);if(ci(n)&&!xi(n)){if(!t.h.D&&t._<1)return;Ui(t,n),o&&o.A.l||ki(t,n)}}function ki(t,o,e){void 0===e&&(e=!1),!t.l&&t.h.D&&t.m&&vi(o,e)}function $i(t,o){var e=t[Vi];return(e?bi(e):t)[o]}function zi(t,o){if(o in t)for(var e=Object.getPrototypeOf(t);e;){var r=Object.getOwnPropertyDescriptor(e,o);if(r)return r;e=Object.getPrototypeOf(e)}}function Bi(t){t.P||(t.P=!0,t.l&&Bi(t.l))}function Ai(t){t.o||(t.o=mi(t.t))}function Fi(t,o,e){var r=yi(o)?wi("MapSet").F(o,e):gi(o)?wi("MapSet").T(o,e):t.O?function(t,o){var e=Array.isArray(t),r={i:e?1:0,A:o?o.A:Si(),P:!1,I:!1,R:{},l:o,t,k:null,o:null,j:null,C:!1},n=r,i=Qi;e&&(n=[r],i=ta);var a=Proxy.revocable(n,i),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(o,e):wi("ES5").J(o,e);return(e?e.A:Si()).p.push(r),r}function Pi(t){return si(t)||li(22,t),function t(o){if(!ci(o))return o;var e,r=o[Vi],n=di(o);if(r){if(!r.P&&(r.i<4||!wi("ES5").K(r)))return r.t;r.I=!0,e=_i(o,n),r.I=!1}else e=_i(o,n);return fi(e,(function(o,n){r&&function(t,o){return 2===di(t)?t.get(o):t[o]}(r.t,o)===n||hi(e,o,t(n))})),3===n?new Set(e):e}(t)}function _i(t,o){switch(o){case 2:return new Map(t);case 3:return Array.from(t)}return mi(t)}ti=ni,oi=ii,ei=ri,ai.reduxProperties=new Map,ai.reduxReactiveProperties=new Set,ai.reduxEventListeners=new Map;var Mi,ji,Ki="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Zi="undefined"!=typeof Map,Di="undefined"!=typeof Set,Hi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ti=Ki?Symbol.for("immer-nothing"):((Mi={})["immer-nothing"]=!0,Mi),Gi=Ki?Symbol.for("immer-draftable"):"__$immer_draftable",Vi=Ki?Symbol.for("immer-state"):"__$immer_state",qi=""+Object.prototype.constructor,Yi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ji=Object.getOwnPropertyDescriptors||function(t){var o={};return Yi(t).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(t,e)})),o},Xi={},Qi={get:function(t,o){if(o===Vi)return t;var e=bi(t);if(!pi(e,o))return function(t,o,e){var r,n=zi(o,e);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,e,o);var r=e[o];return t.I||!ci(r)?r:r===$i(t.t,o)?(Ai(t),t.o[o]=Fi(t.A.h,r,t)):r},has:function(t,o){return o in bi(t)},ownKeys:function(t){return Reflect.ownKeys(bi(t))},set:function(t,o,e){var r=zi(bi(t),o);if(null==r?void 0:r.set)return r.set.call(t.k,e),!0;if(!t.P){var n=$i(bi(t),o),i=null==n?void 0:n[Vi];if(i&&i.t===e)return t.o[o]=e,t.R[o]=!1,!0;if(ui(e,n)&&(void 0!==e||pi(t.t,o)))return!0;Ai(t),Bi(t)}return t.o[o]===e&&(void 0!==e||o in t.o)||Number.isNaN(e)&&Number.isNaN(t.o[o])||(t.o[o]=e,t.R[o]=!0),!0},deleteProperty:function(t,o){return void 0!==$i(t.t,o)||o in t.t?(t.R[o]=!1,Ai(t),Bi(t)):delete t.R[o],t.o&&delete t.o[o],!0},getOwnPropertyDescriptor:function(t,o){var e=bi(t),r=Reflect.getOwnPropertyDescriptor(e,o);return r?{writable:!0,configurable:1!==t.i||"length"!==o,enumerable:r.enumerable,value:e[o]}:r},defineProperty:function(){li(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){li(12)}},ta={};fi(Qi,(function(t,o){ta[t]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}})),ta.deleteProperty=function(t,o){return ta.set.call(this,t,o,void 0)},ta.set=function(t,o,e){return Qi.set.call(this,t[0],o,e,t[0])};var oa=function(){function t(t){var o=this;this.O=Hi,this.D=!0,this.produce=function(t,e,r){if("function"==typeof t&&"function"!=typeof e){var n=e;e=t;var i=o;return function(t){var o=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(t,(function(t){var r;return(r=e).call.apply(r,[o,t].concat(a))}))}}var a;if("function"!=typeof e&&li(6),void 0!==r&&"function"!=typeof r&&li(7),ci(t)){var l=Ri(o),s=Fi(o,t,void 0),c=!0;try{a=e(s),c=!1}finally{c?Ni(l):Ei(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Ci(l,r),Li(t,l)}),(function(t){throw Ni(l),t})):(Ci(l,r),Li(a,l))}if(!t||"object"!=typeof t){if(void 0===(a=e(t))&&(a=t),a===Ti&&(a=void 0),o.D&&vi(a,!0),r){var f=[],d=[];wi("Patches").M(t,a,f,d),r(f,d)}return a}li(21,t)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return o.produceWithPatches(e,(function(o){return t.apply(void 0,[o].concat(n))}))};var r,n,i=o.produce(t,e,(function(t,o){r=t,n=o}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var o=t.prototype;return o.createDraft=function(t){ci(t)||li(8),si(t)&&(t=Pi(t));var o=Ri(this),e=Fi(this,t,void 0);return e[Vi].C=!0,Ei(o),e},o.finishDraft=function(t,o){var e=(t&&t[Vi]).A;return Ci(e,o),Li(void 0,e)},o.setAutoFreeze=function(t){this.D=t},o.setUseProxies=function(t){t&&!Hi&&li(20),this.O=t},o.applyPatches=function(t,o){var e;for(e=o.length-1;e>=0;e--){var r=o[e];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}e>-1&&(o=o.slice(e+1));var n=wi("Patches").$;return si(t)?n(t,o):this.produce(t,(function(t){return n(t,o)}))},t}(),ea=new oa,ra=ea.produce;function na(t){return na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},na(t)}function ia(t){var o=function(t,o){if("object"!==na(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,o||"default");if("object"!==na(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"===na(o)?o:String(o)}function aa(t,o,e){return(o=ia(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function la(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,r)}return e}function sa(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?la(Object(e),!0).forEach((function(o){aa(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):la(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}function ca(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. "}ea.produceWithPatches.bind(ea),ea.setAutoFreeze.bind(ea),ea.setUseProxies.bind(ea),ea.applyPatches.bind(ea),ea.createDraft.bind(ea),ea.finishDraft.bind(ea);var fa="function"==typeof Symbol&&Symbol.observable||"@@observable",da=function(){return Math.random().toString(36).substring(7).split("").join(".")},pa={INIT:"@@redux/INIT"+da(),REPLACE:"@@redux/REPLACE"+da(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+da()}};function ha(t,o,e){var r;if("function"==typeof o&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(ca(0));if("function"==typeof o&&void 0===e&&(e=o,o=void 0),void 0!==e){if("function"!=typeof e)throw new Error(ca(1));return e(ha)(t,o)}if("function"!=typeof t)throw new Error(ca(2));var n=t,i=o,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(ca(3));return i}function d(t){if("function"!=typeof t)throw new Error(ca(4));if(s)throw new Error(ca(5));var o=!0;return c(),l.push(t),function(){if(o){if(s)throw new Error(ca(6));o=!1,c();var e=l.indexOf(t);l.splice(e,1),a=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(t)===o}(t))throw new Error(ca(7));if(void 0===t.type)throw new Error(ca(8));if(s)throw new Error(ca(9));try{s=!0,i=n(i,t)}finally{s=!1}for(var o=a=l,e=0;e<o.length;e++){(0,o[e])()}return t}return p({type:pa.INIT}),(r={dispatch:p,subscribe:d,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ca(10));n=t,p({type:pa.REPLACE})}})[fa]=function(){var t,o=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ca(11));function e(){t.next&&t.next(f())}return e(),{unsubscribe:o(e)}}})[fa]=function(){return this},t},r}function ua(t){for(var o=Object.keys(t),e={},r=0;r<o.length;r++){var n=o[r];"function"==typeof t[n]&&(e[n]=t[n])}var i,a=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(o){var e=t[o];if(void 0===e(void 0,{type:pa.INIT}))throw new Error(ca(12));if(void 0===e(void 0,{type:pa.PROBE_UNKNOWN_ACTION()}))throw new Error(ca(13))}))}(e)}catch(t){i=t}return function(t,o){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},l=0;l<a.length;l++){var s=a[l],c=e[s],f=t[s],d=c(f,o);if(void 0===d)throw o&&o.type,new Error(ca(14));n[s]=d,r=r||d!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function ya(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return 0===o.length?function(t){return t}:1===o.length?o[0]:o.reduce((function(t,o){return function(){return t(o.apply(void 0,arguments))}}))}function ga(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(ca(15))},n={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=o.map((function(t){return t(n)}));return r=ya.apply(void 0,i)(e.dispatch),sa(sa({},e),{},{dispatch:r})}}}function ba(t){return function(o){var e=o.dispatch,r=o.getState;return function(o){return function(n){return"function"==typeof n?n(e,r,t):o(n)}}}}var ma=ba();ma.withExtraArgument=ba;var va,Oa=ma,xa=(va=function(t,o){return va=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])},va(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}va(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),wa=function(t,o){var e,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=o.call(t,a)}catch(t){i=[6,t],r=0}finally{e=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Sa=function(t,o){for(var e=0,r=o.length,n=t.length;e<r;e++,n++)t[n]=o[e];return t},Ca=Object.defineProperty,Na=Object.defineProperties,Ea=Object.getOwnPropertyDescriptors,Ra=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,La=Object.prototype.propertyIsEnumerable,Ua=function(t,o,e){return o in t?Ca(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e},Wa=function(t,o){for(var e in o||(o={}))Ia.call(o,e)&&Ua(t,e,o[e]);if(Ra)for(var r=0,n=Ra(o);r<n.length;r++){e=n[r];La.call(o,e)&&Ua(t,e,o[e])}return t},ka=function(t,o){return Na(t,Ea(o))},$a="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ya:ya.apply(null,arguments)};var za=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return Object.setPrototypeOf(n,o.prototype),n}return xa(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,Sa([void 0],t[0].concat(this)))):new(o.bind.apply(o,Sa([void 0],t.concat(this))))},o}(Array),Ba=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return Object.setPrototypeOf(n,o.prototype),n}return xa(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,Sa([void 0],t[0].concat(this)))):new(o.bind.apply(o,Sa([void 0],t.concat(this))))},o}(Array);function Aa(t){return ci(t)?ra(t,(function(){})):t}function Fa(){return function(t){return function(t){void 0===t&&(t={});var o=t.thunk,e=void 0===o||o;t.immutableCheck,t.serializableCheck;var r=new za;e&&(!function(t){return"boolean"==typeof t}(e)?r.push(Oa.withExtraArgument(e.extraArgument)):r.push(Oa));return r}(t)}}function Pa(t){var o,e=Fa(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,l=void 0===a?e():a,s=r.devTools,c=void 0===s||s,f=r.preloadedState,d=void 0===f?void 0:f,p=r.enhancers,h=void 0===p?void 0:p;if("function"==typeof i)o=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;for(var e=o;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return o===e}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');o=ua(i)}var u=l;"function"==typeof u&&(u=u(e));var y=ga.apply(void 0,u),g=ya;c&&(g=$a(Wa({trace:!1},"object"==typeof c&&c)));var b=new Ba(y),m=b;return Array.isArray(h)?m=Sa([y],h):"function"==typeof h&&(m=h(b)),ha(o,d,g.apply(void 0,m))}function _a(t,o){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(o){var n=o.apply(void 0,e);if(!n)throw new Error("prepareAction did not return an object");return Wa(Wa({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:e[0]}}return e.toString=function(){return""+t},e.type=t,e.match=function(o){return o.type===t},e}function Ma(t){var o,e={},r=[],n={addCase:function(t,o){var r="string"==typeof t?t:t.type;if(r in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[r]=o,n},addMatcher:function(t,o){return r.push({matcher:t,reducer:o}),n},addDefaultCase:function(t){return o=t,n}};return t(n),[e,r,o]}function ja(t){var o=t.name;if(!o)throw new Error("`name` is a required option for createSlice");var e,r="function"==typeof t.initialState?t.initialState:Aa(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},l={},s={};function c(){var o="function"==typeof t.extraReducers?Ma(t.extraReducers):[t.extraReducers],e=o[0],n=void 0===e?{}:e,i=o[1],a=void 0===i?[]:i,s=o[2],c=void 0===s?void 0:s,f=Wa(Wa({},n),l);return function(t,o,e,r){void 0===e&&(e=[]);var n,i="function"==typeof o?Ma(o):[o,e,r],a=i[0],l=i[1],s=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return Aa(t())};else{var c=Aa(t);n=function(){return c}}function f(t,o){void 0===t&&(t=n());var e=Sa([a[o.type]],l.filter((function(t){return(0,t.matcher)(o)})).map((function(t){return t.reducer})));return 0===e.filter((function(t){return!!t})).length&&(e=[s]),e.reduce((function(t,e){if(e){var r;if(si(t))return void 0===(r=e(t,o))?t:r;if(ci(t))return ra(t,(function(t){return e(t,o)}));if(void 0===(r=e(t,o))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=n,f}(r,(function(t){for(var o in f)t.addCase(o,f[o]);for(var e=0,r=a;e<r.length;e++){var n=r[e];t.addMatcher(n.matcher,n.reducer)}c&&t.addDefaultCase(c)}))}return i.forEach((function(t){var e,r,i=n[t],c=o+"/"+t;"reducer"in i?(e=i.reducer,r=i.prepare):e=i,a[t]=e,l[c]=e,s[t]=r?_a(c,r):_a(c)})),{name:o,reducer:function(t,o){return e||(e=c()),e(t,o)},actions:s,caseReducers:a,getInitialState:function(){return e||(e=c()),e.getInitialState()}}}var Ka=["name","message","stack","code"],Za=function(t,o){this.payload=t,this.meta=o},Da=function(t,o){this.payload=t,this.meta=o},Ha=function(t){if("object"==typeof t&&null!==t){for(var o={},e=0,r=Ka;e<r.length;e++){var n=r[e];"string"==typeof t[n]&&(o[n]=t[n])}return o}return{message:String(t)}};function Ta(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,o,e){var r=_a(t+"/fulfilled",(function(t,o,e,r){return{payload:t,meta:ka(Wa({},r||{}),{arg:e,requestId:o,requestStatus:"fulfilled"})}})),n=_a(t+"/pending",(function(t,o,e){return{payload:void 0,meta:ka(Wa({},e||{}),{arg:o,requestId:t,requestStatus:"pending"})}})),i=_a(t+"/rejected",(function(t,o,r,n,i){return{payload:n,error:(e&&e.serializeError||Ha)(t||"Rejected"),meta:ka(Wa({},i||{}),{arg:r,requestId:o,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(l,s,c){var f,d=(null==e?void 0:e.idGenerator)?e.idGenerator(t):function(t){void 0===t&&(t=21);for(var o="",e=t;e--;)o+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return o}(),p=new a;function h(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return wa(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==e?void 0:e.condition)?void 0:a.call(e,t,{getState:s,extra:c}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,o){return p.signal.addEventListener("abort",(function(){return o({name:"AbortError",message:f||"Aborted"})}))})),l(n(d,t,null==(u=null==e?void 0:e.getPendingMeta)?void 0:u.call(e,{requestId:d,arg:t},{getState:s,extra:c}))),[4,Promise.race([b,Promise.resolve(o(t,{dispatch:l,getState:s,extra:c,requestId:d,signal:p.signal,abort:h,rejectWithValue:function(t,o){return new Za(t,o)},fulfillWithValue:function(t,o){return new Da(t,o)}})).then((function(o){if(o instanceof Za)throw o;return o instanceof Da?r(o.payload,d,t,o.meta):r(o,d,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Za?i(null,d,t,m.payload,m.meta):i(m,d,t),[3,5];case 5:return e&&!e.dispatchConditionRejection&&i.match(y)&&y.meta.condition||l(y),[2,y]}var O}))},new Promise((function(t,o){var e=function(t){try{n(y.next(t))}catch(t){o(t)}},r=function(t){try{n(y.throw(t))}catch(t){o(t)}},n=function(o){return o.done?t(o.value):Promise.resolve(o.value).then(e,r)};n((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:h,requestId:d,arg:t,unwrap:function(){return u.then(Ta)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ga="listenerMiddleware";_a(Ga+"/add"),_a(Ga+"/removeAll"),_a(Ga+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,o){var e=n[t];return e?e.enumerable=o:n[t]=e={configurable:!0,enumerable:o,get:function(){var o=this[Vi];return Qi.get(o,t)},set:function(o){var e=this[Vi];Qi.set(e,t,o)}},e}function o(t){for(var o=t.length-1;o>=0;o--){var n=t[o][Vi];if(!n.P)switch(n.i){case 5:r(n)&&Bi(n);break;case 4:e(n)&&Bi(n)}}}function e(t){for(var o=t.t,e=t.k,r=Yi(e),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Vi){var a=o[i];if(void 0===a&&!pi(o,i))return!0;var l=e[i],s=l&&l[Vi];if(s?s.t!==a:!ui(l,a))return!0}}var c=!!o[Vi];return r.length!==Yi(o).length+(c?0:1)}function r(t){var o=t.k;if(o.length!==t.t.length)return!0;var e=Object.getOwnPropertyDescriptor(o,o.length-1);if(e&&!e.get)return!0;for(var r=0;r<o.length;r++)if(!o.hasOwnProperty(r))return!0;return!1}var n={};!function(t,o){Xi[t]||(Xi[t]=o)}("ES5",{J:function(o,e){var r=Array.isArray(o),n=function(o,e){if(o){for(var r=Array(e.length),n=0;n<e.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=Ji(e);delete i[Vi];for(var a=Yi(i),l=0;l<a.length;l++){var s=a[l];i[s]=t(s,o||!!i[s].enumerable)}return Object.create(Object.getPrototypeOf(e),i)}(r,o),i={i:r?5:4,A:e?e.A:Si(),P:!1,I:!1,R:{},l:e,t:o,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Vi,{value:i,writable:!0}),n},S:function(t,e,n){n?si(e)&&e[Vi].A===t&&o(t.p):(t.u&&function t(o){if(o&&"object"==typeof o){var e=o[Vi];if(e){var n=e.t,i=e.k,a=e.R,l=e.i;if(4===l)fi(i,(function(o){o!==Vi&&(void 0!==n[o]||pi(n,o)?a[o]||t(i[o]):(a[o]=!0,Bi(e)))})),fi(n,(function(t){void 0!==i[t]||pi(i,t)||(a[t]=!1,Bi(e))}));else if(5===l){if(r(e)&&(Bi(e),a.length=!0),i.length<n.length)for(var s=i.length;s<n.length;s++)a[s]=!1;else for(var c=n.length;c<i.length;c++)a[c]=!0;for(var f=Math.min(i.length,n.length),d=0;d<f;d++)i.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&t(i[d])}}}}(t.p[0]),o(t.p))},K:function(t){return 4===t.i?e(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Va{static get(t){var o;const e="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Qn(n))return n;if(null==r)return;const i=ja({...r,reducers:null!==(o=r.reducers)&&void 0!==o?o:{}}),a=Pa({reducer:(t,o)=>"CLEAR_FT_REDUX_STORE"===o.type?i.getInitialState():"string"==typeof o.type&&o.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...o.overwrites}:i.reducer(t,o)});return window.ftReduxStores[r.name]=new Va(i,a)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Xn,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,o,e)=>{const r=o,n=t[r];return n?(...t)=>{const o=n(...t);return this.reduxStore.dispatch(o),o}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var qa=Object.freeze({__proto__:null,FtCommandQueue:Xn,FtLitElementRedux:ai,FtReduxStore:Va,clearAllStores:function(){var t;for(let o of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))Qn(o)&&o.clear()},isFtReduxStore:Qn,redux:Jn,reduxEventListener:t=>(o,e)=>{const r=o.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(e,t)},reduxReactive:()=>(t,o)=>{var e;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(e=r.reduxReactiveProperties)||void 0===e||e.add(o)}});var Ya=Object.freeze({__proto__:null,serializeRequest:function(t,o){var e,r,n,i;const a=new URLSearchParams({"content-lang":null!==(e=o.contentLocale)&&void 0!==e?e:"all"});if((null===(r=o.query)||void 0===r?void 0:r.length)>0&&a.append("query",o.query),o.scope&&"DEFAULT"!==o.scope&&a.append("scope",o.scope.toLowerCase()),o.virtualField&&a.append("virtual-field",o.virtualField.toLowerCase()),o.periodFilter){let t=o.periodFilter.period;const e=t?`_${t.from}_${t.to}`:"";a.append("period",o.periodFilter.periodType.toLowerCase()+e)}if((null===(n=o.sort)||void 0===n?void 0:n.length)>0&&"ft:lastEdition"===o.sort[0].key&&a.append("sort","last_update"),(null===(i=o.filters)||void 0===i?void 0:i.length)>0){const t=o.filters.map((t=>{const o=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${o}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const Ja=Symbol("elementInternals");var Xa,Qa,tl,ol,el=Object.freeze({__proto__:null,toFtFormComponent:function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Ja].form}constructor(...t){super(t),this[Ja]=this.attachInternals(),this[Ja].role=o}setFormValue(t){this[Ja].setFormValue(t)}}}});const rl=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(tl=null===(Qa=null===(Xa=window.safari)||void 0===Xa?void 0:Xa.pushNotification)||void 0===Qa?void 0:Qa.toString())&&void 0!==tl?tl:""),nl="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(ol=window.ftGlobals)&&void 0!==ol?ol:{lit:Oo,litDecorators:Ro,litRepeat:Mo,litClassMap:Ko,litStyleMap:To,litUnsafeHTML:qo,wcUtils:{...oe,...Qo,...re,...ie,...ue,...mr,...wr,...Nn,...gr,...An,...Fn,...fe,...Zn,...Gn,...Vn,...Yn,...qa,...Un,...Ya,...el,isSafari:rl,isTouchScreen:nl}};const il=pt``;var al;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(al||(al={}));var ll=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class sl extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const cl=Symbol("registerInterval");class fl extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[cl]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[cl]):this.dispatchEvent(new sl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=cl,ll([Co()],e.prototype,"stateManager",void 0),e}(ai)){}
177
+ `;var Vn=Object.freeze({__proto__:null,noTextSelect:Hn,safariEllipsisFix:Gn,wordWrap:Tn}),qn=Object.freeze({__proto__:null});class Yn{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var e,r;t=this.resolvePluralKey(t,o);let n=null!==(r=null!==(e=this.labels[t])&&void 0!==e?e:this.defaultLabels[t])&&void 0!==r?r:"";return o.forEach(((t,o)=>n=n.replace(new RegExp(`\\{${o}([^}]*)\\}`,"g"),((o,e)=>this.formatValue(t,e))))),n}resolvePluralKey(t,o){for(let e of o)if("number"==typeof e){const o=`${String(t)}[\\=${e}]`;if(o in this.labels||o in this.defaultLabels)return o}return t}formatValue(t,o){return t instanceof Date?this.formatDate(t,o):null!=t?t:""}formatDate(t,o){const e=e=>(null==o?void 0:o.includes("date"))?t.toLocaleDateString(e):(null==o?void 0:o.includes("time"))?t.toLocaleTimeString(e):t.toLocaleString(e);try{return e(document.documentElement.lang)}catch(t){return e()}}}var Jn=Object.freeze({__proto__:null,ParametrizedLabelResolver:Yn});const Xn=t=>{const o=null!=t?t:{};return(t,e)=>{var r;const n={hasChanged:(t,o)=>!ce(t,o),attribute:!1,...o};So(n)(t,e);const i=t.constructor;i.reduxProperties=new Map(i.reduxProperties),i.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}};class Qn{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter((o=>o.type!==t.type))),this.queue.push(t)}consume(t){const o=this.queue.find((o=>o.type===t));return o&&(this.queue=this.queue.filter((t=>t!==o))),o}}function ti(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var oi,ei,ri;const ni=Symbol("internalReduxEventsUnsubscribers"),ii=Symbol("internalStoresUnsubscribers"),ai=Symbol("internalStores");class li extends Bn{constructor(){super(...arguments),this[oi]=new Map,this[ei]=new Map,this[ri]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[ai].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ai].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ai].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:ti(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[ai].delete(o)}setupStore(t,o){this[ai].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ai].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[ii].has(t.store):this[ii].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[ii].set(t,o.subscribe((()=>this.updateFromStores()))),ti(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[ni].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ii].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[ni].forEach((t=>t())),this[ni]=[]}unsubscribeFromStore(t){this[ii].has(t)&&this[ii].get(t)(),this[ii].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function si(t){for(var o=arguments.length,e=Array(o>1?o-1:0),r=1;r<o;r++)e[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(e.length?" "+e.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ci(t){return!!t&&!!t[qi]}function fi(t){var o;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;var e=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===Yi}(t)||Array.isArray(t)||!!t[Vi]||!!(null===(o=t.constructor)||void 0===o?void 0:o[Vi])||gi(t)||bi(t))}function di(t,o,e){void 0===e&&(e=!1),0===pi(t)?(e?Object.keys:Ji)(t).forEach((function(r){e&&"symbol"==typeof r||o(r,t[r],t)})):t.forEach((function(e,r){return o(r,e,t)}))}function pi(t){var o=t[qi];return o?o.i>3?o.i-4:o.i:Array.isArray(t)?1:gi(t)?2:bi(t)?3:0}function hi(t,o){return 2===pi(t)?t.has(o):Object.prototype.hasOwnProperty.call(t,o)}function ui(t,o,e){var r=pi(t);2===r?t.set(o,e):3===r?t.add(e):t[o]=e}function yi(t,o){return t===o?0!==t||1/t==1/o:t!=t&&o!=o}function gi(t){return Di&&t instanceof Map}function bi(t){return Hi&&t instanceof Set}function mi(t){return t.o||t.t}function vi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var o=Xi(t);delete o[qi];for(var e=Ji(o),r=0;r<e.length;r++){var n=e[r],i=o[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(o[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),o)}function Oi(t,o){return void 0===o&&(o=!1),wi(t)||ci(t)||!fi(t)||(pi(t)>1&&(t.set=t.add=t.clear=t.delete=xi),Object.freeze(t),o&&di(t,(function(t,o){return Oi(o,!0)}),!0)),t}function xi(){si(2)}function wi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Si(t){var o=Qi[t];return o||si(18,t),o}function Ci(){return Ki}function Ni(t,o){o&&(Si("Patches"),t.u=[],t.s=[],t.v=o)}function Ei(t){Ri(t),t.p.forEach(Li),t.p=null}function Ri(t){t===Ki&&(Ki=t.l)}function Ii(t){return Ki={p:[],l:Ki,h:t,m:!0,_:0}}function Li(t){var o=t[qi];0===o.i||1===o.i?o.j():o.g=!0}function Ui(t,o){o._=o.p.length;var e=o.p[0],r=void 0!==t&&t!==e;return o.h.O||Si("ES5").S(o,t,r),r?(e[qi].P&&(Ei(o),si(4)),fi(t)&&(t=Wi(o,t),o.l||$i(o,t)),o.u&&Si("Patches").M(e[qi].t,t,o.u,o.s)):t=Wi(o,e,[]),Ei(o),o.u&&o.v(o.u,o.s),t!==Gi?t:void 0}function Wi(t,o,e){if(wi(o))return o;var r=o[qi];if(!r)return di(o,(function(n,i){return ki(t,r,o,n,i,e)}),!0),o;if(r.A!==t)return o;if(!r.P)return $i(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=vi(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),di(i,(function(o,i){return ki(t,r,n,o,i,e,a)})),$i(t,n,!1),e&&t.u&&Si("Patches").N(r,e,t.u,t.s)}return r.o}function ki(t,o,e,r,n,i,a){if(ci(n)){var l=Wi(t,n,i&&o&&3!==o.i&&!hi(o.R,r)?i.concat(r):void 0);if(ui(e,r,l),!ci(l))return;t.m=!1}else a&&e.add(n);if(fi(n)&&!wi(n)){if(!t.h.D&&t._<1)return;Wi(t,n),o&&o.A.l||$i(t,n)}}function $i(t,o,e){void 0===e&&(e=!1),!t.l&&t.h.D&&t.m&&Oi(o,e)}function zi(t,o){var e=t[qi];return(e?mi(e):t)[o]}function Bi(t,o){if(o in t)for(var e=Object.getPrototypeOf(t);e;){var r=Object.getOwnPropertyDescriptor(e,o);if(r)return r;e=Object.getPrototypeOf(e)}}function Ai(t){t.P||(t.P=!0,t.l&&Ai(t.l))}function Fi(t){t.o||(t.o=vi(t.t))}function Pi(t,o,e){var r=gi(o)?Si("MapSet").F(o,e):bi(o)?Si("MapSet").T(o,e):t.O?function(t,o){var e=Array.isArray(t),r={i:e?1:0,A:o?o.A:Ci(),P:!1,I:!1,R:{},l:o,t,k:null,o:null,j:null,C:!1},n=r,i=ta;e&&(n=[r],i=oa);var a=Proxy.revocable(n,i),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(o,e):Si("ES5").J(o,e);return(e?e.A:Ci()).p.push(r),r}function _i(t){return ci(t)||si(22,t),function t(o){if(!fi(o))return o;var e,r=o[qi],n=pi(o);if(r){if(!r.P&&(r.i<4||!Si("ES5").K(r)))return r.t;r.I=!0,e=Mi(o,n),r.I=!1}else e=Mi(o,n);return di(e,(function(o,n){r&&function(t,o){return 2===pi(t)?t.get(o):t[o]}(r.t,o)===n||ui(e,o,t(n))})),3===n?new Set(e):e}(t)}function Mi(t,o){switch(o){case 2:return new Map(t);case 3:return Array.from(t)}return vi(t)}oi=ii,ei=ai,ri=ni,li.reduxProperties=new Map,li.reduxReactiveProperties=new Set,li.reduxEventListeners=new Map;var ji,Ki,Zi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Di="undefined"!=typeof Map,Hi="undefined"!=typeof Set,Ti="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Gi=Zi?Symbol.for("immer-nothing"):((ji={})["immer-nothing"]=!0,ji),Vi=Zi?Symbol.for("immer-draftable"):"__$immer_draftable",qi=Zi?Symbol.for("immer-state"):"__$immer_state",Yi=""+Object.prototype.constructor,Ji="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xi=Object.getOwnPropertyDescriptors||function(t){var o={};return Ji(t).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(t,e)})),o},Qi={},ta={get:function(t,o){if(o===qi)return t;var e=mi(t);if(!hi(e,o))return function(t,o,e){var r,n=Bi(o,e);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,e,o);var r=e[o];return t.I||!fi(r)?r:r===zi(t.t,o)?(Fi(t),t.o[o]=Pi(t.A.h,r,t)):r},has:function(t,o){return o in mi(t)},ownKeys:function(t){return Reflect.ownKeys(mi(t))},set:function(t,o,e){var r=Bi(mi(t),o);if(null==r?void 0:r.set)return r.set.call(t.k,e),!0;if(!t.P){var n=zi(mi(t),o),i=null==n?void 0:n[qi];if(i&&i.t===e)return t.o[o]=e,t.R[o]=!1,!0;if(yi(e,n)&&(void 0!==e||hi(t.t,o)))return!0;Fi(t),Ai(t)}return t.o[o]===e&&(void 0!==e||o in t.o)||Number.isNaN(e)&&Number.isNaN(t.o[o])||(t.o[o]=e,t.R[o]=!0),!0},deleteProperty:function(t,o){return void 0!==zi(t.t,o)||o in t.t?(t.R[o]=!1,Fi(t),Ai(t)):delete t.R[o],t.o&&delete t.o[o],!0},getOwnPropertyDescriptor:function(t,o){var e=mi(t),r=Reflect.getOwnPropertyDescriptor(e,o);return r?{writable:!0,configurable:1!==t.i||"length"!==o,enumerable:r.enumerable,value:e[o]}:r},defineProperty:function(){si(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){si(12)}},oa={};di(ta,(function(t,o){oa[t]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}})),oa.deleteProperty=function(t,o){return oa.set.call(this,t,o,void 0)},oa.set=function(t,o,e){return ta.set.call(this,t[0],o,e,t[0])};var ea=function(){function t(t){var o=this;this.O=Ti,this.D=!0,this.produce=function(t,e,r){if("function"==typeof t&&"function"!=typeof e){var n=e;e=t;var i=o;return function(t){var o=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(t,(function(t){var r;return(r=e).call.apply(r,[o,t].concat(a))}))}}var a;if("function"!=typeof e&&si(6),void 0!==r&&"function"!=typeof r&&si(7),fi(t)){var l=Ii(o),s=Pi(o,t,void 0),c=!0;try{a=e(s),c=!1}finally{c?Ei(l):Ri(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Ni(l,r),Ui(t,l)}),(function(t){throw Ei(l),t})):(Ni(l,r),Ui(a,l))}if(!t||"object"!=typeof t){if(void 0===(a=e(t))&&(a=t),a===Gi&&(a=void 0),o.D&&Oi(a,!0),r){var f=[],d=[];Si("Patches").M(t,a,f,d),r(f,d)}return a}si(21,t)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return o.produceWithPatches(e,(function(o){return t.apply(void 0,[o].concat(n))}))};var r,n,i=o.produce(t,e,(function(t,o){r=t,n=o}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var o=t.prototype;return o.createDraft=function(t){fi(t)||si(8),ci(t)&&(t=_i(t));var o=Ii(this),e=Pi(this,t,void 0);return e[qi].C=!0,Ri(o),e},o.finishDraft=function(t,o){var e=(t&&t[qi]).A;return Ni(e,o),Ui(void 0,e)},o.setAutoFreeze=function(t){this.D=t},o.setUseProxies=function(t){t&&!Ti&&si(20),this.O=t},o.applyPatches=function(t,o){var e;for(e=o.length-1;e>=0;e--){var r=o[e];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}e>-1&&(o=o.slice(e+1));var n=Si("Patches").$;return ci(t)?n(t,o):this.produce(t,(function(t){return n(t,o)}))},t}(),ra=new ea,na=ra.produce;function ia(t){return ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ia(t)}function aa(t){var o=function(t,o){if("object"!==ia(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,o||"default");if("object"!==ia(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"===ia(o)?o:String(o)}function la(t,o,e){return(o=aa(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function sa(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,r)}return e}function ca(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?sa(Object(e),!0).forEach((function(o){la(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sa(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}function fa(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. "}ra.produceWithPatches.bind(ra),ra.setAutoFreeze.bind(ra),ra.setUseProxies.bind(ra),ra.applyPatches.bind(ra),ra.createDraft.bind(ra),ra.finishDraft.bind(ra);var da="function"==typeof Symbol&&Symbol.observable||"@@observable",pa=function(){return Math.random().toString(36).substring(7).split("").join(".")},ha={INIT:"@@redux/INIT"+pa(),REPLACE:"@@redux/REPLACE"+pa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pa()}};function ua(t,o,e){var r;if("function"==typeof o&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(fa(0));if("function"==typeof o&&void 0===e&&(e=o,o=void 0),void 0!==e){if("function"!=typeof e)throw new Error(fa(1));return e(ua)(t,o)}if("function"!=typeof t)throw new Error(fa(2));var n=t,i=o,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(fa(3));return i}function d(t){if("function"!=typeof t)throw new Error(fa(4));if(s)throw new Error(fa(5));var o=!0;return c(),l.push(t),function(){if(o){if(s)throw new Error(fa(6));o=!1,c();var e=l.indexOf(t);l.splice(e,1),a=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(t)===o}(t))throw new Error(fa(7));if(void 0===t.type)throw new Error(fa(8));if(s)throw new Error(fa(9));try{s=!0,i=n(i,t)}finally{s=!1}for(var o=a=l,e=0;e<o.length;e++){(0,o[e])()}return t}return p({type:ha.INIT}),(r={dispatch:p,subscribe:d,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(fa(10));n=t,p({type:ha.REPLACE})}})[da]=function(){var t,o=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(fa(11));function e(){t.next&&t.next(f())}return e(),{unsubscribe:o(e)}}})[da]=function(){return this},t},r}function ya(t){for(var o=Object.keys(t),e={},r=0;r<o.length;r++){var n=o[r];"function"==typeof t[n]&&(e[n]=t[n])}var i,a=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(o){var e=t[o];if(void 0===e(void 0,{type:ha.INIT}))throw new Error(fa(12));if(void 0===e(void 0,{type:ha.PROBE_UNKNOWN_ACTION()}))throw new Error(fa(13))}))}(e)}catch(t){i=t}return function(t,o){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},l=0;l<a.length;l++){var s=a[l],c=e[s],f=t[s],d=c(f,o);if(void 0===d)throw o&&o.type,new Error(fa(14));n[s]=d,r=r||d!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function ga(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return 0===o.length?function(t){return t}:1===o.length?o[0]:o.reduce((function(t,o){return function(){return t(o.apply(void 0,arguments))}}))}function ba(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(fa(15))},n={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=o.map((function(t){return t(n)}));return r=ga.apply(void 0,i)(e.dispatch),ca(ca({},e),{},{dispatch:r})}}}function ma(t){return function(o){var e=o.dispatch,r=o.getState;return function(o){return function(n){return"function"==typeof n?n(e,r,t):o(n)}}}}var va=ma();va.withExtraArgument=ma;var Oa,xa=va,wa=(Oa=function(t,o){return Oa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])},Oa(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}Oa(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),Sa=function(t,o){var e,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=o.call(t,a)}catch(t){i=[6,t],r=0}finally{e=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Ca=function(t,o){for(var e=0,r=o.length,n=t.length;e<r;e++,n++)t[n]=o[e];return t},Na=Object.defineProperty,Ea=Object.defineProperties,Ra=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,Wa=function(t,o,e){return o in t?Na(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e},ka=function(t,o){for(var e in o||(o={}))La.call(o,e)&&Wa(t,e,o[e]);if(Ia)for(var r=0,n=Ia(o);r<n.length;r++){e=n[r];Ua.call(o,e)&&Wa(t,e,o[e])}return t},$a=function(t,o){return Ea(t,Ra(o))},za="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ga:ga.apply(null,arguments)};var Ba=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return Object.setPrototypeOf(n,o.prototype),n}return wa(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,Ca([void 0],t[0].concat(this)))):new(o.bind.apply(o,Ca([void 0],t.concat(this))))},o}(Array),Aa=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return Object.setPrototypeOf(n,o.prototype),n}return wa(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,Ca([void 0],t[0].concat(this)))):new(o.bind.apply(o,Ca([void 0],t.concat(this))))},o}(Array);function Fa(t){return fi(t)?na(t,(function(){})):t}function Pa(){return function(t){return function(t){void 0===t&&(t={});var o=t.thunk,e=void 0===o||o;t.immutableCheck,t.serializableCheck;var r=new Ba;e&&(!function(t){return"boolean"==typeof t}(e)?r.push(xa.withExtraArgument(e.extraArgument)):r.push(xa));return r}(t)}}function _a(t){var o,e=Pa(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,l=void 0===a?e():a,s=r.devTools,c=void 0===s||s,f=r.preloadedState,d=void 0===f?void 0:f,p=r.enhancers,h=void 0===p?void 0:p;if("function"==typeof i)o=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;for(var e=o;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return o===e}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');o=ya(i)}var u=l;"function"==typeof u&&(u=u(e));var y=ba.apply(void 0,u),g=ga;c&&(g=za(ka({trace:!1},"object"==typeof c&&c)));var b=new Aa(y),m=b;return Array.isArray(h)?m=Ca([y],h):"function"==typeof h&&(m=h(b)),ua(o,d,g.apply(void 0,m))}function Ma(t,o){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(o){var n=o.apply(void 0,e);if(!n)throw new Error("prepareAction did not return an object");return ka(ka({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:e[0]}}return e.toString=function(){return""+t},e.type=t,e.match=function(o){return o.type===t},e}function ja(t){var o,e={},r=[],n={addCase:function(t,o){var r="string"==typeof t?t:t.type;if(r in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[r]=o,n},addMatcher:function(t,o){return r.push({matcher:t,reducer:o}),n},addDefaultCase:function(t){return o=t,n}};return t(n),[e,r,o]}function Ka(t){var o=t.name;if(!o)throw new Error("`name` is a required option for createSlice");var e,r="function"==typeof t.initialState?t.initialState:Fa(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},l={},s={};function c(){var o="function"==typeof t.extraReducers?ja(t.extraReducers):[t.extraReducers],e=o[0],n=void 0===e?{}:e,i=o[1],a=void 0===i?[]:i,s=o[2],c=void 0===s?void 0:s,f=ka(ka({},n),l);return function(t,o,e,r){void 0===e&&(e=[]);var n,i="function"==typeof o?ja(o):[o,e,r],a=i[0],l=i[1],s=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return Fa(t())};else{var c=Fa(t);n=function(){return c}}function f(t,o){void 0===t&&(t=n());var e=Ca([a[o.type]],l.filter((function(t){return(0,t.matcher)(o)})).map((function(t){return t.reducer})));return 0===e.filter((function(t){return!!t})).length&&(e=[s]),e.reduce((function(t,e){if(e){var r;if(ci(t))return void 0===(r=e(t,o))?t:r;if(fi(t))return na(t,(function(t){return e(t,o)}));if(void 0===(r=e(t,o))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=n,f}(r,(function(t){for(var o in f)t.addCase(o,f[o]);for(var e=0,r=a;e<r.length;e++){var n=r[e];t.addMatcher(n.matcher,n.reducer)}c&&t.addDefaultCase(c)}))}return i.forEach((function(t){var e,r,i=n[t],c=o+"/"+t;"reducer"in i?(e=i.reducer,r=i.prepare):e=i,a[t]=e,l[c]=e,s[t]=r?Ma(c,r):Ma(c)})),{name:o,reducer:function(t,o){return e||(e=c()),e(t,o)},actions:s,caseReducers:a,getInitialState:function(){return e||(e=c()),e.getInitialState()}}}var Za=["name","message","stack","code"],Da=function(t,o){this.payload=t,this.meta=o},Ha=function(t,o){this.payload=t,this.meta=o},Ta=function(t){if("object"==typeof t&&null!==t){for(var o={},e=0,r=Za;e<r.length;e++){var n=r[e];"string"==typeof t[n]&&(o[n]=t[n])}return o}return{message:String(t)}};function Ga(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,o,e){var r=Ma(t+"/fulfilled",(function(t,o,e,r){return{payload:t,meta:$a(ka({},r||{}),{arg:e,requestId:o,requestStatus:"fulfilled"})}})),n=Ma(t+"/pending",(function(t,o,e){return{payload:void 0,meta:$a(ka({},e||{}),{arg:o,requestId:t,requestStatus:"pending"})}})),i=Ma(t+"/rejected",(function(t,o,r,n,i){return{payload:n,error:(e&&e.serializeError||Ta)(t||"Rejected"),meta:$a(ka({},i||{}),{arg:r,requestId:o,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(l,s,c){var f,d=(null==e?void 0:e.idGenerator)?e.idGenerator(t):function(t){void 0===t&&(t=21);for(var o="",e=t;e--;)o+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return o}(),p=new a;function h(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return Sa(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==e?void 0:e.condition)?void 0:a.call(e,t,{getState:s,extra:c}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,o){return p.signal.addEventListener("abort",(function(){return o({name:"AbortError",message:f||"Aborted"})}))})),l(n(d,t,null==(u=null==e?void 0:e.getPendingMeta)?void 0:u.call(e,{requestId:d,arg:t},{getState:s,extra:c}))),[4,Promise.race([b,Promise.resolve(o(t,{dispatch:l,getState:s,extra:c,requestId:d,signal:p.signal,abort:h,rejectWithValue:function(t,o){return new Da(t,o)},fulfillWithValue:function(t,o){return new Ha(t,o)}})).then((function(o){if(o instanceof Da)throw o;return o instanceof Ha?r(o.payload,d,t,o.meta):r(o,d,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Da?i(null,d,t,m.payload,m.meta):i(m,d,t),[3,5];case 5:return e&&!e.dispatchConditionRejection&&i.match(y)&&y.meta.condition||l(y),[2,y]}var O}))},new Promise((function(t,o){var e=function(t){try{n(y.next(t))}catch(t){o(t)}},r=function(t){try{n(y.throw(t))}catch(t){o(t)}},n=function(o){return o.done?t(o.value):Promise.resolve(o.value).then(e,r)};n((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:h,requestId:d,arg:t,unwrap:function(){return u.then(Ga)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Va="listenerMiddleware";Ma(Va+"/add"),Ma(Va+"/removeAll"),Ma(Va+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,o){var e=n[t];return e?e.enumerable=o:n[t]=e={configurable:!0,enumerable:o,get:function(){var o=this[qi];return ta.get(o,t)},set:function(o){var e=this[qi];ta.set(e,t,o)}},e}function o(t){for(var o=t.length-1;o>=0;o--){var n=t[o][qi];if(!n.P)switch(n.i){case 5:r(n)&&Ai(n);break;case 4:e(n)&&Ai(n)}}}function e(t){for(var o=t.t,e=t.k,r=Ji(e),n=r.length-1;n>=0;n--){var i=r[n];if(i!==qi){var a=o[i];if(void 0===a&&!hi(o,i))return!0;var l=e[i],s=l&&l[qi];if(s?s.t!==a:!yi(l,a))return!0}}var c=!!o[qi];return r.length!==Ji(o).length+(c?0:1)}function r(t){var o=t.k;if(o.length!==t.t.length)return!0;var e=Object.getOwnPropertyDescriptor(o,o.length-1);if(e&&!e.get)return!0;for(var r=0;r<o.length;r++)if(!o.hasOwnProperty(r))return!0;return!1}var n={};!function(t,o){Qi[t]||(Qi[t]=o)}("ES5",{J:function(o,e){var r=Array.isArray(o),n=function(o,e){if(o){for(var r=Array(e.length),n=0;n<e.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=Xi(e);delete i[qi];for(var a=Ji(i),l=0;l<a.length;l++){var s=a[l];i[s]=t(s,o||!!i[s].enumerable)}return Object.create(Object.getPrototypeOf(e),i)}(r,o),i={i:r?5:4,A:e?e.A:Ci(),P:!1,I:!1,R:{},l:e,t:o,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,qi,{value:i,writable:!0}),n},S:function(t,e,n){n?ci(e)&&e[qi].A===t&&o(t.p):(t.u&&function t(o){if(o&&"object"==typeof o){var e=o[qi];if(e){var n=e.t,i=e.k,a=e.R,l=e.i;if(4===l)di(i,(function(o){o!==qi&&(void 0!==n[o]||hi(n,o)?a[o]||t(i[o]):(a[o]=!0,Ai(e)))})),di(n,(function(t){void 0!==i[t]||hi(i,t)||(a[t]=!1,Ai(e))}));else if(5===l){if(r(e)&&(Ai(e),a.length=!0),i.length<n.length)for(var s=i.length;s<n.length;s++)a[s]=!1;else for(var c=n.length;c<i.length;c++)a[c]=!0;for(var f=Math.min(i.length,n.length),d=0;d<f;d++)i.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&t(i[d])}}}}(t.p[0]),o(t.p))},K:function(t){return 4===t.i?e(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qa{static get(t){var o;const e="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(ti(n))return n;if(null==r)return;const i=Ka({...r,reducers:null!==(o=r.reducers)&&void 0!==o?o:{}}),a=_a({reducer:(t,o)=>"CLEAR_FT_REDUX_STORE"===o.type?i.getInitialState():"string"==typeof o.type&&o.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...o.overwrites}:i.reducer(t,o)});return window.ftReduxStores[r.name]=new qa(i,a)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Qn,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,o,e)=>{const r=o,n=t[r];return n?(...t)=>{const o=n(...t);return this.reduxStore.dispatch(o),o}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ya=Object.freeze({__proto__:null,FtCommandQueue:Qn,FtLitElementRedux:li,FtReduxStore:qa,clearAllStores:function(){var t;for(let o of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))ti(o)&&o.clear()},isFtReduxStore:ti,redux:Xn,reduxEventListener:t=>(o,e)=>{const r=o.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(e,t)},reduxReactive:()=>(t,o)=>{var e;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(e=r.reduxReactiveProperties)||void 0===e||e.add(o)}});var Ja=Object.freeze({__proto__:null,serializeRequest:function(t,o){var e,r,n,i;const a=new URLSearchParams({"content-lang":null!==(e=o.contentLocale)&&void 0!==e?e:"all"});if((null===(r=o.query)||void 0===r?void 0:r.length)>0&&a.append("query",o.query),o.scope&&"DEFAULT"!==o.scope&&a.append("scope",o.scope.toLowerCase()),o.virtualField&&a.append("virtual-field",o.virtualField.toLowerCase()),o.periodFilter){let t=o.periodFilter.period;const e=t?`_${t.from}_${t.to}`:"";a.append("period",o.periodFilter.periodType.toLowerCase()+e)}if((null===(n=o.sort)||void 0===n?void 0:n.length)>0&&"ft:lastEdition"===o.sort[0].key&&a.append("sort","last_update"),(null===(i=o.filters)||void 0===i?void 0:i.length)>0){const t=o.filters.map((t=>{const o=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${o}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const Xa=Symbol("elementInternals");var Qa,tl,ol,el,rl=Object.freeze({__proto__:null,toFtFormComponent:function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Xa].form}constructor(...t){super(t),this[Xa]=this.attachInternals(),this[Xa].role=o}setFormValue(t){this[Xa].setFormValue(t)}}}});const nl=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ol=null===(tl=null===(Qa=window.safari)||void 0===Qa?void 0:Qa.pushNotification)||void 0===tl?void 0:tl.toString())&&void 0!==ol?ol:""),il="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(el=window.ftGlobals)&&void 0!==el?el:{lit:Oo,litDecorators:Ro,litRepeat:Mo,litClassMap:Ko,litStyleMap:To,litUnsafeHTML:qo,wcUtils:{...oe,...Qo,...re,...ie,...ue,...mr,...wr,...Nn,...gr,...An,...Fn,...fe,...Dn,...Vn,...qn,...Jn,...Ya,...Un,...Ja,...rl,isSafari:nl,isTouchScreen:il}};const al=pt``;var ll;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(ll||(ll={}));var sl=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class cl extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const fl=Symbol("registerInterval");class dl extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[fl]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[fl]):this.dispatchEvent(new cl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=fl,sl([Co()],e.prototype,"stateManager",void 0),e}(li)){}
178
178
  /**
179
179
  * @license
180
180
  * Copyright 2020 Google LLC
181
181
  * SPDX-License-Identifier: BSD-3-Clause
182
- */const dl=Symbol.for(""),pl=t=>{if(t?.r===dl)return t?._$litStatic$},hl=t=>({_$litStatic$:t,r:dl}),ul=new Map,yl=(t=>(o,...e)=>{const r=e.length;let n,i;const a=[],l=[];let s,c=0,f=!1;for(;c<r;){for(s=o[c];c<r&&void 0!==(i=e[c],n=pl(i));)s+=n+o[++c],f=!0;c!==r&&l.push(i),a.push(s),c++}if(c===r&&a.push(o[r]),f){const t=a.join("$$lit$$");void 0===(o=ul.get(t))&&(a.raw=a,ul.set(t,o=a)),e=l}return t(o,...e)})(K);var gl;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(gl||(gl={}));const bl=ge.extend("--ft-typography-font-family","",br.titleFont),ml=ge.extend("--ft-typography-font-family","",br.contentFont),vl={fontFamily:ml,fontSize:ge.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:ge.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:ge.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:ge.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:ge.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ol=ge.extend("--ft-typography-title-font-family","",bl),xl=ge.extend("--ft-typography-title-font-size","",vl.fontSize,"20px"),wl=ge.extend("--ft-typography-title-font-weight","",vl.fontWeight,"normal"),Sl=ge.extend("--ft-typography-title-letter-spacing","",vl.letterSpacing,"0.15px"),Cl=ge.extend("--ft-typography-title-line-height","",vl.lineHeight,"1.2"),Nl=ge.extend("--ft-typography-title-text-transform","",vl.textTransform,"inherit"),El=ge.extend("--ft-typography-title-dense-font-family","",bl),Rl=ge.extend("--ft-typography-title-dense-font-size","",vl.fontSize,"14px"),Il=ge.extend("--ft-typography-title-dense-font-weight","",vl.fontWeight,"normal"),Ll=ge.extend("--ft-typography-title-dense-letter-spacing","",vl.letterSpacing,"0.105px"),Ul=ge.extend("--ft-typography-title-dense-line-height","",vl.lineHeight,"1.7"),Wl=ge.extend("--ft-typography-title-dense-text-transform","",vl.textTransform,"inherit"),kl=ge.extend("--ft-typography-subtitle1-font-family","",ml),$l=ge.extend("--ft-typography-subtitle1-font-size","",vl.fontSize,"16px"),zl=ge.extend("--ft-typography-subtitle1-font-weight","",vl.fontWeight,"600"),Bl=ge.extend("--ft-typography-subtitle1-letter-spacing","",vl.letterSpacing,"0.144px"),Al=ge.extend("--ft-typography-subtitle1-line-height","",vl.lineHeight,"1.5"),Fl=ge.extend("--ft-typography-subtitle1-text-transform","",vl.textTransform,"inherit"),Pl=ge.extend("--ft-typography-subtitle2-font-family","",ml),_l=ge.extend("--ft-typography-subtitle2-font-size","",vl.fontSize,"14px"),Ml=ge.extend("--ft-typography-subtitle2-font-weight","",vl.fontWeight,"normal"),jl=ge.extend("--ft-typography-subtitle2-letter-spacing","",vl.letterSpacing,"0.098px"),Kl=ge.extend("--ft-typography-subtitle2-line-height","",vl.lineHeight,"1.7"),Zl=ge.extend("--ft-typography-subtitle2-text-transform","",vl.textTransform,"inherit"),Dl=ge.extend("--ft-typography-body1-font-family","",ml),Hl=ge.extend("--ft-typography-body1-font-size","",vl.fontSize,"16px"),Tl=ge.extend("--ft-typography-body1-font-weight","",vl.fontWeight,"normal"),Gl=ge.extend("--ft-typography-body1-letter-spacing","",vl.letterSpacing,"0.496px"),Vl=ge.extend("--ft-typography-body1-line-height","",vl.lineHeight,"1.5"),ql=ge.extend("--ft-typography-body1-text-transform","",vl.textTransform,"inherit"),Yl=ge.extend("--ft-typography-body2-font-family","",ml),Jl=ge.extend("--ft-typography-body2-font-size","",vl.fontSize,"14px"),Xl=ge.extend("--ft-typography-body2-font-weight","",vl.fontWeight,"normal"),Ql=ge.extend("--ft-typography-body2-letter-spacing","",vl.letterSpacing,"0.252px"),ts=ge.extend("--ft-typography-body2-line-height","",vl.lineHeight,"1.4"),os=ge.extend("--ft-typography-body2-text-transform","",vl.textTransform,"inherit"),es=ge.extend("--ft-typography-caption-font-family","",ml),rs=ge.extend("--ft-typography-caption-font-size","",vl.fontSize,"12px"),ns=ge.extend("--ft-typography-caption-font-weight","",vl.fontWeight,"normal"),is=ge.extend("--ft-typography-caption-letter-spacing","",vl.letterSpacing,"0.396px"),as=ge.extend("--ft-typography-caption-line-height","",vl.lineHeight,"1.33"),ls=ge.extend("--ft-typography-caption-text-transform","",vl.textTransform,"inherit"),ss=ge.extend("--ft-typography-breadcrumb-font-family","",ml),cs=ge.extend("--ft-typography-breadcrumb-font-size","",vl.fontSize,"10px"),fs=ge.extend("--ft-typography-breadcrumb-font-weight","",vl.fontWeight,"normal"),ds=ge.extend("--ft-typography-breadcrumb-letter-spacing","",vl.letterSpacing,"0.33px"),ps=ge.extend("--ft-typography-breadcrumb-line-height","",vl.lineHeight,"1.6"),hs=ge.extend("--ft-typography-breadcrumb-text-transform","",vl.textTransform,"inherit"),us=ge.extend("--ft-typography-overline-font-family","",ml),ys=ge.extend("--ft-typography-overline-font-size","",vl.fontSize,"10px"),gs=ge.extend("--ft-typography-overline-font-weight","",vl.fontWeight,"normal"),bs=ge.extend("--ft-typography-overline-letter-spacing","",vl.letterSpacing,"1.5px"),ms=ge.extend("--ft-typography-overline-line-height","",vl.lineHeight,"1.6"),vs=ge.extend("--ft-typography-overline-text-transform","",vl.textTransform,"uppercase"),Os=ge.extend("--ft-typography-button-font-family","",ml),xs=ge.extend("--ft-typography-button-font-size","",vl.fontSize,"14px"),ws=ge.extend("--ft-typography-button-font-weight","",vl.fontWeight,"600"),Ss=ge.extend("--ft-typography-button-letter-spacing","",vl.letterSpacing,"1.246px"),Cs=ge.extend("--ft-typography-button-line-height","",vl.lineHeight,"1.15"),Ns=ge.extend("--ft-typography-button-text-transform","",vl.textTransform,"uppercase"),Es=pt`
182
+ */const pl=Symbol.for(""),hl=t=>{if(t?.r===pl)return t?._$litStatic$},ul=t=>({_$litStatic$:t,r:pl}),yl=new Map,gl=(t=>(o,...e)=>{const r=e.length;let n,i;const a=[],l=[];let s,c=0,f=!1;for(;c<r;){for(s=o[c];c<r&&void 0!==(i=e[c],n=hl(i));)s+=n+o[++c],f=!0;c!==r&&l.push(i),a.push(s),c++}if(c===r&&a.push(o[r]),f){const t=a.join("$$lit$$");void 0===(o=yl.get(t))&&(a.raw=a,yl.set(t,o=a)),e=l}return t(o,...e)})(K);var bl;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(bl||(bl={}));const ml=ge.extend("--ft-typography-font-family","",br.titleFont),vl=ge.extend("--ft-typography-font-family","",br.contentFont),Ol={fontFamily:vl,fontSize:ge.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:ge.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:ge.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:ge.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:ge.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xl=ge.extend("--ft-typography-title-font-family","",ml),wl=ge.extend("--ft-typography-title-font-size","",Ol.fontSize,"20px"),Sl=ge.extend("--ft-typography-title-font-weight","",Ol.fontWeight,"normal"),Cl=ge.extend("--ft-typography-title-letter-spacing","",Ol.letterSpacing,"0.15px"),Nl=ge.extend("--ft-typography-title-line-height","",Ol.lineHeight,"1.2"),El=ge.extend("--ft-typography-title-text-transform","",Ol.textTransform,"inherit"),Rl=ge.extend("--ft-typography-title-dense-font-family","",ml),Il=ge.extend("--ft-typography-title-dense-font-size","",Ol.fontSize,"14px"),Ll=ge.extend("--ft-typography-title-dense-font-weight","",Ol.fontWeight,"normal"),Ul=ge.extend("--ft-typography-title-dense-letter-spacing","",Ol.letterSpacing,"0.105px"),Wl=ge.extend("--ft-typography-title-dense-line-height","",Ol.lineHeight,"1.7"),kl=ge.extend("--ft-typography-title-dense-text-transform","",Ol.textTransform,"inherit"),$l=ge.extend("--ft-typography-subtitle1-font-family","",vl),zl=ge.extend("--ft-typography-subtitle1-font-size","",Ol.fontSize,"16px"),Bl=ge.extend("--ft-typography-subtitle1-font-weight","",Ol.fontWeight,"600"),Al=ge.extend("--ft-typography-subtitle1-letter-spacing","",Ol.letterSpacing,"0.144px"),Fl=ge.extend("--ft-typography-subtitle1-line-height","",Ol.lineHeight,"1.5"),Pl=ge.extend("--ft-typography-subtitle1-text-transform","",Ol.textTransform,"inherit"),_l=ge.extend("--ft-typography-subtitle2-font-family","",vl),Ml=ge.extend("--ft-typography-subtitle2-font-size","",Ol.fontSize,"14px"),jl=ge.extend("--ft-typography-subtitle2-font-weight","",Ol.fontWeight,"normal"),Kl=ge.extend("--ft-typography-subtitle2-letter-spacing","",Ol.letterSpacing,"0.098px"),Zl=ge.extend("--ft-typography-subtitle2-line-height","",Ol.lineHeight,"1.7"),Dl=ge.extend("--ft-typography-subtitle2-text-transform","",Ol.textTransform,"inherit"),Hl=ge.extend("--ft-typography-body1-font-family","",vl),Tl=ge.extend("--ft-typography-body1-font-size","",Ol.fontSize,"16px"),Gl=ge.extend("--ft-typography-body1-font-weight","",Ol.fontWeight,"normal"),Vl=ge.extend("--ft-typography-body1-letter-spacing","",Ol.letterSpacing,"0.496px"),ql=ge.extend("--ft-typography-body1-line-height","",Ol.lineHeight,"1.5"),Yl=ge.extend("--ft-typography-body1-text-transform","",Ol.textTransform,"inherit"),Jl=ge.extend("--ft-typography-body2-font-family","",vl),Xl=ge.extend("--ft-typography-body2-font-size","",Ol.fontSize,"14px"),Ql=ge.extend("--ft-typography-body2-font-weight","",Ol.fontWeight,"normal"),ts=ge.extend("--ft-typography-body2-letter-spacing","",Ol.letterSpacing,"0.252px"),os=ge.extend("--ft-typography-body2-line-height","",Ol.lineHeight,"1.4"),es=ge.extend("--ft-typography-body2-text-transform","",Ol.textTransform,"inherit"),rs=ge.extend("--ft-typography-caption-font-family","",vl),ns=ge.extend("--ft-typography-caption-font-size","",Ol.fontSize,"12px"),is=ge.extend("--ft-typography-caption-font-weight","",Ol.fontWeight,"normal"),as=ge.extend("--ft-typography-caption-letter-spacing","",Ol.letterSpacing,"0.396px"),ls=ge.extend("--ft-typography-caption-line-height","",Ol.lineHeight,"1.33"),ss=ge.extend("--ft-typography-caption-text-transform","",Ol.textTransform,"inherit"),cs=ge.extend("--ft-typography-breadcrumb-font-family","",vl),fs=ge.extend("--ft-typography-breadcrumb-font-size","",Ol.fontSize,"10px"),ds=ge.extend("--ft-typography-breadcrumb-font-weight","",Ol.fontWeight,"normal"),ps=ge.extend("--ft-typography-breadcrumb-letter-spacing","",Ol.letterSpacing,"0.33px"),hs=ge.extend("--ft-typography-breadcrumb-line-height","",Ol.lineHeight,"1.6"),us=ge.extend("--ft-typography-breadcrumb-text-transform","",Ol.textTransform,"inherit"),ys=ge.extend("--ft-typography-overline-font-family","",vl),gs=ge.extend("--ft-typography-overline-font-size","",Ol.fontSize,"10px"),bs=ge.extend("--ft-typography-overline-font-weight","",Ol.fontWeight,"normal"),ms=ge.extend("--ft-typography-overline-letter-spacing","",Ol.letterSpacing,"1.5px"),vs=ge.extend("--ft-typography-overline-line-height","",Ol.lineHeight,"1.6"),Os=ge.extend("--ft-typography-overline-text-transform","",Ol.textTransform,"uppercase"),xs=ge.extend("--ft-typography-button-font-family","",vl),ws=ge.extend("--ft-typography-button-font-size","",Ol.fontSize,"14px"),Ss=ge.extend("--ft-typography-button-font-weight","",Ol.fontWeight,"600"),Cs=ge.extend("--ft-typography-button-letter-spacing","",Ol.letterSpacing,"1.246px"),Ns=ge.extend("--ft-typography-button-line-height","",Ol.lineHeight,"1.15"),Es=ge.extend("--ft-typography-button-text-transform","",Ol.textTransform,"uppercase"),Rs=pt`
183
183
  .ft-typography--title {
184
- font-family: ${Ol};
185
- font-size: ${xl};
186
- font-weight: ${wl};
187
- letter-spacing: ${Sl};
188
- line-height: ${Cl};
189
- text-transform: ${Nl};
184
+ font-family: ${xl};
185
+ font-size: ${wl};
186
+ font-weight: ${Sl};
187
+ letter-spacing: ${Cl};
188
+ line-height: ${Nl};
189
+ text-transform: ${El};
190
190
  }
191
- `,Rs=pt`
191
+ `,Is=pt`
192
192
  .ft-typography--title-dense {
193
- font-family: ${El};
194
- font-size: ${Rl};
195
- font-weight: ${Il};
196
- letter-spacing: ${Ll};
197
- line-height: ${Ul};
198
- text-transform: ${Wl};
193
+ font-family: ${Rl};
194
+ font-size: ${Il};
195
+ font-weight: ${Ll};
196
+ letter-spacing: ${Ul};
197
+ line-height: ${Wl};
198
+ text-transform: ${kl};
199
199
  }
200
- `,Is=pt`
200
+ `,Ls=pt`
201
201
  .ft-typography--subtitle1 {
202
- font-family: ${kl};
203
- font-size: ${$l};
204
- font-weight: ${zl};
205
- letter-spacing: ${Bl};
206
- line-height: ${Al};
207
- text-transform: ${Fl};
202
+ font-family: ${$l};
203
+ font-size: ${zl};
204
+ font-weight: ${Bl};
205
+ letter-spacing: ${Al};
206
+ line-height: ${Fl};
207
+ text-transform: ${Pl};
208
208
  }
209
- `,Ls=pt`
209
+ `,Us=pt`
210
210
  .ft-typography--subtitle2 {
211
- font-family: ${Pl};
212
- font-size: ${_l};
213
- font-weight: ${Ml};
214
- letter-spacing: ${jl};
215
- line-height: ${Kl};
216
- text-transform: ${Zl};
211
+ font-family: ${_l};
212
+ font-size: ${Ml};
213
+ font-weight: ${jl};
214
+ letter-spacing: ${Kl};
215
+ line-height: ${Zl};
216
+ text-transform: ${Dl};
217
217
  }
218
218
 
219
- `,Us=pt`
219
+ `,Ws=pt`
220
220
  .ft-typography--body1 {
221
- font-family: ${Dl};
222
- font-size: ${Hl};
223
- font-weight: ${Tl};
224
- letter-spacing: ${Gl};
225
- line-height: ${Vl};
226
- text-transform: ${ql};
221
+ font-family: ${Hl};
222
+ font-size: ${Tl};
223
+ font-weight: ${Gl};
224
+ letter-spacing: ${Vl};
225
+ line-height: ${ql};
226
+ text-transform: ${Yl};
227
227
  }
228
- `,Ws=pt`
228
+ `,ks=pt`
229
229
  .ft-typography--body2 {
230
- font-family: ${Yl};
231
- font-size: ${Jl};
232
- font-weight: ${Xl};
233
- letter-spacing: ${Ql};
234
- line-height: ${ts};
235
- text-transform: ${os};
230
+ font-family: ${Jl};
231
+ font-size: ${Xl};
232
+ font-weight: ${Ql};
233
+ letter-spacing: ${ts};
234
+ line-height: ${os};
235
+ text-transform: ${es};
236
236
  }
237
- `,ks=pt`
237
+ `,$s=pt`
238
238
  .ft-typography--caption {
239
- font-family: ${es};
240
- font-size: ${rs};
241
- font-weight: ${ns};
242
- letter-spacing: ${is};
243
- line-height: ${as};
244
- text-transform: ${ls};
239
+ font-family: ${rs};
240
+ font-size: ${ns};
241
+ font-weight: ${is};
242
+ letter-spacing: ${as};
243
+ line-height: ${ls};
244
+ text-transform: ${ss};
245
245
  }
246
- `,$s=pt`
246
+ `,zs=pt`
247
247
  .ft-typography--breadcrumb {
248
- font-family: ${ss};
249
- font-size: ${cs};
250
- font-weight: ${fs};
251
- letter-spacing: ${ds};
252
- line-height: ${ps};
253
- text-transform: ${hs};
248
+ font-family: ${cs};
249
+ font-size: ${fs};
250
+ font-weight: ${ds};
251
+ letter-spacing: ${ps};
252
+ line-height: ${hs};
253
+ text-transform: ${us};
254
254
  }
255
- `,zs=pt`
255
+ `,Bs=pt`
256
256
  .ft-typography--overline {
257
- font-family: ${us};
258
- font-size: ${ys};
259
- font-weight: ${gs};
260
- letter-spacing: ${bs};
261
- line-height: ${ms};
262
- text-transform: ${vs};
257
+ font-family: ${ys};
258
+ font-size: ${gs};
259
+ font-weight: ${bs};
260
+ letter-spacing: ${ms};
261
+ line-height: ${vs};
262
+ text-transform: ${Os};
263
263
  }
264
- `,Bs=pt`
264
+ `,As=pt`
265
265
  .ft-typography--button {
266
- font-family: ${Os};
267
- font-size: ${xs};
268
- font-weight: ${ws};
269
- letter-spacing: ${Ss};
270
- line-height: ${Cs};
271
- text-transform: ${Ns};
266
+ font-family: ${xs};
267
+ font-size: ${ws};
268
+ font-weight: ${Ss};
269
+ letter-spacing: ${Cs};
270
+ line-height: ${Ns};
271
+ text-transform: ${Es};
272
272
  }
273
- `,As=pt`
273
+ `,Fs=pt`
274
274
  .ft-typography {
275
275
  vertical-align: inherit;
276
276
  }
277
- `,Fs=[Object.keys(De).map((t=>function(t){const o=De[t];return pt`
277
+ `,Ps=[Object.keys(De).map((t=>function(t){const o=De[t];return pt`
278
278
  .ft-typography--${dt(t)} {
279
279
  font-family: ${o.fontFamily};
280
280
  font-size: ${o.fontSize};
@@ -283,19 +283,19 @@ function(t){return(o,e)=>{const{slot:r,selector:n}=t??{},i="slot"+(r?`[name=${r}
283
283
  line-height: ${o.lineHeight};
284
284
  text-transform: ${o.textCase};
285
285
  }
286
- `}(t)))];var Ps=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class _s extends Bn{constructor(){super(...arguments),this.variant=gl.body1}render(){return this.element?yl`
287
- <${hl(this.element)}
286
+ `}(t)))];var _s=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class Ms extends Bn{constructor(){super(...arguments),this.variant=bl.body1}render(){return this.element?gl`
287
+ <${ul(this.element)}
288
288
  class="ft-typography ft-typography--${this.variant}">
289
289
  <slot></slot>
290
- </${hl(this.element)}>
291
- `:yl`
290
+ </${ul(this.element)}>
291
+ `:gl`
292
292
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
293
- `}}_s.styles=[Es,Rs,Is,Ls,Us,Ws,ks,$s,zs,Bs,As,...Fs],Ps([So()],_s.prototype,"element",void 0),Ps([So()],_s.prototype,"variant",void 0),de("ft-typography")(_s);const Ms=pt`
294
- `,js=Va.get({name:"ft-app-info",reducers:{},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}});class Ks{static get(t){const{baseUrl:o,apiIntegrationIdentifier:e}=js.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static await(t){return new Promise((o=>{let e=Ks.get(t);if(e)o(e);else{const r=js.subscribe((()=>{e=Ks.get(t),e&&(r(),o(e))}))}}))}}class Zs{constructor(t=!0,o){var e;this.overrideApi=o;let r=this.constructor;r.commonCache=null!==(e=r.commonCache)&&void 0!==e?e:new te,this.cache=t?r.commonCache:new te}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ks.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ks.await()}clearCache(){this.cache.clearAll()}}var Ds;const Hs=Symbol("clearAfterUnitTest");class Ts extends Zs{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ds]=()=>{this.defaultMessages={},this.cache=new te,this.listeners={}},this.currentUiLocale=js.getState().uiLocale,js.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=js.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var e;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(e=this.defaultMessages[t])&&void 0!==e?e:{},...o};ce(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...e){var r,n,i;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new qn(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(o,...e)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>ae(0).then((()=>t())).catch((()=>null)))))}}Ds=Hs,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Ts{constructor(){super((async(t,o)=>(await this.awaitApi).getFluidTopicsMessageContext(t,o)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Ts{constructor(){super((async(t,o)=>(await this.awaitApi).getCustomMessageContext(t,o)))}});const Gs=window.FluidTopicsI18nService,Vs=window.FluidTopicsCustomI18nService;var qs=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class Ys extends Bn{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=()=>Ks.get(),this.messageContexts=[],this.cache=new te,this.cleanSessionDebouncer=new ne}render(){return Jt`
293
+ `}}Ms.styles=[Rs,Is,Ls,Us,Ws,ks,$s,zs,Bs,As,Fs,...Ps],_s([So()],Ms.prototype,"element",void 0),_s([So()],Ms.prototype,"variant",void 0),de("ft-typography")(Ms);const js=pt`
294
+ `,Ks=qa.get({name:"ft-app-info",reducers:{},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}});class Zs{static get(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Ks.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static await(t){return new Promise((o=>{let e=Zs.get(t);if(e)o(e);else{const r=Ks.subscribe((()=>{e=Zs.get(t),e&&(r(),o(e))}))}}))}}class Ds{constructor(t=!0,o){var e;this.overrideApi=o;let r=this.constructor;r.commonCache=null!==(e=r.commonCache)&&void 0!==e?e:new te,this.cache=t?r.commonCache:new te}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Zs.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Zs.await()}clearCache(){this.cache.clearAll()}}var Hs;const Ts=Symbol("clearAfterUnitTest");class Gs extends Ds{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Hs]=()=>{this.defaultMessages={},this.cache=new te,this.listeners={}},this.currentUiLocale=Ks.getState().uiLocale,Ks.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ks.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var e;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(e=this.defaultMessages[t])&&void 0!==e?e:{},...o};ce(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...e){var r,n,i;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new Yn(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(o,...e)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>ae(0).then((()=>t())).catch((()=>null)))))}}Hs=Ts,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Gs{constructor(){super((async(t,o)=>(await this.awaitApi).getFluidTopicsMessageContext(t,o)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Gs{constructor(){super((async(t,o)=>(await this.awaitApi).getCustomMessageContext(t,o)))}});const Vs=window.FluidTopicsI18nService,qs=window.FluidTopicsCustomI18nService;var Ys=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class Js extends Bn{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=()=>Zs.get(),this.messageContexts=[],this.cache=new te,this.cleanSessionDebouncer=new ne}render(){return Jt`
295
295
  <slot></slot>
296
- `}update(t){super.update(t),t.has("baseUrl")&&(js.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&js.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&js.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&js.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&js.actions.noCustom(this.noCustom),t.has("editorMode")&&js.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&js.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&js.actions.session(this.session),t.has("availableUiLocales")&&js.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Gs.addContext(t))),t.has("openExternalDocumentInNewTab")&&js.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&js.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&js.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Ys.elementDefinitions={},Ys.styles=Ms,qs([So()],Ys.prototype,"baseUrl",void 0),qs([So()],Ys.prototype,"apiIntegrationIdentifier",void 0),qs([So()],Ys.prototype,"uiLocale",void 0),qs([pe(null)],Ys.prototype,"availableUiLocales",void 0),qs([pe(null)],Ys.prototype,"metadataConfiguration",void 0),qs([So({type:Boolean})],Ys.prototype,"editorMode",void 0),qs([So({type:Boolean})],Ys.prototype,"noCustom",void 0),qs([So({type:Boolean})],Ys.prototype,"openExternalDocumentInNewTab",void 0),qs([So({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ys.prototype,"noCustomComponent",void 0),qs([So({type:Boolean})],Ys.prototype,"withManualResources",void 0),qs([So({type:Boolean})],Ys.prototype,"navigatorOnline",void 0),qs([So({type:Boolean})],Ys.prototype,"forcedOffline",void 0),qs([So({type:Object})],Ys.prototype,"apiProvider",void 0),qs([pe([])],Ys.prototype,"messageContexts",void 0),qs([pe(void 0)],Ys.prototype,"session",void 0);class Js extends Zs{async listMySearches(){let t=js.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Xs extends Zs{async listMyBookmarks(){let t=js.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Qs=Va.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=js.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xs,this.savedSearchesService=new Js,js.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=js.getState();ce(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Qs.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Qs.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Qs.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Qs.actions.bookmarks(o)}}},de("ft-app-context")(Ys);const tc=pt`
297
- `;var oc=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};const ec=Symbol("i18nAttributes"),rc=Symbol("i18nProperties"),nc=Symbol("i18nUnsubs");function ic(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Vs:Gs}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const n=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var o,e;null===(o=this[ec])||void 0===o||o.forEach(((o,e)=>{var r;const n=this.getI18nAttributeValue(e);(null===(r=null==n?void 0:n.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(e,n,o)})),null===(e=this[rc])||void 0===e||e.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,o,e){this[t]={...o,message:this.i18n({context:o.context,key:o.key,...e})}}update(t){var o,e;super.update(t),null===(o=this[ec])||void 0===o||o.forEach(((o,e)=>{const r=this.getI18nAttributeValue(e);(null==r?void 0:r.context)&&r.key&&(t.has(e)||null!=o.argsProvider)&&(t.has(e)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(e,r,o))})),null===(e=this[rc])||void 0===e||e.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,o,e,r;super.connectedCallback(),new Set([...null!==(o=null===(t=this[rc])||void 0===t?void 0:t.values())&&void 0!==o?o:[],...[...null!==(r=null===(e=this[ec])||void 0===e?void 0:e.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[nc].has(t)||this[nc].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages("string"==typeof t?t:t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[nc].forEach((t=>t())),this[nc].clear()}}return o=nc,oc([So({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class ac extends(ic(Bn)){}class lc extends(ic(ai)){}var sc=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class cc extends lc{constructor(){super(),this.editorMode=!1,this.addStore(js)}render(){return this.key&&this.context?Jt`
296
+ `}update(t){super.update(t),t.has("baseUrl")&&(Ks.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ks.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ks.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ks.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ks.actions.noCustom(this.noCustom),t.has("editorMode")&&Ks.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ks.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ks.actions.session(this.session),t.has("availableUiLocales")&&Ks.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Vs.addContext(t))),t.has("openExternalDocumentInNewTab")&&Ks.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&Ks.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&Ks.actions.forcedOffline(this.forcedOffline),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Js.elementDefinitions={},Js.styles=js,Ys([So()],Js.prototype,"baseUrl",void 0),Ys([So()],Js.prototype,"apiIntegrationIdentifier",void 0),Ys([So()],Js.prototype,"uiLocale",void 0),Ys([pe(null)],Js.prototype,"availableUiLocales",void 0),Ys([pe(null)],Js.prototype,"metadataConfiguration",void 0),Ys([So({type:Boolean})],Js.prototype,"editorMode",void 0),Ys([So({type:Boolean})],Js.prototype,"noCustom",void 0),Ys([So({type:Boolean})],Js.prototype,"openExternalDocumentInNewTab",void 0),Ys([So({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Js.prototype,"noCustomComponent",void 0),Ys([So({type:Boolean})],Js.prototype,"withManualResources",void 0),Ys([So({type:Boolean})],Js.prototype,"navigatorOnline",void 0),Ys([So({type:Boolean})],Js.prototype,"forcedOffline",void 0),Ys([So({type:Object})],Js.prototype,"apiProvider",void 0),Ys([pe([])],Js.prototype,"messageContexts",void 0),Ys([pe(void 0)],Js.prototype,"session",void 0);class Xs extends Ds{async listMySearches(){let t=Ks.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Qs extends Ds{async listMyBookmarks(){let t=Ks.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const tc=qa.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Ks.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qs,this.savedSearchesService=new Xs,Ks.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Ks.getState();ce(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),tc.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),tc.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();tc.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;tc.actions.bookmarks(o)}}};window.FluidTopicsAppInfoStoreService=new class{addCommand(t,o=!1){Ks.commands.add(t,o)}consumeCommand(t){return Ks.commands.consume(t)}};window.FluidTopicsHighlightHtmlService=new class{highlightHtml(t,o){Zn(t,o)}},de("ft-app-context")(Js);const oc=pt`
297
+ `;var ec=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};const rc=Symbol("i18nAttributes"),nc=Symbol("i18nProperties"),ic=Symbol("i18nUnsubs");function ac(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?qs:Vs}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const n=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var o,e;null===(o=this[rc])||void 0===o||o.forEach(((o,e)=>{var r;const n=this.getI18nAttributeValue(e);(null===(r=null==n?void 0:n.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(e,n,o)})),null===(e=this[nc])||void 0===e||e.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,o,e){this[t]={...o,message:this.i18n({context:o.context,key:o.key,...e})}}update(t){var o,e;super.update(t),null===(o=this[rc])||void 0===o||o.forEach(((o,e)=>{const r=this.getI18nAttributeValue(e);(null==r?void 0:r.context)&&r.key&&(t.has(e)||null!=o.argsProvider)&&(t.has(e)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(e,r,o))})),null===(e=this[nc])||void 0===e||e.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,o,e,r;super.connectedCallback(),new Set([...null!==(o=null===(t=this[nc])||void 0===t?void 0:t.values())&&void 0!==o?o:[],...[...null!==(r=null===(e=this[rc])||void 0===e?void 0:e.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[ic].has(t)||this[ic].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages("string"==typeof t?t:t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[ic].forEach((t=>t())),this[ic].clear()}}return o=ic,ec([So({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class lc extends(ac(Bn)){}class sc extends(ac(li)){}var cc=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class fc extends sc{constructor(){super(),this.editorMode=!1,this.addStore(Ks)}render(){return this.key&&this.context?Jt`
298
298
  <span class="ft-i18n">
299
299
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
300
300
  </span>
301
- `:this.editorMode?"Select a context and a label key.":to}update(t){var o;super.update(t),["context","key","defaultMessage"].some((o=>t.has(o)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}cc.elementDefinitions={},cc.styles=tc,sc([Jn()],cc.prototype,"editorMode",void 0),sc([So()],cc.prototype,"context",void 0),sc([So()],cc.prototype,"key",void 0),sc([pe([])],cc.prototype,"args",void 0),sc([So()],cc.prototype,"defaultMessage",void 0);class fc{static build(t){return new fc(t)}static fromGwt(t){return new fc(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Gs.resolveMessage(this.name,o,...t)})}}de("ft-i18n")(cc);const dc=fc.build("readerPageTitle"),pc={pageTitle:"Page title"};var hc=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class uc extends(ic(fl)){constructor(){super(),this.target="current",this.editorMode=!1,this.addStore(js),this.addI18nContext(dc,pc)}render(){var t,o;const e=null!==(o=null===(t=this.targetPage)||void 0===t?void 0:t.title)&&void 0!==o?o:this.editorMode?dc.messages.pageTitle():void 0;return e?Jt`<ft-typography variant="title" part="text">${e}</ft-typography>`:to}update(t){var o;if(super.update(t),t.has("currentPage")||t.has("target")){const t=this.computeOffset(this.target);if(this.currentPage&&0!=t){const e=this.currentPage.number+t;null===(o=this.service)||void 0===o||o.getPage(e).then((t=>{t.number==e?this.targetPage=t:this.targetPage=void 0}))}else this.targetPage=this.currentPage}}computeOffset(t){switch(t){case"next":return 1;case"previous":return-1;default:return 0}}}uc.styles=il,uc.elementDefinitions={"ft-typography":_s},hc([So()],uc.prototype,"target",void 0),hc([Jn({store:"reader"})],uc.prototype,"currentPage",void 0),hc([Co()],uc.prototype,"targetPage",void 0),hc([Jn({store:js.name})],uc.prototype,"editorMode",void 0),de("ft-reader-page-title")(uc),t.FtReaderPageTitle=uc,t.FtReaderPageTitleCssVariables={},t.styles=il}({});
301
+ `:this.editorMode?"Select a context and a label key.":to}update(t){var o;super.update(t),["context","key","defaultMessage"].some((o=>t.has(o)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}fc.elementDefinitions={},fc.styles=oc,cc([Xn()],fc.prototype,"editorMode",void 0),cc([So()],fc.prototype,"context",void 0),cc([So()],fc.prototype,"key",void 0),cc([pe([])],fc.prototype,"args",void 0),cc([So()],fc.prototype,"defaultMessage",void 0);class dc{static build(t){return new dc(t)}static fromGwt(t){return new dc(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Vs.resolveMessage(this.name,o,...t)})}}de("ft-i18n")(fc);const pc=dc.build("readerPageTitle"),hc={pageTitle:"Page title"};var uc=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(n=t[l])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class yc extends(ac(dl)){constructor(){super(),this.target="current",this.editorMode=!1,this.addStore(Ks),this.addI18nContext(pc,hc)}render(){var t,o;const e=null!==(o=null===(t=this.targetPage)||void 0===t?void 0:t.title)&&void 0!==o?o:this.editorMode?pc.messages.pageTitle():void 0;return e?Jt`<ft-typography variant="title" part="text">${e}</ft-typography>`:to}update(t){var o;if(super.update(t),t.has("currentPage")||t.has("target")){const t=this.computeOffset(this.target);if(this.currentPage&&0!=t){const e=this.currentPage.number+t;null===(o=this.service)||void 0===o||o.getPage(e).then((t=>{t.number==e?this.targetPage=t:this.targetPage=void 0}))}else this.targetPage=this.currentPage}}computeOffset(t){switch(t){case"next":return 1;case"previous":return-1;default:return 0}}}yc.styles=al,yc.elementDefinitions={"ft-typography":Ms},uc([So()],yc.prototype,"target",void 0),uc([Xn({store:"reader"})],yc.prototype,"currentPage",void 0),uc([Co()],yc.prototype,"targetPage",void 0),uc([Xn({store:Ks.name})],yc.prototype,"editorMode",void 0),de("ft-reader-page-title")(yc),t.FtReaderPageTitle=yc,t.FtReaderPageTitleCssVariables={},t.styles=al}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-page-title",
3
- "version": "1.1.68",
3
+ "version": "1.1.69",
4
4
  "description": "Displays the previous/current/next page title",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-reader-context": "1.1.68",
23
- "@fluid-topics/ft-typography": "1.1.68",
24
- "@fluid-topics/ft-wc-utils": "1.1.68",
22
+ "@fluid-topics/ft-reader-context": "1.1.69",
23
+ "@fluid-topics/ft-typography": "1.1.69",
24
+ "@fluid-topics/ft-wc-utils": "1.1.69",
25
25
  "lit": "3.1.0"
26
26
  },
27
- "gitHead": "d10171ba718cee726044d0cc44820ebbb1ab7cbc"
27
+ "gitHead": "2174dcd6c0339b1a1722fa2eb263462ee4621c72"
28
28
  }