@fluid-topics/ft-reader-content 1.1.45 → 1.1.46

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.
@@ -173,7 +173,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
173
173
  display: inline-block;
174
174
  width: 0;
175
175
  }
176
- `;var Ti=Object.freeze({__proto__:null,noTextSelect:Mi,safariEllipsisFix:Hi,wordWrap:Di}),Gi=Object.freeze({__proto__:null});var Vi=Object.freeze({__proto__:null,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}});const qi=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!so(t,e),attribute:!1,...e};Se(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Yi{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Ji(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Xi,Qi,tn;const en=Symbol("internalReduxEventsUnsubscribers"),on=Symbol("internalStoresUnsubscribers"),rn=Symbol("internalStores");class nn extends Ai{constructor(){super(...arguments),this[Xi]=new Map,this[Qi]=new Map,this[tn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[rn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[rn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[rn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ji(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[rn].delete(e)}setupStore(t,e){this[rn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[rn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[on].has(t.store):this[on].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[on].set(t,e.subscribe((()=>this.updateFromStores()))),Ji(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[en].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[on].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[en].forEach((t=>t())),this[en]=[]}unsubscribeFromStore(t){this[on].has(t)&&this[on].get(t)(),this[on].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function an(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ln(t){return!!t&&!!t[Gn]}function sn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Vn}(t)||Array.isArray(t)||!!t[Tn]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Tn])||pn(t)||gn(t))}function cn(t,e,o){void 0===o&&(o=!1),0===fn(t)?(o?Object.keys:qn)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function fn(t){var e=t[Gn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:pn(t)?2:gn(t)?3:0}function dn(t,e){return 2===fn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function un(t,e,o){var r=fn(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function hn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function pn(t){return Zn&&t instanceof Map}function gn(t){return Mn&&t instanceof Set}function yn(t){return t.o||t.t}function bn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yn(t);delete e[Gn];for(var o=qn(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mn(t,e){return void 0===e&&(e=!1),On(t)||ln(t)||!sn(t)||(fn(t)>1&&(t.set=t.add=t.clear=t.delete=vn),Object.freeze(t),e&&cn(t,(function(t,e){return mn(e,!0)}),!0)),t}function vn(){an(2)}function On(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Sn(t){var e=Jn[t];return e||an(18,t),e}function xn(){return $n}function wn(t,e){e&&(Sn("Patches"),t.u=[],t.s=[],t.v=e)}function Nn(t){Cn(t),t.p.forEach(In),t.p=null}function Cn(t){t===$n&&($n=t.l)}function En(t){return $n={p:[],l:$n,h:t,m:!0,_:0}}function In(t){var e=t[Gn];0===e.i||1===e.i?e.j():e.g=!0}function Rn(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Sn("ES5").S(e,t,r),r?(o[Gn].P&&(Nn(e),an(4)),sn(t)&&(t=Ln(e,t),e.l||Wn(e,t)),e.u&&Sn("Patches").M(o[Gn].t,t,e.u,e.s)):t=Ln(e,o,[]),Nn(e),e.u&&e.v(e.u,e.s),t!==Hn?t:void 0}function Ln(t,e,o){if(On(e))return e;var r=e[Gn];if(!r)return cn(e,(function(i,n){return Un(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Wn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=bn(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),cn(n,(function(e,n){return Un(t,r,i,e,n,o,a)})),Wn(t,i,!1),o&&t.u&&Sn("Patches").N(r,o,t.u,t.s)}return r.o}function Un(t,e,o,r,i,n,a){if(ln(i)){var l=Ln(t,i,n&&e&&3!==e.i&&!dn(e.R,r)?n.concat(r):void 0);if(un(o,r,l),!ln(l))return;t.m=!1}else a&&o.add(i);if(sn(i)&&!On(i)){if(!t.h.D&&t._<1)return;Ln(t,i),e&&e.A.l||Wn(t,i)}}function Wn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mn(e,o)}function kn(t,e){var o=t[Gn];return(o?yn(o):t)[e]}function Fn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function An(t){t.P||(t.P=!0,t.l&&An(t.l))}function Bn(t){t.o||(t.o=bn(t.t))}function zn(t,e,o){var r=pn(e)?Sn("MapSet").F(e,o):gn(e)?Sn("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:xn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Xn;o&&(i=[r],n=Qn);var a=Proxy.revocable(i,n),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(e,o):Sn("ES5").J(e,o);return(o?o.A:xn()).p.push(r),r}function _n(t){return ln(t)||an(22,t),function t(e){if(!sn(e))return e;var o,r=e[Gn],i=fn(e);if(r){if(!r.P&&(r.i<4||!Sn("ES5").K(r)))return r.t;r.I=!0,o=Kn(e,i),r.I=!1}else o=Kn(e,i);return cn(o,(function(e,i){r&&function(t,e){return 2===fn(t)?t.get(e):t[e]}(r.t,e)===i||un(o,e,t(i))})),3===i?new Set(o):o}(t)}function Kn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bn(t)}Xi=on,Qi=rn,tn=en,nn.reduxProperties=new Map,nn.reduxReactiveProperties=new Set,nn.reduxEventListeners=new Map;var Pn,$n,jn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Zn="undefined"!=typeof Map,Mn="undefined"!=typeof Set,Dn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Hn=jn?Symbol.for("immer-nothing"):((Pn={})["immer-nothing"]=!0,Pn),Tn=jn?Symbol.for("immer-draftable"):"__$immer_draftable",Gn=jn?Symbol.for("immer-state"):"__$immer_state",Vn=""+Object.prototype.constructor,qn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yn=Object.getOwnPropertyDescriptors||function(t){var e={};return qn(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Jn={},Xn={get:function(t,e){if(e===Gn)return t;var o=yn(t);if(!dn(o,e))return function(t,e,o){var r,i=Fn(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!sn(r)?r:r===kn(t.t,e)?(Bn(t),t.o[e]=zn(t.A.h,r,t)):r},has:function(t,e){return e in yn(t)},ownKeys:function(t){return Reflect.ownKeys(yn(t))},set:function(t,e,o){var r=Fn(yn(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=kn(yn(t),e),n=null==i?void 0:i[Gn];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hn(o,i)&&(void 0!==o||dn(t.t,e)))return!0;Bn(t),An(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==kn(t.t,e)||e in t.t?(t.R[e]=!1,Bn(t),An(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=yn(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){an(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){an(12)}},Qn={};cn(Xn,(function(t,e){Qn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qn.deleteProperty=function(t,e){return Qn.set.call(this,t,e,void 0)},Qn.set=function(t,e,o){return Xn.set.call(this,t[0],e,o,t[0])};var ta=function(){function t(t){var e=this;this.O=Dn,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&an(6),void 0!==r&&"function"!=typeof r&&an(7),sn(t)){var l=En(e),s=zn(e,t,void 0),c=!0;try{a=o(s),c=!1}finally{c?Nn(l):Cn(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return wn(l,r),Rn(t,l)}),(function(t){throw Nn(l),t})):(wn(l,r),Rn(a,l))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Hn&&(a=void 0),e.D&&mn(a,!0),r){var f=[],d=[];Sn("Patches").M(t,a,f,d),r(f,d)}return a}an(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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 e=t.prototype;return e.createDraft=function(t){sn(t)||an(8),ln(t)&&(t=_n(t));var e=En(this),o=zn(this,t,void 0);return o[Gn].C=!0,Cn(e),o},e.finishDraft=function(t,e){var o=(t&&t[Gn]).A;return wn(o,e),Rn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Dn&&an(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=Sn("Patches").$;return ln(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),ea=new ta,oa=ea.produce;function ra(t){return ra="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},ra(t)}function ia(t){var e=function(t,e){if("object"!==ra(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ra(e)?e:String(e)}function na(t,e,o){return(e=ia(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function aa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function la(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?aa(Object(o),!0).forEach((function(e){na(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):aa(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function sa(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 ca="function"==typeof Symbol&&Symbol.observable||"@@observable",fa=function(){return Math.random().toString(36).substring(7).split("").join(".")},da={INIT:"@@redux/INIT"+fa(),REPLACE:"@@redux/REPLACE"+fa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fa()}};function ua(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(sa(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(sa(1));return o(ua)(t,e)}if("function"!=typeof t)throw new Error(sa(2));var i=t,n=e,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(sa(3));return n}function d(t){if("function"!=typeof t)throw new Error(sa(4));if(s)throw new Error(sa(5));var e=!0;return c(),l.push(t),function(){if(e){if(s)throw new Error(sa(6));e=!1,c();var o=l.indexOf(t);l.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(sa(7));if(void 0===t.type)throw new Error(sa(8));if(s)throw new Error(sa(9));try{s=!0,n=i(n,t)}finally{s=!1}for(var e=a=l,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:da.INIT}),(r={dispatch:u,subscribe:d,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(sa(10));i=t,u({type:da.REPLACE})}})[ca]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(sa(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ca]=function(){return this},t},r}function ha(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:da.INIT}))throw new Error(sa(12));if(void 0===o(void 0,{type:da.PROBE_UNKNOWN_ACTION()}))throw new Error(sa(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},l=0;l<a.length;l++){var s=a[l],c=o[s],f=t[s],d=c(f,e);if(void 0===d)throw e&&e.type,new Error(sa(14));i[s]=d,r=r||d!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function pa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ga(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(sa(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=pa.apply(void 0,n)(o.dispatch),la(la({},o),{},{dispatch:r})}}}function ya(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var ba=ya();ba.withExtraArgument=ya;var ma,va=ba,Oa=(ma=function(t,e){return ma=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},ma(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}ma(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Sa=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function l(n){return function(l){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,l])}}},xa=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},wa=Object.defineProperty,Na=Object.defineProperties,Ca=Object.getOwnPropertyDescriptors,Ea=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable,La=function(t,e,o){return e in t?wa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ua=function(t,e){for(var o in e||(e={}))Ia.call(e,o)&&La(t,o,e[o]);if(Ea)for(var r=0,i=Ea(e);r<i.length;r++){o=i[r];Ra.call(e,o)&&La(t,o,e[o])}return t},Wa=function(t,e){return Na(t,Ca(e))},ka="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?pa:pa.apply(null,arguments)};var Fa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Oa(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xa([void 0],t[0].concat(this)))):new(e.bind.apply(e,xa([void 0],t.concat(this))))},e}(Array),Aa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Oa(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xa([void 0],t[0].concat(this)))):new(e.bind.apply(e,xa([void 0],t.concat(this))))},e}(Array);function Ba(t){return sn(t)?oa(t,(function(){})):t}function za(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Fa;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(va.withExtraArgument(o.extraArgument)):r.push(va));return r}(t)}}function _a(t){var e,o=za(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,l=void 0===a?o():a,s=r.devTools,c=void 0===s||s,f=r.preloadedState,d=void 0===f?void 0:f,u=r.enhancers,h=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ha(n)}var p=l;"function"==typeof p&&(p=p(o));var g=ga.apply(void 0,p),y=pa;c&&(y=ka(Ua({trace:!1},"object"==typeof c&&c)));var b=new Aa(g),m=b;return Array.isArray(h)?m=xa([g],h):"function"==typeof h&&(m=h(b)),ua(e,d,y.apply(void 0,m))}function Ka(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ua(Ua({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Pa(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function $a(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Ba(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},l={},s={};function c(){var e="function"==typeof t.extraReducers?Pa(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,s=e[2],c=void 0===s?void 0:s,f=Ua(Ua({},i),l);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Pa(e):[e,o,r],a=n[0],l=n[1],s=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ba(t())};else{var c=Ba(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=xa([a[e.type]],l.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[s]),o.reduce((function(t,o){if(o){var r;if(ln(t))return void 0===(r=o(t,e))?t:r;if(sn(t))return oa(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){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=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,l[c]=o,s[t]=r?Ka(c,r):Ka(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:s,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var ja=["name","message","stack","code"],Za=function(t,e){this.payload=t,this.meta=e},Ma=function(t,e){this.payload=t,this.meta=e},Da=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=ja;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Ha(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Ka(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Wa(Ua({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Ka(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Wa(Ua({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ka(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Da)(t||"Rejected"),meta:Wa(Ua({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,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==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function h(t){f=t,u.abort()}var p=function(){return a=this,p=null,g=function(){var a,p,g,y,b,m;return Sa(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:s,extra:c}),null===(O=y)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),l(i(d,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:d,arg:t},{getState:s,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:l,getState:s,extra:c,requestId:d,signal:u.signal,abort:h,rejectWithValue:function(t,e){return new Za(t,e)},fulfillWithValue:function(t,e){return new Ma(t,e)}})).then((function(e){if(e instanceof Za)throw e;return e instanceof Ma?r(e.payload,d,t,e.meta):r(e,d,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Za?n(null,d,t,m.payload,m.meta):n(m,d,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||l(g),[2,g]}var O}))},new Promise((function(t,e){var o=function(t){try{i(g.next(t))}catch(t){e(t)}},r=function(t){try{i(g.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((g=g.apply(a,p)).next())}));var a,p,g}();return Object.assign(p,{abort:h,requestId:d,arg:t,unwrap:function(){return p.then(Ha)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ta="listenerMiddleware";Ka(Ta+"/add"),Ka(Ta+"/removeAll"),Ka(Ta+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Gn];return Xn.get(e,t)},set:function(e){var o=this[Gn];Xn.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Gn];if(!i.P)switch(i.i){case 5:r(i)&&An(i);break;case 4:o(i)&&An(i)}}}function o(t){for(var e=t.t,o=t.k,r=qn(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Gn){var a=e[n];if(void 0===a&&!dn(e,n))return!0;var l=o[n],s=l&&l[Gn];if(s?s.t!==a:!hn(l,a))return!0}}var c=!!e[Gn];return r.length!==qn(e).length+(c?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Jn[t]||(Jn[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Yn(o);delete n[Gn];for(var a=qn(n),l=0;l<a.length;l++){var s=a[l];n[s]=t(s,e||!!n[s].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:xn(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Gn,{value:n,writable:!0}),i},S:function(t,o,i){i?ln(o)&&o[Gn].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Gn];if(o){var i=o.t,n=o.k,a=o.R,l=o.i;if(4===l)cn(n,(function(e){e!==Gn&&(void 0!==i[e]||dn(i,e)?a[e]||t(n[e]):(a[e]=!0,An(o)))})),cn(i,(function(t){void 0!==n[t]||dn(n,t)||(a[t]=!1,An(o))}));else if(5===l){if(r(o)&&(An(o),a.length=!0),n.length<i.length)for(var s=n.length;s<i.length;s++)a[s]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),d=0;d<f;d++)n.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&t(n[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ga{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Ji(i))return i;if(null==r)return;const n=$a({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=_a({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Ga(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Yi,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",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 Va=Object.freeze({__proto__:null,FtCommandQueue:Yi,FtLitElementRedux:nn,FtReduxStore:Ga,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))Ji(e)&&e.clear()},isFtReduxStore:Ji,redux:qi,reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var qa=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}});const Ya=Symbol("elementInternals");var Ja,Xa,Qa,tl,el=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ya].form}constructor(...t){super(t),this[Ya]=this.attachInternals(),this[Ya].role=e}setFormValue(t){this[Ya].setFormValue(t)}}}});const ol=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qa=null===(Xa=null===(Ja=window.safari)||void 0===Ja?void 0:Ja.pushNotification)||void 0===Xa?void 0:Xa.toString())&&void 0!==Qa?Qa:""),rl="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;var il;window.ftGlobals=null!==(tl=window.ftGlobals)&&void 0!==tl?tl:{lit:me,litDecorators:Ee,litRepeat:Pe,litClassMap:je,litStyleMap:He,litUnsafeHTML:Ve,wcUtils:{...Qe,...Xe,...eo,...ro,...go,...mr,...xr,...Ni,...yr,...Bi,...zi,...fo,...Zi,...Ti,...Gi,...Vi,...Va,...Li,...qa,...el,isSafari:ol,isTouchScreen:rl}},function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(il||(il={}));var nl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class al extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ll=Symbol("registerInterval");class sl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=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[ll]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ll]):this.dispatchEvent(new al)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ll,nl([xe()],o.prototype,"stateManager",void 0),o}(nn)){}const cl=bo.create("--ft-infinite-scroll-padding","","SIZE","0"),fl=bo.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),dl=bo.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px"),ul=dt`
176
+ `;var Ti=Object.freeze({__proto__:null,noTextSelect:Mi,safariEllipsisFix:Hi,wordWrap:Di}),Gi=Object.freeze({__proto__:null});var Vi=Object.freeze({__proto__:null,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}});const qi=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!so(t,e),attribute:!1,...e};Se(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Yi{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Ji(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Xi,Qi,tn;const en=Symbol("internalReduxEventsUnsubscribers"),on=Symbol("internalStoresUnsubscribers"),rn=Symbol("internalStores");class nn extends Ai{constructor(){super(...arguments),this[Xi]=new Map,this[Qi]=new Map,this[tn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[rn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[rn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[rn].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ji(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[rn].delete(e)}setupStore(t,e){this[rn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[rn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[on].has(t.store):this[on].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[on].set(t,e.subscribe((()=>this.updateFromStores()))),Ji(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[en].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[on].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[en].forEach((t=>t())),this[en]=[]}unsubscribeFromStore(t){this[on].has(t)&&this[on].get(t)(),this[on].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function an(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ln(t){return!!t&&!!t[Gn]}function sn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Vn}(t)||Array.isArray(t)||!!t[Tn]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Tn])||pn(t)||gn(t))}function cn(t,e,o){void 0===o&&(o=!1),0===fn(t)?(o?Object.keys:qn)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function fn(t){var e=t[Gn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:pn(t)?2:gn(t)?3:0}function dn(t,e){return 2===fn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function un(t,e,o){var r=fn(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function hn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function pn(t){return Zn&&t instanceof Map}function gn(t){return Mn&&t instanceof Set}function yn(t){return t.o||t.t}function bn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yn(t);delete e[Gn];for(var o=qn(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mn(t,e){return void 0===e&&(e=!1),On(t)||ln(t)||!sn(t)||(fn(t)>1&&(t.set=t.add=t.clear=t.delete=vn),Object.freeze(t),e&&cn(t,(function(t,e){return mn(e,!0)}),!0)),t}function vn(){an(2)}function On(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Sn(t){var e=Jn[t];return e||an(18,t),e}function xn(){return $n}function wn(t,e){e&&(Sn("Patches"),t.u=[],t.s=[],t.v=e)}function Nn(t){Cn(t),t.p.forEach(In),t.p=null}function Cn(t){t===$n&&($n=t.l)}function En(t){return $n={p:[],l:$n,h:t,m:!0,_:0}}function In(t){var e=t[Gn];0===e.i||1===e.i?e.j():e.g=!0}function Rn(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Sn("ES5").S(e,t,r),r?(o[Gn].P&&(Nn(e),an(4)),sn(t)&&(t=Ln(e,t),e.l||Wn(e,t)),e.u&&Sn("Patches").M(o[Gn].t,t,e.u,e.s)):t=Ln(e,o,[]),Nn(e),e.u&&e.v(e.u,e.s),t!==Hn?t:void 0}function Ln(t,e,o){if(On(e))return e;var r=e[Gn];if(!r)return cn(e,(function(i,n){return Un(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Wn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=bn(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),cn(n,(function(e,n){return Un(t,r,i,e,n,o,a)})),Wn(t,i,!1),o&&t.u&&Sn("Patches").N(r,o,t.u,t.s)}return r.o}function Un(t,e,o,r,i,n,a){if(ln(i)){var l=Ln(t,i,n&&e&&3!==e.i&&!dn(e.R,r)?n.concat(r):void 0);if(un(o,r,l),!ln(l))return;t.m=!1}else a&&o.add(i);if(sn(i)&&!On(i)){if(!t.h.D&&t._<1)return;Ln(t,i),e&&e.A.l||Wn(t,i)}}function Wn(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mn(e,o)}function kn(t,e){var o=t[Gn];return(o?yn(o):t)[e]}function Fn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function An(t){t.P||(t.P=!0,t.l&&An(t.l))}function Bn(t){t.o||(t.o=bn(t.t))}function zn(t,e,o){var r=pn(e)?Sn("MapSet").F(e,o):gn(e)?Sn("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:xn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Xn;o&&(i=[r],n=Qn);var a=Proxy.revocable(i,n),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(e,o):Sn("ES5").J(e,o);return(o?o.A:xn()).p.push(r),r}function _n(t){return ln(t)||an(22,t),function t(e){if(!sn(e))return e;var o,r=e[Gn],i=fn(e);if(r){if(!r.P&&(r.i<4||!Sn("ES5").K(r)))return r.t;r.I=!0,o=Kn(e,i),r.I=!1}else o=Kn(e,i);return cn(o,(function(e,i){r&&function(t,e){return 2===fn(t)?t.get(e):t[e]}(r.t,e)===i||un(o,e,t(i))})),3===i?new Set(o):o}(t)}function Kn(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bn(t)}Xi=on,Qi=rn,tn=en,nn.reduxProperties=new Map,nn.reduxReactiveProperties=new Set,nn.reduxEventListeners=new Map;var Pn,$n,jn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Zn="undefined"!=typeof Map,Mn="undefined"!=typeof Set,Dn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Hn=jn?Symbol.for("immer-nothing"):((Pn={})["immer-nothing"]=!0,Pn),Tn=jn?Symbol.for("immer-draftable"):"__$immer_draftable",Gn=jn?Symbol.for("immer-state"):"__$immer_state",Vn=""+Object.prototype.constructor,qn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yn=Object.getOwnPropertyDescriptors||function(t){var e={};return qn(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Jn={},Xn={get:function(t,e){if(e===Gn)return t;var o=yn(t);if(!dn(o,e))return function(t,e,o){var r,i=Fn(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!sn(r)?r:r===kn(t.t,e)?(Bn(t),t.o[e]=zn(t.A.h,r,t)):r},has:function(t,e){return e in yn(t)},ownKeys:function(t){return Reflect.ownKeys(yn(t))},set:function(t,e,o){var r=Fn(yn(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=kn(yn(t),e),n=null==i?void 0:i[Gn];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hn(o,i)&&(void 0!==o||dn(t.t,e)))return!0;Bn(t),An(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==kn(t.t,e)||e in t.t?(t.R[e]=!1,Bn(t),An(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=yn(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){an(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){an(12)}},Qn={};cn(Xn,(function(t,e){Qn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qn.deleteProperty=function(t,e){return Qn.set.call(this,t,e,void 0)},Qn.set=function(t,e,o){return Xn.set.call(this,t[0],e,o,t[0])};var ta=function(){function t(t){var e=this;this.O=Dn,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&an(6),void 0!==r&&"function"!=typeof r&&an(7),sn(t)){var l=En(e),s=zn(e,t,void 0),c=!0;try{a=o(s),c=!1}finally{c?Nn(l):Cn(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return wn(l,r),Rn(t,l)}),(function(t){throw Nn(l),t})):(wn(l,r),Rn(a,l))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Hn&&(a=void 0),e.D&&mn(a,!0),r){var f=[],d=[];Sn("Patches").M(t,a,f,d),r(f,d)}return a}an(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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 e=t.prototype;return e.createDraft=function(t){sn(t)||an(8),ln(t)&&(t=_n(t));var e=En(this),o=zn(this,t,void 0);return o[Gn].C=!0,Cn(e),o},e.finishDraft=function(t,e){var o=(t&&t[Gn]).A;return wn(o,e),Rn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Dn&&an(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=Sn("Patches").$;return ln(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),ea=new ta,oa=ea.produce;function ra(t){return ra="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},ra(t)}function ia(t){var e=function(t,e){if("object"!==ra(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ra(e)?e:String(e)}function na(t,e,o){return(e=ia(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function aa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function la(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?aa(Object(o),!0).forEach((function(e){na(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):aa(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function sa(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 ca="function"==typeof Symbol&&Symbol.observable||"@@observable",fa=function(){return Math.random().toString(36).substring(7).split("").join(".")},da={INIT:"@@redux/INIT"+fa(),REPLACE:"@@redux/REPLACE"+fa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fa()}};function ua(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(sa(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(sa(1));return o(ua)(t,e)}if("function"!=typeof t)throw new Error(sa(2));var i=t,n=e,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function f(){if(s)throw new Error(sa(3));return n}function d(t){if("function"!=typeof t)throw new Error(sa(4));if(s)throw new Error(sa(5));var e=!0;return c(),l.push(t),function(){if(e){if(s)throw new Error(sa(6));e=!1,c();var o=l.indexOf(t);l.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(sa(7));if(void 0===t.type)throw new Error(sa(8));if(s)throw new Error(sa(9));try{s=!0,n=i(n,t)}finally{s=!1}for(var e=a=l,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:da.INIT}),(r={dispatch:u,subscribe:d,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(sa(10));i=t,u({type:da.REPLACE})}})[ca]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(sa(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ca]=function(){return this},t},r}function ha(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:da.INIT}))throw new Error(sa(12));if(void 0===o(void 0,{type:da.PROBE_UNKNOWN_ACTION()}))throw new Error(sa(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},l=0;l<a.length;l++){var s=a[l],c=o[s],f=t[s],d=c(f,e);if(void 0===d)throw e&&e.type,new Error(sa(14));i[s]=d,r=r||d!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function pa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ga(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(sa(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=pa.apply(void 0,n)(o.dispatch),la(la({},o),{},{dispatch:r})}}}function ya(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var ba=ya();ba.withExtraArgument=ya;var ma,va=ba,Oa=(ma=function(t,e){return ma=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},ma(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}ma(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Sa=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function l(n){return function(l){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,l])}}},xa=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},wa=Object.defineProperty,Na=Object.defineProperties,Ca=Object.getOwnPropertyDescriptors,Ea=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable,La=function(t,e,o){return e in t?wa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ua=function(t,e){for(var o in e||(e={}))Ia.call(e,o)&&La(t,o,e[o]);if(Ea)for(var r=0,i=Ea(e);r<i.length;r++){o=i[r];Ra.call(e,o)&&La(t,o,e[o])}return t},Wa=function(t,e){return Na(t,Ca(e))},ka="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?pa:pa.apply(null,arguments)};var Fa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Oa(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xa([void 0],t[0].concat(this)))):new(e.bind.apply(e,xa([void 0],t.concat(this))))},e}(Array),Aa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Oa(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xa([void 0],t[0].concat(this)))):new(e.bind.apply(e,xa([void 0],t.concat(this))))},e}(Array);function Ba(t){return sn(t)?oa(t,(function(){})):t}function za(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Fa;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(va.withExtraArgument(o.extraArgument)):r.push(va));return r}(t)}}function _a(t){var e,o=za(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,l=void 0===a?o():a,s=r.devTools,c=void 0===s||s,f=r.preloadedState,d=void 0===f?void 0:f,u=r.enhancers,h=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ha(n)}var p=l;"function"==typeof p&&(p=p(o));var g=ga.apply(void 0,p),y=pa;c&&(y=ka(Ua({trace:!1},"object"==typeof c&&c)));var b=new Aa(g),m=b;return Array.isArray(h)?m=xa([g],h):"function"==typeof h&&(m=h(b)),ua(e,d,y.apply(void 0,m))}function Ka(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ua(Ua({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Pa(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function $a(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Ba(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},l={},s={};function c(){var e="function"==typeof t.extraReducers?Pa(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,s=e[2],c=void 0===s?void 0:s,f=Ua(Ua({},i),l);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Pa(e):[e,o,r],a=n[0],l=n[1],s=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ba(t())};else{var c=Ba(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=xa([a[e.type]],l.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[s]),o.reduce((function(t,o){if(o){var r;if(ln(t))return void 0===(r=o(t,e))?t:r;if(sn(t))return oa(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){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=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,l[c]=o,s[t]=r?Ka(c,r):Ka(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:s,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var ja=["name","message","stack","code"],Za=function(t,e){this.payload=t,this.meta=e},Ma=function(t,e){this.payload=t,this.meta=e},Da=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=ja;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Ha(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Ka(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Wa(Ua({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Ka(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Wa(Ua({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ka(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Da)(t||"Rejected"),meta:Wa(Ua({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,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==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function h(t){f=t,u.abort()}var p=function(){return a=this,p=null,g=function(){var a,p,g,y,b,m;return Sa(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:s,extra:c}),null===(O=y)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),l(i(d,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:d,arg:t},{getState:s,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:l,getState:s,extra:c,requestId:d,signal:u.signal,abort:h,rejectWithValue:function(t,e){return new Za(t,e)},fulfillWithValue:function(t,e){return new Ma(t,e)}})).then((function(e){if(e instanceof Za)throw e;return e instanceof Ma?r(e.payload,d,t,e.meta):r(e,d,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof Za?n(null,d,t,m.payload,m.meta):n(m,d,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||l(g),[2,g]}var O}))},new Promise((function(t,e){var o=function(t){try{i(g.next(t))}catch(t){e(t)}},r=function(t){try{i(g.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((g=g.apply(a,p)).next())}));var a,p,g}();return Object.assign(p,{abort:h,requestId:d,arg:t,unwrap:function(){return p.then(Ha)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ta="listenerMiddleware";Ka(Ta+"/add"),Ka(Ta+"/removeAll"),Ka(Ta+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Gn];return Xn.get(e,t)},set:function(e){var o=this[Gn];Xn.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Gn];if(!i.P)switch(i.i){case 5:r(i)&&An(i);break;case 4:o(i)&&An(i)}}}function o(t){for(var e=t.t,o=t.k,r=qn(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Gn){var a=e[n];if(void 0===a&&!dn(e,n))return!0;var l=o[n],s=l&&l[Gn];if(s?s.t!==a:!hn(l,a))return!0}}var c=!!e[Gn];return r.length!==qn(e).length+(c?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Jn[t]||(Jn[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Yn(o);delete n[Gn];for(var a=qn(n),l=0;l<a.length;l++){var s=a[l];n[s]=t(s,e||!!n[s].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:xn(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Gn,{value:n,writable:!0}),i},S:function(t,o,i){i?ln(o)&&o[Gn].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Gn];if(o){var i=o.t,n=o.k,a=o.R,l=o.i;if(4===l)cn(n,(function(e){e!==Gn&&(void 0!==i[e]||dn(i,e)?a[e]||t(n[e]):(a[e]=!0,An(o)))})),cn(i,(function(t){void 0!==n[t]||dn(n,t)||(a[t]=!1,An(o))}));else if(5===l){if(r(o)&&(An(o),a.length=!0),n.length<i.length)for(var s=n.length;s<i.length;s++)a[s]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),d=0;d<f;d++)n.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&t(n[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ga{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Ji(i))return i;if(null==r)return;const n=$a({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=_a({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new Ga(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Yi,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}: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 Va=Object.freeze({__proto__:null,FtCommandQueue:Yi,FtLitElementRedux:nn,FtReduxStore:Ga,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))Ji(e)&&e.clear()},isFtReduxStore:Ji,redux:qi,reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var qa=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}});const Ya=Symbol("elementInternals");var Ja,Xa,Qa,tl,el=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ya].form}constructor(...t){super(t),this[Ya]=this.attachInternals(),this[Ya].role=e}setFormValue(t){this[Ya].setFormValue(t)}}}});const ol=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qa=null===(Xa=null===(Ja=window.safari)||void 0===Ja?void 0:Ja.pushNotification)||void 0===Xa?void 0:Xa.toString())&&void 0!==Qa?Qa:""),rl="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;var il;window.ftGlobals=null!==(tl=window.ftGlobals)&&void 0!==tl?tl:{lit:me,litDecorators:Ee,litRepeat:Pe,litClassMap:je,litStyleMap:He,litUnsafeHTML:Ve,wcUtils:{...Qe,...Xe,...eo,...ro,...go,...mr,...xr,...Ni,...yr,...Bi,...zi,...fo,...Zi,...Ti,...Gi,...Vi,...Va,...Li,...qa,...el,isSafari:ol,isTouchScreen:rl}},function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(il||(il={}));var nl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class al extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ll=Symbol("registerInterval");class sl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=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[ll]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ll]):this.dispatchEvent(new al)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ll,nl([xe()],o.prototype,"stateManager",void 0),o}(nn)){}const cl=bo.create("--ft-infinite-scroll-padding","","SIZE","0"),fl=bo.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),dl=bo.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px"),ul=dt`
177
177
  .items-container {
178
178
  padding: ${cl};
179
179
  outline: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-content",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "description": "Main content for integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-infinite-scroll": "1.1.45",
23
- "@fluid-topics/ft-reader-topic-content": "1.1.45",
24
- "@fluid-topics/ft-reader-topic-context": "1.1.45",
25
- "@fluid-topics/ft-reader-topic-title": "1.1.45",
26
- "@fluid-topics/ft-wc-utils": "1.1.45",
22
+ "@fluid-topics/ft-infinite-scroll": "1.1.46",
23
+ "@fluid-topics/ft-reader-topic-content": "1.1.46",
24
+ "@fluid-topics/ft-reader-topic-context": "1.1.46",
25
+ "@fluid-topics/ft-reader-topic-title": "1.1.46",
26
+ "@fluid-topics/ft-wc-utils": "1.1.46",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "6f166986bd8187f17e3d5a70f366596807be03c1"
29
+ "gitHead": "023f346e70fcbd9980c41b0c7ede0c199ca699bc"
30
30
  }