@fluid-topics/ft-page-layout 1.3.54 → 1.3.56

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.
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var Ol={};var ha={};K(ha,{ParametrizedLabelResolver:()=>bo});var bo=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ua={};K(Ua,{FtCommandQueue:()=>xo,FtLitElementRedux:()=>So,FtReduxStore:()=>rr,FtStateManager:()=>Ma,ReduxWatcher:()=>In,clearAllStores:()=>yf,isFtReduxStore:()=>Ar,redux:()=>wr,reduxEventListener:()=>Nu,reduxReactive:()=>_u,watch:()=>mf,withRedux:()=>El});var _u=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},wr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:yt,attribute:!1,...e};x(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Nu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var xo=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Ar(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var vo=Symbol("internalReduxEventsUnsubscribers"),Nt=Symbol("internalStoresUnsubscribers"),Qt=Symbol("internalStores"),El=Ce(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Qt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Qt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Qt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Qt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Nt].has(s.store):this[Nt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[Nt].set(s,l.subscribe(()=>this.updateFromStores())),this[vo].set(s,[]),Ar(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=y=>this[h](y);l.addEventListener(u.eventName,f),this[vo].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Nt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Nt].has(s)&&this[Nt].get(s)(),this[Nt].delete(s),(l=this[vo].get(s))===null||l===void 0||l.forEach(d=>d()),this[vo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Nt,o=Qt,n=vo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),So=class extends El(G){};function Ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ct(t){return!!t&&!!t[ie]}function tt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Uu}(t)||Array.isArray(t)||!!t[Nl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Nl])||Oa(t)||Ea(t))}function er(t,e,o){o===void 0&&(o=!1),Lr(t)===0?(o?Object.keys:Tr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Lr(t){var e=t[ie];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Oa(t)?2:Ea(t)?3:0}function Rr(t,e){return Lr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Iu(t,e){return Lr(t)===2?t.get(e):t[e]}function Il(t,e,o){var n=Lr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Pl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Oa(t){return Bu&&t instanceof Map}function Ea(t){return Mu&&t instanceof Set}function It(t){return t.o||t.t}function wa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Dl(t);delete e[ie];for(var o=Tr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Aa(t,e){return e===void 0&&(e=!1),Ra(t)||Ct(t)||!tt(t)||(Lr(t)>1&&(t.set=t.add=t.clear=t.delete=Pu),Object.freeze(t),e&&er(t,function(o,n){return Aa(n,!0)},!0)),t}function Pu(){Ke(2)}function Ra(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function dt(t){var e=Ca[t];return e||Ke(18,t),e}function ku(t,e){Ca[t]||(Ca[t]=e)}function xa(){return Oo}function ya(t,e){e&&(dt("Patches"),t.u=[],t.s=[],t.v=e)}function Rn(t){va(t),t.p.forEach($u),t.p=null}function va(t){t===Oo&&(Oo=t.l)}function wl(t){return Oo={p:[],l:Oo,h:t,m:!0,_:0}}function $u(t){var e=t[ie];e.i===0||e.i===1?e.j():e.g=!0}function ma(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||dt("ES5").S(e,t,n),n?(o[ie].P&&(Rn(e),Ke(4)),tt(t)&&(t=Tn(e,t),e.l||Ln(e,t)),e.u&&dt("Patches").M(o[ie].t,t,e.u,e.s)):t=Tn(e,o,[]),Rn(e),e.u&&e.v(e.u,e.s),t!==$l?t:void 0}function Tn(t,e,o){if(Ra(e))return e;var n=e[ie];if(!n)return er(e,function(l,d){return Al(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Ln(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=wa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),er(a,function(l,d){return Al(t,n,i,l,d,o,s)}),Ln(t,i,!1),o&&t.u&&dt("Patches").N(n,o,t.u,t.s)}return n.o}function Al(t,e,o,n,i,a,s){if(Ct(i)){var l=Tn(t,i,a&&e&&e.i!==3&&!Rr(e.R,n)?a.concat(n):void 0);if(Il(o,n,l),!Ct(l))return;t.m=!1}else s&&o.add(i);if(tt(i)&&!Ra(i)){if(!t.h.D&&t._<1)return;Tn(t,i),e&&e.A.l||Ln(t,i)}}function Ln(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Aa(e,o)}function ga(t,e){var o=t[ie];return(o?It(o):t)[e]}function Rl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Pt(t){t.P||(t.P=!0,t.l&&Pt(t.l))}function ba(t){t.o||(t.o=wa(t.t))}function Sa(t,e,o){var n=Oa(e)?dt("MapSet").F(e,o):Ea(e)?dt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:xa(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=Eo;s&&(d=[l],u=Co);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):dt("ES5").J(e,o);return(o?o.A:xa()).p.push(n),n}function Du(t){return Ct(t)||Ke(22,t),function e(o){if(!tt(o))return o;var n,i=o[ie],a=Lr(o);if(i){if(!i.P&&(i.i<4||!dt("ES5").K(i)))return i.t;i.I=!0,n=Tl(o,a),i.I=!1}else n=Tl(o,a);return er(n,function(s,l){i&&Iu(i.t,s)===l||Il(n,s,e(l))}),a===3?new Set(n):n}(t)}function Tl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wa(t)}function kl(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[ie];return Eo.get(u,s)},set:function(u){var h=this[ie];Eo.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ie];if(!d.P)switch(d.i){case 5:n(d)&&Pt(d);break;case 4:o(d)&&Pt(d)}}}function o(s){for(var l=s.t,d=s.k,u=Tr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==ie){var y=l[f];if(y===void 0&&!Rr(l,f))return!0;var v=d[f],b=v&&v[ie];if(b?b.t!==y:!Pl(v,y))return!0}}var A=!!l[ie];return u.length!==Tr(l).length+(A?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&Ke(3,JSON.stringify(It(s)))}var a={};ku("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,y){if(f){for(var v=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(v,""+b,t(b,!0));return v}var A=Dl(y);delete A[ie];for(var R=Tr(A),L=0;L<R.length;L++){var N=R[L];A[N]=t(N,f||!!A[N].enumerable)}return Object.create(Object.getPrototypeOf(y),A)}(d,s),h={i:d?5:4,A:l?l.A:xa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ie,{value:h,writable:!0}),u},S:function(s,l,d){d?Ct(l)&&l[ie].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[ie];if(f){var y=f.t,v=f.k,b=f.R,A=f.i;if(A===4)er(v,function(S){S!==ie&&(y[S]!==void 0||Rr(y,S)?b[S]||u(v[S]):(b[S]=!0,Pt(f)))}),er(y,function(S){v[S]!==void 0||Rr(v,S)||(b[S]=!1,Pt(f))});else if(A===5){if(n(f)&&(Pt(f),b.length=!0),v.length<y.length)for(var R=v.length;R<y.length;R++)b[R]=!1;else for(var L=y.length;L<v.length;L++)b[L]=!0;for(var N=Math.min(v.length,y.length),E=0;E<N;E++)v.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(v[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ll,Oo,Ta=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Bu=typeof Map<"u",Mu=typeof Set<"u",_l=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",$l=Ta?Symbol.for("immer-nothing"):((Ll={})["immer-nothing"]=!0,Ll),Nl=Ta?Symbol.for("immer-draftable"):"__$immer_draftable",ie=Ta?Symbol.for("immer-state"):"__$immer_state";var Uu=""+Object.prototype.constructor,Tr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Dl=Object.getOwnPropertyDescriptors||function(t){var e={};return Tr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Ca={},Eo={get:function(t,e){if(e===ie)return t;var o=It(t);if(!Rr(o,e))return function(i,a,s){var l,d=Rl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!tt(n)?n:n===ga(t.t,e)?(ba(t),t.o[e]=Sa(t.A.h,n,t)):n},has:function(t,e){return e in It(t)},ownKeys:function(t){return Reflect.ownKeys(It(t))},set:function(t,e,o){var n=Rl(It(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=ga(It(t),e),a=i?.[ie];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Pl(o,i)&&(o!==void 0||Rr(t.t,e)))return!0;ba(t),Pt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ga(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ba(t),Pt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=It(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ke(12)}},Co={};er(Eo,function(t,e){Co[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Co.deleteProperty=function(t,e){return Co.set.call(this,t,e,void 0)},Co.set=function(t,e,o){return Eo.set.call(this,t[0],e,o,t[0])};var Fu=function(){function t(o){var n=this;this.O=_l,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(A){var R=this;A===void 0&&(A=l);for(var L=arguments.length,N=Array(L>1?L-1:0),E=1;E<L;E++)N[E-1]=arguments[E];return d.produce(A,function(S){var w;return(w=a).call.apply(w,[R,S].concat(N))})}}var u;if(typeof a!="function"&&Ke(6),s!==void 0&&typeof s!="function"&&Ke(7),tt(i)){var h=wl(n),f=Sa(n,i,void 0),y=!0;try{u=a(f),y=!1}finally{y?Rn(h):va(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(A){return ya(h,s),ma(A,h)},function(A){throw Rn(h),A}):(ya(h,s),ma(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===$l&&(u=void 0),n.D&&Aa(u,!0),s){var v=[],b=[];dt("Patches").M(i,u,v,b),s(v,b)}return u}Ke(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(v){return i.apply(void 0,[v].concat(f))})};var s,l,d=n.produce(i,a,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){tt(o)||Ke(8),Ct(o)&&(o=Du(o));var n=wl(this),i=Sa(this,o,void 0);return i[ie].C=!0,va(n),i},e.finishDraft=function(o,n){var i=o&&o[ie],a=i.A;return ya(a,n),ma(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!_l&&Ke(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=dt("Patches").$;return Ct(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Fe=new Fu,Hu=Fe.produce,Cx=Fe.produceWithPatches.bind(Fe),Ox=Fe.setAutoFreeze.bind(Fe),Ex=Fe.setUseProxies.bind(Fe),wx=Fe.applyPatches.bind(Fe),Ax=Fe.createDraft.bind(Fe),Rx=Fe.finishDraft.bind(Fe),_n=Hu;function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function Bl(t,e){if(tr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ml(t){var e=Bl(t,"string");return tr(e)=="symbol"?e:e+""}function Ul(t,e,o){return(e=Ml(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Fl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function La(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Fl(Object(o),!0).forEach(function(n){Ul(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Fl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Re(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Hl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),_a=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nn={INIT:"@@redux/INIT"+_a(),REPLACE:"@@redux/REPLACE"+_a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_a()}};function zu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Na(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Re(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Re(1));return o(Na)(t,e)}if(typeof t!="function")throw new Error(Re(2));var i=t,a=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Re(3));return a}function f(A){if(typeof A!="function")throw new Error(Re(4));if(d)throw new Error(Re(5));var R=!0;return u(),l.push(A),function(){if(R){if(d)throw new Error(Re(6));R=!1,u();var N=l.indexOf(A);l.splice(N,1),s=null}}}function y(A){if(!zu(A))throw new Error(Re(7));if(typeof A.type>"u")throw new Error(Re(8));if(d)throw new Error(Re(9));try{d=!0,a=i(a,A)}finally{d=!1}for(var R=s=l,L=0;L<R.length;L++){var N=R[L];N()}return A}function v(A){if(typeof A!="function")throw new Error(Re(10));i=A,y({type:Nn.REPLACE})}function b(){var A,R=f;return A={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Re(11));function E(){N.next&&N.next(h())}E();var S=R(E);return{unsubscribe:S}}},A[Hl]=function(){return this},A}return y({type:Nn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:v},n[Hl]=b,n}function Wu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Nn.INIT});if(typeof n>"u")throw new Error(Re(12));if(typeof o(void 0,{type:Nn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Re(13))})}function zl(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Wu(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var y=!1,v={},b=0;b<a.length;b++){var A=a[b],R=o[A],L=u[A],N=R(L,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(Re(14))}v[A]=N,y=y||N!==L}return y=y||a.length!==Object.keys(u).length,y?v:u}}function _r(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Wl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Re(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=_r.apply(void 0,l)(i.dispatch),La(La({},i),{},{dispatch:a})}}}function Gl(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var jl=Gl();jl.withExtraArgument=Gl;var Ia=jl;var Yl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Gu=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Nr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ju=Object.defineProperty,Vu=Object.defineProperties,Ku=Object.getOwnPropertyDescriptors,Vl=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable,Kl=function(t,e,o){return e in t?ju(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},kt=function(t,e){for(var o in e||(e={}))Zu.call(e,o)&&Kl(t,o,e[o]);if(Vl)for(var n=0,i=Vl(e);n<i.length;n++){var o=i[n];qu.call(e,o)&&Kl(t,o,e[o])}return t},Pa=function(t,e){return Vu(t,Ku(e))},Yu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(u){i(u)}},s=function(d){try{l(o.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Xu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_r:_r.apply(null,arguments)},jx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ju(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Qu=function(t){Yl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Nr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],o.concat(this))))},e}(Array),ef=function(t){Yl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Nr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],o.concat(this))))},e}(Array);function Da(t){return tt(t)?_n(t,function(){}):t}function tf(t){return typeof t=="boolean"}function rf(){return function(e){return of(e)}}function of(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Qu;if(o&&(tf(o)?l.push(Ia):l.push(Ia.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var u}return l}var ka=!0;function Xl(t){var e=rf(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,v;if(typeof i=="function")v=i;else if(Ju(i))v=zl(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 b=s;if(typeof b=="function"&&(b=b(e),!ka&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ka&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Wl.apply(void 0,b),R=_r;d&&(R=Xu(kt({trace:!ka},typeof d=="object"&&d)));var L=new ef(A),N=L;Array.isArray(y)?N=Nr([A],y):typeof y=="function"&&(N=y(L));var E=R.apply(void 0,N);return Na(v,h,E)}function $t(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return kt(kt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Jl(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function nf(t){return typeof t=="function"}function af(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Jl(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(nf(t))d=function(){return Da(t())};else{var u=Da(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var v=Nr([a[y.type]],s.filter(function(b){var A=b.matcher;return A(y)}).map(function(b){var A=b.reducer;return A}));return v.filter(function(b){return!!b}).length===0&&(v=[l]),v.reduce(function(b,A){if(A)if(Ct(b)){var R=b,L=A(R,y);return L===void 0?b:L}else{if(tt(b))return _n(b,function(N){return A(N,y)});var L=A(b,y);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function sf(t,e){return t+"/"+e}function Ql(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Da(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],y=sf(e,h),v,b;"reducer"in f?(v=f.reducer,b=f.prepare):v=f,a[h]=v,s[y]=v,l[h]=b?$t(y,b):$t(y)});function d(){var h=typeof t.extraReducers=="function"?Jl(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,v=h[1],b=v===void 0?[]:v,A=h[2],R=A===void 0?void 0:A,L=kt(kt({},y),s);return af(o,function(N){for(var E in L)N.addCase(E,L[E]);for(var S=0,w=b;S<w.length;S++){var D=w[S];N.addMatcher(D.matcher,D.reducer)}R&&N.addDefaultCase(R)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=lf[Math.random()*64|0];return e},df=["name","message","stack","code"],$a=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Zl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),pf=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=df;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},qx=function(){function t(e,o,n){var i=$t(e+"/fulfilled",function(h,f,y,v){return{payload:h,meta:Pa(kt({},v||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=$t(e+"/pending",function(h,f,y){return{payload:void 0,meta:Pa(kt({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=$t(e+"/rejected",function(h,f,y,v,b){return{payload:v,error:(n&&n.serializeError||pf)(h||"Rejected"),meta:Pa(kt({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,y,v){var b=n?.idGenerator?n.idGenerator(h):cf(),A=new d,R,L=!1;function N(S){R=S,A.abort()}var E=function(){return Yu(this,null,function(){var S,w,D,H,V,W,B;return Gu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),H=(S=n?.condition)==null?void 0:S.call(n,h,{getState:y,extra:v}),ff(H)?[4,H]:[3,2];case 1:H=m.sent(),m.label=2;case 2:if(H===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,V=new Promise(function(C,k){return A.signal.addEventListener("abort",function(){return k({name:"AbortError",message:R||"Aborted"})})}),f(a(b,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:b,arg:h},{getState:y,extra:v}))),[4,Promise.race([V,Promise.resolve(o(h,{dispatch:f,getState:y,extra:v,requestId:b,signal:A.signal,abort:N,rejectWithValue:function(C,k){return new $a(C,k)},fulfillWithValue:function(C,k){return new Zl(C,k)}})).then(function(C){if(C instanceof $a)throw C;return C instanceof Zl?i(C.payload,b,h,C.meta):i(C,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return W=m.sent(),D=W instanceof $a?s(null,b,h,W.payload,W.meta):s(W,b,h),[3,5];case 5:return B=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,B||f(D),[2,D]}})})}();return Object.assign(E,{abort:N,requestId:b,arg:h,unwrap:function(){return E.then(uf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function uf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ff(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ec="listener",tc="completed",rc="cancelled",Yx="task-"+rc,Xx="task-"+tc,Jx=ec+"-"+rc,Qx=ec+"-"+tc;var Ba="listenerMiddleware";var ev=$t(Ba+"/add"),tv=$t(Ba+"/removeAll"),rv=$t(Ba+"/remove");var ql,ov=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ql||(ql=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},hf=function(t){return function(e){setTimeout(e,t)}},nv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hf(10);kl();window.ftReduxStores||(window.ftReduxStores={});var rr=class t extends mt{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Ar(a))return a;if(i==null)return;let s=Ql({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Xl({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new xo;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function yf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ar(e)&&e.clear()}var In=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);yt(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function mf(t,e,o){return new In(t,e,o).watch()}var Ma=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var za={};K(za,{scrollHelper:()=>gf});var Fa,Pn=new Map,Ha=class{lock(e,o){if(o){let n=Pn.get(o);if(n==null||n===e)return Pn.set(o,e),o}}release(e,o){o&&Pn.get(o)===e&&Pn.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of wi(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=so(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Fa=window.FluidTopicsScrollHelper)!==null&&Fa!==void 0?Fa:new Ha;var gf=window.FluidTopicsScrollHelper;var Ga={};K(Ga,{SearchPlaceConverter:()=>$r,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Bc,serializeRequest:()=>Sf});var xf=Jd(nc(),1);var ic;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ic||(ic={}));var ac;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ac||(ac={}));var sc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(sc||(sc={}));var lc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(lc||(lc={}));var cc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(cc||(cc={}));var dc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(dc||(dc={}));var pc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(pc||(pc={}));var uc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(uc||(uc={}));var fc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(fc||(fc={}));var hc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(hc||(hc={}));var yc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(yc||(yc={}));var mc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(mc||(mc={}));var gc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(gc||(gc={}));var bc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(bc||(bc={}));var Pr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Pr||(Pr={}));var xc;(function(t){t.ASC="ASC",t.DESC="DESC"})(xc||(xc={}));var vc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(vc||(vc={}));var Wa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Wa||(Wa={}));var Rc=t=>Object.keys(Wa).includes(t);var Sc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Sc||(Sc={}));var Cc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cc||(Cc={}));var Oc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Oc||(Oc={}));var kr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kr||(kr={}));var Tc=t=>Object.keys(kr).includes(t);var Ec;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ec||(Ec={}));var wc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wc||(wc={}));var Ac;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ac||(Ac={}));var fe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(fe||(fe={}));var Ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ze||(Ze={}));var Lc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Lc||(Lc={}));var _c;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_c||(_c={}));var Nc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Nc||(Nc={}));var Ic;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ic||(Ic={}));var Pc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Pc||(Pc={}));var bf={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN],[fe.GENERATIVE_AI_EXPORT_USER]:[fe.GENERATIVE_AI_USER]};function kc(t,e){return t===e||(bf[t]??[]).some(o=>kc(o,e))}function $c(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>kc(n,e))}function vf(t){return`"${t}"`}function Dc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Sf(t,e){return new $r(t).serialize(e)}var Y;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(Y||(Y={}));var Cf=new Set(Object.values(Y));function Bc(t){return Cf.has(t)}var $r=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,u,h,f,y,v;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(Y.LOCALE,e.contentLocale):b.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(Y.QUERY,e.query);let A=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&a!==void 0?a:[];if(A.length>0){let S=A.map(w=>{var D,H;let V=((H=(D=w.valueFilter)===null||D===void 0?void 0:D.values)!==null&&H!==void 0?H:[]).map(W=>this.escapeFilters(W)).map(W=>vf(Dc(W))).join("_");return`${w.key}~${V}`}).join("*");b.append(Y.VALUE_FILTERS,S)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let S=R.map(w=>{var D;return`${w.key}~${(D=w.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(Y.DATE_FILTERS,S)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let S=L.map(w=>{var D,H;return`${w.key}~${(D=w.rangeFilter)===null||D===void 0?void 0:D.from}_${(H=w.rangeFilter)===null||H===void 0?void 0:H.to}`}).join("*");b.append(Y.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(Y.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(Y.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(Y.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(Y.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(v=e.otherQueryParams)!==null&&v!==void 0?v:{};for(let S in N)b.append(S,N[S]);let E=new Array;return b.forEach((S,w)=>{E.push(this.encodeQueryString(w)+"="+this.encodeQueryString(S))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),h=((o=d.get(Y.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(Y.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(i=d.get(Y.SCOPE))!==null&&i!==void 0?i:"default",v=+((a=d.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(Y.KEYWORD_MATCH),A=b?b.toUpperCase()===Pr.MANDATORY?Pr.MANDATORY:Pr.OPTIONAL:void 0,R={};for(let L of d.keys())Bc(L)||(R[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:Rc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:so(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:A,otherQueryParams:R}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(Y.FILTERS)&&(d=this.parseValueFilters((o=e.get(Y.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(Y.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Dc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:kr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(Tc(e))return[{key:"ft:lastEdition",dateFilter:{type:kr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ka={};K(Ka,{toFtFormComponent:()=>Va});var ja=Symbol("elementInternals"),Va=Ce(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ja].form}constructor(...n){super(n),this[ja]=this.attachInternals()}setFormValue(n){this[ja].setFormValue(n)}}return e});var Za={};K(Za,{DateFormatter:()=>or});var or=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Ya={};K(Ya,{ALL_KEYS_VALUE:()=>qa,SameWindowStorageEvent:()=>Dr});var qa="__all__",Dr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==qa}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Dr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Dr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Dr(qa))}});var Ja={};K(Ja,{FocusMainContentEvent:()=>Xa});var Xa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Mc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Of(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Ef(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Of);document.addEventListener("click",Ef);var Uc=I`
48
+ `;var Ol={};var ha={};K(ha,{ParametrizedLabelResolver:()=>bo});var bo=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ua={};K(Ua,{FtCommandQueue:()=>xo,FtLitElementRedux:()=>So,FtReduxStore:()=>rr,FtStateManager:()=>Ma,ReduxWatcher:()=>In,clearAllStores:()=>yf,isFtReduxStore:()=>Ar,redux:()=>wr,reduxEventListener:()=>Nu,reduxReactive:()=>_u,watch:()=>mf,withRedux:()=>El});var _u=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},wr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:yt,attribute:!1,...e};x(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Nu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var xo=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Ar(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var vo=Symbol("internalReduxEventsUnsubscribers"),Nt=Symbol("internalStoresUnsubscribers"),Qt=Symbol("internalStores"),El=Ce(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Qt].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Qt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Qt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Qt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Nt].has(s.store):this[Nt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[Nt].set(s,l.subscribe(()=>this.updateFromStores())),this[vo].set(s,[]),Ar(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=y=>this[h](y);l.addEventListener(u.eventName,f),this[vo].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Nt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Nt].has(s)&&this[Nt].get(s)(),this[Nt].delete(s),(l=this[vo].get(s))===null||l===void 0||l.forEach(d=>d()),this[vo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Nt,o=Qt,n=vo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),So=class extends El(G){};function Ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ct(t){return!!t&&!!t[ie]}function tt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Uu}(t)||Array.isArray(t)||!!t[Nl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Nl])||Oa(t)||Ea(t))}function er(t,e,o){o===void 0&&(o=!1),Lr(t)===0?(o?Object.keys:Tr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Lr(t){var e=t[ie];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Oa(t)?2:Ea(t)?3:0}function Rr(t,e){return Lr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Iu(t,e){return Lr(t)===2?t.get(e):t[e]}function Il(t,e,o){var n=Lr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Pl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Oa(t){return Bu&&t instanceof Map}function Ea(t){return Mu&&t instanceof Set}function It(t){return t.o||t.t}function wa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Dl(t);delete e[ie];for(var o=Tr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Aa(t,e){return e===void 0&&(e=!1),Ra(t)||Ct(t)||!tt(t)||(Lr(t)>1&&(t.set=t.add=t.clear=t.delete=Pu),Object.freeze(t),e&&er(t,function(o,n){return Aa(n,!0)},!0)),t}function Pu(){Ke(2)}function Ra(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function dt(t){var e=Ca[t];return e||Ke(18,t),e}function ku(t,e){Ca[t]||(Ca[t]=e)}function xa(){return Oo}function ya(t,e){e&&(dt("Patches"),t.u=[],t.s=[],t.v=e)}function Rn(t){va(t),t.p.forEach($u),t.p=null}function va(t){t===Oo&&(Oo=t.l)}function wl(t){return Oo={p:[],l:Oo,h:t,m:!0,_:0}}function $u(t){var e=t[ie];e.i===0||e.i===1?e.j():e.g=!0}function ma(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||dt("ES5").S(e,t,n),n?(o[ie].P&&(Rn(e),Ke(4)),tt(t)&&(t=Tn(e,t),e.l||Ln(e,t)),e.u&&dt("Patches").M(o[ie].t,t,e.u,e.s)):t=Tn(e,o,[]),Rn(e),e.u&&e.v(e.u,e.s),t!==$l?t:void 0}function Tn(t,e,o){if(Ra(e))return e;var n=e[ie];if(!n)return er(e,function(l,d){return Al(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Ln(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=wa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),er(a,function(l,d){return Al(t,n,i,l,d,o,s)}),Ln(t,i,!1),o&&t.u&&dt("Patches").N(n,o,t.u,t.s)}return n.o}function Al(t,e,o,n,i,a,s){if(Ct(i)){var l=Tn(t,i,a&&e&&e.i!==3&&!Rr(e.R,n)?a.concat(n):void 0);if(Il(o,n,l),!Ct(l))return;t.m=!1}else s&&o.add(i);if(tt(i)&&!Ra(i)){if(!t.h.D&&t._<1)return;Tn(t,i),e&&e.A.l||Ln(t,i)}}function Ln(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Aa(e,o)}function ga(t,e){var o=t[ie];return(o?It(o):t)[e]}function Rl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Pt(t){t.P||(t.P=!0,t.l&&Pt(t.l))}function ba(t){t.o||(t.o=wa(t.t))}function Sa(t,e,o){var n=Oa(e)?dt("MapSet").F(e,o):Ea(e)?dt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:xa(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=Eo;s&&(d=[l],u=Co);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):dt("ES5").J(e,o);return(o?o.A:xa()).p.push(n),n}function Du(t){return Ct(t)||Ke(22,t),function e(o){if(!tt(o))return o;var n,i=o[ie],a=Lr(o);if(i){if(!i.P&&(i.i<4||!dt("ES5").K(i)))return i.t;i.I=!0,n=Tl(o,a),i.I=!1}else n=Tl(o,a);return er(n,function(s,l){i&&Iu(i.t,s)===l||Il(n,s,e(l))}),a===3?new Set(n):n}(t)}function Tl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wa(t)}function kl(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[ie];return Eo.get(u,s)},set:function(u){var h=this[ie];Eo.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ie];if(!d.P)switch(d.i){case 5:n(d)&&Pt(d);break;case 4:o(d)&&Pt(d)}}}function o(s){for(var l=s.t,d=s.k,u=Tr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==ie){var y=l[f];if(y===void 0&&!Rr(l,f))return!0;var v=d[f],b=v&&v[ie];if(b?b.t!==y:!Pl(v,y))return!0}}var A=!!l[ie];return u.length!==Tr(l).length+(A?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&Ke(3,JSON.stringify(It(s)))}var a={};ku("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,y){if(f){for(var v=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(v,""+b,t(b,!0));return v}var A=Dl(y);delete A[ie];for(var R=Tr(A),L=0;L<R.length;L++){var N=R[L];A[N]=t(N,f||!!A[N].enumerable)}return Object.create(Object.getPrototypeOf(y),A)}(d,s),h={i:d?5:4,A:l?l.A:xa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ie,{value:h,writable:!0}),u},S:function(s,l,d){d?Ct(l)&&l[ie].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[ie];if(f){var y=f.t,v=f.k,b=f.R,A=f.i;if(A===4)er(v,function(S){S!==ie&&(y[S]!==void 0||Rr(y,S)?b[S]||u(v[S]):(b[S]=!0,Pt(f)))}),er(y,function(S){v[S]!==void 0||Rr(v,S)||(b[S]=!1,Pt(f))});else if(A===5){if(n(f)&&(Pt(f),b.length=!0),v.length<y.length)for(var R=v.length;R<y.length;R++)b[R]=!1;else for(var L=y.length;L<v.length;L++)b[L]=!0;for(var N=Math.min(v.length,y.length),E=0;E<N;E++)v.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(v[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ll,Oo,Ta=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Bu=typeof Map<"u",Mu=typeof Set<"u",_l=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",$l=Ta?Symbol.for("immer-nothing"):((Ll={})["immer-nothing"]=!0,Ll),Nl=Ta?Symbol.for("immer-draftable"):"__$immer_draftable",ie=Ta?Symbol.for("immer-state"):"__$immer_state";var Uu=""+Object.prototype.constructor,Tr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Dl=Object.getOwnPropertyDescriptors||function(t){var e={};return Tr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Ca={},Eo={get:function(t,e){if(e===ie)return t;var o=It(t);if(!Rr(o,e))return function(i,a,s){var l,d=Rl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!tt(n)?n:n===ga(t.t,e)?(ba(t),t.o[e]=Sa(t.A.h,n,t)):n},has:function(t,e){return e in It(t)},ownKeys:function(t){return Reflect.ownKeys(It(t))},set:function(t,e,o){var n=Rl(It(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=ga(It(t),e),a=i?.[ie];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Pl(o,i)&&(o!==void 0||Rr(t.t,e)))return!0;ba(t),Pt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ga(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ba(t),Pt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=It(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ke(12)}},Co={};er(Eo,function(t,e){Co[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Co.deleteProperty=function(t,e){return Co.set.call(this,t,e,void 0)},Co.set=function(t,e,o){return Eo.set.call(this,t[0],e,o,t[0])};var Fu=function(){function t(o){var n=this;this.O=_l,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(A){var R=this;A===void 0&&(A=l);for(var L=arguments.length,N=Array(L>1?L-1:0),E=1;E<L;E++)N[E-1]=arguments[E];return d.produce(A,function(S){var w;return(w=a).call.apply(w,[R,S].concat(N))})}}var u;if(typeof a!="function"&&Ke(6),s!==void 0&&typeof s!="function"&&Ke(7),tt(i)){var h=wl(n),f=Sa(n,i,void 0),y=!0;try{u=a(f),y=!1}finally{y?Rn(h):va(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(A){return ya(h,s),ma(A,h)},function(A){throw Rn(h),A}):(ya(h,s),ma(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===$l&&(u=void 0),n.D&&Aa(u,!0),s){var v=[],b=[];dt("Patches").M(i,u,v,b),s(v,b)}return u}Ke(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(v){return i.apply(void 0,[v].concat(f))})};var s,l,d=n.produce(i,a,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){tt(o)||Ke(8),Ct(o)&&(o=Du(o));var n=wl(this),i=Sa(this,o,void 0);return i[ie].C=!0,va(n),i},e.finishDraft=function(o,n){var i=o&&o[ie],a=i.A;return ya(a,n),ma(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!_l&&Ke(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=dt("Patches").$;return Ct(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Fe=new Fu,Hu=Fe.produce,Cx=Fe.produceWithPatches.bind(Fe),Ox=Fe.setAutoFreeze.bind(Fe),Ex=Fe.setUseProxies.bind(Fe),wx=Fe.applyPatches.bind(Fe),Ax=Fe.createDraft.bind(Fe),Rx=Fe.finishDraft.bind(Fe),_n=Hu;function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function Bl(t,e){if(tr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ml(t){var e=Bl(t,"string");return tr(e)=="symbol"?e:e+""}function Ul(t,e,o){return(e=Ml(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Fl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function La(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Fl(Object(o),!0).forEach(function(n){Ul(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Fl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Re(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Hl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),_a=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nn={INIT:"@@redux/INIT"+_a(),REPLACE:"@@redux/REPLACE"+_a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_a()}};function zu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Na(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Re(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Re(1));return o(Na)(t,e)}if(typeof t!="function")throw new Error(Re(2));var i=t,a=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Re(3));return a}function f(A){if(typeof A!="function")throw new Error(Re(4));if(d)throw new Error(Re(5));var R=!0;return u(),l.push(A),function(){if(R){if(d)throw new Error(Re(6));R=!1,u();var N=l.indexOf(A);l.splice(N,1),s=null}}}function y(A){if(!zu(A))throw new Error(Re(7));if(typeof A.type>"u")throw new Error(Re(8));if(d)throw new Error(Re(9));try{d=!0,a=i(a,A)}finally{d=!1}for(var R=s=l,L=0;L<R.length;L++){var N=R[L];N()}return A}function v(A){if(typeof A!="function")throw new Error(Re(10));i=A,y({type:Nn.REPLACE})}function b(){var A,R=f;return A={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Re(11));function E(){N.next&&N.next(h())}E();var S=R(E);return{unsubscribe:S}}},A[Hl]=function(){return this},A}return y({type:Nn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:v},n[Hl]=b,n}function Wu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Nn.INIT});if(typeof n>"u")throw new Error(Re(12));if(typeof o(void 0,{type:Nn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Re(13))})}function zl(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Wu(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var y=!1,v={},b=0;b<a.length;b++){var A=a[b],R=o[A],L=u[A],N=R(L,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(Re(14))}v[A]=N,y=y||N!==L}return y=y||a.length!==Object.keys(u).length,y?v:u}}function _r(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Wl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Re(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=_r.apply(void 0,l)(i.dispatch),La(La({},i),{},{dispatch:a})}}}function Gl(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var jl=Gl();jl.withExtraArgument=Gl;var Ia=jl;var Yl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Gu=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Nr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ju=Object.defineProperty,Vu=Object.defineProperties,Ku=Object.getOwnPropertyDescriptors,Vl=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable,Kl=function(t,e,o){return e in t?ju(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},kt=function(t,e){for(var o in e||(e={}))Zu.call(e,o)&&Kl(t,o,e[o]);if(Vl)for(var n=0,i=Vl(e);n<i.length;n++){var o=i[n];qu.call(e,o)&&Kl(t,o,e[o])}return t},Pa=function(t,e){return Vu(t,Ku(e))},Yu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(u){i(u)}},s=function(d){try{l(o.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Xu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_r:_r.apply(null,arguments)},jx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ju(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Qu=function(t){Yl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Nr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],o.concat(this))))},e}(Array),ef=function(t){Yl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Nr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],o.concat(this))))},e}(Array);function Da(t){return tt(t)?_n(t,function(){}):t}function tf(t){return typeof t=="boolean"}function rf(){return function(e){return of(e)}}function of(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Qu;if(o&&(tf(o)?l.push(Ia):l.push(Ia.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var u}return l}var ka=!0;function Xl(t){var e=rf(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,v;if(typeof i=="function")v=i;else if(Ju(i))v=zl(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 b=s;if(typeof b=="function"&&(b=b(e),!ka&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ka&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Wl.apply(void 0,b),R=_r;d&&(R=Xu(kt({trace:!ka},typeof d=="object"&&d)));var L=new ef(A),N=L;Array.isArray(y)?N=Nr([A],y):typeof y=="function"&&(N=y(L));var E=R.apply(void 0,N);return Na(v,h,E)}function $t(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return kt(kt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Jl(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function nf(t){return typeof t=="function"}function af(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Jl(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(nf(t))d=function(){return Da(t())};else{var u=Da(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var v=Nr([a[y.type]],s.filter(function(b){var A=b.matcher;return A(y)}).map(function(b){var A=b.reducer;return A}));return v.filter(function(b){return!!b}).length===0&&(v=[l]),v.reduce(function(b,A){if(A)if(Ct(b)){var R=b,L=A(R,y);return L===void 0?b:L}else{if(tt(b))return _n(b,function(N){return A(N,y)});var L=A(b,y);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function sf(t,e){return t+"/"+e}function Ql(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Da(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],y=sf(e,h),v,b;"reducer"in f?(v=f.reducer,b=f.prepare):v=f,a[h]=v,s[y]=v,l[h]=b?$t(y,b):$t(y)});function d(){var h=typeof t.extraReducers=="function"?Jl(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,v=h[1],b=v===void 0?[]:v,A=h[2],R=A===void 0?void 0:A,L=kt(kt({},y),s);return af(o,function(N){for(var E in L)N.addCase(E,L[E]);for(var S=0,w=b;S<w.length;S++){var D=w[S];N.addMatcher(D.matcher,D.reducer)}R&&N.addDefaultCase(R)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=lf[Math.random()*64|0];return e},df=["name","message","stack","code"],$a=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Zl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),pf=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=df;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},qx=function(){function t(e,o,n){var i=$t(e+"/fulfilled",function(h,f,y,v){return{payload:h,meta:Pa(kt({},v||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=$t(e+"/pending",function(h,f,y){return{payload:void 0,meta:Pa(kt({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=$t(e+"/rejected",function(h,f,y,v,b){return{payload:v,error:(n&&n.serializeError||pf)(h||"Rejected"),meta:Pa(kt({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,y,v){var b=n?.idGenerator?n.idGenerator(h):cf(),A=new d,R,L=!1;function N(S){R=S,A.abort()}var E=function(){return Yu(this,null,function(){var S,w,D,H,V,W,B;return Gu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),H=(S=n?.condition)==null?void 0:S.call(n,h,{getState:y,extra:v}),ff(H)?[4,H]:[3,2];case 1:H=m.sent(),m.label=2;case 2:if(H===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,V=new Promise(function(C,k){return A.signal.addEventListener("abort",function(){return k({name:"AbortError",message:R||"Aborted"})})}),f(a(b,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:b,arg:h},{getState:y,extra:v}))),[4,Promise.race([V,Promise.resolve(o(h,{dispatch:f,getState:y,extra:v,requestId:b,signal:A.signal,abort:N,rejectWithValue:function(C,k){return new $a(C,k)},fulfillWithValue:function(C,k){return new Zl(C,k)}})).then(function(C){if(C instanceof $a)throw C;return C instanceof Zl?i(C.payload,b,h,C.meta):i(C,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return W=m.sent(),D=W instanceof $a?s(null,b,h,W.payload,W.meta):s(W,b,h),[3,5];case 5:return B=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,B||f(D),[2,D]}})})}();return Object.assign(E,{abort:N,requestId:b,arg:h,unwrap:function(){return E.then(uf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function uf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ff(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ec="listener",tc="completed",rc="cancelled",Yx="task-"+rc,Xx="task-"+tc,Jx=ec+"-"+rc,Qx=ec+"-"+tc;var Ba="listenerMiddleware";var ev=$t(Ba+"/add"),tv=$t(Ba+"/removeAll"),rv=$t(Ba+"/remove");var ql,ov=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ql||(ql=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},hf=function(t){return function(e){setTimeout(e,t)}},nv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hf(10);kl();window.ftReduxStores||(window.ftReduxStores={});var rr=class t extends mt{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Ar(a))return a;if(i==null)return;let s=Ql({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Xl({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new xo;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function yf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ar(e)&&e.clear()}var In=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);yt(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function mf(t,e,o){return new In(t,e,o).watch()}var Ma=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var za={};K(za,{scrollHelper:()=>gf});var Fa,Pn=new Map,Ha=class{lock(e,o){if(o){let n=Pn.get(o);if(n==null||n===e)return Pn.set(o,e),o}}release(e,o){o&&Pn.get(o)===e&&Pn.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of wi(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=so(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Fa=window.FluidTopicsScrollHelper)!==null&&Fa!==void 0?Fa:new Ha;var gf=window.FluidTopicsScrollHelper;var Ga={};K(Ga,{SearchPlaceConverter:()=>$r,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Mc,serializeRequest:()=>Sf});var xf=Jd(nc(),1);var ic;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ic||(ic={}));var ac;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ac||(ac={}));var sc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(sc||(sc={}));var lc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(lc||(lc={}));var cc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(cc||(cc={}));var dc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(dc||(dc={}));var pc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(pc||(pc={}));var uc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(uc||(uc={}));var fc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(fc||(fc={}));var hc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(hc||(hc={}));var yc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(yc||(yc={}));var mc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(mc||(mc={}));var gc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(gc||(gc={}));var bc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(bc||(bc={}));var Pr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Pr||(Pr={}));var xc;(function(t){t.ASC="ASC",t.DESC="DESC"})(xc||(xc={}));var vc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(vc||(vc={}));var Wa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Wa||(Wa={}));var Tc=t=>Object.keys(Wa).includes(t);var Sc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Sc||(Sc={}));var Cc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cc||(Cc={}));var Oc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Oc||(Oc={}));var kr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kr||(kr={}));var Lc=t=>Object.keys(kr).includes(t);var Ec;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ec||(Ec={}));var wc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wc||(wc={}));var Ac;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ac||(Ac={}));var fe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(fe||(fe={}));var Ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ze||(Ze={}));var Rc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Rc||(Rc={}));var _c;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(_c||(_c={}));var Nc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Nc||(Nc={}));var Ic;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ic||(Ic={}));var Pc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Pc||(Pc={}));var kc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(kc||(kc={}));var bf={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN],[fe.GENERATIVE_AI_EXPORT_USER]:[fe.GENERATIVE_AI_USER]};function $c(t,e){return t===e||(bf[t]??[]).some(o=>$c(o,e))}function Dc(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>$c(n,e))}function vf(t){return`"${t}"`}function Bc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Sf(t,e){return new $r(t).serialize(e)}var Y;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(Y||(Y={}));var Cf=new Set(Object.values(Y));function Mc(t){return Cf.has(t)}var $r=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,u,h,f,y,v;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(Y.LOCALE,e.contentLocale):b.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(Y.QUERY,e.query);let A=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&a!==void 0?a:[];if(A.length>0){let S=A.map(w=>{var D,H;let V=((H=(D=w.valueFilter)===null||D===void 0?void 0:D.values)!==null&&H!==void 0?H:[]).map(W=>this.escapeFilters(W)).map(W=>vf(Bc(W))).join("_");return`${w.key}~${V}`}).join("*");b.append(Y.VALUE_FILTERS,S)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let S=R.map(w=>{var D;return`${w.key}~${(D=w.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(Y.DATE_FILTERS,S)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let S=L.map(w=>{var D,H;return`${w.key}~${(D=w.rangeFilter)===null||D===void 0?void 0:D.from}_${(H=w.rangeFilter)===null||H===void 0?void 0:H.to}`}).join("*");b.append(Y.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(Y.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(Y.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(Y.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(Y.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(v=e.otherQueryParams)!==null&&v!==void 0?v:{};for(let S in N)b.append(S,N[S]);let E=new Array;return b.forEach((S,w)=>{E.push(this.encodeQueryString(w)+"="+this.encodeQueryString(S))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),h=((o=d.get(Y.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(Y.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(i=d.get(Y.SCOPE))!==null&&i!==void 0?i:"default",v=+((a=d.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(Y.KEYWORD_MATCH),A=b?b.toUpperCase()===Pr.MANDATORY?Pr.MANDATORY:Pr.OPTIONAL:void 0,R={};for(let L of d.keys())Mc(L)||(R[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:Tc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:so(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:A,otherQueryParams:R}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(Y.FILTERS)&&(d=this.parseValueFilters((o=e.get(Y.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(Y.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Bc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:kr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(Lc(e))return[{key:"ft:lastEdition",dateFilter:{type:kr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ka={};K(Ka,{toFtFormComponent:()=>Va});var ja=Symbol("elementInternals"),Va=Ce(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ja].form}constructor(...n){super(n),this[ja]=this.attachInternals()}setFormValue(n){this[ja].setFormValue(n)}}return e});var Za={};K(Za,{DateFormatter:()=>or});var or=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Ya={};K(Ya,{ALL_KEYS_VALUE:()=>qa,SameWindowStorageEvent:()=>Dr});var qa="__all__",Dr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==qa}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Dr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Dr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Dr(qa))}});var Ja={};K(Ja,{FocusMainContentEvent:()=>Xa});var Xa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Uc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Of(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Ef(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Of);document.addEventListener("click",Ef);var Fc=I`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
69
69
  width:auto;
70
70
  height:auto;
71
71
  }
72
- `;var wf={checkVisibility:!0},Gv=Ce(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...wf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new co({type:"aria",message:n})))},20)}}return e});function Fc(t,e,o){return t?e(t):o?.(t)}var Oe=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},nr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(nr||(nr={}));var ir;(function(t){t.default="default",t.warning="warning",t.error="error"})(ir||(ir={}));var Qa=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},e0=Ce(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=nr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=ir.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===nr.blur||this.validateOn===nr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==ir.default&&this.validateOn===nr.blurWithStatusResolutionOnInput||this.validateOn===nr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Qa(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return P`
72
+ `;var wf={checkVisibility:!0},Gv=Ce(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...wf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new co({type:"aria",message:n})))},20)}}return e});function Hc(t,e,o){return t?e(t):o?.(t)}var Oe=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},nr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(nr||(nr={}));var ir;(function(t){t.default="default",t.warning="warning",t.error="error"})(ir||(ir={}));var Qa=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},e0=Ce(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=nr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=ir.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===nr.blur||this.validateOn===nr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==ir.default&&this.validateOn===nr.blurWithStatusResolutionOnInput||this.validateOn===nr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Qa(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return P`
73
73
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
74
74
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
75
75
  ${jt(this.errorMessages,n=>P`
@@ -78,11 +78,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
78
78
  ${jt(this.warningMessages,n=>P`
79
79
  <li>${n}</li>
80
80
  `)}
81
- ${Fc(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>P`
81
+ ${Hc(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>P`
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?ir.error:this.warningMessages.length?ir.warning:ir.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return Oe([x()],e.prototype,"warningRules",void 0),Oe([x()],e.prototype,"errorRules",void 0),Oe([x()],e.prototype,"validateOn",void 0),Oe([x({type:Boolean})],e.prototype,"validateAtRender",void 0),Oe([x()],e.prototype,"label",void 0),Oe([x({type:Boolean})],e.prototype,"hideLabel",void 0),Oe([x()],e.prototype,"name",void 0),Oe([x({type:Boolean})],e.prototype,"disabled",void 0),Oe([x()],e.prototype,"helperText",void 0),Oe([x()],e.prototype,"forceStatus",void 0),Oe([x({reflect:!0})],e.prototype,"value",void 0),Oe([Q()],e.prototype,"errorMessages",void 0),Oe([Q()],e.prototype,"warningMessages",void 0),Oe([Q()],e.prototype,"status",void 0),Oe([Q()],e.prototype,"focused",void 0),Oe([Q()],e.prototype,"additionalWarningRules",void 0),Oe([Q()],e.prototype,"additionalErrorRules",void 0),e});var wo=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),wo(n,e);return!0},Dn=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},Hc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),Tf(e)}};function Af(t){this._$AN!==void 0?(Dn(this),this._$AM=t,Hc(this)):this._$AM=t}function Rf(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)wo(n[a],!1),Dn(n[a]);else n!=null&&(wo(n,!1),Dn(n));else wo(this,t)}var Tf=t=>{t.type==it.CHILD&&(t._$AP??=Rf,t._$AQ??=Af)},Bn=class extends je{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),Hc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(wo(this,e),Dn(this))}setValue(e){if(Bs(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var zc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(zc||(zc={}));var Lf={sm:640,md:768,lg:1024,xl:1280},es=class extends Bn{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>F);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:Lf[e]}},h0=Je(es);var ts,rs,os,ns,ar=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((os=(rs=(ts=window.safari)===null||ts===void 0?void 0:ts.pushNotification)===null||rs===void 0?void 0:rs.toString())!==null&&os!==void 0?os:"")==="[object SafariRemoteNotification]",_f="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ns=window.ftGlobals)!==null&&ns!==void 0?ns:{lit:yi,litDecorators:mi,litRepeat:gi,litClassMap:bi,litStyleMap:xi,litUnsafeHTML:Si,wcUtils:{..._i,...Oi,...$i,...Za,...Di,...Bi,...Hi,...Li,...na,...Ja,...Mc,...za,...Fi,...ca,...Ka,...la,...Sl,...Ai,...ua,...zi,...fa,...Uc,...Ol,...ha,...Ua,...Ya,...ia,...sa,...Ga,...Ii,isSafari:ar,isTouchScreen:_f,setVariable:O}};var sr=t=>t??F;var Wc={contentVerticalPadding:r.create("--ft-page-layout--content-vertical-padding","","SIZE","24px"),contentHorizontalPadding:r.create("--ft-page-layout--content-horizontal-padding","","SIZE","24px")},Gc=I`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?ir.error:this.warningMessages.length?ir.warning:ir.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return Oe([x()],e.prototype,"warningRules",void 0),Oe([x()],e.prototype,"errorRules",void 0),Oe([x()],e.prototype,"validateOn",void 0),Oe([x({type:Boolean})],e.prototype,"validateAtRender",void 0),Oe([x()],e.prototype,"label",void 0),Oe([x({type:Boolean})],e.prototype,"hideLabel",void 0),Oe([x()],e.prototype,"name",void 0),Oe([x({type:Boolean})],e.prototype,"disabled",void 0),Oe([x()],e.prototype,"helperText",void 0),Oe([x()],e.prototype,"forceStatus",void 0),Oe([x({reflect:!0})],e.prototype,"value",void 0),Oe([Q()],e.prototype,"errorMessages",void 0),Oe([Q()],e.prototype,"warningMessages",void 0),Oe([Q()],e.prototype,"status",void 0),Oe([Q()],e.prototype,"focused",void 0),Oe([Q()],e.prototype,"additionalWarningRules",void 0),Oe([Q()],e.prototype,"additionalErrorRules",void 0),e});var wo=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),wo(n,e);return!0},Dn=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},zc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),Tf(e)}};function Af(t){this._$AN!==void 0?(Dn(this),this._$AM=t,zc(this)):this._$AM=t}function Rf(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)wo(n[a],!1),Dn(n[a]);else n!=null&&(wo(n,!1),Dn(n));else wo(this,t)}var Tf=t=>{t.type==it.CHILD&&(t._$AP??=Rf,t._$AQ??=Af)},Bn=class extends je{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),zc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(wo(this,e),Dn(this))}setValue(e){if(Bs(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var Wc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Wc||(Wc={}));var Lf={sm:640,md:768,lg:1024,xl:1280},es=class extends Bn{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>F);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:Lf[e]}},h0=Je(es);var ts,rs,os,ns,ar=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((os=(rs=(ts=window.safari)===null||ts===void 0?void 0:ts.pushNotification)===null||rs===void 0?void 0:rs.toString())!==null&&os!==void 0?os:"")==="[object SafariRemoteNotification]",_f="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ns=window.ftGlobals)!==null&&ns!==void 0?ns:{lit:yi,litDecorators:mi,litRepeat:gi,litClassMap:bi,litStyleMap:xi,litUnsafeHTML:Si,wcUtils:{..._i,...Oi,...$i,...Za,...Di,...Bi,...Hi,...Li,...na,...Ja,...Uc,...za,...Fi,...ca,...Ka,...la,...Sl,...Ai,...ua,...zi,...fa,...Fc,...Ol,...ha,...Ua,...Ya,...ia,...sa,...Ga,...Ii,isSafari:ar,isTouchScreen:_f,setVariable:O}};var sr=t=>t??F;var Gc={contentVerticalPadding:r.create("--ft-page-layout--content-vertical-padding","","SIZE","24px"),contentHorizontalPadding:r.create("--ft-page-layout--content-horizontal-padding","","SIZE","24px")},jc=I`
86
86
  :host {
87
87
  display: flex;
88
88
  flex-direction: column;
@@ -196,7 +196,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
196
196
  main {
197
197
  overflow: auto;
198
198
  flex-grow: 1;
199
- padding: ${Wc.contentVerticalPadding} ${Wc.contentHorizontalPadding};
199
+ padding: ${Gc.contentVerticalPadding} ${Gc.contentHorizontalPadding};
200
200
  }
201
201
 
202
202
  /* FOOTER */
@@ -210,7 +210,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
210
210
  [hidden] {
211
211
  display: none;
212
212
  }
213
- `;var Vc=Symbol.for(""),Nf=t=>{if(t?.r===Vc)return t?._$litStatic$},Br=t=>({_$litStatic$:t,r:Vc});var jc=new Map,is=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=o[u],(i=Nf(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&l.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=jc.get(f))===void 0&&(s.raw=s,jc.set(f,e=s)),o=l}return t(e,...o)},Mr=is(P),pS=is(di),uS=is(pi);var Bt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Bt||(Bt={}));function Kc(t,e){let o=Qe[t];return I`
213
+ `;var Kc=Symbol.for(""),Nf=t=>{if(t?.r===Kc)return t?._$litStatic$},Br=t=>({_$litStatic$:t,r:Kc});var Vc=new Map,is=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=o[u],(i=Nf(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&l.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Vc.get(f))===void 0&&(s.raw=s,Vc.set(f,e=s)),o=l}return t(e,...o)},Mr=is(P),pS=is(di),uS=is(pi);var Bt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Bt||(Bt={}));function Zc(t,e){let o=Qe[t];return I`
214
214
  ${e?De(e):I`.ft-typography--${De(t)}`} {
215
215
  font-family: ${o.fontFamily};
216
216
  font-size: ${o.fontSize};
@@ -220,7 +220,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
220
220
  text-decoration: ${o.textDecoration};
221
221
  text-transform: ${o.textCase};
222
222
  }
223
- `}var Zc=r.extend("--ft-typography-font-family","",z.titleFont),Ot=r.extend("--ft-typography-font-family","",z.contentFont),M={fontFamily:Ot,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ur={fontFamily:r.extend("--ft-typography-title-font-family","",Zc),fontSize:r.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},Fr={fontFamily:r.extend("--ft-typography-title-dense-font-family","",Zc),fontSize:r.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},Hr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",Ot),fontSize:r.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},zr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",Ot),fontSize:r.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Wr={fontFamily:r.extend("--ft-typography-body1-font-family","",Ot),fontSize:r.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},qe={fontFamily:r.extend("--ft-typography-body2-font-family","",Ot),fontSize:r.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},Gr={fontFamily:r.extend("--ft-typography-caption-font-family","",Ot),fontSize:r.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},jr={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",Ot),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Vr={fontFamily:r.extend("--ft-typography-overline-font-family","",Ot),fontSize:r.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},pt={fontFamily:r.extend("--ft-typography-button-font-family","",Ot),fontSize:r.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},qc=I`
223
+ `}var qc=r.extend("--ft-typography-font-family","",z.titleFont),Ot=r.extend("--ft-typography-font-family","",z.contentFont),M={fontFamily:Ot,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ur={fontFamily:r.extend("--ft-typography-title-font-family","",qc),fontSize:r.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},Fr={fontFamily:r.extend("--ft-typography-title-dense-font-family","",qc),fontSize:r.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},Hr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",Ot),fontSize:r.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},zr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",Ot),fontSize:r.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Wr={fontFamily:r.extend("--ft-typography-body1-font-family","",Ot),fontSize:r.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},qe={fontFamily:r.extend("--ft-typography-body2-font-family","",Ot),fontSize:r.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},Gr={fontFamily:r.extend("--ft-typography-caption-font-family","",Ot),fontSize:r.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},jr={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",Ot),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Vr={fontFamily:r.extend("--ft-typography-overline-font-family","",Ot),fontSize:r.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},pt={fontFamily:r.extend("--ft-typography-button-font-family","",Ot),fontSize:r.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},Yc=I`
224
224
  .ft-typography--title {
225
225
  font-family: ${Ur.fontFamily};
226
226
  font-size: ${Ur.fontSize};
@@ -229,7 +229,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
229
229
  line-height: ${Ur.lineHeight};
230
230
  text-transform: ${Ur.textTransform};
231
231
  }
232
- `,Yc=I`
232
+ `,Xc=I`
233
233
  .ft-typography--title-dense {
234
234
  font-family: ${Fr.fontFamily};
235
235
  font-size: ${Fr.fontSize};
@@ -238,7 +238,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
238
238
  line-height: ${Fr.lineHeight};
239
239
  text-transform: ${Fr.textTransform};
240
240
  }
241
- `,Xc=I`
241
+ `,Jc=I`
242
242
  .ft-typography--subtitle1 {
243
243
  font-family: ${Hr.fontFamily};
244
244
  font-size: ${Hr.fontSize};
@@ -247,7 +247,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
247
247
  line-height: ${Hr.lineHeight};
248
248
  text-transform: ${Hr.textTransform};
249
249
  }
250
- `,Jc=I`
250
+ `,Qc=I`
251
251
  .ft-typography--subtitle2 {
252
252
  font-family: ${zr.fontFamily};
253
253
  font-size: ${zr.fontSize};
@@ -257,7 +257,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
257
257
  text-transform: ${zr.textTransform};
258
258
  }
259
259
 
260
- `,Qc=I`
260
+ `,ed=I`
261
261
  .ft-typography--body1 {
262
262
  font-family: ${Wr.fontFamily};
263
263
  font-size: ${Wr.fontSize};
@@ -266,7 +266,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
266
266
  line-height: ${Wr.lineHeight};
267
267
  text-transform: ${Wr.textTransform};
268
268
  }
269
- `,ed=I`
269
+ `,td=I`
270
270
  .ft-typography--body2 {
271
271
  font-family: ${qe.fontFamily};
272
272
  font-size: ${qe.fontSize};
@@ -275,7 +275,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
275
275
  line-height: ${qe.lineHeight};
276
276
  text-transform: ${qe.textTransform};
277
277
  }
278
- `,td=I`
278
+ `,rd=I`
279
279
  .ft-typography--caption {
280
280
  font-family: ${Gr.fontFamily};
281
281
  font-size: ${Gr.fontSize};
@@ -284,7 +284,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
284
284
  line-height: ${Gr.lineHeight};
285
285
  text-transform: ${Gr.textTransform};
286
286
  }
287
- `,rd=I`
287
+ `,od=I`
288
288
  .ft-typography--breadcrumb {
289
289
  font-family: ${jr.fontFamily};
290
290
  font-size: ${jr.fontSize};
@@ -293,7 +293,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
293
293
  line-height: ${jr.lineHeight};
294
294
  text-transform: ${jr.textTransform};
295
295
  }
296
- `,od=I`
296
+ `,nd=I`
297
297
  .ft-typography--overline {
298
298
  font-family: ${Vr.fontFamily};
299
299
  font-size: ${Vr.fontSize};
@@ -302,7 +302,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
302
302
  line-height: ${Vr.lineHeight};
303
303
  text-transform: ${Vr.textTransform};
304
304
  }
305
- `,nd=I`
305
+ `,id=I`
306
306
  .ft-typography--button {
307
307
  font-family: ${pt.fontFamily};
308
308
  font-size: ${pt.fontSize};
@@ -311,11 +311,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
311
311
  line-height: ${pt.lineHeight};
312
312
  text-transform: ${pt.textTransform};
313
313
  }
314
- `,id=I`
314
+ `,ad=I`
315
315
  .ft-typography {
316
316
  vertical-align: inherit;
317
317
  }
318
- `,ad=[Object.keys(Qe).map(t=>Kc(t))];var sd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},He=class extends G{constructor(){super(...arguments),this.variant=Bt.body1}render(){return this.element?Mr`
318
+ `,sd=[Object.keys(Qe).map(t=>Zc(t))];var ld=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},He=class extends G{constructor(){super(...arguments),this.variant=Bt.body1}render(){return this.element?Mr`
319
319
  <${Br(this.element)}
320
320
  part="text"
321
321
  class="ft-typography ft-typography--${this.variant}">
@@ -323,7 +323,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
323
323
  </${Br(this.element)}>
324
324
  `:Mr`
325
325
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
326
- `}};He.styles=[qc,Yc,Xc,Jc,Qc,ed,td,rd,od,nd,id,...ad];sd([x()],He.prototype,"element",void 0);sd([x()],He.prototype,"variant",void 0);var ee;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(ee||(ee={}));function If(t,e){let o=Qe[t];return I`
326
+ `}};He.styles=[Yc,Xc,Jc,Qc,ed,td,rd,od,nd,id,ad,...sd];ld([x()],He.prototype,"element",void 0);ld([x()],He.prototype,"variant",void 0);var ee;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(ee||(ee={}));function If(t,e){let o=Qe[t];return I`
327
327
  ${e?De(e):I`.ftds-typography--${De(t)}`} {
328
328
  font-family: ${o.fontFamily};
329
329
  font-size: ${o.fontSize};
@@ -333,7 +333,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
333
333
  text-decoration: ${o.textDecoration};
334
334
  text-transform: ${o.textCase};
335
335
  }
336
- `}var ld=[Object.keys(Qe).map(t=>If(t))];var cd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},he=class extends G{constructor(){super(...arguments),this.variant=ee.body2medium}render(){return this.element?Mr`
336
+ `}var cd=[Object.keys(Qe).map(t=>If(t))];var dd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},he=class extends G{constructor(){super(...arguments),this.variant=ee.body2medium}render(){return this.element?Mr`
337
337
  <${Br(this.element)}
338
338
  part="text"
339
339
  class="ftds-typography ftds-typography--${this.variant}">
@@ -341,7 +341,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
341
341
  </${Br(this.element)}>
342
342
  `:Mr`
343
343
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
344
- `}};he.styles=[...ld];cd([x()],he.prototype,"element",void 0);cd([x()],he.prototype,"variant",void 0);X("ft-typography")(He);X("ftds-typography")(he);var dd=r.extend("--ft-ripple-color","",z.colorContent),T={color:dd,backgroundColor:r.extend("--ft-ripple-background-color","",dd),opacityContentOnSurfacePressed:r.external(z.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(z.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(z.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(z.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},pd=r.extend("--ft-ripple-color","",z.colorPrimary),ud={color:pd,backgroundColor:r.extend("--ft-ripple-background-color","",pd)},fd=r.extend("--ft-ripple-color","",z.colorSecondary),hd={color:fd,backgroundColor:r.extend("--ft-ripple-background-color","",fd)},yd=I`
344
+ `}};he.styles=[...cd];dd([x()],he.prototype,"element",void 0);dd([x()],he.prototype,"variant",void 0);X("ft-typography")(He);X("ftds-typography")(he);var pd=r.extend("--ft-ripple-color","",z.colorContent),T={color:pd,backgroundColor:r.extend("--ft-ripple-background-color","",pd),opacityContentOnSurfacePressed:r.external(z.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(z.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(z.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(z.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},ud=r.extend("--ft-ripple-color","",z.colorPrimary),fd={color:ud,backgroundColor:r.extend("--ft-ripple-background-color","",ud)},hd=r.extend("--ft-ripple-color","",z.colorSecondary),yd={color:hd,backgroundColor:r.extend("--ft-ripple-background-color","",hd)},md=I`
345
345
  :host {
346
346
  display: contents;
347
347
  }
@@ -396,19 +396,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
396
396
  }
397
397
 
398
398
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
399
- background-color: ${hd.backgroundColor};
399
+ background-color: ${yd.backgroundColor};
400
400
  }
401
401
 
402
402
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
403
- background-color: ${hd.color};
403
+ background-color: ${yd.color};
404
404
  }
405
405
 
406
406
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
407
- background-color: ${ud.backgroundColor};
407
+ background-color: ${fd.backgroundColor};
408
408
  }
409
409
 
410
410
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
411
- background-color: ${ud.color};
411
+ background-color: ${fd.color};
412
412
  }
413
413
 
414
414
  .ft-ripple .ft-ripple--background {
@@ -453,7 +453,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
453
453
  opacity: ${T.opacityContentOnSurfacePressed};
454
454
  transform: translate(-50%, -50%) scale(1);
455
455
  }
456
- `;var ae={color:r.extend("--ft-loader-color","",z.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},md=I`
456
+ `;var ae={color:r.extend("--ft-loader-color","",z.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},gd=I`
457
457
  :host {
458
458
  line-height: 0;
459
459
  }
@@ -522,7 +522,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
522
522
  transform: translate(calc(0.35 * ${ae.size}), 0);
523
523
  }
524
524
  }
525
- `;var oe={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},gd=[I`
525
+ `;var oe={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},bd=[I`
526
526
  :host, i.ft-icon {
527
527
  display: inline-flex;
528
528
  align-items: center;
@@ -570,7 +570,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
570
570
  .ft-icon--material {
571
571
  font-family: ${oe.materialFontFamily}, "Material Icons", sans-serif;
572
572
  }
573
- `,St];var bd=r.extend("--ft-button-color","",z.colorPrimary),ce={backgroundColor:r.extend("--ft-button-background-color","",z.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",z.borderRadiusL),color:bd,fontSize:r.extend("--ft-button-font-size","",pt.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",bd),verticalPadding:r.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:r.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:r.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:r.external(z.colorOpacityDisabled,"Design system")},xd=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",z.colorOnPrimary)),as={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",z.colorPrimary)),color:xd,rippleColor:r.extend("--ft-button-primary-ripple-color","",xd)},ut={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",z.borderRadiusM)),verticalPadding:r.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:r.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:r.create("--ft-button-dense-icon-padding","","SIZE","4px")},vd=[I`
573
+ `,St];var xd=r.extend("--ft-button-color","",z.colorPrimary),ce={backgroundColor:r.extend("--ft-button-background-color","",z.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",z.borderRadiusL),color:xd,fontSize:r.extend("--ft-button-font-size","",pt.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",xd),verticalPadding:r.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:r.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:r.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:r.external(z.colorOpacityDisabled,"Design system")},vd=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",z.colorOnPrimary)),as={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",z.colorPrimary)),color:vd,rippleColor:r.extend("--ft-button-primary-ripple-color","",vd)},ut={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",z.borderRadiusM)),verticalPadding:r.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:r.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:r.create("--ft-button-dense-icon-padding","","SIZE","4px")},Sd=[I`
574
574
  :host {
575
575
  display: inline-block;
576
576
  max-width: 100%;
@@ -718,7 +718,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
718
718
  <div class="ft-ripple--background"></div>
719
719
  <div class="ft-ripple--effect"></div>
720
720
  </div>
721
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};se.elementDefinitions={};se.styles=yd;_e([x({type:Boolean})],se.prototype,"primary",void 0);_e([x({type:Boolean})],se.prototype,"secondary",void 0);_e([x({type:Boolean})],se.prototype,"unbounded",void 0);_e([x({type:Boolean})],se.prototype,"activated",void 0);_e([x({type:Boolean})],se.prototype,"selected",void 0);_e([x({type:Boolean})],se.prototype,"disabled",void 0);_e([Q()],se.prototype,"hovered",void 0);_e([Q()],se.prototype,"focused",void 0);_e([Q()],se.prototype,"pressed",void 0);_e([Q()],se.prototype,"rippling",void 0);_e([Q()],se.prototype,"originX",void 0);_e([Q()],se.prototype,"originY",void 0);_e([q(".ft-ripple")],se.prototype,"ripple",void 0);_e([q(".ft-ripple--effect")],se.prototype,"rippleEffect",void 0);X("ft-ripple")(se);var Kr={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",z.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},Sd=I`
721
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};se.elementDefinitions={};se.styles=md;_e([x({type:Boolean})],se.prototype,"primary",void 0);_e([x({type:Boolean})],se.prototype,"secondary",void 0);_e([x({type:Boolean})],se.prototype,"unbounded",void 0);_e([x({type:Boolean})],se.prototype,"activated",void 0);_e([x({type:Boolean})],se.prototype,"selected",void 0);_e([x({type:Boolean})],se.prototype,"disabled",void 0);_e([Q()],se.prototype,"hovered",void 0);_e([Q()],se.prototype,"focused",void 0);_e([Q()],se.prototype,"pressed",void 0);_e([Q()],se.prototype,"rippling",void 0);_e([Q()],se.prototype,"originX",void 0);_e([Q()],se.prototype,"originY",void 0);_e([q(".ft-ripple")],se.prototype,"ripple",void 0);_e([q(".ft-ripple--effect")],se.prototype,"rippleEffect",void 0);X("ft-ripple")(se);var Kr={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",z.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},Cd=I`
722
722
  .ft-tooltip--container {
723
723
  display: block;
724
724
  }
@@ -747,10 +747,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
747
747
  position: relative;
748
748
  word-break: break-word;
749
749
  }
750
- `;var Cd=I`
751
- `;var Pf="ft-app-info",lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lr.eventName="authentication-change";var kf={session:(t,e)=>{Be(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>$.dispatchEvent(new lr(e.payload)),0))}},$=rr.get({name:Pf,reducers:kf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var cr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=$.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=$.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var Mn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:cr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):cr.await()}};var ze=class extends Mn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new st,this.cache=e?i.commonCache:new st}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Un=class extends ze{async listMyBookmarks(){let e=$.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ss=class{addCommand(e,o=!1){$.commands.add(e,o)}consumeCommand(e){return $.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ss;var Od,Zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$f=Symbol("clearAfterUnitTest"),Fn=class extends jo(ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Od]=()=>{this.defaultMessages={},this.cache=new st,this.listeners={}},this.currentUiLocale=$.getState().uiLocale,$.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=$.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};Be(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new bo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof Vt)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Zr({loadedContexts:e})),this.dispatchEvent(new Zr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Zr({loadedContexts:[e]})),this.dispatchEvent(new Zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Go(0).then(()=>n()).catch(()=>null)))}};Od=$f;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var qr=window.FluidTopicsI18nService,Hn=window.FluidTopicsCustomI18nService;var ls=class{highlightHtml(e,o,n){pa(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ls;var zn=class extends ze{async listMySearches(){let{session:e}=$.getState();return $c(e,fe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var cs=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=$.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return or.format(e,(n=o?.locale)!==null&&n!==void 0?n:$.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new cs;var Ao=class{static get(e,o){var n,i;let a=$.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new $r(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var ds=class{urlToSearchRequest(e){return Ao.get().parse(e)}searchRequestToUrl(e){return Ao.get().serialize(e)}};window.FluidTopicsUrlService=new ds;var dr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};dr.eventName="change";var ps=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Ed=new ps;var Wn=class t extends mt{static build(){return new t(window.history,Ed,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Be(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new dr(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=o(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(dr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(dr.eventName,e)}currentItem(){return lo(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return lo(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return lo(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Wn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var wd=$;function Ad(t,e){var o;return wd.getState().authenticationRequired&&!(!((o=wd.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var ye=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ne=class extends G{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>cr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new st,this.cleanSessionDebouncer=new Me,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return P`
750
+ `;var Od=I`
751
+ `;var Pf="ft-app-info",lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lr.eventName="authentication-change";var kf={session:(t,e)=>{Be(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>$.dispatchEvent(new lr(e.payload)),0))}},$=rr.get({name:Pf,reducers:kf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var cr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=$.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=$.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var Mn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:cr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):cr.await()}};var ze=class extends Mn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new st,this.cache=e?i.commonCache:new st}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Un=class extends ze{async listMyBookmarks(){let e=$.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ss=class{addCommand(e,o=!1){$.commands.add(e,o)}consumeCommand(e){return $.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ss;var Ed,Zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$f=Symbol("clearAfterUnitTest"),Fn=class extends jo(ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ed]=()=>{this.defaultMessages={},this.cache=new st,this.listeners={}},this.currentUiLocale=$.getState().uiLocale,$.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=$.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};Be(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new bo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof Vt)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Zr({loadedContexts:e})),this.dispatchEvent(new Zr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Zr({loadedContexts:[e]})),this.dispatchEvent(new Zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Go(0).then(()=>n()).catch(()=>null)))}};Ed=$f;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var qr=window.FluidTopicsI18nService,Hn=window.FluidTopicsCustomI18nService;var ls=class{highlightHtml(e,o,n){pa(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ls;var zn=class extends ze{async listMySearches(){let{session:e}=$.getState();return Dc(e,fe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var cs=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=$.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return or.format(e,(n=o?.locale)!==null&&n!==void 0?n:$.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new cs;var Ao=class{static get(e,o){var n,i;let a=$.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new $r(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var ds=class{urlToSearchRequest(e){return Ao.get().parse(e)}searchRequestToUrl(e){return Ao.get().serialize(e)}};window.FluidTopicsUrlService=new ds;var dr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};dr.eventName="change";var ps=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},wd=new ps;var Wn=class t extends mt{static build(){return new t(window.history,wd,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Be(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new dr(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=o(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(dr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(dr.eventName,e)}currentItem(){return lo(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return lo(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return lo(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Wn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});function Ad(t,e){let{authenticationRequired:o,session:n}=$.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var ye=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ne=class extends G{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>cr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new st,this.cleanSessionDebouncer=new Me,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return P`
752
752
  <slot></slot>
753
- `}connectedCallback(){super.connectedCallback(),$.addEventListener(lr.eventName,this.reloadConfiguration)}disconnectedCallback(){$.addEventListener(lr.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&($.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&$.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&$.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&$.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&$.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&$.actions.noCustom(this.noCustom),e.has("editorMode")&&$.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&$.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&$.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>qr.addContext(u)),e.has("openExternalDocumentInNewTab")&&$.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&$.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&$.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&($.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),$.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),$.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&$.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&$.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Ad(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ne.elementDefinitions={};ne.styles=Cd;ye([x()],ne.prototype,"baseUrl",void 0);ye([x()],ne.prototype,"apiIntegrationIdentifier",void 0);ye([x()],ne.prototype,"apiIntegrationAppVersion",void 0);ye([x()],ne.prototype,"uiLocale",void 0);ye([Ve(null)],ne.prototype,"availableUiLocales",void 0);ye([Ve(null)],ne.prototype,"metadataConfiguration",void 0);ye([x({type:Boolean})],ne.prototype,"editorMode",void 0);ye([x({type:Boolean})],ne.prototype,"noCustom",void 0);ye([x({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);ye([x({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);ye([x({type:Boolean})],ne.prototype,"withManualResources",void 0);ye([x({type:Boolean})],ne.prototype,"navigatorOnline",void 0);ye([x({type:Boolean})],ne.prototype,"forcedOffline",void 0);ye([x({type:Object})],ne.prototype,"apiProvider",void 0);ye([x({type:Boolean})],ne.prototype,"authenticationRequired",void 0);ye([Ve([])],ne.prototype,"messageContexts",void 0);ye([Ve(void 0)],ne.prototype,"session",void 0);ye([Q()],ne.prototype,"localesConfiguration",void 0);ye([Q()],ne.prototype,"availableContentLocales",void 0);var Gn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},VE=Ce(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore($)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>or.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Gn([x({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Gn([x({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Gn([wr({store:$.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Gn([wr({store:$.name})],e.prototype,"uiLocale",void 0),e});var jn=class extends ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=$.getState().session;return!!e?.sessionAuthenticated}};var Vn=class extends ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=$.getState().session;return!!e?.sessionAuthenticated}};var Df="ft-user-assets",Bf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Ze).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;fs(t,o,[...us(t,o),i]),Rd(t,o,1,n),Td(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;fs(t,o,us(t,o).map(i=>i.id===n.id?n:i)),Td(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;fs(t,o,us(t,o).filter(a=>a.id!==i)),Rd(t,o,-1,n)}},Ld={[Ze.SEARCHES]:"savedSearches",[Ze.BOOKMARKS]:"bookmarks",[Ze.BOOKS]:void 0,[Ze.COLLECTIONS]:void 0},us=(t,e)=>{var o;let n=Ld[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},fs=(t,e,o)=>{let n=Ld[e];n&&(t[n]=o)},Rd=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===Ze.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},Td=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},We=rr.get({name:Df,reducers:Bf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ze).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),hs=class{constructor(e=new jn,o=new Vn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=$.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Un,this.savedSearchesService=new zn,$.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=$.getState();Be((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),We.actions.clearAssetCount(),We.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),We.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),We.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();We.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();We.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&We.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&We.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(We.getState().assetCounts.bookmarkByMap).length!==0;e===Ze.BOOKMARKS&&o&&We.actions.clearBookmarkCountByMap(),We.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;We.actions.bookmarks(o)}}},Mf=new hs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Mf);X("ft-app-context")(ne);var ys=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Yr=new ys;var Uf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},To=Symbol("i18nAttributes"),_d=Symbol("i18nListAttributes"),Nd=Symbol("i18nProperties"),Kn=Symbol("i18nContexts"),Ro=Symbol("i18nUnsubs"),Id=Ce(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Hn:qr}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Yr.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,y)=>y?.context&&y.key&&a(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[To])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[_d])===null||l===void 0||l.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(v=>u(h,f,v))})}updateI18nProperties(a){var s;(s=this[Nd])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Kn].set(d,{isCustomContext:l}),this[Ro].has(d)||this[Ro].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[Kn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Kn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ro].forEach(a=>a()),this[Ro].clear()}}return e=Kn,o=Ro,Uf([x({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Xr=class extends Id(G){},Zn=class extends Id(So){};var ms=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Yr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Ff=new ms;var Pd=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:yt,converter:Yr,...e}),o[To]=(i=o[To])!==null&&i!==void 0?i:new Map,o[To].set(n,t??{})};var kd=I`
753
+ `}connectedCallback(){super.connectedCallback(),$.addEventListener(lr.eventName,this.reloadConfiguration)}disconnectedCallback(){$.addEventListener(lr.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&($.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&$.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&$.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&$.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&$.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&$.actions.noCustom(this.noCustom),e.has("editorMode")&&$.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&$.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&$.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>qr.addContext(u)),e.has("openExternalDocumentInNewTab")&&$.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&$.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&$.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&($.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),$.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),$.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&$.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&$.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Ad(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ne.elementDefinitions={};ne.styles=Od;ye([x()],ne.prototype,"baseUrl",void 0);ye([x()],ne.prototype,"apiIntegrationIdentifier",void 0);ye([x()],ne.prototype,"apiIntegrationAppVersion",void 0);ye([x()],ne.prototype,"uiLocale",void 0);ye([Ve(null)],ne.prototype,"availableUiLocales",void 0);ye([Ve(null)],ne.prototype,"metadataConfiguration",void 0);ye([x({type:Boolean})],ne.prototype,"editorMode",void 0);ye([x({type:Boolean})],ne.prototype,"noCustom",void 0);ye([x({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);ye([x({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);ye([x({type:Boolean})],ne.prototype,"withManualResources",void 0);ye([x({type:Boolean})],ne.prototype,"navigatorOnline",void 0);ye([x({type:Boolean})],ne.prototype,"forcedOffline",void 0);ye([x({type:Object})],ne.prototype,"apiProvider",void 0);ye([x({type:Boolean})],ne.prototype,"authenticationRequired",void 0);ye([Ve([])],ne.prototype,"messageContexts",void 0);ye([Ve(void 0)],ne.prototype,"session",void 0);ye([Q()],ne.prototype,"localesConfiguration",void 0);ye([Q()],ne.prototype,"availableContentLocales",void 0);var Gn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},VE=Ce(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore($)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>or.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Gn([x({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Gn([x({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Gn([wr({store:$.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Gn([wr({store:$.name})],e.prototype,"uiLocale",void 0),e});var jn=class extends ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=$.getState().session;return!!e?.sessionAuthenticated}};var Vn=class extends ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=$.getState().session;return!!e?.sessionAuthenticated}};var Df="ft-user-assets",Bf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Ze).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;fs(t,o,[...us(t,o),i]),Rd(t,o,1,n),Td(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;fs(t,o,us(t,o).map(i=>i.id===n.id?n:i)),Td(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;fs(t,o,us(t,o).filter(a=>a.id!==i)),Rd(t,o,-1,n)}},Ld={[Ze.SEARCHES]:"savedSearches",[Ze.BOOKMARKS]:"bookmarks",[Ze.BOOKS]:void 0,[Ze.COLLECTIONS]:void 0},us=(t,e)=>{var o;let n=Ld[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},fs=(t,e,o)=>{let n=Ld[e];n&&(t[n]=o)},Rd=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===Ze.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},Td=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},We=rr.get({name:Df,reducers:Bf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ze).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),hs=class{constructor(e=new jn,o=new Vn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=$.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Un,this.savedSearchesService=new zn,$.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=$.getState();Be((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),We.actions.clearAssetCount(),We.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),We.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),We.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();We.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();We.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&We.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&We.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(We.getState().assetCounts.bookmarkByMap).length!==0;e===Ze.BOOKMARKS&&o&&We.actions.clearBookmarkCountByMap(),We.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;We.actions.bookmarks(o)}}},Mf=new hs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Mf);X("ft-app-context")(ne);var ys=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Yr=new ys;var Uf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},To=Symbol("i18nAttributes"),_d=Symbol("i18nListAttributes"),Nd=Symbol("i18nProperties"),Kn=Symbol("i18nContexts"),Ro=Symbol("i18nUnsubs"),Id=Ce(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Hn:qr}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Yr.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,y)=>y?.context&&y.key&&a(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[To])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[_d])===null||l===void 0||l.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(v=>u(h,f,v))})}updateI18nProperties(a){var s;(s=this[Nd])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Kn].set(d,{isCustomContext:l}),this[Ro].has(d)||this[Ro].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[Kn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Kn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ro].forEach(a=>a()),this[Ro].clear()}}return e=Kn,o=Ro,Uf([x({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Xr=class extends Id(G){},Zn=class extends Id(So){};var ms=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Yr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Ff=new ms;var Pd=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:yt,converter:Yr,...e}),o[To]=(i=o[To])!==null&&i!==void 0?i:new Map,o[To].set(n,t??{})};var kd=I`
754
754
  `;var Lo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},rt=class extends Zn{constructor(){super(),this.editorMode=!1,this.addStore($)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":F:P`
755
755
  <span class="ft-i18n">
756
756
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -770,19 +770,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
770
770
  </div>
771
771
  </div>
772
772
  </div>
773
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ra(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${z.transitionDuration}, left ${z.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Ei(e,this.ignoreMatchingElements,this.eventsTarget)}};me.elementDefinitions={"ft-typography":He};me.styles=Sd;ot([Pd()],me.prototype,"text",void 0);ot([x({type:Boolean})],me.prototype,"manual",void 0);ot([x({type:Boolean})],me.prototype,"inline",void 0);ot([Vo()],me.prototype,"delay",void 0);ot([x()],me.prototype,"position",void 0);ot([Ve([])],me.prototype,"ignoreMatchingElements",void 0);ot([Gt()],me.prototype,"slotNodes",void 0);ot([q(".ft-tooltip--container")],me.prototype,"container",void 0);ot([q(".ft-tooltip")],me.prototype,"tooltip",void 0);ot([q(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);ot([Q()],me.prototype,"visible",void 0);X("ft-tooltip")(me);var Et;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;"})(Et||(Et={}));var _;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(_||(_={}));var bA=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var xA={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var Ne;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ne||(Ne={}));var _o=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ge=class extends G{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=F}render(){let e=this.variant&&Object.values(Ne).includes(this.variant)?this.variant:Ne.fluid_topics,o=e!==Ne.material||!!this.value;return P`
773
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ra(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${z.transitionDuration}, left ${z.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Ei(e,this.ignoreMatchingElements,this.eventsTarget)}};me.elementDefinitions={"ft-typography":He};me.styles=Cd;ot([Pd()],me.prototype,"text",void 0);ot([x({type:Boolean})],me.prototype,"manual",void 0);ot([x({type:Boolean})],me.prototype,"inline",void 0);ot([Vo()],me.prototype,"delay",void 0);ot([x()],me.prototype,"position",void 0);ot([Ve([])],me.prototype,"ignoreMatchingElements",void 0);ot([Gt()],me.prototype,"slotNodes",void 0);ot([q(".ft-tooltip--container")],me.prototype,"container",void 0);ot([q(".ft-tooltip")],me.prototype,"tooltip",void 0);ot([q(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);ot([Q()],me.prototype,"visible",void 0);X("ft-tooltip")(me);var Et;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;"})(Et||(Et={}));var _;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(_||(_={}));var bA=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var xA={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var Ne;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ne||(Ne={}));var _o=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ge=class extends G{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=F}render(){let e=this.variant&&Object.values(Ne).includes(this.variant)?this.variant:Ne.fluid_topics,o=e!==Ne.material||!!this.value;return P`
774
774
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
775
775
  ${vi(this.resolvedIcon)}
776
776
  <slot ?hidden=${o}></slot>
777
777
  </i>
778
- `}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case Ne.file_format:this.resolvedIcon=(e=_[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ne.material:this.resolvedIcon=this.value||F;break;default:this.resolvedIcon=(o=Et[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ge.elementDefinitions={};ge.styles=gd;_o([x()],ge.prototype,"variant",void 0);_o([x()],ge.prototype,"value",void 0);_o([x({reflect:!0,attribute:"aria-hidden"})],ge.prototype,"ariaHidden",void 0);_o([Q()],ge.prototype,"resolvedIcon",void 0);_o([q("slot")],ge.prototype,"slottedContent",void 0);X("ft-icon")(ge);var pr=class extends G{render(){return P`
778
+ `}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case Ne.file_format:this.resolvedIcon=(e=_[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ne.material:this.resolvedIcon=this.value||F;break;default:this.resolvedIcon=(o=Et[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ge.elementDefinitions={};ge.styles=bd;_o([x()],ge.prototype,"variant",void 0);_o([x()],ge.prototype,"value",void 0);_o([x({reflect:!0,attribute:"aria-hidden"})],ge.prototype,"ariaHidden",void 0);_o([Q()],ge.prototype,"resolvedIcon",void 0);_o([q("slot")],ge.prototype,"slottedContent",void 0);X("ft-icon")(ge);var pr=class extends G{render(){return P`
779
779
  <div class="ft-loader">
780
780
  <div></div>
781
781
  <div></div>
782
782
  <div></div>
783
783
  <div></div>
784
784
  </div>
785
- `}};pr.styles=md;X("ft-loader")(pr);var be=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},J=class extends Va(G){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let i=P`
785
+ `}};pr.styles=gd;X("ft-loader")(pr);var be=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},J=class extends Va(G){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let i=P`
786
786
  <ft-ripple part="ripple"
787
787
  ?disabled=${this.isDisabled()}
788
788
  ?activated=${this.activated}
@@ -824,7 +824,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
824
824
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
825
825
  `:P`
826
826
  <slot part="icon" name="icon"></slot>
827
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return at(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};J.elementDefinitions={"ft-ripple":se,"ft-tooltip":me,"ft-icon":ge,"ft-loader":pr};be([x()],J.prototype,"href",void 0);be([x()],J.prototype,"target",void 0);be([x()],J.prototype,"type",void 0);be([x({type:Boolean})],J.prototype,"disabled",void 0);be([x()],J.prototype,"label",void 0);be([x()],J.prototype,"icon",void 0);be([x()],J.prototype,"iconVariant",void 0);be([x({type:Boolean})],J.prototype,"trailingIcon",void 0);be([x({type:Boolean})],J.prototype,"loading",void 0);be([x({attribute:"aria-label"})],J.prototype,"ariaLabel",void 0);be([x()],J.prototype,"ariaHasPopup",void 0);be([x({attribute:"aria-pressed"})],J.prototype,"ariaPressed",void 0);be([x()],J.prototype,"tooltipPosition",void 0);be([x({type:Boolean})],J.prototype,"hideTooltip",void 0);be([x({type:Boolean})],J.prototype,"forceTooltip",void 0);be([x({type:Boolean})],J.prototype,"activated",void 0);be([q(".ft-button")],J.prototype,"button",void 0);be([q(".ft-button--label slot")],J.prototype,"slottedContent",void 0);be([q("[part=tooltip]")],J.prototype,"tooltip",void 0);var Yn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ye=class extends J{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return Bt.button}};Ye.elementDefinitions={...J.elementDefinitions,"ft-or-ftds-typography":He};Ye.styles=[Jt,vd];Yn([x({type:Boolean})],Ye.prototype,"primary",void 0);Yn([x({type:Boolean})],Ye.prototype,"outlined",void 0);Yn([x({type:Boolean})],Ye.prototype,"dense",void 0);Yn([x({type:Boolean})],Ye.prototype,"round",void 0);var gs={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},$d=[I`
827
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return at(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};J.elementDefinitions={"ft-ripple":se,"ft-tooltip":me,"ft-icon":ge,"ft-loader":pr};be([x()],J.prototype,"href",void 0);be([x()],J.prototype,"target",void 0);be([x()],J.prototype,"type",void 0);be([x({type:Boolean})],J.prototype,"disabled",void 0);be([x()],J.prototype,"label",void 0);be([x()],J.prototype,"icon",void 0);be([x()],J.prototype,"iconVariant",void 0);be([x({type:Boolean})],J.prototype,"trailingIcon",void 0);be([x({type:Boolean})],J.prototype,"loading",void 0);be([x({attribute:"aria-label"})],J.prototype,"ariaLabel",void 0);be([x()],J.prototype,"ariaHasPopup",void 0);be([x({attribute:"aria-pressed"})],J.prototype,"ariaPressed",void 0);be([x()],J.prototype,"tooltipPosition",void 0);be([x({type:Boolean})],J.prototype,"hideTooltip",void 0);be([x({type:Boolean})],J.prototype,"forceTooltip",void 0);be([x({type:Boolean})],J.prototype,"activated",void 0);be([q(".ft-button")],J.prototype,"button",void 0);be([q(".ft-button--label slot")],J.prototype,"slottedContent",void 0);be([q("[part=tooltip]")],J.prototype,"tooltip",void 0);var Yn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ye=class extends J{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return Bt.button}};Ye.elementDefinitions={...J.elementDefinitions,"ft-or-ftds-typography":He};Ye.styles=[Jt,Sd];Yn([x({type:Boolean})],Ye.prototype,"primary",void 0);Yn([x({type:Boolean})],Ye.prototype,"outlined",void 0);Yn([x({type:Boolean})],Ye.prototype,"dense",void 0);Yn([x({type:Boolean})],Ye.prototype,"round",void 0);var gs={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},$d=[I`
828
828
  :host {
829
829
  display: inline-block;
830
830
  max-width: 100%;
@@ -2011,7 +2011,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
2011
2011
  openButtonLabel="${ei.messages.popoverOpenButtonLabel()}" openButtonTooltipPosition="bottom"
2012
2012
  openButtonFamily="${Ae.info}" openButtonSize="${pe.medium}">
2013
2013
  <slot name="popover-content" @slotchange=${this.onSlotChange}></slot>
2014
- </ftds-popover>`}onSlotChange(e){switch(e.target.getAttribute("name")){case"popover-content":this.popoverHasContent=this.popoverContent.length>0;break;case"footer-right":case"footer-left":this.footerHasContent=this.footerLeftContent.length>0||this.footerRightContent.length>0;break}e.stopPropagation()}};Te.elementDefinitions={"ftds-typography":he,"ftds-popover":re,"ftds-chip":$e,"ftds-link":Ge};Te.styles=Gc;At([x()],Te.prototype,"pageTitle",void 0);At([x()],Te.prototype,"breadcrumb",void 0);At([x()],Te.prototype,"subTitle",void 0);At([x()],Te.prototype,"chipsContent",void 0);At([Q()],Te.prototype,"footerHasContent",void 0);At([Q()],Te.prototype,"popoverHasContent",void 0);At([Gt({slot:"footer-left"})],Te.prototype,"footerLeftContent",void 0);At([Gt({slot:"footer-right"})],Te.prototype,"footerRightContent",void 0);At([Gt({slot:"popover-content"})],Te.prototype,"popoverContent",void 0);X("ftds-page-layout")(Te);})();
2014
+ </ftds-popover>`}onSlotChange(e){switch(e.target.getAttribute("name")){case"popover-content":this.popoverHasContent=this.popoverContent.length>0;break;case"footer-right":case"footer-left":this.footerHasContent=this.footerLeftContent.length>0||this.footerRightContent.length>0;break}e.stopPropagation()}};Te.elementDefinitions={"ftds-typography":he,"ftds-popover":re,"ftds-chip":$e,"ftds-link":Ge};Te.styles=jc;At([x()],Te.prototype,"pageTitle",void 0);At([x()],Te.prototype,"breadcrumb",void 0);At([x()],Te.prototype,"subTitle",void 0);At([x()],Te.prototype,"chipsContent",void 0);At([Q()],Te.prototype,"footerHasContent",void 0);At([Q()],Te.prototype,"popoverHasContent",void 0);At([Gt({slot:"footer-left"})],Te.prototype,"footerLeftContent",void 0);At([Gt({slot:"footer-right"})],Te.prototype,"footerRightContent",void 0);At([Gt({slot:"popover-content"})],Te.prototype,"popoverContent",void 0);X("ftds-page-layout")(Te);})();
2015
2015
  /*! Bundled license information:
2016
2016
 
2017
2017
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: