@fluid-topics/ft-reader-topic-title 1.1.101 → 1.1.103

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.
@@ -46,7 +46,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
46
46
  input::-webkit-search-results-decoration {
47
47
  display: none;
48
48
  }
49
- `;var xi={};var Io={};P(Io,{ParametrizedLabelResolver:()=>Po});var Po=class{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var n,a;e=this.resolvePluralKey(e,t);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.forEach((c,s)=>i=i.replace(new RegExp(`\\{${s}([^}]*)\\}`,"g"),(l,f)=>this.formatValue(c,f))),i}resolvePluralKey(e,t){for(let n of t)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}formatValue(e,t){return e instanceof Date?this.formatDate(e,t):e??""}formatDate(e,t){let n=a=>t?.includes("date")?e.toLocaleDateString(a):t?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var on={};P(on,{FtCommandQueue:()=>Et,FtLitElementRedux:()=>me,FtReduxStore:()=>rn,clearAllStores:()=>Ll,isFtReduxStore:()=>Te,redux:()=>lr,reduxEventListener:()=>Js,reduxReactive:()=>Ys});var Ys=()=>(o,e)=>{var t;let n=o.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(t=n.reduxReactiveProperties)===null||t===void 0||t.add(e)},lr=o=>{let e=o??{};return(t,n)=>{var a;let i={hasChanged:mt,attribute:!1,...e};D(i)(t,n);let c=t.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:s=>s[n],store:e.store})}},Js=o=>(e,t)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(t,o)};var Et=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(n=>n.type===e);return t&&(this.queue=this.queue.filter(n=>n!==t)),t}};function Te(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var vi,Si,Oi,dr=Symbol("internalReduxEventsUnsubscribers"),he=Symbol("internalStoresUnsubscribers"),We=Symbol("internalStores"),me=class extends V{constructor(){super(...arguments),this[vi]=new Map,this[Si]=new Map,this[Oi]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[We].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[We].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[We].get(e)}addStore(e,t){var n;t=(n=t??(Te(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[We].delete(t)}setupStore(e,t){this[We].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[We].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let n=this.constructor.getPropertyOptions(t);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:t)){let a=this.getStore(e.store);a&&(e.store?this[he].has(e.store):this[he].size>0)&&(this[t]=e.selector(a.getState(),this))}})}subscribeToStore(e,t){var n;this[he].set(e,t.subscribe(()=>this.updateFromStores())),Te(t)&&t.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||t.name===a.store)){let c=s=>this[i](s);t.eventBus.addEventListener(a.eventName,c),this[dr].push(()=>t.eventBus.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[he].forEach((e,t)=>this.unsubscribeFromStore(t)),this[dr].forEach(e=>e()),this[dr]=[]}unsubscribeFromStore(e){this[he].has(e)&&this[he].get(e)(),this[he].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};vi=he,Si=We,Oi=dr;me.reduxProperties=new Map;me.reduxReactiveProperties=new Set;me.reduxEventListeners=new Map;function j(o){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+o+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ie(o){return!!o&&!!o[$]}function G(o){var e;return!!o&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===al}(o)||Array.isArray(o)||!!o[Pi]||!!(!((e=o.constructor)===null||e===void 0)&&e[Pi])||Do(o)||Fo(o))}function Ue(o,e,t){t===void 0&&(t=!1),qe(o)===0?(t?Object.keys:Ge)(o).forEach(function(n){t&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function qe(o){var e=o[$];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:Do(o)?2:Fo(o)?3:0}function Ve(o,e){return qe(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function Xs(o,e){return qe(o)===2?o.get(e):o[e]}function Ii(o,e,t){var n=qe(o);n===2?o.set(e,t):n===3?o.add(t):o[e]=t}function _i(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function Do(o){return ol&&o instanceof Map}function Fo(o){return nl&&o instanceof Set}function ge(o){return o.o||o.t}function Bo(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Li(o);delete e[$];for(var t=Ge(e),n=0;n<t.length;n++){var a=t[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function zo(o,e){return e===void 0&&(e=!1),Ho(o)||ie(o)||!G(o)||(qe(o)>1&&(o.set=o.add=o.clear=o.delete=Qs),Object.freeze(o),e&&Ue(o,function(t,n){return zo(n,!0)},!0)),o}function Qs(){j(2)}function Ho(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function X(o){var e=Uo[o];return e||j(18,o),e}function el(o,e){Uo[o]||(Uo[o]=e)}function Mo(){return At}function _o(o,e){e&&(X("Patches"),o.u=[],o.s=[],o.v=e)}function fr(o){To(o),o.p.forEach(tl),o.p=null}function To(o){o===At&&(At=o.l)}function wi(o){return At={p:[],l:At,h:o,m:!0,_:0}}function tl(o){var e=o[$];e.i===0||e.i===1?e.j():e.g=!0}function $o(o,e){e._=e.p.length;var t=e.p[0],n=o!==void 0&&o!==t;return e.h.O||X("ES5").S(e,o,n),n?(t[$].P&&(fr(e),j(4)),G(o)&&(o=ur(e,o),e.l||pr(e,o)),e.u&&X("Patches").M(t[$].t,o,e.u,e.s)):o=ur(e,t,[]),fr(e),e.u&&e.v(e.u,e.s),o!==ki?o:void 0}function ur(o,e,t){if(Ho(e))return e;var n=e[$];if(!n)return Ue(e,function(s,l){return Ci(o,n,e,s,l,t)},!0),e;if(n.A!==o)return e;if(!n.P)return pr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Bo(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Ue(i,function(s,l){return Ci(o,n,a,s,l,t,c)}),pr(o,a,!1),t&&o.u&&X("Patches").N(n,t,o.u,o.s)}return n.o}function Ci(o,e,t,n,a,i,c){if(ie(a)){var s=ur(o,a,i&&e&&e.i!==3&&!Ve(e.R,n)?i.concat(n):void 0);if(Ii(t,n,s),!ie(s))return;o.m=!1}else c&&t.add(a);if(G(a)&&!Ho(a)){if(!o.h.D&&o._<1)return;ur(o,a),e&&e.A.l||pr(o,a)}}function pr(o,e,t){t===void 0&&(t=!1),!o.l&&o.h.D&&o.m&&zo(e,t)}function ko(o,e){var t=o[$];return(t?ge(t):o)[e]}function Ei(o,e){if(e in o)for(var t=Object.getPrototypeOf(o);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function ye(o){o.P||(o.P=!0,o.l&&ye(o.l))}function Lo(o){o.o||(o.o=Bo(o.t))}function Wo(o,e,t){var n=Do(e)?X("MapSet").F(e,t):Fo(e)?X("MapSet").T(e,t):o.O?function(a,i){var c=Array.isArray(a),s={i:c?1:0,A:i?i.A:Mo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},l=s,f=Rt;c&&(l=[s],f=Nt);var h=Proxy.revocable(l,f),p=h.revoke,m=h.proxy;return s.k=m,s.j=p,m}(e,t):X("ES5").J(e,t);return(t?t.A:Mo()).p.push(n),n}function rl(o){return ie(o)||j(22,o),function e(t){if(!G(t))return t;var n,a=t[$],i=qe(t);if(a){if(!a.P&&(a.i<4||!X("ES5").K(a)))return a.t;a.I=!0,n=Ni(t,i),a.I=!1}else n=Ni(t,i);return Ue(n,function(c,s){a&&Xs(a.t,c)===s||Ii(n,c,e(s))}),i===3?new Set(n):n}(o)}function Ni(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return Bo(o)}function $i(){function o(c,s){var l=i[c];return l?l.enumerable=s:i[c]=l={configurable:!0,enumerable:s,get:function(){var f=this[$];return Rt.get(f,c)},set:function(f){var h=this[$];Rt.set(h,c,f)}},l}function e(c){for(var s=c.length-1;s>=0;s--){var l=c[s][$];if(!l.P)switch(l.i){case 5:n(l)&&ye(l);break;case 4:t(l)&&ye(l)}}}function t(c){for(var s=c.t,l=c.k,f=Ge(l),h=f.length-1;h>=0;h--){var p=f[h];if(p!==$){var m=s[p];if(m===void 0&&!Ve(s,p))return!0;var g=l[p],y=g&&g[$];if(y?y.t!==m:!_i(g,m))return!0}}var v=!!s[$];return f.length!==Ge(s).length+(v?0:1)}function n(c){var s=c.k;if(s.length!==c.t.length)return!0;var l=Object.getOwnPropertyDescriptor(s,s.length-1);if(l&&!l.get)return!0;for(var f=0;f<s.length;f++)if(!s.hasOwnProperty(f))return!0;return!1}function a(c){c.g&&j(3,JSON.stringify(ge(c)))}var i={};el("ES5",{J:function(c,s){var l=Array.isArray(c),f=function(p,m){if(p){for(var g=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(g,""+y,o(y,!0));return g}var v=Li(m);delete v[$];for(var O=Ge(v),w=0;w<O.length;w++){var C=O[w];v[C]=o(C,p||!!v[C].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(l,c),h={i:l?5:4,A:s?s.A:Mo(),P:!1,I:!1,R:{},l:s,t:c,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,$,{value:h,writable:!0}),f},S:function(c,s,l){l?ie(s)&&s[$].A===c&&e(c.p):(c.u&&function f(h){if(h&&typeof h=="object"){var p=h[$];if(p){var m=p.t,g=p.k,y=p.R,v=p.i;if(v===4)Ue(g,function(b){b!==$&&(m[b]!==void 0||Ve(m,b)?y[b]||f(g[b]):(y[b]=!0,ye(p)))}),Ue(m,function(b){g[b]!==void 0||Ve(g,b)||(y[b]=!1,ye(p))});else if(v===5){if(n(p)&&(ye(p),y.length=!0),g.length<m.length)for(var O=g.length;O<m.length;O++)y[O]=!1;else for(var w=m.length;w<g.length;w++)y[w]=!0;for(var C=Math.min(g.length,m.length),x=0;x<C;x++)g.hasOwnProperty(x)||(y[x]=!0),y[x]===void 0&&f(g[x])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?t(c):n(c)}})}var Ai,At,jo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ol=typeof Map<"u",nl=typeof Set<"u",Ri=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ki=jo?Symbol.for("immer-nothing"):((Ai={})["immer-nothing"]=!0,Ai),Pi=jo?Symbol.for("immer-draftable"):"__$immer_draftable",$=jo?Symbol.for("immer-state"):"__$immer_state";var al=""+Object.prototype.constructor,Ge=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Li=Object.getOwnPropertyDescriptors||function(o){var e={};return Ge(o).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(o,t)}),e},Uo={},Rt={get:function(o,e){if(e===$)return o;var t=ge(o);if(!Ve(t,e))return function(a,i,c){var s,l=Ei(i,c);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(a.k):void 0}(o,t,e);var n=t[e];return o.I||!G(n)?n:n===ko(o.t,e)?(Lo(o),o.o[e]=Wo(o.A.h,n,o)):n},has:function(o,e){return e in ge(o)},ownKeys:function(o){return Reflect.ownKeys(ge(o))},set:function(o,e,t){var n=Ei(ge(o),e);if(n?.set)return n.set.call(o.k,t),!0;if(!o.P){var a=ko(ge(o),e),i=a?.[$];if(i&&i.t===t)return o.o[e]=t,o.R[e]=!1,!0;if(_i(t,a)&&(t!==void 0||Ve(o.t,e)))return!0;Lo(o),ye(o)}return o.o[e]===t&&(t!==void 0||e in o.o)||Number.isNaN(t)&&Number.isNaN(o.o[e])||(o.o[e]=t,o.R[e]=!0),!0},deleteProperty:function(o,e){return ko(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,Lo(o),ye(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var t=ge(o),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){j(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){j(12)}},Nt={};Ue(Rt,function(o,e){Nt[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Nt.deleteProperty=function(o,e){return Nt.set.call(this,o,e,void 0)},Nt.set=function(o,e,t){return Rt.set.call(this,o[0],e,t,o[0])};var il=function(){function o(t){var n=this;this.O=Ri,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var s=i;i=a;var l=n;return function(v){var O=this;v===void 0&&(v=s);for(var w=arguments.length,C=Array(w>1?w-1:0),x=1;x<w;x++)C[x-1]=arguments[x];return l.produce(v,function(b){var S;return(S=i).call.apply(S,[O,b].concat(C))})}}var f;if(typeof i!="function"&&j(6),c!==void 0&&typeof c!="function"&&j(7),G(a)){var h=wi(n),p=Wo(n,a,void 0),m=!0;try{f=i(p),m=!1}finally{m?fr(h):To(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return _o(h,c),$o(v,h)},function(v){throw fr(h),v}):(_o(h,c),$o(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===ki&&(f=void 0),n.D&&zo(f,!0),c){var g=[],y=[];X("Patches").M(a,f,g,y),c(g,y)}return f}j(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return n.produceWithPatches(f,function(g){return a.apply(void 0,[g].concat(p))})};var c,s,l=n.produce(a,i,function(f,h){c=f,s=h});return typeof Promise<"u"&&l instanceof Promise?l.then(function(f){return[f,c,s]}):[l,c,s]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=o.prototype;return e.createDraft=function(t){G(t)||j(8),ie(t)&&(t=rl(t));var n=wi(this),a=Wo(this,t,void 0);return a[$].C=!0,To(n),a},e.finishDraft=function(t,n){var a=t&&t[$],i=a.A;return _o(i,n),$o(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ri&&j(20),this.O=t},e.applyPatches=function(t,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}a>-1&&(n=n.slice(a+1));var c=X("Patches").$;return ie(t)?c(t,n):this.produce(t,function(s){return c(s,n)})},o}(),H=new il,cl=H.produce,qh=H.produceWithPatches.bind(H),Yh=H.setAutoFreeze.bind(H),Jh=H.setUseProxies.bind(H),Xh=H.applyPatches.bind(H),Qh=H.createDraft.bind(H),em=H.finishDraft.bind(H),hr=cl;function be(o){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(o)}function Ko(o,e){if(be(o)!=="object"||o===null)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e||"default");if(be(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Zo(o){var e=Ko(o,"string");return be(e)==="symbol"?e:String(e)}function Vo(o,e,t){return e=Zo(e),e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function Mi(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,n)}return t}function mr(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Mi(Object(t),!0).forEach(function(n){Vo(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Mi(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function W(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Ti=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Go=function(){return Math.random().toString(36).substring(7).split("").join(".")},gr={INIT:"@@redux/INIT"+Go(),REPLACE:"@@redux/REPLACE"+Go(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Go()}};function sl(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function qo(o,e,t){var n;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(W(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(W(1));return t(qo)(o,e)}if(typeof o!="function")throw new Error(W(2));var a=o,i=e,c=[],s=c,l=!1;function f(){s===c&&(s=c.slice())}function h(){if(l)throw new Error(W(3));return i}function p(v){if(typeof v!="function")throw new Error(W(4));if(l)throw new Error(W(5));var O=!0;return f(),s.push(v),function(){if(O){if(l)throw new Error(W(6));O=!1,f();var C=s.indexOf(v);s.splice(C,1),c=null}}}function m(v){if(!sl(v))throw new Error(W(7));if(typeof v.type>"u")throw new Error(W(8));if(l)throw new Error(W(9));try{l=!0,i=a(i,v)}finally{l=!1}for(var O=c=s,w=0;w<O.length;w++){var C=O[w];C()}return v}function g(v){if(typeof v!="function")throw new Error(W(10));a=v,m({type:gr.REPLACE})}function y(){var v,O=p;return v={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(W(11));function x(){C.next&&C.next(h())}x();var b=O(x);return{unsubscribe:b}}},v[Ti]=function(){return this},v}return m({type:gr.INIT}),n={dispatch:m,subscribe:p,getState:h,replaceReducer:g},n[Ti]=y,n}function ll(o){Object.keys(o).forEach(function(e){var t=o[e],n=t(void 0,{type:gr.INIT});if(typeof n>"u")throw new Error(W(12));if(typeof t(void 0,{type:gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(W(13))})}function Wi(o){for(var e=Object.keys(o),t={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(t[a]=o[a])}var i=Object.keys(t),c,s;try{ll(t)}catch(l){s=l}return function(f,h){if(f===void 0&&(f={}),s)throw s;if(0)var p;for(var m=!1,g={},y=0;y<i.length;y++){var v=i[y],O=t[v],w=f[v],C=O(w,h);if(typeof C>"u"){var x=h&&h.type;throw new Error(W(14))}g[v]=C,m=m||C!==w}return m=m||i.length!==Object.keys(f).length,m?g:f}}function Ye(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ui(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(W(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=e.map(function(l){return l(c)});return i=Ye.apply(void 0,s)(a.dispatch),mr(mr({},a),{},{dispatch:i})}}}function Di(o){var e=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(s){return typeof s=="function"?s(a,i,o):c(s)}}};return e}var Fi=Di();Fi.withExtraArgument=Di;var Yo=Fi;var Ki=function(){var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},o(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");o(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dl=function(o,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(f){return function(h){return l([f,h])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,a=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){t.label=f[1];break}if(f[0]===6&&t.label<i[1]){t.label=i[1],i=f;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(f);break}i[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(o,t)}catch(h){f=[6,h],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Je=function(o,e){for(var t=0,n=e.length,a=o.length;t<n;t++,a++)o[a]=e[t];return o},fl=Object.defineProperty,ul=Object.defineProperties,pl=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable,zi=function(o,e,t){return e in o?fl(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t},xe=function(o,e){for(var t in e||(e={}))hl.call(e,t)&&zi(o,t,e[t]);if(Bi)for(var n=0,a=Bi(e);n<a.length;n++){var t=a[n];ml.call(e,t)&&zi(o,t,e[t])}return o},Jo=function(o,e){return ul(o,pl(e))},gl=function(o,e,t){return new Promise(function(n,a){var i=function(l){try{s(t.next(l))}catch(f){a(f)}},c=function(l){try{s(t.throw(l))}catch(f){a(f)}},s=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(i,c)};s((t=t.apply(o,e)).next())})};var yl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ye:Ye.apply(null,arguments)},bm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function bl(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var xl=function(o){Ki(e,o);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=o.apply(this,t)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array),vl=function(o){Ki(e,o);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=o.apply(this,t)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array);function en(o){return G(o)?hr(o,function(){}):o}function Sl(o){return typeof o=="boolean"}function Ol(){return function(e){return wl(e)}}function wl(o){o===void 0&&(o={});var e=o.thunk,t=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,i=o.serializableCheck,c=i===void 0?!0:i,s=new xl;if(t&&(Sl(t)?s.push(Yo):s.push(Yo.withExtraArgument(t.extraArgument))),0){if(a)var l;if(c)var f}return s}var Xo=!0;function Zi(o){var e=Ol(),t=o||{},n=t.reducer,a=n===void 0?void 0:n,i=t.middleware,c=i===void 0?e():i,s=t.devTools,l=s===void 0?!0:s,f=t.preloadedState,h=f===void 0?void 0:f,p=t.enhancers,m=p===void 0?void 0:p,g;if(typeof a=="function")g=a;else if(bl(a))g=Wi(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=c;if(typeof y=="function"&&(y=y(e),!Xo&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xo&&y.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Ui.apply(void 0,y),O=Ye;l&&(O=yl(xe({trace:!Xo},typeof l=="object"&&l)));var w=new vl(v),C=w;Array.isArray(m)?C=Je([v],m):typeof m=="function"&&(C=m(w));var x=O.apply(void 0,C);return qo(g,h,x)}function ve(o,e){function t(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return xe(xe({type:o,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:o,payload:n[0]}}return t.toString=function(){return""+o},t.type=o,t.match=function(n){return n.type===o},t}function Vi(o){var e={},t=[],n,a={addCase:function(i,c){var s=typeof i=="string"?i:i.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=c,a},addMatcher:function(i,c){return t.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return o(a),[e,t,n]}function Cl(o){return typeof o=="function"}function El(o,e,t,n){t===void 0&&(t=[]);var a=typeof e=="function"?Vi(e):[e,t,n],i=a[0],c=a[1],s=a[2],l;if(Cl(o))l=function(){return en(o())};else{var f=en(o);l=function(){return f}}function h(p,m){p===void 0&&(p=l());var g=Je([i[m.type]],c.filter(function(y){var v=y.matcher;return v(m)}).map(function(y){var v=y.reducer;return v}));return g.filter(function(y){return!!y}).length===0&&(g=[s]),g.reduce(function(y,v){if(v)if(ie(y)){var O=y,w=v(O,m);return w===void 0?y:w}else{if(G(y))return hr(y,function(C){return v(C,m)});var w=v(y,m);if(w===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return y},p)}return h.getInitialState=l,h}function Nl(o,e){return o+"/"+e}function Gi(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof o.initialState=="function"?o.initialState:en(o.initialState),n=o.reducers||{},a=Object.keys(n),i={},c={},s={};a.forEach(function(h){var p=n[h],m=Nl(e,h),g,y;"reducer"in p?(g=p.reducer,y=p.prepare):g=p,i[h]=g,c[m]=g,s[h]=y?ve(m,y):ve(m)});function l(){var h=typeof o.extraReducers=="function"?Vi(o.extraReducers):[o.extraReducers],p=h[0],m=p===void 0?{}:p,g=h[1],y=g===void 0?[]:g,v=h[2],O=v===void 0?void 0:v,w=xe(xe({},m),c);return El(t,function(C){for(var x in w)C.addCase(x,w[x]);for(var b=0,S=y;b<S.length;b++){var N=S[b];C.addMatcher(N.matcher,N.reducer)}O&&C.addDefaultCase(O)})}var f;return{name:e,reducer:function(h,p){return f||(f=l()),f(h,p)},actions:s,caseReducers:i,getInitialState:function(){return f||(f=l()),f.getInitialState()}}}var Al="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Rl=function(o){o===void 0&&(o=21);for(var e="",t=o;t--;)e+=Al[Math.random()*64|0];return e},Pl=["name","message","stack","code"],Qo=function(){function o(e,t){this.payload=e,this.meta=t}return o}(),Hi=function(){function o(e,t){this.payload=e,this.meta=t}return o}(),Il=function(o){if(typeof o=="object"&&o!==null){for(var e={},t=0,n=Pl;t<n.length;t++){var a=n[t];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},Om=function(){function o(e,t,n){var a=ve(e+"/fulfilled",function(h,p,m,g){return{payload:h,meta:Jo(xe({},g||{}),{arg:m,requestId:p,requestStatus:"fulfilled"})}}),i=ve(e+"/pending",function(h,p,m){return{payload:void 0,meta:Jo(xe({},m||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),c=ve(e+"/rejected",function(h,p,m,g,y){return{payload:g,error:(n&&n.serializeError||Il)(h||"Rejected"),meta:Jo(xe({},y||{}),{arg:m,requestId:p,rejectedWithValue:!!g,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),s=!1,l=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(p,m,g){var y=n?.idGenerator?n.idGenerator(h):Rl(),v=new l,O,w=!1;function C(b){O=b,v.abort()}var x=function(){return gl(this,null,function(){var b,S,N,I,U,_,E;return dl(this,function(A){switch(A.label){case 0:return A.trys.push([0,4,,5]),I=(b=n?.condition)==null?void 0:b.call(n,h,{getState:m,extra:g}),$l(I)?[4,I]:[3,2];case 1:I=A.sent(),A.label=2;case 2:if(I===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,U=new Promise(function(R,T){return v.signal.addEventListener("abort",function(){return T({name:"AbortError",message:O||"Aborted"})})}),p(i(y,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:y,arg:h},{getState:m,extra:g}))),[4,Promise.race([U,Promise.resolve(t(h,{dispatch:p,getState:m,extra:g,requestId:y,signal:v.signal,abort:C,rejectWithValue:function(R,T){return new Qo(R,T)},fulfillWithValue:function(R,T){return new Hi(R,T)}})).then(function(R){if(R instanceof Qo)throw R;return R instanceof Hi?a(R.payload,y,h,R.meta):a(R,y,h)})])];case 3:return N=A.sent(),[3,5];case 4:return _=A.sent(),N=_ instanceof Qo?c(null,y,h,_.payload,_.meta):c(_,y,h),[3,5];case 5:return E=n&&!n.dispatchConditionRejection&&c.match(N)&&N.meta.condition,E||p(N),[2,N]}})})}();return Object.assign(x,{abort:C,requestId:y,arg:h,unwrap:function(){return x.then(_l)}})}}return Object.assign(f,{pending:i,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function _l(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function $l(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var qi="listener",Yi="completed",Ji="cancelled",wm="task-"+Ji,Cm="task-"+Yi,Em=qi+"-"+Ji,Nm=qi+"-"+Yi;var tn="listenerMiddleware";var Am=ve(tn+"/add"),Rm=ve(tn+"/removeAll"),Pm=ve(tn+"/remove");var ji,Im=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(ji||(ji=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},kl=function(o){return function(e){setTimeout(e,o)}},_m=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:kl(10);$i();window.ftReduxStores||(window.ftReduxStores={});var rn=class o{static get(e){var t;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Te(i))return i;if(a==null)return;let c=Gi({...a,reducers:(t=a.reducers)!==null&&t!==void 0?t:{}}),s=Zi({reducer:(l,f)=>f.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...f.overwrites}:c.reducer(l,f)});return window.ftReduxStores[a.name]=new o(c,s)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Et,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,s=n[c];return s?(...l)=>{let f=s(...l);return this.reduxStore.dispatch(f),f}:l=>{this.setState({[c]:l})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Ll(){var o;for(let e of Object.values((o=window.ftReduxStores)!==null&&o!==void 0?o:{}))Te(e)&&e.clear()}var cn={};P(cn,{scrollHelper:()=>Ml});var nn,yr=new Map,an=class{lock(e,t){if(t){let n=yr.get(t);if(n==null||n===e)return yr.set(t,e),t}}release(e,t){t&&yr.get(t)===e&&yr.delete(t)}findFirstScrollableParent(e){let t,n=a=>{var i;a.stopPropagation();let c,s;for(let l of a.composedPath()){let f=l,h=this.elementCanScroll(f);if(h&&f.clientHeight&&f.clientHeight<f.scrollHeight){c=f;break}else h&&s==null&&(s=f)}t=(i=c??s)!==null&&i!==void 0?i:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let n=0;for(;t&&t.offsetParent!==e.offsetParent;)n+=t.offsetTop,t=t.offsetParent;return n+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,c=a,s=Gr(0,(c-n.scrollTop)/(c-i),1),l=this.computeTopOffsetRatio(t?.position,s)*(i-c)+c;n.scrollTo({behavior:t?.behavior,top:l})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(nn=window.FluidTopicsScrollHelper)!==null&&nn!==void 0?nn:new an;var Ml=window.FluidTopicsScrollHelper;var sn={};P(sn,{shadowQuerySelector:()=>Tl,shadowQuerySelectorAll:()=>Wl});function Tl(o,e,...t){var n;let a=o.querySelector(e);for(let i of t)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Wl(o,e,...t){let n=[...o.querySelectorAll(e)];for(let a of t)n=n.flatMap(i=>{var c,s;return[...(s=(c=i.shadowRoot)===null||c===void 0?void 0:c.querySelectorAll(a))!==null&&s!==void 0?s:[]]});return n}var ln={};P(ln,{serializeRequest:()=>Dl});function Ul(o){return`"${o}"`}function Dl(o,e){var t,n,a,i;let c=new URLSearchParams({"content-lang":(t=e.contentLocale)!==null&&t!==void 0?t:"all"});if(((n=e.query)===null||n===void 0?void 0:n.length)>0&&c.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&c.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&c.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let l=e.periodFilter.period,f=l?`_${l.from}_${l.to}`:"";c.append("period",e.periodFilter.periodType.toLowerCase()+f)}if(((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&c.append("sort","last_update"),((i=e.filters)===null||i===void 0?void 0:i.length)>0){let l=e.filters.map(f=>{let h=f.values.map(p=>p.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(p=>encodeURIComponent(Ul(p))).join("_");return`${f.key}~${h}`}).join("*");c.append("filters",l)}return new URL(`${o.replace(/\/+$/,"")}/search?${c.toString()}`).href}var dn={};P(dn,{toFtFormComponent:()=>Fl});var br=Symbol("elementInternals");function Fl(o,e){class t extends o{static get formAssociated(){return!0}get form(){return this[br].form}constructor(...a){super(a),this[br]=this.attachInternals(),this[br].role=e}setFormValue(a){this[br].setFormValue(a)}}return t}var un={};P(un,{DateFormatter:()=>fn});var fn=class{static format(e,t,n,a){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(n,a)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var pn,hn,mn,gn,Bl=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((mn=(hn=(pn=window.safari)===null||pn===void 0?void 0:pn.pushNotification)===null||hn===void 0?void 0:hn.toString())!==null&&mn!==void 0?mn:"")==="[object SafariRemoteNotification]",zl="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(gn=window.ftGlobals)!==null&&gn!==void 0?gn:{lit:Lr,litDecorators:Tr,litRepeat:Wr,litClassMap:Ur,litStyleMap:Dr,litUnsafeHTML:Fr,wcUtils:{...jr,...zr,...Zr,...un,...Vr,...Xr,...oo,...co,...xo,...to,...wo,...So,...yi,...qr,...Ao,...Ro,...xi,...Io,...on,...vo,...cn,...sn,...ln,...dn,isSafari:Bl,isTouchScreen:zl,setVariable:er}};var Hl={fontFamily:r.external(ro.titleFont,"Design system")},Xi=M`
49
+ `;var xi={};var Io={};P(Io,{ParametrizedLabelResolver:()=>Po});var Po=class o{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var n,a;e=this.resolvePluralKey(e,t);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return o.replaceParameters(i,...t)}static replaceParameters(e,...t){return t.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,c)=>o.formatValue(n,c))),e}resolvePluralKey(e,t){for(let n of t)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,t){return e instanceof Date?o.formatDate(e,t):e??""}static formatDate(e,t){let n=a=>t?.includes("date")?e.toLocaleDateString(a):t?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var on={};P(on,{FtCommandQueue:()=>Et,FtLitElementRedux:()=>me,FtReduxStore:()=>rn,clearAllStores:()=>Ll,isFtReduxStore:()=>Te,redux:()=>lr,reduxEventListener:()=>Js,reduxReactive:()=>Ys});var Ys=()=>(o,e)=>{var t;let n=o.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(t=n.reduxReactiveProperties)===null||t===void 0||t.add(e)},lr=o=>{let e=o??{};return(t,n)=>{var a;let i={hasChanged:mt,attribute:!1,...e};D(i)(t,n);let c=t.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:s=>s[n],store:e.store})}},Js=o=>(e,t)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(t,o)};var Et=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(n=>n.type===e);return t&&(this.queue=this.queue.filter(n=>n!==t)),t}};function Te(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var vi,Si,Oi,dr=Symbol("internalReduxEventsUnsubscribers"),he=Symbol("internalStoresUnsubscribers"),We=Symbol("internalStores"),me=class extends V{constructor(){super(...arguments),this[vi]=new Map,this[Si]=new Map,this[Oi]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[We].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[We].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[We].get(e)}addStore(e,t){var n;t=(n=t??(Te(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[We].delete(t)}setupStore(e,t){this[We].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[We].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let n=this.constructor.getPropertyOptions(t);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:t)){let a=this.getStore(e.store);a&&(e.store?this[he].has(e.store):this[he].size>0)&&(this[t]=e.selector(a.getState(),this))}})}subscribeToStore(e,t){var n;this[he].set(e,t.subscribe(()=>this.updateFromStores())),Te(t)&&t.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||t.name===a.store)){let c=s=>this[i](s);t.eventBus.addEventListener(a.eventName,c),this[dr].push(()=>t.eventBus.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[he].forEach((e,t)=>this.unsubscribeFromStore(t)),this[dr].forEach(e=>e()),this[dr]=[]}unsubscribeFromStore(e){this[he].has(e)&&this[he].get(e)(),this[he].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};vi=he,Si=We,Oi=dr;me.reduxProperties=new Map;me.reduxReactiveProperties=new Set;me.reduxEventListeners=new Map;function j(o){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+o+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ie(o){return!!o&&!!o[$]}function G(o){var e;return!!o&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===al}(o)||Array.isArray(o)||!!o[Pi]||!!(!((e=o.constructor)===null||e===void 0)&&e[Pi])||Do(o)||Fo(o))}function Ue(o,e,t){t===void 0&&(t=!1),qe(o)===0?(t?Object.keys:Ge)(o).forEach(function(n){t&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function qe(o){var e=o[$];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:Do(o)?2:Fo(o)?3:0}function Ve(o,e){return qe(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function Xs(o,e){return qe(o)===2?o.get(e):o[e]}function Ii(o,e,t){var n=qe(o);n===2?o.set(e,t):n===3?o.add(t):o[e]=t}function _i(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function Do(o){return ol&&o instanceof Map}function Fo(o){return nl&&o instanceof Set}function ge(o){return o.o||o.t}function Bo(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Li(o);delete e[$];for(var t=Ge(e),n=0;n<t.length;n++){var a=t[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function zo(o,e){return e===void 0&&(e=!1),Ho(o)||ie(o)||!G(o)||(qe(o)>1&&(o.set=o.add=o.clear=o.delete=Qs),Object.freeze(o),e&&Ue(o,function(t,n){return zo(n,!0)},!0)),o}function Qs(){j(2)}function Ho(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function X(o){var e=Uo[o];return e||j(18,o),e}function el(o,e){Uo[o]||(Uo[o]=e)}function Mo(){return At}function _o(o,e){e&&(X("Patches"),o.u=[],o.s=[],o.v=e)}function fr(o){To(o),o.p.forEach(tl),o.p=null}function To(o){o===At&&(At=o.l)}function wi(o){return At={p:[],l:At,h:o,m:!0,_:0}}function tl(o){var e=o[$];e.i===0||e.i===1?e.j():e.g=!0}function $o(o,e){e._=e.p.length;var t=e.p[0],n=o!==void 0&&o!==t;return e.h.O||X("ES5").S(e,o,n),n?(t[$].P&&(fr(e),j(4)),G(o)&&(o=ur(e,o),e.l||pr(e,o)),e.u&&X("Patches").M(t[$].t,o,e.u,e.s)):o=ur(e,t,[]),fr(e),e.u&&e.v(e.u,e.s),o!==ki?o:void 0}function ur(o,e,t){if(Ho(e))return e;var n=e[$];if(!n)return Ue(e,function(s,l){return Ci(o,n,e,s,l,t)},!0),e;if(n.A!==o)return e;if(!n.P)return pr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Bo(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Ue(i,function(s,l){return Ci(o,n,a,s,l,t,c)}),pr(o,a,!1),t&&o.u&&X("Patches").N(n,t,o.u,o.s)}return n.o}function Ci(o,e,t,n,a,i,c){if(ie(a)){var s=ur(o,a,i&&e&&e.i!==3&&!Ve(e.R,n)?i.concat(n):void 0);if(Ii(t,n,s),!ie(s))return;o.m=!1}else c&&t.add(a);if(G(a)&&!Ho(a)){if(!o.h.D&&o._<1)return;ur(o,a),e&&e.A.l||pr(o,a)}}function pr(o,e,t){t===void 0&&(t=!1),!o.l&&o.h.D&&o.m&&zo(e,t)}function ko(o,e){var t=o[$];return(t?ge(t):o)[e]}function Ei(o,e){if(e in o)for(var t=Object.getPrototypeOf(o);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function ye(o){o.P||(o.P=!0,o.l&&ye(o.l))}function Lo(o){o.o||(o.o=Bo(o.t))}function Wo(o,e,t){var n=Do(e)?X("MapSet").F(e,t):Fo(e)?X("MapSet").T(e,t):o.O?function(a,i){var c=Array.isArray(a),s={i:c?1:0,A:i?i.A:Mo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},l=s,f=Rt;c&&(l=[s],f=Nt);var h=Proxy.revocable(l,f),p=h.revoke,m=h.proxy;return s.k=m,s.j=p,m}(e,t):X("ES5").J(e,t);return(t?t.A:Mo()).p.push(n),n}function rl(o){return ie(o)||j(22,o),function e(t){if(!G(t))return t;var n,a=t[$],i=qe(t);if(a){if(!a.P&&(a.i<4||!X("ES5").K(a)))return a.t;a.I=!0,n=Ni(t,i),a.I=!1}else n=Ni(t,i);return Ue(n,function(c,s){a&&Xs(a.t,c)===s||Ii(n,c,e(s))}),i===3?new Set(n):n}(o)}function Ni(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return Bo(o)}function $i(){function o(c,s){var l=i[c];return l?l.enumerable=s:i[c]=l={configurable:!0,enumerable:s,get:function(){var f=this[$];return Rt.get(f,c)},set:function(f){var h=this[$];Rt.set(h,c,f)}},l}function e(c){for(var s=c.length-1;s>=0;s--){var l=c[s][$];if(!l.P)switch(l.i){case 5:n(l)&&ye(l);break;case 4:t(l)&&ye(l)}}}function t(c){for(var s=c.t,l=c.k,f=Ge(l),h=f.length-1;h>=0;h--){var p=f[h];if(p!==$){var m=s[p];if(m===void 0&&!Ve(s,p))return!0;var g=l[p],y=g&&g[$];if(y?y.t!==m:!_i(g,m))return!0}}var v=!!s[$];return f.length!==Ge(s).length+(v?0:1)}function n(c){var s=c.k;if(s.length!==c.t.length)return!0;var l=Object.getOwnPropertyDescriptor(s,s.length-1);if(l&&!l.get)return!0;for(var f=0;f<s.length;f++)if(!s.hasOwnProperty(f))return!0;return!1}function a(c){c.g&&j(3,JSON.stringify(ge(c)))}var i={};el("ES5",{J:function(c,s){var l=Array.isArray(c),f=function(p,m){if(p){for(var g=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(g,""+y,o(y,!0));return g}var v=Li(m);delete v[$];for(var O=Ge(v),w=0;w<O.length;w++){var C=O[w];v[C]=o(C,p||!!v[C].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(l,c),h={i:l?5:4,A:s?s.A:Mo(),P:!1,I:!1,R:{},l:s,t:c,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,$,{value:h,writable:!0}),f},S:function(c,s,l){l?ie(s)&&s[$].A===c&&e(c.p):(c.u&&function f(h){if(h&&typeof h=="object"){var p=h[$];if(p){var m=p.t,g=p.k,y=p.R,v=p.i;if(v===4)Ue(g,function(b){b!==$&&(m[b]!==void 0||Ve(m,b)?y[b]||f(g[b]):(y[b]=!0,ye(p)))}),Ue(m,function(b){g[b]!==void 0||Ve(g,b)||(y[b]=!1,ye(p))});else if(v===5){if(n(p)&&(ye(p),y.length=!0),g.length<m.length)for(var O=g.length;O<m.length;O++)y[O]=!1;else for(var w=m.length;w<g.length;w++)y[w]=!0;for(var C=Math.min(g.length,m.length),x=0;x<C;x++)g.hasOwnProperty(x)||(y[x]=!0),y[x]===void 0&&f(g[x])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?t(c):n(c)}})}var Ai,At,jo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ol=typeof Map<"u",nl=typeof Set<"u",Ri=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ki=jo?Symbol.for("immer-nothing"):((Ai={})["immer-nothing"]=!0,Ai),Pi=jo?Symbol.for("immer-draftable"):"__$immer_draftable",$=jo?Symbol.for("immer-state"):"__$immer_state";var al=""+Object.prototype.constructor,Ge=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Li=Object.getOwnPropertyDescriptors||function(o){var e={};return Ge(o).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(o,t)}),e},Uo={},Rt={get:function(o,e){if(e===$)return o;var t=ge(o);if(!Ve(t,e))return function(a,i,c){var s,l=Ei(i,c);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(a.k):void 0}(o,t,e);var n=t[e];return o.I||!G(n)?n:n===ko(o.t,e)?(Lo(o),o.o[e]=Wo(o.A.h,n,o)):n},has:function(o,e){return e in ge(o)},ownKeys:function(o){return Reflect.ownKeys(ge(o))},set:function(o,e,t){var n=Ei(ge(o),e);if(n?.set)return n.set.call(o.k,t),!0;if(!o.P){var a=ko(ge(o),e),i=a?.[$];if(i&&i.t===t)return o.o[e]=t,o.R[e]=!1,!0;if(_i(t,a)&&(t!==void 0||Ve(o.t,e)))return!0;Lo(o),ye(o)}return o.o[e]===t&&(t!==void 0||e in o.o)||Number.isNaN(t)&&Number.isNaN(o.o[e])||(o.o[e]=t,o.R[e]=!0),!0},deleteProperty:function(o,e){return ko(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,Lo(o),ye(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var t=ge(o),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){j(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){j(12)}},Nt={};Ue(Rt,function(o,e){Nt[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Nt.deleteProperty=function(o,e){return Nt.set.call(this,o,e,void 0)},Nt.set=function(o,e,t){return Rt.set.call(this,o[0],e,t,o[0])};var il=function(){function o(t){var n=this;this.O=Ri,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var s=i;i=a;var l=n;return function(v){var O=this;v===void 0&&(v=s);for(var w=arguments.length,C=Array(w>1?w-1:0),x=1;x<w;x++)C[x-1]=arguments[x];return l.produce(v,function(b){var S;return(S=i).call.apply(S,[O,b].concat(C))})}}var f;if(typeof i!="function"&&j(6),c!==void 0&&typeof c!="function"&&j(7),G(a)){var h=wi(n),p=Wo(n,a,void 0),m=!0;try{f=i(p),m=!1}finally{m?fr(h):To(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return _o(h,c),$o(v,h)},function(v){throw fr(h),v}):(_o(h,c),$o(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===ki&&(f=void 0),n.D&&zo(f,!0),c){var g=[],y=[];X("Patches").M(a,f,g,y),c(g,y)}return f}j(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return n.produceWithPatches(f,function(g){return a.apply(void 0,[g].concat(p))})};var c,s,l=n.produce(a,i,function(f,h){c=f,s=h});return typeof Promise<"u"&&l instanceof Promise?l.then(function(f){return[f,c,s]}):[l,c,s]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=o.prototype;return e.createDraft=function(t){G(t)||j(8),ie(t)&&(t=rl(t));var n=wi(this),a=Wo(this,t,void 0);return a[$].C=!0,To(n),a},e.finishDraft=function(t,n){var a=t&&t[$],i=a.A;return _o(i,n),$o(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ri&&j(20),this.O=t},e.applyPatches=function(t,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}a>-1&&(n=n.slice(a+1));var c=X("Patches").$;return ie(t)?c(t,n):this.produce(t,function(s){return c(s,n)})},o}(),H=new il,cl=H.produce,qh=H.produceWithPatches.bind(H),Yh=H.setAutoFreeze.bind(H),Jh=H.setUseProxies.bind(H),Xh=H.applyPatches.bind(H),Qh=H.createDraft.bind(H),em=H.finishDraft.bind(H),hr=cl;function be(o){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(o)}function Ko(o,e){if(be(o)!=="object"||o===null)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e||"default");if(be(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Zo(o){var e=Ko(o,"string");return be(e)==="symbol"?e:String(e)}function Vo(o,e,t){return e=Zo(e),e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function Mi(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,n)}return t}function mr(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Mi(Object(t),!0).forEach(function(n){Vo(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Mi(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function W(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Ti=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Go=function(){return Math.random().toString(36).substring(7).split("").join(".")},gr={INIT:"@@redux/INIT"+Go(),REPLACE:"@@redux/REPLACE"+Go(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Go()}};function sl(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function qo(o,e,t){var n;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(W(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(W(1));return t(qo)(o,e)}if(typeof o!="function")throw new Error(W(2));var a=o,i=e,c=[],s=c,l=!1;function f(){s===c&&(s=c.slice())}function h(){if(l)throw new Error(W(3));return i}function p(v){if(typeof v!="function")throw new Error(W(4));if(l)throw new Error(W(5));var O=!0;return f(),s.push(v),function(){if(O){if(l)throw new Error(W(6));O=!1,f();var C=s.indexOf(v);s.splice(C,1),c=null}}}function m(v){if(!sl(v))throw new Error(W(7));if(typeof v.type>"u")throw new Error(W(8));if(l)throw new Error(W(9));try{l=!0,i=a(i,v)}finally{l=!1}for(var O=c=s,w=0;w<O.length;w++){var C=O[w];C()}return v}function g(v){if(typeof v!="function")throw new Error(W(10));a=v,m({type:gr.REPLACE})}function y(){var v,O=p;return v={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(W(11));function x(){C.next&&C.next(h())}x();var b=O(x);return{unsubscribe:b}}},v[Ti]=function(){return this},v}return m({type:gr.INIT}),n={dispatch:m,subscribe:p,getState:h,replaceReducer:g},n[Ti]=y,n}function ll(o){Object.keys(o).forEach(function(e){var t=o[e],n=t(void 0,{type:gr.INIT});if(typeof n>"u")throw new Error(W(12));if(typeof t(void 0,{type:gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(W(13))})}function Wi(o){for(var e=Object.keys(o),t={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(t[a]=o[a])}var i=Object.keys(t),c,s;try{ll(t)}catch(l){s=l}return function(f,h){if(f===void 0&&(f={}),s)throw s;if(0)var p;for(var m=!1,g={},y=0;y<i.length;y++){var v=i[y],O=t[v],w=f[v],C=O(w,h);if(typeof C>"u"){var x=h&&h.type;throw new Error(W(14))}g[v]=C,m=m||C!==w}return m=m||i.length!==Object.keys(f).length,m?g:f}}function Ye(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ui(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(W(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=e.map(function(l){return l(c)});return i=Ye.apply(void 0,s)(a.dispatch),mr(mr({},a),{},{dispatch:i})}}}function Di(o){var e=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(s){return typeof s=="function"?s(a,i,o):c(s)}}};return e}var Fi=Di();Fi.withExtraArgument=Di;var Yo=Fi;var Ki=function(){var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},o(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");o(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dl=function(o,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(f){return function(h){return l([f,h])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,a=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){t.label=f[1];break}if(f[0]===6&&t.label<i[1]){t.label=i[1],i=f;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(f);break}i[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(o,t)}catch(h){f=[6,h],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Je=function(o,e){for(var t=0,n=e.length,a=o.length;t<n;t++,a++)o[a]=e[t];return o},fl=Object.defineProperty,ul=Object.defineProperties,pl=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable,zi=function(o,e,t){return e in o?fl(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t},xe=function(o,e){for(var t in e||(e={}))hl.call(e,t)&&zi(o,t,e[t]);if(Bi)for(var n=0,a=Bi(e);n<a.length;n++){var t=a[n];ml.call(e,t)&&zi(o,t,e[t])}return o},Jo=function(o,e){return ul(o,pl(e))},gl=function(o,e,t){return new Promise(function(n,a){var i=function(l){try{s(t.next(l))}catch(f){a(f)}},c=function(l){try{s(t.throw(l))}catch(f){a(f)}},s=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(i,c)};s((t=t.apply(o,e)).next())})};var yl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ye:Ye.apply(null,arguments)},bm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function bl(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var xl=function(o){Ki(e,o);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=o.apply(this,t)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array),vl=function(o){Ki(e,o);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=o.apply(this,t)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array);function en(o){return G(o)?hr(o,function(){}):o}function Sl(o){return typeof o=="boolean"}function Ol(){return function(e){return wl(e)}}function wl(o){o===void 0&&(o={});var e=o.thunk,t=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,i=o.serializableCheck,c=i===void 0?!0:i,s=new xl;if(t&&(Sl(t)?s.push(Yo):s.push(Yo.withExtraArgument(t.extraArgument))),0){if(a)var l;if(c)var f}return s}var Xo=!0;function Zi(o){var e=Ol(),t=o||{},n=t.reducer,a=n===void 0?void 0:n,i=t.middleware,c=i===void 0?e():i,s=t.devTools,l=s===void 0?!0:s,f=t.preloadedState,h=f===void 0?void 0:f,p=t.enhancers,m=p===void 0?void 0:p,g;if(typeof a=="function")g=a;else if(bl(a))g=Wi(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=c;if(typeof y=="function"&&(y=y(e),!Xo&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xo&&y.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Ui.apply(void 0,y),O=Ye;l&&(O=yl(xe({trace:!Xo},typeof l=="object"&&l)));var w=new vl(v),C=w;Array.isArray(m)?C=Je([v],m):typeof m=="function"&&(C=m(w));var x=O.apply(void 0,C);return qo(g,h,x)}function ve(o,e){function t(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return xe(xe({type:o,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:o,payload:n[0]}}return t.toString=function(){return""+o},t.type=o,t.match=function(n){return n.type===o},t}function Vi(o){var e={},t=[],n,a={addCase:function(i,c){var s=typeof i=="string"?i:i.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=c,a},addMatcher:function(i,c){return t.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return o(a),[e,t,n]}function Cl(o){return typeof o=="function"}function El(o,e,t,n){t===void 0&&(t=[]);var a=typeof e=="function"?Vi(e):[e,t,n],i=a[0],c=a[1],s=a[2],l;if(Cl(o))l=function(){return en(o())};else{var f=en(o);l=function(){return f}}function h(p,m){p===void 0&&(p=l());var g=Je([i[m.type]],c.filter(function(y){var v=y.matcher;return v(m)}).map(function(y){var v=y.reducer;return v}));return g.filter(function(y){return!!y}).length===0&&(g=[s]),g.reduce(function(y,v){if(v)if(ie(y)){var O=y,w=v(O,m);return w===void 0?y:w}else{if(G(y))return hr(y,function(C){return v(C,m)});var w=v(y,m);if(w===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return y},p)}return h.getInitialState=l,h}function Nl(o,e){return o+"/"+e}function Gi(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof o.initialState=="function"?o.initialState:en(o.initialState),n=o.reducers||{},a=Object.keys(n),i={},c={},s={};a.forEach(function(h){var p=n[h],m=Nl(e,h),g,y;"reducer"in p?(g=p.reducer,y=p.prepare):g=p,i[h]=g,c[m]=g,s[h]=y?ve(m,y):ve(m)});function l(){var h=typeof o.extraReducers=="function"?Vi(o.extraReducers):[o.extraReducers],p=h[0],m=p===void 0?{}:p,g=h[1],y=g===void 0?[]:g,v=h[2],O=v===void 0?void 0:v,w=xe(xe({},m),c);return El(t,function(C){for(var x in w)C.addCase(x,w[x]);for(var b=0,S=y;b<S.length;b++){var N=S[b];C.addMatcher(N.matcher,N.reducer)}O&&C.addDefaultCase(O)})}var f;return{name:e,reducer:function(h,p){return f||(f=l()),f(h,p)},actions:s,caseReducers:i,getInitialState:function(){return f||(f=l()),f.getInitialState()}}}var Al="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Rl=function(o){o===void 0&&(o=21);for(var e="",t=o;t--;)e+=Al[Math.random()*64|0];return e},Pl=["name","message","stack","code"],Qo=function(){function o(e,t){this.payload=e,this.meta=t}return o}(),Hi=function(){function o(e,t){this.payload=e,this.meta=t}return o}(),Il=function(o){if(typeof o=="object"&&o!==null){for(var e={},t=0,n=Pl;t<n.length;t++){var a=n[t];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},Om=function(){function o(e,t,n){var a=ve(e+"/fulfilled",function(h,p,m,g){return{payload:h,meta:Jo(xe({},g||{}),{arg:m,requestId:p,requestStatus:"fulfilled"})}}),i=ve(e+"/pending",function(h,p,m){return{payload:void 0,meta:Jo(xe({},m||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),c=ve(e+"/rejected",function(h,p,m,g,y){return{payload:g,error:(n&&n.serializeError||Il)(h||"Rejected"),meta:Jo(xe({},y||{}),{arg:m,requestId:p,rejectedWithValue:!!g,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),s=!1,l=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(p,m,g){var y=n?.idGenerator?n.idGenerator(h):Rl(),v=new l,O,w=!1;function C(b){O=b,v.abort()}var x=function(){return gl(this,null,function(){var b,S,N,I,U,_,E;return dl(this,function(A){switch(A.label){case 0:return A.trys.push([0,4,,5]),I=(b=n?.condition)==null?void 0:b.call(n,h,{getState:m,extra:g}),$l(I)?[4,I]:[3,2];case 1:I=A.sent(),A.label=2;case 2:if(I===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,U=new Promise(function(R,T){return v.signal.addEventListener("abort",function(){return T({name:"AbortError",message:O||"Aborted"})})}),p(i(y,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:y,arg:h},{getState:m,extra:g}))),[4,Promise.race([U,Promise.resolve(t(h,{dispatch:p,getState:m,extra:g,requestId:y,signal:v.signal,abort:C,rejectWithValue:function(R,T){return new Qo(R,T)},fulfillWithValue:function(R,T){return new Hi(R,T)}})).then(function(R){if(R instanceof Qo)throw R;return R instanceof Hi?a(R.payload,y,h,R.meta):a(R,y,h)})])];case 3:return N=A.sent(),[3,5];case 4:return _=A.sent(),N=_ instanceof Qo?c(null,y,h,_.payload,_.meta):c(_,y,h),[3,5];case 5:return E=n&&!n.dispatchConditionRejection&&c.match(N)&&N.meta.condition,E||p(N),[2,N]}})})}();return Object.assign(x,{abort:C,requestId:y,arg:h,unwrap:function(){return x.then(_l)}})}}return Object.assign(f,{pending:i,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function _l(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function $l(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var qi="listener",Yi="completed",Ji="cancelled",wm="task-"+Ji,Cm="task-"+Yi,Em=qi+"-"+Ji,Nm=qi+"-"+Yi;var tn="listenerMiddleware";var Am=ve(tn+"/add"),Rm=ve(tn+"/removeAll"),Pm=ve(tn+"/remove");var ji,Im=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(ji||(ji=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},kl=function(o){return function(e){setTimeout(e,o)}},_m=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:kl(10);$i();window.ftReduxStores||(window.ftReduxStores={});var rn=class o{static get(e){var t;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Te(i))return i;if(a==null)return;let c=Gi({...a,reducers:(t=a.reducers)!==null&&t!==void 0?t:{}}),s=Zi({reducer:(l,f)=>f.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...f.overwrites}:c.reducer(l,f)});return window.ftReduxStores[a.name]=new o(c,s)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Et,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,s=n[c];return s?(...l)=>{let f=s(...l);return this.reduxStore.dispatch(f),f}:l=>{this.setState({[c]:l})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Ll(){var o;for(let e of Object.values((o=window.ftReduxStores)!==null&&o!==void 0?o:{}))Te(e)&&e.clear()}var cn={};P(cn,{scrollHelper:()=>Ml});var nn,yr=new Map,an=class{lock(e,t){if(t){let n=yr.get(t);if(n==null||n===e)return yr.set(t,e),t}}release(e,t){t&&yr.get(t)===e&&yr.delete(t)}findFirstScrollableParent(e){let t,n=a=>{var i;a.stopPropagation();let c,s;for(let l of a.composedPath()){let f=l,h=this.elementCanScroll(f);if(h&&f.clientHeight&&f.clientHeight<f.scrollHeight){c=f;break}else h&&s==null&&(s=f)}t=(i=c??s)!==null&&i!==void 0?i:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let n=0;for(;t&&t.offsetParent!==e.offsetParent;)n+=t.offsetTop,t=t.offsetParent;return n+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,c=a,s=Gr(0,(c-n.scrollTop)/(c-i),1),l=this.computeTopOffsetRatio(t?.position,s)*(i-c)+c;n.scrollTo({behavior:t?.behavior,top:l})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(nn=window.FluidTopicsScrollHelper)!==null&&nn!==void 0?nn:new an;var Ml=window.FluidTopicsScrollHelper;var sn={};P(sn,{shadowQuerySelector:()=>Tl,shadowQuerySelectorAll:()=>Wl});function Tl(o,e,...t){var n;let a=o.querySelector(e);for(let i of t)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Wl(o,e,...t){let n=[...o.querySelectorAll(e)];for(let a of t)n=n.flatMap(i=>{var c,s;return[...(s=(c=i.shadowRoot)===null||c===void 0?void 0:c.querySelectorAll(a))!==null&&s!==void 0?s:[]]});return n}var ln={};P(ln,{serializeRequest:()=>Dl});function Ul(o){return`"${o}"`}function Dl(o,e){var t,n,a,i;let c=new URLSearchParams({"content-lang":(t=e.contentLocale)!==null&&t!==void 0?t:"all"});if(((n=e.query)===null||n===void 0?void 0:n.length)>0&&c.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&c.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&c.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let l=e.periodFilter.period,f=l?`_${l.from}_${l.to}`:"";c.append("period",e.periodFilter.periodType.toLowerCase()+f)}if(((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&c.append("sort","last_update"),((i=e.filters)===null||i===void 0?void 0:i.length)>0){let l=e.filters.map(f=>{let h=f.values.map(p=>p.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(p=>encodeURIComponent(Ul(p))).join("_");return`${f.key}~${h}`}).join("*");c.append("filters",l)}return new URL(`${o.replace(/\/+$/,"")}/search?${c.toString()}`).href}var dn={};P(dn,{toFtFormComponent:()=>Fl});var br=Symbol("elementInternals");function Fl(o,e){class t extends o{static get formAssociated(){return!0}get form(){return this[br].form}constructor(...a){super(a),this[br]=this.attachInternals(),this[br].role=e}setFormValue(a){this[br].setFormValue(a)}}return t}var un={};P(un,{DateFormatter:()=>fn});var fn=class{static format(e,t,n,a){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(n,a)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var pn,hn,mn,gn,Bl=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((mn=(hn=(pn=window.safari)===null||pn===void 0?void 0:pn.pushNotification)===null||hn===void 0?void 0:hn.toString())!==null&&mn!==void 0?mn:"")==="[object SafariRemoteNotification]",zl="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(gn=window.ftGlobals)!==null&&gn!==void 0?gn:{lit:Lr,litDecorators:Tr,litRepeat:Wr,litClassMap:Ur,litStyleMap:Dr,litUnsafeHTML:Fr,wcUtils:{...jr,...zr,...Zr,...un,...Vr,...Xr,...oo,...co,...xo,...to,...wo,...So,...yi,...qr,...Ao,...Ro,...xi,...Io,...on,...vo,...cn,...sn,...ln,...dn,isSafari:Bl,isTouchScreen:zl,setVariable:er}};var Hl={fontFamily:r.external(ro.titleFont,"Design system")},Xi=M`
50
50
  .title {
51
51
  font-family: ${Hl.fontFamily};
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-title",
3
- "version": "1.1.101",
3
+ "version": "1.1.103",
4
4
  "description": "Title of a topic in integrated reader.",
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-topic-context": "1.1.101",
23
- "@fluid-topics/ft-wc-utils": "1.1.101",
22
+ "@fluid-topics/ft-reader-topic-context": "1.1.103",
23
+ "@fluid-topics/ft-wc-utils": "1.1.103",
24
24
  "@fluid-topics/public-api": "1.0.73",
25
25
  "lit": "3.1.0"
26
26
  },
27
- "gitHead": "2d444ace3306098342639937b95d84f13f24cb2d"
27
+ "gitHead": "395d0494bf2cf416b65b0bd3e07875131284cfa9"
28
28
  }