@fluid-topics/ft-file-drop 1.2.14 → 1.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var Fs={};var Ci={};G(Ci,{ParametrizedLabelResolver:()=>Oi});var Oi=class e{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var n,i;t=this.resolvePluralKey(t,o);let a=(i=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&i!==void 0?i:"";return e.replaceParameters(a,...o)}static replaceParameters(t,...o){return o.forEach((n,i)=>t=t.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,o){for(let n of o)if(typeof n=="number"){let i=`${String(t)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return t}static formatValue(t,o){return t instanceof Date?e.formatDate(t,o):t??""}static formatDate(t,o){let n=i=>o?.includes("date")?t.toLocaleDateString(i):o?.includes("time")?t.toLocaleTimeString(i):t.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Yi={};G(Yi,{FtCommandQueue:()=>zr,FtLitElementRedux:()=>Ke,FtReduxStore:()=>qi,clearAllStores:()=>pf,isFtReduxStore:()=>Te,redux:()=>Ap,reduxEventListener:()=>Rp,reduxReactive:()=>wp});var wp=()=>(e,t)=>{var o;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(t)},Ap=e=>{let t=e??{};return(o,n)=>{var i;let a={hasChanged:Nr,attribute:!1,...t};A(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:l=>l[n],store:t.store})}},Rp=e=>(t,o)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,e)};var zr=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function Te(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ws,Hs,zs,No=Symbol("internalReduxEventsUnsubscribers"),ce=Symbol("internalStoresUnsubscribers"),$e=Symbol("internalStores"),Ke=class extends Z{constructor(){super(...arguments),this[Ws]=new Map,this[Hs]=new Map,this[zs]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[$e].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[$e].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[$e].get(t)}addStore(t,o){var n;o=(n=o??(Te(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[$e].delete(o)}setupStore(t,o){this[$e].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[$e].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[ce].has(t.store):this[ce].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[ce].set(t,o.subscribe(()=>this.updateFromStores())),Te(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.addEventListener(i.eventName,s),this[No].push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ce].forEach((t,o)=>this.unsubscribeFromStore(o)),this[No].forEach(t=>t()),this[No]=[]}unsubscribeFromStore(t){this[ce].has(t)&&this[ce].get(t)(),this[ce].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ws=ce,Hs=$e,zs=No;Ke.reduxProperties=new Map;Ke.reduxReactiveProperties=new Set;Ke.reduxEventListeners=new Map;function Et(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ee(e){return!!e&&!!e[Y]}function Tt(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===kp}(e)||Array.isArray(e)||!!e[Ys]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ys])||Ti(e)||$i(e))}function Ie(e,t,o){o===void 0&&(o=!1),Ye(e)===0?(o?Object.keys:qe)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Ye(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ti(e)?2:$i(e)?3:0}function Ze(e,t){return Ye(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Np(e,t){return Ye(e)===2?e.get(t):e[t]}function Xs(e,t,o){var n=Ye(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Js(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ti(e){return $p&&e instanceof Map}function $i(e){return Ip&&e instanceof Set}function le(e){return e.o||e.t}function Ii(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ec(e);delete t[Y];for(var o=qe(t),n=0;n<o.length;n++){var i=o[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function ki(e,t){return t===void 0&&(t=!1),Di(e)||ee(e)||!Tt(e)||(Ye(e)>1&&(e.set=e.add=e.clear=e.delete=_p),Object.freeze(e),t&&Ie(e,function(o,n){return ki(n,!0)},!0)),e}function _p(){Et(2)}function Di(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zt(e){var t=Li[e];return t||Et(18,e),t}function Pp(e,t){Li[e]||(Li[e]=t)}function Ni(){return Gr}function Ei(e,t){t&&(zt("Patches"),e.u=[],e.s=[],e.v=t)}function _o(e){_i(e),e.p.forEach(Lp),e.p=null}function _i(e){e===Gr&&(Gr=e.l)}function Vs(e){return Gr={p:[],l:Gr,h:e,m:!0,_:0}}function Lp(e){var t=e[Y];t.i===0||t.i===1?t.j():t.g=!0}function wi(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||zt("ES5").S(t,e,n),n?(o[Y].P&&(_o(t),Et(4)),Tt(e)&&(e=Po(t,e),t.l||Lo(t,e)),t.u&&zt("Patches").M(o[Y].t,e,t.u,t.s)):e=Po(t,o,[]),_o(t),t.u&&t.v(t.u,t.s),e!==tc?e:void 0}function Po(e,t,o){if(Di(t))return t;var n=t[Y];if(!n)return Ie(t,function(l,d){return Gs(e,n,t,l,d,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Lo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ii(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ie(a,function(l,d){return Gs(e,n,i,l,d,o,s)}),Lo(e,i,!1),o&&e.u&&zt("Patches").N(n,o,e.u,e.s)}return n.o}function Gs(e,t,o,n,i,a,s){if(ee(i)){var l=Po(e,i,a&&t&&t.i!==3&&!Ze(t.R,n)?a.concat(n):void 0);if(Xs(o,n,l),!ee(l))return;e.m=!1}else s&&o.add(i);if(Tt(i)&&!Di(i)){if(!e.h.D&&e._<1)return;Po(e,i),t&&t.A.l||Lo(e,i)}}function Lo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&ki(t,o)}function Ai(e,t){var o=e[Y];return(o?le(o):e)[t]}function js(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function de(e){e.P||(e.P=!0,e.l&&de(e.l))}function Ri(e){e.o||(e.o=Ii(e.t))}function Pi(e,t,o){var n=Ti(t)?zt("MapSet").F(t,o):$i(t)?zt("MapSet").T(t,o):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:Ni(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=jr;s&&(d=[l],p=Vr);var h=Proxy.revocable(d,p),u=h.revoke,m=h.proxy;return l.k=m,l.j=u,m}(t,o):zt("ES5").J(t,o);return(o?o.A:Ni()).p.push(n),n}function Tp(e){return ee(e)||Et(22,e),function t(o){if(!Tt(o))return o;var n,i=o[Y],a=Ye(o);if(i){if(!i.P&&(i.i<4||!zt("ES5").K(i)))return i.t;i.I=!0,n=Ks(o,a),i.I=!1}else n=Ks(o,a);return Ie(n,function(s,l){i&&Np(i.t,s)===l||Xs(n,s,t(l))}),a===3?new Set(n):n}(e)}function Ks(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ii(e)}function Qs(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[Y];return jr.get(p,s)},set:function(p){var h=this[Y];jr.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&de(d);break;case 4:o(d)&&de(d)}}}function o(s){for(var l=s.t,d=s.k,p=qe(d),h=p.length-1;h>=0;h--){var u=p[h];if(u!==Y){var m=l[u];if(m===void 0&&!Ze(l,u))return!0;var b=d[u],x=b&&b[Y];if(x?x.t!==m:!Js(b,m))return!0}}var O=!!l[Y];return p.length!==qe(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Et(3,JSON.stringify(le(s)))}var a={};Pp("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(u,m){if(u){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,e(x,!0));return b}var O=ec(m);delete O[Y];for(var N=qe(O),P=0;P<N.length;P++){var L=N[P];O[L]=e(L,u||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:Ni(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Y,{value:h,writable:!0}),p},S:function(s,l,d){d?ee(l)&&l[Y].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[Y];if(u){var m=u.t,b=u.k,x=u.R,O=u.i;if(O===4)Ie(b,function(S){S!==Y&&(m[S]!==void 0||Ze(m,S)?x[S]||p(b[S]):(x[S]=!0,de(u)))}),Ie(m,function(S){b[S]!==void 0||Ze(b,S)||(x[S]=!1,de(u))});else if(O===5){if(n(u)&&(de(u),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var P=m.length;P<b.length;P++)x[P]=!0;for(var L=Math.min(b.length,m.length),E=0;E<L;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Zs,Gr,Bi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$p=typeof Map<"u",Ip=typeof Set<"u",qs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",tc=Bi?Symbol.for("immer-nothing"):((Zs={})["immer-nothing"]=!0,Zs),Ys=Bi?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Bi?Symbol.for("immer-state"):"__$immer_state";var kp=""+Object.prototype.constructor,qe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ec=Object.getOwnPropertyDescriptors||function(e){var t={};return qe(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Li={},jr={get:function(e,t){if(t===Y)return e;var o=le(e);if(!Ze(o,t))return function(i,a,s){var l,d=js(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,o,t);var n=o[t];return e.I||!Tt(n)?n:n===Ai(e.t,t)?(Ri(e),e.o[t]=Pi(e.A.h,n,e)):n},has:function(e,t){return t in le(e)},ownKeys:function(e){return Reflect.ownKeys(le(e))},set:function(e,t,o){var n=js(le(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var i=Ai(le(e),t),a=i?.[Y];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Js(o,i)&&(o!==void 0||Ze(e.t,t)))return!0;Ri(e),de(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ai(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ri(e),de(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=le(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Et(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Et(12)}},Vr={};Ie(jr,function(e,t){Vr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Vr.deleteProperty=function(e,t){return Vr.set.call(this,e,t,void 0)},Vr.set=function(e,t,o){return jr.set.call(this,e[0],t,o,e[0])};var Dp=function(){function e(o){var n=this;this.O=qs,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(O){var N=this;O===void 0&&(O=l);for(var P=arguments.length,L=Array(P>1?P-1:0),E=1;E<P;E++)L[E-1]=arguments[E];return d.produce(O,function(S){var w;return(w=a).call.apply(w,[N,S].concat(L))})}}var p;if(typeof a!="function"&&Et(6),s!==void 0&&typeof s!="function"&&Et(7),Tt(i)){var h=Vs(n),u=Pi(n,i,void 0),m=!0;try{p=a(u),m=!1}finally{m?_o(h):_i(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Ei(h,s),wi(O,h)},function(O){throw _o(h),O}):(Ei(h,s),wi(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===tc&&(p=void 0),n.D&&ki(p,!0),s){var b=[],x=[];zt("Patches").M(i,p,b,x),s(b,x)}return p}Et(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),m=1;m<h;m++)u[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(u))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Tt(o)||Et(8),ee(o)&&(o=Tp(o));var n=Vs(this),i=Pi(this,o,void 0);return i[Y].C=!0,_i(n),i},t.finishDraft=function(o,n){var i=o&&o[Y],a=i.A;return Ei(a,n),wi(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!qs&&Et(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=zt("Patches").$;return ee(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),St=new Dp,Bp=St.produce,Hg=St.produceWithPatches.bind(St),zg=St.setAutoFreeze.bind(St),Vg=St.setUseProxies.bind(St),Gg=St.applyPatches.bind(St),jg=St.createDraft.bind(St),Kg=St.finishDraft.bind(St),To=Bp;function pe(e){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(e)}function Ui(e,t){if(pe(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(pe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mi(e){var t=Ui(e,"string");return pe(t)==="symbol"?t:String(t)}function Fi(e,t,o){return t=Mi(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function rc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,n)}return o}function $o(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?rc(Object(o),!0).forEach(function(n){Fi(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):rc(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Wi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Io={INIT:"@@redux/INIT"+Wi(),REPLACE:"@@redux/REPLACE"+Wi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Wi()}};function Up(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Hi(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ut(1));return o(Hi)(e,t)}if(typeof e!="function")throw new Error(ut(2));var i=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(ut(3));return a}function u(O){if(typeof O!="function")throw new Error(ut(4));if(d)throw new Error(ut(5));var N=!0;return p(),l.push(O),function(){if(N){if(d)throw new Error(ut(6));N=!1,p();var L=l.indexOf(O);l.splice(L,1),s=null}}}function m(O){if(!Up(O))throw new Error(ut(7));if(typeof O.type>"u")throw new Error(ut(8));if(d)throw new Error(ut(9));try{d=!0,a=i(a,O)}finally{d=!1}for(var N=s=l,P=0;P<N.length;P++){var L=N[P];L()}return O}function b(O){if(typeof O!="function")throw new Error(ut(10));i=O,m({type:Io.REPLACE})}function x(){var O,N=u;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(ut(11));function E(){L.next&&L.next(h())}E();var S=N(E);return{unsubscribe:S}}},O[oc]=function(){return this},O}return m({type:Io.INIT}),n={dispatch:m,subscribe:u,getState:h,replaceReducer:b},n[oc]=x,n}function Mp(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Io.INIT});if(typeof n>"u")throw new Error(ut(12));if(typeof o(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ut(13))})}function nc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(o[i]=e[i])}var a=Object.keys(o),s,l;try{Mp(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var m=!1,b={},x=0;x<a.length;x++){var O=a[x],N=o[O],P=p[O],L=N(P,h);if(typeof L>"u"){var E=h&&h.type;throw new Error(ut(14))}b[O]=L,m=m||L!==P}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Xe(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ic(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ut(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Xe.apply(void 0,l)(i.dispatch),$o($o({},i),{},{dispatch:a})}}}function ac(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var sc=ac();sc.withExtraArgument=ac;var zi=sc;var fc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fp=function(e,t){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Je=function(e,t){for(var o=0,n=t.length,i=e.length;o<n;o++,i++)e[i]=t[o];return e},Wp=Object.defineProperty,Hp=Object.defineProperties,zp=Object.getOwnPropertyDescriptors,cc=Object.getOwnPropertySymbols,Vp=Object.prototype.hasOwnProperty,Gp=Object.prototype.propertyIsEnumerable,lc=function(e,t,o){return t in e?Wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},fe=function(e,t){for(var o in t||(t={}))Vp.call(t,o)&&lc(e,o,t[o]);if(cc)for(var n=0,i=cc(t);n<i.length;n++){var o=i[n];Gp.call(t,o)&&lc(e,o,t[o])}return e},Vi=function(e,t){return Hp(e,zp(t))},jp=function(e,t,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(p){i(p)}},s=function(d){try{l(o.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(e,t)).next())})};var Kp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xe:Xe.apply(null,arguments)},pb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Zp(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var qp=function(e){fc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Je([void 0],o[0].concat(this)))):new(t.bind.apply(t,Je([void 0],o.concat(this))))},t}(Array),Yp=function(e){fc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Je([void 0],o[0].concat(this)))):new(t.bind.apply(t,Je([void 0],o.concat(this))))},t}(Array);function Ki(e){return Tt(e)?To(e,function(){}):e}function Xp(e){return typeof e=="boolean"}function Jp(){return function(t){return Qp(t)}}function Qp(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new qp;if(o&&(Xp(o)?l.push(zi):l.push(zi.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var Gi=!0;function uc(e){var t=Jp(),o=e||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?t():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,u=o.enhancers,m=u===void 0?void 0:u,b;if(typeof i=="function")b=i;else if(Zp(i))b=nc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(t),!Gi&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Gi&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ic.apply(void 0,x),N=Xe;d&&(N=Kp(fe({trace:!Gi},typeof d=="object"&&d)));var P=new Yp(O),L=P;Array.isArray(m)?L=Je([O],m):typeof m=="function"&&(L=m(P));var E=N.apply(void 0,L);return Hi(b,h,E)}function ue(e,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return fe(fe({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function hc(e){var t={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,o,n]}function tf(e){return typeof e=="function"}function ef(e,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?hc(t):[t,o,n],a=i[0],s=i[1],l=i[2],d;if(tf(e))d=function(){return Ki(e())};else{var p=Ki(e);d=function(){return p}}function h(u,m){u===void 0&&(u=d());var b=Je([a[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(ee(x)){var N=x,P=O(N,m);return P===void 0?x:P}else{if(Tt(x))return To(x,function(L){return O(L,m)});var P=O(x,m);if(P===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},u)}return h.getInitialState=d,h}function rf(e,t){return e+"/"+t}function yc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Ki(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var u=n[h],m=rf(t,h),b,x;"reducer"in u?(b=u.reducer,x=u.prepare):b=u,a[h]=b,s[m]=b,l[h]=x?ue(m,x):ue(m)});function d(){var h=typeof e.extraReducers=="function"?hc(e.extraReducers):[e.extraReducers],u=h[0],m=u===void 0?{}:u,b=h[1],x=b===void 0?[]:b,O=h[2],N=O===void 0?void 0:O,P=fe(fe({},m),s);return ef(o,function(L){for(var E in P)L.addCase(E,P[E]);for(var S=0,w=x;S<w.length;S++){var T=w[S];L.addMatcher(T.matcher,T.reducer)}N&&L.addDefaultCase(N)})}var p;return{name:t,reducer:function(h,u){return p||(p=d()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var of="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nf=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=of[Math.random()*64|0];return t},af=["name","message","stack","code"],ji=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),dc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),sf=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=af;o<n.length;o++){var i=n[o];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},yb=function(){function e(t,o,n){var i=ue(t+"/fulfilled",function(h,u,m,b){return{payload:h,meta:Vi(fe({},b||{}),{arg:m,requestId:u,requestStatus:"fulfilled"})}}),a=ue(t+"/pending",function(h,u,m){return{payload:void 0,meta:Vi(fe({},m||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=ue(t+"/rejected",function(h,u,m,b,x){return{payload:b,error:(n&&n.serializeError||sf)(h||"Rejected"),meta:Vi(fe({},x||{}),{arg:m,requestId:u,rejectedWithValue:!!b,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 p(h){return function(u,m,b){var x=n?.idGenerator?n.idGenerator(h):nf(),O=new d,N,P=!1;function L(S){N=S,O.abort()}var E=function(){return jp(this,null,function(){var S,w,T,B,z,H,I;return Fp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),B=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),lf(B)?[4,B]:[3,2];case 1:B=y.sent(),y.label=2;case 2:if(B===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,z=new Promise(function(v,$){return O.signal.addEventListener("abort",function(){return $({name:"AbortError",message:N||"Aborted"})})}),u(a(x,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([z,Promise.resolve(o(h,{dispatch:u,getState:m,extra:b,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(v,$){return new ji(v,$)},fulfillWithValue:function(v,$){return new dc(v,$)}})).then(function(v){if(v instanceof ji)throw v;return v instanceof dc?i(v.payload,x,h,v.meta):i(v,x,h)})])];case 3:return T=y.sent(),[3,5];case 4:return H=y.sent(),T=H instanceof ji?s(null,x,h,H.payload,H.meta):s(H,x,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match(T)&&T.meta.condition,I||u(T),[2,T]}})})}();return Object.assign(E,{abort:L,requestId:x,arg:h,unwrap:function(){return E.then(cf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function cf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function lf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var mc="listener",gc="completed",bc="cancelled",mb="task-"+bc,gb="task-"+gc,bb=mc+"-"+bc,xb=mc+"-"+gc;var Zi="listenerMiddleware";var vb=ue(Zi+"/add"),Sb=ue(Zi+"/removeAll"),Ob=ue(Zi+"/remove");var pc,Cb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(pc||(pc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},df=function(e){return function(t){setTimeout(t,e)}},Eb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:df(10);Qs();window.ftReduxStores||(window.ftReduxStores={});var qi=class e extends Re{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Te(a))return a;if(i==null)return;let s=yc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=uc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new e(s,l)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new zr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function pf(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Te(t)&&t.clear()}var Qi={};G(Qi,{scrollHelper:()=>ff});var Xi,ko=new Map,Ji=class{lock(t,o){if(o){let n=ko.get(o);if(n==null||n===t)return ko.set(o,t),o}}release(t,o){o&&ko.get(o)===t&&ko.delete(o)}findFirstScrollableParent(t){let o,n=i=>{var a;i.stopPropagation();let s,l;for(let d of i.composedPath()){let p=d,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}o=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",n),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,o){let n=0;for(;o&&o.offsetParent!==t.offsetParent;)n+=o.offsetTop,o=o.offsetParent;return n+o.offsetTop-t.offsetTop}computeTopOffsetRatio(t,o){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(t,o){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,t),a=i-n.clientHeight+t.clientHeight,s=i,l=_r(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Xi=window.FluidTopicsScrollHelper)!==null&&Xi!==void 0?Xi:new Ji;var ff=window.FluidTopicsScrollHelper;var ta={};G(ta,{shadowQuerySelector:()=>uf,shadowQuerySelectorAll:()=>hf});function uf(e,t,...o){var n;let i=e.querySelector(t);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function hf(e,t,...o){let n=[...e.querySelectorAll(t)];for(let i of o)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var ea={};G(ea,{SearchPlaceConverter:()=>Uo,SearchPlaceQueryParams:()=>j,isSearchPlaceQueryParams:()=>zc,serializeRequest:()=>gf});var yf=kl(vc(),1);var Sc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Sc||(Sc={}));var Oc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Oc||(Oc={}));var Cc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Cc||(Cc={}));var Ec;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Ec||(Ec={}));var wc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(wc||(wc={}));var Ac;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ac||(Ac={}));var Rc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Rc||(Rc={}));var Nc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Nc||(Nc={}));var _c;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(_c||(_c={}));var Pc;(function(e){e.ASC="ASC",e.DESC="DESC"})(Pc||(Pc={}));var Lc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Lc||(Lc={}));var Tc;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Tc||(Tc={}));var Uc=e=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(e);var $c;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})($c||($c={}));var Ic;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ic||(Ic={}));var kc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(kc||(kc={}));var Kr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Kr||(Kr={}));var Mc=e=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(e);var Dc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Dc||(Dc={}));var Bc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Bc||(Bc={}));var lt;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(lt||(lt={}));var Fc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Fc||(Fc={}));var Wc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Wc||(Wc={}));var Hb={[lt.PERSONAL_BOOK_SHARE_USER]:[lt.PERSONAL_BOOK_USER],[lt.HTML_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.PDF_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.KHUB_ADMIN]:[lt.CONTENT_PUBLISHER],[lt.ADMIN]:[lt.KHUB_ADMIN,lt.USERS_ADMIN,lt.PORTAL_ADMIN],[lt.DEVELOPER]:[lt.BETA_USER,lt.DEBUG_USER]};function mf(e){return`"${e}"`}function Hc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function gf(e,t){return new Uo(e).serialize(t)}var j;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(j||(j={}));var bf=new Set(Object.values(j));function zc(e){return bf.has(e)}var Uo=class{constructor(t,o={},n=20,i=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,o){return this.serializeToCurrentPageIfPossible(t,o??"/search")}serializeToCurrentPageIfPossible(t,o){let n=this.toURLSearchParams(t).toString(),i=o==null||o.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=n,a.toString()}toURLSearchParams(t,o=!1){var n,i,a,s,l,d,p,h,u,m,b,x;let O=new URLSearchParams;t.contentLocale?(!o||t.contentLocale!==this.defaultContentLocale)&&O.append(j.LOCALE,t.contentLocale):O.append(j.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(j.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&O.append(j.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(j.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((i=t.sort)===null||i===void 0?void 0:i.length)>0&&t.sort[0].key==="ft:lastEdition"&&O.append(j.SORT,"last_update");let N=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(S=>S.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let S=N.map(w=>{var T,B;let z=((B=(T=w.valueFilter)===null||T===void 0?void 0:T.values)!==null&&B!==void 0?B:[]).map(H=>this.escapeFilters(H)).map(H=>encodeURIComponent(mf(Hc(H)))).join("_");return`${w.key}~${z}`}).join("*");O.append(j.VALUE_FILTERS,S)}let P=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(S=>S.dateFilter))!==null&&d!==void 0?d:[];if(P.length>0){let S=P.map(w=>{var T;return`${w.key}~${(T=w.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");O.append(j.DATE_FILTERS,S)}let L=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let S=L.map(w=>{var T,B;return`${w.key}~${(T=w.rangeFilter)===null||T===void 0?void 0:T.from}_${(B=w.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");O.append(j.RANGE_FILTERS,S)}let E=(u=t.otherQueryParams)!==null&&u!==void 0?u:{};for(let S in E)O.append(S,E[S]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(b=t.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&O.append(j.PER_PAGE,String(t.paging.perPage)),O}parse(t){var o;let n=t.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(t){var o,n,i,a,s,l,d,p;let h=t.get(j.LOCALE)==="all"?void 0:t.get(j.LOCALE),u=((o=t.get(j.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=t.get(j.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=t.get(j.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=t.get(j.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),O={};for(let N of t.keys())zc(N)||(O[N]=t.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(j.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Uc(u)?u:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:_r(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(t){var o,n,i,a,s,l;let d=[];return t.has(j.FILTERS)&&(d=this.parseValueFilters((o=t.get(j.FILTERS))!==null&&o!==void 0?o:"")),(n=t.has(j.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=t.get(j.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(j.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(j.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(j.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(o=>o.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Hc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],dateFilter:{type:Kr[o[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replaceAll(o,n);return t}superEscapeFilters(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replaceAll(n,i);return t}unescapeFilterValue(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replace(i,o);return t}parseLegacyPeriodFilter(t){if(Mc(t))return[{key:"ft:lastEdition",dateFilter:{type:Kr[t]}}];if(t.startsWith("CUSTOM_")){let[o,n,i]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var oa={};G(oa,{toFtFormComponent:()=>ra});var Mo=Symbol("elementInternals");function ra(e,t){class o extends e{static get formAssociated(){return!0}get form(){return this[Mo].form}constructor(...i){super(i),this[Mo]=this.attachInternals(),this[Mo].role=t}setFormValue(i){this[Mo].setFormValue(i)}}return o}var ia={};G(ia,{DateFormatter:()=>na});var na=class{static format(t,o,n,i){return window.moment?window.moment(t).locale(o).format(this.getDateFormat(n,i)):t}static getDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}};var aa,sa,ca,la,Zr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ca=(sa=(aa=window.safari)===null||aa===void 0?void 0:aa.pushNotification)===null||sa===void 0?void 0:sa.toString())!==null&&ca!==void 0?ca:"")==="[object SafariRemoteNotification]",xf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(la=window.ftGlobals)!==null&&la!==void 0?la:{lit:on,litDecorators:an,litRepeat:sn,litClassMap:cn,litStyleMap:ln,litUnsafeHTML:pn,wcUtils:{...xn,...un,...Sn,...ia,...On,...wn,...ti,...gn,...yi,...Qn,...bi,...gi,...Us,...Cn,...vi,...Si,...Fs,...Ci,...Yi,...mi,...Qi,...ta,...ea,...oa,isSafari:Zr,isTouchScreen:xf,setVariable:C}};function Vc(e,t,o){if(e.length==0)return!0;let n=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),i=new RegExp(n),a=t.includes(".")?"."+t.split(".").pop():void 0;return a&&i.test(a)?!0:i.test(o)}var Gc=r.extend("--ft-ripple-color","",M.colorContent),R={color:Gc,backgroundColor:r.extend("--ft-ripple-background-color","",Gc),opacityContentOnSurfacePressed:r.external(M.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(M.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(M.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(M.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},jc=r.extend("--ft-ripple-color","",M.colorPrimary),Kc={color:jc,backgroundColor:r.extend("--ft-ripple-background-color","",jc)},Zc=r.extend("--ft-ripple-color","",M.colorSecondary),qc={color:Zc,backgroundColor:r.extend("--ft-ripple-background-color","",Zc)},Yc=D`
50
+ `;var Fs={};var Ci={};G(Ci,{ParametrizedLabelResolver:()=>Oi});var Oi=class e{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var n,i;t=this.resolvePluralKey(t,o);let a=(i=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&i!==void 0?i:"";return e.replaceParameters(a,...o)}static replaceParameters(t,...o){return o.forEach((n,i)=>t=t.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,o){for(let n of o)if(typeof n=="number"){let i=`${String(t)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return t}static formatValue(t,o){return t instanceof Date?e.formatDate(t,o):t??""}static formatDate(t,o){let n=i=>o?.includes("date")?t.toLocaleDateString(i):o?.includes("time")?t.toLocaleTimeString(i):t.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Yi={};G(Yi,{FtCommandQueue:()=>zr,FtLitElementRedux:()=>Ke,FtReduxStore:()=>qi,clearAllStores:()=>pf,isFtReduxStore:()=>Te,redux:()=>Ap,reduxEventListener:()=>Rp,reduxReactive:()=>wp});var wp=()=>(e,t)=>{var o;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(t)},Ap=e=>{let t=e??{};return(o,n)=>{var i;let a={hasChanged:Nr,attribute:!1,...t};A(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:l=>l[n],store:t.store})}},Rp=e=>(t,o)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,e)};var zr=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function Te(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ws,Hs,zs,No=Symbol("internalReduxEventsUnsubscribers"),ce=Symbol("internalStoresUnsubscribers"),$e=Symbol("internalStores"),Ke=class extends Z{constructor(){super(...arguments),this[Ws]=new Map,this[Hs]=new Map,this[zs]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[$e].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[$e].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[$e].get(t)}addStore(t,o){var n;o=(n=o??(Te(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[$e].delete(o)}setupStore(t,o){this[$e].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[$e].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[ce].has(t.store):this[ce].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[ce].set(t,o.subscribe(()=>this.updateFromStores())),Te(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.addEventListener(i.eventName,s),this[No].push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ce].forEach((t,o)=>this.unsubscribeFromStore(o)),this[No].forEach(t=>t()),this[No]=[]}unsubscribeFromStore(t){this[ce].has(t)&&this[ce].get(t)(),this[ce].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ws=ce,Hs=$e,zs=No;Ke.reduxProperties=new Map;Ke.reduxReactiveProperties=new Set;Ke.reduxEventListeners=new Map;function Et(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ee(e){return!!e&&!!e[Y]}function Tt(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===kp}(e)||Array.isArray(e)||!!e[Ys]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ys])||Ti(e)||$i(e))}function Ie(e,t,o){o===void 0&&(o=!1),Ye(e)===0?(o?Object.keys:qe)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Ye(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ti(e)?2:$i(e)?3:0}function Ze(e,t){return Ye(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Np(e,t){return Ye(e)===2?e.get(t):e[t]}function Xs(e,t,o){var n=Ye(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Js(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ti(e){return $p&&e instanceof Map}function $i(e){return Ip&&e instanceof Set}function le(e){return e.o||e.t}function Ii(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ec(e);delete t[Y];for(var o=qe(t),n=0;n<o.length;n++){var i=o[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function ki(e,t){return t===void 0&&(t=!1),Di(e)||ee(e)||!Tt(e)||(Ye(e)>1&&(e.set=e.add=e.clear=e.delete=_p),Object.freeze(e),t&&Ie(e,function(o,n){return ki(n,!0)},!0)),e}function _p(){Et(2)}function Di(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zt(e){var t=Li[e];return t||Et(18,e),t}function Pp(e,t){Li[e]||(Li[e]=t)}function Ni(){return Gr}function Ei(e,t){t&&(zt("Patches"),e.u=[],e.s=[],e.v=t)}function _o(e){_i(e),e.p.forEach(Lp),e.p=null}function _i(e){e===Gr&&(Gr=e.l)}function Vs(e){return Gr={p:[],l:Gr,h:e,m:!0,_:0}}function Lp(e){var t=e[Y];t.i===0||t.i===1?t.j():t.g=!0}function wi(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||zt("ES5").S(t,e,n),n?(o[Y].P&&(_o(t),Et(4)),Tt(e)&&(e=Po(t,e),t.l||Lo(t,e)),t.u&&zt("Patches").M(o[Y].t,e,t.u,t.s)):e=Po(t,o,[]),_o(t),t.u&&t.v(t.u,t.s),e!==tc?e:void 0}function Po(e,t,o){if(Di(t))return t;var n=t[Y];if(!n)return Ie(t,function(l,d){return Gs(e,n,t,l,d,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Lo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ii(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ie(a,function(l,d){return Gs(e,n,i,l,d,o,s)}),Lo(e,i,!1),o&&e.u&&zt("Patches").N(n,o,e.u,e.s)}return n.o}function Gs(e,t,o,n,i,a,s){if(ee(i)){var l=Po(e,i,a&&t&&t.i!==3&&!Ze(t.R,n)?a.concat(n):void 0);if(Xs(o,n,l),!ee(l))return;e.m=!1}else s&&o.add(i);if(Tt(i)&&!Di(i)){if(!e.h.D&&e._<1)return;Po(e,i),t&&t.A.l||Lo(e,i)}}function Lo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&ki(t,o)}function Ai(e,t){var o=e[Y];return(o?le(o):e)[t]}function js(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function de(e){e.P||(e.P=!0,e.l&&de(e.l))}function Ri(e){e.o||(e.o=Ii(e.t))}function Pi(e,t,o){var n=Ti(t)?zt("MapSet").F(t,o):$i(t)?zt("MapSet").T(t,o):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:Ni(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=jr;s&&(d=[l],p=Vr);var h=Proxy.revocable(d,p),u=h.revoke,m=h.proxy;return l.k=m,l.j=u,m}(t,o):zt("ES5").J(t,o);return(o?o.A:Ni()).p.push(n),n}function Tp(e){return ee(e)||Et(22,e),function t(o){if(!Tt(o))return o;var n,i=o[Y],a=Ye(o);if(i){if(!i.P&&(i.i<4||!zt("ES5").K(i)))return i.t;i.I=!0,n=Ks(o,a),i.I=!1}else n=Ks(o,a);return Ie(n,function(s,l){i&&Np(i.t,s)===l||Xs(n,s,t(l))}),a===3?new Set(n):n}(e)}function Ks(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ii(e)}function Qs(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[Y];return jr.get(p,s)},set:function(p){var h=this[Y];jr.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&de(d);break;case 4:o(d)&&de(d)}}}function o(s){for(var l=s.t,d=s.k,p=qe(d),h=p.length-1;h>=0;h--){var u=p[h];if(u!==Y){var m=l[u];if(m===void 0&&!Ze(l,u))return!0;var b=d[u],x=b&&b[Y];if(x?x.t!==m:!Js(b,m))return!0}}var O=!!l[Y];return p.length!==qe(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Et(3,JSON.stringify(le(s)))}var a={};Pp("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(u,m){if(u){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,e(x,!0));return b}var O=ec(m);delete O[Y];for(var N=qe(O),P=0;P<N.length;P++){var L=N[P];O[L]=e(L,u||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:Ni(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Y,{value:h,writable:!0}),p},S:function(s,l,d){d?ee(l)&&l[Y].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[Y];if(u){var m=u.t,b=u.k,x=u.R,O=u.i;if(O===4)Ie(b,function(S){S!==Y&&(m[S]!==void 0||Ze(m,S)?x[S]||p(b[S]):(x[S]=!0,de(u)))}),Ie(m,function(S){b[S]!==void 0||Ze(b,S)||(x[S]=!1,de(u))});else if(O===5){if(n(u)&&(de(u),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var P=m.length;P<b.length;P++)x[P]=!0;for(var L=Math.min(b.length,m.length),E=0;E<L;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Zs,Gr,Bi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$p=typeof Map<"u",Ip=typeof Set<"u",qs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",tc=Bi?Symbol.for("immer-nothing"):((Zs={})["immer-nothing"]=!0,Zs),Ys=Bi?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Bi?Symbol.for("immer-state"):"__$immer_state";var kp=""+Object.prototype.constructor,qe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ec=Object.getOwnPropertyDescriptors||function(e){var t={};return qe(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Li={},jr={get:function(e,t){if(t===Y)return e;var o=le(e);if(!Ze(o,t))return function(i,a,s){var l,d=js(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,o,t);var n=o[t];return e.I||!Tt(n)?n:n===Ai(e.t,t)?(Ri(e),e.o[t]=Pi(e.A.h,n,e)):n},has:function(e,t){return t in le(e)},ownKeys:function(e){return Reflect.ownKeys(le(e))},set:function(e,t,o){var n=js(le(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var i=Ai(le(e),t),a=i?.[Y];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Js(o,i)&&(o!==void 0||Ze(e.t,t)))return!0;Ri(e),de(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ai(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ri(e),de(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=le(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Et(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Et(12)}},Vr={};Ie(jr,function(e,t){Vr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Vr.deleteProperty=function(e,t){return Vr.set.call(this,e,t,void 0)},Vr.set=function(e,t,o){return jr.set.call(this,e[0],t,o,e[0])};var Dp=function(){function e(o){var n=this;this.O=qs,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(O){var N=this;O===void 0&&(O=l);for(var P=arguments.length,L=Array(P>1?P-1:0),E=1;E<P;E++)L[E-1]=arguments[E];return d.produce(O,function(S){var w;return(w=a).call.apply(w,[N,S].concat(L))})}}var p;if(typeof a!="function"&&Et(6),s!==void 0&&typeof s!="function"&&Et(7),Tt(i)){var h=Vs(n),u=Pi(n,i,void 0),m=!0;try{p=a(u),m=!1}finally{m?_o(h):_i(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Ei(h,s),wi(O,h)},function(O){throw _o(h),O}):(Ei(h,s),wi(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===tc&&(p=void 0),n.D&&ki(p,!0),s){var b=[],x=[];zt("Patches").M(i,p,b,x),s(b,x)}return p}Et(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),m=1;m<h;m++)u[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(u))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Tt(o)||Et(8),ee(o)&&(o=Tp(o));var n=Vs(this),i=Pi(this,o,void 0);return i[Y].C=!0,_i(n),i},t.finishDraft=function(o,n){var i=o&&o[Y],a=i.A;return Ei(a,n),wi(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!qs&&Et(20),this.O=o},t.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=zt("Patches").$;return ee(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),St=new Dp,Bp=St.produce,Hg=St.produceWithPatches.bind(St),zg=St.setAutoFreeze.bind(St),Vg=St.setUseProxies.bind(St),Gg=St.applyPatches.bind(St),jg=St.createDraft.bind(St),Kg=St.finishDraft.bind(St),To=Bp;function pe(e){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(e)}function Ui(e,t){if(pe(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(pe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mi(e){var t=Ui(e,"string");return pe(t)==="symbol"?t:String(t)}function Fi(e,t,o){return t=Mi(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function rc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,n)}return o}function $o(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?rc(Object(o),!0).forEach(function(n){Fi(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):rc(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Wi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Io={INIT:"@@redux/INIT"+Wi(),REPLACE:"@@redux/REPLACE"+Wi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Wi()}};function Up(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Hi(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ut(1));return o(Hi)(e,t)}if(typeof e!="function")throw new Error(ut(2));var i=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(ut(3));return a}function u(O){if(typeof O!="function")throw new Error(ut(4));if(d)throw new Error(ut(5));var N=!0;return p(),l.push(O),function(){if(N){if(d)throw new Error(ut(6));N=!1,p();var L=l.indexOf(O);l.splice(L,1),s=null}}}function m(O){if(!Up(O))throw new Error(ut(7));if(typeof O.type>"u")throw new Error(ut(8));if(d)throw new Error(ut(9));try{d=!0,a=i(a,O)}finally{d=!1}for(var N=s=l,P=0;P<N.length;P++){var L=N[P];L()}return O}function b(O){if(typeof O!="function")throw new Error(ut(10));i=O,m({type:Io.REPLACE})}function x(){var O,N=u;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(ut(11));function E(){L.next&&L.next(h())}E();var S=N(E);return{unsubscribe:S}}},O[oc]=function(){return this},O}return m({type:Io.INIT}),n={dispatch:m,subscribe:u,getState:h,replaceReducer:b},n[oc]=x,n}function Mp(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Io.INIT});if(typeof n>"u")throw new Error(ut(12));if(typeof o(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ut(13))})}function nc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(o[i]=e[i])}var a=Object.keys(o),s,l;try{Mp(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var m=!1,b={},x=0;x<a.length;x++){var O=a[x],N=o[O],P=p[O],L=N(P,h);if(typeof L>"u"){var E=h&&h.type;throw new Error(ut(14))}b[O]=L,m=m||L!==P}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Xe(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ic(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ut(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Xe.apply(void 0,l)(i.dispatch),$o($o({},i),{},{dispatch:a})}}}function ac(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var sc=ac();sc.withExtraArgument=ac;var zi=sc;var fc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fp=function(e,t){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Je=function(e,t){for(var o=0,n=t.length,i=e.length;o<n;o++,i++)e[i]=t[o];return e},Wp=Object.defineProperty,Hp=Object.defineProperties,zp=Object.getOwnPropertyDescriptors,cc=Object.getOwnPropertySymbols,Vp=Object.prototype.hasOwnProperty,Gp=Object.prototype.propertyIsEnumerable,lc=function(e,t,o){return t in e?Wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},fe=function(e,t){for(var o in t||(t={}))Vp.call(t,o)&&lc(e,o,t[o]);if(cc)for(var n=0,i=cc(t);n<i.length;n++){var o=i[n];Gp.call(t,o)&&lc(e,o,t[o])}return e},Vi=function(e,t){return Hp(e,zp(t))},jp=function(e,t,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(p){i(p)}},s=function(d){try{l(o.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(e,t)).next())})};var Kp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xe:Xe.apply(null,arguments)},pb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Zp(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var qp=function(e){fc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Je([void 0],o[0].concat(this)))):new(t.bind.apply(t,Je([void 0],o.concat(this))))},t}(Array),Yp=function(e){fc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Je([void 0],o[0].concat(this)))):new(t.bind.apply(t,Je([void 0],o.concat(this))))},t}(Array);function Ki(e){return Tt(e)?To(e,function(){}):e}function Xp(e){return typeof e=="boolean"}function Jp(){return function(t){return Qp(t)}}function Qp(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new qp;if(o&&(Xp(o)?l.push(zi):l.push(zi.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var Gi=!0;function uc(e){var t=Jp(),o=e||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?t():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,u=o.enhancers,m=u===void 0?void 0:u,b;if(typeof i=="function")b=i;else if(Zp(i))b=nc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(t),!Gi&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Gi&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ic.apply(void 0,x),N=Xe;d&&(N=Kp(fe({trace:!Gi},typeof d=="object"&&d)));var P=new Yp(O),L=P;Array.isArray(m)?L=Je([O],m):typeof m=="function"&&(L=m(P));var E=N.apply(void 0,L);return Hi(b,h,E)}function ue(e,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return fe(fe({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function hc(e){var t={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,o,n]}function tf(e){return typeof e=="function"}function ef(e,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?hc(t):[t,o,n],a=i[0],s=i[1],l=i[2],d;if(tf(e))d=function(){return Ki(e())};else{var p=Ki(e);d=function(){return p}}function h(u,m){u===void 0&&(u=d());var b=Je([a[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(ee(x)){var N=x,P=O(N,m);return P===void 0?x:P}else{if(Tt(x))return To(x,function(L){return O(L,m)});var P=O(x,m);if(P===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},u)}return h.getInitialState=d,h}function rf(e,t){return e+"/"+t}function yc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Ki(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var u=n[h],m=rf(t,h),b,x;"reducer"in u?(b=u.reducer,x=u.prepare):b=u,a[h]=b,s[m]=b,l[h]=x?ue(m,x):ue(m)});function d(){var h=typeof e.extraReducers=="function"?hc(e.extraReducers):[e.extraReducers],u=h[0],m=u===void 0?{}:u,b=h[1],x=b===void 0?[]:b,O=h[2],N=O===void 0?void 0:O,P=fe(fe({},m),s);return ef(o,function(L){for(var E in P)L.addCase(E,P[E]);for(var S=0,w=x;S<w.length;S++){var T=w[S];L.addMatcher(T.matcher,T.reducer)}N&&L.addDefaultCase(N)})}var p;return{name:t,reducer:function(h,u){return p||(p=d()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var of="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nf=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=of[Math.random()*64|0];return t},af=["name","message","stack","code"],ji=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),dc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),sf=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=af;o<n.length;o++){var i=n[o];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},yb=function(){function e(t,o,n){var i=ue(t+"/fulfilled",function(h,u,m,b){return{payload:h,meta:Vi(fe({},b||{}),{arg:m,requestId:u,requestStatus:"fulfilled"})}}),a=ue(t+"/pending",function(h,u,m){return{payload:void 0,meta:Vi(fe({},m||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=ue(t+"/rejected",function(h,u,m,b,x){return{payload:b,error:(n&&n.serializeError||sf)(h||"Rejected"),meta:Vi(fe({},x||{}),{arg:m,requestId:u,rejectedWithValue:!!b,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 p(h){return function(u,m,b){var x=n?.idGenerator?n.idGenerator(h):nf(),O=new d,N,P=!1;function L(S){N=S,O.abort()}var E=function(){return jp(this,null,function(){var S,w,T,B,z,H,I;return Fp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),B=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),lf(B)?[4,B]:[3,2];case 1:B=y.sent(),y.label=2;case 2:if(B===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,z=new Promise(function(v,$){return O.signal.addEventListener("abort",function(){return $({name:"AbortError",message:N||"Aborted"})})}),u(a(x,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([z,Promise.resolve(o(h,{dispatch:u,getState:m,extra:b,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(v,$){return new ji(v,$)},fulfillWithValue:function(v,$){return new dc(v,$)}})).then(function(v){if(v instanceof ji)throw v;return v instanceof dc?i(v.payload,x,h,v.meta):i(v,x,h)})])];case 3:return T=y.sent(),[3,5];case 4:return H=y.sent(),T=H instanceof ji?s(null,x,h,H.payload,H.meta):s(H,x,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match(T)&&T.meta.condition,I||u(T),[2,T]}})})}();return Object.assign(E,{abort:L,requestId:x,arg:h,unwrap:function(){return E.then(cf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function cf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function lf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var mc="listener",gc="completed",bc="cancelled",mb="task-"+bc,gb="task-"+gc,bb=mc+"-"+bc,xb=mc+"-"+gc;var Zi="listenerMiddleware";var vb=ue(Zi+"/add"),Sb=ue(Zi+"/removeAll"),Ob=ue(Zi+"/remove");var pc,Cb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(pc||(pc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},df=function(e){return function(t){setTimeout(t,e)}},Eb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:df(10);Qs();window.ftReduxStores||(window.ftReduxStores={});var qi=class e extends Re{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Te(a))return a;if(i==null)return;let s=yc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=uc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new e(s,l)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new zr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function pf(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Te(t)&&t.clear()}var Qi={};G(Qi,{scrollHelper:()=>ff});var Xi,ko=new Map,Ji=class{lock(t,o){if(o){let n=ko.get(o);if(n==null||n===t)return ko.set(o,t),o}}release(t,o){o&&ko.get(o)===t&&ko.delete(o)}findFirstScrollableParent(t){let o,n=i=>{var a;i.stopPropagation();let s,l;for(let d of i.composedPath()){let p=d,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}o=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",n),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,o){var n,i;let a=0;for(;o&&o.offsetParent!==t.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-t.offsetTop}computeTopOffsetRatio(t,o){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(t,o){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,t),a=i-n.clientHeight+t.clientHeight,s=i,l=_r(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Xi=window.FluidTopicsScrollHelper)!==null&&Xi!==void 0?Xi:new Ji;var ff=window.FluidTopicsScrollHelper;var ta={};G(ta,{shadowQuerySelector:()=>uf,shadowQuerySelectorAll:()=>hf});function uf(e,t,...o){var n;let i=e.querySelector(t);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function hf(e,t,...o){let n=[...e.querySelectorAll(t)];for(let i of o)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var ea={};G(ea,{SearchPlaceConverter:()=>Uo,SearchPlaceQueryParams:()=>j,isSearchPlaceQueryParams:()=>zc,serializeRequest:()=>gf});var yf=kl(vc(),1);var Sc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Sc||(Sc={}));var Oc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Oc||(Oc={}));var Cc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Cc||(Cc={}));var Ec;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Ec||(Ec={}));var wc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(wc||(wc={}));var Ac;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ac||(Ac={}));var Rc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Rc||(Rc={}));var Nc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Nc||(Nc={}));var _c;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(_c||(_c={}));var Pc;(function(e){e.ASC="ASC",e.DESC="DESC"})(Pc||(Pc={}));var Lc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Lc||(Lc={}));var Tc;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Tc||(Tc={}));var Uc=e=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(e);var $c;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})($c||($c={}));var Ic;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ic||(Ic={}));var kc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(kc||(kc={}));var Kr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Kr||(Kr={}));var Mc=e=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(e);var Dc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Dc||(Dc={}));var Bc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Bc||(Bc={}));var lt;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(lt||(lt={}));var Fc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Fc||(Fc={}));var Wc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Wc||(Wc={}));var Hb={[lt.PERSONAL_BOOK_SHARE_USER]:[lt.PERSONAL_BOOK_USER],[lt.HTML_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.PDF_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.KHUB_ADMIN]:[lt.CONTENT_PUBLISHER],[lt.ADMIN]:[lt.KHUB_ADMIN,lt.USERS_ADMIN,lt.PORTAL_ADMIN],[lt.DEVELOPER]:[lt.BETA_USER,lt.DEBUG_USER]};function mf(e){return`"${e}"`}function Hc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function gf(e,t){return new Uo(e).serialize(t)}var j;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(j||(j={}));var bf=new Set(Object.values(j));function zc(e){return bf.has(e)}var Uo=class{constructor(t,o={},n=20,i=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,o){return this.serializeToCurrentPageIfPossible(t,o??"/search")}serializeToCurrentPageIfPossible(t,o){let n=this.toURLSearchParams(t).toString(),i=o==null||o.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=n,a.toString()}toURLSearchParams(t,o=!1){var n,i,a,s,l,d,p,h,u,m,b,x;let O=new URLSearchParams;t.contentLocale?(!o||t.contentLocale!==this.defaultContentLocale)&&O.append(j.LOCALE,t.contentLocale):O.append(j.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(j.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&O.append(j.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(j.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((i=t.sort)===null||i===void 0?void 0:i.length)>0&&t.sort[0].key==="ft:lastEdition"&&O.append(j.SORT,"last_update");let N=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(S=>S.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let S=N.map(w=>{var T,B;let z=((B=(T=w.valueFilter)===null||T===void 0?void 0:T.values)!==null&&B!==void 0?B:[]).map(H=>this.escapeFilters(H)).map(H=>encodeURIComponent(mf(Hc(H)))).join("_");return`${w.key}~${z}`}).join("*");O.append(j.VALUE_FILTERS,S)}let P=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(S=>S.dateFilter))!==null&&d!==void 0?d:[];if(P.length>0){let S=P.map(w=>{var T;return`${w.key}~${(T=w.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");O.append(j.DATE_FILTERS,S)}let L=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let S=L.map(w=>{var T,B;return`${w.key}~${(T=w.rangeFilter)===null||T===void 0?void 0:T.from}_${(B=w.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");O.append(j.RANGE_FILTERS,S)}let E=(u=t.otherQueryParams)!==null&&u!==void 0?u:{};for(let S in E)O.append(S,E[S]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(b=t.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&O.append(j.PER_PAGE,String(t.paging.perPage)),O}parse(t){var o;let n=t.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(t){var o,n,i,a,s,l,d,p;let h=t.get(j.LOCALE)==="all"?void 0:t.get(j.LOCALE),u=((o=t.get(j.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=t.get(j.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=t.get(j.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=t.get(j.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),O={};for(let N of t.keys())zc(N)||(O[N]=t.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(j.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Uc(u)?u:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:_r(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(t){var o,n,i,a,s,l;let d=[];return t.has(j.FILTERS)&&(d=this.parseValueFilters((o=t.get(j.FILTERS))!==null&&o!==void 0?o:"")),(n=t.has(j.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=t.get(j.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(j.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(j.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(j.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(o=>o.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Hc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],dateFilter:{type:Kr[o[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replaceAll(o,n);return t}superEscapeFilters(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replaceAll(n,i);return t}unescapeFilterValue(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replace(i,o);return t}parseLegacyPeriodFilter(t){if(Mc(t))return[{key:"ft:lastEdition",dateFilter:{type:Kr[t]}}];if(t.startsWith("CUSTOM_")){let[o,n,i]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var oa={};G(oa,{toFtFormComponent:()=>ra});var Mo=Symbol("elementInternals");function ra(e,t){class o extends e{static get formAssociated(){return!0}get form(){return this[Mo].form}constructor(...i){super(i),this[Mo]=this.attachInternals(),this[Mo].role=t}setFormValue(i){this[Mo].setFormValue(i)}}return o}var ia={};G(ia,{DateFormatter:()=>na});var na=class{static format(t,o,n,i){return window.moment?window.moment(t).locale(o).format(this.getDateFormat(n,i)):t}static getDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}};var aa,sa,ca,la,Zr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ca=(sa=(aa=window.safari)===null||aa===void 0?void 0:aa.pushNotification)===null||sa===void 0?void 0:sa.toString())!==null&&ca!==void 0?ca:"")==="[object SafariRemoteNotification]",xf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(la=window.ftGlobals)!==null&&la!==void 0?la:{lit:on,litDecorators:an,litRepeat:sn,litClassMap:cn,litStyleMap:ln,litUnsafeHTML:pn,wcUtils:{...xn,...un,...Sn,...ia,...On,...wn,...ti,...gn,...yi,...Qn,...bi,...gi,...Us,...Cn,...vi,...Si,...Fs,...Ci,...Yi,...mi,...Qi,...ta,...ea,...oa,isSafari:Zr,isTouchScreen:xf,setVariable:C}};function Vc(e,t,o){if(e.length==0)return!0;let n=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),i=new RegExp(n),a=t.includes(".")?"."+t.split(".").pop():void 0;return a&&i.test(a)?!0:i.test(o)}var Gc=r.extend("--ft-ripple-color","",M.colorContent),R={color:Gc,backgroundColor:r.extend("--ft-ripple-background-color","",Gc),opacityContentOnSurfacePressed:r.external(M.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(M.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(M.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(M.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},jc=r.extend("--ft-ripple-color","",M.colorPrimary),Kc={color:jc,backgroundColor:r.extend("--ft-ripple-background-color","",jc)},Zc=r.extend("--ft-ripple-color","",M.colorSecondary),qc={color:Zc,backgroundColor:r.extend("--ft-ripple-background-color","",Zc)},Yc=D`
51
51
  :host {
52
52
  display: contents;
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-file-drop",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "Container that accepts dropping files",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "1.2.14",
23
- "@fluid-topics/ft-wc-utils": "1.2.14",
22
+ "@fluid-topics/ft-chip": "1.2.16",
23
+ "@fluid-topics/ft-wc-utils": "1.2.16",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "65d295da2a5a17f24ca4957f74595755a2550c3d"
26
+ "gitHead": "ede6b43f06ac3cf4720eace3f556b8917e364248"
27
27
  }