@fluid-topics/ft-search-saved-searches 1.2.14 → 1.2.16

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.
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var Nc={};var ea={};Y(ea,{ParametrizedLabelResolver:()=>so});var so=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Aa={};Y(Aa,{FtCommandQueue:()=>co,FtLitElementRedux:()=>Qe,FtReduxStore:()=>_t,clearAllStores:()=>tf,isFtReduxStore:()=>Zt,redux:()=>Ot,reduxEventListener:()=>bu,reduxReactive:()=>gu});var gu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ot=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:Kr,attribute:!1,...e};A(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},bu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var co=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function Zt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _c,Lc,Pc,Jo=Symbol("internalReduxEventsUnsubscribers"),Ct=Symbol("internalStoresUnsubscribers"),qt=Symbol("internalStores"),Qe=class extends q{constructor(){super(...arguments),this[_c]=new Map,this[Lc]=new Map,this[Pc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[qt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[qt].get(e)}addStore(e,o){var n;o=(n=o??(Zt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[qt].delete(o)}setupStore(e,o){this[qt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[qt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[Ct].has(e.store):this[Ct].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[Ct].set(e,o.subscribe(()=>this.updateFromStores())),Zt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.addEventListener(i.eventName,s),this[Jo].push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Ct].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Jo].forEach(e=>e()),this[Jo]=[]}unsubscribeFromStore(e){this[Ct].has(e)&&this[Ct].get(e)(),this[Ct].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_c=Ct,Lc=qt,Pc=Jo;Qe.reduxProperties=new Map;Qe.reduxReactiveProperties=new Set;Qe.reduxEventListeners=new Map;function $e(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ut(t){return!!t&&!!t[te]}function We(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Au}(t)||Array.isArray(t)||!!t[Fc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Fc])||la(t)||da(t))}function Yt(t,e,o){o===void 0&&(o=!1),gr(t)===0?(o?Object.keys:mr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function gr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:la(t)?2:da(t)?3:0}function yr(t,e){return gr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function xu(t,e){return gr(t)===2?t.get(e):t[e]}function Mc(t,e,o){var n=gr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Uc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function la(t){return Eu&&t instanceof Map}function da(t){return wu&&t instanceof Set}function Et(t){return t.o||t.t}function pa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zc(t);delete e[te];for(var o=mr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ua(t,e){return e===void 0&&(e=!1),fa(t)||ut(t)||!We(t)||(gr(t)>1&&(t.set=t.add=t.clear=t.delete=vu),Object.freeze(t),e&&Yt(t,function(o,n){return ua(n,!0)},!0)),t}function vu(){$e(2)}function fa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function et(t){var e=ca[t];return e||$e(18,t),e}function Su(t,e){ca[t]||(ca[t]=e)}function ia(){return po}function ta(t,e){e&&(et("Patches"),t.u=[],t.s=[],t.v=e)}function Qo(t){aa(t),t.p.forEach(Ou),t.p=null}function aa(t){t===po&&(po=t.l)}function Tc(t){return po={p:[],l:po,h:t,m:!0,_:0}}function Ou(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function ra(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||et("ES5").S(e,t,n),n?(o[te].P&&(Qo(e),$e(4)),We(t)&&(t=en(e,t),e.l||tn(e,t)),e.u&&et("Patches").M(o[te].t,t,e.u,e.s)):t=en(e,o,[]),Qo(e),e.u&&e.v(e.u,e.s),t!==Hc?t:void 0}function en(t,e,o){if(fa(e))return e;var n=e[te];if(!n)return Yt(e,function(l,d){return Ic(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return tn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=pa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Yt(a,function(l,d){return Ic(t,n,i,l,d,o,s)}),tn(t,i,!1),o&&t.u&&et("Patches").N(n,o,t.u,t.s)}return n.o}function Ic(t,e,o,n,i,a,s){if(ut(i)){var l=en(t,i,a&&e&&e.i!==3&&!yr(e.R,n)?a.concat(n):void 0);if(Mc(o,n,l),!ut(l))return;t.m=!1}else s&&o.add(i);if(We(i)&&!fa(i)){if(!t.h.D&&t._<1)return;en(t,i),e&&e.A.l||tn(t,i)}}function tn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ua(e,o)}function oa(t,e){var o=t[te];return(o?Et(o):t)[e]}function $c(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function wt(t){t.P||(t.P=!0,t.l&&wt(t.l))}function na(t){t.o||(t.o=pa(t.t))}function sa(t,e,o){var n=la(e)?et("MapSet").F(e,o):da(e)?et("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ia(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=uo;s&&(d=[l],p=lo);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(e,o):et("ES5").J(e,o);return(o?o.A:ia()).p.push(n),n}function Cu(t){return ut(t)||$e(22,t),function e(o){if(!We(o))return o;var n,i=o[te],a=gr(o);if(i){if(!i.P&&(i.i<4||!et("ES5").K(i)))return i.t;i.I=!0,n=kc(o,a),i.I=!1}else n=kc(o,a);return Yt(n,function(s,l){i&&xu(i.t,s)===l||Mc(n,s,e(l))}),a===3?new Set(n):n}(t)}function kc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return pa(t)}function Wc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[te];return uo.get(p,s)},set:function(p){var f=this[te];uo.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][te];if(!d.P)switch(d.i){case 5:n(d)&&wt(d);break;case 4:o(d)&&wt(d)}}}function o(s){for(var l=s.t,d=s.k,p=mr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==te){var m=l[h];if(m===void 0&&!yr(l,h))return!0;var b=d[h],x=b&&b[te];if(x?x.t!==m:!Uc(b,m))return!0}}var C=!!l[te];return p.length!==mr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&$e(3,JSON.stringify(Et(s)))}var a={};Su("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=zc(m);delete C[te];for(var N=mr(C),L=0;L<N.length;L++){var P=N[L];C[P]=t(P,h||!!C[P].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),f={i:d?5:4,A:l?l.A:ia(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,te,{value:f,writable:!0}),p},S:function(s,l,d){d?ut(l)&&l[te].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[te];if(h){var m=h.t,b=h.k,x=h.R,C=h.i;if(C===4)Yt(b,function(O){O!==te&&(m[O]!==void 0||yr(m,O)?x[O]||p(b[O]):(x[O]=!0,wt(h)))}),Yt(m,function(O){b[O]!==void 0||yr(b,O)||(x[O]=!1,wt(h))});else if(C===5){if(n(h)&&(wt(h),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var L=m.length;L<b.length;L++)x[L]=!0;for(var P=Math.min(b.length,m.length),E=0;E<P;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Dc,po,ha=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Eu=typeof Map<"u",wu=typeof Set<"u",Bc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Hc=ha?Symbol.for("immer-nothing"):((Dc={})["immer-nothing"]=!0,Dc),Fc=ha?Symbol.for("immer-draftable"):"__$immer_draftable",te=ha?Symbol.for("immer-state"):"__$immer_state";var Au=""+Object.prototype.constructor,mr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zc=Object.getOwnPropertyDescriptors||function(t){var e={};return mr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ca={},uo={get:function(t,e){if(e===te)return t;var o=Et(t);if(!yr(o,e))return function(i,a,s){var l,d=$c(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!We(n)?n:n===oa(t.t,e)?(na(t),t.o[e]=sa(t.A.h,n,t)):n},has:function(t,e){return e in Et(t)},ownKeys:function(t){return Reflect.ownKeys(Et(t))},set:function(t,e,o){var n=$c(Et(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=oa(Et(t),e),a=i?.[te];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Uc(o,i)&&(o!==void 0||yr(t.t,e)))return!0;na(t),wt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return oa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,na(t),wt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Et(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){$e(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){$e(12)}},lo={};Yt(uo,function(t,e){lo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),lo.deleteProperty=function(t,e){return lo.set.call(this,t,e,void 0)},lo.set=function(t,e,o){return uo.set.call(this,t[0],e,o,t[0])};var Ru=function(){function t(o){var n=this;this.O=Bc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(C){var N=this;C===void 0&&(C=l);for(var L=arguments.length,P=Array(L>1?L-1:0),E=1;E<L;E++)P[E-1]=arguments[E];return d.produce(C,function(O){var w;return(w=a).call.apply(w,[N,O].concat(P))})}}var p;if(typeof a!="function"&&$e(6),s!==void 0&&typeof s!="function"&&$e(7),We(i)){var f=Tc(n),h=sa(n,i,void 0),m=!0;try{p=a(h),m=!1}finally{m?Qo(f):aa(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return ta(f,s),ra(C,f)},function(C){throw Qo(f),C}):(ta(f,s),ra(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Hc&&(p=void 0),n.D&&ua(p,!0),s){var b=[],x=[];et("Patches").M(i,p,b,x),s(b,x)}return p}$e(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(h))})};var s,l,d=n.produce(i,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){We(o)||$e(8),ut(o)&&(o=Cu(o));var n=Tc(this),i=sa(this,o,void 0);return i[te].C=!0,aa(n),i},e.finishDraft=function(o,n){var i=o&&o[te],a=i.A;return ta(a,n),ra(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Bc&&$e(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=et("Patches").$;return ut(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),_e=new Ru,Nu=_e.produce,Wb=_e.produceWithPatches.bind(_e),Hb=_e.setAutoFreeze.bind(_e),zb=_e.setUseProxies.bind(_e),Vb=_e.applyPatches.bind(_e),Gb=_e.createDraft.bind(_e),jb=_e.finishDraft.bind(_e),rn=Nu;function At(t){"@babel/helpers - typeof";return At=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},At(t)}function ya(t,e){if(At(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(At(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ma(t){var e=ya(t,"string");return At(e)==="symbol"?e:String(e)}function ga(t,e,o){return e=ma(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Vc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function on(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Vc(Object(o),!0).forEach(function(n){ga(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Vc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Gc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ba=function(){return Math.random().toString(36).substring(7).split("").join(".")},nn={INIT:"@@redux/INIT"+ba(),REPLACE:"@@redux/REPLACE"+ba(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ba()}};function _u(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xa(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(xa)(t,e)}if(typeof t!="function")throw new Error(ve(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(ve(3));return a}function h(C){if(typeof C!="function")throw new Error(ve(4));if(d)throw new Error(ve(5));var N=!0;return p(),l.push(C),function(){if(N){if(d)throw new Error(ve(6));N=!1,p();var P=l.indexOf(C);l.splice(P,1),s=null}}}function m(C){if(!_u(C))throw new Error(ve(7));if(typeof C.type>"u")throw new Error(ve(8));if(d)throw new Error(ve(9));try{d=!0,a=i(a,C)}finally{d=!1}for(var N=s=l,L=0;L<N.length;L++){var P=N[L];P()}return C}function b(C){if(typeof C!="function")throw new Error(ve(10));i=C,m({type:nn.REPLACE})}function x(){var C,N=h;return C={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(ve(11));function E(){P.next&&P.next(f())}E();var O=N(E);return{unsubscribe:O}}},C[Gc]=function(){return this},C}return m({type:nn.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:b},n[Gc]=x,n}function Lu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:nn.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:nn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function jc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Lu(o)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},x=0;x<a.length;x++){var C=a[x],N=o[C],L=p[C],P=N(L,f);if(typeof P>"u"){var E=f&&f.type;throw new Error(ve(14))}b[C]=P,m=m||P!==L}return m=m||a.length!==Object.keys(p).length,m?b:p}}function br(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Kc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ve(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=br.apply(void 0,l)(i.dispatch),on(on({},i),{},{dispatch:a})}}}function Zc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var qc=Zc();qc.withExtraArgument=Zc;var va=qc;var el=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pu=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},xr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Tu=Object.defineProperty,Iu=Object.defineProperties,$u=Object.getOwnPropertyDescriptors,Yc=Object.getOwnPropertySymbols,ku=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable,Xc=function(t,e,o){return e in t?Tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Rt=function(t,e){for(var o in e||(e={}))ku.call(e,o)&&Xc(t,o,e[o]);if(Yc)for(var n=0,i=Yc(e);n<i.length;n++){var o=i[n];Du.call(e,o)&&Xc(t,o,e[o])}return t},Sa=function(t,e){return Iu(t,$u(e))},Bu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(p){i(p)}},s=function(d){try{l(o.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?br:br.apply(null,arguments)},dx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Mu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Uu=function(t){el(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array),Wu=function(t){el(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array);function Ea(t){return We(t)?rn(t,function(){}):t}function Hu(t){return typeof t=="boolean"}function zu(){return function(e){return Vu(e)}}function Vu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Uu;if(o&&(Hu(o)?l.push(va):l.push(va.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var Oa=!0;function tl(t){var e=zu(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,f=p===void 0?void 0:p,h=o.enhancers,m=h===void 0?void 0:h,b;if(typeof i=="function")b=i;else if(Mu(i))b=jc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!Oa&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Oa&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Kc.apply(void 0,x),N=br;d&&(N=Fu(Rt({trace:!Oa},typeof d=="object"&&d)));var L=new Wu(C),P=L;Array.isArray(m)?P=xr([C],m):typeof m=="function"&&(P=m(L));var E=N.apply(void 0,P);return xa(b,f,E)}function Nt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Rt(Rt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function rl(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Gu(t){return typeof t=="function"}function ju(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?rl(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(Gu(t))d=function(){return Ea(t())};else{var p=Ea(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=xr([a[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(ut(x)){var N=x,L=C(N,m);return L===void 0?x:L}else{if(We(x))return rn(x,function(P){return C(P,m)});var L=C(x,m);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=d,f}function Ku(t,e){return t+"/"+e}function ol(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ea(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var h=n[f],m=Ku(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,a[f]=b,s[m]=b,l[f]=x?Nt(m,x):Nt(m)});function d(){var f=typeof t.extraReducers=="function"?rl(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,C=f[2],N=C===void 0?void 0:C,L=Rt(Rt({},m),s);return ju(o,function(P){for(var E in L)P.addCase(E,L[E]);for(var O=0,w=x;O<w.length;O++){var T=w[O];P.addMatcher(T.matcher,T.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Zu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Zu[Math.random()*64|0];return e},Yu=["name","message","stack","code"],Ca=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Jc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Xu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Yu;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hx=function(){function t(e,o,n){var i=Nt(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:Sa(Rt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=Nt(e+"/pending",function(f,h,m){return{payload:void 0,meta:Sa(Rt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=Nt(e+"/rejected",function(f,h,m,b,x){return{payload:b,error:(n&&n.serializeError||Xu)(f||"Rejected"),meta:Sa(Rt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,b){var x=n?.idGenerator?n.idGenerator(f):qu(),C=new d,N,L=!1;function P(O){N=O,C.abort()}var E=function(){return Bu(this,null,function(){var O,w,T,U,K,G,$;return Pu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(O=n?.condition)==null?void 0:O.call(n,f,{getState:m,extra:b}),Qu(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,K=new Promise(function(S,I){return C.signal.addEventListener("abort",function(){return I({name:"AbortError",message:N||"Aborted"})})}),h(a(x,f,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:f},{getState:m,extra:b}))),[4,Promise.race([K,Promise.resolve(o(f,{dispatch:h,getState:m,extra:b,requestId:x,signal:C.signal,abort:P,rejectWithValue:function(S,I){return new Ca(S,I)},fulfillWithValue:function(S,I){return new Jc(S,I)}})).then(function(S){if(S instanceof Ca)throw S;return S instanceof Jc?i(S.payload,x,f,S.meta):i(S,x,f)})])];case 3:return T=y.sent(),[3,5];case 4:return G=y.sent(),T=G instanceof Ca?s(null,x,f,G.payload,G.meta):s(G,x,f),[3,5];case 5:return $=n&&!n.dispatchConditionRejection&&s.match(T)&&T.meta.condition,$||h(T),[2,T]}})})}();return Object.assign(E,{abort:P,requestId:x,arg:f,unwrap:function(){return E.then(Ju)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ju(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Qu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var nl="listener",il="completed",al="cancelled",yx="task-"+al,mx="task-"+il,gx=nl+"-"+al,bx=nl+"-"+il;var wa="listenerMiddleware";var xx=Nt(wa+"/add"),vx=Nt(wa+"/removeAll"),Sx=Nt(wa+"/remove");var Qc,Ox=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Qc||(Qc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},ef=function(t){return function(e){setTimeout(e,t)}},Cx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ef(10);Wc();window.ftReduxStores||(window.ftReduxStores={});var _t=class t extends zt{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Zt(a))return a;if(i==null)return;let s=ol({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=tl({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new co,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}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 tf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Zt(e)&&e.clear()}var _a={};Y(_a,{scrollHelper:()=>rf});var Ra,an=new Map,Na=class{lock(e,o){if(o){let n=an.get(o);if(n==null||n===e)return an.set(o,e),o}}release(e,o){o&&an.get(o)===e&&an.delete(o)}findFirstScrollableParent(e){let o,n=i=>{var a;i.stopPropagation();let s,l;for(let d of i.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}o=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){let n=0;for(;o&&o.offsetParent!==e.offsetParent;)n+=o.offsetTop,o=o.offsetParent;return n+o.offsetTop-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=lr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ra=window.FluidTopicsScrollHelper)!==null&&Ra!==void 0?Ra:new Na;var rf=window.FluidTopicsScrollHelper;var La={};Y(La,{shadowQuerySelector:()=>of,shadowQuerySelectorAll:()=>nf});function of(t,e,...o){var n;let i=t.querySelector(e);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function nf(t,e,...o){let n=[...t.querySelectorAll(e)];for(let i of o)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var Pa={};Y(Pa,{SearchPlaceConverter:()=>Sr,SearchPlaceQueryParams:()=>X,isSearchPlaceQueryParams:()=>Pl,serializeRequest:()=>lf});var sf=_d(cl(),1);var ll;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ll||(ll={}));var dl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(dl||(dl={}));var pl;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(pl||(pl={}));var ul;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(ul||(ul={}));var fl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(fl||(fl={}));var hl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(hl||(hl={}));var yl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(yl||(yl={}));var ml;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ml||(ml={}));var gl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(gl||(gl={}));var bl;(function(t){t.ASC="ASC",t.DESC="DESC"})(bl||(bl={}));var xl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(xl||(xl={}));var fo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(fo||(fo={}));var El=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var vl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(vl||(vl={}));var Sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sl||(Sl={}));var Ol;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ol||(Ol={}));var ft;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ft||(ft={}));var wl=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Cl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Cl||(Cl={}));var ho;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ho||(ho={}));var ce;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ce||(ce={}));var Al;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Al||(Al={}));var Rl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Rl||(Rl={}));var af={[ce.PERSONAL_BOOK_SHARE_USER]:[ce.PERSONAL_BOOK_USER],[ce.HTML_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.PDF_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.KHUB_ADMIN]:[ce.CONTENT_PUBLISHER],[ce.ADMIN]:[ce.KHUB_ADMIN,ce.USERS_ADMIN,ce.PORTAL_ADMIN],[ce.DEVELOPER]:[ce.BETA_USER,ce.DEBUG_USER]};function Nl(t,e){return t===e||(af[t]??[]).some(o=>Nl(o,e))}function _l(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Nl(n,e))}function cf(t){return`"${t}"`}function Ll(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function lf(t,e){return new Sr(t).serialize(e)}var X;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(X||(X={}));var df=new Set(Object.values(X));function Pl(t){return df.has(t)}var Sr=class{constructor(e,o={},n=20,i=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=this.toURLSearchParams(e).toString(),i=o==null||o.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=n,a.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,f,h,m,b,x;let C=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&C.append(X.LOCALE,e.contentLocale):C.append(X.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&C.append(X.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&C.append(X.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(X.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&C.append(X.SORT,"last_update");let N=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let O=N.map(w=>{var T,U;let K=((U=(T=w.valueFilter)===null||T===void 0?void 0:T.values)!==null&&U!==void 0?U:[]).map(G=>this.escapeFilters(G)).map(G=>encodeURIComponent(cf(Ll(G)))).join("_");return`${w.key}~${K}`}).join("*");C.append(X.VALUE_FILTERS,O)}let L=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let O=L.map(w=>{var T;return`${w.key}~${(T=w.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");C.append(X.DATE_FILTERS,O)}let P=(f=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let O=P.map(w=>{var T,U;return`${w.key}~${(T=w.rangeFilter)===null||T===void 0?void 0:T.from}_${(U=w.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");C.append(X.RANGE_FILTERS,O)}let E=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let O in E)C.append(O,E[O]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((x=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&C.append(X.PER_PAGE,String(e.paging.perPage)),C}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l,d,p;let f=e.get(X.LOCALE)==="all"?void 0:e.get(X.LOCALE),h=((o=e.get(X.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=e.get(X.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=e.get(X.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=e.get(X.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let N of e.keys())Pl(N)||(C[N]=e.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(X.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:El(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:lr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:C}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(X.FILTERS)&&(d=this.parseValueFilters((o=e.get(X.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(X.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(X.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(X.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(X.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(X.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Ll).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:ft[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(wl(e))return[{key:"ft:lastEdition",dateFilter:{type:ft[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ia={};Y(Ia,{toFtFormComponent:()=>Ta});var ln=Symbol("elementInternals");function Ta(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[ln].form}constructor(...i){super(i),this[ln]=this.attachInternals(),this[ln].role=e}setFormValue(i){this[ln].setFormValue(i)}}return o}var $a={};Y($a,{DateFormatter:()=>Or});var Or=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,i)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var ka,Da,Ba,Fa,yo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ba=(Da=(ka=window.safari)===null||ka===void 0?void 0:ka.pushNotification)===null||Da===void 0?void 0:Da.toString())!==null&&Ba!==void 0?Ba:"")==="[object SafariRemoteNotification]",pf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Fa=window.ftGlobals)!==null&&Fa!==void 0?Fa:{lit:Bn,litDecorators:Mn,litRepeat:Wn,litClassMap:Hn,litStyleMap:zn,litUnsafeHTML:Gn,wcUtils:{...Xn,...jn,...Qn,...$a,...ei,...ri,...Pi,...Yn,...ji,...Li,...qi,...Zi,...Ac,...ti,...Ji,...Qi,...Nc,...ea,...Aa,...Ki,..._a,...La,...Pa,...Ia,isSafari:yo,isTouchScreen:pf,setVariable:v}};var Tl=r.extend("--ft-ripple-color","",k.colorContent),R={color:Tl,backgroundColor:r.extend("--ft-ripple-background-color","",Tl),opacityContentOnSurfacePressed:r.external(k.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(k.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(k.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(k.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Il=r.extend("--ft-ripple-color","",k.colorPrimary),$l={color:Il,backgroundColor:r.extend("--ft-ripple-background-color","",Il)},kl=r.extend("--ft-ripple-color","",k.colorSecondary),Dl={color:kl,backgroundColor:r.extend("--ft-ripple-background-color","",kl)},Bl=D`
50
+ `;var Nc={};var ea={};Y(ea,{ParametrizedLabelResolver:()=>so});var so=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Aa={};Y(Aa,{FtCommandQueue:()=>co,FtLitElementRedux:()=>Qe,FtReduxStore:()=>_t,clearAllStores:()=>tf,isFtReduxStore:()=>Zt,redux:()=>Ot,reduxEventListener:()=>bu,reduxReactive:()=>gu});var gu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ot=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:Kr,attribute:!1,...e};A(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},bu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var co=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function Zt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _c,Lc,Pc,Jo=Symbol("internalReduxEventsUnsubscribers"),Ct=Symbol("internalStoresUnsubscribers"),qt=Symbol("internalStores"),Qe=class extends q{constructor(){super(...arguments),this[_c]=new Map,this[Lc]=new Map,this[Pc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[qt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[qt].get(e)}addStore(e,o){var n;o=(n=o??(Zt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[qt].delete(o)}setupStore(e,o){this[qt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[qt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[Ct].has(e.store):this[Ct].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[Ct].set(e,o.subscribe(()=>this.updateFromStores())),Zt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.addEventListener(i.eventName,s),this[Jo].push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Ct].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Jo].forEach(e=>e()),this[Jo]=[]}unsubscribeFromStore(e){this[Ct].has(e)&&this[Ct].get(e)(),this[Ct].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_c=Ct,Lc=qt,Pc=Jo;Qe.reduxProperties=new Map;Qe.reduxReactiveProperties=new Set;Qe.reduxEventListeners=new Map;function $e(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ut(t){return!!t&&!!t[te]}function We(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Au}(t)||Array.isArray(t)||!!t[Fc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Fc])||la(t)||da(t))}function Yt(t,e,o){o===void 0&&(o=!1),gr(t)===0?(o?Object.keys:mr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function gr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:la(t)?2:da(t)?3:0}function yr(t,e){return gr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function xu(t,e){return gr(t)===2?t.get(e):t[e]}function Mc(t,e,o){var n=gr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Uc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function la(t){return Eu&&t instanceof Map}function da(t){return wu&&t instanceof Set}function Et(t){return t.o||t.t}function pa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zc(t);delete e[te];for(var o=mr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ua(t,e){return e===void 0&&(e=!1),fa(t)||ut(t)||!We(t)||(gr(t)>1&&(t.set=t.add=t.clear=t.delete=vu),Object.freeze(t),e&&Yt(t,function(o,n){return ua(n,!0)},!0)),t}function vu(){$e(2)}function fa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function et(t){var e=ca[t];return e||$e(18,t),e}function Su(t,e){ca[t]||(ca[t]=e)}function ia(){return po}function ta(t,e){e&&(et("Patches"),t.u=[],t.s=[],t.v=e)}function Qo(t){aa(t),t.p.forEach(Ou),t.p=null}function aa(t){t===po&&(po=t.l)}function Tc(t){return po={p:[],l:po,h:t,m:!0,_:0}}function Ou(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function ra(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||et("ES5").S(e,t,n),n?(o[te].P&&(Qo(e),$e(4)),We(t)&&(t=en(e,t),e.l||tn(e,t)),e.u&&et("Patches").M(o[te].t,t,e.u,e.s)):t=en(e,o,[]),Qo(e),e.u&&e.v(e.u,e.s),t!==Hc?t:void 0}function en(t,e,o){if(fa(e))return e;var n=e[te];if(!n)return Yt(e,function(l,d){return Ic(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return tn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=pa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Yt(a,function(l,d){return Ic(t,n,i,l,d,o,s)}),tn(t,i,!1),o&&t.u&&et("Patches").N(n,o,t.u,t.s)}return n.o}function Ic(t,e,o,n,i,a,s){if(ut(i)){var l=en(t,i,a&&e&&e.i!==3&&!yr(e.R,n)?a.concat(n):void 0);if(Mc(o,n,l),!ut(l))return;t.m=!1}else s&&o.add(i);if(We(i)&&!fa(i)){if(!t.h.D&&t._<1)return;en(t,i),e&&e.A.l||tn(t,i)}}function tn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ua(e,o)}function oa(t,e){var o=t[te];return(o?Et(o):t)[e]}function $c(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function wt(t){t.P||(t.P=!0,t.l&&wt(t.l))}function na(t){t.o||(t.o=pa(t.t))}function sa(t,e,o){var n=la(e)?et("MapSet").F(e,o):da(e)?et("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ia(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=uo;s&&(d=[l],p=lo);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(e,o):et("ES5").J(e,o);return(o?o.A:ia()).p.push(n),n}function Cu(t){return ut(t)||$e(22,t),function e(o){if(!We(o))return o;var n,i=o[te],a=gr(o);if(i){if(!i.P&&(i.i<4||!et("ES5").K(i)))return i.t;i.I=!0,n=kc(o,a),i.I=!1}else n=kc(o,a);return Yt(n,function(s,l){i&&xu(i.t,s)===l||Mc(n,s,e(l))}),a===3?new Set(n):n}(t)}function kc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return pa(t)}function Wc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[te];return uo.get(p,s)},set:function(p){var f=this[te];uo.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][te];if(!d.P)switch(d.i){case 5:n(d)&&wt(d);break;case 4:o(d)&&wt(d)}}}function o(s){for(var l=s.t,d=s.k,p=mr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==te){var m=l[h];if(m===void 0&&!yr(l,h))return!0;var b=d[h],x=b&&b[te];if(x?x.t!==m:!Uc(b,m))return!0}}var C=!!l[te];return p.length!==mr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&$e(3,JSON.stringify(Et(s)))}var a={};Su("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=zc(m);delete C[te];for(var N=mr(C),L=0;L<N.length;L++){var P=N[L];C[P]=t(P,h||!!C[P].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),f={i:d?5:4,A:l?l.A:ia(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,te,{value:f,writable:!0}),p},S:function(s,l,d){d?ut(l)&&l[te].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[te];if(h){var m=h.t,b=h.k,x=h.R,C=h.i;if(C===4)Yt(b,function(O){O!==te&&(m[O]!==void 0||yr(m,O)?x[O]||p(b[O]):(x[O]=!0,wt(h)))}),Yt(m,function(O){b[O]!==void 0||yr(b,O)||(x[O]=!1,wt(h))});else if(C===5){if(n(h)&&(wt(h),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var L=m.length;L<b.length;L++)x[L]=!0;for(var P=Math.min(b.length,m.length),E=0;E<P;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Dc,po,ha=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Eu=typeof Map<"u",wu=typeof Set<"u",Bc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Hc=ha?Symbol.for("immer-nothing"):((Dc={})["immer-nothing"]=!0,Dc),Fc=ha?Symbol.for("immer-draftable"):"__$immer_draftable",te=ha?Symbol.for("immer-state"):"__$immer_state";var Au=""+Object.prototype.constructor,mr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zc=Object.getOwnPropertyDescriptors||function(t){var e={};return mr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ca={},uo={get:function(t,e){if(e===te)return t;var o=Et(t);if(!yr(o,e))return function(i,a,s){var l,d=$c(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!We(n)?n:n===oa(t.t,e)?(na(t),t.o[e]=sa(t.A.h,n,t)):n},has:function(t,e){return e in Et(t)},ownKeys:function(t){return Reflect.ownKeys(Et(t))},set:function(t,e,o){var n=$c(Et(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=oa(Et(t),e),a=i?.[te];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Uc(o,i)&&(o!==void 0||yr(t.t,e)))return!0;na(t),wt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return oa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,na(t),wt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Et(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){$e(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){$e(12)}},lo={};Yt(uo,function(t,e){lo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),lo.deleteProperty=function(t,e){return lo.set.call(this,t,e,void 0)},lo.set=function(t,e,o){return uo.set.call(this,t[0],e,o,t[0])};var Ru=function(){function t(o){var n=this;this.O=Bc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(C){var N=this;C===void 0&&(C=l);for(var L=arguments.length,P=Array(L>1?L-1:0),E=1;E<L;E++)P[E-1]=arguments[E];return d.produce(C,function(O){var w;return(w=a).call.apply(w,[N,O].concat(P))})}}var p;if(typeof a!="function"&&$e(6),s!==void 0&&typeof s!="function"&&$e(7),We(i)){var f=Tc(n),h=sa(n,i,void 0),m=!0;try{p=a(h),m=!1}finally{m?Qo(f):aa(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return ta(f,s),ra(C,f)},function(C){throw Qo(f),C}):(ta(f,s),ra(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Hc&&(p=void 0),n.D&&ua(p,!0),s){var b=[],x=[];et("Patches").M(i,p,b,x),s(b,x)}return p}$e(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(h))})};var s,l,d=n.produce(i,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){We(o)||$e(8),ut(o)&&(o=Cu(o));var n=Tc(this),i=sa(this,o,void 0);return i[te].C=!0,aa(n),i},e.finishDraft=function(o,n){var i=o&&o[te],a=i.A;return ta(a,n),ra(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Bc&&$e(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=et("Patches").$;return ut(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),_e=new Ru,Nu=_e.produce,Wb=_e.produceWithPatches.bind(_e),Hb=_e.setAutoFreeze.bind(_e),zb=_e.setUseProxies.bind(_e),Vb=_e.applyPatches.bind(_e),Gb=_e.createDraft.bind(_e),jb=_e.finishDraft.bind(_e),rn=Nu;function At(t){"@babel/helpers - typeof";return At=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},At(t)}function ya(t,e){if(At(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(At(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ma(t){var e=ya(t,"string");return At(e)==="symbol"?e:String(e)}function ga(t,e,o){return e=ma(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Vc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function on(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Vc(Object(o),!0).forEach(function(n){ga(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Vc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Gc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ba=function(){return Math.random().toString(36).substring(7).split("").join(".")},nn={INIT:"@@redux/INIT"+ba(),REPLACE:"@@redux/REPLACE"+ba(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ba()}};function _u(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xa(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(xa)(t,e)}if(typeof t!="function")throw new Error(ve(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(ve(3));return a}function h(C){if(typeof C!="function")throw new Error(ve(4));if(d)throw new Error(ve(5));var N=!0;return p(),l.push(C),function(){if(N){if(d)throw new Error(ve(6));N=!1,p();var P=l.indexOf(C);l.splice(P,1),s=null}}}function m(C){if(!_u(C))throw new Error(ve(7));if(typeof C.type>"u")throw new Error(ve(8));if(d)throw new Error(ve(9));try{d=!0,a=i(a,C)}finally{d=!1}for(var N=s=l,L=0;L<N.length;L++){var P=N[L];P()}return C}function b(C){if(typeof C!="function")throw new Error(ve(10));i=C,m({type:nn.REPLACE})}function x(){var C,N=h;return C={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(ve(11));function E(){P.next&&P.next(f())}E();var O=N(E);return{unsubscribe:O}}},C[Gc]=function(){return this},C}return m({type:nn.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:b},n[Gc]=x,n}function Lu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:nn.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:nn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function jc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Lu(o)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},x=0;x<a.length;x++){var C=a[x],N=o[C],L=p[C],P=N(L,f);if(typeof P>"u"){var E=f&&f.type;throw new Error(ve(14))}b[C]=P,m=m||P!==L}return m=m||a.length!==Object.keys(p).length,m?b:p}}function br(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Kc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ve(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=br.apply(void 0,l)(i.dispatch),on(on({},i),{},{dispatch:a})}}}function Zc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var qc=Zc();qc.withExtraArgument=Zc;var va=qc;var el=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pu=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},xr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Tu=Object.defineProperty,Iu=Object.defineProperties,$u=Object.getOwnPropertyDescriptors,Yc=Object.getOwnPropertySymbols,ku=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable,Xc=function(t,e,o){return e in t?Tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Rt=function(t,e){for(var o in e||(e={}))ku.call(e,o)&&Xc(t,o,e[o]);if(Yc)for(var n=0,i=Yc(e);n<i.length;n++){var o=i[n];Du.call(e,o)&&Xc(t,o,e[o])}return t},Sa=function(t,e){return Iu(t,$u(e))},Bu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(p){i(p)}},s=function(d){try{l(o.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?br:br.apply(null,arguments)},dx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Mu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Uu=function(t){el(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array),Wu=function(t){el(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,xr([void 0],o[0].concat(this)))):new(e.bind.apply(e,xr([void 0],o.concat(this))))},e}(Array);function Ea(t){return We(t)?rn(t,function(){}):t}function Hu(t){return typeof t=="boolean"}function zu(){return function(e){return Vu(e)}}function Vu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Uu;if(o&&(Hu(o)?l.push(va):l.push(va.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var Oa=!0;function tl(t){var e=zu(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,f=p===void 0?void 0:p,h=o.enhancers,m=h===void 0?void 0:h,b;if(typeof i=="function")b=i;else if(Mu(i))b=jc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!Oa&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Oa&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Kc.apply(void 0,x),N=br;d&&(N=Fu(Rt({trace:!Oa},typeof d=="object"&&d)));var L=new Wu(C),P=L;Array.isArray(m)?P=xr([C],m):typeof m=="function"&&(P=m(L));var E=N.apply(void 0,P);return xa(b,f,E)}function Nt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Rt(Rt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function rl(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Gu(t){return typeof t=="function"}function ju(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?rl(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(Gu(t))d=function(){return Ea(t())};else{var p=Ea(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=xr([a[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(ut(x)){var N=x,L=C(N,m);return L===void 0?x:L}else{if(We(x))return rn(x,function(P){return C(P,m)});var L=C(x,m);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=d,f}function Ku(t,e){return t+"/"+e}function ol(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ea(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var h=n[f],m=Ku(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,a[f]=b,s[m]=b,l[f]=x?Nt(m,x):Nt(m)});function d(){var f=typeof t.extraReducers=="function"?rl(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,C=f[2],N=C===void 0?void 0:C,L=Rt(Rt({},m),s);return ju(o,function(P){for(var E in L)P.addCase(E,L[E]);for(var O=0,w=x;O<w.length;O++){var T=w[O];P.addMatcher(T.matcher,T.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Zu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Zu[Math.random()*64|0];return e},Yu=["name","message","stack","code"],Ca=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Jc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Xu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Yu;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hx=function(){function t(e,o,n){var i=Nt(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:Sa(Rt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=Nt(e+"/pending",function(f,h,m){return{payload:void 0,meta:Sa(Rt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=Nt(e+"/rejected",function(f,h,m,b,x){return{payload:b,error:(n&&n.serializeError||Xu)(f||"Rejected"),meta:Sa(Rt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,b){var x=n?.idGenerator?n.idGenerator(f):qu(),C=new d,N,L=!1;function P(O){N=O,C.abort()}var E=function(){return Bu(this,null,function(){var O,w,T,U,K,G,$;return Pu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(O=n?.condition)==null?void 0:O.call(n,f,{getState:m,extra:b}),Qu(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,K=new Promise(function(S,I){return C.signal.addEventListener("abort",function(){return I({name:"AbortError",message:N||"Aborted"})})}),h(a(x,f,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:f},{getState:m,extra:b}))),[4,Promise.race([K,Promise.resolve(o(f,{dispatch:h,getState:m,extra:b,requestId:x,signal:C.signal,abort:P,rejectWithValue:function(S,I){return new Ca(S,I)},fulfillWithValue:function(S,I){return new Jc(S,I)}})).then(function(S){if(S instanceof Ca)throw S;return S instanceof Jc?i(S.payload,x,f,S.meta):i(S,x,f)})])];case 3:return T=y.sent(),[3,5];case 4:return G=y.sent(),T=G instanceof Ca?s(null,x,f,G.payload,G.meta):s(G,x,f),[3,5];case 5:return $=n&&!n.dispatchConditionRejection&&s.match(T)&&T.meta.condition,$||h(T),[2,T]}})})}();return Object.assign(E,{abort:P,requestId:x,arg:f,unwrap:function(){return E.then(Ju)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ju(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Qu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var nl="listener",il="completed",al="cancelled",yx="task-"+al,mx="task-"+il,gx=nl+"-"+al,bx=nl+"-"+il;var wa="listenerMiddleware";var xx=Nt(wa+"/add"),vx=Nt(wa+"/removeAll"),Sx=Nt(wa+"/remove");var Qc,Ox=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Qc||(Qc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},ef=function(t){return function(e){setTimeout(e,t)}},Cx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ef(10);Wc();window.ftReduxStores||(window.ftReduxStores={});var _t=class t extends zt{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Zt(a))return a;if(i==null)return;let s=ol({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=tl({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new co,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}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 tf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Zt(e)&&e.clear()}var _a={};Y(_a,{scrollHelper:()=>rf});var Ra,an=new Map,Na=class{lock(e,o){if(o){let n=an.get(o);if(n==null||n===e)return an.set(o,e),o}}release(e,o){o&&an.get(o)===e&&an.delete(o)}findFirstScrollableParent(e){let o,n=i=>{var a;i.stopPropagation();let s,l;for(let d of i.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}o=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=lr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ra=window.FluidTopicsScrollHelper)!==null&&Ra!==void 0?Ra:new Na;var rf=window.FluidTopicsScrollHelper;var La={};Y(La,{shadowQuerySelector:()=>of,shadowQuerySelectorAll:()=>nf});function of(t,e,...o){var n;let i=t.querySelector(e);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function nf(t,e,...o){let n=[...t.querySelectorAll(e)];for(let i of o)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var Pa={};Y(Pa,{SearchPlaceConverter:()=>Sr,SearchPlaceQueryParams:()=>X,isSearchPlaceQueryParams:()=>Pl,serializeRequest:()=>lf});var sf=_d(cl(),1);var ll;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ll||(ll={}));var dl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(dl||(dl={}));var pl;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(pl||(pl={}));var ul;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(ul||(ul={}));var fl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(fl||(fl={}));var hl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(hl||(hl={}));var yl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(yl||(yl={}));var ml;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ml||(ml={}));var gl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(gl||(gl={}));var bl;(function(t){t.ASC="ASC",t.DESC="DESC"})(bl||(bl={}));var xl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(xl||(xl={}));var fo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(fo||(fo={}));var El=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var vl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(vl||(vl={}));var Sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sl||(Sl={}));var Ol;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ol||(Ol={}));var ft;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ft||(ft={}));var wl=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Cl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Cl||(Cl={}));var ho;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ho||(ho={}));var ce;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ce||(ce={}));var Al;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Al||(Al={}));var Rl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Rl||(Rl={}));var af={[ce.PERSONAL_BOOK_SHARE_USER]:[ce.PERSONAL_BOOK_USER],[ce.HTML_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.PDF_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.KHUB_ADMIN]:[ce.CONTENT_PUBLISHER],[ce.ADMIN]:[ce.KHUB_ADMIN,ce.USERS_ADMIN,ce.PORTAL_ADMIN],[ce.DEVELOPER]:[ce.BETA_USER,ce.DEBUG_USER]};function Nl(t,e){return t===e||(af[t]??[]).some(o=>Nl(o,e))}function _l(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Nl(n,e))}function cf(t){return`"${t}"`}function Ll(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function lf(t,e){return new Sr(t).serialize(e)}var X;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(X||(X={}));var df=new Set(Object.values(X));function Pl(t){return df.has(t)}var Sr=class{constructor(e,o={},n=20,i=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=this.toURLSearchParams(e).toString(),i=o==null||o.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=n,a.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,f,h,m,b,x;let C=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&C.append(X.LOCALE,e.contentLocale):C.append(X.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&C.append(X.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&C.append(X.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(X.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&C.append(X.SORT,"last_update");let N=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let O=N.map(w=>{var T,U;let K=((U=(T=w.valueFilter)===null||T===void 0?void 0:T.values)!==null&&U!==void 0?U:[]).map(G=>this.escapeFilters(G)).map(G=>encodeURIComponent(cf(Ll(G)))).join("_");return`${w.key}~${K}`}).join("*");C.append(X.VALUE_FILTERS,O)}let L=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let O=L.map(w=>{var T;return`${w.key}~${(T=w.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");C.append(X.DATE_FILTERS,O)}let P=(f=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let O=P.map(w=>{var T,U;return`${w.key}~${(T=w.rangeFilter)===null||T===void 0?void 0:T.from}_${(U=w.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");C.append(X.RANGE_FILTERS,O)}let E=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let O in E)C.append(O,E[O]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((x=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&C.append(X.PER_PAGE,String(e.paging.perPage)),C}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l,d,p;let f=e.get(X.LOCALE)==="all"?void 0:e.get(X.LOCALE),h=((o=e.get(X.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=e.get(X.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=e.get(X.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=e.get(X.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let N of e.keys())Pl(N)||(C[N]=e.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(X.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:El(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:lr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:C}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(X.FILTERS)&&(d=this.parseValueFilters((o=e.get(X.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(X.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(X.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(X.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(X.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(X.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Ll).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:ft[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(wl(e))return[{key:"ft:lastEdition",dateFilter:{type:ft[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ia={};Y(Ia,{toFtFormComponent:()=>Ta});var ln=Symbol("elementInternals");function Ta(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[ln].form}constructor(...i){super(i),this[ln]=this.attachInternals(),this[ln].role=e}setFormValue(i){this[ln].setFormValue(i)}}return o}var $a={};Y($a,{DateFormatter:()=>Or});var Or=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,i)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var ka,Da,Ba,Fa,yo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ba=(Da=(ka=window.safari)===null||ka===void 0?void 0:ka.pushNotification)===null||Da===void 0?void 0:Da.toString())!==null&&Ba!==void 0?Ba:"")==="[object SafariRemoteNotification]",pf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Fa=window.ftGlobals)!==null&&Fa!==void 0?Fa:{lit:Bn,litDecorators:Mn,litRepeat:Wn,litClassMap:Hn,litStyleMap:zn,litUnsafeHTML:Gn,wcUtils:{...Xn,...jn,...Qn,...$a,...ei,...ri,...Pi,...Yn,...ji,...Li,...qi,...Zi,...Ac,...ti,...Ji,...Qi,...Nc,...ea,...Aa,...Ki,..._a,...La,...Pa,...Ia,isSafari:yo,isTouchScreen:pf,setVariable:v}};var Tl=r.extend("--ft-ripple-color","",k.colorContent),R={color:Tl,backgroundColor:r.extend("--ft-ripple-background-color","",Tl),opacityContentOnSurfacePressed:r.external(k.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(k.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(k.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(k.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Il=r.extend("--ft-ripple-color","",k.colorPrimary),$l={color:Il,backgroundColor:r.extend("--ft-ripple-background-color","",Il)},kl=r.extend("--ft-ripple-color","",k.colorSecondary),Dl={color:kl,backgroundColor:r.extend("--ft-ripple-background-color","",kl)},Bl=D`
51
51
  :host {
52
52
  display: contents;
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-saved-searches",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "Displays the saved searches",
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-search-context": "1.2.14",
23
- "@fluid-topics/ft-wc-utils": "1.2.14",
22
+ "@fluid-topics/ft-search-context": "1.2.16",
23
+ "@fluid-topics/ft-wc-utils": "1.2.16",
24
24
  "lit": "3.1.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@fluid-topics/public-api": "1.0.80"
28
28
  },
29
- "gitHead": "65d295da2a5a17f24ca4957f74595755a2550c3d"
29
+ "gitHead": "ede6b43f06ac3cf4720eace3f556b8917e364248"
30
30
  }