@fluid-topics/ft-card 1.2.19 → 1.2.21
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.
- package/build/ft-card.min.js +22 -22
- package/package.json +5 -5
package/build/ft-card.min.js
CHANGED
|
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
47
47
|
input::-webkit-search-results-decoration {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
50
|
-
`;var rs={};var Hn={};M(Hn,{ParametrizedLabelResolver:()=>Wn});var Wn=class r{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return r.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>r.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?r.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var ya={};M(ya,{FtCommandQueue:()=>fr,FtLitElementRedux:()=>mt,FtReduxStore:()=>ha,clearAllStores:()=>Su,isFtReduxStore:()=>nt,redux:()=>Ud,reduxEventListener:()=>Dd,reduxReactive:()=>$d});var $d=()=>(r,e)=>{var o;let n=r.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ud=r=>{let e=r??{};return(o,n)=>{var a;let i={hasChanged:Jt,attribute:!1,...e};D(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},Dd=r=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,r)};var fr=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 nt(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var os,ns,as,hr=Symbol("internalReduxEventsUnsubscribers"),Te=Symbol("internalStoresUnsubscribers"),at=Symbol("internalStores"),mt=class extends q{constructor(){super(...arguments),this[os]=new Map,this[ns]=new Map,this[as]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[at].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[at].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[at].get(e)}addStore(e,o){var n;o=(n=o??(nt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[at].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[at].delete(o)}setupStores(){this.unsubscribeFromStores(),this[at].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 a=this.getStore(e.store);a&&(e.store?this[Te].has(e.store):this[Te].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Te].set(e,o.subscribe(()=>this.updateFromStores())),this[hr].set(e,[]),nt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[hr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Te].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Te].has(e)&&this[Te].get(e)(),this[Te].delete(e),(o=this[hr].get(e))===null||o===void 0||o.forEach(n=>n()),this[hr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};os=Te,ns=at,as=hr;mt.reduxProperties=new Map;mt.reduxReactiveProperties=new Set;mt.reduxEventListeners=new Map;function re(r){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 a,i;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ee(r){return!!r&&!!r[H]}function ae(r){var e;return!!r&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Gd}(r)||Array.isArray(r)||!!r[ps]||!!(!((e=r.constructor)===null||e===void 0)&&e[ps])||Xn(r)||Jn(r))}function it(r,e,o){o===void 0&&(o=!1),vt(r)===0?(o?Object.keys:xt)(r).forEach(function(n){o&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,a){return e(a,n,r)})}function vt(r){var e=r[H];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Xn(r)?2:Jn(r)?3:0}function bt(r,e){return vt(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Md(r,e){return vt(r)===2?r.get(e):r[e]}function fs(r,e,o){var n=vt(r);n===2?r.set(e,o):n===3?r.add(o):r[e]=o}function hs(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Xn(r){return jd&&r instanceof Map}function Jn(r){return Vd&&r instanceof Set}function Le(r){return r.o||r.t}function Qn(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=ms(r);delete e[H];for(var o=xt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:r[a]})}return Object.create(Object.getPrototypeOf(r),e)}function ea(r,e){return e===void 0&&(e=!1),ta(r)||Ee(r)||!ae(r)||(vt(r)>1&&(r.set=r.add=r.clear=r.delete=Bd),Object.freeze(r),e&&it(r,function(o,n){return ea(n,!0)},!0)),r}function Bd(){re(2)}function ta(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function fe(r){var e=Yn[r];return e||re(18,r),e}function Wd(r,e){Yn[r]||(Yn[r]=e)}function Kn(){return gr}function zn(r,e){e&&(fe("Patches"),r.u=[],r.s=[],r.v=e)}function Yr(r){Zn(r),r.p.forEach(Hd),r.p=null}function Zn(r){r===gr&&(gr=r.l)}function is(r){return gr={p:[],l:gr,h:r,m:!0,_:0}}function Hd(r){var e=r[H];e.i===0||e.i===1?e.j():e.g=!0}function jn(r,e){e._=e.p.length;var o=e.p[0],n=r!==void 0&&r!==o;return e.h.O||fe("ES5").S(e,r,n),n?(o[H].P&&(Yr(e),re(4)),ae(r)&&(r=Xr(e,r),e.l||Jr(e,r)),e.u&&fe("Patches").M(o[H].t,r,e.u,e.s)):r=Xr(e,o,[]),Yr(e),e.u&&e.v(e.u,e.s),r!==gs?r:void 0}function Xr(r,e,o){if(ta(e))return e;var n=e[H];if(!n)return it(e,function(l,d){return ss(r,n,e,l,d,o)},!0),e;if(n.A!==r)return e;if(!n.P)return Jr(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Qn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),it(i,function(l,d){return ss(r,n,a,l,d,o,s)}),Jr(r,a,!1),o&&r.u&&fe("Patches").N(n,o,r.u,r.s)}return n.o}function ss(r,e,o,n,a,i,s){if(Ee(a)){var l=Xr(r,a,i&&e&&e.i!==3&&!bt(e.R,n)?i.concat(n):void 0);if(fs(o,n,l),!Ee(l))return;r.m=!1}else s&&o.add(a);if(ae(a)&&!ta(a)){if(!r.h.D&&r._<1)return;Xr(r,a),e&&e.A.l||Jr(r,a)}}function Jr(r,e,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&ea(e,o)}function Vn(r,e){var o=r[H];return(o?Le(o):r)[e]}function cs(r,e){if(e in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function ke(r){r.P||(r.P=!0,r.l&&ke(r.l))}function Gn(r){r.o||(r.o=Qn(r.t))}function qn(r,e,o){var n=Xn(e)?fe("MapSet").F(e,o):Jn(e)?fe("MapSet").T(e,o):r.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Kn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=mr;s&&(d=[l],u=yr);var h=Proxy.revocable(d,u),f=h.revoke,g=h.proxy;return l.k=g,l.j=f,g}(e,o):fe("ES5").J(e,o);return(o?o.A:Kn()).p.push(n),n}function zd(r){return Ee(r)||re(22,r),function e(o){if(!ae(o))return o;var n,a=o[H],i=vt(o);if(a){if(!a.P&&(a.i<4||!fe("ES5").K(a)))return a.t;a.I=!0,n=ls(o,i),a.I=!1}else n=ls(o,i);return it(n,function(s,l){a&&Md(a.t,s)===l||fs(n,s,e(l))}),i===3?new Set(n):n}(r)}function ls(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Qn(r)}function ys(){function r(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[H];return mr.get(u,s)},set:function(u){var h=this[H];mr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][H];if(!d.P)switch(d.i){case 5:n(d)&&ke(d);break;case 4:o(d)&&ke(d)}}}function o(s){for(var l=s.t,d=s.k,u=xt(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==H){var g=l[f];if(g===void 0&&!bt(l,f))return!0;var m=d[f],b=m&&m[H];if(b?b.t!==g:!hs(m,g))return!0}}var S=!!l[H];return u.length!==xt(l).length+(S?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 u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&re(3,JSON.stringify(Le(s)))}var i={};Wd("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,g){if(f){for(var m=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(m,""+b,r(b,!0));return m}var S=ms(g);delete S[H];for(var C=xt(S),w=0;w<C.length;w++){var A=C[w];S[A]=r(A,f||!!S[A].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(d,s),h={i:d?5:4,A:l?l.A:Kn(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:h,writable:!0}),u},S:function(s,l,d){d?Ee(l)&&l[H].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[H];if(f){var g=f.t,m=f.k,b=f.R,S=f.i;if(S===4)it(m,function(v){v!==H&&(g[v]!==void 0||bt(g,v)?b[v]||u(m[v]):(b[v]=!0,ke(f)))}),it(g,function(v){m[v]!==void 0||bt(m,v)||(b[v]=!1,ke(f))});else if(S===5){if(n(f)&&(ke(f),b.length=!0),m.length<g.length)for(var C=m.length;C<g.length;C++)b[C]=!1;else for(var w=g.length;w<m.length;w++)b[w]=!0;for(var A=Math.min(m.length,g.length),O=0;O<A;O++)m.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&u(m[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ds,gr,ra=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jd=typeof Map<"u",Vd=typeof Set<"u",us=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",gs=ra?Symbol.for("immer-nothing"):((ds={})["immer-nothing"]=!0,ds),ps=ra?Symbol.for("immer-draftable"):"__$immer_draftable",H=ra?Symbol.for("immer-state"):"__$immer_state";var Gd=""+Object.prototype.constructor,xt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,ms=Object.getOwnPropertyDescriptors||function(r){var e={};return xt(r).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(r,o)}),e},Yn={},mr={get:function(r,e){if(e===H)return r;var o=Le(r);if(!bt(o,e))return function(a,i,s){var l,d=cs(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(r,o,e);var n=o[e];return r.I||!ae(n)?n:n===Vn(r.t,e)?(Gn(r),r.o[e]=qn(r.A.h,n,r)):n},has:function(r,e){return e in Le(r)},ownKeys:function(r){return Reflect.ownKeys(Le(r))},set:function(r,e,o){var n=cs(Le(r),e);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var a=Vn(Le(r),e),i=a?.[H];if(i&&i.t===o)return r.o[e]=o,r.R[e]=!1,!0;if(hs(o,a)&&(o!==void 0||bt(r.t,e)))return!0;Gn(r),ke(r)}return r.o[e]===o&&(o!==void 0||e in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[e])||(r.o[e]=o,r.R[e]=!0),!0},deleteProperty:function(r,e){return Vn(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Gn(r),ke(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var o=Le(r),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){re(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){re(12)}},yr={};it(mr,function(r,e){yr[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),yr.deleteProperty=function(r,e){return yr.set.call(this,r,e,void 0)},yr.set=function(r,e,o){return mr.set.call(this,r[0],e,o,r[0])};var Kd=function(){function r(o){var n=this;this.O=us,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(S){var C=this;S===void 0&&(S=l);for(var w=arguments.length,A=Array(w>1?w-1:0),O=1;O<w;O++)A[O-1]=arguments[O];return d.produce(S,function(v){var E;return(E=i).call.apply(E,[C,v].concat(A))})}}var u;if(typeof i!="function"&&re(6),s!==void 0&&typeof s!="function"&&re(7),ae(a)){var h=is(n),f=qn(n,a,void 0),g=!0;try{u=i(f),g=!1}finally{g?Yr(h):Zn(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return zn(h,s),jn(S,h)},function(S){throw Yr(h),S}):(zn(h,s),jn(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===gs&&(u=void 0),n.D&&ea(u,!0),s){var m=[],b=[];fe("Patches").M(a,u,m,b),s(m,b)}return u}re(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),g=1;g<h;g++)f[g-1]=arguments[g];return n.produceWithPatches(u,function(m){return a.apply(void 0,[m].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=r.prototype;return e.createDraft=function(o){ae(o)||re(8),Ee(o)&&(o=zd(o));var n=is(this),a=qn(this,o,void 0);return a[H].C=!0,Zn(n),a},e.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return zn(i,n),jn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!us&&re(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=fe("Patches").$;return Ee(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},r}(),te=new Kd,Zd=te.produce,tm=te.produceWithPatches.bind(te),rm=te.setAutoFreeze.bind(te),om=te.setUseProxies.bind(te),nm=te.applyPatches.bind(te),am=te.createDraft.bind(te),im=te.finishDraft.bind(te),Qr=Zd;function Fe(r){"@babel/helpers - typeof";return Fe=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},Fe(r)}function oa(r,e){if(Fe(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,e||"default");if(Fe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function na(r){var e=oa(r,"string");return Fe(e)==="symbol"?e:String(e)}function aa(r,e,o){return e=na(e),e in r?Object.defineProperty(r,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[e]=o,r}function bs(r,e){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),o.push.apply(o,n)}return o}function eo(r){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?bs(Object(o),!0).forEach(function(n){aa(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):bs(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function Y(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var xs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ia=function(){return Math.random().toString(36).substring(7).split("").join(".")},to={INIT:"@@redux/INIT"+ia(),REPLACE:"@@redux/REPLACE"+ia(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ia()}};function qd(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function sa(r,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Y(1));return o(sa)(r,e)}if(typeof r!="function")throw new Error(Y(2));var a=r,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Y(3));return i}function f(S){if(typeof S!="function")throw new Error(Y(4));if(d)throw new Error(Y(5));var C=!0;return u(),l.push(S),function(){if(C){if(d)throw new Error(Y(6));C=!1,u();var A=l.indexOf(S);l.splice(A,1),s=null}}}function g(S){if(!qd(S))throw new Error(Y(7));if(typeof S.type>"u")throw new Error(Y(8));if(d)throw new Error(Y(9));try{d=!0,i=a(i,S)}finally{d=!1}for(var C=s=l,w=0;w<C.length;w++){var A=C[w];A()}return S}function m(S){if(typeof S!="function")throw new Error(Y(10));a=S,g({type:to.REPLACE})}function b(){var S,C=f;return S={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(Y(11));function O(){A.next&&A.next(h())}O();var v=C(O);return{unsubscribe:v}}},S[xs]=function(){return this},S}return g({type:to.INIT}),n={dispatch:g,subscribe:f,getState:h,replaceReducer:m},n[xs]=b,n}function Yd(r){Object.keys(r).forEach(function(e){var o=r[e],n=o(void 0,{type:to.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof o(void 0,{type:to.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function vs(r){for(var e=Object.keys(r),o={},n=0;n<e.length;n++){var a=e[n];typeof r[a]=="function"&&(o[a]=r[a])}var i=Object.keys(o),s,l;try{Yd(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var g=!1,m={},b=0;b<i.length;b++){var S=i[b],C=o[S],w=u[S],A=C(w,h);if(typeof A>"u"){var O=h&&h.type;throw new Error(Y(14))}m[S]=A,g=g||A!==w}return g=g||i.length!==Object.keys(u).length,g?m:u}}function St(){for(var r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ss(){for(var r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Y(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=St.apply(void 0,l)(a.dispatch),eo(eo({},a),{},{dispatch:i})}}}function Os(r){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,r):s(l)}}};return e}var Es=Os();Es.withExtraArgument=Os;var ca=Es;var Ns=function(){var r=function(e,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(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");r(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Xd=function(r,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(r,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ot=function(r,e){for(var o=0,n=e.length,a=r.length;o<n;o++,a++)r[a]=e[o];return r},Jd=Object.defineProperty,Qd=Object.defineProperties,eu=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,ru=Object.prototype.propertyIsEnumerable,ws=function(r,e,o){return e in r?Jd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o},$e=function(r,e){for(var o in e||(e={}))tu.call(e,o)&&ws(r,o,e[o]);if(Cs)for(var n=0,a=Cs(e);n<a.length;n++){var o=a[n];ru.call(e,o)&&ws(r,o,e[o])}return r},la=function(r,e){return Qd(r,eu(e))},ou=function(r,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(r,e)).next())})};var nu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?St:St.apply(null,arguments)},Cm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function au(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var iu=function(r){Ns(e,r);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=r.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.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,Ot([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ot([void 0],o.concat(this))))},e}(Array),su=function(r){Ns(e,r);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=r.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.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,Ot([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ot([void 0],o.concat(this))))},e}(Array);function pa(r){return ae(r)?Qr(r,function(){}):r}function cu(r){return typeof r=="boolean"}function lu(){return function(e){return du(e)}}function du(r){r===void 0&&(r={});var e=r.thunk,o=e===void 0?!0:e,n=r.immutableCheck,a=n===void 0?!0:n,i=r.serializableCheck,s=i===void 0?!0:i,l=new iu;if(o&&(cu(o)?l.push(ca):l.push(ca.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var da=!0;function Is(r){var e=lu(),o=r||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,g=f===void 0?void 0:f,m;if(typeof a=="function")m=a;else if(au(a))m=vs(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!da&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!da&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Ss.apply(void 0,b),C=St;d&&(C=nu($e({trace:!da},typeof d=="object"&&d)));var w=new su(S),A=w;Array.isArray(g)?A=Ot([S],g):typeof g=="function"&&(A=g(w));var O=C.apply(void 0,A);return sa(m,h,O)}function Ue(r,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return $e($e({type:r,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function Ps(r){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return r(a),[e,o,n]}function uu(r){return typeof r=="function"}function pu(r,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Ps(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(uu(r))d=function(){return pa(r())};else{var u=pa(r);d=function(){return u}}function h(f,g){f===void 0&&(f=d());var m=Ot([i[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return m.filter(function(b){return!!b}).length===0&&(m=[l]),m.reduce(function(b,S){if(S)if(Ee(b)){var C=b,w=S(C,g);return w===void 0?b:w}else{if(ae(b))return Qr(b,function(A){return S(A,g)});var w=S(b,g);if(w===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return b},f)}return h.getInitialState=d,h}function fu(r,e){return r+"/"+e}function _s(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:pa(r.initialState),n=r.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],g=fu(e,h),m,b;"reducer"in f?(m=f.reducer,b=f.prepare):m=f,i[h]=m,s[g]=m,l[h]=b?Ue(g,b):Ue(g)});function d(){var h=typeof r.extraReducers=="function"?Ps(r.extraReducers):[r.extraReducers],f=h[0],g=f===void 0?{}:f,m=h[1],b=m===void 0?[]:m,S=h[2],C=S===void 0?void 0:S,w=$e($e({},g),s);return pu(o,function(A){for(var O in w)A.addCase(O,w[O]);for(var v=0,E=b;v<E.length;v++){var R=E[v];A.addMatcher(R.matcher,R.reducer)}C&&A.addDefaultCase(C)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",yu=function(r){r===void 0&&(r=21);for(var e="",o=r;o--;)e+=hu[Math.random()*64|0];return e},gu=["name","message","stack","code"],ua=function(){function r(e,o){this.payload=e,this.meta=o}return r}(),As=function(){function r(e,o){this.payload=e,this.meta=o}return r}(),mu=function(r){if(typeof r=="object"&&r!==null){for(var e={},o=0,n=gu;o<n.length;o++){var a=n[o];typeof r[a]=="string"&&(e[a]=r[a])}return e}return{message:String(r)}},Nm=function(){function r(e,o,n){var a=Ue(e+"/fulfilled",function(h,f,g,m){return{payload:h,meta:la($e({},m||{}),{arg:g,requestId:f,requestStatus:"fulfilled"})}}),i=Ue(e+"/pending",function(h,f,g){return{payload:void 0,meta:la($e({},g||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ue(e+"/rejected",function(h,f,g,m,b){return{payload:m,error:(n&&n.serializeError||mu)(h||"Rejected"),meta:la($e({},b||{}),{arg:g,requestId:f,rejectedWithValue:!!m,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,g,m){var b=n?.idGenerator?n.idGenerator(h):yu(),S=new d,C,w=!1;function A(v){C=v,S.abort()}var O=function(){return ou(this,null,function(){var v,E,R,_,F,k,I;return Xd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),_=(v=n?.condition)==null?void 0:v.call(n,h,{getState:g,extra:m}),xu(_)?[4,_]:[3,2];case 1:_=y.sent(),y.label=2;case 2:if(_===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,F=new Promise(function(x,N){return S.signal.addEventListener("abort",function(){return N({name:"AbortError",message:C||"Aborted"})})}),f(i(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:g,extra:m}))),[4,Promise.race([F,Promise.resolve(o(h,{dispatch:f,getState:g,extra:m,requestId:b,signal:S.signal,abort:A,rejectWithValue:function(x,N){return new ua(x,N)},fulfillWithValue:function(x,N){return new As(x,N)}})).then(function(x){if(x instanceof ua)throw x;return x instanceof As?a(x.payload,b,h,x.meta):a(x,b,h)})])];case 3:return R=y.sent(),[3,5];case 4:return k=y.sent(),R=k instanceof ua?s(null,b,h,k.payload,k.meta):s(k,b,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match(R)&&R.meta.condition,I||f(R),[2,R]}})})}();return Object.assign(O,{abort:A,requestId:b,arg:h,unwrap:function(){return O.then(bu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return r.withTypes=function(){return r},r}();function bu(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function xu(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Ts="listener",Ls="completed",ks="cancelled",Im="task-"+ks,Pm="task-"+Ls,_m=Ts+"-"+ks,Tm=Ts+"-"+Ls;var fa="listenerMiddleware";var Lm=Ue(fa+"/add"),km=Ue(fa+"/removeAll"),Fm=Ue(fa+"/remove");var Rs,$m=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Rs||(Rs=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},vu=function(r){return function(e){setTimeout(e,r)}},Um=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:vu(10);ys();window.ftReduxStores||(window.ftReduxStores={});var ha=class r extends Je{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(nt(i))return i;if(a==null)return;let s=_s({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Is({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new r(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new fr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let s=a,l=n[s];return l?(...d)=>{let u=l(...d);return this.reduxStore.dispatch(u),u}: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 Su(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))nt(e)&&e.clear()}var ba={};M(ba,{scrollHelper:()=>Ou});var ga,ro=new Map,ma=class{lock(e,o){if(o){let n=ro.get(o);if(n==null||n===e)return ro.set(o,e),o}}release(e,o){o&&ro.get(o)===e&&ro.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Bo(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a: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 a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=Qt(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-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=(ga=window.FluidTopicsScrollHelper)!==null&&ga!==void 0?ga:new ma;var Ou=window.FluidTopicsScrollHelper;var xa={};M(xa,{shadowQuerySelector:()=>Eu,shadowQuerySelectorAll:()=>Cu});function Eu(r,e,...o){var n;let a=r.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Cu(r,e,...o){let n=[...r.querySelectorAll(e)];for(let a of o)n=n.flatMap(i=>{var s,l;return[...(l=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&l!==void 0?l:[]]});return n}var va={};M(va,{SearchPlaceConverter:()=>ao,SearchPlaceQueryParams:()=>B,isSearchPlaceQueryParams:()=>ac,serializeRequest:()=>Ru});var wu=Dc($s(),1);var Us;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Us||(Us={}));var Ds;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Ds||(Ds={}));var Ms;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Ms||(Ms={}));var Bs;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Bs||(Bs={}));var Ws;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Ws||(Ws={}));var Hs;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Hs||(Hs={}));var zs;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(zs||(zs={}));var js;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(js||(js={}));var Vs;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Vs||(Vs={}));var Gs;(function(r){r.ASC="ASC",r.DESC="DESC"})(Gs||(Gs={}));var Ks;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Ks||(Ks={}));var Zs;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Zs||(Zs={}));var ec=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var qs;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(qs||(qs={}));var Ys;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ys||(Ys={}));var Xs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Xs||(Xs={}));var br;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(br||(br={}));var tc=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var Js;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Js||(Js={}));var Qs;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Qs||(Qs={}));var K;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(K||(K={}));var rc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(rc||(rc={}));var oc;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(oc||(oc={}));var tb={[K.PERSONAL_BOOK_SHARE_USER]:[K.PERSONAL_BOOK_USER],[K.HTML_EXPORT_USER]:[K.PERSONAL_BOOK_USER],[K.PDF_EXPORT_USER]:[K.PERSONAL_BOOK_USER],[K.KHUB_ADMIN]:[K.CONTENT_PUBLISHER],[K.ADMIN]:[K.KHUB_ADMIN,K.USERS_ADMIN,K.PORTAL_ADMIN],[K.DEVELOPER]:[K.BETA_USER,K.DEBUG_USER]};function Au(r){return`"${r}"`}function nc(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Ru(r,e){return new ao(r).serialize(e)}var B;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(B||(B={}));var Nu=new Set(Object.values(B));function ac(r){return Nu.has(r)}var ao=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,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(),a=o==null||o.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=n,i.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,u,h,f,g,m,b;let S=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&S.append(B.LOCALE,e.contentLocale):S.append(B.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(B.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&S.append(B.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(B.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(B.SORT,"last_update");let C=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let v=C.map(E=>{var R,_;let F=((_=(R=E.valueFilter)===null||R===void 0?void 0:R.values)!==null&&_!==void 0?_:[]).map(k=>this.escapeFilters(k)).map(k=>encodeURIComponent(Au(nc(k)))).join("_");return`${E.key}~${F}`}).join("*");S.append(B.VALUE_FILTERS,v)}let w=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(w.length>0){let v=w.map(E=>{var R;return`${E.key}~${(R=E.dateFilter)===null||R===void 0?void 0:R.type.toLowerCase()}`}).join("*");S.append(B.DATE_FILTERS,v)}let A=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(A.length>0){let v=A.map(E=>{var R,_;return`${E.key}~${(R=E.rangeFilter)===null||R===void 0?void 0:R.from}_${(_=E.rangeFilter)===null||_===void 0?void 0:_.to}`}).join("*");S.append(B.RANGE_FILTERS,v)}let O=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let v in O)S.append(v,O[v]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(B.PER_PAGE,String(e.paging.perPage)),S}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l,d,u;let h=e.get(B.LOCALE)==="all"?void 0:e.get(B.LOCALE),f=((o=e.get(B.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),g=((n=e.get(B.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),m=(a=e.get(B.SCOPE))!==null&&a!==void 0?a:"default",b=+((i=e.get(B.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),S={};for(let C of e.keys())ac(C)||(S[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(B.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:ec(f)?f:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:Qt(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:S}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(B.FILTERS)&&(d=this.parseValueFilters((o=e.get(B.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(B.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(B.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(B.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(B.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(B.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(nc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:br[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,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(tc(e))return[{key:"ft:lastEdition",dateFilter:{type:br[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Sa={};M(Sa,{toFtFormComponent:()=>Iu});var io=Symbol("elementInternals");function Iu(r,e){class o extends r{static get formAssociated(){return!0}get form(){return this[io].form}constructor(...a){super(a),this[io]=this.attachInternals(),this[io].role=e}setFormValue(a){this[io].setFormValue(a)}}return o}var Ea={};M(Ea,{DateFormatter:()=>Oa});var Oa=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var Ca,wa,Aa,Ra,Pu=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Aa=(wa=(Ca=window.safari)===null||Ca===void 0?void 0:Ca.pushNotification)===null||wa===void 0?void 0:wa.toString())!==null&&Aa!==void 0?Aa:"")==="[object SafariRemoteNotification]",_u="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ra=window.ftGlobals)!==null&&Ra!==void 0?Ra:{lit:Eo,litDecorators:Co,litRepeat:wo,litClassMap:Ao,litStyleMap:Ro,litUnsafeHTML:No,wcUtils:{...$o,...Po,...Do,...Ea,...Mo,...zo,...xn,...ko,...Ln,...bn,...Un,...Fn,...es,...Wo,...Mn,...Bn,...rs,...Hn,...ya,...kn,...ba,...xa,...va,...Sa,isSafari:Pu,isTouchScreen:_u,setVariable:et}};var ic=t.extend("--ft-ripple-color","",W.colorContent),he={color:ic,backgroundColor:t.extend("--ft-ripple-background-color","",ic),opacityContentOnSurfacePressed:t.external(W.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:t.external(W.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:t.external(W.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:t.external(W.opacityContentOnSurfaceSelected,"Design system"),borderRadius:t.create("--ft-ripple-border-radius","","SIZE","0px")},sc=t.extend("--ft-ripple-color","",W.colorPrimary),cc={color:sc,backgroundColor:t.extend("--ft-ripple-background-color","",sc)},lc=t.extend("--ft-ripple-color","",W.colorSecondary),dc={color:lc,backgroundColor:t.extend("--ft-ripple-background-color","",lc)},uc=$`
|
|
50
|
+
`;var rs={};var Hn={};M(Hn,{ParametrizedLabelResolver:()=>Wn});var Wn=class r{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return r.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>r.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?r.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var ya={};M(ya,{FtCommandQueue:()=>fr,FtLitElementRedux:()=>mt,FtReduxStore:()=>ha,clearAllStores:()=>Su,isFtReduxStore:()=>nt,redux:()=>Ud,reduxEventListener:()=>Dd,reduxReactive:()=>$d});var $d=()=>(r,e)=>{var o;let n=r.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Ud=r=>{let e=r??{};return(o,n)=>{var a;let i={hasChanged:Jt,attribute:!1,...e};D(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},Dd=r=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,r)};var fr=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 nt(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var os,ns,as,hr=Symbol("internalReduxEventsUnsubscribers"),Te=Symbol("internalStoresUnsubscribers"),at=Symbol("internalStores"),mt=class extends q{constructor(){super(...arguments),this[os]=new Map,this[ns]=new Map,this[as]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[at].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[at].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[at].get(e)}addStore(e,o){var n;o=(n=o??(nt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[at].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[at].delete(o)}setupStores(){this.unsubscribeFromStores(),this[at].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 a=this.getStore(e.store);a&&(e.store?this[Te].has(e.store):this[Te].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Te].set(e,o.subscribe(()=>this.updateFromStores())),this[hr].set(e,[]),nt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[hr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Te].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Te].has(e)&&this[Te].get(e)(),this[Te].delete(e),(o=this[hr].get(e))===null||o===void 0||o.forEach(n=>n()),this[hr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};os=Te,ns=at,as=hr;mt.reduxProperties=new Map;mt.reduxReactiveProperties=new Set;mt.reduxEventListeners=new Map;function re(r){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 a,i;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ee(r){return!!r&&!!r[H]}function ae(r){var e;return!!r&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Gd}(r)||Array.isArray(r)||!!r[ps]||!!(!((e=r.constructor)===null||e===void 0)&&e[ps])||Xn(r)||Jn(r))}function it(r,e,o){o===void 0&&(o=!1),vt(r)===0?(o?Object.keys:xt)(r).forEach(function(n){o&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,a){return e(a,n,r)})}function vt(r){var e=r[H];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Xn(r)?2:Jn(r)?3:0}function bt(r,e){return vt(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Md(r,e){return vt(r)===2?r.get(e):r[e]}function fs(r,e,o){var n=vt(r);n===2?r.set(e,o):n===3?r.add(o):r[e]=o}function hs(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Xn(r){return jd&&r instanceof Map}function Jn(r){return Vd&&r instanceof Set}function Le(r){return r.o||r.t}function Qn(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=ms(r);delete e[H];for(var o=xt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:r[a]})}return Object.create(Object.getPrototypeOf(r),e)}function ea(r,e){return e===void 0&&(e=!1),ta(r)||Ee(r)||!ae(r)||(vt(r)>1&&(r.set=r.add=r.clear=r.delete=Bd),Object.freeze(r),e&&it(r,function(o,n){return ea(n,!0)},!0)),r}function Bd(){re(2)}function ta(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function fe(r){var e=Yn[r];return e||re(18,r),e}function Wd(r,e){Yn[r]||(Yn[r]=e)}function Kn(){return gr}function zn(r,e){e&&(fe("Patches"),r.u=[],r.s=[],r.v=e)}function Yr(r){Zn(r),r.p.forEach(Hd),r.p=null}function Zn(r){r===gr&&(gr=r.l)}function is(r){return gr={p:[],l:gr,h:r,m:!0,_:0}}function Hd(r){var e=r[H];e.i===0||e.i===1?e.j():e.g=!0}function jn(r,e){e._=e.p.length;var o=e.p[0],n=r!==void 0&&r!==o;return e.h.O||fe("ES5").S(e,r,n),n?(o[H].P&&(Yr(e),re(4)),ae(r)&&(r=Xr(e,r),e.l||Jr(e,r)),e.u&&fe("Patches").M(o[H].t,r,e.u,e.s)):r=Xr(e,o,[]),Yr(e),e.u&&e.v(e.u,e.s),r!==gs?r:void 0}function Xr(r,e,o){if(ta(e))return e;var n=e[H];if(!n)return it(e,function(l,d){return ss(r,n,e,l,d,o)},!0),e;if(n.A!==r)return e;if(!n.P)return Jr(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Qn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),it(i,function(l,d){return ss(r,n,a,l,d,o,s)}),Jr(r,a,!1),o&&r.u&&fe("Patches").N(n,o,r.u,r.s)}return n.o}function ss(r,e,o,n,a,i,s){if(Ee(a)){var l=Xr(r,a,i&&e&&e.i!==3&&!bt(e.R,n)?i.concat(n):void 0);if(fs(o,n,l),!Ee(l))return;r.m=!1}else s&&o.add(a);if(ae(a)&&!ta(a)){if(!r.h.D&&r._<1)return;Xr(r,a),e&&e.A.l||Jr(r,a)}}function Jr(r,e,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&ea(e,o)}function Vn(r,e){var o=r[H];return(o?Le(o):r)[e]}function cs(r,e){if(e in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function ke(r){r.P||(r.P=!0,r.l&&ke(r.l))}function Gn(r){r.o||(r.o=Qn(r.t))}function qn(r,e,o){var n=Xn(e)?fe("MapSet").F(e,o):Jn(e)?fe("MapSet").T(e,o):r.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Kn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=mr;s&&(d=[l],u=yr);var h=Proxy.revocable(d,u),f=h.revoke,g=h.proxy;return l.k=g,l.j=f,g}(e,o):fe("ES5").J(e,o);return(o?o.A:Kn()).p.push(n),n}function zd(r){return Ee(r)||re(22,r),function e(o){if(!ae(o))return o;var n,a=o[H],i=vt(o);if(a){if(!a.P&&(a.i<4||!fe("ES5").K(a)))return a.t;a.I=!0,n=ls(o,i),a.I=!1}else n=ls(o,i);return it(n,function(s,l){a&&Md(a.t,s)===l||fs(n,s,e(l))}),i===3?new Set(n):n}(r)}function ls(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Qn(r)}function ys(){function r(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[H];return mr.get(u,s)},set:function(u){var h=this[H];mr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][H];if(!d.P)switch(d.i){case 5:n(d)&&ke(d);break;case 4:o(d)&&ke(d)}}}function o(s){for(var l=s.t,d=s.k,u=xt(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==H){var g=l[f];if(g===void 0&&!bt(l,f))return!0;var m=d[f],b=m&&m[H];if(b?b.t!==g:!hs(m,g))return!0}}var S=!!l[H];return u.length!==xt(l).length+(S?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 u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&re(3,JSON.stringify(Le(s)))}var i={};Wd("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,g){if(f){for(var m=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(m,""+b,r(b,!0));return m}var S=ms(g);delete S[H];for(var C=xt(S),w=0;w<C.length;w++){var A=C[w];S[A]=r(A,f||!!S[A].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(d,s),h={i:d?5:4,A:l?l.A:Kn(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:h,writable:!0}),u},S:function(s,l,d){d?Ee(l)&&l[H].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[H];if(f){var g=f.t,m=f.k,b=f.R,S=f.i;if(S===4)it(m,function(v){v!==H&&(g[v]!==void 0||bt(g,v)?b[v]||u(m[v]):(b[v]=!0,ke(f)))}),it(g,function(v){m[v]!==void 0||bt(m,v)||(b[v]=!1,ke(f))});else if(S===5){if(n(f)&&(ke(f),b.length=!0),m.length<g.length)for(var C=m.length;C<g.length;C++)b[C]=!1;else for(var w=g.length;w<m.length;w++)b[w]=!0;for(var A=Math.min(m.length,g.length),O=0;O<A;O++)m.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&u(m[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ds,gr,ra=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jd=typeof Map<"u",Vd=typeof Set<"u",us=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",gs=ra?Symbol.for("immer-nothing"):((ds={})["immer-nothing"]=!0,ds),ps=ra?Symbol.for("immer-draftable"):"__$immer_draftable",H=ra?Symbol.for("immer-state"):"__$immer_state";var Gd=""+Object.prototype.constructor,xt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,ms=Object.getOwnPropertyDescriptors||function(r){var e={};return xt(r).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(r,o)}),e},Yn={},mr={get:function(r,e){if(e===H)return r;var o=Le(r);if(!bt(o,e))return function(a,i,s){var l,d=cs(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(r,o,e);var n=o[e];return r.I||!ae(n)?n:n===Vn(r.t,e)?(Gn(r),r.o[e]=qn(r.A.h,n,r)):n},has:function(r,e){return e in Le(r)},ownKeys:function(r){return Reflect.ownKeys(Le(r))},set:function(r,e,o){var n=cs(Le(r),e);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var a=Vn(Le(r),e),i=a?.[H];if(i&&i.t===o)return r.o[e]=o,r.R[e]=!1,!0;if(hs(o,a)&&(o!==void 0||bt(r.t,e)))return!0;Gn(r),ke(r)}return r.o[e]===o&&(o!==void 0||e in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[e])||(r.o[e]=o,r.R[e]=!0),!0},deleteProperty:function(r,e){return Vn(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Gn(r),ke(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var o=Le(r),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){re(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){re(12)}},yr={};it(mr,function(r,e){yr[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),yr.deleteProperty=function(r,e){return yr.set.call(this,r,e,void 0)},yr.set=function(r,e,o){return mr.set.call(this,r[0],e,o,r[0])};var Kd=function(){function r(o){var n=this;this.O=us,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(S){var C=this;S===void 0&&(S=l);for(var w=arguments.length,A=Array(w>1?w-1:0),O=1;O<w;O++)A[O-1]=arguments[O];return d.produce(S,function(v){var E;return(E=i).call.apply(E,[C,v].concat(A))})}}var u;if(typeof i!="function"&&re(6),s!==void 0&&typeof s!="function"&&re(7),ae(a)){var h=is(n),f=qn(n,a,void 0),g=!0;try{u=i(f),g=!1}finally{g?Yr(h):Zn(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return zn(h,s),jn(S,h)},function(S){throw Yr(h),S}):(zn(h,s),jn(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===gs&&(u=void 0),n.D&&ea(u,!0),s){var m=[],b=[];fe("Patches").M(a,u,m,b),s(m,b)}return u}re(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),g=1;g<h;g++)f[g-1]=arguments[g];return n.produceWithPatches(u,function(m){return a.apply(void 0,[m].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=r.prototype;return e.createDraft=function(o){ae(o)||re(8),Ee(o)&&(o=zd(o));var n=is(this),a=qn(this,o,void 0);return a[H].C=!0,Zn(n),a},e.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return zn(i,n),jn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!us&&re(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=fe("Patches").$;return Ee(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},r}(),te=new Kd,Zd=te.produce,tm=te.produceWithPatches.bind(te),rm=te.setAutoFreeze.bind(te),om=te.setUseProxies.bind(te),nm=te.applyPatches.bind(te),am=te.createDraft.bind(te),im=te.finishDraft.bind(te),Qr=Zd;function Fe(r){"@babel/helpers - typeof";return Fe=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},Fe(r)}function oa(r,e){if(Fe(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,e||"default");if(Fe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function na(r){var e=oa(r,"string");return Fe(e)==="symbol"?e:String(e)}function aa(r,e,o){return e=na(e),e in r?Object.defineProperty(r,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[e]=o,r}function bs(r,e){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),o.push.apply(o,n)}return o}function eo(r){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?bs(Object(o),!0).forEach(function(n){aa(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):bs(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function Y(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var xs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ia=function(){return Math.random().toString(36).substring(7).split("").join(".")},to={INIT:"@@redux/INIT"+ia(),REPLACE:"@@redux/REPLACE"+ia(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ia()}};function qd(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function sa(r,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Y(1));return o(sa)(r,e)}if(typeof r!="function")throw new Error(Y(2));var a=r,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Y(3));return i}function f(S){if(typeof S!="function")throw new Error(Y(4));if(d)throw new Error(Y(5));var C=!0;return u(),l.push(S),function(){if(C){if(d)throw new Error(Y(6));C=!1,u();var A=l.indexOf(S);l.splice(A,1),s=null}}}function g(S){if(!qd(S))throw new Error(Y(7));if(typeof S.type>"u")throw new Error(Y(8));if(d)throw new Error(Y(9));try{d=!0,i=a(i,S)}finally{d=!1}for(var C=s=l,w=0;w<C.length;w++){var A=C[w];A()}return S}function m(S){if(typeof S!="function")throw new Error(Y(10));a=S,g({type:to.REPLACE})}function b(){var S,C=f;return S={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(Y(11));function O(){A.next&&A.next(h())}O();var v=C(O);return{unsubscribe:v}}},S[xs]=function(){return this},S}return g({type:to.INIT}),n={dispatch:g,subscribe:f,getState:h,replaceReducer:m},n[xs]=b,n}function Yd(r){Object.keys(r).forEach(function(e){var o=r[e],n=o(void 0,{type:to.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof o(void 0,{type:to.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function vs(r){for(var e=Object.keys(r),o={},n=0;n<e.length;n++){var a=e[n];typeof r[a]=="function"&&(o[a]=r[a])}var i=Object.keys(o),s,l;try{Yd(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var g=!1,m={},b=0;b<i.length;b++){var S=i[b],C=o[S],w=u[S],A=C(w,h);if(typeof A>"u"){var O=h&&h.type;throw new Error(Y(14))}m[S]=A,g=g||A!==w}return g=g||i.length!==Object.keys(u).length,g?m:u}}function St(){for(var r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ss(){for(var r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Y(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=St.apply(void 0,l)(a.dispatch),eo(eo({},a),{},{dispatch:i})}}}function Os(r){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,r):s(l)}}};return e}var Es=Os();Es.withExtraArgument=Os;var ca=Es;var Ns=function(){var r=function(e,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(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");r(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Xd=function(r,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(r,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ot=function(r,e){for(var o=0,n=e.length,a=r.length;o<n;o++,a++)r[a]=e[o];return r},Jd=Object.defineProperty,Qd=Object.defineProperties,eu=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,ru=Object.prototype.propertyIsEnumerable,ws=function(r,e,o){return e in r?Jd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o},$e=function(r,e){for(var o in e||(e={}))tu.call(e,o)&&ws(r,o,e[o]);if(Cs)for(var n=0,a=Cs(e);n<a.length;n++){var o=a[n];ru.call(e,o)&&ws(r,o,e[o])}return r},la=function(r,e){return Qd(r,eu(e))},ou=function(r,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(r,e)).next())})};var nu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?St:St.apply(null,arguments)},Cm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function au(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var iu=function(r){Ns(e,r);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=r.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.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,Ot([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ot([void 0],o.concat(this))))},e}(Array),su=function(r){Ns(e,r);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=r.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.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,Ot([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ot([void 0],o.concat(this))))},e}(Array);function pa(r){return ae(r)?Qr(r,function(){}):r}function cu(r){return typeof r=="boolean"}function lu(){return function(e){return du(e)}}function du(r){r===void 0&&(r={});var e=r.thunk,o=e===void 0?!0:e,n=r.immutableCheck,a=n===void 0?!0:n,i=r.serializableCheck,s=i===void 0?!0:i,l=new iu;if(o&&(cu(o)?l.push(ca):l.push(ca.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var da=!0;function Is(r){var e=lu(),o=r||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,g=f===void 0?void 0:f,m;if(typeof a=="function")m=a;else if(au(a))m=vs(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!da&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!da&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Ss.apply(void 0,b),C=St;d&&(C=nu($e({trace:!da},typeof d=="object"&&d)));var w=new su(S),A=w;Array.isArray(g)?A=Ot([S],g):typeof g=="function"&&(A=g(w));var O=C.apply(void 0,A);return sa(m,h,O)}function Ue(r,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return $e($e({type:r,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function Ps(r){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return r(a),[e,o,n]}function uu(r){return typeof r=="function"}function pu(r,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Ps(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(uu(r))d=function(){return pa(r())};else{var u=pa(r);d=function(){return u}}function h(f,g){f===void 0&&(f=d());var m=Ot([i[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return m.filter(function(b){return!!b}).length===0&&(m=[l]),m.reduce(function(b,S){if(S)if(Ee(b)){var C=b,w=S(C,g);return w===void 0?b:w}else{if(ae(b))return Qr(b,function(A){return S(A,g)});var w=S(b,g);if(w===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return b},f)}return h.getInitialState=d,h}function fu(r,e){return r+"/"+e}function _s(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:pa(r.initialState),n=r.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],g=fu(e,h),m,b;"reducer"in f?(m=f.reducer,b=f.prepare):m=f,i[h]=m,s[g]=m,l[h]=b?Ue(g,b):Ue(g)});function d(){var h=typeof r.extraReducers=="function"?Ps(r.extraReducers):[r.extraReducers],f=h[0],g=f===void 0?{}:f,m=h[1],b=m===void 0?[]:m,S=h[2],C=S===void 0?void 0:S,w=$e($e({},g),s);return pu(o,function(A){for(var O in w)A.addCase(O,w[O]);for(var v=0,E=b;v<E.length;v++){var R=E[v];A.addMatcher(R.matcher,R.reducer)}C&&A.addDefaultCase(C)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",yu=function(r){r===void 0&&(r=21);for(var e="",o=r;o--;)e+=hu[Math.random()*64|0];return e},gu=["name","message","stack","code"],ua=function(){function r(e,o){this.payload=e,this.meta=o}return r}(),As=function(){function r(e,o){this.payload=e,this.meta=o}return r}(),mu=function(r){if(typeof r=="object"&&r!==null){for(var e={},o=0,n=gu;o<n.length;o++){var a=n[o];typeof r[a]=="string"&&(e[a]=r[a])}return e}return{message:String(r)}},Nm=function(){function r(e,o,n){var a=Ue(e+"/fulfilled",function(h,f,g,m){return{payload:h,meta:la($e({},m||{}),{arg:g,requestId:f,requestStatus:"fulfilled"})}}),i=Ue(e+"/pending",function(h,f,g){return{payload:void 0,meta:la($e({},g||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ue(e+"/rejected",function(h,f,g,m,b){return{payload:m,error:(n&&n.serializeError||mu)(h||"Rejected"),meta:la($e({},b||{}),{arg:g,requestId:f,rejectedWithValue:!!m,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,g,m){var b=n?.idGenerator?n.idGenerator(h):yu(),S=new d,C,w=!1;function A(v){C=v,S.abort()}var O=function(){return ou(this,null,function(){var v,E,R,_,F,k,I;return Xd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),_=(v=n?.condition)==null?void 0:v.call(n,h,{getState:g,extra:m}),xu(_)?[4,_]:[3,2];case 1:_=y.sent(),y.label=2;case 2:if(_===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,F=new Promise(function(x,N){return S.signal.addEventListener("abort",function(){return N({name:"AbortError",message:C||"Aborted"})})}),f(i(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:g,extra:m}))),[4,Promise.race([F,Promise.resolve(o(h,{dispatch:f,getState:g,extra:m,requestId:b,signal:S.signal,abort:A,rejectWithValue:function(x,N){return new ua(x,N)},fulfillWithValue:function(x,N){return new As(x,N)}})).then(function(x){if(x instanceof ua)throw x;return x instanceof As?a(x.payload,b,h,x.meta):a(x,b,h)})])];case 3:return R=y.sent(),[3,5];case 4:return k=y.sent(),R=k instanceof ua?s(null,b,h,k.payload,k.meta):s(k,b,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match(R)&&R.meta.condition,I||f(R),[2,R]}})})}();return Object.assign(O,{abort:A,requestId:b,arg:h,unwrap:function(){return O.then(bu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return r.withTypes=function(){return r},r}();function bu(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function xu(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Ts="listener",Ls="completed",ks="cancelled",Im="task-"+ks,Pm="task-"+Ls,_m=Ts+"-"+ks,Tm=Ts+"-"+Ls;var fa="listenerMiddleware";var Lm=Ue(fa+"/add"),km=Ue(fa+"/removeAll"),Fm=Ue(fa+"/remove");var Rs,$m=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Rs||(Rs=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},vu=function(r){return function(e){setTimeout(e,r)}},Um=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:vu(10);ys();window.ftReduxStores||(window.ftReduxStores={});var ha=class r extends Je{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(nt(i))return i;if(a==null)return;let s=_s({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Is({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new r(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new fr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let s=a,l=n[s];return l?(...d)=>{let u=l(...d);return this.reduxStore.dispatch(u),u}: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 Su(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))nt(e)&&e.clear()}var ba={};M(ba,{scrollHelper:()=>Ou});var ga,ro=new Map,ma=class{lock(e,o){if(o){let n=ro.get(o);if(n==null||n===e)return ro.set(o,e),o}}release(e,o){o&&ro.get(o)===e&&ro.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Bo(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a: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 a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=Qt(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-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=(ga=window.FluidTopicsScrollHelper)!==null&&ga!==void 0?ga:new ma;var Ou=window.FluidTopicsScrollHelper;var xa={};M(xa,{shadowQuerySelector:()=>Eu,shadowQuerySelectorAll:()=>Cu});function Eu(r,e,...o){var n;let a=r.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Cu(r,e,...o){let n=[...r.querySelectorAll(e)];for(let a of o)n=n.flatMap(i=>{var s,l;return[...(l=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&l!==void 0?l:[]]});return n}var va={};M(va,{SearchPlaceConverter:()=>ao,SearchPlaceQueryParams:()=>B,isSearchPlaceQueryParams:()=>ac,serializeRequest:()=>Ru});var wu=Dc($s(),1);var Us;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Us||(Us={}));var Ds;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Ds||(Ds={}));var Ms;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Ms||(Ms={}));var Bs;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Bs||(Bs={}));var Ws;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Ws||(Ws={}));var Hs;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Hs||(Hs={}));var zs;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(zs||(zs={}));var js;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(js||(js={}));var Vs;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Vs||(Vs={}));var Gs;(function(r){r.ASC="ASC",r.DESC="DESC"})(Gs||(Gs={}));var Ks;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Ks||(Ks={}));var Zs;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Zs||(Zs={}));var ec=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var qs;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(qs||(qs={}));var Ys;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ys||(Ys={}));var Xs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Xs||(Xs={}));var br;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(br||(br={}));var tc=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var Js;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Js||(Js={}));var Qs;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Qs||(Qs={}));var G;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(G||(G={}));var rc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(rc||(rc={}));var oc;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(oc||(oc={}));var tb={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN],[G.DEVELOPER]:[G.BETA_USER,G.DEBUG_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function Au(r){return`"${r}"`}function nc(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Ru(r,e){return new ao(r).serialize(e)}var B;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(B||(B={}));var Nu=new Set(Object.values(B));function ac(r){return Nu.has(r)}var ao=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,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(),a=o==null||o.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=n,i.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,u,h,f,g,m,b;let S=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&S.append(B.LOCALE,e.contentLocale):S.append(B.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(B.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&S.append(B.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(B.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(B.SORT,"last_update");let C=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let v=C.map(E=>{var R,_;let F=((_=(R=E.valueFilter)===null||R===void 0?void 0:R.values)!==null&&_!==void 0?_:[]).map(k=>this.escapeFilters(k)).map(k=>encodeURIComponent(Au(nc(k)))).join("_");return`${E.key}~${F}`}).join("*");S.append(B.VALUE_FILTERS,v)}let w=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(w.length>0){let v=w.map(E=>{var R;return`${E.key}~${(R=E.dateFilter)===null||R===void 0?void 0:R.type.toLowerCase()}`}).join("*");S.append(B.DATE_FILTERS,v)}let A=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(A.length>0){let v=A.map(E=>{var R,_;return`${E.key}~${(R=E.rangeFilter)===null||R===void 0?void 0:R.from}_${(_=E.rangeFilter)===null||_===void 0?void 0:_.to}`}).join("*");S.append(B.RANGE_FILTERS,v)}let O=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let v in O)S.append(v,O[v]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(B.PER_PAGE,String(e.paging.perPage)),S}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l,d,u;let h=e.get(B.LOCALE)==="all"?void 0:e.get(B.LOCALE),f=((o=e.get(B.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),g=((n=e.get(B.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),m=(a=e.get(B.SCOPE))!==null&&a!==void 0?a:"default",b=+((i=e.get(B.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),S={};for(let C of e.keys())ac(C)||(S[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(B.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:ec(f)?f:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:Qt(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:S}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(B.FILTERS)&&(d=this.parseValueFilters((o=e.get(B.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(B.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(B.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(B.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(B.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(B.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(nc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:br[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,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(tc(e))return[{key:"ft:lastEdition",dateFilter:{type:br[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Sa={};M(Sa,{toFtFormComponent:()=>Iu});var io=Symbol("elementInternals");function Iu(r,e){class o extends r{static get formAssociated(){return!0}get form(){return this[io].form}constructor(...a){super(a),this[io]=this.attachInternals(),this[io].role=e}setFormValue(a){this[io].setFormValue(a)}}return o}var Ea={};M(Ea,{DateFormatter:()=>Oa});var Oa=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var Ca,wa,Aa,Ra,Pu=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Aa=(wa=(Ca=window.safari)===null||Ca===void 0?void 0:Ca.pushNotification)===null||wa===void 0?void 0:wa.toString())!==null&&Aa!==void 0?Aa:"")==="[object SafariRemoteNotification]",_u="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ra=window.ftGlobals)!==null&&Ra!==void 0?Ra:{lit:Eo,litDecorators:Co,litRepeat:wo,litClassMap:Ao,litStyleMap:Ro,litUnsafeHTML:No,wcUtils:{...$o,...Po,...Do,...Ea,...Mo,...zo,...xn,...ko,...Ln,...bn,...Un,...Fn,...es,...Wo,...Mn,...Bn,...rs,...Hn,...ya,...kn,...ba,...xa,...va,...Sa,isSafari:Pu,isTouchScreen:_u,setVariable:et}};var ic=t.extend("--ft-ripple-color","",W.colorContent),he={color:ic,backgroundColor:t.extend("--ft-ripple-background-color","",ic),opacityContentOnSurfacePressed:t.external(W.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:t.external(W.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:t.external(W.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:t.external(W.opacityContentOnSurfaceSelected,"Design system"),borderRadius:t.create("--ft-ripple-border-radius","","SIZE","0px")},sc=t.extend("--ft-ripple-color","",W.colorPrimary),cc={color:sc,backgroundColor:t.extend("--ft-ripple-background-color","",sc)},lc=t.extend("--ft-ripple-color","",W.colorSecondary),dc={color:lc,backgroundColor:t.extend("--ft-ripple-background-color","",lc)},uc=$`
|
|
51
51
|
:host {
|
|
52
52
|
display: contents;
|
|
53
53
|
}
|
|
@@ -282,22 +282,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
282
282
|
</${Na(this.element)}>
|
|
283
283
|
`:Ia`
|
|
284
284
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
285
|
-
`}};we.styles=[mc,bc,xc,vc,Sc,Oc,Ec,Cc,wc,Ac,Rc,...Nc];Ic([D()],we.prototype,"element",void 0);Ic([D()],we.prototype,"variant",void 0);Qe("ft-typography")(we);var
|
|
285
|
+
`}};we.styles=[mc,bc,xc,vc,Sc,Oc,Ec,Cc,wc,Ac,Rc,...Nc];Ic([D()],we.prototype,"element",void 0);Ic([D()],we.prototype,"variant",void 0);Qe("ft-typography")(we);var K={padding:t.create("--ft-card-padding","","SIZE","12px"),borderRadius:t.extend("--ft-card-border-radius","",W.borderRadiusM),borderStyle:t.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:t.extend("--ft-card-border-color","",W.colorOutline),hoverBorderColor:t.extend("--ft-card-hover-border-color","",W.colorPrimary),outlineStyle:t.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:t.create("--ft-card-outline-width","","SIZE","0"),outlineColor:t.extend("--ft-card-outline-color","",W.colorPrimary),selectedOutlineStyle:t.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:t.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:t.extend("--ft-card-selected-outline-color","",W.colorPrimary),selectedBorderRadius:t.extend("--ft-card-selected-border-radius","",W.borderRadiusM),colorSurface:t.extend("--ft-card-background-color","",W.colorSurface),colorOnSurfaceMedium:t.extend("--ft-card-content-color","",W.colorOnSurfaceMedium),colorOnSurfaceHigh:t.extend("--ft-card-title-color","",W.colorOnSurfaceHigh),elevation02:t.extend("--ft-card-elevation","",W.elevation02),elevation04:t.extend("--ft-card-selected-elevation","",W.elevation04)},Pc=$`
|
|
286
286
|
:host {
|
|
287
287
|
display: block;
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
#container {
|
|
291
|
-
padding: ${
|
|
292
|
-
outline-style: ${
|
|
293
|
-
outline-width: ${
|
|
294
|
-
outline-color: ${
|
|
295
|
-
border-color: ${
|
|
296
|
-
border-style: ${
|
|
291
|
+
padding: ${K.padding};
|
|
292
|
+
outline-style: ${K.outlineStyle};
|
|
293
|
+
outline-width: ${K.outlineWidth};
|
|
294
|
+
outline-color: ${K.outlineColor};
|
|
295
|
+
border-color: ${K.borderColor};
|
|
296
|
+
border-style: ${K.borderStyle};
|
|
297
297
|
border-width: 1px;
|
|
298
|
-
border-radius: ${
|
|
299
|
-
${et(he.borderRadius,
|
|
300
|
-
box-shadow: ${
|
|
298
|
+
border-radius: ${K.borderRadius};
|
|
299
|
+
${et(he.borderRadius,K.borderRadius)};
|
|
300
|
+
box-shadow: ${K.elevation02};
|
|
301
301
|
position: relative;
|
|
302
302
|
width: 100%;
|
|
303
303
|
height: 100%;
|
|
@@ -309,7 +309,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
309
309
|
grid-template-rows: max-content minmax(0, 1fr);
|
|
310
310
|
grid-gap: 8px;
|
|
311
311
|
box-sizing: border-box;
|
|
312
|
-
background-color: ${
|
|
312
|
+
background-color: ${K.colorSurface};
|
|
313
313
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
314
314
|
}
|
|
315
315
|
|
|
@@ -322,12 +322,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
#container.selected {
|
|
325
|
-
outline-style: ${
|
|
326
|
-
outline-width: ${
|
|
327
|
-
outline-color: ${
|
|
328
|
-
border-radius: ${
|
|
329
|
-
${et(he.borderRadius,
|
|
330
|
-
box-shadow: ${
|
|
325
|
+
outline-style: ${K.selectedOutlineStyle};
|
|
326
|
+
outline-width: ${K.selectedOutlineWidth};
|
|
327
|
+
outline-color: ${K.selectedOutlineColor};
|
|
328
|
+
border-radius: ${K.selectedBorderRadius};
|
|
329
|
+
${et(he.borderRadius,K.selectedBorderRadius)};
|
|
330
|
+
box-shadow: ${K.elevation04};
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
#container.clickable {
|
|
@@ -335,8 +335,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
#container.clickable:hover {
|
|
338
|
-
box-shadow: ${
|
|
339
|
-
border-color: ${
|
|
338
|
+
box-shadow: ${K.elevation04};
|
|
339
|
+
border-color: ${K.hoverBorderColor};
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
#header {
|
|
@@ -347,14 +347,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
347
347
|
text-overflow: ellipsis;
|
|
348
348
|
overflow: hidden;
|
|
349
349
|
word-break: break-word;
|
|
350
|
-
color: ${
|
|
350
|
+
color: ${K.colorOnSurfaceHigh};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
#content {
|
|
354
354
|
word-break: break-word;
|
|
355
355
|
min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
|
|
356
356
|
grid-area: content;
|
|
357
|
-
color: ${
|
|
357
|
+
color: ${K.colorOnSurfaceMedium};
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
#action {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-card",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
4
4
|
"description": "A file uploader with drag and drop",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-ripple": "1.2.
|
|
23
|
-
"@fluid-topics/ft-typography": "1.2.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-ripple": "1.2.21",
|
|
23
|
+
"@fluid-topics/ft-typography": "1.2.21",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.2.21",
|
|
25
25
|
"lit": "3.1.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "d5ad6e93693f963ea69c3ee8aed39f9c6f0d569a"
|
|
28
28
|
}
|