@fluid-topics/ft-filter 2.2.26 → 2.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-filter.light.js +51 -42
- package/build/ft-filter.min.js +106 -97
- package/package.json +11 -11
package/build/ft-filter.light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var Wc=Object.create;var ds=Object.defineProperty;var Kc=Object.getOwnPropertyDescriptor;var Gc=Object.getOwnPropertyNames;var qc=Object.getPrototypeOf,Yc=Object.prototype.hasOwnProperty;var Kt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Xc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let
|
|
1
|
+
"use strict";(()=>{var Wc=Object.create;var ds=Object.defineProperty;var Kc=Object.getOwnPropertyDescriptor;var Gc=Object.getOwnPropertyNames;var qc=Object.getPrototypeOf,Yc=Object.prototype.hasOwnProperty;var Kt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Xc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gc(t))!Yc.call(e,n)&&n!==r&&ds(e,n,{get:()=>t[n],enumerable:!(i=Kc(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Wc(qc(e)):{},Xc(t||!e||!e.__esModule?ds(r,"default",{value:e,enumerable:!0}):r,e));var E=Kt((Nd,ps)=>{ps.exports=ftGlobals.wcUtils});var L=Kt((Pd,fs)=>{fs.exports=ftGlobals.lit});var j=Kt((Md,hs)=>{hs.exports=ftGlobals.litDecorators});var Gs=Kt((ip,Ks)=>{Ks.exports=ftGlobals.litRepeat});var Yt=Kt((np,qs)=>{qs.exports=ftGlobals.litClassMap});var Xl=Kt((Og,Yl)=>{Yl.exports=ftGlobals.litUnsafeHTML});var Vc=f(E());var jt=f(L()),$=f(j()),z=f(E());var cn=globalThis,ms=e=>e,Gr=cn.trustedTypes,ys=Gr?Gr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ss="$lit$",it=`lit$${Math.random().toFixed(9).slice(2)}$`,As="?"+it,Jc=`<${As}>`,xt=document,qr=()=>xt.createComment(""),fr=e=>e===null||typeof e!="object"&&typeof e!="function",un=Array.isArray,Zc=e=>un(e)||typeof e?.[Symbol.iterator]=="function",rn=`[
|
|
2
2
|
\f\r]`,pr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gs=/-->/g,vs=/>/g,gt=RegExp(`>|${rn}(?:([^\\s"'>=/]+)(${rn}*=${rn}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),xs=/'/g,bs=/"/g,_s=/^(?:script|style|textarea|title)$/i,dn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Cs=dn(1),ws=dn(2),Os=dn(3),hr=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Es=new WeakMap,vt=xt.createTreeWalker(xt,129);function Ts(e,t){if(!un(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ys!==void 0?ys.createHTML(t):t}var Qc=(e,t)=>{let r=e.length-1,i=[],s,n=t===2?"<svg>":t===3?"<math>":"",o=pr;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===pr?u[1]==="!--"?o=gs:u[1]!==void 0?o=vs:u[2]!==void 0?(_s.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=gt):u[3]!==void 0&&(o=gt):o===gt?u[0]===">"?(o=s??pr,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?gt:u[3]==='"'?bs:xs):o===bs||o===xs?o=gt:o===gs||o===vs?o=pr:(o=gt,s=void 0);let g=o===gt&&e[a+1].startsWith("/>")?" ":"";n+=o===pr?l+Jc:d>=0?(i.push(c),l.slice(0,d)+Ss+l.slice(d)+it+g):l+it+(d===-2?a:g)}return[Ts(e,n+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},mr=class e{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=t.length-1,l=this.parts,[c,u]=Qc(t,r);if(this.el=e.createElement(c,i),vt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=vt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(Ss)){let p=u[o++],g=s.getAttribute(d).split(it),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:x[2],strings:g,ctor:x[1]==="."?sn:x[1]==="?"?on:x[1]==="@"?an:qt}),s.removeAttribute(d)}else d.startsWith(it)&&(l.push({type:6,index:n}),s.removeAttribute(d));if(_s.test(s.tagName)){let d=s.textContent.split(it),p=d.length-1;if(p>0){s.textContent=Gr?Gr.emptyScript:"";for(let g=0;g<p;g++)s.append(d[g],qr()),vt.nextNode(),l.push({type:2,index:++n});s.append(d[p],qr())}}}else if(s.nodeType===8)if(s.data===As)l.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(it,d+1))!==-1;)l.push({type:7,index:n}),d+=it.length-1}n++}}static createElement(t,r){let i=xt.createElement("template");return i.innerHTML=t,i}};function Gt(e,t,r=e,i){if(t===hr)return t;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=fr(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(t=Gt(e,s._$AS(e,t.values),s,i)),t}var nn=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:i}=this._$AD,s=(t?.creationScope??xt).importNode(r,!0);vt.currentNode=s;let n=vt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Yr(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new ln(n,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(n=vt.nextNode(),o++)}return vt.currentNode=xt,s}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Yr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,s){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.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=Gt(this,t,r),fr(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==hr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zc(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!==W&&fr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=mr.createElement(Ts(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new nn(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(t){let r=Es.get(t.strings);return r===void 0&&Es.set(t.strings,r=new mr(t)),r}k(t){un(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of t)s===r.length?r.push(i=new e(this.O(qr()),this.O(qr()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=ms(t).nextSibling;ms(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},qt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,s,n){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(t,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)t=Gt(this,t,r,0),o=!fr(t)||t!==this._$AH&&t!==hr,o&&(this._$AH=t);else{let a=t,l,c;for(t=n[0],l=0;l<n.length-1;l++)c=Gt(this,a[i+l],r,l),c===hr&&(c=this._$AH[l]),o||=!fr(c)||c!==this._$AH[l],c===W?t=W:t!==W&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}o&&!s&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},sn=class extends qt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}},on=class extends qt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},an=class extends qt{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){if((t=Gt(this,t,r,0)??W)===hr)return;let i=this._$AH,s=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==W&&(i===W||s);s&&this.element.removeEventListener(this.name,this,i),n&&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)}},ln=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Gt(this,t)}};var eu=cn.litHtmlPolyfillSupport;eu?.(mr,Yr),(cn.litHtmlVersions??=[]).push("3.3.3");var ks=Symbol.for(""),tu=e=>{if(e?.r===ks)return e?._$litStatic$},pn=e=>({_$litStatic$:e,r:ks});var Rs=new Map,fn=e=>(t,...r)=>{let i=r.length,s,n,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(n=r[c],(s=tu(n))!==void 0);)l+=s+t[++c],u=!0;c!==i&&a.push(n),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=Rs.get(d))===void 0&&(o.raw=o,Rs.set(d,t=o)),r=a}return e(t,...r)},hn=fn(Cs),Ud=fn(ws),Bd=fn(Os);var mn=f(j()),zs=f(E());var ee;(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"})(ee||(ee={}));var Ce=f(L()),h=f(E()),Ls=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Je=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Je,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},bt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ls),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ls),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},Ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},De={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Ds=Ce.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),xs=/'/g,bs=/"/g,_s=/^(?:script|style|textarea|title)$/i,dn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Cs=dn(1),ws=dn(2),Os=dn(3),hr=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Es=new WeakMap,vt=xt.createTreeWalker(xt,129);function Ts(e,t){if(!un(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ys!==void 0?ys.createHTML(t):t}var Qc=(e,t)=>{let r=e.length-1,i=[],n,s=t===2?"<svg>":t===3?"<math>":"",o=pr;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===pr?u[1]==="!--"?o=gs:u[1]!==void 0?o=vs:u[2]!==void 0?(_s.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=gt):u[3]!==void 0&&(o=gt):o===gt?u[0]===">"?(o=n??pr,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?gt:u[3]==='"'?bs:xs):o===bs||o===xs?o=gt:o===gs||o===vs?o=pr:(o=gt,n=void 0);let y=o===gt&&e[a+1].startsWith("/>")?" ":"";s+=o===pr?l+Jc:d>=0?(i.push(c),l.slice(0,d)+Ss+l.slice(d)+it+y):l+it+(d===-2?a:y)}return[Ts(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},mr=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=Qc(t,r);if(this.el=e.createElement(c,i),vt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=vt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Ss)){let p=u[o++],y=n.getAttribute(d).split(it),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:x[2],strings:y,ctor:x[1]==="."?sn:x[1]==="?"?on:x[1]==="@"?an:qt}),n.removeAttribute(d)}else d.startsWith(it)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(_s.test(n.tagName)){let d=n.textContent.split(it),p=d.length-1;if(p>0){n.textContent=Gr?Gr.emptyScript:"";for(let y=0;y<p;y++)n.append(d[y],qr()),vt.nextNode(),l.push({type:2,index:++s});n.append(d[p],qr())}}}else if(n.nodeType===8)if(n.data===As)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(it,d+1))!==-1;)l.push({type:7,index:s}),d+=it.length-1}s++}}static createElement(t,r){let i=xt.createElement("template");return i.innerHTML=t,i}};function Gt(e,t,r=e,i){if(t===hr)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=fr(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=Gt(e,n._$AS(e,t.values),n,i)),t}var nn=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:i}=this._$AD,n=(t?.creationScope??xt).importNode(r,!0);vt.currentNode=n;let s=vt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Yr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new ln(s,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=vt.nextNode(),o++)}return vt.currentNode=xt,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Yr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.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=Gt(this,t,r),fr(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==hr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zc(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!==W&&fr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=mr.createElement(Ts(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new nn(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=Es.get(t.strings);return r===void 0&&Es.set(t.strings,r=new mr(t)),r}k(t){un(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of t)n===r.length?r.push(i=new e(this.O(qr()),this.O(qr()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=ms(t).nextSibling;ms(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},qt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(t,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)t=Gt(this,t,r,0),o=!fr(t)||t!==this._$AH&&t!==hr,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Gt(this,a[i+l],r,l),c===hr&&(c=this._$AH[l]),o||=!fr(c)||c!==this._$AH[l],c===W?t=W:t!==W&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},sn=class extends qt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}},on=class extends qt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},an=class extends qt{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){if((t=Gt(this,t,r,0)??W)===hr)return;let i=this._$AH,n=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==W&&(i===W||n);n&&this.element.removeEventListener(this.name,this,i),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)}},ln=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Gt(this,t)}};var eu=cn.litHtmlPolyfillSupport;eu?.(mr,Yr),(cn.litHtmlVersions??=[]).push("3.3.3");var ks=Symbol.for(""),tu=e=>{if(e?.r===ks)return e?._$litStatic$},pn=e=>({_$litStatic$:e,r:ks});var Rs=new Map,fn=e=>(t,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(s=r[c],(n=tu(s))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=Rs.get(d))===void 0&&(o.raw=o,Rs.set(d,t=o)),r=a}return e(t,...r)},hn=fn(Cs),Ud=fn(ws),Bd=fn(Os);var mn=f(j()),zs=f(E());var te;(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"})(te||(te={}));var Ce=f(L()),h=f(E()),Ls=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Je=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:Je,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},bt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ls),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ls),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},Ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},De={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Ds=Ce.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${bt.fontFamily};
|
|
6
6
|
font-size: ${bt.fontSize};
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`;var Vs=function(e,t,r,i){var
|
|
108
|
+
`;var Vs=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Y=class extends zs.FtLitElement{constructor(){super(...arguments),this.variant=te.body1}render(){return this.element?hn`
|
|
109
109
|
<${pn(this.element)}
|
|
110
110
|
part="text"
|
|
111
111
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
</${pn(this.element)}>
|
|
114
114
|
`:hn`
|
|
115
115
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
116
|
-
`}};Y.styles=[Ds,Ns,Ps,Ms,Is,$s,Xr,Us,Bs,Fs,Hs];Vs([(0,mn.property)()],Y.prototype,"element",void 0);Vs([(0,mn.property)()],Y.prototype,"variant",void 0);var Ws=f(E());var js={"ft-typography":Y};(0,Ws.customElements)(js);var Se=f(L()),J=f(j()),Lc=f(Gs()),ge=f(E());var qe=f(E());var ro=f(L()),
|
|
116
|
+
`}};Y.styles=[Ds,Ns,Ps,Ms,Is,$s,Xr,Us,Bs,Fs,Hs];Vs([(0,mn.property)()],Y.prototype,"element",void 0);Vs([(0,mn.property)()],Y.prototype,"variant",void 0);var Ws=f(E());var js={"ft-typography":Y};(0,Ws.customElements)(js);var Se=f(L()),J=f(j()),Lc=f(Gs()),ge=f(E());var qe=f(E());var ro=f(L()),re=f(j()),io=f(Yt()),yr=f(E());var eo=f(L()),K=f(E()),Ys=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorContent),ae={color:Ys,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ys),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")},Xs=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorPrimary),Js={color:Xs,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Xs)},Zs=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorSecondary),Qs={color:Zs,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Zs)},to=eo.css`
|
|
117
117
|
:host {
|
|
118
118
|
display: contents;
|
|
119
119
|
}
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
opacity: ${ae.opacityContentOnSurfacePressed};
|
|
226
226
|
transform: translate(-50%, -50%) scale(1);
|
|
227
227
|
}
|
|
228
|
-
`;var he=function(e,t,r,i){var
|
|
228
|
+
`;var he=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},N=class extends yr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new yr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new yr.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:s}=this.getCoordinates(t),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ro.html`
|
|
229
229
|
<style>
|
|
230
230
|
.ft-ripple .ft-ripple--effect {
|
|
231
231
|
left: ${this.originX}px;
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
<div class="ft-ripple--background"></div>
|
|
237
237
|
<div class="ft-ripple--effect"></div>
|
|
238
238
|
</div>
|
|
239
|
-
`}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,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}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)},i=r("mouseup","contextmenu"),
|
|
239
|
+
`}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,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}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)},i=r("mouseup","contextmenu"),n=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",i,o),t.addEventListener("touchstart",n,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",i,o),t.removeEventListener("touchstart",n,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,i=t,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,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()}};N.elementDefinitions={};N.styles=to;he([(0,re.property)({type:Boolean})],N.prototype,"primary",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"secondary",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"unbounded",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"activated",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"selected",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"disabled",void 0);he([(0,re.state)()],N.prototype,"hovered",void 0);he([(0,re.state)()],N.prototype,"focused",void 0);he([(0,re.state)()],N.prototype,"pressed",void 0);he([(0,re.state)()],N.prototype,"rippling",void 0);he([(0,re.state)()],N.prototype,"originX",void 0);he([(0,re.state)()],N.prototype,"originY",void 0);he([(0,re.query)(".ft-ripple")],N.prototype,"ripple",void 0);he([(0,re.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var so=f(E());var no={"ft-ripple":N};(0,so.customElements)(no);var jl=f(L()),ke=f(j()),Re=f(E());var oo=f(L()),nt=f(E()),gr={distance:nt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:nt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:nt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:nt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",nt.designSystemVariables.borderRadiusS),maxWidth:nt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ao=oo.css`
|
|
240
240
|
.ft-tooltip--container {
|
|
241
241
|
display: block;
|
|
242
242
|
}
|
|
@@ -267,15 +267,15 @@
|
|
|
267
267
|
position: relative;
|
|
268
268
|
word-break: break-word;
|
|
269
269
|
}
|
|
270
|
-
`;var co=["top","right","bottom","left"],lo=["start","end"],gn=co.reduce((e,t)=>e.concat(t,t+"-"+lo[0],t+"-"+lo[1]),[]),vr=Math.min,st=Math.max,xr=Math.round;var je=e=>({x:e,y:e}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function uo(e,t,r){return st(e,vr(t,r))}function Jr(e,t){return typeof e=="function"?e(t):e}function br(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function vn(e){return e==="x"?"y":"x"}function xn(e){return e==="y"?"height":"width"}function Zr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function bn(e){return vn(Zr(e))}function po(e,t,r){r===void 0&&(r=!1);let i=ot(e),s=bn(e),n=xn(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(o=yn(o)),[o,yn(o)]}function fo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function yn(e){let t=br(e);return ru[t]+e.slice(t.length)}function iu(e){var t,r,i,s;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function ho(e){return typeof e!="number"?iu(e):{top:e,right:e,bottom:e,left:e}}function Tt(e){let{x:t,y:r,width:i,height:s}=e;return{width:i,height:s,top:r,left:t,right:t+i,bottom:r+s,x:t,y:r}}function mo(e,t,r){let{reference:i,floating:s}=e,n=Zr(t),o=bn(t),a=xn(o),l=br(t),c=n==="y",u=i.x+i.width/2-s.width/2,d=i.y+i.height/2-s.height/2,p=i[a]/2-s[a]/2,g;switch(l){case"top":g={x:u,y:i.y-s.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-s.width,y:d};break;default:g={x:i.x,y:i.y}}let x=ot(t);return x&&(g[o]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),g}async function yo(e,t){var r;t===void 0&&(t={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Jr(t,e),x=ho(g),v=a[p?d==="floating"?"reference":"floating":d],C=Tt(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),k=d==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),S=await(n.isElement==null?void 0:n.isElement(b))&&await(n.getScale==null?void 0:n.getScale(b))||{x:1,y:1},D=Tt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:b,strategy:l}):k);return{top:(C.top-D.top+x.top)/S.y,bottom:(D.bottom-C.bottom+x.bottom)/S.y,left:(C.left-D.left+x.left)/S.x,right:(D.right-C.right+x.right)/S.x}}var nu=50,go=async(e,t,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:yo},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=mo(c,i,l),p=i,g=0,x={};for(let A=0;A<n.length;A++){let v=n[A];if(!v)continue;let{name:C,fn:k}=v,{x:b,y:S,data:D,reset:T}=await k({x:u,y:d,initialPlacement:i,placement:p,strategy:s,middlewareData:x,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=S??d,x[C]={...x[C],...D},T&&g<nu&&(g++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):T.rects),{x:u,y:d}=mo(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:s,middlewareData:x}};function su(e,t,r){return(e?[...r.filter(s=>ot(s)===e),...r.filter(s=>ot(s)!==e)]:r.filter(s=>br(s)===s)).filter(s=>e?ot(s)===e||(t?fo(s)!==s:!1):!0)}var vo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=gn,autoAlignment:g=!0,...x}=Jr(e,t),A=d!==void 0||p===gn?su(d||null,g,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,C=A[v];if(C==null)return{};if(a!==C)return{reset:{placement:A[0]}};let k=await l.detectOverflow(t,x),b=po(C,n,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[k[br(C)],k[b[0]],k[b[1]]],D=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:C,overflows:S}],T=A[v+1];if(T)return{data:{index:v+1,overflows:D},reset:{placement:T}};let q=D.map(_e=>{let dr=ot(_e.placement);return[_e.placement,dr&&u?_e.overflows.slice(0,2).reduce((zc,jc)=>zc+jc,0):_e.overflows[0],_e.overflows]}).sort((_e,dr)=>_e[1]-dr[1]),Kr=((s=q.filter(_e=>_e[2].slice(0,ot(_e[0])?2:3).every(dr=>dr<=0))[0])==null?void 0:s[0])||q[0][0];return Kr!==a?{data:{index:v+1,overflows:D},reset:{placement:Kr}}:{}}}};var xo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:s,platform:n}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:k=>{let{x:b,y:S}=k;return{x:b,y:S}}},...c}=Jr(e,t),u={x:r,y:i},d=await n.detectOverflow(t,c),p=Zr(s),g=vn(p),x=u[g],A=u[p],v=(k,b)=>uo(b+d[k==="y"?"top":"left"],b,b-d[k==="y"?"bottom":"right"]);o&&(x=v(g,x)),a&&(A=v(p,A));let C=l.fn({...t,[g]:x,[p]:A});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[g]:o,[p]:a}}}}}};function ei(){return typeof window<"u"}function kt(e){return Eo(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ze(e){var t;return(t=(Eo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Eo(e){return ei()?e instanceof Node||e instanceof me(e).Node:!1}function Ne(e){return ei()?e instanceof Element||e instanceof me(e).Element:!1}function Qe(e){return ei()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function bo(e){return!ei()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function Er(e){let{overflow:t,overflowX:r,overflowY:i,display:s}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&s!=="inline"&&s!=="contents"}function So(e){return/^(table|td|th)$/.test(kt(e))}function Sr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ou=/transform|translate|scale|rotate|perspective|filter/,au=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none",En;function Xt(e){let t=Ne(e)?Pe(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!ti()&&(Rt(t.backdropFilter)||Rt(t.filter))||ou.test(t.willChange||"")||au.test(t.contain||"")}function Ao(e){let t=at(e);for(;Qe(t)&&!Jt(t);){if(Xt(t))return t;if(Sr(t))return null;t=at(t)}return null}function ti(){return En==null&&(En=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),En}function Jt(e){return/^(html|body|#document)$/.test(kt(e))}function Pe(e){return me(e).getComputedStyle(e)}function Ar(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(kt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||bo(e)&&e.host||Ze(e);return bo(t)?t.host:t}function _o(e){let t=at(e);return Jt(t)?(e.ownerDocument||e).body:Qe(t)&&Er(t)?t:_o(t)}function Qr(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let s=_o(e),n=s===((i=e.ownerDocument)==null?void 0:i.body),o=me(s);if(n){let a=ri(o);return t.concat(o,o.visualViewport||[],Er(s)?s:[],a&&r?Qr(a):[])}else return t.concat(s,Qr(s,[],r))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oo(e){let t=Pe(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,s=Qe(e),n=s?e.offsetWidth:r,o=s?e.offsetHeight:i,a=xr(r)!==n||xr(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function To(e){return Ne(e)?e:e.contextElement}function Zt(e){let t=To(e);if(!Qe(t))return je(1);let r=t.getBoundingClientRect(),{width:i,height:s,$:n}=Oo(t),o=(n?xr(r.width):r.width)/i,a=(n?xr(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var lu=je(0);function Ro(e){let t=me(e);return!ti()||!t.visualViewport?lu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===me(e)}function _r(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let s=e.getBoundingClientRect(),n=To(e),o=je(1);t&&(i?Ne(i)&&(o=Zt(i)):o=Zt(e));let a=cu(n,r,i)?Ro(n):je(0),l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(n&&i){let p=me(n),g=Ne(i)?me(i):i,x=p,A=ri(x);for(;A&&g!==x;){let v=Zt(A),C=A.getBoundingClientRect(),k=Pe(A),b=C.left+(A.clientLeft+parseFloat(k.paddingLeft))*v.x,S=C.top+(A.clientTop+parseFloat(k.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=S,x=me(A),A=ri(x)}}return Tt({width:u,height:d,x:l,y:c})}function ii(e,t){let r=Ar(e).scrollLeft;return t?t.left+r:_r(Ze(e)).left+r}function ko(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-ii(e,r),s=r.top+t.scrollTop;return{x:i,y:s}}function uu(e){let{elements:t,rect:r,offsetParent:i,strategy:s}=e,n=s==="fixed",o=Ze(i),a=t?Sr(t.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},c=je(1),u=je(0),d=Qe(i);if((d||!n)&&((kt(i)!=="body"||Er(o))&&(l=Ar(i)),d)){let g=_r(i);c=Zt(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=o&&!d&&!n?ko(o,l):je(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 du(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function pu(e){let t=Ar(e),r=e.ownerDocument.body,i=st(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=st(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),n=-t.scrollLeft+ii(e),o=-t.scrollTop;return Pe(r).direction==="rtl"&&(n+=st(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var fu=25;function hu(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=me(e),n=Ze(e),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){let p=!ti()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(ii(n)<=0){let p=n.ownerDocument,g=p.body,x=getComputedStyle(g),A=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-g.clientWidth-A),C=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;C<=fu&&(a-=C)}return{width:a,height:l,x:c,y:u}}function mu(e,t){let r=_r(e,!0,t==="fixed"),i=r.top+e.clientTop,s=r.left+e.clientLeft,n=Zt(e),o=e.clientWidth*n.x,a=e.clientHeight*n.y,l=s*n.x,c=i*n.y;return{width:o,height:a,x:l,y:c}}function Co(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=hu(e,r,t);else if(t==="document")i=pu(Ze(e));else if(Ne(t))i=mu(t,r);else{let s=Ro(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Tt(i)}function yu(e,t){let r=t.get(e);if(r)return r;let i=Qr(e,[],!1).filter(a=>Ne(a)&&kt(a)!=="body"),s=null,n=Pe(e).position==="fixed",o=n?at(e):e;for(;Ne(o)&&!Jt(o);){let a=Pe(o),l=Xt(o),c=s?s.position:n?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):s=a,o=at(o)}return t.set(e,i),i}function gu(e){let{element:t,boundary:r,rootBoundary:i,strategy:s}=e,o=[...r==="clippingAncestors"?Sr(t)?[]:yu(t,this._c):[].concat(r),i],a=Co(t,o[0],s),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let g=Co(t,o[p],s);l=st(g.top,l),c=vr(g.right,c),u=vr(g.bottom,u),d=st(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function vu(e){let{width:t,height:r}=Oo(e);return{width:t,height:r}}function xu(e,t,r){let i=Qe(t),s=Ze(t),n=r==="fixed",o=_r(e,!0,n,t),a={scrollLeft:0,scrollTop:0},l=je(0);if((i||!n)&&((kt(t)!=="body"||Er(s))&&(a=Ar(t)),i)){let p=_r(t,!0,n,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&s&&(l.x=ii(s));let c=s&&!i&&!n?ko(s,a):je(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 Sn(e){return Pe(e).position==="static"}function wo(e,t){if(!Qe(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ze(e)===r&&(r=r.ownerDocument.body),r}function Lo(e,t){let r=me(e);if(Sr(e))return r;if(!Qe(e)){let s=at(e);for(;s&&!Jt(s);){if(Ne(s)&&!Sn(s))return s;s=at(s)}return r}let i=wo(e,t);for(;i&&So(i)&&Sn(i);)i=wo(i,t);return i&&Jt(i)&&Sn(i)&&!Xt(i)?r:i||Ao(e)||r}var bu=async function(e){let t=this.getOffsetParent||Lo,r=this.getDimensions,i=await r(e.floating);return{reference:xu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Eu(e){return Pe(e).direction==="rtl"}var ni={convertOffsetParentRelativeRectToViewportRelativeRect:uu,getDocumentElement:Ze,getClippingRect:gu,getOffsetParent:Lo,getElementRects:bu,getClientRects:du,getDimensions:vu,getScale:Zt,isElement:Ne,isRTL:Eu};var Do=vo,No=xo;var Po=(e,t,r)=>{let i=new Map,s=r??{},n={...ni,...s.platform,_c:i};return go(e,t,{...s,platform:n})};function Mo(e){return Su(e)}function An(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Su(e){for(let t=e;t;t=An(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=An(e);t;t=An(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Xt(r)||t.tagName==="BODY"))return t}return null}async function Io(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},Po(e,t,{strategy:i.strategy,platform:{...ni,getOffsetParent:s=>ni.getOffsetParent(s,Mo)},middleware:[No({crossAxis:!0}),Do({allowedPlacements:[i.placement]})]})}var ar=f(E());var Wn=f(j());var $o=f(j(),1);var _n=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Au=e=>({fromAttribute:t=>{if(t==null)return Cr(e);try{return JSON.parse(t)}catch{return Cr(e)}},toAttribute:t=>JSON.stringify(t)});function Uo(e,t){return(0,$o.property)({type:Object,converter:Au(e),hasChanged:wr,...t??{}})}function _u(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,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Qt(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Qt(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[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 s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(e);if(r=n.length,r!==s(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!Qt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Qt(e,t){try{return _u(e,t)}catch{return!1}}function wr(e,t){return!Qt(e,t)}function Cr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function si(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let s=t(i);return s[e]=!0,s}}var Bo=f(j(),1);var Cn=e=>{let t=e??{};return(r,i)=>{var s;let n={hasChanged:wr,attribute:!1,...t};(0,Bo.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[i]),store:t.store})}};var oi=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==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 Lt=f(j(),1);var ai=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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ci=f(L(),1);var li=class extends ci.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},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,ci.adoptStyles)(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){_n(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 Fo(e,t,...r){var i;let s=e.querySelector(t);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var tr=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},jo,Ho=Symbol("constructorPrototype"),Vo=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer"),zo=Symbol("dynamicDependenciesLoaded"),er=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};er.eventName="exportparts-updated";var We=class extends li{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[jo]=new ai(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Wo].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Vo]=this.constructor.name,this[Ho]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Vo]&&Object.setPrototypeOf(this,this[Ho])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[zo]||(r[zo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(er.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(er.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 er)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=Fo(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(t){var r,i,s,n,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 g=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],A=[...g,...x].filter(l).map(v=>v.trim());for(let v of A)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};jo=Wo;tr([(0,Lt.property)()],We.prototype,"exportpartsPrefix",void 0);tr([Uo([])],We.prototype,"exportpartsPrefixes",void 0);tr([(0,Lt.property)({reflect:!0})],We.prototype,"exportparts",void 0);tr([(0,Lt.property)()],We.prototype,"customStylesheet",void 0);tr([(0,Lt.property)()],We.prototype,"elementToFocus",void 0);tr([(0,Lt.state)()],We.prototype,"useAdoptedStyleSheets",void 0);function ui(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Or=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores"),Cu=si(Symbol("withRedux"),function(e){var t,r,i;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=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[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Dt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Dt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Dt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Dt].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[lt].has(o.store):this[lt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[lt].set(o,a.subscribe(()=>this.updateFromStores())),this[Or].set(o,[]),ui(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[Or].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[lt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[lt].has(o)&&this[lt].get(o)(),this[lt].delete(o),(a=this[Or].get(o))===null||a===void 0||a.forEach(l=>l()),this[Or].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=lt,r=Dt,i=Or,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Ko=class extends Cu(We){};function re(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 wu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Go=wu,wn=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${wn()}`,REPLACE:`@@redux/REPLACE${wn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wn()}`},di=Ou;function pi(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function On(e,t,r){if(typeof e!="function")throw new Error(re(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(re(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(re(1));return r(On)(e,t)}let i=e,s=t,n=new Map,o=n,a=0,l=!1;function c(){o===n&&(o=new Map,n.forEach((v,C)=>{o.set(C,v)}))}function u(){if(l)throw new Error(re(3));return s}function d(v){if(typeof v!="function")throw new Error(re(4));if(l)throw new Error(re(5));let C=!0;c();let k=a++;return o.set(k,v),function(){if(C){if(l)throw new Error(re(6));C=!1,c(),o.delete(k),n=null}}}function p(v){if(!pi(v))throw new Error(re(7));if(typeof v.type>"u")throw new Error(re(8));if(typeof v.type!="string")throw new Error(re(17));if(l)throw new Error(re(9));try{l=!0,s=i(s,v)}finally{l=!1}return(n=o).forEach(k=>{k()}),v}function g(v){if(typeof v!="function")throw new Error(re(10));i=v,p({type:di.REPLACE})}function x(){let v=d;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(re(11));function k(){let S=C;S.next&&S.next(u())}return k(),{unsubscribe:v(k)}},[Go](){return this}}}return p({type:di.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[Go]:x}}function Tu(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:di.INIT})>"u")throw new Error(re(12));if(typeof r(void 0,{type:di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(re(13))})}function Tn(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let i=Object.keys(r),s,n;try{Tu(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],x=a[p],A=g(x,l);if(typeof A>"u"){let v=l&&l.type;throw new Error(re(14))}u[p]=A,c=c||A!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Tr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function qo(...e){return t=>(r,i)=>{let s=t(r,i),n=()=>{throw new Error(re(15))},o={getState:s.getState,dispatch:(l,...c)=>n(l,...c)},a=e.map(l=>l(o));return n=Tr(...a)(s.dispatch),{...s,dispatch:n}}}function Yo(e){return pi(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Xo=Symbol.for("immer-draftable"),le=Symbol.for("immer-state");function Me(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ve=Object,ir=ve.getPrototypeOf,yi="constructor",Si="prototype",Dn="configurable",gi="enumerable",hi="writable",Rr="value",Ke=e=>!!e&&!!e[le];function xe(e){return e?sa(e)||_i(e)||!!e[Xo]||!!e[yi]?.[Xo]||Ci(e)||wi(e):!1}var Ru=ve[Si][yi].toString(),Jo=new WeakMap;function sa(e){if(!e||!Fn(e))return!1;let t=ir(e);if(t===null||t===ve[Si])return!0;let r=ve.hasOwnProperty.call(t,yi)&&t[yi];if(r===Object)return!0;if(!rr(r))return!1;let i=Jo.get(r);return i===void 0&&(i=Function.toString.call(r),Jo.set(r,i)),i===Ru}function Ai(e,t,r=!0){Dr(e)===0?(r?Reflect.ownKeys(e):ve.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((i,s)=>t(s,i,e))}function Dr(e){let t=e[le];return t?t.type_:_i(e)?1:Ci(e)?2:wi(e)?3:0}var Rn=(e,t,r=Dr(e))=>r===2?e.has(t):ve[Si].hasOwnProperty.call(e,t),Nn=(e,t,r=Dr(e))=>r===2?e.get(t):e[t],vi=(e,t,r,i=Dr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function ku(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _i=Array.isArray,Ci=e=>e instanceof Map,wi=e=>e instanceof Set,Fn=e=>typeof e=="object",rr=e=>typeof e=="function",kn=e=>typeof e=="boolean";function Lu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var et=e=>e.copy_||e.base_;var Hn=e=>e.modified_?e.copy_:e.base_;function Pn(e,t){if(Ci(e))return new Map(e);if(wi(e))return new Set(e);if(_i(e))return Array[Si].slice.call(e);let r=sa(e);if(t===!0||t==="class_only"&&!r){let i=ve.getOwnPropertyDescriptors(e);delete i[le];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[hi]===!1&&(a[hi]=!0,a[Dn]=!0),(a.get||a.set)&&(i[o]={[Dn]:!0,[hi]:!0,[gi]:a[gi],[Rr]:e[o]})}return ve.create(ir(e),i)}else{let i=ir(e);if(i!==null&&r)return{...e};let s=ve.create(i);return ve.assign(s,e)}}function Oi(e,t=!1){return Ti(e)||Ke(e)||!xe(e)||(Dr(e)>1&&ve.defineProperties(e,{set:fi,add:fi,clear:fi,delete:fi}),ve.freeze(e),t&&Ai(e,(r,i)=>{Oi(i,!0)},!1)),e}function Du(){Me(2)}var fi={[Rr]:Du};function Ti(e){return e===null||!Fn(e)?!0:ve.isFrozen(e)}var xi="MapSet",Mn="Patches",Zo="ArrayMethods",oa={};function Nt(e){let t=oa[e];return t||Me(0,e),t}var Qo=e=>!!oa[e];var kr,aa=()=>kr,Nu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Qo(xi)?Nt(xi):void 0,arrayMethodsPlugin_:Qo(Zo)?Nt(Zo):void 0});function ea(e,t){t&&(e.patchPlugin_=Nt(Mn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function In(e){$n(e),e.drafts_.forEach(Pu),e.drafts_=null}function $n(e){e===kr&&(kr=e.parent_)}var ta=e=>kr=Nu(kr,e);function Pu(e){let t=e[le];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[le].modified_&&(In(t),Me(4)),xe(e)&&(e=ia(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[le].base_,e,t)}else e=ia(t,r);return Mu(t,e,!0),In(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ia(e,t){if(Ti(t))return t;let r=t[le];if(!r)return bi(t,e.handledSet_,e);if(!Ri(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(e);ua(r,e)}return r.copy_}function Mu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Oi(t,r)}function la(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ri=(e,t)=>e.scope_===t,Iu=[];function ca(e,t,r,i){let s=et(e),n=e.type_;if(i!==void 0&&Nn(s,i,n)===t){vi(s,i,r,n);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Ai(s,(l,c)=>{if(Ke(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Iu;for(let a of o)vi(s,a,r,n)}function $u(e,t,r){e.callbacks_.push(function(s){let n=t;if(!n||!Ri(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=Hn(n);ca(e,n.draft_??n,o,r),ua(n,s)})}function ua(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let s=i.getPath(e);s&&i.generatePatches_(e,s,t)}la(e)}}function Uu(e,t,r){let{scope_:i}=e;if(Ke(r)){let s=r[le];Ri(s,i)&&s.callbacks_.push(function(){mi(e);let o=Hn(s);ca(e,r,o,t)})}else xe(r)&&e.callbacks_.push(function(){let n=et(e);e.type_===3?n.has(r)&&bi(r,i.handledSet_,i):Nn(n,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bi(Nn(e.copy_,t,e.type_),i.handledSet_,i)})}function bi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ke(e)||t.has(e)||!xe(e)||Ti(e)||(t.add(e),Ai(e,(i,s)=>{if(Ke(s)){let n=s[le];if(Ri(n,r)){let o=Hn(n);vi(e,i,o,e.type_),la(n)}}else xe(s)&&bi(s,t,r)})),e}function Bu(e,t){let r=_i(e),i={type_:r?1:0,scope_:t?t.scope_:aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Ei;r&&(s=[i],n=Lr);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Ei={get(e,t){if(t===le)return e;let r=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof t=="string";if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=et(e);if(!Rn(s,t,e.type_))return Hu(e,s,t);let n=s[t];if(e.finalized_||!xe(n)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Lu(t))return n;if(n===Ln(e.base_,t)||Fu(e,t,n)){mi(e);let o=e.type_===1?+t:t,a=Bn(e.scope_,n,e,o);return e.copy_[o]=a}return n},has(e,t){return t in et(e)},ownKeys(e){return Reflect.ownKeys(et(e))},set(e,t,r){let i=da(et(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let s=Ln(et(e),t),n=s?.[le];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(ku(r,s)&&(r!==void 0||Rn(e.base_,t,e.type_)))return!0;mi(e),Un(e)}return e.copy_[t]===r&&(r!==void 0||Rn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Uu(e,t,r)),!0},deleteProperty(e,t){return mi(e),Ln(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Un(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=et(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[hi]:!0,[Dn]:e.type_!==1||t!=="length",[gi]:i[gi],[Rr]:r[t]}},defineProperty(){Me(11)},getPrototypeOf(e){return ir(e.base_)},setPrototypeOf(){Me(12)}},Lr={};for(let e in Ei){let t=Ei[e];Lr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Lr.deleteProperty=function(e,t){return Lr.set.call(this,e,t,void 0)};Lr.set=function(e,t,r){return Ei.set.call(this,e[0],t,r,e[0])};function Ln(e,t){let r=e[le];return(r?et(r):e)[t]}function Fu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!xe(r)||r[le]?!1:e.baseRefs_.has(r)}function Hu(e,t,r){let i=da(t,r);return i?Rr in i?i[Rr]:i.get?.call(e.draft_):void 0}function da(e,t){if(!(t in e))return;let r=ir(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=ir(r)}}function Un(e){e.modified_||(e.modified_=!0,e.parent_&&Un(e.parent_))}function mi(e){e.copy_||(e.assigned_=new Map,e.copy_=Pn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(rr(t)&&!rr(r)){let n=r;r=t;let o=this;return function(l=n,...c){return o.produce(l,u=>r.call(this,u,...c))}}rr(r)||Me(6),i!==void 0&&!rr(i)&&Me(7);let s;if(xe(t)){let n=ta(this),o=Bn(n,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?In(n):$n(n)}return ea(n,i),ra(s,n)}else if(!t||!Fn(t)){if(s=r(t),s===void 0&&(s=t),s===na&&(s=void 0),this.autoFreeze_&&Oi(s,!0),i){let n=[],o=[];Nt(Mn).generateReplacementPatches_(t,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else Me(1,t)},this.produceWithPatches=(t,r)=>{if(rr(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,s;return[this.produce(t,r,(o,a)=>{i=o,s=a}),i,s]},kn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),kn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),kn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xe(e)||Me(8),Ke(e)&&(e=pa(e));let t=ta(this),r=Bn(t,e,void 0);return r[le].isManual_=!0,$n(t),r}finishDraft(e,t){let r=e&&e[le];(!r||!r.isManual_)&&Me(9);let{scope_:i}=r;return ea(i,t),ra(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let i=Nt(Mn).applyPatches_;return Ke(e)?i(e,t):this.produce(e,s=>i(s,t))}};function Bn(e,t,r,i){let[s,n]=Ci(t)?Nt(xi).proxyMap_(t,r):wi(t)?Nt(xi).proxySet_(t,r):Bu(t,r);return(r?.scope_??aa()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?$u(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:c}=l;n.modified_&&c&&c.generatePatches_(n,[],l)}),s}function pa(e){return Ke(e)||Me(10,e),fa(e)}function fa(e){if(!xe(e)||Ti(e))return e;let t=e[le],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Pn(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=Pn(e,!0);return Ai(r,(s,n)=>{vi(r,s,fa(n))},i),t&&(t.finalized_=!1),r}var zu=globalThis.Iterator,ff=typeof zu?.from=="function";var ju=new Vu,Vn=ju.produce;function ha(e){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,e):s(n)}var ma=ha(),ya=ha;var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tr:Tr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Ku=e=>e&&typeof e.match=="function";function ct(e,t){function r(...i){if(t){let s=t(...i);if(!s)throw new Error(Ge(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Yo(i)&&i.type===e,r}var Ea=class Nr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Nr.prototype)}static get[Symbol.species](){return Nr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Nr(...t[0].concat(this)):new Nr(...t.concat(this))}};function ga(e){return xe(e)?Vn(e,()=>{}):e}function ki(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Gu(e){return typeof e=="boolean"}var qu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=t??{},o=new Ea;return r&&(Gu(r)?o.push(ma):o.push(ya(r.extraArgument))),o},Yu="RTK_autoBatch";var va=e=>t=>{setTimeout(t,e)},Xu=(e,t)=>r=>{let i=!1,s,n,o=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(n),r())};s=e(o),n=setTimeout(o,t)},Ju=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),s=!0,n=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Xu(window.requestAnimationFrame,100):va(10):e.type==="callback"?e.queueNotification:va(e.timeout),c=()=>{o=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>s&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Yu],n=!s,n&&(o||(o=!0,l(c))),i.dispatch(u)}finally{s=!0}}})},Zu=e=>function(r){let{autoBatch:i=!0}=r??{},s=new Ea(e);return i&&s.push(Ju(typeof i=="object"?i:void 0)),s};function Sa(e){let t=qu(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(pi(r))l=Tn(r);else throw new Error(Ge(1));let c;typeof i=="function"?c=i(t):c=t();let u=Tr;s&&(u=Wu({trace:!1,...typeof s=="object"&&s}));let d=qo(...c),p=Zu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return On(l,o,x)}function Aa(e){let t={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Ge(28));if(a in t)throw new Error(Ge(29));return t[a]=o,s},addAsyncThunk(n,o){return o.pending&&(t[n.pending.type]=o.pending),o.rejected&&(t[n.rejected.type]=o.rejected),o.fulfilled&&(t[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return e(s),[t,r,i]}function Qu(e){return typeof e=="function"}function ed(e,t){let[r,i,s]=Aa(t),n;if(Qu(e))n=()=>ga(e());else{let a=ga(e);n=()=>a}function o(a=n(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[s]),c.reduce((u,d)=>{if(d)if(Ke(u)){let p=d(u,l);return p===void 0?u:p}else{if(xe(u))return Vn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Ge(9))}return p}}return u},a)}return o.getInitialState=n,o}var td=(e,t)=>Ku(e)?e.match(t):e(t);function rd(...e){return t=>e.some(r=>td(r,t))}var id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nd=(e=21)=>{let t="",r=e;for(;r--;)t+=id[Math.random()*64|0];return t},sd=["name","message","stack","code"],zn=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},xa=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},od=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of sd)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",ad=(()=>{function e(t,r,i){let s=ct(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),n=ct(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ct(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||od)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=i?.idGenerator?i.idGenerator(l):nd(),x=new AbortController,A,v;function C(b){v=b,x.abort()}c&&(c.aborted?C(ba):c.addEventListener("abort",()=>C(ba),{once:!0}));let k=(async function(){let b;try{let S=i?.condition?.(l,{getState:d,extra:p});if(cd(S)&&(S=await S),S===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let D=new Promise((T,q)=>{A=()=>{q({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(n(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),b=await Promise.race([D,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:C,rejectWithValue:((T,q)=>new zn(T,q)),fulfillWithValue:((T,q)=>new xa(T,q))})).then(T=>{if(T instanceof zn)throw T;return T instanceof xa?s(T.payload,g,l,T.meta):s(T,g,l)})])}catch(S){b=S instanceof zn?o(null,g,l,S.payload,S.meta):o(S,g,l)}finally{A&&x.signal.removeEventListener("abort",A)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(k,{abort:C,requestId:g,arg:l,unwrap(){return k.then(ld)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:rd(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function ld(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function cd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _a=Symbol.for("rtk-slice-createasyncthunk"),Ef={[_a]:ad};function ud(e,t){return`${e}/${t}`}function dd({creators:e}={}){let t=e?.asyncThunk?.[_a];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(Ge(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(fd()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,S){let D=typeof b=="string"?b:b.type;if(!D)throw new Error(Ge(12));if(D in l.sliceCaseReducersByType)throw new Error(Ge(13));return l.sliceCaseReducersByType[D]=S,c},addMatcher(b,S){return l.sliceMatchers.push({matcher:b,reducer:S}),c},exposeAction(b,S){return l.actionCreators[b]=S,c},exposeCaseReducer(b,S){return l.sliceCaseReducersByName[b]=S,c}};a.forEach(b=>{let S=o[b],D={reducerName:b,type:ud(s,b),createNotation:typeof i.reducers=="function"};md(S)?gd(D,S,c,t):hd(D,S,c)});function u(){let[b={},S=[],D=void 0]=typeof i.extraReducers=="function"?Aa(i.extraReducers):[i.extraReducers],T={...b,...l.sliceCaseReducersByType};return ed(i.initialState,q=>{for(let oe in T)q.addCase(oe,T[oe]);for(let oe of l.sliceMatchers)q.addMatcher(oe.matcher,oe.reducer);for(let oe of S)q.addMatcher(oe.matcher,oe.reducer);D&&q.addDefaultCase(D)})}let d=b=>b,p=new Map,g=new WeakMap,x;function A(b,S){return x||(x=u()),x(b,S)}function v(){return x||(x=u()),x.getInitialState()}function C(b,S=!1){function D(q){let oe=q[b];return typeof oe>"u"&&S&&(oe=ki(g,D,v)),oe}function T(q=d){return ki(ki(p,S,()=>new WeakMap),q,()=>{let oe={};for(let[Kr,_e]of Object.entries(i.selectors??{}))oe[Kr]=pd(_e,q,()=>ki(g,q,v),S);return oe})}return{reducerPath:b,getSelectors:T,get selectors(){return T(D)},selectSlice:D}}let k={name:s,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...C(n),injectInto(b,{reducerPath:S,...D}={}){let T=S??n;return b.inject({reducerPath:T,reducer:A},D),{...k,...C(T,!0)}}};return k}}function pd(e,t,r,i){function s(n,...o){let a=t(n);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var Ca=dd();function fd(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function hd({type:e,reducerName:t,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!yd(i))throw new Error(Ge(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,o?ct(e,o):ct(e))}function md(e){return e._reducerDefinitionType==="asyncThunk"}function yd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gd({type:e,reducerName:t},r,i,s){if(!s)throw new Error(Ge(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=s(e,n,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||Li,pending:a||Li,rejected:l||Li,settled:c||Li})}function Li(){}var wa="listener",Oa="completed",Ta="cancelled",Sf=`task-${Ta}`,Af=`task-${Oa}`,_f=`${wa}-${Ta}`,Cf=`${wa}-${Oa}`;var{assign:Ra}=Object;var jn="listenerMiddleware";var vd=Ra(ct(`${jn}/add`),{withTypes:()=>vd}),wf=ct(`${jn}/removeAll`),xd=Ra(ct(`${jn}/remove`),{withTypes:()=>xd});function Ge(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bd=si(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),Di=class extends bd(Object){};window.ftReduxStores||(window.ftReduxStores={});var ka=class e extends Di{static get(t){var r;let i=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,n=window.ftReduxStores[i];if(ui(n))return n;if(s==null)return;let o=Ca({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Sa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Cr(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[s.name]=new e(o,a,s.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new oi,this.injectInto=(n,o)=>this.reduxSlice.injectInto(n,o),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,a)=>{let l=o,c=n[l];return c?(...u)=>{let d=c(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Qt(p,u)||this.setState({[d]:s(u)})}}}),this.eventBus=i??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Ni=class{static format(t,r,i,s,n){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(t,r,i,s,!!n)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,s,n){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return n?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Pi=f(E()),Ed="ft-app-info",Pt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Pt.eventName="authentication-change";var Pr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Pr.eventName="ui-locale-changed";var Sd={session:(e,t)=>{(0,Pi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Pt(t.payload)),0))}},w=Pi.FtReduxStore.get({name:Ed,reducers:Sd,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,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var La=f(E()),Mi=function(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n},rh=(0,La.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Ni.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mi([(0,Wn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Mi([(0,Wn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Mi([Cn({store:w.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Mi([Cn({store:w.name})],t.prototype,"uiLocale",void 0),t});var Da;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Da||(Da={}));var Na;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Na||(Na={}));var Pa;(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"})(Pa||(Pa={}));var Ma;(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"})(Ma||(Ma={}));var Ia;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ia||(Ia={}));var $a;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})($a||($a={}));var Ua;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ua||(Ua={}));var Ba;(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"})(Ba||(Ba={}));var Fa;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Fa||(Fa={}));var Ha;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ha||(Ha={}));var Va;(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"})(Va||(Va={}));var za;(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"})(za||(za={}));var ja;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ja||(ja={}));var Wa;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Wa||(Wa={}));var Ka;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ka||(Ka={}));var Ga;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ga||(Ga={}));var qa;(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"})(qa||(qa={}));var Ya;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ya||(Ya={}));var Xa;(function(e){e.ASC="ASC",e.DESC="DESC"})(Xa||(Xa={}));var Ja;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ja||(Ja={}));var Za;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Za||(Za={}));var Qa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Qa||(Qa={}));var el;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(el||(el={}));var tl;(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"})(tl||(tl={}));var rl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(rl||(rl={}));var il;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(il||(il={}));var nl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(nl||(nl={}));var sl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(sl||(sl={}));var G;(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"})(G||(G={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var ol;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(ol||(ol={}));var al;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(al||(al={}));var ll;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ll||(ll={}));var cl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(cl||(cl={}));var ul;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(ul||(ul={}));var dl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(dl||(dl={}));var pl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(pl||(pl={}));var fl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(fl||(fl={}));var hl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(hl||(hl={}));var ml;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(ml||(ml={}));var yl;(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"})(yl||(yl={}));var gl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(gl||(gl={}));var Ad={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function vl(e,t){return e===t||(Ad[e]??[]).some(r=>vl(r,t))}function Kn(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(i=>vl(i,t))}function xl(e,...t){return e==null?!1:t.some(r=>Kn(e,r))}var Fi=f(E());var Gn=f(E());var Mt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),s=t??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let s=w.subscribe(()=>{i=e.get(t),i&&(s(),r(i))})}})}};var nr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Mt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Mt.await()}};var be=class extends nr{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Gn.CacheRegistry,this.cache=t?s.commonCache:new Gn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Ii=class extends be{async listMySearches(){let{session:t}=w.getState();return Kn(t,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var $i=class extends be{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 Ui=class extends be{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 Bi=class extends be{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 _d="ft-user-assets",Cd={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(we).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:i,asset:s}=t.payload;Yn(e,r,[...qn(e,r),s]),bl(e,r,1,i),El(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Yn(e,r,qn(e,r).map(s=>s.id===i.id?i:s)),El(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:s}=t.payload;Yn(e,r,qn(e,r).filter(n=>n.id!==s)),bl(e,r,-1,i)}},Sl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},qn=(e,t)=>{var r;let i=Sl[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Yn=(e,t,r)=>{let i=Sl[t];i&&(e[i]=r)},bl=(e,t,r,i)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===we.BOOKMARKS&&i)){let n=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},El=(e,t)=>{let r=e.assetLabels.map(s=>s.title),i=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...i)},ue=Fi.FtReduxStore.get({name:_d,reducers:Cd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Xn=class{constructor(t=new Ui,r=new Bi){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $i,this.savedSearchesService=new Ii,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Fi.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(),ue.actions.clearAssetCount(),ue.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ue.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ue.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ue.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ue.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ue.getState().assetCounts.allAsset[t]!==r.count&&ue.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ue.getState().assetCounts.bookmarkByMap[t]!==r.count&&ue.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ue.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ue.actions.clearBookmarkCountByMap(),ue.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;ue.actions.bookmarks(r)}}},wd=new Xn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wd);var Jn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Jn;var Oe=f(E());var Al,sr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Od=Symbol("clearAfterUnitTest"),Hi=class extends(0,Oe.withEventBus)(be){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Al]=()=>{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 i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var s;let n=t.toLowerCase(),o=this.resolveContext(n);return new Oe.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},o).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof Oe.CanceledPromiseError)&&r&&console.error(s)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new sr({loadedContexts:t})),this.dispatchEvent(new sr({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new sr({loadedContexts:[t]})),this.dispatchEvent(new sr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,Oe.delay)(0).then(()=>i()).catch(()=>null)))}};Al=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Hi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Hi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Mr=window.FluidTopicsI18nService,Zn=window.FluidTopicsCustomI18nService;var _l=f(E()),Qn=class{highlightHtml(t,r,i){(0,_l.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Qn;var Cl=f(E());var es=class{isDate(t){var r,i,s,n;return(n=(i=((s=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(t,r){var i,s,n,o;if(t==null)return"";try{return Cl.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!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 es;var wl=f(E());var Ir=class{static get(t,r){var i,s,n,o;let a=w.getState(),{lang:l,region:c}=(o=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new wl.SearchPlaceConverter(a.baseUrl,t??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${l}-${c}`)}};var ts=class{urlToSearchRequest(t){return Ir.get().parse(t)}searchRequestToUrl(t){return Ir.get().serialize(t)}};window.FluidTopicsUrlService=new ts;var tt=f(E());var It=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};It.eventName="before-location-change";var $t=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};$t.eventName="change";var rs=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))}},Ol=new rs;var Vi=class e extends tt.WithEventBus{static build(){return new e(window.history,Ol,()=>window.location,!1)}constructor(t,r,i,s){var n,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(n=t.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new $t(this.currentItem())),0)}installProxies(){let t=r=>(i,s,[n,o,a])=>{let l=new It(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...n,index:c,href:l.detail.nextLocation.href};i.apply(s,[u,o,u.href]),this.setCurrentState(u,!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 i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(t){this.addEventListener(It.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(It.eventName,t)}addHistoryChangeListener(t){this.addEventListener($t.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener($t.eventName,t)}currentItem(){return(0,tt.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,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,tt.deepCopy)(r.find(i=>t(i)))}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,tt.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 i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let s=t,n=t+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}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 i;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,n=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Vi.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),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Tl=f(L());var Rl=Tl.css`
|
|
271
|
-
`;var Dl=f(L()),de=f(j()),Ft=f(E());var Ut=f(E());function kl(e,t){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var zi=class extends nr{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var is=class e extends Ut.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Ut.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new zi,this.cleanSessionDebouncer=new Ut.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ut.Debouncer(500),this.apiProvider=r??(()=>Mt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Pt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Pt.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",()=>kl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}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(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Pr(i)))}).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)}setNoCustomCode(t){this.store.actions.noCustomCode(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)}userHasAnyRole(...t){return xl(w.getState().session,...t)}},Ll=is.build();var Bt=class extends Event{constructor(t,r,i,
|
|
270
|
+
`;var co=["top","right","bottom","left"],lo=["start","end"],gn=co.reduce((e,t)=>e.concat(t,t+"-"+lo[0],t+"-"+lo[1]),[]),vr=Math.min,st=Math.max,xr=Math.round;var je=e=>({x:e,y:e}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function uo(e,t,r){return st(e,vr(t,r))}function Jr(e,t){return typeof e=="function"?e(t):e}function br(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function vn(e){return e==="x"?"y":"x"}function xn(e){return e==="y"?"height":"width"}function Zr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function bn(e){return vn(Zr(e))}function po(e,t,r){r===void 0&&(r=!1);let i=ot(e),n=bn(e),s=xn(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=yn(o)),[o,yn(o)]}function fo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function yn(e){let t=br(e);return ru[t]+e.slice(t.length)}function iu(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function ho(e){return typeof e!="number"?iu(e):{top:e,right:e,bottom:e,left:e}}function Tt(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function mo(e,t,r){let{reference:i,floating:n}=e,s=Zr(t),o=bn(t),a=xn(o),l=br(t),c=s==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:i.y-n.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:d};break;case"left":y={x:i.x-n.width,y:d};break;default:y={x:i.x,y:i.y}}let x=ot(t);return x&&(y[o]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function yo(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Jr(t,e),x=ho(y),v=a[p?d==="floating"?"reference":"floating":d],C=Tt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),k=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},D=Tt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:b,strategy:l}):k);return{top:(C.top-D.top+x.top)/S.y,bottom:(D.bottom-C.bottom+x.bottom)/S.y,left:(C.left-D.left+x.left)/S.x,right:(D.right-C.right+x.right)/S.x}}var nu=50,go=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:yo},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=mo(c,i,l),p=i,y=0,x={};for(let A=0;A<s.length;A++){let v=s[A];if(!v)continue;let{name:C,fn:k}=v,{x:b,y:S,data:D,reset:T}=await k({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=S??d,x[C]={...x[C],...D},T&&y<nu&&(y++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):T.rects),{x:u,y:d}=mo(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function su(e,t,r){return(e?[...r.filter(n=>ot(n)===e),...r.filter(n=>ot(n)!==e)]:r.filter(n=>br(n)===n)).filter(n=>e?ot(n)===e||(t?fo(n)!==n:!1):!0)}var vo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=gn,autoAlignment:y=!0,...x}=Jr(e,t),A=d!==void 0||p===gn?su(d||null,y,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,C=A[v];if(C==null)return{};if(a!==C)return{reset:{placement:A[0]}};let k=await l.detectOverflow(t,x),b=po(C,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[k[br(C)],k[b[0]],k[b[1]]],D=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:C,overflows:S}],T=A[v+1];if(T)return{data:{index:v+1,overflows:D},reset:{placement:T}};let q=D.map(_e=>{let dr=ot(_e.placement);return[_e.placement,dr&&u?_e.overflows.slice(0,2).reduce((zc,jc)=>zc+jc,0):_e.overflows[0],_e.overflows]}).sort((_e,dr)=>_e[1]-dr[1]),Kr=((n=q.filter(_e=>_e[2].slice(0,ot(_e[0])?2:3).every(dr=>dr<=0))[0])==null?void 0:n[0])||q[0][0];return Kr!==a?{data:{index:v+1,overflows:D},reset:{placement:Kr}}:{}}}};var xo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:k=>{let{x:b,y:S}=k;return{x:b,y:S}}},...c}=Jr(e,t),u={x:r,y:i},d=await s.detectOverflow(t,c),p=Zr(n),y=vn(p),x=u[y],A=u[p],v=(k,b)=>uo(b+d[k==="y"?"top":"left"],b,b-d[k==="y"?"bottom":"right"]);o&&(x=v(y,x)),a&&(A=v(p,A));let C=l.fn({...t,[y]:x,[p]:A});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[y]:o,[p]:a}}}}}};function ei(){return typeof window<"u"}function kt(e){return Eo(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ze(e){var t;return(t=(Eo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Eo(e){return ei()?e instanceof Node||e instanceof me(e).Node:!1}function Ne(e){return ei()?e instanceof Element||e instanceof me(e).Element:!1}function Qe(e){return ei()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function bo(e){return!ei()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function Er(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function So(e){return/^(table|td|th)$/.test(kt(e))}function Sr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ou=/transform|translate|scale|rotate|perspective|filter/,au=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none",En;function Xt(e){let t=Ne(e)?Pe(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!ti()&&(Rt(t.backdropFilter)||Rt(t.filter))||ou.test(t.willChange||"")||au.test(t.contain||"")}function Ao(e){let t=at(e);for(;Qe(t)&&!Jt(t);){if(Xt(t))return t;if(Sr(t))return null;t=at(t)}return null}function ti(){return En==null&&(En=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),En}function Jt(e){return/^(html|body|#document)$/.test(kt(e))}function Pe(e){return me(e).getComputedStyle(e)}function Ar(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(kt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||bo(e)&&e.host||Ze(e);return bo(t)?t.host:t}function _o(e){let t=at(e);return Jt(t)?(e.ownerDocument||e).body:Qe(t)&&Er(t)?t:_o(t)}function Qr(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=_o(e),s=n===((i=e.ownerDocument)==null?void 0:i.body),o=me(n);if(s){let a=ri(o);return t.concat(o,o.visualViewport||[],Er(n)?n:[],a&&r?Qr(a):[])}else return t.concat(n,Qr(n,[],r))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oo(e){let t=Pe(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Qe(e),s=n?e.offsetWidth:r,o=n?e.offsetHeight:i,a=xr(r)!==s||xr(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function To(e){return Ne(e)?e:e.contextElement}function Zt(e){let t=To(e);if(!Qe(t))return je(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:s}=Oo(t),o=(s?xr(r.width):r.width)/i,a=(s?xr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var lu=je(0);function Ro(e){let t=me(e);return!ti()||!t.visualViewport?lu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===me(e)}function _r(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=To(e),o=je(1);t&&(i?Ne(i)&&(o=Zt(i)):o=Zt(e));let a=cu(s,r,i)?Ro(s):je(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(s&&i){let p=me(s),y=Ne(i)?me(i):i,x=p,A=ri(x);for(;A&&y!==x;){let v=Zt(A),C=A.getBoundingClientRect(),k=Pe(A),b=C.left+(A.clientLeft+parseFloat(k.paddingLeft))*v.x,S=C.top+(A.clientTop+parseFloat(k.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=S,x=me(A),A=ri(x)}}return Tt({width:u,height:d,x:l,y:c})}function ii(e,t){let r=Ar(e).scrollLeft;return t?t.left+r:_r(Ze(e)).left+r}function ko(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-ii(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function uu(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,s=n==="fixed",o=Ze(i),a=t?Sr(t.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=je(1),u=je(0),d=Qe(i);if((d||!s)&&((kt(i)!=="body"||Er(o))&&(l=Ar(i)),d)){let y=_r(i);c=Zt(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let p=o&&!d&&!s?ko(o,l):je(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 du(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function pu(e){let t=Ar(e),r=e.ownerDocument.body,i=st(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=st(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+ii(e),o=-t.scrollTop;return Pe(r).direction==="rtl"&&(s+=st(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var fu=25;function hu(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=me(e),s=Ze(e),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!ti()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(ii(s)<=0){let p=s.ownerDocument,y=p.body,x=getComputedStyle(y),A=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(s.clientWidth-y.clientWidth-A),C=getComputedStyle(s).scrollbarGutter==="stable both-edges"?v/2:v;C<=fu&&(a-=C)}return{width:a,height:l,x:c,y:u}}function mu(e,t){let r=_r(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,s=Zt(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Co(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=hu(e,r,t);else if(t==="document")i=pu(Ze(e));else if(Ne(t))i=mu(t,r);else{let n=Ro(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Tt(i)}function yu(e,t){let r=t.get(e);if(r)return r;let i=Qr(e,[],!1).filter(a=>Ne(a)&&kt(a)!=="body"),n=null,s=Pe(e).position==="fixed",o=s?at(e):e;for(;Ne(o)&&!Jt(o);){let a=Pe(o),l=Xt(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=at(o)}return t.set(e,i),i}function gu(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,o=[...r==="clippingAncestors"?Sr(t)?[]:yu(t,this._c):[].concat(r),i],a=Co(t,o[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=Co(t,o[p],n);l=st(y.top,l),c=vr(y.right,c),u=vr(y.bottom,u),d=st(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function vu(e){let{width:t,height:r}=Oo(e);return{width:t,height:r}}function xu(e,t,r){let i=Qe(t),n=Ze(t),s=r==="fixed",o=_r(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=je(0);if((i||!s)&&((kt(t)!=="body"||Er(n))&&(a=Ar(t)),i)){let p=_r(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=ii(n));let c=n&&!i&&!s?ko(n,a):je(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 Sn(e){return Pe(e).position==="static"}function wo(e,t){if(!Qe(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ze(e)===r&&(r=r.ownerDocument.body),r}function Lo(e,t){let r=me(e);if(Sr(e))return r;if(!Qe(e)){let n=at(e);for(;n&&!Jt(n);){if(Ne(n)&&!Sn(n))return n;n=at(n)}return r}let i=wo(e,t);for(;i&&So(i)&&Sn(i);)i=wo(i,t);return i&&Jt(i)&&Sn(i)&&!Xt(i)?r:i||Ao(e)||r}var bu=async function(e){let t=this.getOffsetParent||Lo,r=this.getDimensions,i=await r(e.floating);return{reference:xu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Eu(e){return Pe(e).direction==="rtl"}var ni={convertOffsetParentRelativeRectToViewportRelativeRect:uu,getDocumentElement:Ze,getClippingRect:gu,getOffsetParent:Lo,getElementRects:bu,getClientRects:du,getDimensions:vu,getScale:Zt,isElement:Ne,isRTL:Eu};var Do=vo,No=xo;var Po=(e,t,r)=>{let i=new Map,n=r??{},s={...ni,...n.platform,_c:i};return go(e,t,{...n,platform:s})};function Mo(e){return Su(e)}function An(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Su(e){for(let t=e;t;t=An(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=An(e);t;t=An(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Xt(r)||t.tagName==="BODY"))return t}return null}async function Io(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},Po(e,t,{strategy:i.strategy,platform:{...ni,getOffsetParent:n=>ni.getOffsetParent(n,Mo)},middleware:[No({crossAxis:!0}),Do({allowedPlacements:[i.placement]})]})}var ar=f(E());var Wn=f(j());var $o=f(j(),1);var _n=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Au=e=>({fromAttribute:t=>{if(t==null)return Cr(e);try{return JSON.parse(t)}catch{return Cr(e)}},toAttribute:t=>JSON.stringify(t)});function Uo(e,t){return(0,$o.property)({type:Object,converter:Au(e),hasChanged:wr,...t??{}})}function _u(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,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Qt(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Qt(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[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 n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(e);if(r=s.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Qt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Qt(e,t){try{return _u(e,t)}catch{return!1}}function wr(e,t){return!Qt(e,t)}function Cr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function si(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var Bo=f(j(),1);var Cn=e=>{let t=e??{};return(r,i)=>{var n;let s={hasChanged:wr,attribute:!1,...t};(0,Bo.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var oi=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==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 Lt=f(j(),1);var ai=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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(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 i)try{await o()}catch(a){n(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 ci=f(L(),1);var li=class extends ci.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},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,ci.adoptStyles)(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){_n(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 Fo(e,t,...r){var i;let n=e.querySelector(t);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var tr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},jo,Ho=Symbol("constructorPrototype"),Vo=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer"),zo=Symbol("dynamicDependenciesLoaded"),er=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};er.eventName="exportparts-updated";var We=class extends li{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[jo]=new ai(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Wo].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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[Vo]=this.constructor.name,this[Ho]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Vo]&&Object.setPrototypeOf(this,this[Ho])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[zo]||(r[zo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(er.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(er.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 er)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Fo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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,i,n,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(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...x].filter(l).map(v=>v.trim());for(let v of A)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};jo=Wo;tr([(0,Lt.property)()],We.prototype,"exportpartsPrefix",void 0);tr([Uo([])],We.prototype,"exportpartsPrefixes",void 0);tr([(0,Lt.property)({reflect:!0})],We.prototype,"exportparts",void 0);tr([(0,Lt.property)()],We.prototype,"customStylesheet",void 0);tr([(0,Lt.property)()],We.prototype,"elementToFocus",void 0);tr([(0,Lt.state)()],We.prototype,"useAdoptedStyleSheets",void 0);function ui(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Or=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores"),Cu=si(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=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[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Dt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Dt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Dt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Dt].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[lt].has(o.store):this[lt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[lt].set(o,a.subscribe(()=>this.updateFromStores())),this[Or].set(o,[]),ui(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,d)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=y=>this[d](y);a.addEventListener(u.eventName,p),this[Or].get(o).push(()=>a.removeEventListener(u.eventName,p))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[lt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[lt].has(o)&&this[lt].get(o)(),this[lt].delete(o),(a=this[Or].get(o))===null||a===void 0||a.forEach(l=>l()),this[Or].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=lt,r=Dt,i=Or,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ko=class extends Cu(We){};function ie(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 wu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Go=wu,wn=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${wn()}`,REPLACE:`@@redux/REPLACE${wn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wn()}`},di=Ou;function pi(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function On(e,t,r){if(typeof e!="function")throw new Error(ie(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(On)(e,t)}let i=e,n=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((v,C)=>{o.set(C,v)}))}function u(){if(l)throw new Error(ie(3));return n}function d(v){if(typeof v!="function")throw new Error(ie(4));if(l)throw new Error(ie(5));let C=!0;c();let k=a++;return o.set(k,v),function(){if(C){if(l)throw new Error(ie(6));C=!1,c(),o.delete(k),s=null}}}function p(v){if(!pi(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(typeof v.type!="string")throw new Error(ie(17));if(l)throw new Error(ie(9));try{l=!0,n=i(n,v)}finally{l=!1}return(s=o).forEach(k=>{k()}),v}function y(v){if(typeof v!="function")throw new Error(ie(10));i=v,p({type:di.REPLACE})}function x(){let v=d;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(ie(11));function k(){let S=C;S.next&&S.next(u())}return k(),{unsubscribe:v(k)}},[Go](){return this}}}return p({type:di.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Go]:x}}function Tu(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:di.INIT})>"u")throw new Error(ie(12));if(typeof r(void 0,{type:di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Tn(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let i=Object.keys(r),n,s;try{Tu(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],y=r[p],x=a[p],A=y(x,l);if(typeof A>"u"){let v=l&&l.type;throw new Error(ie(14))}u[p]=A,c=c||A!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Tr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function qo(...e){return t=>(r,i)=>{let n=t(r,i),s=()=>{throw new Error(ie(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=Tr(...a)(n.dispatch),{...n,dispatch:s}}}function Yo(e){return pi(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Xo=Symbol.for("immer-draftable"),le=Symbol.for("immer-state");function Me(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ve=Object,ir=ve.getPrototypeOf,yi="constructor",Si="prototype",Dn="configurable",gi="enumerable",hi="writable",Rr="value",Ke=e=>!!e&&!!e[le];function xe(e){return e?sa(e)||_i(e)||!!e[Xo]||!!e[yi]?.[Xo]||Ci(e)||wi(e):!1}var Ru=ve[Si][yi].toString(),Jo=new WeakMap;function sa(e){if(!e||!Fn(e))return!1;let t=ir(e);if(t===null||t===ve[Si])return!0;let r=ve.hasOwnProperty.call(t,yi)&&t[yi];if(r===Object)return!0;if(!rr(r))return!1;let i=Jo.get(r);return i===void 0&&(i=Function.toString.call(r),Jo.set(r,i)),i===Ru}function Ai(e,t,r=!0){Dr(e)===0?(r?Reflect.ownKeys(e):ve.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((i,n)=>t(n,i,e))}function Dr(e){let t=e[le];return t?t.type_:_i(e)?1:Ci(e)?2:wi(e)?3:0}var Rn=(e,t,r=Dr(e))=>r===2?e.has(t):ve[Si].hasOwnProperty.call(e,t),Nn=(e,t,r=Dr(e))=>r===2?e.get(t):e[t],vi=(e,t,r,i=Dr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function ku(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _i=Array.isArray,Ci=e=>e instanceof Map,wi=e=>e instanceof Set,Fn=e=>typeof e=="object",rr=e=>typeof e=="function",kn=e=>typeof e=="boolean";function Lu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var et=e=>e.copy_||e.base_;var Hn=e=>e.modified_?e.copy_:e.base_;function Pn(e,t){if(Ci(e))return new Map(e);if(wi(e))return new Set(e);if(_i(e))return Array[Si].slice.call(e);let r=sa(e);if(t===!0||t==="class_only"&&!r){let i=ve.getOwnPropertyDescriptors(e);delete i[le];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[hi]===!1&&(a[hi]=!0,a[Dn]=!0),(a.get||a.set)&&(i[o]={[Dn]:!0,[hi]:!0,[gi]:a[gi],[Rr]:e[o]})}return ve.create(ir(e),i)}else{let i=ir(e);if(i!==null&&r)return{...e};let n=ve.create(i);return ve.assign(n,e)}}function Oi(e,t=!1){return Ti(e)||Ke(e)||!xe(e)||(Dr(e)>1&&ve.defineProperties(e,{set:fi,add:fi,clear:fi,delete:fi}),ve.freeze(e),t&&Ai(e,(r,i)=>{Oi(i,!0)},!1)),e}function Du(){Me(2)}var fi={[Rr]:Du};function Ti(e){return e===null||!Fn(e)?!0:ve.isFrozen(e)}var xi="MapSet",Mn="Patches",Zo="ArrayMethods",oa={};function Nt(e){let t=oa[e];return t||Me(0,e),t}var Qo=e=>!!oa[e];var kr,aa=()=>kr,Nu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Qo(xi)?Nt(xi):void 0,arrayMethodsPlugin_:Qo(Zo)?Nt(Zo):void 0});function ea(e,t){t&&(e.patchPlugin_=Nt(Mn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function In(e){$n(e),e.drafts_.forEach(Pu),e.drafts_=null}function $n(e){e===kr&&(kr=e.parent_)}var ta=e=>kr=Nu(kr,e);function Pu(e){let t=e[le];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[le].modified_&&(In(t),Me(4)),xe(e)&&(e=ia(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[le].base_,e,t)}else e=ia(t,r);return Mu(t,e,!0),In(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ia(e,t){if(Ti(t))return t;let r=t[le];if(!r)return bi(t,e.handledSet_,e);if(!Ri(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(e);ua(r,e)}return r.copy_}function Mu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Oi(t,r)}function la(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ri=(e,t)=>e.scope_===t,Iu=[];function ca(e,t,r,i){let n=et(e),s=e.type_;if(i!==void 0&&Nn(n,i,s)===t){vi(n,i,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Ai(n,(l,c)=>{if(Ke(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Iu;for(let a of o)vi(n,a,r,s)}function $u(e,t,r){e.callbacks_.push(function(n){let s=t;if(!s||!Ri(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=Hn(s);ca(e,s.draft_??s,o,r),ua(s,n)})}function ua(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let n=i.getPath(e);n&&i.generatePatches_(e,n,t)}la(e)}}function Uu(e,t,r){let{scope_:i}=e;if(Ke(r)){let n=r[le];Ri(n,i)&&n.callbacks_.push(function(){mi(e);let o=Hn(n);ca(e,r,o,t)})}else xe(r)&&e.callbacks_.push(function(){let s=et(e);e.type_===3?s.has(r)&&bi(r,i.handledSet_,i):Nn(s,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bi(Nn(e.copy_,t,e.type_),i.handledSet_,i)})}function bi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ke(e)||t.has(e)||!xe(e)||Ti(e)||(t.add(e),Ai(e,(i,n)=>{if(Ke(n)){let s=n[le];if(Ri(s,r)){let o=Hn(s);vi(e,i,o,e.type_),la(s)}}else xe(n)&&bi(n,t,r)})),e}function Bu(e,t){let r=_i(e),i={type_:r?1:0,scope_:t?t.scope_:aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ei;r&&(n=[i],s=Lr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ei={get(e,t){if(t===le)return e;let r=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof t=="string";if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let n=et(e);if(!Rn(n,t,e.type_))return Hu(e,n,t);let s=n[t];if(e.finalized_||!xe(s)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Lu(t))return s;if(s===Ln(e.base_,t)||Fu(e,t,s)){mi(e);let o=e.type_===1?+t:t,a=Bn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in et(e)},ownKeys(e){return Reflect.ownKeys(et(e))},set(e,t,r){let i=da(et(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let n=Ln(et(e),t),s=n?.[le];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(ku(r,n)&&(r!==void 0||Rn(e.base_,t,e.type_)))return!0;mi(e),Un(e)}return e.copy_[t]===r&&(r!==void 0||Rn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Uu(e,t,r)),!0},deleteProperty(e,t){return mi(e),Ln(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Un(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=et(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[hi]:!0,[Dn]:e.type_!==1||t!=="length",[gi]:i[gi],[Rr]:r[t]}},defineProperty(){Me(11)},getPrototypeOf(e){return ir(e.base_)},setPrototypeOf(){Me(12)}},Lr={};for(let e in Ei){let t=Ei[e];Lr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Lr.deleteProperty=function(e,t){return Lr.set.call(this,e,t,void 0)};Lr.set=function(e,t,r){return Ei.set.call(this,e[0],t,r,e[0])};function Ln(e,t){let r=e[le];return(r?et(r):e)[t]}function Fu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!xe(r)||r[le]?!1:e.baseRefs_.has(r)}function Hu(e,t,r){let i=da(t,r);return i?Rr in i?i[Rr]:i.get?.call(e.draft_):void 0}function da(e,t){if(!(t in e))return;let r=ir(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=ir(r)}}function Un(e){e.modified_||(e.modified_=!0,e.parent_&&Un(e.parent_))}function mi(e){e.copy_||(e.assigned_=new Map,e.copy_=Pn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(rr(t)&&!rr(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}rr(r)||Me(6),i!==void 0&&!rr(i)&&Me(7);let n;if(xe(t)){let s=ta(this),o=Bn(s,t,void 0),a=!0;try{n=r(o),a=!1}finally{a?In(s):$n(s)}return ea(s,i),ra(n,s)}else if(!t||!Fn(t)){if(n=r(t),n===void 0&&(n=t),n===na&&(n=void 0),this.autoFreeze_&&Oi(n,!0),i){let s=[],o=[];Nt(Mn).generateReplacementPatches_(t,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Me(1,t)},this.produceWithPatches=(t,r)=>{if(rr(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,n;return[this.produce(t,r,(o,a)=>{i=o,n=a}),i,n]},kn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),kn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),kn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xe(e)||Me(8),Ke(e)&&(e=pa(e));let t=ta(this),r=Bn(t,e,void 0);return r[le].isManual_=!0,$n(t),r}finishDraft(e,t){let r=e&&e[le];(!r||!r.isManual_)&&Me(9);let{scope_:i}=r;return ea(i,t),ra(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}r>-1&&(t=t.slice(r+1));let i=Nt(Mn).applyPatches_;return Ke(e)?i(e,t):this.produce(e,n=>i(n,t))}};function Bn(e,t,r,i){let[n,s]=Ci(t)?Nt(xi).proxyMap_(t,r):wi(t)?Nt(xi).proxySet_(t,r):Bu(t,r);return(r?.scope_??aa()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?$u(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function pa(e){return Ke(e)||Me(10,e),fa(e)}function fa(e){if(!xe(e)||Ti(e))return e;let t=e[le],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Pn(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=Pn(e,!0);return Ai(r,(n,s)=>{vi(r,n,fa(s))},i),t&&(t.finalized_=!1),r}var zu=globalThis.Iterator,ff=typeof zu?.from=="function";var ju=new Vu,Vn=ju.produce;function ha(e){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,e):n(s)}var ma=ha(),ya=ha;var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tr:Tr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Ku=e=>e&&typeof e.match=="function";function ct(e,t){function r(...i){if(t){let n=t(...i);if(!n)throw new Error(Ge(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Yo(i)&&i.type===e,r}var Ea=class Nr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Nr.prototype)}static get[Symbol.species](){return Nr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Nr(...t[0].concat(this)):new Nr(...t.concat(this))}};function ga(e){return xe(e)?Vn(e,()=>{}):e}function ki(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Gu(e){return typeof e=="boolean"}var qu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=t??{},o=new Ea;return r&&(Gu(r)?o.push(ma):o.push(ya(r.extraArgument))),o},Yu="RTK_autoBatch";var va=e=>t=>{setTimeout(t,e)},Xu=(e,t)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=e(o),s=setTimeout(o,t)},Ju=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),n=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Xu(window.requestAnimationFrame,100):va(10):e.type==="callback"?e.queueNotification:va(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Yu],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},Zu=e=>function(r){let{autoBatch:i=!0}=r??{},n=new Ea(e);return i&&n.push(Ju(typeof i=="object"?i:void 0)),n};function Sa(e){let t=qu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(pi(r))l=Tn(r);else throw new Error(Ge(1));let c;typeof i=="function"?c=i(t):c=t();let u=Tr;n&&(u=Wu({trace:!1,...typeof n=="object"&&n}));let d=qo(...c),p=Zu(d),y=typeof a=="function"?a(p):p(),x=u(...y);return On(l,o,x)}function Aa(e){let t={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Ge(28));if(a in t)throw new Error(Ge(29));return t[a]=o,n},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return e(n),[t,r,i]}function Qu(e){return typeof e=="function"}function ed(e,t){let[r,i,n]=Aa(t),s;if(Qu(e))s=()=>ga(e());else{let a=ga(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Ke(u)){let p=d(u,l);return p===void 0?u:p}else{if(xe(u))return Vn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Ge(9))}return p}}return u},a)}return o.getInitialState=s,o}var td=(e,t)=>Ku(e)?e.match(t):e(t);function rd(...e){return t=>e.some(r=>td(r,t))}var id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nd=(e=21)=>{let t="",r=e;for(;r--;)t+=id[Math.random()*64|0];return t},sd=["name","message","stack","code"],zn=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},xa=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},od=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of sd)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",ad=(()=>{function e(t,r,i){let n=ct(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=ct(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ct(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||od)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=i?.idGenerator?i.idGenerator(l):nd(),x=new AbortController,A,v;function C(b){v=b,x.abort()}c&&(c.aborted?C(ba):c.addEventListener("abort",()=>C(ba),{once:!0}));let k=(async function(){let b;try{let S=i?.condition?.(l,{getState:d,extra:p});if(cd(S)&&(S=await S),S===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let D=new Promise((T,q)=>{A=()=>{q({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),b=await Promise.race([D,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:x.signal,abort:C,rejectWithValue:((T,q)=>new zn(T,q)),fulfillWithValue:((T,q)=>new xa(T,q))})).then(T=>{if(T instanceof zn)throw T;return T instanceof xa?n(T.payload,y,l,T.meta):n(T,y,l)})])}catch(S){b=S instanceof zn?o(null,y,l,S.payload,S.meta):o(S,y,l)}finally{A&&x.signal.removeEventListener("abort",A)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(k,{abort:C,requestId:y,arg:l,unwrap(){return k.then(ld)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:rd(o,n),typePrefix:t})}return e.withTypes=()=>e,e})();function ld(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function cd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _a=Symbol.for("rtk-slice-createasyncthunk"),Ef={[_a]:ad};function ud(e,t){return`${e}/${t}`}function dd({creators:e}={}){let t=e?.asyncThunk?.[_a];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Ge(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(fd()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,S){let D=typeof b=="string"?b:b.type;if(!D)throw new Error(Ge(12));if(D in l.sliceCaseReducersByType)throw new Error(Ge(13));return l.sliceCaseReducersByType[D]=S,c},addMatcher(b,S){return l.sliceMatchers.push({matcher:b,reducer:S}),c},exposeAction(b,S){return l.actionCreators[b]=S,c},exposeCaseReducer(b,S){return l.sliceCaseReducersByName[b]=S,c}};a.forEach(b=>{let S=o[b],D={reducerName:b,type:ud(n,b),createNotation:typeof i.reducers=="function"};md(S)?gd(D,S,c,t):hd(D,S,c)});function u(){let[b={},S=[],D=void 0]=typeof i.extraReducers=="function"?Aa(i.extraReducers):[i.extraReducers],T={...b,...l.sliceCaseReducersByType};return ed(i.initialState,q=>{for(let oe in T)q.addCase(oe,T[oe]);for(let oe of l.sliceMatchers)q.addMatcher(oe.matcher,oe.reducer);for(let oe of S)q.addMatcher(oe.matcher,oe.reducer);D&&q.addDefaultCase(D)})}let d=b=>b,p=new Map,y=new WeakMap,x;function A(b,S){return x||(x=u()),x(b,S)}function v(){return x||(x=u()),x.getInitialState()}function C(b,S=!1){function D(q){let oe=q[b];return typeof oe>"u"&&S&&(oe=ki(y,D,v)),oe}function T(q=d){return ki(ki(p,S,()=>new WeakMap),q,()=>{let oe={};for(let[Kr,_e]of Object.entries(i.selectors??{}))oe[Kr]=pd(_e,q,()=>ki(y,q,v),S);return oe})}return{reducerPath:b,getSelectors:T,get selectors(){return T(D)},selectSlice:D}}let k={name:n,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...C(s),injectInto(b,{reducerPath:S,...D}={}){let T=S??s;return b.inject({reducerPath:T,reducer:A},D),{...k,...C(T,!0)}}};return k}}function pd(e,t,r,i){function n(s,...o){let a=t(s);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return n.unwrapped=e,n}var Ca=dd();function fd(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function hd({type:e,reducerName:t,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!yd(i))throw new Error(Ge(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?ct(e,o):ct(e))}function md(e){return e._reducerDefinitionType==="asyncThunk"}function yd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gd({type:e,reducerName:t},r,i,n){if(!n)throw new Error(Ge(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=n(e,s,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||Li,pending:a||Li,rejected:l||Li,settled:c||Li})}function Li(){}var wa="listener",Oa="completed",Ta="cancelled",Sf=`task-${Ta}`,Af=`task-${Oa}`,_f=`${wa}-${Ta}`,Cf=`${wa}-${Oa}`;var{assign:Ra}=Object;var jn="listenerMiddleware";var vd=Ra(ct(`${jn}/add`),{withTypes:()=>vd}),wf=ct(`${jn}/removeAll`),xd=Ra(ct(`${jn}/remove`),{withTypes:()=>xd});function Ge(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bd=si(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Di=class extends bd(Object){};window.ftReduxStores||(window.ftReduxStores={});var ka=class e extends Di{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,s=window.ftReduxStores[i];if(ui(s))return s;if(n==null)return;let o=Ca({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Sa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Cr(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[n.name]=new e(o,a,n.eventBus,n.deprecatedKeys)}constructor(t,r,i,n){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new oi,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...d)=>{let p=u(...d.map(s));return this.reduxStore.dispatch(p),p}:d=>{let p=c,y=this.getState()[p];Qt(y,d)||this.setState({[p]:s(d)})}}}),this.eventBus=i??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Ni=class{static format(t,r,i,n,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(t,r,i,n,!!s)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Pi=f(E()),Ed="ft-app-info",Pt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Pt.eventName="authentication-change";var Pr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Pr.eventName="ui-locale-changed";var Sd={session:(e,t)=>{(0,Pi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Pt(t.payload)),0))}},w=Pi.FtReduxStore.get({name:Ed,reducers:Sd,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,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var La=f(E()),Mi=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},rh=(0,La.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>Ni.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mi([(0,Wn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Mi([(0,Wn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Mi([Cn({store:w.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),Mi([Cn({store:w.name})],t.prototype,"uiLocale",void 0),t});var Da;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Da||(Da={}));var Na;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Na||(Na={}));var Pa;(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"})(Pa||(Pa={}));var Ma;(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"})(Ma||(Ma={}));var Ia;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ia||(Ia={}));var $a;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})($a||($a={}));var Ua;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ua||(Ua={}));var Ba;(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"})(Ba||(Ba={}));var Fa;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Fa||(Fa={}));var Ha;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ha||(Ha={}));var Va;(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"})(Va||(Va={}));var za;(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"})(za||(za={}));var ja;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ja||(ja={}));var Wa;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Wa||(Wa={}));var Ka;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ka||(Ka={}));var Ga;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ga||(Ga={}));var qa;(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"})(qa||(qa={}));var Ya;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ya||(Ya={}));var Xa;(function(e){e.ASC="ASC",e.DESC="DESC"})(Xa||(Xa={}));var Ja;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ja||(Ja={}));var Za;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Za||(Za={}));var Qa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Qa||(Qa={}));var el;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(el||(el={}));var tl;(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"})(tl||(tl={}));var rl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(rl||(rl={}));var il;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(il||(il={}));var nl;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(nl||(nl={}));var sl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(sl||(sl={}));var G;(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"})(G||(G={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var ol;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(ol||(ol={}));var al;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(al||(al={}));var ll;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ll||(ll={}));var cl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(cl||(cl={}));var ul;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(ul||(ul={}));var dl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(dl||(dl={}));var pl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(pl||(pl={}));var fl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(fl||(fl={}));var hl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(hl||(hl={}));var ml;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(ml||(ml={}));var yl;(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"})(yl||(yl={}));var gl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(gl||(gl={}));var Ad={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function vl(e,t){return e===t||(Ad[e]??[]).some(r=>vl(r,t))}function Kn(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(i=>vl(i,t))}function xl(e,...t){return e==null?!1:t.some(r=>Kn(e,r))}var Fi=f(E());var Gn=f(E());var Mt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=w.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var nr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Mt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Mt.await()}};var be=class extends nr{constructor(t=!0,r){var i;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 n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Gn.CacheRegistry,this.cache=t?n.commonCache:new Gn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Ii=class extends be{async listMySearches(){let{session:t}=w.getState();return Kn(t,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var $i=class extends be{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 Ui=class extends be{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 Bi=class extends be{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 _d="ft-user-assets",Cd={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(we).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:i,asset:n}=t.payload;Yn(e,r,[...qn(e,r),n]),bl(e,r,1,i),El(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Yn(e,r,qn(e,r).map(n=>n.id===i.id?i:n)),El(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;Yn(e,r,qn(e,r).filter(s=>s.id!==n)),bl(e,r,-1,i)}},Sl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},qn=(e,t)=>{var r;let i=Sl[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Yn=(e,t,r)=>{let i=Sl[t];i&&(e[i]=r)},bl=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===we.BOOKMARKS&&i)){let s=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},El=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},ue=Fi.FtReduxStore.get({name:_d,reducers:Cd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Xn=class{constructor(t=new Ui,r=new Bi){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $i,this.savedSearchesService=new Ii,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Fi.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(),ue.actions.clearAssetCount(),ue.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ue.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ue.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ue.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ue.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ue.getState().assetCounts.allAsset[t]!==r.count&&ue.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ue.getState().assetCounts.bookmarkByMap[t]!==r.count&&ue.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ue.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ue.actions.clearBookmarkCountByMap(),ue.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;ue.actions.bookmarks(r)}}},wd=new Xn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wd);var Jn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Jn;var Oe=f(E());var Al,sr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Od=Symbol("clearAfterUnitTest"),Hi=class extends(0,Oe.withEventBus)(be){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Al]=()=>{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 i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let s=t.toLowerCase(),o=this.resolveContext(s);return new Oe.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof Oe.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new sr({loadedContexts:t})),this.dispatchEvent(new sr({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new sr({loadedContexts:[t]})),this.dispatchEvent(new sr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,Oe.delay)(0).then(()=>i()).catch(()=>null)))}};Al=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Hi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Hi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Mr=window.FluidTopicsI18nService,Zn=window.FluidTopicsCustomI18nService;var _l=f(E()),Qn=class{highlightHtml(t,r,i){(0,_l.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Qn;var Cl=f(E());var es=class{isDate(t){var r,i,n,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 i,n,s,o;if(t==null)return"";try{return Cl.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!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 es;var wl=f(E());var Ir=class{static get(t,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=w.getState()){var o;if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new wl.SearchPlaceConverter(i,t??20,n?.allLanguagesAllowed,r,s)}};var ts=class{urlToSearchRequest(t){return Ir.get().parse(t)}searchRequestToUrl(t){return Ir.get().serialize(t)}};window.FluidTopicsUrlService=new ts;var tt=f(E());var It=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};It.eventName="before-location-change";var $t=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};$t.eventName="change";var rs=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))}},Ol=new rs;var Vi=class e extends tt.WithEventBus{static build(){return new e(window.history,Ol,()=>window.location,!1)}constructor(t,r,i,n){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,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(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new $t(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[s,o,a])=>{let l=new It(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,o,u.href]),this.setCurrentState(u,!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 i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(t){this.addEventListener(It.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(It.eventName,t)}addHistoryChangeListener(t){this.addEventListener($t.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener($t.eventName,t)}currentItem(){return(0,tt.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,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,tt.deepCopy)(r.find(i=>t(i)))}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,tt.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 i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}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 i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Vi.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),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Tl=f(L());var Rl=Tl.css`
|
|
271
|
+
`;var Dl=f(L()),de=f(j()),Ft=f(E());var Ut=f(E());function kl(e,t){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var zi=class extends nr{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var is=class e extends Ut.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Ut.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new zi,this.cleanSessionDebouncer=new Ut.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ut.Debouncer(500),this.apiProvider=r??(()=>Mt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Pt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Pt.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",()=>kl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}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(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Pr(i)))}).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)}setNoCustomCode(t){this.store.actions.noCustomCode(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)}userHasAnyRole(...t){return xl(w.getState().session,...t)}},Ll=is.build();var Bt=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var $r=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:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Bt(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 Z=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},H=class extends Ft.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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Ll,this.contextRoot=new $r}render(){return Dl.html`
|
|
272
272
|
<slot></slot>
|
|
273
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Mr.addContext(i)),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())}};H.elementDefinitions={};H.styles=Rl;Z([(0,de.property)()],H.prototype,"baseUrl",void 0);Z([(0,de.property)()],H.prototype,"tenantId",void 0);Z([(0,de.property)()],H.prototype,"apiIntegrationIdentifier",void 0);Z([(0,de.property)()],H.prototype,"apiIntegrationAppVersion",void 0);Z([(0,de.property)()],H.prototype,"uiLocale",void 0);Z([(0,Ft.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);Z([(0,Ft.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"editorMode",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"noCustom",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);Z([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);Z([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomCode",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"withManualResources",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);Z([(0,Ft.jsonProperty)([])],H.prototype,"messageContexts",void 0);Z([(0,Ft.jsonProperty)(void 0)],H.prototype,"session",void 0);var Pl=f(E());var Nl={"ft-app-context":H};(0,Pl.customElements)(Nl);var Ml=f(j());var ns=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,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},or=new ns;var kd=function(e,t,r,i){var
|
|
274
|
-
`;var qi=f(L()),cr=f(j()),Yi=f(E());var lr=function(e,t,r,i){var
|
|
273
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Mr.addContext(i)),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())}};H.elementDefinitions={};H.styles=Rl;Z([(0,de.property)()],H.prototype,"baseUrl",void 0);Z([(0,de.property)()],H.prototype,"tenantId",void 0);Z([(0,de.property)()],H.prototype,"apiIntegrationIdentifier",void 0);Z([(0,de.property)()],H.prototype,"apiIntegrationAppVersion",void 0);Z([(0,de.property)()],H.prototype,"uiLocale",void 0);Z([(0,Ft.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);Z([(0,Ft.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"editorMode",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"noCustom",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);Z([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);Z([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomCode",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"withManualResources",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);Z([(0,de.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);Z([(0,Ft.jsonProperty)([])],H.prototype,"messageContexts",void 0);Z([(0,Ft.jsonProperty)(void 0)],H.prototype,"session",void 0);var Pl=f(E());var Nl={"ft-app-context":H};(0,Pl.customElements)(Nl);var Ml=f(j());var ns=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,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},or=new ns;var kd=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Br=Symbol("i18nAttributes"),Il=Symbol("i18nListAttributes"),$l=Symbol("i18nProperties"),ji=Symbol("i18nContexts"),Ur=Symbol("i18nUnsubs"),Gi=(0,ar.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Zn:Mr}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(or.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[Br])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Il])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(y=>c(u,d,y))})}updateI18nProperties(s){var o;(o=this[$l])===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[ji].set(l,{isCustomContext:a}),this[Ur].has(l)||this[Ur].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[ji].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ji].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ur].forEach(s=>s()),this[Ur].clear()}}return t=ji,r=Ur,kd([(0,Ml.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Wi=class extends Gi(ar.FtLitElement){},Ki=class extends Gi(ar.FtLitElementRedux){};var Ul=f(E());var ss=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?or.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Ld=new ss;var Bl=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Ul.hasChanged,converter:or,...t}),r[Br]=(n=r[Br])!==null&&n!==void 0?n:new Map,r[Br].set(i,e??{})};var Fl=f(L());var Hl=Fl.css`
|
|
274
|
+
`;var qi=f(L()),cr=f(j()),Yi=f(E());var lr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Te=class extends Ki{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:qi.nothing:qi.html`
|
|
275
275
|
<span class="ft-i18n">
|
|
276
276
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
277
277
|
</span>
|
|
278
|
-
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Te.elementDefinitions={};Te.styles=Hl;lr([(0,Yi.redux)()],Te.prototype,"editorMode",void 0);lr([(0,cr.property)()],Te.prototype,"context",void 0);lr([(0,cr.property)()],Te.prototype,"key",void 0);lr([(0,Yi.jsonProperty)([])],Te.prototype,"args",void 0);lr([(0,cr.property)()],Te.prototype,"defaultMessage",void 0);lr([(0,cr.state)()],Te.prototype,"editorMessage",void 0);var zl=f(E());var Vl={"ft-i18n":Te};(0,zl.customElements)(Vl);var Ie=function(e,t,r,i){var
|
|
278
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Te.elementDefinitions={};Te.styles=Hl;lr([(0,Yi.redux)()],Te.prototype,"editorMode",void 0);lr([(0,cr.property)()],Te.prototype,"context",void 0);lr([(0,cr.property)()],Te.prototype,"key",void 0);lr([(0,Yi.jsonProperty)([])],Te.prototype,"args",void 0);lr([(0,cr.property)()],Te.prototype,"defaultMessage",void 0);lr([(0,cr.state)()],Te.prototype,"editorMessage",void 0);var zl=f(E());var Vl={"ft-i18n":Te};(0,zl.customElements)(Vl);var Ie=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},X=class extends Wi{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Re.Debouncer,this.revealDebouncer=new Re.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return jl.html`
|
|
279
279
|
<div part="container"
|
|
280
280
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
281
281
|
<slot part="slot"></slot>
|
|
@@ -284,13 +284,13 @@
|
|
|
284
284
|
popover="manual">
|
|
285
285
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
286
286
|
<slot name="text"></slot>
|
|
287
|
-
<ft-typography variant="${
|
|
287
|
+
<ft-typography variant="${te.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
|
|
288
288
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
289
289
|
</ft-typography>
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
292
292
|
</div>
|
|
293
|
-
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let i=this.manual;this.manual=!0;let
|
|
293
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Io(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Re.designSystemVariables.transitionDuration}, left ${Re.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Re.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};X.elementDefinitions={"ft-typography":Y};X.styles=ao;Ie([Bl()],X.prototype,"text",void 0);Ie([(0,ke.property)({type:Boolean})],X.prototype,"manual",void 0);Ie([(0,ke.property)({type:Boolean})],X.prototype,"inline",void 0);Ie([(0,Re.numberProperty)()],X.prototype,"delay",void 0);Ie([(0,ke.property)()],X.prototype,"position",void 0);Ie([(0,Re.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);Ie([(0,ke.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);Ie([(0,ke.query)(".ft-tooltip--container")],X.prototype,"container",void 0);Ie([(0,ke.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);Ie([(0,ke.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);Ie([(0,ke.state)()],X.prototype,"visible",void 0);var Kl=f(E());var Wl={"ft-tooltip":X};(0,Kl.customElements)(Wl);var Gl=f(L()),Ue=f(E()),$e={size:Ue.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ue.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ue.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ql=[Gl.css`
|
|
294
294
|
:host, i.ft-icon {
|
|
295
295
|
display: inline-flex;
|
|
296
296
|
align-items: center;
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
.ft-icon--material {
|
|
339
339
|
font-family: ${$e.materialFontFamily}, "Material Icons", sans-serif;
|
|
340
340
|
}
|
|
341
|
-
`,Ue.noTextSelect];var ut;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ut||(ut={}));var Fr=f(L()),dt=f(j()),Jl=f(E()),Zl=f(Xl());var Xi;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Xi||(Xi={}));var m;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(m||(m={}));var Tg=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var Rg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var Hr=function(e,t,r,i){var
|
|
341
|
+
`,Ue.noTextSelect];var ut;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ut||(ut={}));var Fr=f(L()),dt=f(j()),Jl=f(E()),Zl=f(Xl());var Xi;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Xi||(Xi={}));var m;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(m||(m={}));var Tg=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var Rg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var Hr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},pe=class extends Jl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Fr.nothing}render(){let t=this.variant&&Object.values(ut).includes(this.variant)?this.variant:ut.fluid_topics,r=t!==ut.material||!!this.value;return Fr.html`
|
|
342
342
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
343
343
|
${(0,Zl.unsafeHTML)(this.resolvedIcon)}
|
|
344
344
|
<slot ?hidden=${r}></slot>
|
|
@@ -561,15 +561,15 @@
|
|
|
561
561
|
${(0,_.setVariable)(Ht.size,P.iconSize)};
|
|
562
562
|
${(0,_.setVariable)(Ht.color,"var(--button-internal-color)")};
|
|
563
563
|
}
|
|
564
|
-
`;var U=function(e,t,r,i){var
|
|
564
|
+
`;var U=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},O=class e extends(0,qe.toFtFormComponent)(qe.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":qe.isSafari},s=pt.html`
|
|
565
565
|
<ft-ripple part="ripple"
|
|
566
566
|
?disabled=${this.isDisabled()}
|
|
567
567
|
?activated=${this.activated}
|
|
568
568
|
></ft-ripple>
|
|
569
569
|
<ft-typography part="label"
|
|
570
|
-
variant="${
|
|
570
|
+
variant="${te.button}"
|
|
571
571
|
element="span"
|
|
572
|
-
class="${(0,Zi.classMap)(
|
|
572
|
+
class="${(0,Zi.classMap)(n)}">
|
|
573
573
|
<slot></slot>
|
|
574
574
|
</ft-typography>
|
|
575
575
|
${this.resolveIcon()}
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
class="${(0,Zi.classMap)(this.buttonClasses)}"
|
|
581
581
|
aria-label="${zr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
582
582
|
?disabled=${this.isDisabled()}>
|
|
583
|
-
${
|
|
583
|
+
${s}
|
|
584
584
|
</a>
|
|
585
585
|
`:pt.html`
|
|
586
586
|
<button part="button"
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
aria-haspopup="${zr(this.ariaHasPopup)}"
|
|
590
590
|
aria-pressed="${zr(this.ariaPressed)}"
|
|
591
591
|
?disabled=${this.isDisabled()}>
|
|
592
|
-
${
|
|
592
|
+
${s}
|
|
593
593
|
</button>
|
|
594
594
|
`)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?pt.html`
|
|
595
595
|
<ft-tooltip part="tooltip"
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
603
603
|
`:pt.html`
|
|
604
604
|
<slot part="icon" name="icon"></slot>
|
|
605
|
-
`}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 i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":N,"ft-tooltip":X,"ft-icon":pe,"ft-loader":Vt,"ft-typography":Y};O.styles=[qe.safariEllipsisFix,cc,qe.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});U([(0,M.property)({type:Boolean})],O.prototype,"primary",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"outlined",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"dense",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"round",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"disabled",void 0);U([(0,M.property)()],O.prototype,"icon",void 0);U([(0,M.property)()],O.prototype,"iconVariant",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);U([(0,M.property)()],O.prototype,"label",void 0);U([(0,M.property)()],O.prototype,"type",void 0);U([(0,M.property)()],O.prototype,"href",void 0);U([(0,M.property)()],O.prototype,"target",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"loading",void 0);U([(0,M.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);U([(0,M.property)()],O.prototype,"ariaHasPopup",void 0);U([(0,M.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);U([(0,M.property)()],O.prototype,"tooltipPosition",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"activated",void 0);U([(0,M.query)(".ft-button")],O.prototype,"button",void 0);U([(0,M.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);U([(0,M.state)()],O.prototype,"hasTextContent",void 0);U([(0,M.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);U([(0,M.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var dc=f(E());var uc={"ft-button":O};(0,dc.customElements)(uc);var Qi=f(L()),Fe=f(j()),hc=f(E()),mc=f(Yt());var
|
|
605
|
+
`}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 i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":N,"ft-tooltip":X,"ft-icon":pe,"ft-loader":Vt,"ft-typography":Y};O.styles=[qe.safariEllipsisFix,cc,qe.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});U([(0,M.property)({type:Boolean})],O.prototype,"primary",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"outlined",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"dense",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"round",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"disabled",void 0);U([(0,M.property)()],O.prototype,"icon",void 0);U([(0,M.property)()],O.prototype,"iconVariant",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);U([(0,M.property)()],O.prototype,"label",void 0);U([(0,M.property)()],O.prototype,"type",void 0);U([(0,M.property)()],O.prototype,"href",void 0);U([(0,M.property)()],O.prototype,"target",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"loading",void 0);U([(0,M.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);U([(0,M.property)()],O.prototype,"ariaHasPopup",void 0);U([(0,M.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);U([(0,M.property)()],O.prototype,"tooltipPosition",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);U([(0,M.property)({type:Boolean})],O.prototype,"activated",void 0);U([(0,M.query)(".ft-button")],O.prototype,"button",void 0);U([(0,M.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);U([(0,M.state)()],O.prototype,"hasTextContent",void 0);U([(0,M.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);U([(0,M.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var dc=f(E());var uc={"ft-button":O};(0,dc.customElements)(uc);var Qi=f(L()),Fe=f(j()),hc=f(E()),mc=f(Yt());var Q=f(E()),pc=f(L());var Ee={textColor:Q.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Q.designSystemVariables.colorOnSurfaceHigh),fontSize:Q.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:Q.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Q.designSystemVariables.colorPrimary),checkColor:Q.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Q.designSystemVariables.colorOnPrimary),borderColor:Q.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Q.designSystemVariables.colorOnSurfaceMedium),disabledColor:Q.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Q.designSystemVariables.colorOnSurfaceDisabled),errorColor:Q.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Q.designSystemVariables.colorError)},fc=pc.css`
|
|
606
606
|
* {
|
|
607
607
|
box-sizing: border-box;
|
|
608
608
|
}
|
|
@@ -683,7 +683,7 @@
|
|
|
683
683
|
|
|
684
684
|
.ft-checkbox.ft-checkbox--error {
|
|
685
685
|
color: ${Ee.errorColor};
|
|
686
|
-
${(0,
|
|
686
|
+
${(0,Q.setVariable)(ae.color,Ee.errorColor)};
|
|
687
687
|
|
|
688
688
|
.ft-checkbox--box {
|
|
689
689
|
border-color: ${Ee.errorColor};
|
|
@@ -695,7 +695,16 @@
|
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
|
|
698
|
+
|
|
699
|
+
.ft-checkbox:has(:focus-visible) {
|
|
700
|
+
outline: 2px solid ${Q.designSystemVariables.colorPrimary};
|
|
701
|
+
outline-offset: -2px;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.ft-checkbox ft-typography {
|
|
705
|
+
padding-right: 2px;
|
|
706
|
+
}
|
|
707
|
+
`;var rt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},as=class extends CustomEvent{constructor(t){super("change",{detail:t})}},ne=class extends hc.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Qi.html`
|
|
699
708
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
700
709
|
<ft-ripple part="checkbox-ripple"
|
|
701
710
|
?disabled=${this.disabled}
|
|
@@ -720,7 +729,7 @@
|
|
|
720
729
|
`}render(){return Qi.html`
|
|
721
730
|
<label class="${(0,mc.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
722
731
|
${this.renderBoxContainer()}
|
|
723
|
-
<ft-typography variant="${
|
|
732
|
+
<ft-typography variant="${te.body2}" part="checkbox-body">
|
|
724
733
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
725
734
|
</ft-typography>
|
|
726
735
|
</label>
|
|
@@ -729,7 +738,7 @@
|
|
|
729
738
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
730
739
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
731
740
|
</svg>
|
|
732
|
-
`}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new as(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};ne.elementDefinitions={"ft-ripple":N,"ft-typography":Y};ne.styles=fc;rt([(0,Fe.property)()],ne.prototype,"name",void 0);rt([(0,Fe.property)()],ne.prototype,"value",void 0);rt([(0,Fe.property)({type:Boolean,reflect:!0})],ne.prototype,"checked",void 0);rt([(0,Fe.property)({type:Boolean})],ne.prototype,"indeterminate",void 0);rt([(0,Fe.property)({type:Boolean})],ne.prototype,"disabled",void 0);rt([(0,Fe.property)({type:Boolean})],ne.prototype,"error",void 0);rt([(0,Fe.query)(".ft-checkbox")],ne.prototype,"container",void 0);rt([(0,Fe.query)("ft-ripple")],ne.prototype,"ripple",void 0);rt([(0,Fe.query)("input")],ne.prototype,"input",void 0);var gc=f(E());var yc={"ft-checkbox":ne};(0,gc.customElements)(yc);var bc=f(L()),Ye=f(j()),Ec=f(E()),Sc=f(Yt());var vc=f(L()),ye=f(E());var ft={textColor:ye.FtCssVariableFactory.extend("--ft-radio-text-color","",ye.designSystemVariables.colorOnSurfaceHigh),fontSize:ye.FtCssVariableFactory.extend("--ft-radio-font-size","",
|
|
741
|
+
`}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new as(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};ne.elementDefinitions={"ft-ripple":N,"ft-typography":Y};ne.styles=fc;rt([(0,Fe.property)()],ne.prototype,"name",void 0);rt([(0,Fe.property)()],ne.prototype,"value",void 0);rt([(0,Fe.property)({type:Boolean,reflect:!0})],ne.prototype,"checked",void 0);rt([(0,Fe.property)({type:Boolean})],ne.prototype,"indeterminate",void 0);rt([(0,Fe.property)({type:Boolean})],ne.prototype,"disabled",void 0);rt([(0,Fe.property)({type:Boolean})],ne.prototype,"error",void 0);rt([(0,Fe.query)(".ft-checkbox")],ne.prototype,"container",void 0);rt([(0,Fe.query)("ft-ripple")],ne.prototype,"ripple",void 0);rt([(0,Fe.query)("input")],ne.prototype,"input",void 0);var gc=f(E());var yc={"ft-checkbox":ne};(0,gc.customElements)(yc);var bc=f(L()),Ye=f(j()),Ec=f(E()),Sc=f(Yt());var vc=f(L()),ye=f(E());var ft={textColor:ye.FtCssVariableFactory.extend("--ft-radio-text-color","",ye.designSystemVariables.colorOnSurfaceHigh),fontSize:ye.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ye.FtCssVariableFactory.extend("--ft-radio-border-color","",ye.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorOnSurfaceDisabled,"Design system")},xc=vc.css`
|
|
733
742
|
* {
|
|
734
743
|
box-sizing: border-box;
|
|
735
744
|
}
|
|
@@ -818,7 +827,7 @@
|
|
|
818
827
|
.ft-radio ft-typography {
|
|
819
828
|
padding-right: 2px;
|
|
820
829
|
}
|
|
821
|
-
`;var ht=function(e,t,r,i){var
|
|
830
|
+
`;var ht=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},en=class extends CustomEvent{constructor(t,r){super("change",{detail:{value:t,checked:r},bubbles:!0,composed:!0})}},ce=class extends Ec.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return bc.html`
|
|
822
831
|
<div class="${(0,Sc.classMap)(this.radioClasses)}"
|
|
823
832
|
@click=${this.onClick}>
|
|
824
833
|
<div class="ft-radio--box-container">
|
|
@@ -839,7 +848,7 @@
|
|
|
839
848
|
>
|
|
840
849
|
</div>
|
|
841
850
|
<label for="radio-button" inert>
|
|
842
|
-
<ft-typography variant="${
|
|
851
|
+
<ft-typography variant="${te.body2}">
|
|
843
852
|
<slot></slot>
|
|
844
853
|
</ft-typography>
|
|
845
854
|
</label>
|
|
@@ -852,7 +861,7 @@
|
|
|
852
861
|
:host(:focus-visible) {
|
|
853
862
|
outline: none;
|
|
854
863
|
}
|
|
855
|
-
`;var jr=function(e,t,r,i){var
|
|
864
|
+
`;var jr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},He=class extends Cc.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var t,r;return(r=(t=this.assignedElements)===null||t===void 0?void 0:t.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return wc.html`
|
|
856
865
|
<slot @slotchange=${this.onSlotChange}
|
|
857
866
|
@change=${this.onChange}
|
|
858
867
|
@keydown=${this.onKeyDown}
|
|
@@ -928,7 +937,7 @@
|
|
|
928
937
|
margin: 10px 0;
|
|
929
938
|
color: ${Wr.colorOnSurfaceMedium};
|
|
930
939
|
}
|
|
931
|
-
`;var se=function(e,t,r,i){var
|
|
940
|
+
`;var se=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ls={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},V=class extends(0,ge.withAnalytics)(Gi((0,ge.withAriaNotification)(ge.FtLitElement)),ls){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ge.Debouncer(500)}get hasHiddenValues(){let t=this.limit;return t!=null&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,r;return(r=(t=this.container)===null||t===void 0?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(t){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${t}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(t){super.willUpdate(t),(t.has("options")||t.has("hideSelectedOptions")||t.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(r=>!r.selected)),this.filter&&(t=t.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=t}render(){let t=this.filteredOptions.slice(0,this.limit);return Se.html`
|
|
932
941
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
933
942
|
${this.parent==null?null:Se.html`
|
|
934
943
|
<div tabindex="0"
|
|
@@ -941,11 +950,11 @@
|
|
|
941
950
|
@click=${this.goBackOnClick}>
|
|
942
951
|
<ft-ripple></ft-ripple>
|
|
943
952
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
944
|
-
<ft-typography variant="${
|
|
953
|
+
<ft-typography variant="${te.body2}">${this.parent.label}</ft-typography>
|
|
945
954
|
</div>
|
|
946
955
|
`}
|
|
947
956
|
${this.filteredOptions.length===0&&this.noValuesLabel?Se.html`
|
|
948
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
957
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${te.body2}">
|
|
949
958
|
${this.noValuesLabel}
|
|
950
959
|
</ft-typography>
|
|
951
960
|
`:Se.nothing}
|
|
@@ -981,7 +990,7 @@
|
|
|
981
990
|
data-value="${t.value}"
|
|
982
991
|
.checked=${t.selected}
|
|
983
992
|
.disabled=${this.disabled}
|
|
984
|
-
.indeterminate=${(0,ge.flatDeep)((r=t.subOptions)!==null&&r!==void 0?r:[],i=>{var
|
|
993
|
+
.indeterminate=${(0,ge.flatDeep)((r=t.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
|
|
985
994
|
@change=${i=>this.optionsChanged(i,t)}>
|
|
986
995
|
${t.renderOption?t.renderOption:t.label}${this.displayCount?` (${t.count})`:""}
|
|
987
996
|
</ft-checkbox>
|
|
@@ -1121,7 +1130,7 @@
|
|
|
1121
1130
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1122
1131
|
background-color: ${yt.colorSurface};
|
|
1123
1132
|
}
|
|
1124
|
-
`;var Xe=function(e,t,r,i){var
|
|
1133
|
+
`;var Xe=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},cs=class extends CustomEvent{constructor(t,r){super("current-element-change",{detail:{index:t,element:r}})}},ee=class extends zt.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new zt.Debouncer(200),this.updateScrollDebouncer=new zt.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let r=this.elements[t];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let t=(0,Mc.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":zt.isSafari}),r=this.controls&&this.withScroll;return Pc.html`
|
|
1125
1134
|
<div part="container" class="${t}">
|
|
1126
1135
|
<ft-button
|
|
1127
1136
|
class="ft-snap-scroll--previous"
|
|
@@ -1145,7 +1154,7 @@
|
|
|
1145
1154
|
@click=${this.next}
|
|
1146
1155
|
></ft-button>
|
|
1147
1156
|
</div>
|
|
1148
|
-
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new cs(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,i;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};
|
|
1157
|
+
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new cs(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,i;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};ee.elementDefinitions={"ft-button":O};ee.styles=Nc;Xe([(0,Ae.property)({type:Boolean})],ee.prototype,"horizontal",void 0);Xe([(0,Ae.property)({type:Boolean})],ee.prototype,"hideScrollbar",void 0);Xe([(0,Ae.property)({type:Boolean})],ee.prototype,"controls",void 0);Xe([(0,Ae.property)({type:Boolean})],ee.prototype,"limitSize",void 0);Xe([(0,Ae.state)()],ee.prototype,"elements",void 0);Xe([(0,Ae.state)()],ee.prototype,"currentElement",void 0);Xe([(0,Ae.state)()],ee.prototype,"withScroll",void 0);Xe([(0,Ae.state)()],ee.prototype,"startReached",void 0);Xe([(0,Ae.state)()],ee.prototype,"endReached",void 0);Xe([(0,Ae.query)(".ft-snap-scroll--content")],ee.prototype,"contentSlot",void 0);var $c=f(E());var Ic={"ft-snap-scroll":ee};(0,$c.customElements)(Ic);var Uc=f(L()),B=f(E());var Le={colorOutline:B.FtCssVariableFactory.external(B.designSystemVariables.colorOutline,"Design system"),colorOnSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:B.FtCssVariableFactory.external(B.designSystemVariables.colorPrimary,"Design system"),colorSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorSurface,"Design system"),transitionDuration:B.FtCssVariableFactory.external(B.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:B.FtCssVariableFactory.external(B.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:B.FtCssVariableFactory.extend("--ft-filter-label-color","",B.designSystemVariables.colorOnSurface),labelFontSize:B.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Bc=[Xr,B.noTextInputDefaultClearButton,Uc.css`
|
|
1149
1158
|
:host {
|
|
1150
1159
|
display: flex;
|
|
1151
1160
|
max-height: 100%;
|
|
@@ -1187,8 +1196,8 @@
|
|
|
1187
1196
|
word-break: break-word;
|
|
1188
1197
|
color: ${Le.labelColor};
|
|
1189
1198
|
font-size: ${Le.labelFontSize};
|
|
1190
|
-
${(0,B.setVariable)(
|
|
1191
|
-
${(0,B.setVariable)(
|
|
1199
|
+
${(0,B.setVariable)(g.lineHeight,"22px")};
|
|
1200
|
+
${(0,B.setVariable)(g.fontWeight,"bold")};
|
|
1192
1201
|
}
|
|
1193
1202
|
|
|
1194
1203
|
.ft-filter--filter {
|
|
@@ -1262,14 +1271,14 @@
|
|
|
1262
1271
|
slot:not([name]) {
|
|
1263
1272
|
display: none;
|
|
1264
1273
|
}
|
|
1265
|
-
`];var F=function(e,t,r,i){var
|
|
1274
|
+
`];var F=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},us=class extends CustomEvent{constructor(t){super("change",{detail:t})}},R=class extends(0,z.withAnalytics)(z.FtLitElement,ls){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new z.Debouncer(300),this.changeDebouncer=new z.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,z.flatDeep)(this.options,t=>{var r;return(r=t.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,z.flatDeep)(this.options,t=>{var r;return t.selected?[]:(r=t.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(t=>t.selected).map(t=>t.value)}render(){let t=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return jt.html`
|
|
1266
1275
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1267
1276
|
part="container">
|
|
1268
1277
|
${!this.label&&!t?null:jt.html`
|
|
1269
1278
|
|
|
1270
1279
|
<div class="ft-filter--header" part="header">
|
|
1271
1280
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1272
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1281
|
+
<ft-typography class="ft-filter--label" variant="${te.overline}" part="label">
|
|
1273
1282
|
${this.label}
|
|
1274
1283
|
</ft-typography>
|
|
1275
1284
|
<slot name="label"></slot>
|
|
@@ -1302,7 +1311,7 @@
|
|
|
1302
1311
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1303
1312
|
@option-change=${this.optionsChanged}></slot>
|
|
1304
1313
|
</div>
|
|
1305
|
-
`}update(t){if(super.update(t),t.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var r,i,s,
|
|
1314
|
+
`}update(t){if(super.update(t),t.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var r,i,n,s,o,a;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),t.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let t=this.flatOptions,r=t.filter(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return jt.html`
|
|
1306
1315
|
${this.raiseSelectedOptions&&r.length>0?jt.html`
|
|
1307
1316
|
<ft-filter-level
|
|
1308
1317
|
filterId="${this.id}"
|
|
@@ -1320,9 +1329,9 @@
|
|
|
1320
1329
|
`:null}
|
|
1321
1330
|
<ft-snap-scroll horizontal hideScrollbar
|
|
1322
1331
|
class="ft-filter--levels"
|
|
1323
|
-
@current-element-change=${
|
|
1324
|
-
${this.renderLevel(
|
|
1325
|
-
${this.displayedLevels.map(
|
|
1332
|
+
@current-element-change=${s=>this.levelsScrollDebouncer.run(()=>{for(;s.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1333
|
+
${this.renderLevel(n,this.options)}
|
|
1334
|
+
${this.displayedLevels.map(s=>t.find(o=>o.value===s)).map((s,o)=>{var a;let l=s?.value===this.slideIn||s?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=s?.subOptions)!==null&&a!==void 0?a:[],s)})}
|
|
1326
1335
|
</ft-snap-scroll>
|
|
1327
1336
|
`}renderLevel(t,r,i){return jt.html`
|
|
1328
1337
|
<ft-filter-level
|
|
@@ -1346,7 +1355,7 @@
|
|
|
1346
1355
|
noValuesLabel="${this.noValuesLabel}"
|
|
1347
1356
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1348
1357
|
></ft-filter-level>
|
|
1349
|
-
`}goBack(t){this.slideOut=t.detail.value,(0,z.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,z.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,z.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let i=this.flatOptions.find(
|
|
1358
|
+
`}goBack(t){this.slideOut=t.detail.value,(0,z.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,z.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,z.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let i=this.flatOptions.find(s=>s.value===t.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),(t=this.levels)===null||t===void 0||t.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let t=this.selectedValues;(0,z.deepEqual)(this.lastDispatchedValues,t)||(this.dispatchEvent(new us(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var t,r;this.filter=(r=(t=this.filterInput)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":O,"ft-filter-level":V,"ft-snap-scroll":ee,"ft-typography":Y};R.styles=Bc;F([(0,$.property)({type:String})],R.prototype,"id",void 0);F([(0,$.property)({type:String})],R.prototype,"label",void 0);F([(0,$.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);F([(0,$.property)({type:String})],R.prototype,"clearButtonLabel",void 0);F([(0,$.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);F([(0,$.property)({type:String})],R.prototype,"noValuesLabel",void 0);F([(0,z.jsonProperty)([])],R.prototype,"options",void 0);F([(0,$.property)({type:Boolean})],R.prototype,"multivalued",void 0);F([(0,$.property)({type:Boolean})],R.prototype,"disabled",void 0);F([(0,$.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);F([(0,$.property)({type:Boolean})],R.prototype,"displayCount",void 0);F([(0,z.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);F([(0,z.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);F([(0,$.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);F([(0,$.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);F([(0,$.query)(".ft-filter--container")],R.prototype,"container",void 0);F([(0,$.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);F([(0,$.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);F([(0,$.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);F([(0,$.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);F([(0,$.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);F([(0,$.state)()],R.prototype,"withScroll",void 0);F([(0,$.state)()],R.prototype,"filter",void 0);F([(0,$.state)()],R.prototype,"slideIn",void 0);F([(0,$.state)()],R.prototype,"slideOut",void 0);var tn=f(E()),Wt=f(j()),Fc=f(L()),ur=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ze=class extends tn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Fc.html`
|
|
1350
1359
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1351
1360
|
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};ze.elementDefinitions={};ur([(0,Wt.property)({type:String})],ze.prototype,"label",void 0);ur([(0,Wt.property)({type:Object,converter:e=>e})],ze.prototype,"value",void 0);ur([(0,Wt.property)({type:Boolean,reflect:!0})],ze.prototype,"selected",void 0);ur([(0,Wt.property)({type:Object})],ze.prototype,"subOptions",void 0);ur([(0,tn.jsonProperty)({})],ze.prototype,"renderOption",void 0);ur([(0,Wt.query)(".ft-filter-option--slot")],ze.prototype,"slotElement",void 0);var Hc={"ft-filter":R,"ft-filter-option":ze};(0,Vc.customElements)(Hc);})();
|
|
1352
1361
|
/*! Bundled license information:
|