@fluid-topics/ft-search-load-more-button 2.1.19 → 2.1.20

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.
@@ -4,11 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, nothing } from "lit";
8
- import { redux } from "@fluid-topics/ft-wc-utils";
7
+ import { html, nothing, } from "lit";
8
+ import { redux, } from "@fluid-topics/ft-wc-utils";
9
9
  import { styles } from "./ft-search-load-more-button.styles";
10
10
  import { FtButton } from "@fluid-topics/ft-button";
11
- import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
11
+ import { FtSearchComponent, } from "@fluid-topics/ft-search-context/build/registration";
12
12
  import { withI18n } from "@fluid-topics/ft-i18n";
13
13
  import { designedActionBlockAriaLabels } from "./messages";
14
14
  import { FtSearchStateResourceRequest } from "@fluid-topics/ft-search-context/build/store/model";
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Rl=Object.create;var _i=Object.defineProperty;var _l=Object.getOwnPropertyDescriptor;var Ll=Object.getOwnPropertyNames;var Pl=Object.getPrototypeOf,Nl=Object.prototype.hasOwnProperty;var $t=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Dl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ll(t))!Nl.call(e,i)&&i!==r&&_i(e,i,{get:()=>t[i],enumerable:!(n=_l(t,i))||n.enumerable});return e};var g=(e,t,r)=>(r=e!=null?Rl(Pl(e)):{},Dl(t||!e||!e.__esModule?_i(r,"default",{value:e,enumerable:!0}):r,e));var C=$t((au,Li)=>{Li.exports=ftGlobals.wcUtils});var H=$t((lu,Pi)=>{Pi.exports=ftGlobals.lit});var W=$t((uu,Mi)=>{Mi.exports=ftGlobals.litDecorators});var un=$t((du,Ii)=>{Ii.exports=ftGlobals.litClassMap});var ol=$t((Sg,sl)=>{sl.exports=ftGlobals.litUnsafeHTML});var Ol=g(C());var ln=g(H()),Ri=g(C());var Ni=g(H());var Di=Ni.css`
1
+ "use strict";(()=>{var Rl=Object.create;var _i=Object.defineProperty;var _l=Object.getOwnPropertyDescriptor;var Ll=Object.getOwnPropertyNames;var Pl=Object.getPrototypeOf,Nl=Object.prototype.hasOwnProperty;var $t=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Dl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ll(t))!Nl.call(e,i)&&i!==r&&_i(e,i,{get:()=>t[i],enumerable:!(n=_l(t,i))||n.enumerable});return e};var g=(e,t,r)=>(r=e!=null?Rl(Pl(e)):{},Dl(t||!e||!e.__esModule?_i(r,"default",{value:e,enumerable:!0}):r,e));var C=$t((au,Li)=>{Li.exports=ftGlobals.wcUtils});var H=$t((lu,Pi)=>{Pi.exports=ftGlobals.lit});var W=$t((uu,Mi)=>{Mi.exports=ftGlobals.litDecorators});var un=$t((du,Ii)=>{Ii.exports=ftGlobals.litClassMap});var ol=$t((Ag,sl)=>{sl.exports=ftGlobals.litUnsafeHTML});var Ol=g(C());var ln=g(H()),Ri=g(C());var Ni=g(H());var Di=Ni.css`
2
2
  `;var ce=g(C());var Vi=g(H()),F=g(W()),qi=g(un()),Ht=g(C());var ji=g(H()),k=g(C()),ki=k.FtCssVariableFactory.extend("--ft-ripple-color","",k.designSystemVariables.colorContent),re={color:ki,backgroundColor:k.FtCssVariableFactory.extend("--ft-ripple-background-color","",ki),opacityContentOnSurfacePressed:k.FtCssVariableFactory.external(k.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:k.FtCssVariableFactory.external(k.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:k.FtCssVariableFactory.external(k.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:k.FtCssVariableFactory.external(k.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:k.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ui=k.FtCssVariableFactory.extend("--ft-ripple-color","",k.designSystemVariables.colorPrimary),$i={color:Ui,backgroundColor:k.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ui)},Hi=k.FtCssVariableFactory.extend("--ft-ripple-color","",k.designSystemVariables.colorSecondary),Bi={color:Hi,backgroundColor:k.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hi)},Fi=ji.css`
3
3
  :host {
4
4
  display: contents;
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
  `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.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 t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",n,o),t.addEventListener("touchstart",i,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",n,o),t.removeEventListener("touchstart",i,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,s;return r.x!=null?{x:i,y:s}=r:n.touches!=null&&(i=n.touches[0].clientX,s=n.touches[0].clientY),{x:i,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};D.elementDefinitions={};D.styles=Fi;z([(0,F.property)({type:Boolean})],D.prototype,"primary",void 0);z([(0,F.property)({type:Boolean})],D.prototype,"secondary",void 0);z([(0,F.property)({type:Boolean})],D.prototype,"unbounded",void 0);z([(0,F.property)({type:Boolean})],D.prototype,"activated",void 0);z([(0,F.property)({type:Boolean})],D.prototype,"selected",void 0);z([(0,F.property)({type:Boolean})],D.prototype,"disabled",void 0);z([(0,F.state)()],D.prototype,"hovered",void 0);z([(0,F.state)()],D.prototype,"focused",void 0);z([(0,F.state)()],D.prototype,"pressed",void 0);z([(0,F.state)()],D.prototype,"rippling",void 0);z([(0,F.state)()],D.prototype,"originX",void 0);z([(0,F.state)()],D.prototype,"originY",void 0);z([(0,F.query)(".ft-ripple")],D.prototype,"ripple",void 0);z([(0,F.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);var Wi=g(C());var Ki={"ft-ripple":D};(0,Wi.customElements)(Ki);var el=g(H()),le=g(W()),ae=g(C());var yn=globalThis,zi=e=>e,hr=yn.trustedTypes,Gi=hr?hr.createPolicy("lit-html",{createHTML:e=>e}):void 0,es="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,ts="?"+Le,Ml=`<${ts}>`,Ge=document,mr=()=>Ge.createComment(""),jt=e=>e===null||typeof e!="object"&&typeof e!="function",vn=Array.isArray,Il=e=>vn(e)||typeof e?.[Symbol.iterator]=="function",dn=`[
126
126
  \f\r]`,Bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yi=/-->/g,Xi=/>/g,We=RegExp(`>|${dn}(?:([^\\s"'>=/]+)(${dn}*=${dn}*(?:[^
127
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Qi=/'/g,Ji=/"/g,rs=/^(?:script|style|textarea|title)$/i,bn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),ns=bn(1),is=bn(2),ss=bn(3),Ft=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),Zi=new WeakMap,ze=Ge.createTreeWalker(Ge,129);function os(e,t){if(!vn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gi!==void 0?Gi.createHTML(t):t}var kl=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=Bt;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Bt?u[1]==="!--"?o=Yi:u[1]!==void 0?o=Xi:u[2]!==void 0?(rs.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=We):u[3]!==void 0&&(o=We):o===We?u[0]===">"?(o=i??Bt,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?We:u[3]==='"'?Ji:Qi):o===Ji||o===Qi?o=We:o===Yi||o===Xi?o=Bt:(o=We,i=void 0);let f=o===We&&e[a+1].startsWith("/>")?" ":"";s+=o===Bt?l+Ml:d>=0?(n.push(c),l.slice(0,d)+es+l.slice(d)+Le+f):l+Le+(d===-2?a:f)}return[os(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Vt=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=kl(t,r);if(this.el=e.createElement(c,n),ze.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=ze.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(es)){let p=u[o++],f=i.getAttribute(d).split(Le),h=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:h[2],strings:f,ctor:h[1]==="."?fn:h[1]==="?"?hn:h[1]==="@"?mn:pt}),i.removeAttribute(d)}else d.startsWith(Le)&&(l.push({type:6,index:s}),i.removeAttribute(d));if(rs.test(i.tagName)){let d=i.textContent.split(Le),p=d.length-1;if(p>0){i.textContent=hr?hr.emptyScript:"";for(let f=0;f<p;f++)i.append(d[f],mr()),ze.nextNode(),l.push({type:2,index:++s});i.append(d[p],mr())}}}else if(i.nodeType===8)if(i.data===ts)l.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(Le,d+1))!==-1;)l.push({type:7,index:s}),d+=Le.length-1}s++}}static createElement(t,r){let n=Ge.createElement("template");return n.innerHTML=t,n}};function dt(e,t,r=e,n){if(t===Ft)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=jt(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=dt(e,i._$AS(e,t.values),i,n)),t}var pn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Ge).importNode(r,!0);ze.currentNode=i;let s=ze.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new gr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new gn(s,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(s=ze.nextNode(),o++)}return ze.currentNode=Ge,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},gr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=dt(this,t,r),jt(t)?t===U||t==null||t===""?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==Ft&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Il(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==U&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ge.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Vt.createElement(os(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new pn(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=Zi.get(t.strings);return r===void 0&&Zi.set(t.strings,r=new Vt(t)),r}k(t){vn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O(mr()),this.O(mr()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=zi(t).nextSibling;zi(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=U}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=dt(this,t,r,0),o=!jt(t)||t!==this._$AH&&t!==Ft,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=dt(this,a[n+l],r,l),c===Ft&&(c=this._$AH[l]),o||=!jt(c)||c!==this._$AH[l],c===U?t=U:t!==U&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fn=class extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}},hn=class extends pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}},mn=class extends pt{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=dt(this,t,r,0)??U)===Ft)return;let n=this._$AH,i=t===U&&n!==U||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==U&&(n===U||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gn=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}};var Ul=yn.litHtmlPolyfillSupport;Ul?.(Vt,gr),(yn.litHtmlVersions??=[]).push("3.3.3");var ls=Symbol.for(""),$l=e=>{if(e?.r===ls)return e?._$litStatic$},xn=e=>({_$litStatic$:e,r:ls});var as=new Map,An=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(s=r[c],(i=$l(s))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(s),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=as.get(d))===void 0&&(o.raw=o,as.set(d,t=o)),r=a}return e(t,...r)},Sn=An(ns),wu=An(is),Tu=An(ss);var En=g(W()),Ss=g(C());var Pe;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Pe||(Pe={}));var ne=g(H()),v=g(C()),cs=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.titleFont),Ee=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.contentFont),S={fontFamily:Ee,fontSize:v.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:v.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:v.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:v.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:v.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ft={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-font-family","",cs),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit")},ht={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",cs),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit")},mt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit")},gt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit")},yt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit")},vt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit")},bt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit")},xt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit")},At={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase")},be={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase")},us=ne.css`
127
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Qi=/'/g,Ji=/"/g,rs=/^(?:script|style|textarea|title)$/i,bn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),ns=bn(1),is=bn(2),ss=bn(3),Ft=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),Zi=new WeakMap,ze=Ge.createTreeWalker(Ge,129);function os(e,t){if(!vn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gi!==void 0?Gi.createHTML(t):t}var kl=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=Bt;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Bt?u[1]==="!--"?o=Yi:u[1]!==void 0?o=Xi:u[2]!==void 0?(rs.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=We):u[3]!==void 0&&(o=We):o===We?u[0]===">"?(o=i??Bt,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?We:u[3]==='"'?Ji:Qi):o===Ji||o===Qi?o=We:o===Yi||o===Xi?o=Bt:(o=We,i=void 0);let f=o===We&&e[a+1].startsWith("/>")?" ":"";s+=o===Bt?l+Ml:d>=0?(n.push(c),l.slice(0,d)+es+l.slice(d)+Le+f):l+Le+(d===-2?a:f)}return[os(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Vt=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=kl(t,r);if(this.el=e.createElement(c,n),ze.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=ze.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(es)){let p=u[o++],f=i.getAttribute(d).split(Le),h=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:h[2],strings:f,ctor:h[1]==="."?fn:h[1]==="?"?hn:h[1]==="@"?mn:pt}),i.removeAttribute(d)}else d.startsWith(Le)&&(l.push({type:6,index:s}),i.removeAttribute(d));if(rs.test(i.tagName)){let d=i.textContent.split(Le),p=d.length-1;if(p>0){i.textContent=hr?hr.emptyScript:"";for(let f=0;f<p;f++)i.append(d[f],mr()),ze.nextNode(),l.push({type:2,index:++s});i.append(d[p],mr())}}}else if(i.nodeType===8)if(i.data===ts)l.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(Le,d+1))!==-1;)l.push({type:7,index:s}),d+=Le.length-1}s++}}static createElement(t,r){let n=Ge.createElement("template");return n.innerHTML=t,n}};function dt(e,t,r=e,n){if(t===Ft)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=jt(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=dt(e,i._$AS(e,t.values),i,n)),t}var pn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Ge).importNode(r,!0);ze.currentNode=i;let s=ze.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new gr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new gn(s,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(s=ze.nextNode(),o++)}return ze.currentNode=Ge,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},gr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=dt(this,t,r),jt(t)?t===U||t==null||t===""?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==Ft&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Il(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==U&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ge.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Vt.createElement(os(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new pn(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=Zi.get(t.strings);return r===void 0&&Zi.set(t.strings,r=new Vt(t)),r}k(t){vn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O(mr()),this.O(mr()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=zi(t).nextSibling;zi(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=U}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=dt(this,t,r,0),o=!jt(t)||t!==this._$AH&&t!==Ft,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=dt(this,a[n+l],r,l),c===Ft&&(c=this._$AH[l]),o||=!jt(c)||c!==this._$AH[l],c===U?t=U:t!==U&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fn=class extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}},hn=class extends pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}},mn=class extends pt{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=dt(this,t,r,0)??U)===Ft)return;let n=this._$AH,i=t===U&&n!==U||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==U&&(n===U||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gn=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}};var Ul=yn.litHtmlPolyfillSupport;Ul?.(Vt,gr),(yn.litHtmlVersions??=[]).push("3.3.3");var ls=Symbol.for(""),$l=e=>{if(e?.r===ls)return e?._$litStatic$},xn=e=>({_$litStatic$:e,r:ls});var as=new Map,Sn=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(s=r[c],(i=$l(s))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(s),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=as.get(d))===void 0&&(o.raw=o,as.set(d,t=o)),r=a}return e(t,...r)},An=Sn(ns),wu=Sn(is),Tu=Sn(ss);var En=g(W()),As=g(C());var Pe;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Pe||(Pe={}));var ne=g(H()),v=g(C()),cs=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.titleFont),Ee=v.FtCssVariableFactory.extend("--ft-typography-font-family","",v.designSystemVariables.contentFont),A={fontFamily:Ee,fontSize:v.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:v.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:v.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:v.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:v.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ft={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-font-family","",cs),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},ht={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",cs),fontSize:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},mt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},gt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},yt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},vt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},bt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},xt={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},St={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},be={fontFamily:v.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ee),fontSize:v.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:v.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:v.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:v.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:v.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},us=ne.css`
128
128
  .ft-typography--title {
129
129
  font-family: ${ft.fontFamily};
130
130
  font-size: ${ft.fontSize};
@@ -199,12 +199,12 @@
199
199
  }
200
200
  `,vs=ne.css`
201
201
  .ft-typography--overline {
202
- font-family: ${At.fontFamily};
203
- font-size: ${At.fontSize};
204
- font-weight: ${At.fontWeight};
205
- letter-spacing: ${At.letterSpacing};
206
- line-height: ${At.lineHeight};
207
- text-transform: ${At.textTransform};
202
+ font-family: ${St.fontFamily};
203
+ font-size: ${St.fontSize};
204
+ font-weight: ${St.fontWeight};
205
+ letter-spacing: ${St.letterSpacing};
206
+ line-height: ${St.lineHeight};
207
+ text-transform: ${St.textTransform};
208
208
  }
209
209
  `,bs=ne.css`
210
210
  .ft-typography--button {
@@ -219,15 +219,15 @@
219
219
  .ft-typography {
220
220
  vertical-align: inherit;
221
221
  }
222
- `;var As=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ue=class extends Ss.FtLitElement{constructor(){super(...arguments),this.variant=Pe.body1}render(){return this.element?Sn`
222
+ `;var Ss=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ue=class extends As.FtLitElement{constructor(){super(...arguments),this.variant=Pe.body1}render(){return this.element?An`
223
223
  <${xn(this.element)}
224
224
  part="text"
225
225
  class="ft-typography ft-typography--${this.variant}">
226
226
  <slot></slot>
227
227
  </${xn(this.element)}>
228
- `:Sn`
228
+ `:An`
229
229
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
230
- `}};ue.styles=[us,ds,ps,fs,hs,ms,gs,ys,vs,bs,xs];As([(0,En.property)()],ue.prototype,"element",void 0);As([(0,En.property)()],ue.prototype,"variant",void 0);var Cs=g(C());var Es={"ft-typography":ue};(0,Cs.customElements)(Es);var ws=g(H()),Ne=g(C()),qt={distance:Ne.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ne.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ne.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ne.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ne.designSystemVariables.borderRadiusS),maxWidth:Ne.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ts=ws.css`
230
+ `}};ue.styles=[us,ds,ps,fs,hs,ms,gs,ys,vs,bs,xs];Ss([(0,En.property)()],ue.prototype,"element",void 0);Ss([(0,En.property)()],ue.prototype,"variant",void 0);var Cs=g(C());var Es={"ft-typography":ue};(0,Cs.customElements)(Es);var ws=g(H()),Ne=g(C()),qt={distance:Ne.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ne.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ne.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ne.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ne.designSystemVariables.borderRadiusS),maxWidth:Ne.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ts=ws.css`
231
231
  .ft-tooltip--container {
232
232
  display: block;
233
233
  }
@@ -258,8 +258,8 @@
258
258
  position: relative;
259
259
  word-break: break-word;
260
260
  }
261
- `;var Rs=["top","right","bottom","left"],Os=["start","end"],wn=Rs.reduce((e,t)=>e.concat(t,t+"-"+Os[0],t+"-"+Os[1]),[]),Kt=Math.min,De=Math.max,Wt=Math.round;var xe=e=>({x:e,y:e}),Hl={left:"right",right:"left",bottom:"top",top:"bottom"};function _s(e,t,r){return De(e,Kt(t,r))}function yr(e,t){return typeof e=="function"?e(t):e}function zt(e){return e.split("-")[0]}function Me(e){return e.split("-")[1]}function Tn(e){return e==="x"?"y":"x"}function On(e){return e==="y"?"height":"width"}function vr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Rn(e){return Tn(vr(e))}function Ls(e,t,r){r===void 0&&(r=!1);let n=Me(e),i=Rn(e),s=On(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Cn(o)),[o,Cn(o)]}function Ps(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Cn(e){let t=zt(e);return Hl[t]+e.slice(t.length)}function Bl(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function Ns(e){return typeof e!="number"?Bl(e):{top:e,right:e,bottom:e,left:e}}function Ye(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ds(e,t,r){let{reference:n,floating:i}=e,s=vr(t),o=Rn(t),a=On(o),l=zt(t),c=s==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-i.width,y:d};break;default:f={x:n.x,y:n.y}}let h=Me(t);return h&&(f[o]+=p*(h==="end"?1:-1)*(r&&c?-1:1)),f}async function Ms(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=yr(t,e),h=Ns(f),b=a[p?d==="floating"?"reference":"floating":d],x=Ye(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),A=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},$=Ye(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:E,strategy:l}):A);return{top:(x.top-$.top+h.top)/O.y,bottom:($.bottom-x.bottom+h.bottom)/O.y,left:(x.left-$.left+h.left)/O.x,right:($.right-x.right+h.right)/O.x}}var jl=50,Is=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Ms},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ds(c,n,l),p=n,f=0,h={};for(let m=0;m<s.length;m++){let b=s[m];if(!b)continue;let{name:x,fn:A}=b,{x:E,y:O,data:$,reset:I}=await A({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=E??u,d=O??d,h[x]={...h[x],...$},I&&f<jl&&(f++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:u,y:d}=Ds(c,p,l)),m=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}};function Fl(e,t,r){return(e?[...r.filter(i=>Me(i)===e),...r.filter(i=>Me(i)!==e)]:r.filter(i=>zt(i)===i)).filter(i=>e?Me(i)===e||(t?Ps(i)!==i:!1):!0)}var ks=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=wn,autoAlignment:f=!0,...h}=yr(e,t),m=d!==void 0||p===wn?Fl(d||null,f,p):p,b=((r=o.autoPlacement)==null?void 0:r.index)||0,x=m[b];if(x==null)return{};if(a!==x)return{reset:{placement:m[0]}};let A=await l.detectOverflow(t,h),E=Ls(x,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),O=[A[zt(x)],A[E[0]],A[E[1]]],$=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:O}],I=m[b+1];if(I)return{data:{index:b+1,overflows:$},reset:{placement:I}};let Re=$.map(Q=>{let te=Me(Q.placement);return[Q.placement,te&&u?Q.overflows.slice(0,2).reduce((J,Ke)=>J+Ke,0):Q.overflows[0],Q.overflows]}).sort((Q,te)=>Q[1]-te[1]),_e=((i=Re.filter(Q=>Q[2].slice(0,Me(Q[0])?2:3).every(te=>te<=0))[0])==null?void 0:i[0])||Re[0][0];return _e!==a?{data:{index:b+1,overflows:$},reset:{placement:_e}}:{}}}};var Us=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:A=>{let{x:E,y:O}=A;return{x:E,y:O}}},...c}=yr(e,t),u={x:r,y:n},d=await s.detectOverflow(t,c),p=vr(i),f=Tn(p),h=u[f],m=u[p],b=(A,E)=>_s(E+d[A==="y"?"top":"left"],E,E-d[A==="y"?"bottom":"right"]);o&&(h=b(f,h)),a&&(m=b(p,m));let x=l.fn({...t,[f]:h,[p]:m});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[f]:o,[p]:a}}}}}};function xr(){return typeof window<"u"}function Qe(e){return Hs(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(Hs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hs(e){return xr()?e instanceof Node||e instanceof G(e).Node:!1}function de(e){return xr()?e instanceof Element||e instanceof G(e).Element:!1}function we(e){return xr()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function $s(e){return!xr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}function Gt(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Bs(e){return/^(table|td|th)$/.test(Qe(e))}function Yt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Vl=/transform|translate|scale|rotate|perspective|filter/,ql=/paint|layout|strict|content/,Xe=e=>!!e&&e!=="none",_n;function St(e){let t=de(e)?pe(e):e;return Xe(t.transform)||Xe(t.translate)||Xe(t.scale)||Xe(t.rotate)||Xe(t.perspective)||!Ar()&&(Xe(t.backdropFilter)||Xe(t.filter))||Vl.test(t.willChange||"")||ql.test(t.contain||"")}function js(e){let t=Ie(e);for(;we(t)&&!Et(t);){if(St(t))return t;if(Yt(t))return null;t=Ie(t)}return null}function Ar(){return _n==null&&(_n=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_n}function Et(e){return/^(html|body|#document)$/.test(Qe(e))}function pe(e){return G(e).getComputedStyle(e)}function Xt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if(Qe(e)==="html")return e;let t=e.assignedSlot||e.parentNode||$s(e)&&e.host||Ce(e);return $s(t)?t.host:t}function Fs(e){let t=Ie(e);return Et(t)?(e.ownerDocument||e).body:we(t)&&Gt(t)?t:Fs(t)}function br(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Fs(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=G(i);if(s){let a=Sr(o);return t.concat(o,o.visualViewport||[],Gt(i)?i:[],a&&r?br(a):[])}else return t.concat(i,br(i,[],r))}function Sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ks(e){let t=pe(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=we(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=Wt(r)!==s||Wt(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Ws(e){return de(e)?e:e.contextElement}function Ct(e){let t=Ws(e);if(!we(t))return xe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Ks(t),o=(s?Wt(r.width):r.width)/n,a=(s?Wt(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Kl=xe(0);function zs(e){let t=G(e);return!Ar()||!t.visualViewport?Kl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wl(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===G(e)}function Qt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=Ws(e),o=xe(1);t&&(n?de(n)&&(o=Ct(n)):o=Ct(e));let a=Wl(s,r,n)?zs(s):xe(0),l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s&&n){let p=G(s),f=de(n)?G(n):n,h=p,m=Sr(h);for(;m&&f!==h;){let b=Ct(m),x=m.getBoundingClientRect(),A=pe(m),E=x.left+(m.clientLeft+parseFloat(A.paddingLeft))*b.x,O=x.top+(m.clientTop+parseFloat(A.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=E,c+=O,h=G(m),m=Sr(h)}}return Ye({width:u,height:d,x:l,y:c})}function Er(e,t){let r=Xt(e).scrollLeft;return t?t.left+r:Qt(Ce(e)).left+r}function Gs(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Er(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function zl(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=Ce(n),a=t?Yt(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=xe(1),u=xe(0),d=we(n);if((d||!s)&&((Qe(n)!=="body"||Gt(o))&&(l=Xt(n)),d)){let f=Qt(n);c=Ct(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}let p=o&&!d&&!s?Gs(o,l):xe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Gl(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Yl(e){let t=Xt(e),r=e.ownerDocument.body,n=De(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=De(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Er(e),o=-t.scrollTop;return pe(r).direction==="rtl"&&(s+=De(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:o}}var Xl=25;function Ql(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=G(e),s=Ce(e),o=i.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!Ar()||t==="fixed";n?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(Er(s)<=0){let p=s.ownerDocument,f=p.body,h=getComputedStyle(f),m=p.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(s.clientWidth-f.clientWidth-m),x=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;x<=Xl&&(a-=x)}return{width:a,height:l,x:c,y:u}}function Jl(e,t){let r=Qt(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Ct(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function Vs(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Ql(e,r,t);else if(t==="document")n=Yl(Ce(e));else if(de(t))n=Jl(t,r);else{let i=zs(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ye(n)}function Zl(e,t){let r=t.get(e);if(r)return r;let n=br(e,[],!1).filter(a=>de(a)&&Qe(a)!=="body"),i=null,s=pe(e).position==="fixed",o=s?Ie(e):e;for(;de(o)&&!Et(o);){let a=pe(o),l=St(o),c=i?i.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):i=a,o=Ie(o)}return t.set(e,n),n}function ec(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Yt(t)?[]:Zl(t,this._c):[].concat(r),n],a=Vs(t,o[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let f=Vs(t,o[p],i);l=De(f.top,l),c=Kt(f.right,c),u=Kt(f.bottom,u),d=De(f.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function tc(e){let{width:t,height:r}=Ks(e);return{width:t,height:r}}function rc(e,t,r){let n=we(t),i=Ce(t),s=r==="fixed",o=Qt(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=xe(0);if((n||!s)&&((Qe(t)!=="body"||Gt(i))&&(a=Xt(t)),n)){let p=Qt(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=Er(i));let c=i&&!n&&!s?Gs(i,a):xe(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Ln(e){return pe(e).position==="static"}function qs(e,t){if(!we(e)||pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ce(e)===r&&(r=r.ownerDocument.body),r}function Ys(e,t){let r=G(e);if(Yt(e))return r;if(!we(e)){let i=Ie(e);for(;i&&!Et(i);){if(de(i)&&!Ln(i))return i;i=Ie(i)}return r}let n=qs(e,t);for(;n&&Bs(n)&&Ln(n);)n=qs(n,t);return n&&Et(n)&&Ln(n)&&!St(n)?r:n||js(e)||r}var nc=async function(e){let t=this.getOffsetParent||Ys,r=this.getDimensions,n=await r(e.floating);return{reference:rc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ic(e){return pe(e).direction==="rtl"}var Cr={convertOffsetParentRelativeRectToViewportRelativeRect:zl,getDocumentElement:Ce,getClippingRect:ec,getOffsetParent:Ys,getElementRects:nc,getClientRects:Gl,getDimensions:tc,getScale:Ct,isElement:de,isRTL:ic};var Xs=ks,Qs=Us;var Js=(e,t,r)=>{let n=new Map,i=r??{},s={...Cr,...i.platform,_c:n};return Is(e,t,{...i,platform:s})};function Zs(e){return sc(e)}function Pn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function sc(e){for(let t=e;t;t=Pn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Pn(e);t;t=Pn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||St(r)||t.tagName==="BODY"))return t}return null}async function eo(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Js(e,t,{strategy:n.strategy,platform:{...Cr,getOffsetParent:i=>Cr.getOffsetParent(i,Zs)},middleware:[Qs({crossAxis:!0}),Xs({allowedPlacements:[n.placement]})]})}var kt=g(C());var ni=g(W());var to=g(W(),1);var Nn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function ro(e,t){return(0,to.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Jt(e);try{return JSON.parse(r)}catch{return Jt(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Zt,...t??{}})}function oc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!wr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!wr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function wr(e,t){try{return oc(e,t)}catch{return!1}}function Zt(e,t){return!wr(e,t)}function Jt(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Tr(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var no=g(W(),1);var Dn=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Zt,attribute:!1,...t};(0,no.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Or=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Je=g(W(),1);var Rr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var so=g(H(),1);var _r=globalThis,ac=_r.ShadowRoot&&(_r.ShadyCSS===void 0||_r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var io=(e,t)=>{if(ac)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=_r.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var Lr=class extends so.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return io(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Nn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function oo(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Tt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},uo,ao=Symbol("constructorPrototype"),lo=Symbol("constructorName"),po=Symbol("exportpartsDebouncer"),co=Symbol("dynamicDependenciesLoaded"),wt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};wt.eventName="exportparts-updated";var Ae=class extends Lr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[uo]=new Rr(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[po].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[lo]=this.constructor.name,this[ao]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[lo]&&Object.setPrototypeOf(this,this[ao])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[co]||(r[co]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(wt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(wt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new wt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=oo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let f=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],m=[...f,...h].filter(l).map(b=>b.trim());for(let b of m)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(f=>`${p}:${f}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};uo=po;Tt([(0,Je.property)()],Ae.prototype,"exportpartsPrefix",void 0);Tt([ro([])],Ae.prototype,"exportpartsPrefixes",void 0);Tt([(0,Je.property)({reflect:!0})],Ae.prototype,"exportparts",void 0);Tt([(0,Je.property)()],Ae.prototype,"customStylesheet",void 0);Tt([(0,Je.property)()],Ae.prototype,"elementToFocus",void 0);Tt([(0,Je.state)()],Ae.prototype,"useAdoptedStyleSheets",void 0);function Pr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var er=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),Ze=Symbol("internalStores"),lc=Tr(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ze].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ze].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ze].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ze].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ze].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ze].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[ke].has(o.store):this[ke].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[ke].set(o,a.subscribe(()=>this.updateFromStores())),this[er].set(o,[]),Pr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[er].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ke].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ke].has(o)&&this[ke].get(o)(),this[ke].delete(o),(a=this[er].get(o))===null||a===void 0||a.forEach(l=>l()),this[er].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ke,r=Ze,n=er,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),fo=class extends lc(Ae){};function ie(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(e){return!!e&&!!e[L]}function fe(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gc})(e)||Array.isArray(e)||!!e[xo]||!!(!((t=e.constructor)===null||t===void 0)&&t[xo])||Fn(e)||Vn(e))}function et(e,t,r){r===void 0&&(r=!1),_t(e)===0?(r?Object.keys:Rt)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function _t(e){var t=e[L];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Fn(e)?2:Vn(e)?3:0}function Ot(e,t){return _t(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cc(e,t){return _t(e)===2?e.get(t):e[t]}function Ao(e,t,r){var n=_t(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function So(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Fn(e){return hc&&e instanceof Map}function Vn(e){return mc&&e instanceof Set}function Ue(e){return e.o||e.t}function qn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wo(e);delete t[L];for(var r=Rt(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Kn(e,t){return t===void 0&&(t=!1),Wn(e)||Te(e)||!fe(e)||(_t(e)>1&&(e.set=e.add=e.clear=e.delete=uc),Object.freeze(e),t&&et(e,(function(r,n){return Kn(n,!0)}),!0)),e}function uc(){ie(2)}function Wn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Se(e){var t=jn[e];return t||ie(18,e),t}function dc(e,t){jn[e]||(jn[e]=t)}function $n(){return rr}function Mn(e,t){t&&(Se("Patches"),e.u=[],e.s=[],e.v=t)}function Nr(e){Hn(e),e.p.forEach(pc),e.p=null}function Hn(e){e===rr&&(rr=e.l)}function ho(e){return rr={p:[],l:rr,h:e,m:!0,_:0}}function pc(e){var t=e[L];t.i===0||t.i===1?t.j():t.g=!0}function In(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Se("ES5").S(t,e,n),n?(r[L].P&&(Nr(t),ie(4)),fe(e)&&(e=Dr(t,e),t.l||Mr(t,e)),t.u&&Se("Patches").M(r[L].t,e,t.u,t.s)):e=Dr(t,r,[]),Nr(t),t.u&&t.v(t.u,t.s),e!==Co?e:void 0}function Dr(e,t,r){if(Wn(t))return t;var n=t[L];if(!n)return et(t,(function(a,l){return mo(e,n,t,a,l,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Mr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=qn(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),et(s,(function(a,l){return mo(e,n,i,a,l,r,o)})),Mr(e,i,!1),r&&e.u&&Se("Patches").N(n,r,e.u,e.s)}return n.o}function mo(e,t,r,n,i,s,o){if(Te(i)){var a=Dr(e,i,s&&t&&t.i!==3&&!Ot(t.R,n)?s.concat(n):void 0);if(Ao(r,n,a),!Te(a))return;e.m=!1}else o&&r.add(i);if(fe(i)&&!Wn(i)){if(!e.h.D&&e._<1)return;Dr(e,i),t&&t.A.l||Mr(e,i)}}function Mr(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Kn(t,r)}function kn(e,t){var r=e[L];return(r?Ue(r):e)[t]}function go(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function $e(e){e.P||(e.P=!0,e.l&&$e(e.l))}function Un(e){e.o||(e.o=qn(e.t))}function Bn(e,t,r){var n=Fn(t)?Se("MapSet").F(t,r):Vn(t)?Se("MapSet").T(t,r):e.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:$n(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},l=a,c=nr;o&&(l=[a],c=tr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):Se("ES5").J(t,r);return(r?r.A:$n()).p.push(n),n}function fc(e){return Te(e)||ie(22,e),(function t(r){if(!fe(r))return r;var n,i=r[L],s=_t(r);if(i){if(!i.P&&(i.i<4||!Se("ES5").K(i)))return i.t;i.I=!0,n=yo(r,s),i.I=!1}else n=yo(r,s);return et(n,(function(o,a){i&&cc(i.t,o)===a||Ao(n,o,t(a))})),s===3?new Set(n):n})(e)}function yo(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qn(e)}function Eo(){function e(o,a){var l=s[o];return l?l.enumerable=a:s[o]=l={configurable:!0,enumerable:a,get:function(){var c=this[L];return nr.get(c,o)},set:function(c){var u=this[L];nr.set(u,o,c)}},l}function t(o){for(var a=o.length-1;a>=0;a--){var l=o[a][L];if(!l.P)switch(l.i){case 5:n(l)&&$e(l);break;case 4:r(l)&&$e(l)}}}function r(o){for(var a=o.t,l=o.k,c=Rt(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==L){var p=a[d];if(p===void 0&&!Ot(a,d))return!0;var f=l[d],h=f&&f[L];if(h?h.t!==p:!So(f,p))return!0}}var m=!!a[L];return c.length!==Rt(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(o){o.g&&ie(3,JSON.stringify(Ue(o)))}var s={};dc("ES5",{J:function(o,a){var l=Array.isArray(o),c=(function(d,p){if(d){for(var f=Array(p.length),h=0;h<p.length;h++)Object.defineProperty(f,""+h,e(h,!0));return f}var m=wo(p);delete m[L];for(var b=Rt(m),x=0;x<b.length;x++){var A=b[x];m[A]=e(A,d||!!m[A].enumerable)}return Object.create(Object.getPrototypeOf(p),m)})(l,o),u={i:l?5:4,A:a?a.A:$n(),P:!1,I:!1,R:{},l:a,t:o,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,L,{value:u,writable:!0}),c},S:function(o,a,l){l?Te(a)&&a[L].A===o&&t(o.p):(o.u&&(function c(u){if(u&&typeof u=="object"){var d=u[L];if(d){var p=d.t,f=d.k,h=d.R,m=d.i;if(m===4)et(f,(function(O){O!==L&&(p[O]!==void 0||Ot(p,O)?h[O]||c(f[O]):(h[O]=!0,$e(d)))})),et(p,(function(O){f[O]!==void 0||Ot(f,O)||(h[O]=!1,$e(d))}));else if(m===5){if(n(d)&&($e(d),h.length=!0),f.length<p.length)for(var b=f.length;b<p.length;b++)h[b]=!1;else for(var x=p.length;x<f.length;x++)h[x]=!0;for(var A=Math.min(f.length,p.length),E=0;E<A;E++)f.hasOwnProperty(E)||(h[E]=!0),h[E]===void 0&&c(f[E])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var vo,rr,zn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hc=typeof Map<"u",mc=typeof Set<"u",bo=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Co=zn?Symbol.for("immer-nothing"):((vo={})["immer-nothing"]=!0,vo),xo=zn?Symbol.for("immer-draftable"):"__$immer_draftable",L=zn?Symbol.for("immer-state"):"__$immer_state";var gc=""+Object.prototype.constructor,Rt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wo=Object.getOwnPropertyDescriptors||function(e){var t={};return Rt(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},jn={},nr={get:function(e,t){if(t===L)return e;var r=Ue(e);if(!Ot(r,t))return(function(i,s,o){var a,l=go(s,o);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!fe(n)?n:n===kn(e.t,t)?(Un(e),e.o[t]=Bn(e.A.h,n,e)):n},has:function(e,t){return t in Ue(e)},ownKeys:function(e){return Reflect.ownKeys(Ue(e))},set:function(e,t,r){var n=go(Ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=kn(Ue(e),t),s=i?.[L];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(So(r,i)&&(r!==void 0||Ot(e.t,t)))return!0;Un(e),$e(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return kn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Un(e),$e(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){ie(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ie(12)}},tr={};et(nr,(function(e,t){tr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),tr.deleteProperty=function(e,t){return tr.set.call(this,e,t,void 0)},tr.set=function(e,t,r){return nr.set.call(this,e[0],t,r,e[0])};var yc=(function(){function e(r){var n=this;this.O=bo,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var l=n;return function(m){var b=this;m===void 0&&(m=a);for(var x=arguments.length,A=Array(x>1?x-1:0),E=1;E<x;E++)A[E-1]=arguments[E];return l.produce(m,(function(O){var $;return($=s).call.apply($,[b,O].concat(A))}))}}var c;if(typeof s!="function"&&ie(6),o!==void 0&&typeof o!="function"&&ie(7),fe(i)){var u=ho(n),d=Bn(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?Nr(u):Hn(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(m){return Mn(u,o),In(m,u)}),(function(m){throw Nr(u),m})):(Mn(u,o),In(c,u))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===Co&&(c=void 0),n.D&&Kn(c,!0),o){var f=[],h=[];Se("Patches").M(i,c,f,h),o(f,h)}return c}ie(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(f){return i.apply(void 0,[f].concat(d))}))};var o,a,l=n.produce(i,s,(function(c,u){o=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,o,a]})):[l,o,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){fe(r)||ie(8),Te(r)&&(r=fc(r));var n=ho(this),i=Bn(this,r,void 0);return i[L].C=!0,Hn(n),i},t.finishDraft=function(r,n){var i=r&&r[L],s=i.A;return Mn(s,n),In(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!bo&&ie(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var o=Se("Patches").$;return Te(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},e})(),Z=new yc,vc=Z.produce,jd=Z.produceWithPatches.bind(Z),Fd=Z.setAutoFreeze.bind(Z),Vd=Z.setUseProxies.bind(Z),qd=Z.applyPatches.bind(Z),Kd=Z.createDraft.bind(Z),Wd=Z.finishDraft.bind(Z),Ir=vc;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(e)}function To(e,t){if(tt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oo(e){var t=To(e,"string");return tt(t)=="symbol"?t:t+""}function Ro(e,t,r){return(t=Oo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_o(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_o(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Lo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Yn=function(){return Math.random().toString(36).substring(7).split("").join(".")},kr={INIT:"@@redux/INIT"+Yn(),REPLACE:"@@redux/REPLACE"+Yn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Yn()}};function bc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Xn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(q(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(q(1));return r(Xn)(e,t)}if(typeof e!="function")throw new Error(q(2));var i=e,s=t,o=[],a=o,l=!1;function c(){a===o&&(a=o.slice())}function u(){if(l)throw new Error(q(3));return s}function d(m){if(typeof m!="function")throw new Error(q(4));if(l)throw new Error(q(5));var b=!0;return c(),a.push(m),function(){if(b){if(l)throw new Error(q(6));b=!1,c();var A=a.indexOf(m);a.splice(A,1),o=null}}}function p(m){if(!bc(m))throw new Error(q(7));if(typeof m.type>"u")throw new Error(q(8));if(l)throw new Error(q(9));try{l=!0,s=i(s,m)}finally{l=!1}for(var b=o=a,x=0;x<b.length;x++){var A=b[x];A()}return m}function f(m){if(typeof m!="function")throw new Error(q(10));i=m,p({type:kr.REPLACE})}function h(){var m,b=d;return m={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(q(11));function E(){A.next&&A.next(u())}E();var O=b(E);return{unsubscribe:O}}},m[Lo]=function(){return this},m}return p({type:kr.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:f},n[Lo]=h,n}function xc(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:kr.INIT});if(typeof n>"u")throw new Error(q(12));if(typeof r(void 0,{type:kr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(q(13))})}function Po(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var s=Object.keys(r),o,a;try{xc(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,f={},h=0;h<s.length;h++){var m=s[h],b=r[m],x=c[m],A=b(x,u);if(typeof A>"u"){var E=u&&u.type;throw new Error(q(14))}f[m]=A,p=p||A!==x}return p=p||s.length!==Object.keys(c).length,p?f:c}}function Lt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(q(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(l){return l(o)});return s=Lt.apply(void 0,a)(i.dispatch),Gn(Gn({},i),{},{dispatch:s})}}}function Do(e){var t=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,e):o(a)}}};return t}var Mo=Do();Mo.withExtraArgument=Do;var Qn=Mo;var Ho=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ac=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Pt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Sc=Object.defineProperty,Ec=Object.defineProperties,Cc=Object.getOwnPropertyDescriptors,Io=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Tc=Object.prototype.propertyIsEnumerable,ko=function(e,t,r){return t in e?Sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},He=function(e,t){for(var r in t||(t={}))wc.call(t,r)&&ko(e,r,t[r]);if(Io)for(var n=0,i=Io(t);n<i.length;n++){var r=i[n];Tc.call(t,r)&&ko(e,r,t[r])}return e},Jn=function(e,t){return Ec(e,Cc(t))},Oc=function(e,t,r){return new Promise(function(n,i){var s=function(l){try{a(r.next(l))}catch(c){i(c)}},o=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(s,o)};a((r=r.apply(e,t)).next())})};var Rc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lt:Lt.apply(null,arguments)},up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function _c(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Be(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return He(He({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var Lc=(function(e){Ho(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Pt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Pt([void 0],r.concat(this))))},t})(Array),Pc=(function(e){Ho(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Pt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Pt([void 0],r.concat(this))))},t})(Array);function ti(e){return fe(e)?Ir(e,function(){}):e}function Nc(e){return typeof e=="boolean"}function Dc(){return function(t){return Mc(t)}}function Mc(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,s=e.serializableCheck,o=s===void 0?!0:s,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new Lc;if(r&&(Nc(r)?c.push(Qn):c.push(Qn.withExtraArgument(r.extraArgument))),0){if(i)var u;if(o)var d;if(l)var p}return c}var Zn=!0;function Bo(e){var t=Dc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?t():s,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,f;if(typeof i=="function")f=i;else if(_c(i))f=Po(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 h=o;if(typeof h=="function"&&(h=h(t),!Zn&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Zn&&h.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=No.apply(void 0,h),b=Lt;l&&(b=Rc(He({trace:!Zn},typeof l=="object"&&l)));var x=new Pc(m),A=x;Array.isArray(p)?A=Pt([m],p):typeof p=="function"&&(A=p(x));var E=b.apply(void 0,A);return Xn(f,u,E)}function jo(e){var t={},r=[],n,i={addCase:function(s,o){var a=typeof s=="string"?s:s.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return e(i),[t,r,n]}function Ic(e){return typeof e=="function"}function kc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?jo(t):[t,r,n],s=i[0],o=i[1],a=i[2],l;if(Ic(e))l=function(){return ti(e())};else{var c=ti(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var f=Pt([s[p.type]],o.filter(function(h){var m=h.matcher;return m(p)}).map(function(h){var m=h.reducer;return m}));return f.filter(function(h){return!!h}).length===0&&(f=[a]),f.reduce(function(h,m){if(m)if(Te(h)){var b=h,x=m(b,p);return x===void 0?h:x}else{if(fe(h))return Ir(h,function(A){return m(A,p)});var x=m(h,p);if(x===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return h},d)}return u.getInitialState=l,u}function Uc(e,t){return e+"/"+t}function Fo(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ti(e.initialState),n=e.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(u){var d=n[u],p=Uc(t,u),f,h;"reducer"in d?(f=d.reducer,h=d.prepare):f=d,s[u]=f,o[p]=f,a[u]=h?Be(p,h):Be(p)});function l(){var u=typeof e.extraReducers=="function"?jo(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,f=u[1],h=f===void 0?[]:f,m=u[2],b=m===void 0?void 0:m,x=He(He({},p),o);return kc(r,function(A){for(var E in x)A.addCase(E,x[E]);for(var O=0,$=h;O<$.length;O++){var I=$[O];A.addMatcher(I.matcher,I.reducer)}b&&A.addDefaultCase(b)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:s,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var $c="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=$c[Math.random()*64|0];return t},Bc=["name","message","stack","code"],ei=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Uo=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),jc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Bc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},hp=(function(){function e(t,r,n){var i=Be(t+"/fulfilled",function(u,d,p,f){return{payload:u,meta:Jn(He({},f||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=Be(t+"/pending",function(u,d,p){return{payload:void 0,meta:Jn(He({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),o=Be(t+"/rejected",function(u,d,p,f,h){return{payload:f,error:(n&&n.serializeError||jc)(u||"Rejected"),meta:Jn(He({},h||{}),{arg:p,requestId:d,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,f){var h=n?.idGenerator?n.idGenerator(u):Hc(),m=new l,b,x=!1;function A(O){b=O,m.abort()}var E=(function(){return Oc(this,null,function(){var O,$,I,Re,cn,_e,Q;return Ac(this,function(te){switch(te.label){case 0:return te.trys.push([0,4,,5]),Re=(O=n?.condition)==null?void 0:O.call(n,u,{getState:p,extra:f}),Vc(Re)?[4,Re]:[3,2];case 1:Re=te.sent(),te.label=2;case 2:if(Re===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,cn=new Promise(function(J,Ke){return m.signal.addEventListener("abort",function(){return Ke({name:"AbortError",message:b||"Aborted"})})}),d(s(h,u,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:h,arg:u},{getState:p,extra:f}))),[4,Promise.race([cn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:f,requestId:h,signal:m.signal,abort:A,rejectWithValue:function(J,Ke){return new ei(J,Ke)},fulfillWithValue:function(J,Ke){return new Uo(J,Ke)}})).then(function(J){if(J instanceof ei)throw J;return J instanceof Uo?i(J.payload,h,u,J.meta):i(J,h,u)})])];case 3:return I=te.sent(),[3,5];case 4:return _e=te.sent(),I=_e instanceof ei?o(null,h,u,_e.payload,_e.meta):o(_e,h,u),[3,5];case 5:return Q=n&&!n.dispatchConditionRejection&&o.match(I)&&I.meta.condition,Q||d(I),[2,I]}})})})();return Object.assign(E,{abort:A,requestId:h,arg:u,unwrap:function(){return E.then(Fc)}})}}return Object.assign(c,{pending:s,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function Fc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Vc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vo="listener",qo="completed",Ko="cancelled",mp="task-"+Ko,gp="task-"+qo,yp=Vo+"-"+Ko,vp=Vo+"-"+qo;var ri="listenerMiddleware";var bp=Be(ri+"/add"),xp=Be(ri+"/removeAll"),Ap=Be(ri+"/remove");var $o,Sp=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return($o||($o=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},qc=function(e){return function(t){setTimeout(t,e)}},Ep=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qc(10);Eo();var Kc=Tr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Ur=class extends Kc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Wo=class e extends Ur{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Pr(s))return s;if(i==null)return;let o=Fo({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Bo({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Jt(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Or;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $r=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Hr=g(C()),Wc="ft-app-info",rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};rt.eventName="authentication-change";var ir=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ir.eventName="ui-locale-changed";var zc={session:(e,t)=>{(0,Hr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new rt(t.payload)),0))}},w=Hr.FtReduxStore.get({name:Wc,reducers:zc,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var zo=g(C()),Br=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Qp=(0,zo.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>$r.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Br([(0,ni.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Br([(0,ni.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Br([Dn({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Br([Dn({store:w.name})],t.prototype,"uiLocale",void 0),t});var Go;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Go||(Go={}));var Yo;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Yo||(Yo={}));var Xo;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Xo||(Xo={}));var Qo;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Qo||(Qo={}));var Jo;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Jo||(Jo={}));var Zo;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Zo||(Zo={}));var ea;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(ea||(ea={}));var ta;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ta||(ta={}));var ra;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(ra||(ra={}));var na;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(na||(na={}));var ia;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ia||(ia={}));var sa;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(sa||(sa={}));var oa;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(oa||(oa={}));var aa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(aa||(aa={}));var la;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(la||(la={}));var ca;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ca||(ca={}));var ii;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ii||(ii={}));var ua;(function(e){e.ASC="ASC",e.DESC="DESC"})(ua||(ua={}));var da;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(da||(da={}));var si;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(si||(si={}));var pa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(pa||(pa={}));var fa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(fa||(fa={}));var ha;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ha||(ha={}));var ma;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ma||(ma={}));var ga;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ga||(ga={}));var oi;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(oi||(oi={}));var ya;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ya||(ya={}));var M;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(M||(M={}));var se;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(se||(se={}));var va;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(va||(va={}));var ba;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ba||(ba={}));var xa;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(xa||(xa={}));var Aa;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Aa||(Aa={}));var Sa;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Sa||(Sa={}));var Ea;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ea||(Ea={}));var Ca;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ca||(Ca={}));var wa;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(wa||(wa={}));var Ta;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Ta||(Ta={}));var Oa;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Oa||(Oa={}));var Ra;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Ra||(Ra={}));var _a;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(_a||(_a={}));var Gc={[M.PERSONAL_BOOK_SHARE_USER]:[M.PERSONAL_BOOK_USER],[M.HTML_EXPORT_USER]:[M.PERSONAL_BOOK_USER],[M.PDF_EXPORT_USER]:[M.PERSONAL_BOOK_USER],[M.KHUB_ADMIN]:[M.CONTENT_PUBLISHER],[M.ADMIN]:[M.KHUB_ADMIN,M.USERS_ADMIN,M.PORTAL_ADMIN,M.BEHAVIOR_DATA_USER],[M.GENERATIVE_AI_EXPORT_USER]:[M.GENERATIVE_AI_USER]};function La(e,t){return e===t||(Gc[e]??[]).some(r=>La(r,t))}function ai(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>La(n,t))}var Kr=g(C());var li=g(C());var nt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Nt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):nt.await()}};var Y=class extends Nt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new li.CacheRegistry,this.cache=t?i.commonCache:new li.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var jr=class extends Y{async listMySearches(){let{session:t}=w.getState();return ai(t,M.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Fr=class extends Y{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Vr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var qr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=180*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 t=w.getState().session;return!!t?.sessionAuthenticated}};var Yc="ft-user-assets",Xc={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(se).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;ui(e,r,[...ci(e,r),i]),Pa(e,r,1,n),Na(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;ui(e,r,ci(e,r).map(i=>i.id===n.id?n:i)),Na(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;ui(e,r,ci(e,r).filter(s=>s.id!==i)),Pa(e,r,-1,n)}},Da={[se.SEARCHES]:"savedSearches",[se.BOOKMARKS]:"bookmarks",[se.BOOKS]:void 0,[se.COLLECTIONS]:void 0},ci=(e,t)=>{var r;let n=Da[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},ui=(e,t,r)=>{let n=Da[t];n&&(e[n]=r)},Pa=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===se.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Na=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},K=Kr.FtReduxStore.get({name:Yc,reducers:Xc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(se).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),di=class{constructor(t=new Vr,r=new qr){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new jr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Kr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),K.actions.clearAssetCount(),K.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),K.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),K.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();K.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();K.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&K.getState().assetCounts.allAsset[t]!==r.count&&K.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&K.getState().assetCounts.bookmarkByMap[t]!==r.count&&K.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(K.getState().assetCounts.bookmarkByMap).length!==0;t===se.BOOKMARKS&&r&&K.actions.clearBookmarkCountByMap(),K.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;K.actions.bookmarks(r)}}},Qc=new di;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qc);var pi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new pi;var oe=g(C());var Ma,Dt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Jc=Symbol("clearAfterUnitTest"),Wr=class extends(0,oe.withEventBus)(Y){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ma]=()=>{this.defaultMessages={},this.cache=new oe.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,oe.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new oe.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof oe.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Dt({loadedContexts:t})),this.dispatchEvent(new Dt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Dt({loadedContexts:[t]})),this.dispatchEvent(new Dt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,oe.delay)(0).then(()=>n()).catch(()=>null)))}};Ma=Jc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Wr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Wr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Mt=window.FluidTopicsI18nService,zr=window.FluidTopicsCustomI18nService;var Ia=g(C()),fi=class{highlightHtml(t,r,n){(0,Ia.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new fi;var ka=g(C());var hi=class{isDate(t){var r,n,i,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return ka.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new hi;var Ua=g(C());var sr=class{static get(t,r){var n,i,s,o;let a=w.getState(),{lang:l,region:c}=(s=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Ua.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var mi=class{urlToSearchRequest(t){return sr.get().parse(t)}searchRequestToUrl(t){return sr.get().serialize(t)}};window.FluidTopicsUrlService=new mi;var Oe=g(C());var it=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};it.eventName="change";var gi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},$a=new gi;var Gr=class e extends Oe.WithEventBus{static build(){return new e(window.history,$a,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},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),(0,Oe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new it(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(it.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(it.eventName,t)}currentItem(){return(0,Oe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Oe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Oe.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Oe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Gr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ha=g(H());var Ba=Ha.css`
262
- `;var Fa=g(H()),X=g(W()),at=g(C());var st=g(C());function ja(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Yr=class extends Nt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var yi=class e extends st.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new st.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Yr,this.cleanSessionDebouncer=new st.Debouncer,this.reloadDebouncer=new st.Debouncer(500),this.apiProvider=r??(()=>nt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(rt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>ja(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t){this.userLocaleService.updateUiLocale({uiLocale:t}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ir(r)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},vi=yi.build();var ot=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var or=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new ot(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var V=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},P=class extends at.FtLitElementRedux{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.authenticationRequired=!1,this.messageContexts=[],this.stateManager=vi,this.contextRoot=new or}render(){return Fa.html`
261
+ `;var Rs=["top","right","bottom","left"],Os=["start","end"],wn=Rs.reduce((e,t)=>e.concat(t,t+"-"+Os[0],t+"-"+Os[1]),[]),Kt=Math.min,De=Math.max,Wt=Math.round;var xe=e=>({x:e,y:e}),Hl={left:"right",right:"left",bottom:"top",top:"bottom"};function _s(e,t,r){return De(e,Kt(t,r))}function yr(e,t){return typeof e=="function"?e(t):e}function zt(e){return e.split("-")[0]}function Me(e){return e.split("-")[1]}function Tn(e){return e==="x"?"y":"x"}function On(e){return e==="y"?"height":"width"}function vr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Rn(e){return Tn(vr(e))}function Ls(e,t,r){r===void 0&&(r=!1);let n=Me(e),i=Rn(e),s=On(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Cn(o)),[o,Cn(o)]}function Ps(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Cn(e){let t=zt(e);return Hl[t]+e.slice(t.length)}function Bl(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function Ns(e){return typeof e!="number"?Bl(e):{top:e,right:e,bottom:e,left:e}}function Ye(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ds(e,t,r){let{reference:n,floating:i}=e,s=vr(t),o=Rn(t),a=On(o),l=zt(t),c=s==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-i.width,y:d};break;default:f={x:n.x,y:n.y}}let h=Me(t);return h&&(f[o]+=p*(h==="end"?1:-1)*(r&&c?-1:1)),f}async function Ms(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=yr(t,e),h=Ns(f),b=a[p?d==="floating"?"reference":"floating":d],x=Ye(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),S=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},$=Ye(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:E,strategy:l}):S);return{top:(x.top-$.top+h.top)/O.y,bottom:($.bottom-x.bottom+h.bottom)/O.y,left:(x.left-$.left+h.left)/O.x,right:($.right-x.right+h.right)/O.x}}var jl=50,Is=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Ms},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ds(c,n,l),p=n,f=0,h={};for(let m=0;m<s.length;m++){let b=s[m];if(!b)continue;let{name:x,fn:S}=b,{x:E,y:O,data:$,reset:I}=await S({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=E??u,d=O??d,h[x]={...h[x],...$},I&&f<jl&&(f++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:u,y:d}=Ds(c,p,l)),m=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}};function Fl(e,t,r){return(e?[...r.filter(i=>Me(i)===e),...r.filter(i=>Me(i)!==e)]:r.filter(i=>zt(i)===i)).filter(i=>e?Me(i)===e||(t?Ps(i)!==i:!1):!0)}var ks=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=wn,autoAlignment:f=!0,...h}=yr(e,t),m=d!==void 0||p===wn?Fl(d||null,f,p):p,b=((r=o.autoPlacement)==null?void 0:r.index)||0,x=m[b];if(x==null)return{};if(a!==x)return{reset:{placement:m[0]}};let S=await l.detectOverflow(t,h),E=Ls(x,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),O=[S[zt(x)],S[E[0]],S[E[1]]],$=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:O}],I=m[b+1];if(I)return{data:{index:b+1,overflows:$},reset:{placement:I}};let Re=$.map(Q=>{let te=Me(Q.placement);return[Q.placement,te&&u?Q.overflows.slice(0,2).reduce((J,Ke)=>J+Ke,0):Q.overflows[0],Q.overflows]}).sort((Q,te)=>Q[1]-te[1]),_e=((i=Re.filter(Q=>Q[2].slice(0,Me(Q[0])?2:3).every(te=>te<=0))[0])==null?void 0:i[0])||Re[0][0];return _e!==a?{data:{index:b+1,overflows:$},reset:{placement:_e}}:{}}}};var Us=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:E,y:O}=S;return{x:E,y:O}}},...c}=yr(e,t),u={x:r,y:n},d=await s.detectOverflow(t,c),p=vr(i),f=Tn(p),h=u[f],m=u[p],b=(S,E)=>_s(E+d[S==="y"?"top":"left"],E,E-d[S==="y"?"bottom":"right"]);o&&(h=b(f,h)),a&&(m=b(p,m));let x=l.fn({...t,[f]:h,[p]:m});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[f]:o,[p]:a}}}}}};function xr(){return typeof window<"u"}function Qe(e){return Hs(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(Hs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hs(e){return xr()?e instanceof Node||e instanceof G(e).Node:!1}function de(e){return xr()?e instanceof Element||e instanceof G(e).Element:!1}function we(e){return xr()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function $s(e){return!xr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}function Gt(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Bs(e){return/^(table|td|th)$/.test(Qe(e))}function Yt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Vl=/transform|translate|scale|rotate|perspective|filter/,ql=/paint|layout|strict|content/,Xe=e=>!!e&&e!=="none",_n;function At(e){let t=de(e)?pe(e):e;return Xe(t.transform)||Xe(t.translate)||Xe(t.scale)||Xe(t.rotate)||Xe(t.perspective)||!Sr()&&(Xe(t.backdropFilter)||Xe(t.filter))||Vl.test(t.willChange||"")||ql.test(t.contain||"")}function js(e){let t=Ie(e);for(;we(t)&&!Et(t);){if(At(t))return t;if(Yt(t))return null;t=Ie(t)}return null}function Sr(){return _n==null&&(_n=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_n}function Et(e){return/^(html|body|#document)$/.test(Qe(e))}function pe(e){return G(e).getComputedStyle(e)}function Xt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if(Qe(e)==="html")return e;let t=e.assignedSlot||e.parentNode||$s(e)&&e.host||Ce(e);return $s(t)?t.host:t}function Fs(e){let t=Ie(e);return Et(t)?(e.ownerDocument||e).body:we(t)&&Gt(t)?t:Fs(t)}function br(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Fs(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=G(i);if(s){let a=Ar(o);return t.concat(o,o.visualViewport||[],Gt(i)?i:[],a&&r?br(a):[])}else return t.concat(i,br(i,[],r))}function Ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ks(e){let t=pe(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=we(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=Wt(r)!==s||Wt(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Ws(e){return de(e)?e:e.contextElement}function Ct(e){let t=Ws(e);if(!we(t))return xe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Ks(t),o=(s?Wt(r.width):r.width)/n,a=(s?Wt(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Kl=xe(0);function zs(e){let t=G(e);return!Sr()||!t.visualViewport?Kl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wl(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===G(e)}function Qt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=Ws(e),o=xe(1);t&&(n?de(n)&&(o=Ct(n)):o=Ct(e));let a=Wl(s,r,n)?zs(s):xe(0),l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s&&n){let p=G(s),f=de(n)?G(n):n,h=p,m=Ar(h);for(;m&&f!==h;){let b=Ct(m),x=m.getBoundingClientRect(),S=pe(m),E=x.left+(m.clientLeft+parseFloat(S.paddingLeft))*b.x,O=x.top+(m.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=E,c+=O,h=G(m),m=Ar(h)}}return Ye({width:u,height:d,x:l,y:c})}function Er(e,t){let r=Xt(e).scrollLeft;return t?t.left+r:Qt(Ce(e)).left+r}function Gs(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Er(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function zl(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=Ce(n),a=t?Yt(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=xe(1),u=xe(0),d=we(n);if((d||!s)&&((Qe(n)!=="body"||Gt(o))&&(l=Xt(n)),d)){let f=Qt(n);c=Ct(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}let p=o&&!d&&!s?Gs(o,l):xe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Gl(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Yl(e){let t=Xt(e),r=e.ownerDocument.body,n=De(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=De(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Er(e),o=-t.scrollTop;return pe(r).direction==="rtl"&&(s+=De(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:o}}var Xl=25;function Ql(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=G(e),s=Ce(e),o=i.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!Sr()||t==="fixed";n?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(Er(s)<=0){let p=s.ownerDocument,f=p.body,h=getComputedStyle(f),m=p.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(s.clientWidth-f.clientWidth-m),x=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;x<=Xl&&(a-=x)}return{width:a,height:l,x:c,y:u}}function Jl(e,t){let r=Qt(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Ct(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function Vs(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Ql(e,r,t);else if(t==="document")n=Yl(Ce(e));else if(de(t))n=Jl(t,r);else{let i=zs(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ye(n)}function Zl(e,t){let r=t.get(e);if(r)return r;let n=br(e,[],!1).filter(a=>de(a)&&Qe(a)!=="body"),i=null,s=pe(e).position==="fixed",o=s?Ie(e):e;for(;de(o)&&!Et(o);){let a=pe(o),l=At(o),c=i?i.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):i=a,o=Ie(o)}return t.set(e,n),n}function ec(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Yt(t)?[]:Zl(t,this._c):[].concat(r),n],a=Vs(t,o[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let f=Vs(t,o[p],i);l=De(f.top,l),c=Kt(f.right,c),u=Kt(f.bottom,u),d=De(f.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function tc(e){let{width:t,height:r}=Ks(e);return{width:t,height:r}}function rc(e,t,r){let n=we(t),i=Ce(t),s=r==="fixed",o=Qt(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=xe(0);if((n||!s)&&((Qe(t)!=="body"||Gt(i))&&(a=Xt(t)),n)){let p=Qt(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=Er(i));let c=i&&!n&&!s?Gs(i,a):xe(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Ln(e){return pe(e).position==="static"}function qs(e,t){if(!we(e)||pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ce(e)===r&&(r=r.ownerDocument.body),r}function Ys(e,t){let r=G(e);if(Yt(e))return r;if(!we(e)){let i=Ie(e);for(;i&&!Et(i);){if(de(i)&&!Ln(i))return i;i=Ie(i)}return r}let n=qs(e,t);for(;n&&Bs(n)&&Ln(n);)n=qs(n,t);return n&&Et(n)&&Ln(n)&&!At(n)?r:n||js(e)||r}var nc=async function(e){let t=this.getOffsetParent||Ys,r=this.getDimensions,n=await r(e.floating);return{reference:rc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ic(e){return pe(e).direction==="rtl"}var Cr={convertOffsetParentRelativeRectToViewportRelativeRect:zl,getDocumentElement:Ce,getClippingRect:ec,getOffsetParent:Ys,getElementRects:nc,getClientRects:Gl,getDimensions:tc,getScale:Ct,isElement:de,isRTL:ic};var Xs=ks,Qs=Us;var Js=(e,t,r)=>{let n=new Map,i=r??{},s={...Cr,...i.platform,_c:n};return Is(e,t,{...i,platform:s})};function Zs(e){return sc(e)}function Pn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function sc(e){for(let t=e;t;t=Pn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Pn(e);t;t=Pn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||At(r)||t.tagName==="BODY"))return t}return null}async function eo(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Js(e,t,{strategy:n.strategy,platform:{...Cr,getOffsetParent:i=>Cr.getOffsetParent(i,Zs)},middleware:[Qs({crossAxis:!0}),Xs({allowedPlacements:[n.placement]})]})}var kt=g(C());var ni=g(W());var to=g(W(),1);var Nn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function ro(e,t){return(0,to.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Jt(e);try{return JSON.parse(r)}catch{return Jt(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Zt,...t??{}})}function oc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!wr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!wr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function wr(e,t){try{return oc(e,t)}catch{return!1}}function Zt(e,t){return!wr(e,t)}function Jt(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Tr(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var no=g(W(),1);var Dn=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Zt,attribute:!1,...t};(0,no.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Or=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Je=g(W(),1);var Rr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var so=g(H(),1);var _r=globalThis,ac=_r.ShadowRoot&&(_r.ShadyCSS===void 0||_r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var io=(e,t)=>{if(ac)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=_r.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var Lr=class extends so.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return io(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Nn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function oo(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Tt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},uo,ao=Symbol("constructorPrototype"),lo=Symbol("constructorName"),po=Symbol("exportpartsDebouncer"),co=Symbol("dynamicDependenciesLoaded"),wt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};wt.eventName="exportparts-updated";var Se=class extends Lr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[uo]=new Rr(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[po].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[lo]=this.constructor.name,this[ao]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[lo]&&Object.setPrototypeOf(this,this[ao])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[co]||(r[co]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(wt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(wt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new wt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=oo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let f=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],m=[...f,...h].filter(l).map(b=>b.trim());for(let b of m)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(f=>`${p}:${f}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};uo=po;Tt([(0,Je.property)()],Se.prototype,"exportpartsPrefix",void 0);Tt([ro([])],Se.prototype,"exportpartsPrefixes",void 0);Tt([(0,Je.property)({reflect:!0})],Se.prototype,"exportparts",void 0);Tt([(0,Je.property)()],Se.prototype,"customStylesheet",void 0);Tt([(0,Je.property)()],Se.prototype,"elementToFocus",void 0);Tt([(0,Je.state)()],Se.prototype,"useAdoptedStyleSheets",void 0);function Pr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var er=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),Ze=Symbol("internalStores"),lc=Tr(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ze].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ze].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ze].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ze].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ze].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ze].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[ke].has(o.store):this[ke].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[ke].set(o,a.subscribe(()=>this.updateFromStores())),this[er].set(o,[]),Pr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[er].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ke].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ke].has(o)&&this[ke].get(o)(),this[ke].delete(o),(a=this[er].get(o))===null||a===void 0||a.forEach(l=>l()),this[er].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ke,r=Ze,n=er,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),fo=class extends lc(Se){};function ie(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(e){return!!e&&!!e[L]}function fe(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gc})(e)||Array.isArray(e)||!!e[xo]||!!(!((t=e.constructor)===null||t===void 0)&&t[xo])||Fn(e)||Vn(e))}function et(e,t,r){r===void 0&&(r=!1),_t(e)===0?(r?Object.keys:Rt)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function _t(e){var t=e[L];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Fn(e)?2:Vn(e)?3:0}function Ot(e,t){return _t(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cc(e,t){return _t(e)===2?e.get(t):e[t]}function So(e,t,r){var n=_t(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ao(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Fn(e){return hc&&e instanceof Map}function Vn(e){return mc&&e instanceof Set}function Ue(e){return e.o||e.t}function qn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wo(e);delete t[L];for(var r=Rt(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Kn(e,t){return t===void 0&&(t=!1),Wn(e)||Te(e)||!fe(e)||(_t(e)>1&&(e.set=e.add=e.clear=e.delete=uc),Object.freeze(e),t&&et(e,(function(r,n){return Kn(n,!0)}),!0)),e}function uc(){ie(2)}function Wn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ae(e){var t=jn[e];return t||ie(18,e),t}function dc(e,t){jn[e]||(jn[e]=t)}function $n(){return rr}function Mn(e,t){t&&(Ae("Patches"),e.u=[],e.s=[],e.v=t)}function Nr(e){Hn(e),e.p.forEach(pc),e.p=null}function Hn(e){e===rr&&(rr=e.l)}function ho(e){return rr={p:[],l:rr,h:e,m:!0,_:0}}function pc(e){var t=e[L];t.i===0||t.i===1?t.j():t.g=!0}function In(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ae("ES5").S(t,e,n),n?(r[L].P&&(Nr(t),ie(4)),fe(e)&&(e=Dr(t,e),t.l||Mr(t,e)),t.u&&Ae("Patches").M(r[L].t,e,t.u,t.s)):e=Dr(t,r,[]),Nr(t),t.u&&t.v(t.u,t.s),e!==Co?e:void 0}function Dr(e,t,r){if(Wn(t))return t;var n=t[L];if(!n)return et(t,(function(a,l){return mo(e,n,t,a,l,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Mr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=qn(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),et(s,(function(a,l){return mo(e,n,i,a,l,r,o)})),Mr(e,i,!1),r&&e.u&&Ae("Patches").N(n,r,e.u,e.s)}return n.o}function mo(e,t,r,n,i,s,o){if(Te(i)){var a=Dr(e,i,s&&t&&t.i!==3&&!Ot(t.R,n)?s.concat(n):void 0);if(So(r,n,a),!Te(a))return;e.m=!1}else o&&r.add(i);if(fe(i)&&!Wn(i)){if(!e.h.D&&e._<1)return;Dr(e,i),t&&t.A.l||Mr(e,i)}}function Mr(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Kn(t,r)}function kn(e,t){var r=e[L];return(r?Ue(r):e)[t]}function go(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function $e(e){e.P||(e.P=!0,e.l&&$e(e.l))}function Un(e){e.o||(e.o=qn(e.t))}function Bn(e,t,r){var n=Fn(t)?Ae("MapSet").F(t,r):Vn(t)?Ae("MapSet").T(t,r):e.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:$n(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},l=a,c=nr;o&&(l=[a],c=tr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):Ae("ES5").J(t,r);return(r?r.A:$n()).p.push(n),n}function fc(e){return Te(e)||ie(22,e),(function t(r){if(!fe(r))return r;var n,i=r[L],s=_t(r);if(i){if(!i.P&&(i.i<4||!Ae("ES5").K(i)))return i.t;i.I=!0,n=yo(r,s),i.I=!1}else n=yo(r,s);return et(n,(function(o,a){i&&cc(i.t,o)===a||So(n,o,t(a))})),s===3?new Set(n):n})(e)}function yo(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qn(e)}function Eo(){function e(o,a){var l=s[o];return l?l.enumerable=a:s[o]=l={configurable:!0,enumerable:a,get:function(){var c=this[L];return nr.get(c,o)},set:function(c){var u=this[L];nr.set(u,o,c)}},l}function t(o){for(var a=o.length-1;a>=0;a--){var l=o[a][L];if(!l.P)switch(l.i){case 5:n(l)&&$e(l);break;case 4:r(l)&&$e(l)}}}function r(o){for(var a=o.t,l=o.k,c=Rt(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==L){var p=a[d];if(p===void 0&&!Ot(a,d))return!0;var f=l[d],h=f&&f[L];if(h?h.t!==p:!Ao(f,p))return!0}}var m=!!a[L];return c.length!==Rt(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(o){o.g&&ie(3,JSON.stringify(Ue(o)))}var s={};dc("ES5",{J:function(o,a){var l=Array.isArray(o),c=(function(d,p){if(d){for(var f=Array(p.length),h=0;h<p.length;h++)Object.defineProperty(f,""+h,e(h,!0));return f}var m=wo(p);delete m[L];for(var b=Rt(m),x=0;x<b.length;x++){var S=b[x];m[S]=e(S,d||!!m[S].enumerable)}return Object.create(Object.getPrototypeOf(p),m)})(l,o),u={i:l?5:4,A:a?a.A:$n(),P:!1,I:!1,R:{},l:a,t:o,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,L,{value:u,writable:!0}),c},S:function(o,a,l){l?Te(a)&&a[L].A===o&&t(o.p):(o.u&&(function c(u){if(u&&typeof u=="object"){var d=u[L];if(d){var p=d.t,f=d.k,h=d.R,m=d.i;if(m===4)et(f,(function(O){O!==L&&(p[O]!==void 0||Ot(p,O)?h[O]||c(f[O]):(h[O]=!0,$e(d)))})),et(p,(function(O){f[O]!==void 0||Ot(f,O)||(h[O]=!1,$e(d))}));else if(m===5){if(n(d)&&($e(d),h.length=!0),f.length<p.length)for(var b=f.length;b<p.length;b++)h[b]=!1;else for(var x=p.length;x<f.length;x++)h[x]=!0;for(var S=Math.min(f.length,p.length),E=0;E<S;E++)f.hasOwnProperty(E)||(h[E]=!0),h[E]===void 0&&c(f[E])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var vo,rr,zn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hc=typeof Map<"u",mc=typeof Set<"u",bo=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Co=zn?Symbol.for("immer-nothing"):((vo={})["immer-nothing"]=!0,vo),xo=zn?Symbol.for("immer-draftable"):"__$immer_draftable",L=zn?Symbol.for("immer-state"):"__$immer_state";var gc=""+Object.prototype.constructor,Rt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wo=Object.getOwnPropertyDescriptors||function(e){var t={};return Rt(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},jn={},nr={get:function(e,t){if(t===L)return e;var r=Ue(e);if(!Ot(r,t))return(function(i,s,o){var a,l=go(s,o);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!fe(n)?n:n===kn(e.t,t)?(Un(e),e.o[t]=Bn(e.A.h,n,e)):n},has:function(e,t){return t in Ue(e)},ownKeys:function(e){return Reflect.ownKeys(Ue(e))},set:function(e,t,r){var n=go(Ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=kn(Ue(e),t),s=i?.[L];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Ao(r,i)&&(r!==void 0||Ot(e.t,t)))return!0;Un(e),$e(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return kn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Un(e),$e(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){ie(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ie(12)}},tr={};et(nr,(function(e,t){tr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),tr.deleteProperty=function(e,t){return tr.set.call(this,e,t,void 0)},tr.set=function(e,t,r){return nr.set.call(this,e[0],t,r,e[0])};var yc=(function(){function e(r){var n=this;this.O=bo,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var l=n;return function(m){var b=this;m===void 0&&(m=a);for(var x=arguments.length,S=Array(x>1?x-1:0),E=1;E<x;E++)S[E-1]=arguments[E];return l.produce(m,(function(O){var $;return($=s).call.apply($,[b,O].concat(S))}))}}var c;if(typeof s!="function"&&ie(6),o!==void 0&&typeof o!="function"&&ie(7),fe(i)){var u=ho(n),d=Bn(n,i,void 0),p=!0;try{c=s(d),p=!1}finally{p?Nr(u):Hn(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(m){return Mn(u,o),In(m,u)}),(function(m){throw Nr(u),m})):(Mn(u,o),In(c,u))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===Co&&(c=void 0),n.D&&Kn(c,!0),o){var f=[],h=[];Ae("Patches").M(i,c,f,h),o(f,h)}return c}ie(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(f){return i.apply(void 0,[f].concat(d))}))};var o,a,l=n.produce(i,s,(function(c,u){o=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,o,a]})):[l,o,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){fe(r)||ie(8),Te(r)&&(r=fc(r));var n=ho(this),i=Bn(this,r,void 0);return i[L].C=!0,Hn(n),i},t.finishDraft=function(r,n){var i=r&&r[L],s=i.A;return Mn(s,n),In(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!bo&&ie(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var o=Ae("Patches").$;return Te(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},e})(),Z=new yc,vc=Z.produce,jd=Z.produceWithPatches.bind(Z),Fd=Z.setAutoFreeze.bind(Z),Vd=Z.setUseProxies.bind(Z),qd=Z.applyPatches.bind(Z),Kd=Z.createDraft.bind(Z),Wd=Z.finishDraft.bind(Z),Ir=vc;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(e)}function To(e,t){if(tt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oo(e){var t=To(e,"string");return tt(t)=="symbol"?t:t+""}function Ro(e,t,r){return(t=Oo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_o(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_o(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Lo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Yn=function(){return Math.random().toString(36).substring(7).split("").join(".")},kr={INIT:"@@redux/INIT"+Yn(),REPLACE:"@@redux/REPLACE"+Yn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Yn()}};function bc(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Xn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(q(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(q(1));return r(Xn)(e,t)}if(typeof e!="function")throw new Error(q(2));var i=e,s=t,o=[],a=o,l=!1;function c(){a===o&&(a=o.slice())}function u(){if(l)throw new Error(q(3));return s}function d(m){if(typeof m!="function")throw new Error(q(4));if(l)throw new Error(q(5));var b=!0;return c(),a.push(m),function(){if(b){if(l)throw new Error(q(6));b=!1,c();var S=a.indexOf(m);a.splice(S,1),o=null}}}function p(m){if(!bc(m))throw new Error(q(7));if(typeof m.type>"u")throw new Error(q(8));if(l)throw new Error(q(9));try{l=!0,s=i(s,m)}finally{l=!1}for(var b=o=a,x=0;x<b.length;x++){var S=b[x];S()}return m}function f(m){if(typeof m!="function")throw new Error(q(10));i=m,p({type:kr.REPLACE})}function h(){var m,b=d;return m={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(q(11));function E(){S.next&&S.next(u())}E();var O=b(E);return{unsubscribe:O}}},m[Lo]=function(){return this},m}return p({type:kr.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:f},n[Lo]=h,n}function xc(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:kr.INIT});if(typeof n>"u")throw new Error(q(12));if(typeof r(void 0,{type:kr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(q(13))})}function Po(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var s=Object.keys(r),o,a;try{xc(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,f={},h=0;h<s.length;h++){var m=s[h],b=r[m],x=c[m],S=b(x,u);if(typeof S>"u"){var E=u&&u.type;throw new Error(q(14))}f[m]=S,p=p||S!==x}return p=p||s.length!==Object.keys(c).length,p?f:c}}function Lt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(q(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(l){return l(o)});return s=Lt.apply(void 0,a)(i.dispatch),Gn(Gn({},i),{},{dispatch:s})}}}function Do(e){var t=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,e):o(a)}}};return t}var Mo=Do();Mo.withExtraArgument=Do;var Qn=Mo;var Ho=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Sc=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Pt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Ac=Object.defineProperty,Ec=Object.defineProperties,Cc=Object.getOwnPropertyDescriptors,Io=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Tc=Object.prototype.propertyIsEnumerable,ko=function(e,t,r){return t in e?Ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},He=function(e,t){for(var r in t||(t={}))wc.call(t,r)&&ko(e,r,t[r]);if(Io)for(var n=0,i=Io(t);n<i.length;n++){var r=i[n];Tc.call(t,r)&&ko(e,r,t[r])}return e},Jn=function(e,t){return Ec(e,Cc(t))},Oc=function(e,t,r){return new Promise(function(n,i){var s=function(l){try{a(r.next(l))}catch(c){i(c)}},o=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(s,o)};a((r=r.apply(e,t)).next())})};var Rc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lt:Lt.apply(null,arguments)},up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function _c(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Be(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return He(He({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var Lc=(function(e){Ho(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Pt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Pt([void 0],r.concat(this))))},t})(Array),Pc=(function(e){Ho(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Pt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Pt([void 0],r.concat(this))))},t})(Array);function ti(e){return fe(e)?Ir(e,function(){}):e}function Nc(e){return typeof e=="boolean"}function Dc(){return function(t){return Mc(t)}}function Mc(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,s=e.serializableCheck,o=s===void 0?!0:s,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new Lc;if(r&&(Nc(r)?c.push(Qn):c.push(Qn.withExtraArgument(r.extraArgument))),0){if(i)var u;if(o)var d;if(l)var p}return c}var Zn=!0;function Bo(e){var t=Dc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?t():s,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,f;if(typeof i=="function")f=i;else if(_c(i))f=Po(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 h=o;if(typeof h=="function"&&(h=h(t),!Zn&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Zn&&h.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=No.apply(void 0,h),b=Lt;l&&(b=Rc(He({trace:!Zn},typeof l=="object"&&l)));var x=new Pc(m),S=x;Array.isArray(p)?S=Pt([m],p):typeof p=="function"&&(S=p(x));var E=b.apply(void 0,S);return Xn(f,u,E)}function jo(e){var t={},r=[],n,i={addCase:function(s,o){var a=typeof s=="string"?s:s.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return e(i),[t,r,n]}function Ic(e){return typeof e=="function"}function kc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?jo(t):[t,r,n],s=i[0],o=i[1],a=i[2],l;if(Ic(e))l=function(){return ti(e())};else{var c=ti(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var f=Pt([s[p.type]],o.filter(function(h){var m=h.matcher;return m(p)}).map(function(h){var m=h.reducer;return m}));return f.filter(function(h){return!!h}).length===0&&(f=[a]),f.reduce(function(h,m){if(m)if(Te(h)){var b=h,x=m(b,p);return x===void 0?h:x}else{if(fe(h))return Ir(h,function(S){return m(S,p)});var x=m(h,p);if(x===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return h},d)}return u.getInitialState=l,u}function Uc(e,t){return e+"/"+t}function Fo(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ti(e.initialState),n=e.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(u){var d=n[u],p=Uc(t,u),f,h;"reducer"in d?(f=d.reducer,h=d.prepare):f=d,s[u]=f,o[p]=f,a[u]=h?Be(p,h):Be(p)});function l(){var u=typeof e.extraReducers=="function"?jo(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,f=u[1],h=f===void 0?[]:f,m=u[2],b=m===void 0?void 0:m,x=He(He({},p),o);return kc(r,function(S){for(var E in x)S.addCase(E,x[E]);for(var O=0,$=h;O<$.length;O++){var I=$[O];S.addMatcher(I.matcher,I.reducer)}b&&S.addDefaultCase(b)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:s,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var $c="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=$c[Math.random()*64|0];return t},Bc=["name","message","stack","code"],ei=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Uo=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),jc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Bc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},hp=(function(){function e(t,r,n){var i=Be(t+"/fulfilled",function(u,d,p,f){return{payload:u,meta:Jn(He({},f||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),s=Be(t+"/pending",function(u,d,p){return{payload:void 0,meta:Jn(He({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),o=Be(t+"/rejected",function(u,d,p,f,h){return{payload:f,error:(n&&n.serializeError||jc)(u||"Rejected"),meta:Jn(He({},h||{}),{arg:p,requestId:d,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,f){var h=n?.idGenerator?n.idGenerator(u):Hc(),m=new l,b,x=!1;function S(O){b=O,m.abort()}var E=(function(){return Oc(this,null,function(){var O,$,I,Re,cn,_e,Q;return Sc(this,function(te){switch(te.label){case 0:return te.trys.push([0,4,,5]),Re=(O=n?.condition)==null?void 0:O.call(n,u,{getState:p,extra:f}),Vc(Re)?[4,Re]:[3,2];case 1:Re=te.sent(),te.label=2;case 2:if(Re===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,cn=new Promise(function(J,Ke){return m.signal.addEventListener("abort",function(){return Ke({name:"AbortError",message:b||"Aborted"})})}),d(s(h,u,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:h,arg:u},{getState:p,extra:f}))),[4,Promise.race([cn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:f,requestId:h,signal:m.signal,abort:S,rejectWithValue:function(J,Ke){return new ei(J,Ke)},fulfillWithValue:function(J,Ke){return new Uo(J,Ke)}})).then(function(J){if(J instanceof ei)throw J;return J instanceof Uo?i(J.payload,h,u,J.meta):i(J,h,u)})])];case 3:return I=te.sent(),[3,5];case 4:return _e=te.sent(),I=_e instanceof ei?o(null,h,u,_e.payload,_e.meta):o(_e,h,u),[3,5];case 5:return Q=n&&!n.dispatchConditionRejection&&o.match(I)&&I.meta.condition,Q||d(I),[2,I]}})})})();return Object.assign(E,{abort:S,requestId:h,arg:u,unwrap:function(){return E.then(Fc)}})}}return Object.assign(c,{pending:s,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function Fc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Vc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vo="listener",qo="completed",Ko="cancelled",mp="task-"+Ko,gp="task-"+qo,yp=Vo+"-"+Ko,vp=Vo+"-"+qo;var ri="listenerMiddleware";var bp=Be(ri+"/add"),xp=Be(ri+"/removeAll"),Sp=Be(ri+"/remove");var $o,Ap=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return($o||($o=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},qc=function(e){return function(t){setTimeout(t,e)}},Ep=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qc(10);Eo();var Kc=Tr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Ur=class extends Kc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Wo=class e extends Ur{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Pr(s))return s;if(i==null)return;let o=Fo({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Bo({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Jt(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Or;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $r=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Hr=g(C()),Wc="ft-app-info",rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};rt.eventName="authentication-change";var ir=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ir.eventName="ui-locale-changed";var zc={session:(e,t)=>{(0,Hr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new rt(t.payload)),0))}},w=Hr.FtReduxStore.get({name:Wc,reducers:zc,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var zo=g(C()),Br=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Qp=(0,zo.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>$r.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Br([(0,ni.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Br([(0,ni.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Br([Dn({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Br([Dn({store:w.name})],t.prototype,"uiLocale",void 0),t});var Go;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Go||(Go={}));var Yo;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Yo||(Yo={}));var Xo;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Xo||(Xo={}));var Qo;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Qo||(Qo={}));var Jo;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Jo||(Jo={}));var Zo;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Zo||(Zo={}));var ea;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(ea||(ea={}));var ta;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ta||(ta={}));var ra;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(ra||(ra={}));var na;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(na||(na={}));var ia;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ia||(ia={}));var sa;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(sa||(sa={}));var oa;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(oa||(oa={}));var aa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(aa||(aa={}));var la;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(la||(la={}));var ca;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ca||(ca={}));var ii;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ii||(ii={}));var ua;(function(e){e.ASC="ASC",e.DESC="DESC"})(ua||(ua={}));var da;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(da||(da={}));var si;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(si||(si={}));var pa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(pa||(pa={}));var fa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(fa||(fa={}));var ha;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ha||(ha={}));var ma;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ma||(ma={}));var ga;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ga||(ga={}));var oi;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(oi||(oi={}));var ya;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ya||(ya={}));var M;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(M||(M={}));var se;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(se||(se={}));var va;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(va||(va={}));var ba;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ba||(ba={}));var xa;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(xa||(xa={}));var Sa;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Sa||(Sa={}));var Aa;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Aa||(Aa={}));var Ea;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ea||(Ea={}));var Ca;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ca||(Ca={}));var wa;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(wa||(wa={}));var Ta;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Ta||(Ta={}));var Oa;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Oa||(Oa={}));var Ra;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Ra||(Ra={}));var _a;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(_a||(_a={}));var Gc={[M.PERSONAL_BOOK_SHARE_USER]:[M.PERSONAL_BOOK_USER],[M.HTML_EXPORT_USER]:[M.PERSONAL_BOOK_USER],[M.PDF_EXPORT_USER]:[M.PERSONAL_BOOK_USER],[M.KHUB_ADMIN]:[M.CONTENT_PUBLISHER],[M.ADMIN]:[M.KHUB_ADMIN,M.USERS_ADMIN,M.PORTAL_ADMIN,M.BEHAVIOR_DATA_USER],[M.GENERATIVE_AI_EXPORT_USER]:[M.GENERATIVE_AI_USER]};function La(e,t){return e===t||(Gc[e]??[]).some(r=>La(r,t))}function ai(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>La(n,t))}var Kr=g(C());var li=g(C());var nt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Nt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):nt.await()}};var Y=class extends Nt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new li.CacheRegistry,this.cache=t?i.commonCache:new li.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var jr=class extends Y{async listMySearches(){let{session:t}=w.getState();return ai(t,M.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Fr=class extends Y{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Vr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var qr=class extends Y{constructor(){super(...arguments),this.CACHE_DURATION=180*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 t=w.getState().session;return!!t?.sessionAuthenticated}};var Yc="ft-user-assets",Xc={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(se).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;ui(e,r,[...ci(e,r),i]),Pa(e,r,1,n),Na(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;ui(e,r,ci(e,r).map(i=>i.id===n.id?n:i)),Na(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;ui(e,r,ci(e,r).filter(s=>s.id!==i)),Pa(e,r,-1,n)}},Da={[se.SEARCHES]:"savedSearches",[se.BOOKMARKS]:"bookmarks",[se.BOOKS]:void 0,[se.COLLECTIONS]:void 0},ci=(e,t)=>{var r;let n=Da[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},ui=(e,t,r)=>{let n=Da[t];n&&(e[n]=r)},Pa=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===se.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Na=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},K=Kr.FtReduxStore.get({name:Yc,reducers:Xc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(se).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),di=class{constructor(t=new Vr,r=new qr){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new jr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Kr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),K.actions.clearAssetCount(),K.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),K.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),K.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();K.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();K.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&K.getState().assetCounts.allAsset[t]!==r.count&&K.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&K.getState().assetCounts.bookmarkByMap[t]!==r.count&&K.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(K.getState().assetCounts.bookmarkByMap).length!==0;t===se.BOOKMARKS&&r&&K.actions.clearBookmarkCountByMap(),K.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;K.actions.bookmarks(r)}}},Qc=new di;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qc);var pi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new pi;var oe=g(C());var Ma,Dt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Jc=Symbol("clearAfterUnitTest"),Wr=class extends(0,oe.withEventBus)(Y){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ma]=()=>{this.defaultMessages={},this.cache=new oe.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,oe.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new oe.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof oe.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Dt({loadedContexts:t})),this.dispatchEvent(new Dt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Dt({loadedContexts:[t]})),this.dispatchEvent(new Dt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,oe.delay)(0).then(()=>n()).catch(()=>null)))}};Ma=Jc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Wr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Wr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Mt=window.FluidTopicsI18nService,zr=window.FluidTopicsCustomI18nService;var Ia=g(C()),fi=class{highlightHtml(t,r,n){(0,Ia.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new fi;var ka=g(C());var hi=class{isDate(t){var r,n,i,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return ka.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new hi;var Ua=g(C());var sr=class{static get(t,r){var n,i,s,o;let a=w.getState(),{lang:l,region:c}=(s=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Ua.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var mi=class{urlToSearchRequest(t){return sr.get().parse(t)}searchRequestToUrl(t){return sr.get().serialize(t)}};window.FluidTopicsUrlService=new mi;var Oe=g(C());var it=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};it.eventName="change";var gi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},$a=new gi;var Gr=class e extends Oe.WithEventBus{static build(){return new e(window.history,$a,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},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),(0,Oe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new it(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,o,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(it.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(it.eventName,t)}currentItem(){return(0,Oe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Oe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Oe.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Oe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Gr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ha=g(H());var Ba=Ha.css`
262
+ `;var Fa=g(H()),X=g(W()),at=g(C());var st=g(C());function ja(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Yr=class extends Nt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var yi=class e extends st.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new st.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Yr,this.cleanSessionDebouncer=new st.Debouncer,this.reloadDebouncer=new st.Debouncer(500),this.apiProvider=r??(()=>nt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(rt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>ja(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ir(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},vi=yi.build();var ot=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var or=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new ot(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var V=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},P=class extends at.FtLitElementRedux{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.authenticationRequired=!1,this.messageContexts=[],this.stateManager=vi,this.contextRoot=new or}render(){return Fa.html`
263
263
  <slot></slot>
264
264
  `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Mt.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};P.elementDefinitions={};P.styles=Ba;V([(0,X.property)()],P.prototype,"baseUrl",void 0);V([(0,X.property)()],P.prototype,"tenantId",void 0);V([(0,X.property)()],P.prototype,"apiIntegrationIdentifier",void 0);V([(0,X.property)()],P.prototype,"apiIntegrationAppVersion",void 0);V([(0,X.property)()],P.prototype,"uiLocale",void 0);V([(0,at.jsonProperty)(null)],P.prototype,"availableUiLocales",void 0);V([(0,at.jsonProperty)(null)],P.prototype,"metadataConfiguration",void 0);V([(0,X.property)({type:Boolean})],P.prototype,"editorMode",void 0);V([(0,X.property)({type:Boolean})],P.prototype,"noCustom",void 0);V([(0,X.property)({type:Boolean})],P.prototype,"openExternalDocumentInNewTab",void 0);V([(0,X.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],P.prototype,"noCustomComponent",void 0);V([(0,X.property)({type:Boolean})],P.prototype,"withManualResources",void 0);V([(0,X.property)({type:Boolean})],P.prototype,"navigatorOnline",void 0);V([(0,X.property)({type:Boolean})],P.prototype,"forcedOffline",void 0);V([(0,X.property)({type:Boolean})],P.prototype,"authenticationRequired",void 0);V([(0,at.jsonProperty)([])],P.prototype,"messageContexts",void 0);V([(0,at.jsonProperty)(void 0)],P.prototype,"session",void 0);var qa=g(C());var Va={"ft-app-context":P};(0,qa.customElements)(Va);var Ka=g(W());var bi=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},It=new bi;var tu=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},lr=Symbol("i18nAttributes"),Wa=Symbol("i18nListAttributes"),za=Symbol("i18nProperties"),Xr=Symbol("i18nContexts"),ar=Symbol("i18nUnsubs"),Zr=(0,kt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?zr:Mt}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(It.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[lr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Wa])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(f=>c(u,d,f))})}updateI18nProperties(s){var o;(o=this[za])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Xr].set(l,{isCustomContext:a}),this[ar].has(l)||this[ar].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Xr].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Xr].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ar].forEach(s=>s()),this[ar].clear()}}return t=Xr,r=ar,tu([(0,Ka.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Qr=class extends Zr(kt.FtLitElement){},Jr=class extends Zr(kt.FtLitElementRedux){};var Ga=g(C());var xi=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?It.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},ru=new xi;var Ya=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Ga.hasChanged,converter:It,...t}),r[lr]=(i=r[lr])!==null&&i!==void 0?i:new Map,r[lr].set(n,e??{})};var en=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?zr:Mt}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...s)=>this.service.resolveMessage(this.name,i,...s)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Xa=g(H());var Qa=Xa.css`
265
265
  `;var tn=g(H()),rn=g(W()),nn=g(C());var cr=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},he=class extends Jr{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":tn.nothing:tn.html`
@@ -410,7 +410,7 @@
410
410
  <div></div>
411
411
  <div></div>
412
412
  </div>
413
- `}};ct.styles=pl;var gl=g(C());var ml={"ft-loader":ct};(0,gl.customElements)(ml);var Ve=g(H()),Ei=g(un()),_=g(W());var Ai=e=>e??U;var bl=g(H()),T=g(C());var yl=T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorPrimary),j={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorSurface),borderRadius:T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusL),color:yl,fontSize:T.FtCssVariableFactory.extend("--ft-button-font-size","",be.fontSize),iconSize:T.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:T.FtCssVariableFactory.extend("--ft-button-ripple-color","",yl),verticalPadding:T.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},vl=T.FtCssVariableFactory.extend("--ft-button-primary-color","",T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorOnPrimary)),Si={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-primary-background-color","",T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorPrimary)),color:vl,rippleColor:T.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",vl)},ve={borderRadius:T.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusM)),verticalPadding:T.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},xl=bl.css`
413
+ `}};ct.styles=pl;var gl=g(C());var ml={"ft-loader":ct};(0,gl.customElements)(ml);var Ve=g(H()),Ei=g(un()),_=g(W());var Si=e=>e??U;var bl=g(H()),T=g(C());var yl=T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorPrimary),j={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorSurface),borderRadius:T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusL),color:yl,fontSize:T.FtCssVariableFactory.extend("--ft-button-font-size","",be.fontSize),iconSize:T.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:T.FtCssVariableFactory.extend("--ft-button-ripple-color","",yl),verticalPadding:T.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},vl=T.FtCssVariableFactory.extend("--ft-button-primary-color","",T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorOnPrimary)),Ai={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-primary-background-color","",T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorPrimary)),color:vl,rippleColor:T.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",vl)},ve={borderRadius:T.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusM)),verticalPadding:T.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},xl=bl.css`
414
414
  :host {
415
415
  display: inline-block;
416
416
  max-width: 100%;
@@ -501,9 +501,9 @@
501
501
  }
502
502
 
503
503
  .ft-button.ft-button--primary {
504
- background-color: ${Si.backgroundColor};
505
- --button-internal-color: ${Si.color};
506
- ${(0,T.setVariable)(re.color,Si.rippleColor)};
504
+ background-color: ${Ai.backgroundColor};
505
+ --button-internal-color: ${Ai.color};
506
+ ${(0,T.setVariable)(re.color,Ai.rippleColor)};
507
507
  }
508
508
 
509
509
  .ft-button--label {
@@ -574,8 +574,8 @@
574
574
  <button part="button"
575
575
  class="${(0,Ei.classMap)(this.buttonClasses)}"
576
576
  aria-label="${(n=this.ariaLabel)!==null&&n!==void 0?n:this.getLabel()}"
577
- aria-haspopup="${Ai(this.ariaHasPopup)}"
578
- aria-pressed="${Ai(this.ariaPressed)}"
577
+ aria-haspopup="${Si(this.ariaHasPopup)}"
578
+ aria-pressed="${Si(this.ariaPressed)}"
579
579
  ?disabled=${this.isDisabled()}>
580
580
  ${i}
581
581
  </button>
@@ -590,7 +590,7 @@
590
590
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
591
591
  `:Ve.html`
592
592
  <slot part="icon" name="icon"></slot>
593
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ce.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};R.elementDefinitions={"ft-ripple":D,"ft-tooltip":B,"ft-icon":ee,"ft-loader":ct,"ft-typography":ue};R.styles=[ce.safariEllipsisFix,xl,ce.noTextSelect];N([(0,_.property)({type:Boolean})],R.prototype,"primary",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"outlined",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"dense",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"round",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"disabled",void 0);N([(0,_.property)()],R.prototype,"icon",void 0);N([(0,_.property)()],R.prototype,"iconVariant",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);N([(0,_.property)()],R.prototype,"label",void 0);N([(0,_.property)()],R.prototype,"type",void 0);N([(0,_.property)()],R.prototype,"href",void 0);N([(0,_.property)()],R.prototype,"target",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"loading",void 0);N([(0,_.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);N([(0,_.property)()],R.prototype,"ariaHasPopup",void 0);N([(0,_.property)({attribute:"aria-pressed"})],R.prototype,"ariaPressed",void 0);N([(0,_.property)()],R.prototype,"tooltipPosition",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"activated",void 0);N([(0,_.query)(".ft-button")],R.prototype,"button",void 0);N([(0,_.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);N([(0,_.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var Sl=g(C());var Al={"ft-button":R};(0,Sl.customElements)(Al);var Ut=g(C()),wi=g(W());var fr;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(fr||(fr={}));var ut=g(C());var nu=g(C());var on=class e extends Event{constructor(){super(e.eventName)}};on.eventName="search-context-clear-all-filters";var El=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ti=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Cl=Symbol("registerInterval"),Ci=Symbol("registerAttempts"),iu=40,su=(0,Ut.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var i,s,o;super.willUpdate(n),n.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=n.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(o=this.stateManager)===null||o===void 0||o.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ci]=0,this.tryToRegisterToContext(),this[Cl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ci]>iu?window.clearInterval(this[Cl]):(this[Ci]++,this.dispatchEvent(new Ti))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return El([(0,wi.state)()],t.prototype,"stateManager",void 0),El([(0,wi.state)({hasChanged:Ut.hasChanged})],t.prototype,"neededSearchRequests",void 0),t}),an=class extends su(Ut.FtLitElementRedux){};var Oi=en.fromGwt("designedActionBlockAriaLabels");var wl=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},qe=class extends Zr(an){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[fr.CLUSTERED_SEARCH],this.addI18nContext(Oi)}render(){return this.isLastPage?ln.nothing:ln.html`
593
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ce.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};R.elementDefinitions={"ft-ripple":D,"ft-tooltip":B,"ft-icon":ee,"ft-loader":ct,"ft-typography":ue};R.styles=[ce.safariEllipsisFix,xl,ce.noTextSelect];N([(0,_.property)({type:Boolean})],R.prototype,"primary",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"outlined",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"dense",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"round",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"disabled",void 0);N([(0,_.property)()],R.prototype,"icon",void 0);N([(0,_.property)()],R.prototype,"iconVariant",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);N([(0,_.property)()],R.prototype,"label",void 0);N([(0,_.property)()],R.prototype,"type",void 0);N([(0,_.property)()],R.prototype,"href",void 0);N([(0,_.property)()],R.prototype,"target",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"loading",void 0);N([(0,_.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);N([(0,_.property)()],R.prototype,"ariaHasPopup",void 0);N([(0,_.property)({attribute:"aria-pressed"})],R.prototype,"ariaPressed",void 0);N([(0,_.property)()],R.prototype,"tooltipPosition",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);N([(0,_.property)({type:Boolean})],R.prototype,"activated",void 0);N([(0,_.query)(".ft-button")],R.prototype,"button",void 0);N([(0,_.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);N([(0,_.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var Al=g(C());var Sl={"ft-button":R};(0,Al.customElements)(Sl);var Ut=g(C()),wi=g(W());var fr;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(fr||(fr={}));var ut=g(C());var nu=g(C());var on=class e extends Event{constructor(){super(e.eventName)}};on.eventName="search-context-clear-all-filters";var El=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ti=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Cl=Symbol("registerInterval"),Ci=Symbol("registerAttempts"),iu=40,su=(0,Ut.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var i,s,o;super.willUpdate(n),n.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=n.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(o=this.stateManager)===null||o===void 0||o.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ci]=0,this.tryToRegisterToContext(),this[Cl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ci]>iu?window.clearInterval(this[Cl]):(this[Ci]++,this.dispatchEvent(new Ti))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return El([(0,wi.state)()],t.prototype,"stateManager",void 0),El([(0,wi.state)({hasChanged:Ut.hasChanged})],t.prototype,"neededSearchRequests",void 0),t}),an=class extends su(Ut.FtLitElementRedux){};var Oi=en.fromGwt("designedActionBlockAriaLabels");var wl=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},qe=class extends Zr(an){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[fr.CLUSTERED_SEARCH],this.addI18nContext(Oi)}render(){return this.isLastPage?ln.nothing:ln.html`
594
594
  <ft-button @click=${this.loadMore}>
595
595
  ${Oi.messages.searchPageLoadMore()}
596
596
  </ft-button>
@@ -5,7 +5,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
5
5
  .highlight-html-match {
6
6
  background: ${ec};
7
7
  }
8
- `;function ai(t,e,r){var n,i;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new mp(t);if(s.unmark(),e&&e.trim()){let l={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=(p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])})),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var li={};U(li,{noTextInputDefaultClearButton:()=>bp,noTextSelect:()=>Fr,safariEllipsisFix:()=>ci,wordWrap:()=>yp});var Fr=P`
8
+ `;function ai(t,e,r){var n,i;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new mp(t);if(s.unmark(),e&&e.trim()){let l={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var li={};U(li,{noTextInputDefaultClearButton:()=>bp,noTextSelect:()=>Fr,safariEllipsisFix:()=>ci,wordWrap:()=>yp});var Fr=P`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -340,7 +340,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
340
340
  word-break: break-word;
341
341
  }
342
342
  `;var Sf="ft-app-info",Tt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Tt.eventName="authentication-change";var Kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Kr.eventName="ui-locale-changed";var Ef={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new Tt(e.payload)),0))}},N=it.get({name:Sf,reducers:Ef,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ko=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},vE=X(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(N)}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=>At.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ko([E({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ko([E({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ko([Ve({store:N.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),ko([Ve({store:N.name})],e.prototype,"uiLocale",void 0),e});var Lt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=N.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=N.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var fr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Lt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Lt.await()}};var ue=class extends fr{constructor(e=!0,r){var n;super(r),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 De,this.cache=e?i.commonCache:new De}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Do=class extends ue{async listMySearches(){let{session:e}=N.getState();return Bi(e,Z.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Mo=class extends ue{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Uo=class extends ue{constructor(){super(...arguments),this.CACHE_DURATION=180*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=N.getState().session;return!!e?.sessionAuthenticated}};var Fo=class extends ue{constructor(){super(...arguments),this.CACHE_DURATION=180*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=N.getState().session;return!!e?.sessionAuthenticated}};var Cf="ft-user-assets",Of={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(Se).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;da(t,r,[...la(t,r),i]),Jl(t,r,1,n),ed(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;da(t,r,la(t,r).map(i=>i.id===n.id?n:i)),ed(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;da(t,r,la(t,r).filter(a=>a.id!==i)),Jl(t,r,-1,n)}},td={[Se.SEARCHES]:"savedSearches",[Se.BOOKMARKS]:"bookmarks",[Se.BOOKS]:void 0,[Se.COLLECTIONS]:void 0},la=(t,e)=>{var r;let n=td[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},da=(t,e,r)=>{let n=td[e];n&&(t[n]=r)},Jl=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Se.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},ed=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},se=it.get({name:Cf,reducers:Of,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Se).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ua=class{constructor(e=new Uo,r=new Fo){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mo,this.savedSearchesService=new Do,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();he((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),se.actions.clearAssetCount(),se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();se.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();se.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&se.getState().assetCounts.allAsset[e]!==r.count&&se.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&se.getState().assetCounts.bookmarkByMap[e]!==r.count&&se.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(se.getState().assetCounts.bookmarkByMap).length!==0;e===Se.BOOKMARKS&&r&&se.actions.clearBookmarkCountByMap(),se.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;se.actions.bookmarks(r)}}},Af=new ua;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Af);var pa=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new pa;var rd,hr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},wf=Symbol("clearAfterUnitTest"),Bo=class extends bo(ue){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[rd]=()=>{this.defaultMessages={},this.cache=new De,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};he(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Br((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof Ye)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new hr({loadedContexts:e})),this.dispatchEvent(new hr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new hr({loadedContexts:[e]})),this.dispatchEvent(new hr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>go(0).then(()=>n()).catch(()=>null)))}};rd=wf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Bo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Bo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var mr=window.FluidTopicsI18nService,$o=window.FluidTopicsCustomI18nService;var fa=class{highlightHtml(e,r,n){ai(e,r,n)}};window.FluidTopicsHighlightHtmlService=new fa;var ha=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.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,r){var n,i,a,s;if(e==null)return"";try{return At.format(e,(n=r?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new ha;var qr=class{static get(e,r){var n,i,a,s;let l=N.getState(),{lang:d,region:p}=(a=(i=(n=l.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new tr(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${p}`)}};var ma=class{urlToSearchRequest(e){return qr.get().parse(e)}searchRequestToUrl(e){return qr.get().serialize(e)}};window.FluidTopicsUrlService=new ma;var _t=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_t.eventName="change";var ga=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},od=new ga;var Ho=class t extends ze{static build(){return new t(window.history,od,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,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,r=!1){let n=r&&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),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _t(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[p,s,l]),this.setCurrentState(p,!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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(_t.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_t.eventName,e)}currentItem(){return xe(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 xe(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return xe(r.find(n=>e(n)))}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 xe(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 r;let n=(r=this.states[e])===null||r===void 0?void 0:r.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,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let i=r??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=Ho.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var nd=P`
343
- `;function id(t,e){let{authenticationRequired:r,session:n}=N.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var zo=class extends fr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var ya=class t extends Jt{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new De,this.withManualResources=!0,this.userLocaleService=new zo,this.cleanSessionDebouncer=new ae,this.reloadDebouncer=new ae(500),this.apiProvider=r??(()=>Lt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Tt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>id(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Kr(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},ba=ya.build();var Pt=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Zr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:a}of n){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Pt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(r);a===void 0&&i.callbacks.set(r,a=new WeakSet),a.has(n)||(a.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var re=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},j=class extends je{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.authenticationRequired=!1,this.messageContexts=[],this.stateManager=ba,this.contextRoot=new Zr}render(){return H`
343
+ `;function id(t,e){let{authenticationRequired:r,session:n}=N.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var zo=class extends fr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var ya=class t extends Jt{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new De,this.withManualResources=!0,this.userLocaleService=new zo,this.cleanSessionDebouncer=new ae,this.reloadDebouncer=new ae(500),this.apiProvider=r??(()=>Lt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Tt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>id(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Kr(n)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},ba=ya.build();var Pt=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Zr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:a}of n){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Pt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(r);a===void 0&&i.callbacks.set(r,a=new WeakSet),a.has(n)||(a.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var re=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},j=class extends je{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.authenticationRequired=!1,this.messageContexts=[],this.stateManager=ba,this.contextRoot=new Zr}render(){return H`
344
344
  <slot></slot>
345
345
  `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>mr.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};j.elementDefinitions={};j.styles=nd;re([E()],j.prototype,"baseUrl",void 0);re([E()],j.prototype,"tenantId",void 0);re([E()],j.prototype,"apiIntegrationIdentifier",void 0);re([E()],j.prototype,"apiIntegrationAppVersion",void 0);re([E()],j.prototype,"uiLocale",void 0);re([fe(null)],j.prototype,"availableUiLocales",void 0);re([fe(null)],j.prototype,"metadataConfiguration",void 0);re([E({type:Boolean})],j.prototype,"editorMode",void 0);re([E({type:Boolean})],j.prototype,"noCustom",void 0);re([E({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);re([E({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],j.prototype,"noCustomComponent",void 0);re([E({type:Boolean})],j.prototype,"withManualResources",void 0);re([E({type:Boolean})],j.prototype,"navigatorOnline",void 0);re([E({type:Boolean})],j.prototype,"forcedOffline",void 0);re([E({type:Boolean})],j.prototype,"authenticationRequired",void 0);re([fe([])],j.prototype,"messageContexts",void 0);re([fe(void 0)],j.prototype,"session",void 0);var ad={"ft-app-context":j};Q(ad);var xa=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[r,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},gr=new xa;var Lf=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Xr=Symbol("i18nAttributes"),sd=Symbol("i18nListAttributes"),cd=Symbol("i18nProperties"),Wo=Symbol("i18nContexts"),Yr=Symbol("i18nUnsubs"),jo=X(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?$o:mr}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let m=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,l,...m)}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(gr.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 p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[Xr])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[sd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(g=>p(h,f,g))})}updateI18nProperties(a){var s;(s=this[cd])===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[Wo].set(d,{isCustomContext:l}),this[Yr].has(d)||this[Yr].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[Wo].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Wo].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Yr].forEach(a=>a()),this[Yr].clear()}}return e=Wo,r=Yr,Lf([E({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Go=class extends jo(G){},Vo=class extends jo(je){};var va=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?gr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},_f=new va;var ld=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Oe,converter:gr,...e}),r[Xr]=(i=r[Xr])!==null&&i!==void 0?i:new Map,r[Xr].set(n,t??{})};var Ko=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?$o:mr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var dd=P`
346
346
  `;var Qr=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Le=class extends Vo{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:H`
package/build/messages.js CHANGED
@@ -1,2 +1,2 @@
1
- import { I18nMessageContext } from "@fluid-topics/ft-i18n";
1
+ import { I18nMessageContext, } from "@fluid-topics/ft-i18n";
2
2
  export const designedActionBlockAriaLabels = I18nMessageContext.fromGwt("designedActionBlockAriaLabels");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-load-more-button",
3
- "version": "2.1.19",
3
+ "version": "2.1.20",
4
4
  "description": "A button to load more result in a search context",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "2.1.19",
23
- "@fluid-topics/ft-search-context": "2.1.19",
24
- "@fluid-topics/ft-wc-utils": "2.1.19",
25
- "@fluid-topics/public-api": "1.0.133",
22
+ "@fluid-topics/ft-button": "2.1.20",
23
+ "@fluid-topics/ft-search-context": "2.1.20",
24
+ "@fluid-topics/ft-wc-utils": "2.1.20",
25
+ "@fluid-topics/public-api": "1.0.136",
26
26
  "lit": "3.1.0"
27
27
  },
28
- "gitHead": "c2c202986d05fbee1378d8dbb74fa609e89260ec"
28
+ "gitHead": "77e9f03085f977dde887e175b964bf66b862253f"
29
29
  }